| Computer Technology |
|
|
|
|
| Lightweight crowd counting method with multi-scale aggregation and context enhancement |
Zhenhai Zhang( ),Shengcheng Bao,Zheyuan Li |
| School of Automation and Electrical Engineering, Lanzhou Jiaotong University, Lanzhou 730070, China |
|
|
|
Abstract A lightweight crowd counting method with multi-scale aggregation and context enhancement was proposed to address the challenges of multi-scale variations, background interference, and high model complexity in crowd counting tasks. To achieve efficient feature representation, a shallow feature extraction network was constructed based on a lightweight convolutional neural network, and a multi-scale feature fusion module was designed to extract feature information from different receptive fields through a multi-branch structure with stacked small-kernel convolutions. Channel shuffle was used to cross-fuse multi-scale features to mitigate the impact of scale variations. A global-local context module was constructed, where the global branch obtained overall context information and the local branch supplemented crowd feature information, thereby reducing the impact of background interference. Pruning was applied to the trained model to further reduce model complexity. Experimental results on three public datasets show that the method can reduce model size and improve inference speed while maintaining counting accuracy. The proposed method can effectively balance accuracy and efficiency and is suitable for crowd counting tasks in complex environments.
|
|
Received: 21 November 2025
Published: 25 November 2026
|
|
|
多尺度聚合与上下文增强的轻量级人群计数方法
针对人群计数任务中的多尺度变化、背景干扰以及模型复杂度高等挑战,提出多尺度聚合与上下文增强的轻量级人群计数方法. 为实现高效的特征表示,以轻量级卷积神经网络为基础构建浅层特征提取网络,设计多尺度特征融合模块,通过连续小卷积核堆叠的多分支结构提取不同感受野的特征信息. 使用通道混洗交叉融合多尺度特征,缓解尺度变化的影响. 构建全局-局部上下文模块,全局分支获取整体上下文信息,局部分支补充人群的特征信息,降低背景干扰的影响. 对训练完成后的模型进行剪枝,进一步降低模型复杂度. 在3个公开数据集上的实验结果表明,该方法能够在保持计数精度的同时减小模型规模并提升推理速度. 所提方法可以有效平衡精度与效率,适用于复杂环境的人群计数任务.
关键词:
人群计数,
特征提取,
尺度感知,
背景抑制,
剪枝
|
|
| [1] |
Zhou B, Tang X, Wang X. Learning collective crowd behaviors with dynamic pedestrian-agents. International Journal of Computer Vision, 2015, 111 (1): 50- 68.
doi: 10.1007/s11263-014-0735-3
|
|
|
| [2] |
余鹰, 朱慧琳, 钱进, 等. 基于深度学习的人群计数研究综述. 计算机研究与发展, 2021, 58 (12): 2724- 2747. Yu Ying, Zhu Huilin, Qian Jin, et al. Survey on deep learning based crowd counting. Journal of Computer Research and Development, 2021, 58 (12): 2724- 2747.
doi: 10.7544/issn1000-1239.2021.20200699
|
|
|
| [3] |
Khan M A, Menouar H, Hamila R. Revisiting crowd counting: state-of-the-art, trends, and future perspectives. Image and Vision Computing, 2023, 129, 104597.
doi: 10.1016/j.imavis.2022.104597
|
|
|
| [4] |
张世辉, 赵维勃, 王磊, 等. MSIANet: 多尺度交互注意力人群计数网络. 电子与信息学报, 2023, 45 (6): 2236- 2245. Zhang Shihui, Zhao Weibo, Wang Lei, et al. MSIANet: multi-scale interactive attention crowd counting network. Journal of Electronics and Information Technology, 2023, 45 (6): 2236- 2245.
doi: 10.11999/jeit220644
|
|
|
| [5] |
Song Q, Wang C, Jiang Z, et al. Rethinking counting and localization in crowds: a purely point-based framework [C]//Proceedings of the IEEE/CVF International Conference on Computer Vision. Montreal. IEEE, 2021: 3345–3354.
|
|
|
| [6] |
Gong S, Yao Z, Zuo W, et al. Spatially adaptive pyramid feature fusion for scale-aware crowd counting. Pattern Recognition, 2025, 168, 111832.
doi: 10.1016/j.patcog.2025.111832
|
|
|
| [7] |
Zhang Y, Zhou D, Chen S, et al. Single-image crowd counting via multi-column convolutional neural network [C]// Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Las Vegas: IEEE, 2016: 589–597.
|
|
|
| [8] |
Liu W, Salzmann M, Fua P. Context-aware crowd counting [C]// Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. Long Beach: IEEE, 2019: 5094–5103.
|
|
|
| [9] |
杨天乐, 李玲霞, 张为. 基于自注意力机制的双分支密集人群计数算法. 浙江大学学报(工学版), 2023, 57 (10): 1955- 1965. Yang Tianle, Li Lingxia, Zhang Wei. Dual-branch crowd counting algorithm based onself-attention mechanism. Journal of Zhejiang University (Engineering Science), 2023, 57 (10): 1955- 1965.
doi: 10.3785/j.issn.1008-973X.2023.10.005
|
|
|
| [10] |
Li Y, Zhang X, Chen D. CSRNet: dilated convolutional neural networks for understanding the highly congested scenes [C]// Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. Salt Lake City. IEEE, 2018: 1091–1100.
|
|
|
| [11] |
Ma Z, Wei X, Hong X, et al. Bayesian loss for crowd count estimation with point supervision [C]// Proceedings of the IEEE/CVF International Conference on Computer Vision. Seoul: IEEE, 2019: 6141–6150.
|
|
|
| [12] |
Wan J, Chan A B. Modeling noisy annotations for crowd counting [C]// Proceedings of the 34th International Conference on Neural Information Processing Systems. Vancouver: ACM, 2020: 3386–3396.
|
|
|
| [13] |
Liu Y, Hu Y, Cao G, et al. SENet: super-resolution enhancement network for crowd counting. Pattern Recognition, 2025, 162, 111420.
doi: 10.1016/j.patcog.2025.111420
|
|
|
| [14] |
Wang P, Gao C, Wang Y, et al. MobileCount: an efficient encoder-decoder framework for real-time crowd counting. Neurocomputing, 2020, 407, 292- 299.
doi: 10.1016/j.neucom.2020.05.056
|
|
|
| [15] |
Zhu F, Yan H, Chen X, et al. Real-time crowd counting via lightweight scale-aware network. Neurocomputing, 2022, 472, 54- 67.
doi: 10.1016/j.neucom.2021.11.099
|
|
|
| [16] |
Xi M, Yan H. Lightweight multi-scale network with attention for accurate and efficient crowd counting. The Visual Computer: International Journal of Computer Graphics, 2023, 40 (6): 4553- 4566.
|
|
|
| [17] |
Ma N, Zhang X, Zheng H T, et al. ShuffleNet V2: practical guidelines for efficient CNN architecture design [C]// Proceedings of the European Conference on Computer Vision. Munich: Springer, 2018: 122–138.
|
|
|
| [18] |
Zhang X, Song Y, Song T, et al. AKConv: convolutional kernel with arbitrary sampled shapes and arbitrary number of parameters [PP/OL]. arXiv (2023-11-20)[2026-01-26]. https://arxiv.org/abs/2311.11587v1.
|
|
|
| [19] |
Ho J, Kalchbrenner N, Weissenborn D, et al. Axial attention in multidimensional transformers [PP/OL]. arXiv (2019-12-20)[2026-01-26]. https://doi.org/10.48550/arXiv.1912.12180.
|
|
|
| [20] |
Wang B, Liu H, Samaras D, et al. Distribution matching for crowd counting [C]// Proceedings of the 34th International Conference on Neural Information Processing Systems. Vancouver: ACM, 2020: 10322–10333.
|
|
|
| [21] |
Idrees H, Tayyab M, Athrey K, et al. Composition loss for counting, density map estimation and localization in dense crowds [C]// Proceedings of the European Conference on Computer Vision. Munich: Springer, 2018: 544–559.
|
|
|
| [22] |
Wang Q, Gao J, Lin W, et al. NWPU-crowd: a large-scale benchmark for crowd counting and localization. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2021, 43 (6): 2141- 2149.
doi: 10.1109/tpami.2020.3013269
|
|
|
| [23] |
Ma Y, Sanchez V, Guha T. ZIP: scalable crowd counting via zero-inflated Poisson modeling [PP/OL]. V3. arXiv (2025-07-31)[2026-01-26]. https://doi.org/10.48550/arXiv.2506.19955.
|
|
|
| [24] |
Shi X, Li X, Wu C, et al. A real-time deep network for crowd counting [C]// Proceedings of the ICASSP 2020 - 2020 IEEE International Conference on Acoustics, Speech and Signal Processing. Barcelona: IEEE, 2020: 2328–2332.
|
|
|
| [25] |
Jiang G, Wu R, Huo Z, et al. LigMSANet: lightweight multi-scale adaptive convolutional neural network for dense crowd counting. Expert Systems with Applications, 2022, 197, 116662.
doi: 10.1016/j.eswa.2022.116662
|
|
|
| [26] |
Chen Y, Zhao H, Gao M, et al. A weakly supervised hybrid lightweight network for efficient crowd counting. Electronics, 2024, 13 (4): 723.
doi: 10.3390/electronics13040723
|
|
|
| [27] |
Zhao Z, Wen Y, Yang S, et al. Real-time crowd counting for embedded systems with lightweight architecture. Vicinagearth, 2025, 2 (1): 13.
doi: 10.1007/s44336-025-00025-w
|
|
|
| [28] |
Pan T, Jia X. Local information matters: a rethink of crowd counting [PP/OL]. arXiv (2025-08-23)[2026-01-26]. https://doi.org/10.48550/arXiv.2508.16970.
|
|
|
| [29] |
Chen I H, Chen W T, Liu Y W, et al. Improving point-based crowd counting and Localization based on Auxiliary point guidance [C]// European Conference on Computer Vision. Cham: Springer, 2025: 428–444.
|
|
|
|
Viewed |
|
|
|
Full text
|
|
|
|
|
Abstract
|
|
|
|
|
Cited |
|
|
|
|
| |
Shared |
|
|
|
|
| |
Discussed |
|
|
|
|