A Hybrid Multi-Scale Transformer-CNN UNet for Crowd Counting
Crowd counting is a critical computer vision task with significant applications in public security and smart city systems. While deep learning has markedly improved accuracy, persistent challenges include extreme scale variations, severe occlusion, and complex background clutter. To address these issues, we propose a novel Hybrid Multi-Scale Transformer-CNN U-shaped Network (HMSTUNet). Our key contributions are: a hybrid architecture integrating a Multi-Scale Vision Transformer (MSViT) for capturing long-range dependencies and a Dynamic Convolutional Attention Block (DCAB) for modeling local density patterns; and a U-shaped encoder-decoder with skip connections for effective multi-level feature fusion. Extensive evaluations on five public benchmarks show that HMSTUNet achieves the best Mean Absolute Error (MAE) on all five datasets and the best Mean Squared Error (MSE) on three. It sets new state-of-the-art records, attaining MAE/MSE of 49.1/77.8 on SHA, 6.2/10.3 on SHB, 142.1/192.7 on UCF_CC_50, 77.9/132.5 on UCF-QNRF, and 43.2/119.6 on NWPU-Crowd. These results demonstrate the model's strong robustness and generalization capability.
Authors
- Shufan Peng
- Kai Zhao (ORCID: https://orcid.org/0000-0002-5448-9919)
- Tianliang Lu
- Chunhao He
Institutions
- China People's Public Security University (CN)
- Beijing Academy of Artificial Intelligence (CN)
- Zhengzhou Railway Vocational & Technical College (CN)
Publication Details
- Journal
- Sensors
- Published
- 2026-01-04
- DOI
- https://doi.org/10.3390/s26010333
- Primary Topic
- Video Surveillance and Tracking Methods
- Type
- article
- Field-Weighted Citation Impact
- 0.00