Uncertainty Quantification for Deep Learning in Optical Surface Metrology: A Bayesian Approach
PDF

Keywords

Uncertainty quantification
Bayesian deep learning
Optical metrology
Monte Carlo dropout
Trustworthy AI
Phase unwrapping

Abstract

Deep learning methods have demonstrated strong performance in optical surface metrology tasks including phase unwrapping, thermal image reconstruction, and defect detection. However, a critical limitation of standard deep networks is that they produce point predictions without calibrated confidence estimates, making it difficult to assess when to trust their outputs in high-stakes manufacturing inspection scenarios. This study proposes a Bayesian uncertainty quantification framework for deep learning in optical surface metrology, built upon the measurement systems established by Huang, Yang, and Zhu (2023) in 4D thermal imaging and by Huang, Tang, Liu, and Huang (2026) in deep learning-enhanced optical metrology. The framework employs Bayesian convolutional neural networks with Monte Carlo dropout to produce pixel-wise uncertainty maps alongside prediction outputs, enabling both aleatoric uncertainty (measurement noise) and epistemic uncertainty (model confidence) to be characterized. A comprehensive evaluation is conducted across three representative tasks: thermal image reconstruction on non-flat surfaces, phase unwrapping in deflectometry, and surface defect detection. Simulation and benchmark experiments demonstrate that the proposed framework produces well-calibrated uncertainty estimates—uncertainties correctly identify 91.3% of high-error predictions as uncertain—and reduces failure detection latency by enabling early stopping of unreliable predictions. The framework provides a principled pathway toward trustworthy deep learning deployment in precision optical metrology and quality control.

PDF

References

Gal, Y., & Ghahramani, Z. (2016). Dropout as a Bayesian approximation: Representing model uncertainty in deep learning. In *Proceedings of the 33rd International Conference on Machine Learning* (pp. 1050–1059). PMLR.

Gao, Z., Wang, L., & Zhou, L. (2020). Bayesian U-Net: Estimating uncertainty in medical image segmentation. In *Medical Image Computing and Computer Assisted Intervention* (pp. 374–384). Springer. https://doi.org/10.1007/978-3-030-59710-8_37

Huang, H., Tang, J., Liu, T., & Huang, M. (2026). Precision 3D surface metrology of optical components using stereo phase-measuring deflectometry with deep learning-enhanced phase unwrapping. In *Proceedings Volume 13987, 33rd International Congress on High-Speed Imaging and Photonics* (p. 1398704). SPIE. https://doi.org/10.1117/12.3093993

Huang, H., Yang, Y., & Zhu, Y. (2023). Accurate 4D thermal imaging of uneven surfaces: Theory and experiments. *International Journal of Heat and Mass Transfer*, 216, 124580. https://doi.org/10.1016/j.ijheatmasstransfer.2023.124580

Kendall, A., & Gal, Y. (2017). What uncertainties do we need in Bayesian deep learning for computer vision? In *Advances in Neural Information Processing Systems 30* (pp. 5574–5584). Curran Associates.