计算机工程与应用 ›› 2024, Vol. 60 ›› Issue (3): 100-108.DOI: 10.3778/j.issn.1002-8331.2306-0289

• 目标检测专题 • 上一篇    下一篇

改进YOLOv5的无人机航拍图像密集小目标检测算法

陈佳慧,王晓虹   

  1. 1.辽宁石油化工大学 人工智能与软件学院,辽宁 抚顺 113000
    2.辽宁石油化工大学 信息与控制工程学院,辽宁 抚顺 113000
  • 出版日期:2024-02-01 发布日期:2024-02-01

Dense Small Object Detection Algorithm Based on Improved YOLOv5 in UAV Aerial Images

CHEN Jiahui, WANG Xiaohong   

  1. 1.College of Artificial Intelligence and Software, Liaoning Petrochemical University, Fushun, Liaoning 113000, China
    2.College of Information and Control Engineering, Liaoning Petrochemical University, Fushun, Liaoning 113000, China
  • Online:2024-02-01 Published:2024-02-01

摘要: 无人机航拍图像中小目标实例多、尺寸变化剧烈且存在密集遮挡等问题,为解决现有目标检测算法难以检测到航拍图像中的小目标物体,提出了一种针对密集小目标的RDS-YOLOv5检测算法。在YOLOv5的三个检测层上新增一个小目标检测层,以保留更丰富的特征信息,增强网络对小目标特征的提取能力,并改善误检漏检情况;为了提高网络的多尺度特征表征能力以及抑制冲突的产生,设计了具有等级制的残差结构的多尺度特征提取模块C3Res2Block;使用解耦检测头Decoupled Head避免不同任务之间的差异所带来的预测偏差,提升了模型的定位精度和检测精度;采用软化非极大值抑制Soft NMS算法对候选框的置信度进行优化,提高模型对密集小目标的检测精度。通过VisDrone数据集的实验结果表明,与基准模型YOLOv5相比,RDS-YOLOv5在mAP0.5上提升了12.9个百分点,mAP0.5:0.95上提升了10.6个百分点,与目前主流的目标检测算法相比也取得更优的检测精度,能够有效完成无人机航拍图像的密集小目标检测任务。

关键词: 小目标检测层, 残差结构, 解耦, 软化非极大值抑制, YOLOv5

Abstract: UAV aerial images have many instances of small objects, drastic size changes and dense occlusions, etc. To solve the difficulty of existing object detection algorithms to detect small objects in aerial images, an RDS-YOLOv5 detection algorithm for dense small objects is proposed. Adding a new small object detection layer to the three detection layers of YOLOv5 to retain richer feature information, the ability of the network is enhanced to extract small object features and reduce false and miss detection. A multi-scale feature extraction module C3Res2Block with a hierarchical residual structure is designed to improve the multi-scale feature representation capability of network as well as to suppress the generation of conflicts. Decoupled detection head is used to avoid the prediction bias caused by the difference between different tasks, which improves the localization and detection accuracy. The confidence of the anchor box is optimized using the Soft NMS algorithm to improve the detection accuracy of model for dense small objects. The experimental results of VisDrone dataset show that RDS-YOLOv5 improves 12.9 percentage points on mAP0.5 and 10.6 percentage points on mAP0.5:0.95 compared with the baseline model YOLOv5, and achieves better detection accuracy compared with the current mainstream object detection algorithms, which can effectively accomplish the task of dense small object detection in UAV aerial images.

Key words: small object detection layer, residual structure, decoupled, soft non-maximum suppression (NMS) , YOLOv5