TL;DR
This paper introduces S⁴Crowd, a novel semi-supervised learning framework for crowd counting that effectively leverages unlabeled data to reduce annotation costs. By proposing new self-supervised regularization terms and a Gated-Crowd-Recurrent-Unit (GCRU), S⁴Crowd generates higher-quality pseudo-labels, leading to improved crowd counting performance compared to existing semi-supervised methods.
What Problem Does This Paper Address?
Accurate crowd counting is crucial for urban planning and intelligent transportation systems. Traditional methods rely heavily on supervised learning, which requires extensive manual annotation of crowd data. This annotation process is time-consuming and expensive, especially for real-world scenarios with varying crowd densities, scales, and illumination conditions. To address this, the paper tackles the challenge of improving crowd counting performance by effectively utilizing unlabeled data through a semi-supervised learning approach, thereby alleviating the burden of manual annotation.
Methods
The core of S⁴Crowd lies in its semi-supervised learning framework, which combines supervised and unsupervised pathways.
- Unsupervised Pathway: This pathway focuses on generating high-quality pseudo-labels for unlabeled data.
- Self-Supervised Regularization Terms: Two novel terms are introduced:
- Crowd Scale Equivariance (CSE): This term ensures that the crowd density estimation is invariant to changes in image scale, mimicking variations in head size. It's implemented using a re-scaling transformation function.
- Crowd Entropy Consistency (CEC): This term enforces consistency in entropy maps across different augmentations, aiming to make the learned representations robust to various crowd variations like illumination and quality.
- Gated-Crowd-Recurrent-Unit (GCRU): A novel recurrent unit designed to process high-order tensor sequences. Unlike standard GRUs, GCRU explicitly models crowd-driven features by incorporating second-order statistics, which are shown to be informative for crowd modeling.
- Pseudo Label Generation: The GCRU's output is used to generate pseudo-labels for unlabeled data, which are then iteratively refined.
- Supervised Pathway: This pathway utilizes the standard supervised loss (MSE) on labeled data.
- Joint Loss and Dynamic Weighting: A joint loss function combines the supervised loss with the unsupervised losses (CSE, CEC, and a pseudo-supervised loss derived from the generated pseudo-labels). A dynamic weighting strategy is employed to adjust the influence of unsupervised and supervised losses throughout training, giving more weight to unsupervised losses in early stages and gradually increasing their importance as pseudo-labels become more reliable.
Datasets
The proposed S⁴Crowd framework was evaluated on four popular crowd counting datasets:
- ShanghaiTech A/B: These datasets capture congested street views with varying crowd densities.
- UCF_QNRF: A large-scale dataset with high-resolution images and dense crowds.
- World Expo'10 (WE): This dataset features fixed crowd scenes.
The paper also mentions experiments using external unlabeled data from Google, though the primary experiments used unlabeled data from the same source as the labeled data.
Key Insights and Ideas
- Leveraging Unlabeled Data is Key: The paper strongly demonstrates that effectively utilizing unlabeled data through self-supervised learning can significantly improve crowd counting performance, reducing reliance on expensive manual annotations.
- Modeling Crowd Variations is Crucial: Explicitly modeling variations like scale and illumination using self-supervised losses (CSE and CEC) is shown to be vital for robust crowd counting, especially when labeled data is scarce.
- Second-Order Statistics Matter: The introduction of GCRU, which incorporates second-order statistics, highlights their importance in capturing discriminative crowd features for better modeling.
- Dynamic Training Strategy is Beneficial: A dynamic weighting of supervised and unsupervised losses during training is more effective than fixed weights, allowing the model to adapt to the evolving reliability of pseudo-labels.
Key Results
- S⁴Crowd consistently outperformed existing semi-supervised crowd counting methods across multiple datasets and various data split settings.
- On UCF_QNRF, S⁴Crowd achieved an 8.6 MAE reduction compared to the IRAST model.
- On ShanghaiTech A, it showed a 9.1 MAE reduction.
- Ablation studies confirmed the effectiveness of each proposed component: CSE, CEC, GCRU, and the dynamic training strategy. For instance, using K=3 augmentations (grayscale, bright, dark) yielded the lowest MAE.
- The dynamic weighting strategy resulted in significantly lower errors compared to fixed lambda values, achieving an MAE of 82.1 on ShanghaiTech A.
Limitations and Future Work
- Domain Adaptation: The paper acknowledges that performance can be limited when using external unlabeled data from different sources due to domain discrepancies. Future work will explore domain adaptation methods to address this.
- Real-world Data: While experiments with external unlabeled data were conducted, the paper suggests further exploration of leveraging unlabeled crowd data "in the wild" for more robust real-world applications.
Summary updated