LSD-YOLOv5: A Steel Strip Surface Defect Detection Algorithm Based on Lightweight Network and Enhanced Feature Fusion Mode
In the field of metallurgy, the timely and accurate detection of surface defects on metallic materials is a crucial quality control task. However, current defect detection approaches face challenges with large model parameters and low detection rates. To address these issues, this paper proposes a l...
Main Authors: | , , , , , , |
---|---|
Format: | Article |
Language: | English |
Published: |
MDPI AG
2023-07-01
|
Series: | Sensors |
Subjects: | |
Online Access: | https://www.mdpi.com/1424-8220/23/14/6558 |
_version_ | 1827731708989931520 |
---|---|
author | Huan Zhao Fang Wan Guangbo Lei Ying Xiong Li Xu Chengzhi Xu Wen Zhou |
author_facet | Huan Zhao Fang Wan Guangbo Lei Ying Xiong Li Xu Chengzhi Xu Wen Zhou |
author_sort | Huan Zhao |
collection | DOAJ |
description | In the field of metallurgy, the timely and accurate detection of surface defects on metallic materials is a crucial quality control task. However, current defect detection approaches face challenges with large model parameters and low detection rates. To address these issues, this paper proposes a lightweight recognition model for surface damage on steel strips, named LSD-YOLOv5. First, we design a shallow feature enhancement module to replace the first Conv structure in the backbone network. Second, the Coordinate Attention mechanism is introduced into the MobileNetV2 bottleneck structure to maintain the lightweight nature of the model. Then, we propose a smaller bidirectional feature pyramid network (BiFPN-S) and combine it with Concat operation for efficient bidirectional cross-scale connectivity and weighted feature fusion. Finally, the Soft-DIoU-NMS algorithm is employed to enhance the recognition efficiency in scenarios where targets overlap. Compared with the original YOLOv5s, the LSD-YOLOv5 model achieves a reduction of 61.5% in model parameters and a 28.7% improvement in detection speed, while improving recognition accuracy by 2.4%. This demonstrates that the model achieves an optimal balance between detection accuracy and speed, while maintaining a lightweight structure. |
first_indexed | 2024-03-11T00:39:43Z |
format | Article |
id | doaj.art-17030815b53b40f7b81654a1ede9b13a |
institution | Directory Open Access Journal |
issn | 1424-8220 |
language | English |
last_indexed | 2024-03-11T00:39:43Z |
publishDate | 2023-07-01 |
publisher | MDPI AG |
record_format | Article |
series | Sensors |
spelling | doaj.art-17030815b53b40f7b81654a1ede9b13a2023-11-18T21:19:24ZengMDPI AGSensors1424-82202023-07-012314655810.3390/s23146558LSD-YOLOv5: A Steel Strip Surface Defect Detection Algorithm Based on Lightweight Network and Enhanced Feature Fusion ModeHuan Zhao0Fang Wan1Guangbo Lei2Ying Xiong3Li Xu4Chengzhi Xu5Wen Zhou6School of Computer Science, Hubei University of Technology, Wuhan 430068, ChinaSchool of Computer Science, Hubei University of Technology, Wuhan 430068, ChinaSchool of Computer Science, Hubei University of Technology, Wuhan 430068, ChinaSchool of Computer Science, Hubei University of Technology, Wuhan 430068, ChinaSchool of Computer Science, Hubei University of Technology, Wuhan 430068, ChinaSchool of Computer Science, Hubei University of Technology, Wuhan 430068, ChinaSchool of Computer Science, Hubei University of Technology, Wuhan 430068, ChinaIn the field of metallurgy, the timely and accurate detection of surface defects on metallic materials is a crucial quality control task. However, current defect detection approaches face challenges with large model parameters and low detection rates. To address these issues, this paper proposes a lightweight recognition model for surface damage on steel strips, named LSD-YOLOv5. First, we design a shallow feature enhancement module to replace the first Conv structure in the backbone network. Second, the Coordinate Attention mechanism is introduced into the MobileNetV2 bottleneck structure to maintain the lightweight nature of the model. Then, we propose a smaller bidirectional feature pyramid network (BiFPN-S) and combine it with Concat operation for efficient bidirectional cross-scale connectivity and weighted feature fusion. Finally, the Soft-DIoU-NMS algorithm is employed to enhance the recognition efficiency in scenarios where targets overlap. Compared with the original YOLOv5s, the LSD-YOLOv5 model achieves a reduction of 61.5% in model parameters and a 28.7% improvement in detection speed, while improving recognition accuracy by 2.4%. This demonstrates that the model achieves an optimal balance between detection accuracy and speed, while maintaining a lightweight structure.https://www.mdpi.com/1424-8220/23/14/6558surface defect detectionYOLOv5sStem blockMobileNetV2 bottleneckmulti-scale feature fusion |
spellingShingle | Huan Zhao Fang Wan Guangbo Lei Ying Xiong Li Xu Chengzhi Xu Wen Zhou LSD-YOLOv5: A Steel Strip Surface Defect Detection Algorithm Based on Lightweight Network and Enhanced Feature Fusion Mode Sensors surface defect detection YOLOv5s Stem block MobileNetV2 bottleneck multi-scale feature fusion |
title | LSD-YOLOv5: A Steel Strip Surface Defect Detection Algorithm Based on Lightweight Network and Enhanced Feature Fusion Mode |
title_full | LSD-YOLOv5: A Steel Strip Surface Defect Detection Algorithm Based on Lightweight Network and Enhanced Feature Fusion Mode |
title_fullStr | LSD-YOLOv5: A Steel Strip Surface Defect Detection Algorithm Based on Lightweight Network and Enhanced Feature Fusion Mode |
title_full_unstemmed | LSD-YOLOv5: A Steel Strip Surface Defect Detection Algorithm Based on Lightweight Network and Enhanced Feature Fusion Mode |
title_short | LSD-YOLOv5: A Steel Strip Surface Defect Detection Algorithm Based on Lightweight Network and Enhanced Feature Fusion Mode |
title_sort | lsd yolov5 a steel strip surface defect detection algorithm based on lightweight network and enhanced feature fusion mode |
topic | surface defect detection YOLOv5s Stem block MobileNetV2 bottleneck multi-scale feature fusion |
url | https://www.mdpi.com/1424-8220/23/14/6558 |
work_keys_str_mv | AT huanzhao lsdyolov5asteelstripsurfacedefectdetectionalgorithmbasedonlightweightnetworkandenhancedfeaturefusionmode AT fangwan lsdyolov5asteelstripsurfacedefectdetectionalgorithmbasedonlightweightnetworkandenhancedfeaturefusionmode AT guangbolei lsdyolov5asteelstripsurfacedefectdetectionalgorithmbasedonlightweightnetworkandenhancedfeaturefusionmode AT yingxiong lsdyolov5asteelstripsurfacedefectdetectionalgorithmbasedonlightweightnetworkandenhancedfeaturefusionmode AT lixu lsdyolov5asteelstripsurfacedefectdetectionalgorithmbasedonlightweightnetworkandenhancedfeaturefusionmode AT chengzhixu lsdyolov5asteelstripsurfacedefectdetectionalgorithmbasedonlightweightnetworkandenhancedfeaturefusionmode AT wenzhou lsdyolov5asteelstripsurfacedefectdetectionalgorithmbasedonlightweightnetworkandenhancedfeaturefusionmode |