An Evaluation of Diffusion-Based Anomaly Detection in Metal Can Products

VERSION OF RECORD ONLINE: 18/09/2025

Authors

Corressponding author's email:

21139073@student.hcmute.edu.vn

DOI:

https://doi.org/10.54644/jte.2025.1831

Keywords:

Anomaly detection, Unsupervised learning, Diffusion model, Quality assurance, Computer Vision

Abstract

Deep learning has been considered a successful solution to process images and complex data. Hence, it is expected to be a standard solution for quality assurance in manufacturing. A standard deep learning-based method tries to reconstruct a normal image, and the difference between a testing image and its corresponding reconstructed image serves as an anomaly map. While a reconstruction model had been proposed, diffusion methods had been considered as SoTA solutions for image generation. However, these methods are tested on well-prepared datasets collected by costly devices in less noisy conditions. In an industrial environment, the image may be collected using economic hardware with serious noise. Motivated by the observation, this work tries to evaluate how diffusion-based anomaly detections work in a practice environment. We first collected a dataset by ourselves and tested it on various well-known anomaly detection methods. The hardware includes a rotating disk and a camera to capture sample data from various angles, while the software serves as an anomaly detection system for test samples. Also, we focus on well-known diffusion models to address whether this method works in high-variance environments. Comprehensive experiments on three can-datasets had been implemented, and the result shows that at the image level, the diffusion method works robustly without error.

Downloads: 0

Download data is not yet available.

Author Biographies

Xuan-Vy Huynh, Ho Chi Minh City University of Technology and Education, Vietnam

Xuan-Vy Huynh completed his high school education at Thuc Hanh High School in Ho Chi Minh City, Vietnam, from 2020 to 2022, where he built a solid academic foundation and developed essential skills for further studies. In 2022, he began his undergraduate studies in Embedded Systems and the Internet of Things (IoT) at Ho Chi Minh City University of Technology and Education, actively engaging in a dynamic and innovative academic environment. He is currently an undergraduate student, actively exploring and conducting research in the fields of deep learning and image processing.

Email: 22139079@student.hcmute.edu.vn. ORCID:  https://orcid.org/0009-0005-0671-7277

Quoc-Danh Pham, Ho Chi Minh City University of Technology and Education, Vietnam

Quoc-Danh Pham completed his high school education at Phu My 1 High School in Gialai, Vietnam, from 2019 to 2021, where he built a solid academic foundation and developed essential skills for further studies. In 2021, he began his undergraduate studies in Embedded Systems and the Internet of Things (IoT) at Ho Chi Minh City University of Technology and Education, actively engaging in a dynamic and innovative academic environment. He is currently an undergraduate student, actively exploring and conducting research in the fields of deep learning and image processing.

Email: 21139073@student.hcmute.edu.vn. ORCID:  https://orcid.org/0009-0008-1182-5020

Viet-Nhat Pham, Bosch Global Software Technologies Company Limited, Vietnam

Viet-Nhat Pham completed his high school education at Pham Van Dong High School, Quang Ngai, Vietnam, in 2021. Since then, he has been pursuing his undergraduate degree in Embedded Systems and the Internet of Things (IoT) at Ho Chi Minh City University of Technology and Education. His academic interests lie in deep learning and image processing, where he is actively engaging in research and project development.

Email: hnm8hc@bosch.com. ORCID:  https://orcid.org/0009-0002-5866-4785

Duy-Vuong Tran, Ho Chi Minh City University of Technology and Education, Vietnam

Duy-Vuong Tran completed his high school education at Nguyen Dieu High School in Binh Dinh Province, Vietnam. He later pursued studies in the field of Internet of Things (IoT) but has not yet completed his undergraduate degree.

His research interests are in deep learning and image processing. In addition, he is passionate about digital transformation in enterprises, exploring how emerging technologies such as AI, and cloud computing can help optimize business operations and decision-making processes.

Email: 22139078@student.hcmute.edu.vn. ORCID:  https://orcid.org/0009-0004-8003-0871

Manh-Hung Nguyen, Ho Chi Minh City University of Technology and Education, Vietnam

Manh-Hung Nguyen received a B.S. and M.S. in electrical engineering from the National University of Technology and Education, Ho Chi Minh City, Vietnam, in 2009 and 2011, respectively, and a Ph.D. degree in electrical engineering from the National Kaohsiung University of Applied Sciences, Taiwan, in 2016. He is currently an Assistant Professor in the Faculty of Electrical Electronic Engineering, University of Technology and Education, Vietnam. His research interests are in deep learning and image processing.

