TL;DR
This paper introduces a novel multitask deep neural network that simultaneously tackles crowd counting and person localization using point supervision. By leveraging multiscale representations and a fusion module, their approach achieves state-of-the-art results on challenging datasets, offering a more robust solution for scenarios with varying crowd densities.
What Problem Does This Paper Address?
Accurately counting people in crowded scenes is a long-standing challenge in computer vision, with applications ranging from public safety and traffic management to surveillance. Traditional methods often rely on estimating "density maps," which can struggle with varying crowd sparsities and don't provide individual person locations. While some methods attempt localization, they often require complex annotations or are less effective in dense crowds. This paper addresses the need for a unified framework that can accurately count people and pinpoint their locations, even in scenes with extreme variations in crowd density, without relying on density maps.
Methods
The authors propose a multitask, multiscale approach built upon point supervision. Instead of density maps, their model uses individual head locations as ground truth. The core of their method involves:
- Multiscale Scene Encoder: The input image is processed by three parallel VGG16-based encoders, each operating at different scales (1/8, 1/4, 1/2 of the original image size). This captures scene representations at various levels of detail.
- Feature Dilation: Dilated convolutional layers are applied to these multiscale representations. This technique expands the receptive field of the network without losing resolution, allowing it to capture higher-level features effectively.
- Multiscale Head Estimation: Each dilated feature map is fed into a single convolutional layer to generate an "estimated head location" map for its respective scale.
- Multiscale Fusion: A dedicated module combines the outputs from the different scales. This fusion network uses convolutional layers with varying numbers of layers and a stride of 2 to downsample the feature maps to a common resolution (1/16). The concatenated features are then processed to produce a final density map for crowd counting.
- Localization: For localization, the model leverages the highest resolution feature map (S3) and employs a connected components algorithm to identify blobs, with the centers of these blobs representing detected head locations.
- Total Loss: The model is trained using a weighted sum of four Mean Squared Error (MSE) loss terms, one for each multiscale branch and one for the multiscale fusion output. This multitask objective encourages the network to learn representations beneficial for both counting and localization.
The key novelty lies in the joint multitask learning of counting and localization, the multiscale architecture to handle varying densities, and the use of point supervision to directly predict head locations, bypassing the limitations of density map generation.
Datasets
The paper evaluates its method on two widely used crowd counting datasets:
- ShanghaiTech A: Contains 482 images with a total of 241,677 annotated heads, representing more crowded scenes.
- ShanghaiTech B: Contains 716 images with 88,488 annotated heads, representing sparser scenes.
The authors also mention pre-training their scene encoders on the larger ImageNet dataset.
Key Insights and Ideas
- Point Supervision is Powerful: Directly using head locations as supervision, rather than derived density maps, proves effective for both counting and localization, especially in sparse scenes.
- Multiscale is Crucial: The performance significantly degrades when any of the scales are removed, highlighting the importance of capturing information across different resolutions to handle the wide range of crowd densities.
- Fusion Network Enhances Performance: The multiscale fusion module effectively combines outputs from different scales, outperforming any single scale and demonstrating its ability to adapt to various crowd densities. This suggests that a learned fusion is superior to simple averaging or switching scales based on prior knowledge.
- Multitask Learning Benefits Both Tasks: Training for both counting and localization simultaneously helps the network learn more effective scene representations, leading to improved performance on both tasks.
Key Results
The proposed model achieves state-of-the-art or competitive results on both ShanghaiTech datasets:
- Crowd Counting:
- On ShanghaiTech A, the model achieves an MAE of 71.4 and an MSE of 110.7.
- On ShanghaiTech B, it achieves an MAE of 9.6 and an MSE of 15.0.
- Notably, on ShanghaiTech B (sparser scenes), their point-supervised model outperforms recent density-based approaches.
- Localization:
- On ShanghaiTech A, the model achieves an AP of 0.71.
- On ShanghaiTech B, it achieves an AP of 0.75.
- The paper states their point-supervised model delivers the best localization results compared to prior work on both datasets.
Ablation studies confirm that removing any scale branch leads to performance degradation, and the fusion network consistently improves results across different crowd density groups.
Limitations and Future Work
- Limitations: The paper acknowledges that density-based methods can sometimes be more robust in extremely dense scenes due to their nature of not distinctly identifying individual heads. While their model performs well, this is a subtle trade-off.
- Future Work: The authors suggest exploring automatic weighting of loss function terms through learning, potentially using attention mechanisms. They also propose investigating the combination of density maps with their point-based approach through ensemble or fusion methods.
Summary updated