Skip to main content
QUICK REVIEW

[Paper Review] Attention to Head Locations for Crowd Counting

Youmei Zhang, Chunluan Zhou|arXiv (Cornell University)|Jun 27, 2018
Video Surveillance and Tracking MethodsComputer Science26 references16 citations
TL;DR

This paper proposes an attention-based CNN (AM-CNN) for crowd counting that explicitly focuses on head locations using a learnable probability map to suppress background and non-head regions. By integrating an attention mechanism with multi-scale feature extraction and a relative deviation loss, the method improves robustness to occlusions, scale variations, and non-uniform distributions, achieving state-of-the-art performance on ShanghaiTech, UCF CC 50, and WorldExpo’10 datasets with lower MAE and MSE.

ABSTRACT

Occlusions, complex backgrounds, scale variations and non-uniform distributions present great challenges for crowd counting in practical applications. In this paper, we propose a novel method using an attention model to exploit head locations which are the most important cue for crowd counting. The attention model estimates a probability map in which high probabilities indicate locations where heads are likely to be present. The estimated probability map is used to suppress non-head regions in feature maps from several multi-scale feature extraction branches of a convolution neural network for crowd density estimation, which makes our method robust to complex backgrounds, scale variations and non-uniform distributions. In addition, we introduce a relative deviation loss to compensate a commonly used training loss, Euclidean distance, to improve the accuracy of sparse crowd density estimation. Experiments on Shanghai-Tech, UCF_CC_50 and World-Expo'10 data sets demonstrate the effectiveness of our method.

Motivation & Objective

  • Address the limitation of existing CNN-based crowd counting methods that do not explicitly attend to head locations, the most informative cue for counting.
  • Improve robustness to complex backgrounds, scale variations, and non-uniform crowd distributions by filtering non-head regions via attention.
  • Enhance sparse crowd counting performance, which is often under-prioritized due to the dominance of dense crowd examples in standard training loss.
  • Introduce a relative deviation loss to balance the training signal between sparse and dense crowd scenarios, improving generalization.

Proposed method

  • Integrate an attention model into a multi-column CNN (MCNN) to generate a spatial probability map indicating head likelihood.
  • Use the attention map to suppress features in non-head regions across multi-scale feature extraction branches, focusing the network on head locations.
  • Combine the standard Euclidean loss with a relative deviation loss to emphasize sparse crowd examples during training.
  • Train the AM-CNN end-to-end using both losses to improve density map estimation, especially for low-density scenes.
  • Leverage multi-scale branches to handle scale variations, while the attention mechanism enhances localization of heads of varying sizes.
  • Apply attention maps as spatial masks to refine feature representations before density map regression.

Experimental results

Research questions

  • RQ1Can an attention mechanism that focuses on head locations improve crowd counting performance in complex scenes?
  • RQ2How does attention-based feature suppression affect robustness to background clutter and non-uniform crowd distributions?
  • RQ3To what extent does introducing a relative deviation loss improve the accuracy of sparse crowd density estimation compared to standard Euclidean loss?
  • RQ4Can the proposed method generalize across diverse datasets with varying crowd densities and environmental conditions?

Key findings

  • The AM-CNN achieves the lowest MAE (17.2) and MSE (36.8) on the ShanghaiTech Part A dataset, outperforming previous state-of-the-art methods.
  • On the UCF CC 50 dataset, the AM-CNN achieves an MAE of 279.5 and MSE of 377.8, significantly outperforming CP-CNN (MAE: 295.8) and other baselines.
  • For sparse crowds (density < 3000), the AM-CNN consistently outperforms CP-CNN, demonstrating superior performance in low-density scenarios.
  • The attention model successfully highlights head regions in probability maps, with higher scores concentrated on heads and less on background or body parts.
  • In dense crowds, the attention model focuses on general crowd regions rather than individual heads, which is consistent with human visual attention.
  • The relative deviation loss effectively improves sparse crowd prediction, as evidenced by better performance on low-density image ranges in UCF CC 50 and WorldExpo’10.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.