Electronic Science and Technology ›› 2025, Vol. 38 ›› Issue (6): 82-88.doi: 10.16180/j.cnki.issn1007-7820.2025.06.012

Previous Articles     Next Articles

Steel Plate Surface Defect Detection Based on Improved YOLOv5

SHEN Tingqian, LU Yujun(), XIN Hao, WU Hanchao, WANG Shinan   

  1. School of Mechanical Engineering,Zhejiang Sci-Tech University,Hangzhou 310018,China
  • Received:2023-12-18 Revised:2024-01-13 Online:2025-06-15 Published:2025-06-24
  • Supported by:
    Key R&D Program of Zhejiang(2022C01242);Zhejiang Sci-Tech University Longgang Research Institute Project(LGYJY2021004)

Abstract:

To meet the requirements of steel plate surface defect detection in most industrial scenarios, a steel plate surface defect detection algorithm based on improved YOLOv5(You Only Look Once version 5) is proposed to solve the problems such as low detection accuracy of steel plate surface defects and failure to detect small target defects. On the basis of YOLOv5, the CBAM(Convolution Block Attention Module) is embedded into the backbone network to improve network detection accuracy. The context enhancement module is added to improve the detection performance of small targets. The NWD(Normalized Wasserstein Distance) metric is used to replace the original IoU(Intersection over Union) metric in YOLOv5, making the network more accurate in identifying crack defects. Experimental results show that the average detection accuracy of the proposed steel plate surface defect detection algorithm for six types of defects, including crack, inclusion, plaque, pitting, pressed iron oxide, scratch, reaches 88.9%, the frame rate reaches 110.4 frame·s-1, and the accuracy of small target crack reaches 75%.

Key words: steel plate surface defect detection, YOLOv5, attention module, context enhancement module, small goals, position deviation, NWD measurement, IoU measurement

CLC Number: 

  • TP391