Evidential deep learning for ambiguity-aware PCB defect recognition with out-of-distribution detection

Printed circuit board (PCB) solder defect detection is critical for electronic product quality control. However, existing deep learning methods face challenges in practical applications, including overconfident predictions, insufficient capability in handling ambiguous samples, and weak out-of-distribution (OOD) detection performance, which severely constrain the reliability and trustworthiness of intelligent inspection systems. This study proposes an ambiguity-aware PCB defect recognition framework based on Evidential Deep Learning (EDL), which quantifies evidence insufficiency and characterizes predictive uncertainty by modeling neural network outputs as Dirichlet distribution parameters. The proposed Evidence-Aware Convolutional Neural Network (EA-CNN) employs ResNet-50 as the backbone network, generates evidence vectors through an evidence collection layer and non-negative activation functions, and optimizes a joint objective combining classification loss and KL divergence regularization, supplemented by an annealing strategy, to balance classification performance and uncertainty quantification. The hierarchical decision mechanism built upon uncertainty measures automatically accepts high-confidence samples, flags potential OOD samples for rejection, and routes ambiguous samples to secondary inspection or manual review, enabling unified processing of samples with different reliability levels. Systematic experiments on the publicly available PCB-EDL-9350 dataset, including 8,450 in-distribution images of 7 categories (normal, insufficient solder, excess solder, cold joint, bridging, offset, tombstone), as well as preliminary evaluation on public industrial benchmarks (MVTec AD and DAGM 2007), demonstrate the following: the proposed method achieves 95.8% classification accuracy, reduces Expected Calibration Error (ECE) to 0.029 (a 64.6% reduction compared to standard convolutional neural networks), and achieves an overall OOD detection Area Under the ROC Curve (AUROC) of 97.0%, with a combined near-OOD AUROC of 96.2%. Subtype AUROCs are 95.8% for undefined defects, 97.3% for imaging anomalies, and 99.7% for far-OOD non-PCB images; the corresponding false positive rates at 95% true positive rate are 8.3%, 5.9%, and 1.2%, respectively. Under selective prediction settings with 85% coverage, the system’s selective risk decreases to 0.8%, an approximately 81% reduction relative to its full-coverage error rate, while 89.4% of manually annotated ambiguous samples are successfully identified as high-uncertainty samples. Under the fixed global thresholds, automatic acceptance reaches 89.66% with an accepted-sample error rate of 0.79%; Normal and Tombstone acceptance rates differ by 10.32 percentage points, highlighting class-dependent coverage. The proposed method’s inference time is only 9.1 ms, comparable to standard CNNs and lower than the evaluated multi-pass Monte Carlo Dropout (156.4 ms) and multi-model Deep Ensembles (41.3 ms) baselines. Comparison with single-pass SNGP and DUQ shows higher classification accuracy, lower ECE and shorter measured latency for EA-CNN, while SNGP achieves a slightly higher overall OOD AUROC of 97.2%, indicating a performance trade-off. Ablation experiments validate the effectiveness of key designs including KL regularization and annealing and show comparable performance between ReLU and Softplus, with classification accuracies of 95.8% and 95.6%, respectively. ReLU is retained for its ability to represent exact zero evidence, while Softplus remains a viable smooth alternative. This study provides a principled uncertainty quantification framework for PCB defect detection, validates the effectiveness of evidential deep learning in industrial visual inspection, and offers a technical pathway for building interpretable and trustworthy intelligent quality inspection systems, with potential for extension to other industrial defect detection tasks.

Authors

Institutions

Publication Details

Journal
Discover Applied Sciences
Published
2026-12-03
DOI
https://doi.org/10.1007/s42452-026-09983-2
Primary Topic
Industrial Vision Systems and Defect Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Evidential deep learning for ambiguity-aware PCB defect recognition with out-of-distribution detection

Lulu Wang, Antonette Villapando Chua, Kui Jiang, Huanhuan Lian et al.
Discover Applied Sciences
Industrial Vision Systems and Defect Detection
article