Email: hungnm@hcmute.edu.vn. ORCID:  https://orcid.org/0000-0003-3869-4610

References

T. Defard, A. Setkov, A. Loesch, and R. Audigier, “PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localization,” Nov. 17, 2020, arXiv: arXiv:2011.08785. doi: 10.48550/arXiv.2011.08785.

K. Roth, L. Pemula, J. Zepeda, B. Schölkopf, T. Brox, and P. Gehler, “Towards Total Recall in Industrial Anomaly Detection,” May 05, 2022, arXiv: arXiv:2106.08265. doi: 10.48550/arXiv.2106.08265.

M. Rudolph, T. Wehrbein, B. Rosenhahn, and B. Wandt, “Fully Convolutional Cross-Scale-Flows for Image-based Defect Detection,” Oct. 06, 2021, arXiv: arXiv:2110.02855. doi: 10.48550/arXiv.2110.02855.

I. Kobyzev, S. J. D. Prince, and M. A. Brubaker, “Normalizing Flows: An Introduction and Review of Current Methods,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 43, no. 11, pp. 3964–3979, Nov. 2021, doi: 10.1109/TPAMI.2020.2992934.

D. P. Kingma and M. Welling, “Auto-Encoding Variational Bayes,” Dec. 10, 2022, arXiv: arXiv:1312.6114. doi: 10.48550/arXiv.1312.6114.

I. J. Goodfellow et al., “Generative Adversarial Networks,” Jun. 10, 2014, arXiv: arXiv:1406.2661. doi: 10.48550/arXiv.1406.2661.

A. Mousakhan, T. Brox, and J. Tayyub, “Anomaly Detection with Conditioned Denoising Diffusion Models,” vol. 15297, 2025, pp. 181–195. doi: 10.1007/978-3-031-85181-0_12.

P. Dhariwal and A. Nichol, “Diffusion Models Beat GANs on Image Synthesis,” Jun. 01, 2021, arXiv: arXiv:2105.05233. doi: 10.48550/arXiv.2105.05233.

“Papers with Code - MVTec AD Benchmark (Anomaly Detection).” Accessed: Jun. 02, 2025. [Online]. Available: https://paperswithcode.com/sota/anomaly-detection-on-mvtec-ad

P. Bergmann, M. Fauser, D. Sattlegger, and C. Steger, “MVTec AD — A Comprehensive Real-World Dataset for Unsupervised Anomaly Detection,” in 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Jun. 2019, pp. 9584–9592. doi: 10.1109/CVPR.2019.00982.

Y. Huang, C. Qiu, Y. Guo, X. Wang, and K. Yuan, “Surface Defect Saliency of Magnetic Tile,” in 2018 IEEE 14th International Conference on Automation Science and Engineering (CASE), Aug. 2018, pp. 612–617. doi: 10.1109/COASE.2018.8560423.

W. Shin, J. Lee, T. Lee, S. Lee, and J. P. Yun, “Anomaly Detection using Score-based Perturbation Resilience,” in 2023 IEEE/CVF International Conference on Computer Vision (ICCV), Oct. 2023, pp. 23315–23325. doi: 10.1109/ICCV51070.2023.02136.

V. Zavrtanik, M. Kristan, and D. Skočaj, “DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detection,” Sep. 27, 2021, arXiv: arXiv:2108.07610. doi: 10.48550/arXiv.2108.07610.

J. Ho, A. Jain, and P. Abbeel, “Denoising Diffusion Probabilistic Models,” Dec. 16, 2020, arXiv: arXiv:2006.11239. doi: 10.48550/arXiv.2006.11239.

K. Batzner, L. Heckler, and R. König, “EfficientAD: Accurate Visual Anomaly Detection at Millisecond-Level Latencies,” Feb. 08, 2024, arXiv: arXiv:2303.14535. doi: 10.48550/arXiv.2303.14535.

Downloads

Published

18-09-2025

How to Cite

Huynh, X.-V., Pham, Q.-D., Pham, V.-N., Tran, D.-V., & Nguyen, M.-H. (2025). An Evaluation of Diffusion-Based Anomaly Detection in Metal Can Products: VERSION OF RECORD ONLINE: 18/09/2025. Journal of Technical Education Science. https://doi.org/10.54644/jte.2025.1831