A High-Performance and Enhanced Generalization Small Target Defect Detection Method for PCB Boards Based on YOLO-EMAC
- 25 August 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Instrumentation and Measurement
- Vol. 74 (00189456) , 1-13
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 paper 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 Multi-scale and Multi-branch Cross-scale Convolutional Fusion (M2C2f) module is introduced, integrating Window-based and Multi-Head Self-Attention (WindowMHSA) with dynamic transformation layers to enhance feature extraction for small objects. Furthermore, to address feature degradation during upsampling, a Efficient-Adaptive-Multibranch-Channel (EAMC) module is developed to adaptively strengthen key feature. 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.Keywords
Funding Information
- National College Students’ Innovation and Entrepreneurship Training Program Project (202410488022X)
This publication has 28 references indexed in Scilit:
- PCB defect detection algorithm based on CDI-YOLOScientific Reports, 2024
- A Comprehensive Review of Deep Learning-Based PCB Defect DetectionIEEE Access, 2023
- PCB defects target detection combining multi-scale and attention mechanismEngineering Applications of Artificial Intelligence, 2023
- Towards Total Recall in Industrial Anomaly Detection2022
- Detection of PCB Surface Defects With Improved Faster-RCNN and Feature Pyramid NetworkIEEE Access, 2020
- HRIPCB: a challenging dataset for PCB defects detection and classificationThe Journal of Engineering, 2020
- STDnet: Exploiting high resolution feature maps for small object detectionEngineering Applications of Artificial Intelligence, 2020
- Soldering defect detection in automatic optical inspectionAdvanced Engineering Informatics, 2020
- An efficient similarity measure approach for PCB surface defect detectionPattern Analysis and Applications, 2017
- SSD: Single Shot MultiBox Detector2016