Lightweight strip steel defect detection algorithm based on improved YOLOv7
- PMID: 38858448
- PMCID: PMC11164880
- DOI: 10.1038/s41598-024-64080-x
Lightweight strip steel defect detection algorithm based on improved YOLOv7
Abstract
The precise identification of surface imperfections in steel strips is crucial for ensuring steel product quality. To address the challenges posed by the substantial model size and computational complexity in current algorithms for detecting surface defects in steel strips, this paper introduces SS-YOLO (YOLOv7 for Steel Strip), an enhanced lightweight YOLOv7 model. This method replaces the CBS module in the backbone network with a lightweight MobileNetv3 network, reducing the model size and accelerating the inference time. The D-SimSPPF module, which integrates depth separable convolution and a parameter-free attention mechanism, was specifically designed to replace the original SPPCSPC module within the YOLOv7 network, expanding the receptive field and reducing the number of network parameters. The parameter-free attention mechanism SimAM is incorporated into both the neck network and the prediction output section, enhancing the ability of the model to extract essential features of strip surface defects and improving detection accuracy. The experimental results on the NEU-DET dataset show that SS-YOLO achieves a 97% mAP50 accuracy, which is a 4.5% improvement over that of YOLOv7. Additionally, there was a 79.3% reduction in FLOPs(G) and a 20.7% decrease in params. Thus, SS-YOLO demonstrates an effective balance between detection accuracy and speed while maintaining a lightweight profile.
Keywords: D-SimSPPF; Deep learning; Lightweight network; Strip surface defect detection; YOLOv7.
© 2024. The Author(s).
Conflict of interest statement
The authors declare no competing interests.
Figures














Similar articles
-
RSTD-YOLOv7: a steel surface defect detection based on improved YOLOv7.Sci Rep. 2025 Jun 4;15(1):19649. doi: 10.1038/s41598-025-04811-w. Sci Rep. 2025. PMID: 40467733 Free PMC article.
-
Research on Surface Defect Detection of Strip Steel Based on Improved YOLOv7.Sensors (Basel). 2024 Apr 23;24(9):2667. doi: 10.3390/s24092667. Sensors (Basel). 2024. PMID: 38732773 Free PMC article.
-
A Lightweight Strip Steel Surface Defect Detection Network Based on Improved YOLOv8.Sensors (Basel). 2024 Oct 9;24(19):6495. doi: 10.3390/s24196495. Sensors (Basel). 2024. PMID: 39409535 Free PMC article.
-
EFC-YOLO: An Efficient Surface-Defect-Detection Algorithm for Steel Strips.Sensors (Basel). 2023 Sep 2;23(17):7619. doi: 10.3390/s23177619. Sensors (Basel). 2023. PMID: 37688077 Free PMC article.
-
Lightweight Model for Pavement Defect Detection Based on Improved YOLOv7.Sensors (Basel). 2023 Aug 11;23(16):7112. doi: 10.3390/s23167112. Sensors (Basel). 2023. PMID: 37631649 Free PMC article.
Cited by
-
RSTD-YOLOv7: a steel surface defect detection based on improved YOLOv7.Sci Rep. 2025 Jun 4;15(1):19649. doi: 10.1038/s41598-025-04811-w. Sci Rep. 2025. PMID: 40467733 Free PMC article.
-
Image segmentation and coverage estimation of deep-sea polymetallic nodules based on lightweight deep learning model.Sci Rep. 2025 Mar 24;15(1):10177. doi: 10.1038/s41598-025-89952-8. Sci Rep. 2025. PMID: 40128230 Free PMC article.
-
Metal surface defect detection using SLF-YOLO enhanced YOLOv8 model.Sci Rep. 2025 Apr 1;15(1):11105. doi: 10.1038/s41598-025-94936-9. Sci Rep. 2025. PMID: 40169663 Free PMC article.
-
Feature optimization-guided high-precision and real-time metal surface defect detection network.Sci Rep. 2024 Dec 30;14(1):31941. doi: 10.1038/s41598-024-83430-3. Sci Rep. 2024. PMID: 39738521 Free PMC article.
References
-
- Li JY, Su ZF, Geng JH, Yin YX. Real-time detection of steel strip surface defects based on improved yolo detection network. IFAC PapersOnLine. 2018;51:76–81. doi: 10.1016/j.ifacol.2018.09.412. - DOI
-
- Ren H, et al. A method for detecting surface defects in hot-rolled strip steel based on deep learning. Metalurgija. 2024;63:423–426.
-
- Berg, A. C., et al. SSD: Single shot multiBox detector. In European Conference on Computer Vision. 21–37. 10.1007/978-3-319-46448-0_2 (2015).
-
- Redmon, J., Divvala, S., Girshick, R. & Farhadi, A. You only look once: unified, real-time object detection. In Computer Vision & Pattern Recognition IEEE. 779–788. 10.1109/CVPR.2016.91 (2016).
-
- Redmon, J. & Farhadi, A. YOLOv3: An incremental improvement. arXiv e-prints. 10.48550/arXiv.1804.02767 (2018).
Grants and funding
LinkOut - more resources
Full Text Sources
Other Literature Sources
Research Materials
Miscellaneous