Abstract
Crowd counting is a critical task for urban management and public safety, yet it faces significant hurdles from background clutter and extreme scale variations. This paper introduces the Shallow feature based Dense Attention Network (SDANet). By utilizing early-stage "shallow" features to generate attention masks, SDANet effectively filters out non-human background noise. Furthermore, it employs dense connections to preserve multi-scale information throughout the network. Experimental results demonstrate state-of-the-art performance, including an 11.9% error reduction on the challenging UCF_CC_50 benchmark.
Introduction
Estimating the number of individuals in dense crowds is essential for various real-world applications. However, two primary challenges persist in the field:
- Background Clutter: Objects such as umbrellas, trees, or architectural details often mimic the texture of human heads, causing models to "overcount" by mistaking scenery for people.
- Scale Variation: Perspective effects cause significant differences in head sizes between foreground and background subjects, making it difficult for standard networks to maintain accuracy across the entire image.
Methodology
SDANet addresses these issues through a three-pronged architectural approach designed to preserve fine-grained detail while suppressing noise:
- Low-level Feature Extractor (LFE): This module maintains high spatial resolution by avoiding pooling layers. By keeping the resolution high, the network ensures that small-scale features of distant people are not erased during processing.
- High-level Feature Encoder (HFE): Utilizing dense connections, the HFE allows features from early layers to bypass deeper layers. This ensures that the "representative features" of small heads are preserved and integrated into the final density estimation rather than being "washed out."
- Attention Map Generator (AMG): The core innovation is the use of shallow features to create attention masks. Shallow layers capture raw textural differences more effectively than deep semantic layers, allowing the model to create a "mask" that silences background noise before the final counting stage.
Key Results
The model was rigorously tested on major benchmarks including UCF_CC_50, ShanghaiTech, and WorldExpo’10. On the UCF_CC_50 dataset—known for its extreme density—SDANet achieved a Mean Absolute Error (MAE) of 227.6, a substantial 11.9% improvement over previous methods like SANet (258.4).
Ablation studies highlighted the importance of the AMG; removing it led to a 37% increase in error, validating the hypothesis that shallow-feature attention is the critical component for effective noise suppression.
Conclusion
SDANet provides a robust solution for crowd counting by rethinking the role of shallow features. By combining dense connections for scale invariance with shallow-feature attention for noise reduction, the model achieves superior accuracy across diverse and challenging datasets. Future work may extend this approach to video sequences and explore robustness in extreme lighting conditions.
Summary updated