YOLO-MDMN: a new lightweight algorithm for efficient PCB defect detection
Zhe Tang, Xin Xiong, Hui Lan, Xi Hu
Jianghan University
Key points
From the paper's conclusion- Therefore, this paper proposes You Only Look Once (YOLO)-MDMN—an enhanced variant of YOLOv12n.
Abstract
Abstract Printed circuit boards (PCBs) defect detection constitutes a critical stage in electronic manufacturing, serving as a vital safeguard for product reliability, functional safety, and overall quality in industries such as automotive, aerospace, and consumer electronics. However, existing methods still face some key limitations, including the frequent omission of micron-scale defects caused by insufficient receptive fields and coarse feature representations, alongside high computational costs that hinder real-time deployment on resource-constrained production equipment. Therefore, this paper proposes You Only Look Once (YOLO)-MDMN—an enhanced variant of YOLOv12n. First, the improved Monte Carlo receptive field module is integrated into the A2C2f module, which utilizes stochastic multi-scale sampling to reduce both target fragmentation and computational overhead. Second, the dynamic spatial-preserving feature neck is utilized to combine Space-to-Depth encoding with content-aware upsampling and adaptive fusion to preserve high-frequency details during scaling. Third, the Detect_MBConv detection head incorporates adaptive expansion ratios, scale-aware depthwise convolution, and dual-pathway attention for improved efficiency. Finally, the Shape-Nwd loss function is applied to combine geometric constraints with adaptive Gaussian modeling for stable micro-defect localization. Experiments on PKU-Market-PCB dataset show YOLO-MDMN achieves 93.8% mAP50, outperforming YOLOv12n by 3.5%, while reducing parameters by 39.7% and computation by 40.6% and achieving real-time inference at 344.8 FPS, which demonstrates efficacy for resource-constrained industrial deployment.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- MDEB-YOLO: A Lightweight Multi-Scale Attention Network for Micro-Defect Detection on Printed Circuit BoardsMicromachines · 2026
- Printed Circuit Board Defect Detection Based on Lightweight Deep Learning Fusion ModelSensors · 2025
- PR-YOLOv8s: A Lightweight Improved YOLOv8s for Printed Circuit Board Micro-Defect DetectionSymmetry · 2026
- YOLO-SAM: An Asymmetric Lightweight Detector with Space-to-Depth Convolution for PCB Defect DetectionSymmetry · 2026
- Small defect detection in printed circuit boards based on the multiscale edge strengthening and an improved YOLOv10Scientific Reports · 2025
- Toward Real-Time Industrial Small Object Inspection: Decoupled Attention and Multi-Scale Aggregation for PCB Defect DetectionElectronics · 2026