Abstract
Crowd counting is a critical task for urban management and safety, yet it is hindered by the immense human effort required for point-level annotations. Traditional semi-supervised approaches often employ a "None-or-All" strategy, labeling a small subset of images entirely while leaving the majority untouched. This approach introduces significant spatial redundancy and fails to capture the visual diversity of the entire dataset. We present a novel framework that shifts the focus from image-level to region-level labeling. By selecting representative vertical regions across all images using a Multi-level Density-aware Cluster (MDC) strategy and propagating features via a Crowd Affinity Propagation (CAP) module, our method achieves state-of-the-art performance while significantly reducing the manual labeling burden.
Introduction: The "None-or-All" Bottleneck
Crowd counting models typically require annotators to click on every individual head in an image, which can contain thousands of people. Semi-supervised learning aims to mitigate this by using a fraction of labeled data. However, the standard "None-or-All" strategy—where, for example, 10% of images are fully labeled and 90% are ignored—is fundamentally inefficient. Images often contain repetitive patterns due to consistent lighting and camera angles, leading to high spatial labeling redundancy within a single image. Conversely, the model remains blind to the unique characteristics and diverse scenes present in the 90% of unlabeled images.
Methodology: Region-Level Selection and Feature Propagation
To address these inefficiencies, the proposed framework introduces two primary components designed to maximize the information gained from a limited labeling budget.
1. Multi-level Density-aware Cluster (MDC) Strategy
Instead of labeling entire images, the MDC strategy identifies the most informative regions across the entire dataset. Recognizing that crowd density varies most significantly along the vertical axis due to camera perspective, the system prioritizes labeling vertical strips. A "warm-up" model generates density vectors for these strips, which are then clustered using a Gaussian Mixture Model (GMM). By labeling only the regions closest to the cluster centers, the training set is guaranteed to include a diverse range of samples, from sparse backgrounds to dense crowds.
2. Crowd Affinity Propagation (CAP) Module
To effectively utilize unlabeled regions, the CAP module calculates feature similarities (affinities) between labeled and unlabeled patches. During training, features from unlabeled areas are propagated to update labeled ones. This mechanism allows supervision from human labels to flow back to unlabeled regions, enabling the model to learn from the entire image without relying on noisy pseudo-labels. Notably, the CAP module is only required during training; it is removed during inference to maintain a lightweight and fast model.
Experimental Results
The framework was evaluated on three gold-standard benchmarks: ShanghaiTech Part A, ShanghaiTech Part B, and UCF-QNRF.
- ShanghaiTech Part A: The method improved the Mean Absolute Error (MAE) by 9.4% and RMSE by 8.1% compared to previous semi-supervised leaders.
- ShanghaiTech Part B: The model saw a significant jump in performance, improving RMSE by 22.5%.
- UCF-QNRF: On this high-resolution dataset, the model achieved an MAE of 128.6 with only 20% of the labels, approaching the performance of fully supervised models that utilize 100% of the data.
Conclusion and Future Work
By transitioning from image-level to region-level labeling, this research demonstrates that spatial redundancy can be transformed into a resource for self-supervision. The combination of MDC for diverse sample selection and CAP for effective feature propagation sets a new benchmark for semi-supervised crowd counting. While the current approach requires a brief "warm-up" phase with random labels, future work may explore cold-start scenarios using self-supervised pretext tasks or extending these principles to video streams to address temporal redundancy.
Summary updated