复杂场景下的改进YOLOv7-tiny安全帽佩戴检测算法
DOI:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

科技创新2030—“新一代人工智能”基金资助重大项目(2018AAA0100400);湖南省自然科学基金资助项目(2021JJ50058,2022JJ50051)


Improved YOLOv7-tiny Helmet Wearing Detection Algorithm in Complex Scenes
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    针对建筑工地复杂场景下安全帽图像因背景信息复杂、光照强度和拍摄角度不同等特点,导致YOLOv7-tiny安全帽检测算法识别精度低,易出现漏检以及误检等问题,提出了一种MCWE-YOLO安全帽检测算法。通过改进Mosaic方法进行数据增强,丰富数据多样性;将CoordAttention注意力模块嵌入YOLOv7-tiny模型中,以增强模型对小目标语义信息的提取能力和全局感知能力;提出一种新的FR-ODConv动态卷积代替Head中的静态卷积,并自适应动态调整卷积核的权值,使模型能够更好地提取不同形状和大小安全帽的关键特征;改进算法的损失函数,以聚焦于普通质量的锚框,提高模型检测整体性能;提出用Res-EDH解耦头结构替换原始的Detect结构,对分类和回归进行解耦,在提升精度的同时降低了延时。最后使用开源GDUT-HWD安全帽数据集进行训练测试,实验结果表明,MCWE-YOLO算法的mAP达到87.3%,相比原始YOLOv7-tiny算法提升了1.6%,对比其他算法的最优值提升了2.1%,能有效提高安全帽检测精度,实现建筑工地安全帽的自动化检测。

    Abstract:

    Aiming at the characteristics of helmet images in complex scenes of construction sites, such as complex background information, different light intensity and shooting angles, which lead to low recognition accuracy of YOLOv7-tiny helmet detection algorithm, and prone to missed detection and false detection, a MCWE-YOLO helmet detection algorithm has been proposed. Data enhancement is performed by improving the Mosaic method to enrich data diversity; the CoordAttention module is embedded in the YOLOv7-tiny model to enhance the model’s ability to extract small target semantic information and global perception capabilities; a new FR-ODConv dynamic convolution is proposed to replace the static convolution in the head, and the weights of the convolution kernel are adaptively and dynamically adjusted, so that the model can better extract the key features of helmets of different shapes and sizes; the loss function of the algorithm is improved to focus on anchor boxes of ordinary quality and improve the overall detection performance of the model; a new Res-EDH decoupling head structure is proposed to replace the original detect structure, decouple classification and regression, and reduce latency while improving accuracy. The open source GDUT-HWD helmet dataset was used for training and testing. The experimental results show that the mAP of the MCWE-YOLO algorithm reaches 87.3%, which is 1.6% higher than the original YOLOv7-tiny algorithm and 2.1% higher than the optimal value of other algorithms. It can effectively improve the accuracy of helmet detection and realize the automatic detection of helmets on construction sites.

    参考文献
    相似文献
    引证文献
引用本文

雷源毅,朱文球,廖 欢.复杂场景下的改进YOLOv7-tiny安全帽佩戴检测算法[J].湖南工业大学学报,2024,38(6):93-100.

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2023-10-18
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2024-09-13
  • 出版日期:
文章二维码