作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2026, Vol. 52 ›› Issue (7): 220-232. doi: 10.19678/j.issn.1000-3428.0070531

• 计算机视觉与图形图像处理 • 上一篇    下一篇

复杂场景下的改进YOLOv8-n密集行人检测模型

陈海秀1,2, 陈子昂1, 房威志1, 卢海涛1, 黄仔洁1, 成荣1   

  1. 1. 南京信息工程大学自动化学院, 江苏 南京 210044;
    2. 江苏省大气环境与装备技术协同创新中心, 江苏 南京 210044
  • 收稿日期:2024-10-23 修回日期:2025-01-03 出版日期:2026-07-15 发布日期:2025-06-05
  • 作者简介:陈海秀,女,副教授、博士,主研方向为目标检测、图像融合,E-mail:hxchen@nuist.edu.cn;陈子昂、房威志、卢海涛、黄仔洁、成荣,硕士研究生。
  • 基金资助:
    国家自然科学基金(61302189);江苏省研究生科研与实践创新计划项目(SJCX25_0500)。

Improved Model Based on YOLOv8-n for Dense Pedestrian Detection in Complex Scenes

CHEN Haixiu1,2, CHEN Ziang1, FANG Weizhi1, LU Haitao1, HUANG Zijie1, CHENG Rong1   

  1. 1. School of Automation, Nanjing University of Information Science and Technology, Nanjing 210044, Jiangsu, China;
    2. Jiangsu Collaborative Innovation Center of Atmospheric Environment and Equipment Technology, Nanjing 210044, Jiangsu, China
  • Received:2024-10-23 Revised:2025-01-03 Online:2026-07-15 Published:2025-06-05

摘要: 密集行人检测是大型公共场所人流监控系统发展的关键问题之一。针对密集行人检测场景中由于人群遮挡导致的小目标检测困难以及模型轻量化的部署需求,提出一种改进YOLOv8-n的密集行人检测模型CAD-YOLO。嵌入CGDown下采样模块,通过高效的上下文信息提取机制,有效缓解传统目标检测器在处理密集场景时上下文特征易丢失的问题,显著增强模型对密集行人特征的捕获能力以及对小目标的聚焦性能。设计一种BiFPN-Adaptive结构并重构颈部网络,通过自适应融合不同尺度的特征信息,使模型在提取被遮挡行人及中小型目标行人特征时更加精准,同时大幅减少模型的参数量与计算成本。引入动态检测头Dyhead,结合新增的160×160尺度的小目标检测层,使模型能够更加精确地捕获密集小目标区域的细微特征,从而有效缓解遮挡场景中的漏检问题。实验结果显示,相较于YOLOv8-n,CAD-YOLO在Crowd Human和WiderPerson数据集上检测精度分别提升5.1和2.1百分点。同时,CAD-YOLO的参数量为2.9×106,模型计算量为12.3×109,能够满足在边缘设备或移动设备上部署时对低功耗、高精度的要求。

关键词: 密集行人检测, YOLOv8, CGDown下采样模块, BiFPN, 小目标检测头

Abstract: Improving dense pedestrian detection performance is a key issue in the development of crowd monitoring systems for large public places. Existing systems present difficulties in detecting small targets due to crowd occlusion in dense pedestrian detection scenarios and do not adequately meet the deployment requirements for lightweight models. To address these issues, this paper proposes an improved dense pedestrian detection model, CAD-YOLO, based on YOLOv8-n. Introducing a CGDown downsampling module and an efficient context information extraction mechanism helps in effectively mitigating the problem of context feature loss, which is encountered by traditional object detectors when dealing with dense scenes. These inclusions significantly enhances the model's ability to capture dense pedestrian features and focus on small targets. A BiFPN-Adaptive structure is designed, and the neck network is reconstructed, allowing the model to more accurately extract the features of occluded pedestrians as well as small- and medium-sized pedestrians by adaptively fusing feature information at different scales. Further, the introduction of the dynamic detection head Dyhead, combined with a newly added small-target detection layer with a size of 160×160, enables the model to more precisely capture the subtle features of dense small target areas, thereby effectively alleviating the problem of missed detections in occlusion scenarios. Experimental results show that, compared to YOLOv8-n, CAD-YOLO achieves a detection accuracy improvement of 5.1 and 2.1 percentage points on the Crowd Human and WiderPerson datasets, respectively. Additionally, CAD-YOLO has a parameter count of 2.9×106 and model computation of 12.3×109; thus, it satisfies the requirements of low power consumption and high accuracy for deployment on edge devices or mobile devices.

Key words: dense pedestrian detection, YOLOv8, CGDown subsampling module, BiFPN, small target detection head

中图分类号: