UPDF AI

A High-Performance and Enhanced Generalization Small Target Defect Detection Method for PCB Boards Based on YOLO-EMAC

Han Wu,Yunhan Lin

2025 · DOI: 10.1109/TIM.2025.3602542
IEEE Transactions on Instrumentation and Measurement · 3 Citations

Abstract

Defect detection in printed circuit boards (PCBs) is essential for ensuring the stability and reliability of electronic equipment. However, due to the compact structures and complex backgrounds of PCBs, accurately detecting small defects while maintaining strong model generalization remains a significant challenge. To address this issue, this article proposes YOLO-efficient-multiscale-adaptive-channel (YOLO-EMAC), a novel framework built upon an enhanced YOLOv12 architecture, designed to improve the accuracy, efficiency, and generalization of small-defect detection. Specifically, to mitigate the loss of shallow features caused by extensive downsampling and convolutions, the multiscale and multibranch cross-scale convolutional fusion (M2C2f) module is introduced, integrating window-based and multihead self-attention (Window-MHSA) with dynamic transformation layers to enhance feature extraction for small objects. Furthermore, to address feature degradation during upsampling, an efficient-adaptive-multibranch-channel (EAMC) module is developed to adaptively strengthen key features. Extensive experiments conducted on the PCB Defect dataset, PCB Surface Defect dataset, and DeepPCB dataset demonstrate that YOLO-EMAC achieves SOTA detection performance. The source code, pretrained models, and datasets are made publicly available on GitHub: https://github.com/wuhan66/YOLO-EMAC/tree/main