Research on Optimization of YOLOv5s Detection Algorithm for Steel Surface Defect

被引:1
作者
Xu, Hongjun [1 ]
Tang, Ziqiang [1 ]
Zhang, Jindong [2 ]
Zhu, Peihua [3 ]
机构
[1] State Grid Jiangsu Electric Engineering Consulting Co., Ltd., Nanjing
[2] College of Civil Engineering, Tongji University, Shanghai
[3] College of Safety Engineering and Emergency Management, Shijiazhuang Tiedao Universtiy, Shijiazhuang
关键词
attention mechanism; defect detection; feature extraction; spatial pyramid pooling-cross stage partial channel (SPPCSPC); YOLOv5;
D O I
10.3778/j.issn.1002-8331.2307-0275
中图分类号
TB3 [工程材料学];
学科分类号
0805 ; 080502 ;
摘要
Aiming at the problems that YOLOv5 has insufficient ability to extract complex features of steel defects and the detect results are susceptible to background environment, a steel surface defect detection algorithm based on YOLOv5s is proposed. This algorithm introduces CBAM attention into C3 to enhance attention to key information. It utilizes the CARAFE to replace the nearest neighbor interpolation algorithm, reducing the loss of feature information caused by upsampling. It proposes to replace the SPPF in YOLOv5 with the SPPCPSC, which can improve the expressive ability of the network. The experimental results show that the mAP@0.5 of the proposed YOLOv5s improved model on the NEU-DET dataset reaches 76.6%, which is 2.3 percentage points higher than that of YOLOv5s. The model parameters are basically the same as YOLOv5s. The CARAFE module is the main reason for the slowdown of the improved model detection speed. In addition, the combination of the CARAFE and the SPPCSPC_group has a good effect on the detection accuracy of the model. © 2024 Journal of Computer Engineering and Applications Beijing Co., Ltd.; Science Press. All rights reserved.
引用
收藏
页码:306 / 314
页数:8
相关论文
共 28 条
[1]  
FU G Z, SUN P Z, ZHU W B, Et al., A deep-learning-based approach for fast and robust steel surface defects classification, Optics and Lasers in Engineering, 121, pp. 397-405, (2019)
[2]  
LV X M, DUAN F J, JIANG J J, Et al., Deep metallic surface defect detection: the new benchmark and detection network, Sensors: Basel, Switzerland, 20, 6, (2020)
[3]  
VANNOCCI M, RITACCO A, CASTELLANO A, Et al., Flatness defect detection and classification in hot rolled steel strips using convolutional neural networks, Advances in computational intelligence, pp. 220-234, (2019)
[4]  
HAN C J, LI G Y, LIU Z., Two-stage edge reuse network for salient object detection of strip steel surface defects, IEEE Transactions on Instrumentation and Measurement, 71, pp. 1-12, (2022)
[5]  
WANG H Y, WANG J P, LUO F H., Study on surface defect detection of metal sheet and strip using faster R- CNN with multilevel feature, Mechanical Science and Technology for Aerospace Engineering, 40, 2, pp. 262-269, (2021)
[6]  
LI J Y, SU Z F, GENG J H, Et al., Real-time detection of steel strip surface defects based on improved YOLO detection network, IFAC PapersOnLine, 51, 21, pp. 76-81, (2018)
[7]  
CHEN J Y, DUAN X H, ZHU W., Research on metal surface defect detection by improved YOLOv3, Computer Engineering and Applications, 57, 19, pp. 252-258, (2021)
[8]  
KOU X P, LIU S J, CHENG K Q, Et al., Development of a YOLO-V3-based model for detecting defects on steel strip surface, Measurement, 182, (2021)
[9]  
CAO Y Q, WU M L, XU L., Steel surface defect detection based on improved YOLOv5 algorithm, Journal of Graphics, 44, 2, pp. 335-345, (2023)
[10]  
LU H B., Research on steel surface defect detection based on YOLOv5s, (2023)