J Shanghai Jiaotong Univ Sci ›› 2026, Vol. 31 ›› Issue (2): 334-347.doi: 10.1007/s12204-024-2751-y

• Automation & Computer Technologies • Previous Articles     Next Articles

YOLO-VSF: An Improved YOLO Model by Incorporating Attention Mechanism for Object Detection in Traffic Scenes

YOLO-VSF:一个引入注意机制的改进YOLO模型用于交通场景目标检测

苗军1,龚少翠1,邓永强2,梁浩2,李娟娟2,齐洪钢3,张茂炫1   

  1. 1. School of Computer Science, Beijing Information Science and Technology University, Beijing 100101, China; 2. Beijing VanJee Technology Co., Ltd., Beijing 100193, China; 3. School of Computer Science and Technology, University of Chinese Academy of Sciences, Beijing 100049, China
  2. 1. 北京信息科技大学 计算机学院,北京 100101;2. 北京万集科技股份有限公司,北京 100193;3. 中国科学院大学 计算机科学与技术学院,北京 100049
  • Received:2023-08-03 Accepted:2023-11-16 Online:2026-04-01 Published:2024-07-04

Abstract: Intelligent transportation and autonomous driving systems have made urgent demands on the techniques with high performance on object detection in traffic scenes. This paper proposes an improved object detection model YOLO-VSF over the YOLOv4 model, which is a representative work with excellent performance among YOLO series of object detection models. The main improvement measures include: The backbone feature extraction network CSPDarknet53 of YOLOv4 is replaced with VGG16 to improve the feature extraction capability; SENet attention mechanism is incorporated to improve the salient and correlation feature representation capability; Focal Loss is integrated into the loss function to overcome the sample imbalance problem. In addition, the detection performance of small targets is improved by increasing the resolution of input images. Experimental results show that on the VanJee traffic image dataset provided by Beijing VanJee Technology Co., Ltd., the proposed YOLO-VSF model achieves an average mean accuracy (mAP) of 92.21 percentage points, which improves the mAP by 3.04 percentage points compared with the YOLOv4 model while maintaining the detection speed of the original model. On the UA-DETRAC dataset, the average accuracy of YOLO-VSF is close to that of the latest YOLOv7 model with the number of parameters reduced by 1.329 ×107. The proposed method can provide a support for object detection in traffic scenes.

Key words: object detection, traffic scenes, backbone network, attention mechanism, Focal Loss

摘要: 智能交通和自动驾驶系统对高性能的交通场景目标检测技术提出了迫切要求。YOLOv4模型是YOLO系列目标检测模型中性能优异的代表性工作,本文在其基础上提出了一种改进的用于交通场景的目标检测模型YOLO-VSF。主要改进措施有:用VGG16取代YOLOv4的骨干特征提取网络CSPDarknet53,提高特征提取能力;引入SENet注意机制,提高显著性和相关性特征表征能力;将Focal Loss集成到损失函数中,克服样本不平衡问题。此外,通过增加输入图像的分辨率,提高了小目标的检测性能。实验结果表明:在北京万集科技股份有限公司提供的万集交通图像数据集上,所提出的YOLO-VSF模型在保持原模型YOLOv4检测速度的前提下,平均准确率(mAP)达到了92.21%,比原模型提高了3.04%;在UA-DETRAC数据集上,YOLO-VSF的平均精度接近最新的YOLOv7模型,但在模型参数量上减少了1.329×107。所提方法为交通场景中的目标检测提供了支持。

关键词: 目标检测,交通场景,主干网络,注意机制,Focal损失

CLC Number: