Abstract
Segmenting tiny components in Printed Circuit Board (PCB) CT scans is a challenging task due to label scarcity, image noise, and the sparse distribution of elements. We propose EMLR-seg, a self-supervised pretraining model that utilizes Multi-scale local Visual field Extraction (MVE) to focus on relevant local features rather than global image reconstruction. By employing a teacher-student framework and an asymmetric architecture, EMLR-seg achieves a state-of-the-art 88.6% mIoU on PCB element segmentation while reducing training time by over 17% compared to existing self-supervised baselines.
Introduction
Non-destructive testing of PCBs using Computed Tomography (CT) is vital for identifying defects in vias, wires, and pads. However, segmenting these elements is difficult due to the labor-intensive nature of manual pixel-level annotation and the presence of metal-induced artifacts in CT scans. Furthermore, standard self-supervised models based on Masked Image Modeling (MIM) often suffer from "semantic redundancy" when applied to PCB images; because PCB elements are small and sparse, these models waste computational resources reconstructing empty space rather than the specific geometry of the components.
Methodology
EMLR-seg introduces a teacher-student framework optimized for the unique characteristics of industrial CT data. Instead of reconstructing raw, noisy pixels, the student network predicts high-level features generated by a teacher network, allowing the model to ignore low-level noise and focus on meaningful shapes.
The core innovation is the Multi-scale local Visual field Extraction (MVE) module. Unlike global reconstruction methods, MVE extracts local patches at three different scales (5×5, 7×7, and 9×9). This forces the model to learn the specific spatial relationships and varying sizes of small components like circular vias and thin wires. To improve efficiency, the model employs an asymmetric architecture with a heavy encoder (ViT-L) and a very lightweight decoder consisting of only four Transformer blocks.
Datasets and Experimental Setup
The study utilized a specialized PCB CT image dataset:
- Pretraining: 400,000 unlabeled CT images (512×512 resolution).
- Finetuning: A labeled subset of 2,366 training samples and 500 test samples.
- Target Classes: The segmentation covers three critical elements: vias (blue), pads (green), and wires (purple).
Key Results
EMLR-seg demonstrated significant improvements in both accuracy and efficiency:
- Superior Accuracy: The model achieved 88.6% mIoU, outperforming standard supervised models like U-Net (79.1%) and Segformer (82.3%), as well as self-supervised baselines like MAE (86.7%) and dBOT (87.4%).
- Efficiency Gains: EMLR-seg reached peak performance in 300 epochs (140.1 hours), representing a 17.4% reduction in training time compared to the dBOT baseline, which required 400 epochs to reach a lower score.
- Boundary Precision: Qualitative analysis shows that the model is particularly effective at distinguishing the sharp boundaries of wires and pads, which are often blurred by noise in other models.
Conclusion
By shifting the focus from global reconstruction to multi-scale local visual fields, EMLR-seg effectively addresses the semantic redundancy of PCB CT images. This approach not only improves segmentation accuracy for tiny components but also significantly reduces the computational burden of self-supervised pretraining. Future work will investigate parameter-efficient finetuning and methods to further enhance the segmentation of complex wire edges.
Summary updated