Laser & Optoelectronics Progress, Volume. 60, Issue 24, 2412003(2023)

An Improved YOLOv5 Algorithm for Steel Surface Defect Detection

Shaoxiong Li1, Zaifeng Shi1,3、*, Fanning Kong1, Ruoqi Wang1, and Tao Luo2
Author Affiliations
  • 1School of Microelectronics, Tianjin University, Tianjin 300072, China
  • 2College of Intelligence and Computing, Tianjin University, Tianjin 300072, China
  • 3Tianjin Key Laboratory of Imaging and Sensing Microelectronic Technology, Tianjin 300072, China
  • show less
    Figures & Tables(10)
    Overall network architecture of YOLOv5
    Structure of RFB
    Structure of AFAM
    Decoupled head and attention mechanism. (a) Decoupled head; (b) ECA
    NEU-DET dataset. (a) Crazing; (b) inclusion; (c) patches; (d) pitted surface; (e) rolled-in scale; (f) scratches
    Loss curves on NEU-DET dataset
    Detection results of the proposed model on NEU-DET dataset. (a) Crazing; (b) inclusion; (c) patches; (d) pitted surface; (e) rolled-in scale; (f) scratches
    • Table 1. Experimental results of different models on NEU-DET dataset

      View table

      Table 1. Experimental results of different models on NEU-DET dataset

      MethodAP(Cr)/%AP(In)/%AP(Pa)/%AP(Ps)/%AP(Rs)/%AP(Sc)/%mAP /%FPS /(frame/s)
      Faster R-CNN335.9681.8088.3481.8259.3186.5372.297.56
      SSD438.5080.7893.9482.6267.9672.1372.6643.24
      RetinaNet536.3881.6291.5681.7460.8188.1073.3730.26
      YOLOv3634.2683.8891.5281.7460.9188.3273.4443.67
      YOLOv4731.4284.6194.7281.6061.3692.8674.4331.15
      YOLOv5-s39.1379.2196.4687.1260.1984.1974.3862.75
      YOLOv5-m38.9684.5094.8187.5961.3189.0376.0348.07
      YOLOX1834.1984.6797.5988.7267.3690.4177.2847.25
      YOLOv72738.9781.6093.7481.6162.7383.8073.7444.72
      YOLOv841.2184.6693.9788.4363.1796.6678.0161.33
      MSC-DNet842.4084.5094.3091.5071.6092.0079.3814.10
      DEA_RetinaNet960.9382.4994.2795.7967.1674.0579.1112.20
      ES-Net1156.0087.6088.3087.4060.4094.9079.10
      This Research43.3187.2496.5388.3372.8094.8480.5131.96
    • Table 2. Results of ablation study 1

      View table

      Table 2. Results of ablation study 1

      MethodmAP /%Improvement /百分点FPS /(frame/s)
      YOLOv5-m76.0348.07
      YOLOv5-m + RFB78.072.0441.08
      YOLOv5-m+AFAM77.051.0243.27
      YOLOv5-m+decoupled head without ECA77.461.4339.81
      YOLOv5-m+decoupled head with ECA77.941.9139.35
    • Table 3. Results of ablation study 2

      View table

      Table 3. Results of ablation study 2

      RFBAFAMDecoupled head with ECAmAP /%Improvement /百分点FPS /(frame/s)
      76.0348.07
      78.812.7835.72
      79.623.5933.19
      78.732.7036.28
      80.514.4831.96
    Tools

    Get Citation

    Copy Citation Text

    Shaoxiong Li, Zaifeng Shi, Fanning Kong, Ruoqi Wang, Tao Luo. An Improved YOLOv5 Algorithm for Steel Surface Defect Detection[J]. Laser & Optoelectronics Progress, 2023, 60(24): 2412003

    Download Citation

    EndNote(RIS)BibTexPlain Text
    Save article for my favorites
    Paper Information

    Category: Instrumentation, Measurement and Metrology

    Received: Feb. 27, 2023

    Accepted: Apr. 7, 2023

    Published Online: Nov. 27, 2023

    The Author Email: Shi Zaifeng (shizaifeng@tju.edu.cn)

    DOI:10.3788/LOP230711

    Topics