现代制造工程 ›› 2024, Vol. 526 ›› Issue (7): 117-125.doi: 10.16731/j.cnki.1671-3133.2024.07.015

• 仪器仪表/检测/监控 • 上一篇    下一篇

基于改进YOLOv7的钢卷端面缺陷检测*

孙铁强, 秦愿伟, 宋超, 肖鹏程   

  1. 华北理工大学人工智能学院,唐山 063210
  • 收稿日期:2023-08-07 出版日期:2024-07-18 发布日期:2024-07-30
  • 作者简介:孙铁强,博士,副教授,主要研究方向为图像处理、深度学习。秦愿伟,硕士研究生,主要研究方向为人工智能技术及应用。宋超,博士,讲师,主要研究方向为机器学习。肖鹏程,博士,副教授,主要研究方向为炼钢连铸智能化控制。E-mail:837913738@qq.com
  • 基金资助:
    *河北省“三三三人才工程”资助项目(A202102002);2023年唐山市重点研发项目(23140204A)

The end face of steel coil defect detection based on improved YOLOv7

SUN Tieqiang, QIN Yuanwei, SONG Chao, XIAO Pengcheng   

  1. College of Artificial Intelligence,North China University of Science and Technology,Tangshan 063210,China
  • Received:2023-08-07 Online:2024-07-18 Published:2024-07-30

摘要: 针对钢卷端面纹理复杂、缺陷较小,以及YOLOv7算法识别速度较慢、小目标检测率较低等问题,提出一种改进的 YOLOv7目标检测算法。对YOLOv7算法骨干网络中的ELAN结构进行改进,通过加入PConv卷积层设计了一种新的结构,以减少模型复杂度,提高模型的检测速度。由于小目标检测中容易出现漏检的现象,设计一种新的注意力机制CSCA,提高网络对小尺度目标的敏感度。在此基础上,使用WIoUv2损失函数替换原YOLOv7算法网络中的CIoU损失函数来优化损失函数,提高网络的鲁棒性。在自制的钢卷端面缺陷数据集上进行试验,结果表明改进的YOLOv7算法的mAP@0.5提升了4.1 %,FPS提升了10.84 f/s,检测效果优于原算法。

关键词: 钢卷端面缺陷检测, YOLOv7算法, 注意力机制, 损失函数

Abstract: An improved YOLOv7 object detection algorithm was proposed to address the issues of complex texture and small defects on the end face of steel coils,as well as slow recognition speed and low detection rate of small targets using YOLOv7 algorithm. The ELAN structure in the YOLOv7 algorithm backbone network was improved by adding a PConv convolutional layer to design a new structure to reduce the model complexity and improve the model detection speed. Due to the tendency to miss detection in small object detection,a new attention mechanism CSCA was designed to improve the network′s sensitivity to small-scale objects. On this basis,WIoUv2 loss function was used to replace the CIoU loss function in the original YOLOv7 algorithm network to optimize the loss function and improve the robustness of the network.Experiments were conducted on a self-made dataset of steel coil end face defects,and the results showed that the improved YOLOv7 algorithm improved mAP@0.5 by 4.1 % and FPS by 10.84 f/s,with better detection performance than the original algorithm.

Key words: the end face of steel coil defect detection, YOLOv7 algorithm, attention mechanism, loss function

中图分类号: 

版权所有 © 《现代制造工程》编辑部 
地址:北京市东城区东四块玉南街28号 邮编:100061 电话:010-67126028 电子信箱:2645173083@qq.com
本系统由北京玛格泰克科技发展有限公司设计开发 技术支持:support@magtech.com.cn