EAAI Journal 2026 Journal Article
A printed circuit board surface defect detection method for long-tail and multi-scale scenarios
- Xuangang Li
- Sen Wang
- Liying Zhu
- Aiping Shen
- Dianlu Hu
Surface defects on Printed Circuit Board (PCB) in industrial production exhibit characteristics of random occurrence, uneven category distribution, variable scales, and minute dimensions, increasing the difficulty of quality inspection. To achieve multi-scale defect detection on PCB surfaces in long-tail small-target scenarios, the Long-Tail Dynamic Multi-Scale Printed Circuit Board (LDM-PCB) detection approach proposed in this paper employs the Long-Tail Feature Extraction Network (LTFE-Net) as the backbone, enhances the representation of tail defects by the Adaptive Tail Attention (ATA) module, improves the ability of the model to quickly capture the low-frequency defect features, and effectively solves the imbalance problem of feature learning under long-tail data distribution. The Dynamic Multi-Scale Fusion (DMS-Fuse) architecture dynamically adjusts feature fusion weights for defects of varying sizes through adaptive weighting strategies, enabling feature interaction across scales. A designed dynamic prediction layer preserves high-resolution defect features, directly outputting dynamic information to mitigate detail degradation in deep networks and improve localization accuracy for subtle defects. On self-built long-tail defect dataset, LDM-PCB achieves 99. 1% mean Average Precision at Intersection-over-Union threshold 0. 5 ( m A P 0. 5 ) with only 8. 61 million (M) parameters, surpassing baseline models by 1. 8 percentage points. The detection speed reaches 100 frames per second (FPS), achieving a balance between accuracy and speed, with results superior to other algorithms. Generalization experiments on public PCB datasets further demonstrate the optimal performance of LDM-PCB. Deployment results on edge devices indicate industrial deployment potential.