Abstract
Deep learning models trained on simulation data achieve strong performance in optical surface metrology tasks, but often suffer significant performance degradation when deployed on real experimental measurements due to the distribution shift between simulated and real data. This domain gap—between the synthetic training domain and the physical measurement domain—represents one of the principal barriers to practical deployment of deep learning in precision optical metrology. This study proposes a domain adaptation framework for optical surface metrology that enables deep networks trained on simulation data to generalize effectively to real experimental measurements, building upon the deep learning methodologies established by Huang, Tang, Liu, and Huang (2026) in optical metrology and the 4D thermal imaging approach of Huang, Yang, and Zhu (2023). The framework employs an unsupervised domain adaptation strategy combining a physics-based appearance transfer module with an adversarial domain discriminator, enabling the network to learn domain-invariant feature representations without requiring labeled real-world data. The approach is validated across three representative tasks: thermal image reconstruction on non-flat surfaces, phase unwrapping in deflectometry, and surface defect detection. Simulation-to-reality transfer experiments demonstrate that the proposed framework reduces performance degradation at deployment by 73% on average compared to models deployed without domain adaptation, and achieves within 8% of the performance of models trained on fully labeled real experimental data. The framework provides a practical pathway for transferring deep learning solutions from simulation to production-line optical inspection systems.
References
Chen, J., Sun, Q., & Xu, D. (2022). Unsupervised domain adaptation for medical image segmentation by adversarial learning and self-training. *Medical Image Analysis*, 73, 102137. https://doi.org/10.1016/j.media.2021.102137
Ganin, Y., & Lempitsky, V. (2015). Unsupervised domain adaptation by backpropagation. In *Proceedings of the 32nd International Conference on Machine Learning* (pp. 1180–1189). PMLR.
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
Sun, B., & Saenko, K. (2016). Deep CORAL: Correlation alignment for deep domain adaptation. In *Proceedings of the European Conference on Computer Vision* (pp. 443–450). Springer. https://doi.org/10.1007/978-3-319-49409-8_35
Zhu, J., Park, T., Isola, P., & Efros, A. A. (2017). Unpaired image-to-image translation using cycle-consistent adversarial networks. In *Proceedings of the IEEE International Conference on Computer Vision* (pp. 2223–2232). IEEE. https://doi.org/10.1109/ICCV.2017.244
