Abstract
Crowd counting is a critical task for urban management and public safety, yet state-of-the-art models often rely on massive parameter counts that preclude deployment on resource-constrained edge devices. This paper introduces DR-ResNet, a deeply-recursive residual network designed for extreme efficiency. By employing recursive weight sharing, DR-ResNet achieves the representational power of a 26-layer network with the parameter footprint of a 14-layer one. With only 0.028M parameters—up to 2,000 times fewer than competing architectures—the model maintains competitive accuracy across standard benchmarks and demonstrates superior robustness on a newly introduced real-world surveillance dataset.
Introduction
The advent of Convolutional Neural Networks (CNNs) has significantly advanced crowd counting by effectively addressing challenges like occlusion and scale variation. However, high-performance models such as CP-CNN or Hydra CNN are characterized by high computational costs and memory requirements. This "computational tax" makes them unsuitable for smart surveillance cameras and embedded sensors. There is a pressing need for lightweight architectures that do not sacrifice the ability to handle complex backgrounds and varying crowd densities.
The DR-ResNet Architecture
The proposed Deeply-Recursive ResNet (DR-ResNet) leverages the strengths of Residual Networks (ResNet) while introducing a novel recursive weight-sharing strategy to minimize model size.
The architecture consists of two primary residual modules:
- Residual Module 1: Focuses on extracting low-level features and basic textures. The authors found that recursion at this stage is counterproductive, as early layers require diverse filters to capture fundamental image characteristics.
- Residual Module 2 (Recursive): This module is applied recursively ($y = f(f(f(x)))$). By reusing the same weights for three consecutive passes, the network effectively increases its receptive field and depth to 26 layers without adding new parameters. This captures abstract statistical regularities essential for high-level crowd pattern recognition.
Finally, a $1 \times 1$ convolution aggregates the feature maps into a single density map, which is integrated to produce the final count.
Experimental Evaluation
The model was evaluated on three established benchmarks—ShanghaiTech (Parts A & B) and UCF_CC_50—alongside a new dataset introduced by the authors: Beijing BRT. The Beijing BRT dataset contains 1,280 images from bus rapid transit stations, featuring real-world noise such as shadows, glare, and extreme lighting shifts.
Key Results
- Efficiency: DR-ResNet utilizes only 0.028 million parameters, making it 500 times smaller than Switch-CNN and over 2,000 times smaller than CP-CNN.
- Accuracy: Despite its size, the model achieved a Mean Absolute Error (MAE) of 86.3 on ShanghaiTech Part A and 14.5 on Part B. It outperformed several larger models, including MCNN.
- Robustness: On the Beijing BRT dataset, DR-ResNet achieved a state-of-the-art MAE of 1.39, demonstrating its practical utility for real-world surveillance.
Discussion and Conclusion
DR-ResNet proves that massive parameter counts are not a prerequisite for effective crowd counting. By strategically applying recursion at higher levels of the network, the model maximizes its receptive field while maintaining a tiny memory footprint. While extremely large models like CP-CNN still hold a slight edge in absolute precision on certain datasets due to their capacity to memorize global context, DR-ResNet offers a far more viable path for deployment in embedded AI applications. Future research may extend this recursive approach to other counting tasks, such as traffic monitoring or biological cell analysis.
Summary updated