[Paper Review] Beyond Counting: Comparisons of Density Maps for Crowd Analysis Tasks - Counting, Detection, and Tracking
This paper evaluates density map estimation methods for crowd analysis, comparing reduced-resolution and full-resolution density maps across counting, detection, and tracking tasks. While lower-resolution maps perform well for counting, full-resolution maps generated via sliding-window CNNs (CNN-pixel) and fully convolutional networks with skip connections (FCNN-skip) significantly outperform upsampling in localization tasks, despite slightly worse counting accuracy due to higher computational cost and complexity.
For crowded scenes, the accuracy of object-based computer vision methods declines when the images are low-resolution and objects have severe occlusions. Taking counting methods for example, almost all the recent state-of-the-art counting methods bypass explicit detection and adopt regression-based methods to directly count the objects of interest. Among regression-based methods, density map estimation, where the number of objects inside a subregion is the integral of the density map over that subregion, is especially promising because it preserves spatial information, which makes it useful for both counting and localization (detection and tracking). With the power of deep convolutional neural networks (CNNs) the counting performance has improved steadily. The goal of this paper is to evaluate density maps generated by density estimation methods on a variety of crowd analysis tasks, including counting, detection, and tracking. Most existing CNN methods produce density maps with resolution that is smaller than the original images, due to the downsample strides in the convolution/pooling operations. To produce an original-resolution density map, we also evaluate a classical CNN that uses a sliding window regressor to predict the density for every pixel in the image. We also consider a fully convolutional (FCNN) adaptation, with skip connections from lower convolutional layers to compensate for loss in spatial information during upsampling. In our experiments, we found that the lower-resolution density maps sometimes have better counting performance. In contrast, the original-resolution density maps improved localization tasks, such as detection and tracking, compared to bilinear upsampling the lower-resolution density maps. Finally, we also propose several metrics for measuring the quality of a density map, and relate them to experiment results on counting and localization.
Motivation & Objective
- To evaluate the performance of density map estimation methods across multiple crowd analysis tasks: counting, detection, and tracking.
- To investigate whether full-resolution density maps can improve localization accuracy compared to lower-resolution maps that are upsampled.
- To identify and quantify the characteristics of high-quality density maps that support both accurate counting and effective detection/tracking.
- To propose new metrics for assessing density map quality based on spatial compactness, localization accuracy, and temporal consistency.
- To understand the trade-offs between computational complexity and performance across different network architectures and training strategies.
Proposed method
- Proposes a sliding-window CNN (CNN-pixel) that predicts density values for every pixel in the input image, producing a full-resolution density map.
- Adapts the CNN-pixel into a fully convolutional network (FCNN-skip) with skip connections from lower layers to preserve spatial details during upsampling.
- Trains models using a multi-task loss combining pixel-wise regression loss and patch-wise count loss to balance structural fidelity and global accuracy.
- Employs hole convolution and alternative network architectures (e.g., DenseNet variants) to explore full-resolution prediction with different inductive biases.
- Introduces new evaluation metrics such as spatial compactness, localization precision, and temporal consistency to analyze density map quality.
- Compares methods using standard datasets (UCSD, ShanghaiTech) across counting (MAE), detection (IntProg, GMM-weight), and tracking (MOT metrics).
Experimental results
Research questions
- RQ1How do reduced-resolution density maps compare to full-resolution density maps in terms of performance across counting, detection, and tracking tasks?
- RQ2Can full-resolution density maps generated via dense pixel prediction (CNN-pixel) achieve better localization performance than upscaled low-resolution maps?
- RQ3What role do loss functions (pixel-wise, count-wise, or combined) play in shaping the spatial structure and accuracy of the predicted density maps?
- RQ4How do architectural choices—such as skip connections, hole convolution, or network depth—affect the quality and utility of density maps for downstream tasks?
- RQ5Which metrics best explain the performance differences between density maps with similar counting accuracy but varying localization performance?
Key findings
- Full-resolution density maps generated by CNN-pixel achieved the best performance in detection and tracking tasks, outperforming bilinear upsampling of lower-resolution maps.
- Lower-resolution density maps (e.g., from MCNN or FCNN without skip connections) achieved better counting accuracy (MAE: 1.26) than full-resolution methods (e.g., CNN-pixel: MAE: 1.41), indicating a trade-off between resolution and global count accuracy.
- The FCNN-skip model with both pixel-wise and count-wise loss achieved the best balance, with MAE of 1.26 and superior localization quality, while removing the count loss increased error to MAE: 1.41.
- Density maps trained with only the count loss spread out the density values, leading to poor localization and higher MAE (1.82), demonstrating the necessity of pixel-wise supervision for spatial structure.
- The use of perspective-aware ground-truth density maps (CNN-pixel-VS) degraded performance across all tasks, with MAE increasing to 1.48, due to overly smoothed predictions.
- Hole convolution-based full-resolution prediction performed poorly (MAE: 1.93) and was slower than upsampling-based FCNN, indicating that upsampling with skip connections is more effective for full-resolution density estimation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.