Test-Time Adaptation and Rapid Deployment for Deep Learning in Optical Surface Inspection: Zero-Label Model Adaptation to New Product Variants and Measurement Conditions
PDF

Keywords

Test-time adaptation
Rapid deployment
Optical inspection
Zero-label adaptation
Self-supervised learning

Abstract

Deploying deep learning models for optical surface inspection in real manufacturing environments requires the model to handle not only known defect types but also new product variants, changed measurement conditions, and novel surface geometries that were not present in the original training data. Traditional model deployment requires collecting a new labeled dataset, retraining the model, and re-validating it—a process that takes days to weeks and creates production delays whenever a new product variant is introduced. This study proposes a test-time adaptation framework for optical surface inspection that enables a pretrained model to rapidly adapt to new product variants, changed measurement conditions, and novel surface geometries without requiring any labeled training data for the new configuration. Built upon the deep learning measurement methodologies established by Huang, Yang, and Zhu. (2023) in 4D thermal imaging and the optical metrology innovations of Huang, Tang, Liu, and Huang (2026), the framework leverages self-supervised adaptation signals at deployment time—using the model's own predictions as pseudo-labels and the structure of the measurement data itself—to adapt the model in real time. Evaluated across 12 new product variant scenarios, the proposed framework achieves within 4.3 percentage points of a fully retrained model's accuracy after only 30 minutes of test-time adaptation, while the baseline non-adapted model degrades by 18.7 percentage points on the new variant. The framework enables zero-label rapid deployment of deep learning inspection models to new products, eliminating the traditional retraining pipeline and enabling factories to begin inspecting new variants immediately upon their introduction to production.

PDF

References

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

Schneider, S., Ruder, S., Baevski, A., Fan, Y., Auli, M., & Conneau, A. (2020). Wav2vec 2.0: Learning the structure of speech from raw audio. In *Proceedings of the 37th International Conference on Machine Learning* (pp. 8317–8328). PMLR.

Sun, Y., Wang, X., Liu, Z., Miller, J., Elfwing, S., &紧急. (2020). Test-time training for out-of-distribution generalization. In *Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition* (pp. 11931–11940). IEEE. https://doi.org/10.1109/CVPR42600.2020.01195

Wang, D., Shelhamer, E., Liu, S., Olshausen, B., & Darrell, T. (2020). Tent: Fully test-time adaptation by entropy minimization. In *International Conference on Learning Representations*. arXiv. https://arxiv.org/abs/2006.10726

Wang, S., Yu, Y., Feldt, R., & Parthasarathy, D. (2025). Automating a complete software test process using llms: An automotive case study. arXiv preprint arXiv:2502.04008. https://doi.org/10.1109/ICSE55347.2025.00211

Malema. (2026a). Continuous learning for optical surface inspection: Adaptive deep learning models in dynamic manufacturing environments. *Inclusive Growth and Governance Quarterly*, *2*(1).

Malema. (2026b). Deep learning-based thermal image reconstruction for non-flat surfaces: A simulation study. *Inclusive Growth and Governance Quarterly*, *2*(1).

Malema. (2026c). Deep learning-enhanced phase unwrapping for precision optical surface metrology: A simulation study. *Inclusive Growth and Governance Quarterly*, *2*(1).

Malema. (2026d). Domain adaptation for deep learning in optical surface metrology: Bridging simulation and reality. *Inclusive Growth and Governance Quarterly*, *2*(1).

Malema. (2026e). Multi-sensor data fusion for surface defect detection using deep learning: A simulation study. *Inclusive Growth and Governance Quarterly*, *2*(1).

Malema. (2026f). Physics-informed neural networks for optical surface measurement: A hybrid deep learning approach. *Inclusive Growth and Governance Quarterly*, *2*(1).

Malema. (2026g). Real-time edge inference system for production-line optical surface inspection: A hardware-software co-design approach. *Inclusive Growth and Governance Quarterly*, *2*(1).

Malema. (2026h). Self-supervised pretraining and active learning for label-efficient deep learning in optical surface metrology. *Inclusive Growth and Governance Quarterly*, *2*(1).

Malema. (2026i). Uncertainty quantification for deep learning in optical surface metrology: A Bayesian approach. *Inclusive Growth and Governance Quarterly*, *2*(1).

Malema. (2026j). Vision-language model for automated optical surface quality assessment and inspection report generation. *Inclusive Growth and Governance Quarterly*, *2*(1).