Evidential deep learning for ambiguity-aware PCB defect recognition with out-of-distribution detection

Lulu Wang, Antonette Villapando Chua, Kui Jiang, Huanhuan Lian, Meiting Cai, Wan Shao
article en

Abstract

Printed circuit board (PCB) solder defect detection is critical for electronic product quality control. However, existing deep learning methods face challenges in practical applications, including overconfident predictions, insufficient capability in handling ambiguous samples, and weak out-of-distribution (OOD) detection performance, which severely constrain the reliability and trustworthiness of intelligent inspection systems. This study proposes an ambiguity-aware PCB defect recognition framework based on Evidential Deep Learning (EDL), which quantifies evidence insufficiency and characterizes predictive uncertainty by modeling neural network outputs as Dirichlet distribution parameters. The proposed Evidence-Aware Convolutional Neural Network (EA-CNN) employs ResNet-50 as the backbone network, generates evidence vectors through an evidence collection layer and non-negative activation functions, and optimizes a joint objective combining classification loss and KL divergence regularization, supplemented by an annealing strategy, to balance classification performance and uncertainty quantification. The hierarchical decision mechanism built upon uncertainty measures automatically accepts high-confidence samples, flags potential OOD samples for rejection, and routes ambiguous samples to secondary inspection or manual review, enabling unified processing of samples with different reliability levels. Systematic experiments on the publicly available PCB-EDL-9350 dataset, including 8,450 in-distribution images of 7 categories (normal, insufficient solder, excess solder, cold joint, bridging, offset, tombstone), as well as preliminary evaluation on public industrial benchmarks (MVTec AD and DAGM 2007), demonstrate the following: the proposed method achieves 95.8% classification accuracy, reduces Expected Calibration Error (ECE) to 0.029 (a 64.6% reduction compared to standard convolutional neural networks), and achieves an overall OOD detection Area Under the ROC Curve (AUROC) of 97.0%, with a combined near-OOD AUROC of 96.2%. Subtype AUROCs are 95.8% for undefined defects, 97.3% for imaging anomalies, and 99.7% for far-OOD non-PCB images; the corresponding false positive rates at 95% true positive rate are 8.3%, 5.9%, and 1.2%, respectively. Under selective prediction settings with 85% coverage, the system’s selective risk decreases to 0.8%, an approximately 81% reduction relative to its full-coverage error rate, while 89.4% of manually annotated ambiguous samples are successfully identified as high-uncertainty samples. Under the fixed global thresholds, automatic acceptance reaches 89.66% with an accepted-sample error rate of 0.79%; Normal and Tombstone acceptance rates differ by 10.32 percentage points, highlighting class-dependent coverage. The proposed method’s inference time is only 9.1 ms, comparable to standard CNNs and lower than the evaluated multi-pass Monte Carlo Dropout (156.4 ms) and multi-model Deep Ensembles (41.3 ms) baselines. Comparison with single-pass SNGP and DUQ shows higher classification accuracy, lower ECE and shorter measured latency for EA-CNN, while SNGP achieves a slightly higher overall OOD AUROC of 97.2%, indicating a performance trade-off. Ablation experiments validate the effectiveness of key designs including KL regularization and annealing and show comparable performance between ReLU and Softplus, with classification accuracies of 95.8% and 95.6%, respectively. ReLU is retained for its ability to represent exact zero evidence, while Softplus remains a viable smooth alternative. This study provides a principled uncertainty quantification framework for PCB defect detection, validates the effectiveness of evidential deep learning in industrial visual inspection, and offers a technical pathway for building interpretable and trustworthy intelligent quality inspection systems, with potential for extension to other industrial defect detection tasks.

Discover Applied Sciences
Dongguan University of Technology (CN), University of Batangas (PH), Batangas State University (PH), Guangdong Institute of Intelligent Manufacturing (CN), Guangdong Innovative Technical College (CN)
Industrial Vision Systems and Defect Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon