electronic information, small object detection, occlusion detection, YOLOv4 algorithm, attention mechanism ,"/> 基于 YOLOv4 算法在车辆检测中的应用

吉林大学学报(信息科学版) ›› 2023, Vol. 41 ›› Issue (2): 281-291.

• • 上一篇    下一篇

基于 YOLOv4 算法在车辆检测中的应用

王婷婷1 , 戴金龙1 , 孙振轩1 , 陈建玲2 , 孙勤江2   

  1. (1. 东北石油大学 电气信息工程学院, 黑龙江 大庆 163318; 2. 中海石油(中国)有限公司 天津分公司, 天津 300459)
  • 收稿日期:2022-03-19 出版日期:2023-04-13 发布日期:2023-04-16
  • 作者简介:王婷婷(1982— ), 女, 黑龙江大庆人,东北石油大学教授, 博士生导师, 主要从事人工智能、 复杂系统、 鲁棒控制和 声发射信号处理等研究, (Tel)86-13644595427(E-mail)wangtingting@ nepu. edu. cn
  • 基金资助:
    国家自然科学基金资助项目(52074088; 52174022; 51574088; 51404073); 东北石油大学省杰青后备人才基金资助项目 ( SJQHB201802; SJQH202002); 2020 年度东北石油大学西部油田开拓专项基金资助项目(XBYTKT202001); 黑龙江省博士 后科研启动基金资助项目(LBH-Q20074; LBH-Q21086) 

Application of YOLOv4 Algorithm in Vehicle Detection

WANG Tingting 1 , DAI Jinlong 1 , SUN Zhenxuan 1 , CHEN Jianling 2 , SUN Qingjiang   

  1.  (1. School of Electrical and Information Engineering, Northeast Petroleum University, Daqing 163318, China; 2. Tianjin Branch, China National Offshore Oil Corporation, Tianjin 300459, China)
  • Received:2022-03-19 Online:2023-04-13 Published:2023-04-16

摘要: 为解决车辆识别中由于拍摄角度和距离的不同, 导致成像后的车辆尺寸较小和车辆存在不同程度的 遮挡, 从而产生车辆的错检和漏检等问题, 在单阶段目标检测网络 YOLOv4(You Only Look Once version 4)算法 的基础上, 提出了基于注意力机制的递归 YOLOv4 目标检测算法, 即 RC-YOLOv4(Recursive and CBAM You Only Look Once version 4 ) 算法。 为提高算法对成像后小尺寸 车 辆 的 检 测 能 力, 在 YOLOv4 算 法 加 入 CBAM (Convolutional Block Attention Module)模块, 该模块结合了通道和空间注意力机制, 能帮助网络模型更加关注检 测图像中的重点信息和小目标信息。 针对车辆部分遮挡的检测问题, 采用递归特征金字塔(RFP: Recursive Feature Pyramid)结构加强模型对深层特征信息提取能力, RFP 结构类似于选择性增强或抑制神经元激活的 人类视觉感知, 将主干网络提取到的特征递归融合, 然后反馈给主干网络, 多次特征融合增强网络对上下文 语义信息的提取整合能力。 提高了对遮挡车辆的检测精度。 实验结果表明, 在自制车辆检测数据集上, RC-YOLOv4算法相比于 YOLOv4 在平均精度均指标上提高了 12. 69% , 同时检测速度也能满足实时性要求。

关键词: 电子信息, 小目标检测, 遮挡检测, YOLOv4 算法, 注意力机制

Abstract:  In vehicle recognition, due to different shooting angles and distances, the size of the imaged vehicle is smaller and the vehicle has different degrees of occlusion, resulting in detection error and missed detection. In order to solve this problem, based on the single stage target detection network YOLOv4(You Only Look Once version 4) algorithm, a recursive YOLOv4 target detection algorithm is proposed based on attention mechanism, namely RC-YOLOv4 algorithm. In order to improve the detection capability of the algorithm for small size vehicles after imaging, the CBAM ( Convolutional Block Attention Module ) module is added to YOLOv4 algorithm. This module combines the channel and spatial attention mechanism, which can help the network model pay more attention to the key information and small target information in the detected image. For the detection of partial occlusion of vehicles, a RFP(Recursive Feature Pyramid) structure is adopted to enhance the model’s ability to extract deep feature information. The RFP structure is similar to the human visual perception that selectively enhances or inhibits the activation of neurons. The features extracted from the backbone network are recursively fused and then fed back to the backbone network. Multiple feature fusion improves the network’s ability to extract and integrate contextual semantic information. It improves the detection accuracy of occluded vehicles. The experimental results show that the average precision of RC-YOLOv4(Recursive and CBAM You Only Look Once version 4 ) algorithm is 12. 69% higher than YOLOv4 algorithm on the self-made vehicle detection data set, and the detection speed can also meet the real-time requirements.

Key words: electronic information')">

electronic information, small object detection, occlusion detection, YOLOv4 algorithm, attention mechanism

中图分类号: 

  • TP391