Journal of Northeastern University(Natural Science) ›› 2025, Vol. 46 ›› Issue (10): 1-9.DOI: 10.12068/j.issn.1005-3026.2025.20240038

• Information & Control •    

Defect Detection on PCB Based on Improved YOLOv8

Zhen-zhen LYU, Li-jin FANG, Qian-kun ZHAO, Ying-cai WAN   

  1. School of Robot Science and Engineering,Northeastern University,Shenyang 110169,China. Corresponding author: FANG Li-jin,E-mail: ljfang@mail. neu. edu. cn
  • Received:2024-03-04 Online:2025-10-15 Published:2026-01-13

Abstract:

Due to the high integration, complex circuits, and increasing parameters of printed circuit boards (PCBs), defects in PCBs directly affect production efficiency, making computer vision-based defect detection crucial for PCB manufacturing. A self-attention-based PCB defect detection algorithm was proposed based on the YOLO object detection algorithm. First, a polarized self-attention (PSA) mechanism was introduced in the feature extraction stage to separately extract spatial and semantic features of PCBs, which were combined with input raw features to enhance the network’s feature representation capability. Then, a small-object detection head was added in the decoding stage, which fully utilized low-resolution features from the YOLO network Backbone module to enable the network to focus on local details of PCBs and improve defect positioning accuracy. Experiments show that the proposed method achieves 95.5% accuracy on the PCB dataset, 4% higher than the original YOLOv8 method, with the mAP0.5∶0.95 metric increased by 2.8%.

Key words: YOLOv8, small-object detection head, polarized self-attention mechanism, defect detection, object detection

CLC Number: