Adaptive Mixture Regression Network with Local Counting Map for Crowd Counting

Xiyang Liu, Jie Yang, Wenrui Ding, Tieqiang Wang, Zhijin Wang, Junjun XiongECCV 2020

Abstract

Crowd counting typically relies on pixel-level density map estimation. However, a fundamental inconsistency exists between pixel-wise training objectives and global count evaluation metrics. This paper proposes replacing traditional density maps with Local Counting Maps (LCM) and introduces an Adaptive Mixture Regression Network to optimize this new target. By bridging the mathematical gap between training and evaluation, the proposed method achieves state-of-the-art performance on major benchmarks including UCF-QNRF and ShanghaiTech.

Introduction

Most existing crowd-counting frameworks are trained to generate a density map where each pixel represents the local probability of a person's presence. Models are typically optimized by minimizing the point-to-point error between predicted and ground-truth density maps. This approach suffers from an inconsistency problem: while the model is trained for pixel-level precision, it is evaluated on the global count (the integral of the map). Consequently, a model might achieve low pixel-wise error but fail significantly on the total count, or vice versa. Furthermore, generating ground-truth density maps via Gaussian kernels is often unreliable in dense scenes where head sizes vary and overlap.

Methodology

Local Counting Map (LCM)

To address the inconsistency problem, the authors propose the Local Counting Map (LCM). Instead of predicting individual pixel values, the model predicts the number of people within discrete local patches (e.g., 64x64 pixels).

Comparison of Density Maps (DM) and Local Counting Maps (LCM) for ground truth (GT) and estimation (ES).

Theoretically, the authors prove that the error of an LCM provides a tighter bound to the final Mean Absolute Error (MAE) than standard density map error ($MAE \le LCME \le DME$). By optimizing for LCME, the training objective aligns more closely with the evaluation metric. This patch-based approach also increases robustness against noisy annotations, as it focuses on regional counts rather than exact pixel coordinates.

Adaptive Mixture Regression Network

The architecture designed to predict LCMs consists of three primary modules:

  • Scale-Aware Module (SAM): Utilizes dilated convolutions with varying expansion ratios to capture multi-scale features, accommodating the wide range of head sizes in diverse perspectives.
  • Mixture Regression Module (MRM): Instead of simple regression to a single value, MRM treats the count as a weighted combination of several intervals. It employs a coarse-to-fine strategy where deeper layers estimate general density and shallower layers refine counts using texture details.
  • Adaptive Soft Interval Module (ASIM): To handle the continuous nature of crowd counts and avoid boundary errors at interval edges, ASIM allows the network to adaptively shift and scale regression intervals for each image.

Experimental Results

The model was evaluated on four standard benchmarks: ShanghaiTech (Part A & B), UCF-QNRF, and UCF-CC-50.

Training loss and testing MAE comparison between density map and local counting map supervision.

As shown in the training curves, the LCM supervision leads to faster convergence and lower testing MAE compared to traditional density map supervision. On the UCF-QNRF dataset, the method achieved an MAE of 86.6, outperforming previous state-of-the-art methods like Bayesian Loss. In ShanghaiTech Part B, it reached an MAE of 7.02, a significant improvement over the baseline CSRNet (10.6). Ablation studies confirmed that switching to LCM alone improved performance by approximately 4.7% on congested datasets.

Conclusion

By shifting the training target from pixel-level density to patch-level local counts, this work effectively mitigates the training-evaluation inconsistency in crowd counting. Combined with an adaptive mixture regression framework, the approach sets new performance standards across multiple challenging datasets. Future work may explore the sensitivity of patch sizes and further optimize the computational efficiency of the multi-module architecture.

Summary updated

BibTeX
@inproceedings{liu2020adaptive,
  author = {Xiyang Liu and Jie Yang and Wenrui Ding and Tieqiang Wang and Zhijin Wang and Junjun Xiong},
  title = {{Adaptive Mixture Regression Network with Local Counting Map for Crowd Counting}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58586-0\_15},
}
Figure