Introduction
Traditional crowd counting methods rely heavily on "fully supervised" learning, requiring annotators to meticulously label every individual in an image with a point-level dot. This process is labor-intensive and expensive, particularly in dense scenes containing thousands of people. Despite this granular training data, these models are typically evaluated only on their ability to estimate the total count (MAE/MSE). This paper addresses this discrepancy by proposing a weakly-supervised framework that achieves high accuracy using only image-level total counts as labels.
Methodology
The proposed architecture utilizes a dual-network approach sharing a common VGG-16 backbone.
Regression Network
The regression branch is designed to predict the total crowd number for a single input image. It processes features through a Pyramidal Feature Vector generated via adaptive pooling layers. This structure enables the model to capture both fine-grained local details and broader global density patterns.
Soft-Label Sorting Network
The primary innovation of this work is the integration of a sorting task. By training the network to rank a set of $K$ images by their crowd density, the model is forced to extract density-sensitive features without explicit spatial supervision.
Key components include:
- Differentiable Sorting: A Sinkhorn Operator is employed to transform predicted order features into a permutation matrix, allowing for end-to-end gradient-based optimization.
- Rayleigh Soft-Labels: To handle ambiguity when crowd counts are nearly identical, the authors use soft labels based on the Rayleigh distribution. This prevents the network from receiving noisy gradients when swapping images with very similar densities.
Datasets and Evaluation
The framework was evaluated on several benchmark datasets:
- WorldExpo10: 3,380 labeled frames across 106 diverse scenes.
- UCSD: Surveillance footage with a consistent perspective.
- ShanghaiTech (Part A & B): Part A features high-density scenes, while Part B focuses on street-level views.
Key Results
The weakly-supervised approach demonstrates performance comparable to fully supervised state-of-the-art methods:
- WorldExpo10: Achieved an average MAE of 9.6, outperforming earlier fully supervised models.
- UCSD: Reached an MAE of 1.8, remaining competitive with top-tier supervised results.
- ShanghaiTech Part B: Recorded an MAE of 12.3, proving effectiveness in surveillance contexts.
Ablation studies confirmed that the joint training of regression and sorting tasks is critical. On WorldExpo10, adding the sorting task reduced the MAE from 20.1 to 9.6, highlighting the regularizing power of relative density learning.
Conclusion
By shifting the learning objective from absolute location to relative sorting, this work demonstrates that point-level annotations are not strictly necessary for accurate crowd counting. While challenges remain in handling extreme distribution shifts (as seen in ShanghaiTech Part A), the sorting-based supervision provides a robust path toward reducing the annotation burden in computer vision tasks.
Summary updated