Laser & Optoelectronics Progress, Volume. 62, Issue 4, 0412002(2025)

Defect Detection of Printed Circuit Boards Based on YOLOv8-PCB

Yan Wang*, Jian Luo, Jin Tao, Hong Peng, and Siyi Chen
Author Affiliations
  • School of Electrical Engineering and Information, Southwest Petroleum University, Chengdu 610500, Sichuan , China
  • show less
    Figures & Tables(17)
    The architecture model of YOLOv8
    Small object detection head fused with shallow scale
    Conv downsampling and ADown downsampling structures
    Sampling based on dynamic upsampling
    Sampling point generator in Dysample
    The network architecture model of YOLOv8-PCB
    Types of PCB defects
    Loss function curve comparison
    Comparison of model recall rate and mAP@0.5 value curve before and after improvement
    The confusion matrix for the six types of defects. (a) Confusion matrix of YOLOv8; (b) confusion matrix of YOLOv8-PCB
    YOLOv8 defect detection results
    YOLOv8-PCB defect detection results
    • Table 1. Number of PCB defect labels and pictures

      View table

      Table 1. Number of PCB defect labels and pictures

      Defect typeNumber of picturesNumber of expanded images
      Total6934326
      missing_hole115722
      mouse_bite115721
      open_circuit116721
      short116720
      spur115721
      spurious_copper116721
    • Table 2. Ablation experiments

      View table

      Table 2. Ablation experiments

      WIoUv3P2ADownDysampleRecall /%mAP@0.5 /%Params /106GFLOPs /109
      90.9094.753.08.1
      92.0495.903.08.1
      91.7696.102.912.2
      92.8795.982.77.6
      91.7095.123.08.1
      93.8996.902.912.2
      95.1498.132.611.7
      96.3998.372.611.7
    • Table 3. Comparison of AP values of various defects before and after improvement

      View table

      Table 3. Comparison of AP values of various defects before and after improvement

      ModelAP /%
      missing_holemouse_biteopen_circuitshortspurspurious_copper
      YOLOv899.4495.6290.0999.1388.5295.70
      YOLOv8-PCB99.5099.0698.0599.0097.0397.57
    • Table 4. Comparative experiments of different algorithms

      View table

      Table 4. Comparative experiments of different algorithms

      ModelmAP@0.5 /%Params /106GFLOPs /109Inference speed/ms
      SSD93.7512.338.812.6
      FCOS95.2532.1103.322.6
      Centernet94.6932.770.216.0
      YOLOv5s95.247.116.59.4
      YOLOv6n93.194.611.47.5
      YOLOv6s95.2513.130.412.9
      YOLOv7-tiny94.586.013.27.7
      YOLOv8n94.753.08.16.0
      YOLOv8s97.2211.128.47.6
      YOLOv8-PCB98.372.611.78.8
    • Table 5. Performance comparison of mainstream improved algorithms

      View table

      Table 5. Performance comparison of mainstream improved algorithms

      AlgorithmmAP@0.5 /%Params /106GFLOPs /109
      YOLOv5-TGs2798.206.714.4
      Algorithm of reference [2897.403.79.8
      SimAM-YOLO2998.397.219.2
      YOLO-P3098.805.2
      Algorithm of reference [3199.147.27.2
      YOLOv8-PCB98.372.611.7
    Tools

    Get Citation

    Copy Citation Text

    Yan Wang, Jian Luo, Jin Tao, Hong Peng, Siyi Chen. Defect Detection of Printed Circuit Boards Based on YOLOv8-PCB[J]. Laser & Optoelectronics Progress, 2025, 62(4): 0412002

    Download Citation

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

    Category: Instrumentation, Measurement and Metrology

    Received: May. 6, 2024

    Accepted: Jun. 19, 2024

    Published Online: Feb. 24, 2025

    The Author Email:

    DOI:10.3788/LOP241218

    CSTR:32186.14.LOP241218

    Topics