首页|期刊导航|现代电子技术|一种适用于交通流多目标检测的CDD-YOLOv8n模型

一种适用于交通流多目标检测的CDD-YOLOv8n模型OA

CDD-YOLOv8n model applicable to multi-object detection of traffic flow

中文摘要英文摘要

针对设备资源受限以及复杂交通场景中多目标检测效率和精度低的问题,文中提出一种改进型多目标检测模型CDD-YOLOv8n.首先,采用CAC2f模块替换传统的C2f,有效聚合不同层次的特征,提高模型对不同尺度目标的检测能力;其次,在骨干网和颈部网末端融入改进型注意力机制DWECA,采用深度可分离卷积(DWConv)分解操作改进ECA,通过调整卷积核大小、步长和空洞率等参数,增强模型对不同尺度特征的提取和融合能力,同时降低模型的复杂度;最后,在颈部网用动态采样(DySample)替换上采样(UpSample),根据目标大小和位置自动调整采样集,增强模型对大小目标的检测能力.实验结果表明,与YOLOv8n原模型相比,所提算法在P、R及mAP@0.5上分别提高了4.7%、4.4%、4%,模型尺寸减小了0.3 MB,检测速度提高了5 f/s.该模型在减少参数量与计算量的同时,能快速、准确地检测不同场景的多目标,还能有效检测遮挡小目标,将模型与DeepSort-ID算法结合能实现流量统计和车辆追踪,提升交通管理效率与安全性.

In view of the limited device resources and the low efficiency and accuracy of multi-object detection in complex traffic scenarios,this paper proposes an improved multi-object detection model CDD-YOLOv8n.Firstly,the traditional C2f is replaced with the CAC2f module to effectively aggregate features at different levels and improve the model 's detection capability for objects of varying scales.Secondly,the improved attention mechanism DWECA is integrated into the ends of the backbone network and neck network.The efficient channel attention(ECA)is enhanced by adopting the decomposition operation of depthwise separable convolution.By adjusting parameters such as the size of the convolution kernel,the step size,and the dilation rate,the model's ability to extract and fuse features of different scales is enhanced,while the model complexity is reduced.Finally,in the neck network,UpSample is replaced by DySample,which automatically adjusts the sampling set according to the size and position of the object,enhancing the model's detection ability for objects of different sizes.The experiments show that compared with the original YOLOv8n model,the algorithm proposed in this paper improves precision,recall rate,and mAP@0.5 by 4.7%,4.4%,and 4%,respectively,reduces the model size by 0.3 MB,and improves model detection speed by 5 f/s.This model can quickly and accurately detect multiple objects in different scenes while reducing the computational burden and complexity.It can also effectively detect occluded small objects.By combining this model with the DeepSort-ID algorithm,traffic statistics and vehicle tracking can be achieved,improving the efficiency and safety of traffic management.

林梅燕;廖一鹏

福建师范大学协和学院,福建 福州 350117福州大学 物理与信息工程学院,福建 福州 350108

信息技术与安全科学

交通流图像多目标检测YOLOv8n改进型ECA机制DySample上下文聚合模块深度可分离卷积

traffic flow imagemulti-object detectionYOLOv8nimproved ECA mechanismDySamplecontext aggregation moduledepthwise separable convolution

《现代电子技术》 2026 (13)

164-171,8

国家自然科学基金面上项目(62271149)国家自然科学基金面上项目(62271151)福建省自然科学基金面上项目(2019J01224)福建省教育厅项目(JAT220476)

10.16652/j.issn.1004-373X.2026.13.024

评论