Reinforcing Local Feature Representation for Weakly-Supervised Dense Crowd Counting

Xiaoshuang Chen, Hongtao LuarXiv 2022

TL;DR

This paper tackles the challenge of crowd counting with minimal supervision, where only the total number of people in an image is known, not their locations. They introduce a novel Self-Adaptive Feature Similarity Learning (SFSL) network and a Global-Local Consistency (GLC) loss to improve local feature representation, significantly narrowing the performance gap between weakly-supervised and fully-supervised methods.

What Problem Does This Paper Address?

Traditional crowd counting methods, especially for dense scenes, rely heavily on fully-supervised learning. This requires extensive annotations, such as precise location of each individual or detailed density maps, which are time-consuming and expensive to create. While semi-supervised methods reduce annotation effort, they still require some form of location information. This paper focuses on weakly-supervised crowd counting, where the only available supervision is the total count of people per image. The core challenge here is the lack of local supervision signals, which weakens the network's ability to learn discriminative local features crucial for accurate counting, especially in dense and varied crowd scenarios.

Methods

The authors propose a two-pronged approach:

  • Self-Adaptive Feature Similarity Learning (SFSL) Network: This network aims to learn a robust representation of "person" features without explicit location labels. It introduces a learnable "unbiased feature estimation" vector that acts as a representative for person features. The network then calculates the similarity between this estimation and the features extracted from each pixel in the image. This similarity map is treated as a soft binary classification probability, indicating the likelihood of a pixel belonging to a person. This map is then used as part of the input for a final regression layer to predict the crowd count. The key novelty is that the "unbiased feature estimation" is updated adaptively during training, rather than being pre-defined.
  • Global-Local Consistency (GLC) Loss: To further reinforce local feature representation, the GLC loss enforces consistency between global and local predictions. The original image is divided into multiple sub-images. The network processes both the full image and these sub-images. The GLC loss then ensures that the sum of the crowd counts predicted for the sub-images closely matches the crowd count predicted for the entire image. This self-supervised mechanism leverages the inherent relationship between global and local counts to improve feature learning.

The SFSL network is implemented using both CNN (specifically CSRNet) and ViT backbones, demonstrating its versatility.

Datasets

The proposed method is evaluated on four widely-used crowd counting datasets:

  • ShanghaiTech: This dataset is split into Part A (internet images, denser crowds) and Part B (surveillance images, sparser crowds).
  • UCF-QNRF: A large and dense crowd dataset.
  • NWPU-Crowd: A dataset with extremely large image resolutions.
  • JHU-CROWD++: Another large-scale dataset.

Importantly, for their weakly-supervised experiments, the authors only use the image-wise crowd numbers (global counts) as labels, deliberately ignoring the location annotations available in these datasets.

Key Insights and Ideas

  • Unbiased Feature Estimation as a Proxy for Local Supervision: The idea of learning a representative feature vector for "persons" and using its similarity to guide local feature learning is a clever way to compensate for the absence of explicit location labels. This allows the network to implicitly learn what constitutes a "person" feature.
  • Global-Local Consistency for Feature Reinforcement: The GLC loss is a powerful self-supervised technique. By forcing the sum of local predictions to match the global prediction, it encourages the network to learn features that are consistent across different scales and regions, even without explicit local ground truth.
  • Robustness to Labeling Deviations: A significant finding is the method's resilience to noise in the ground truth crowd numbers. This is crucial for weakly-supervised settings where counts might be obtained through less precise methods. This robustness strongly supports the practical utility of reducing manual annotations.
  • Compatibility with Different Backbones: The method shows consistent improvements when applied to various backbones (CNNs like MCNN, VGG16, CSRNet, and ViT), highlighting its general applicability.

Key Results

  • The proposed SFSL network and GLC loss significantly narrow the performance gap between weakly-supervised and fully-supervised crowd counting methods. For instance, on ShanghaiTech Part A, the CNN-based approach achieves MAE of 81.21 and MSE of 127.1, outperforming previous weakly-supervised methods.
  • The method demonstrates strong performance across different datasets, handling variations in crowd density, perspective, and object scales.
  • Ablation studies confirm the effectiveness of both the SFSL network and the GLC loss, showing that combining them yields the best results.
  • The method exhibits remarkable robustness to simulated labeling deviations (Gaussian noise), with MAE and MSE increasing only slightly even with moderate noise levels.

Limitations and Future Work

  • Performance Gap Remains: While the gap is narrowed, fully-supervised methods still generally achieve better performance, especially on datasets with extremely dense crowds. This is attributed to the inherent limitations of not having explicit local supervision.
  • Impact of Annotation Quantity: The paper notes that with more images labeled with total crowd numbers (even without locations), the performance can be further improved. This suggests that increasing the dataset size for weakly-supervised training is a promising avenue.
  • Future Work: The authors implicitly suggest that exploring more sophisticated ways to leverage the global-local consistency and further refining the feature similarity learning could lead to even better results. Investigating the impact of different sub-image division strategies and loss weighting could also be future research directions.

Summary updated

BibTeX
@misc{chen2022reinforcing,
  author = {Xiaoshuang Chen and Hongtao Lu},
  title = {{Reinforcing Local Feature Representation for Weakly-Supervised Dense Crowd Counting}},
  year = {2022},
  eprint = {2202.10681},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.10681},
}
Figure