Confidence calibration and uncertainty estimation in convolutional neural network for fabric defect segmentation: a benchmark study

Objective Although convolutional neural networks (CNNs) achieve high accuracy in fabric defect segmentation tasks, their robustness and reliability in complex real-world application pose significant challenges. To enhance the robustness and reliability of CNNs, segmentation uncertainty and predicted confidence calibration are often used for assessment. This study investigates the effectiveness of single model strategies alongside Bayesian and non-Bayesian techniques to improve the robustness and reliability of predictions in fabric defect segmentation. Methods Three methods were assessed for fabric defect segmentation tasks, the single-model strategy, Monte Carlo (MC) Dropout (a Bayesian method), and Deep Ensembles (a non-Bayesian method). The reliability and robustness of these methods are evaluated in terms of segmentation accuracy, probability calibration, uncertainty estimation, and identification of out-of-distribution samples. In addition, the effect of different loss functions for the segmentation performance and uncertainty estimation was investigated. Results The results on four datasets indicate that the Deep Ensembles have shown a significant enhancement in segmentation accuracy compared with the single-model strategy, showing an increase of 1.5% to 5.3% in the Dice coefficient. In contrast, the segmentation performance of MC Dropout was found to be inferior to that of the single-model strategy. Moreover, in terms of confidence calibration, Deep Ensembles demonstrated improvements ranging from 0.1 to 2.2 in the expected calibration error (ECE) metric, showcasing its enhanced precision in model confidence calibration. In addition, by employing information entropy as a tool for uncertainty estimation, both MC Dropout and Deep Ensembles methods showed a strong negative correlation (ranging from −0.72 to −0.92; p < 0.001) between their information entropy and Dice coefficient. This finding suggests that information entropy can be served as a robust metric for uncertainty estimation, effectively reflecting the trustworthiness of model predictions. Most importantly, our research provides valuable insights into understanding the impact of the number of models in an ensemble on calibration metrics, loss function selection, identifying out-of-distribution samples, and implementing confidence calibration strategies in fabric defect detection tasks. Conclusion Our analysis confirms that Deep Ensembles excels in these aspects, outperforming the alternatives. In addition, both MC Dropout and Deep Ensembles provide meaningful uncertainty estimates, which prove valuable in identifying out-of-distribution samples. This insight emphasizes the importance of uncertainty estimation in enhancing model robustness and reliability for industrial applications.

Authors

Institutions

Publication Details

Journal
Textile Research Journal
Published
2025-05-15
DOI
https://doi.org/10.1177/00405175241296807
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
article

Confidence calibration and uncertainty estimation in convolutional neural network for fabric defect segmentation: a benchmark study

Wai Keung Wong, Jiahua Liao, Ying Qu, Zhewei Chen
Textile Research Journal
Industrial Vision Systems and Defect Detection
article

Confidence calibration and uncertainty estimation in convolutional neural network for fabric defect segmentation: a benchmark study

Wai Keung Wong, Jiahua Liao, Ying Qu, Zhewei Chen
article en

Abstract

Objective Although convolutional neural networks (CNNs) achieve high accuracy in fabric defect segmentation tasks, their robustness and reliability in complex real-world application pose significant challenges. To enhance the robustness and reliability of CNNs, segmentation uncertainty and predicted confidence calibration are often used for assessment. This study investigates the effectiveness of single model strategies alongside Bayesian and non-Bayesian techniques to improve the robustness and reliability of predictions in fabric defect segmentation. Methods Three methods were assessed for fabric defect segmentation tasks, the single-model strategy, Monte Carlo (MC) Dropout (a Bayesian method), and Deep Ensembles (a non-Bayesian method). The reliability and robustness of these methods are evaluated in terms of segmentation accuracy, probability calibration, uncertainty estimation, and identification of out-of-distribution samples. In addition, the effect of different loss functions for the segmentation performance and uncertainty estimation was investigated. Results The results on four datasets indicate that the Deep Ensembles have shown a significant enhancement in segmentation accuracy compared with the single-model strategy, showing an increase of 1.5% to 5.3% in the Dice coefficient. In contrast, the segmentation performance of MC Dropout was found to be inferior to that of the single-model strategy. Moreover, in terms of confidence calibration, Deep Ensembles demonstrated improvements ranging from 0.1 to 2.2 in the expected calibration error (ECE) metric, showcasing its enhanced precision in model confidence calibration. In addition, by employing information entropy as a tool for uncertainty estimation, both MC Dropout and Deep Ensembles methods showed a strong negative correlation (ranging from −0.72 to −0.92; p < 0.001) between their information entropy and Dice coefficient. This finding suggests that information entropy can be served as a robust metric for uncertainty estimation, effectively reflecting the trustworthiness of model predictions. Most importantly, our research provides valuable insights into understanding the impact of the number of models in an ensemble on calibration metrics, loss function selection, identifying out-of-distribution samples, and implementing confidence calibration strategies in fabric defect detection tasks. Conclusion Our analysis confirms that Deep Ensembles excels in these aspects, outperforming the alternatives. In addition, both MC Dropout and Deep Ensembles provide meaningful uncertainty estimates, which prove valuable in identifying out-of-distribution samples. This insight emphasizes the importance of uncertainty estimation in enhancing model robustness and reliability for industrial applications.

Textile Research JournalVol. 96(5-6)
Hong Kong Polytechnic University (HK)
Openalex Percentile: Top 86%
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.