NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Understanding the impact of mistakes on background regions in crowd counting

Davide Modolo, Bing Shuai, Rahul Rama Varior, Joseph Tighe

Abstract

State-of-the-art crowd counting models often suffer from significant errors due to "hallucinating" individuals in non-human background regions, such as foliage or rocky textures. This paper demonstrates that background noise can account for up to 49% of total prediction error. By introducing a simple segmentation branch to suppress these false positives, the authors improve overall accuracy by up to 20% and reveal a "compensation effect" where standard metrics inadvertently mask model failures.

Introduction

Crowd counting models typically generate density maps where pixel values represent the local density of people. While research has historically focused on addressing scale variations—handling both distant and foreground subjects—the impact of background noise has been largely overlooked. Many natural and architectural textures resemble human heads to neural networks, leading models to predict "ghost" people in empty areas. This study investigates the frequency of these errors and proposes a mitigation strategy.

The Compensation Effect and Background Noise

A critical discovery of this research is the "compensation effect." Standard evaluation metrics like Mean Absolute Error (MAE) are calculated across the entire image. The authors found that models often use false positives in background regions to offset under-predictions in the actual crowd. Consequently, a model might achieve a low total error for the wrong reasons, hiding significant internal failures.

Figure 1: A baseline model predicting 163 people in a scene, with significant "ghost" activations in the tree foliage (red box).

Analysis across datasets like ShanghaiTech and UCF-QNRF revealed that background mistakes are not negligible; they constitute 18-49% of the total error. Furthermore, models show poor generalization, often predicting thousands of non-existent people when presented with unfamiliar natural landscapes.

Methodology: Background Suppression (BS)

To address these errors, the researchers proposed a dual-task architecture. Alongside the standard regression head used for counting, they added a shallow Background Suppression (BS) branch.

  1. Segmentation: The BS branch predicts a binary mask distinguishing foreground (people) from background.
  2. Hadamard Product: The final density map is the element-wise multiplication of the regressor's output and this segmentation mask.

This approach forces the regressor to focus exclusively on counting individuals, while the segmentation branch handles the binary logic of presence versus absence. This specialization allows the regression head to dedicate its full capacity to accurate foreground estimation.

Experimental Results

The approach was evaluated on five major benchmarks and a unique "pure background" test using the ADE20k dataset (with all human-containing images removed).

Figure 4: A baseline model predicting 70 people in a scene containing only a car and a stone wall, illustrating the severity of background hallucinations.

Key findings include:

  • Error Reduction: The BS branch reduced background errors by 10-83%.
  • Accuracy Gains: Overall crowd counting performance improved by up to 20%.
  • Zero-Person Scenarios: On the ADE20k background set, where the true count is zero, baseline models predicted between 8.4 and 45 people per image. The BS branch significantly mitigated these false counts.

Conclusion

By explicitly modeling background regions, crowd counting systems can achieve higher accuracy and more reliable density maps. The authors advocate for a shift in how the community reports performance, suggesting that foreground and background errors should be reported independently to provide a transparent view of model robustness. Future work remains to bridge the domain gap between synthetic training data and complex real-world backgrounds.

Summary updated

BibTeX
@inproceedings{modolo2021understanding,
  author = {Davide Modolo and Bing Shuai and Rahul Rama Varior and Joseph Tighe},
  title = {{Understanding the impact of mistakes on background regions in crowd counting}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2021},
  url = {https://openreview.net/forum?id=EBJvUFdXBte},
}
Figure