1
$\begingroup$

For the case of crowd density estimation using CNN, using datasets like shanhaiTech or UCF, why there hasn't been attempts to tackle this type of task as a classification problem? All current papers I've seen are related to regression, not classification.

For example, if I have the crowd images labeled based on their crowd density (low, moderate, high), and I'm not interested in the count, but the density class (low, moderate, high), can't I train the network to classify the data based on these classes as a classification network?

$\endgroup$

1 Answer 1

2
$\begingroup$

For example, if I have the crowd images labeled based on their crowd density (low, moderate, high), and I'm not interested in the count, but the density class (low, moderate, high), can't I train the network to classify the data based on these classes as a classification network?

Yes you can, all you need is enough correctly labelled training data.

A good rule of thumb is if a human expert can assign the correct label from an image (and purely from the image, not using extra information) then it is a realistic goal to train a CNN to perform the same labelling.

why there hasn't been attempts to tackle this type of task as a classification problem.

Probably because there are no natural, and likely no widely accepted, classes in this case (I may be wrong, maybe some international society has defined classes you could use). If you use a regression, you can map it to a particular problem case - e.g. sending an alert to someone responsible for traffic and safety when crowd density hits some threshold - by setting numerical boundaries to your classes. Using classification and mapping back the other way is harder.

$\endgroup$
2
  • $\begingroup$ I actually can not get why “mapping back the other way is harder”. I have neumarical boundaries set for each class based on what is convenient for the venue I’m interested in classifiying the crowd density for. My concern is that there might not be enough relevant features between images on the same class, since the distribution of people in every image is highly random, and this also could be affected by other foreigen objects. $\endgroup$
    – norahik
    Mar 19, 2019 at 17:57
  • $\begingroup$ @norahik: If you have probabilities for 3 classes and want to predict the actual density, then it is not clear what the mapping should be to get a single value that would match the image. It is not likely to be the mid-point of the most probable category, and nor will it be a simple weighted mean of the midpoints based on the class probabilities (although that is likely closer). $\endgroup$ Mar 19, 2019 at 20:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .