A PCB Micro-Defect Detection Method Based on Mult-Scale Feature Enhancement and Background Suppression

Authors

  • Yu Cao School of Optical-Electrical and Computer Engineering, University of Shanghai for Science and Technology, Shanghai 200093, China Author

DOI:

https://doi.org/10.63313/AJET.9035

Keywords:

PCB defect detection, multi-scale feature enhancement, background suppression, attention mechanism, deep learning

Abstract

To address the issues of strong background texture interference, small defect scales, and the tendency for feature loss in the detection of defects on Printed Circuit Boards (PCBs) within complex industrial environments—which lead to high miss rates and false positive rates in existing detection algorithms—this paper proposes a PCB defect detection method based on multi-scale feature enhancement and background suppression. An end-to-end detection network is introduced. First, a multi-scale contextual feature enhancement module is designed. By constructing a parallel atrous convolutional pyramid with different dilation rates, it captures global context rich in semantic information. This is combined with shallow, high-resolution feature maps to fully preserve the edge and texture details of defects, addressing the information loss caused by down-sampling in deep networks. Second, a background decoupling and suppression attention mechanism is introduced. This mechanism separates foreground responses from background noise in the feature maps, generating a discriminative attention weight map. It adaptively enhances the response values in defect regions while suppressing interfering responses from complex circuit traces and copper foil backgrounds. Finally, an improved localization loss function is incorporated to optimize the regression accuracy of the predicted bounding boxes. Experimental results on the public PCB defect dataset PKU-Market-PCB demonstrate that the proposed method achieves a mean Average Precision (mAP50) of 96.8%, which is a 4.3 percentage point improvement over the mainstream algorithm YOLOv8n (92.5%). Particularly for defects such as nicks and pinholes, the recall rate is improved by more than 5.8%. Furthermore, the model achieves a detection speed of 85 frames per second, and its parameter count is reduced by 22% compared to the baseline, meeting the real-time requirements of industrial production lines. The method proposed in this paper effectively suppresses complex background interference and enhances the feature representation for multi-scale defects, significantly improving detection accuracy while maintaining detection speed, demonstrating good robustness and industrial application value.

References

[1] Xu Haida, Huang Yun, Wang Pengyu, et al. Improved Faster R-CNN Algorithm for PCB Defect Detection[J/OL]. Mechanical Design and Manufacturing, 1-5[2026-03-01].

[2] Liu Chunjuan, Zhao Haoran, Zhang Mingxuan, et al. PCB Defect Detection Model Integrating Wavelet Transform Convolution and Knowledge Distillation[J/OL]. Journal of Instrumentation, 1-13[2026-03-01].

[3] Du Qian, Su Yingying, Peng Jie, et al. Lightweight PCB Defect Detection Algorithm Based on Improved YOLOv11n[J/OL]. Journal of Chongqing University of Science and Technology (Natural Science Edition), 1-10[2026-03-01].

[4] Cao Pengbin, Li Jianke, Wang Qiang, et al. Research on Defect Detection of Laser Soldering Joints with Small Samples Based on Generative Adversarial Network Data Augmentation and Transfer Learning[J/OL]. Journal of Welding, 1-15[2026-03-01].

[5] Liu Yang, Guo Peiying, Ma Wenlong, et al. Research on PCB Defect Detection Method Based on Improved DETR Model[J]. Inner Mongolia Petrochemical Industry, 2025, 51(12): 14-16+28.

[6] Zheng Jiali, Dong Ling, Li Heng, et al. Lightweight PCB Defect Detection Method Based on PMAC-YOLO[J/OL]. Journal of Electronic Measurement and Instrumentation, 1-16[2026-03-01].

[7] Guo Yuru. Research on Circuit Board Defect Detection Based on Multi-Scale Features and YOLOv8[J]. Laboratory Testing, 2025, 3(24): 12-14.

[8] Qiu Yongfeng, Luo Kaixi, Wang Zhibing, et al. Adaptive Global-Local Attention PCB Defect Detection Algorithm AGS-YOLO[J]. Semiconductor Technology, 2026, 51(02): 190-199.

[9] He Yongjiao, Wang Lin, Zhang Xiaoshuang, et al. A Small Sample Surface Defect Detection Model for Industrial Products Based on BP-DFO Faster R-CNN[J]. Modern Manufacturing Engineering, 2025, (12): 1-10+26.

Downloads

Published

2026-03-04

Issue

Section

Articles

How to Cite

A PCB Micro-Defect Detection Method Based on Mult-Scale Feature Enhancement and Background Suppression. (2026). Academic Journal of Emerging Technologies, 2(2), 29-50. https://doi.org/10.63313/AJET.9035