An Evaluation of Diffusion-Based Anomaly Detection in Metal Can Products
VERSION OF RECORD ONLINE: 18/09/2025
Corressponding author's email:
21139073@student.hcmute.edu.vnDOI:
https://doi.org/10.54644/jte.2025.1831Keywords:
Anomaly detection, Unsupervised learning, Diffusion model, Quality assurance, Computer VisionAbstract
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
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
How to Cite
Issue
Section
Categories
License
Copyright (c) 2025 Journal of Technical Education Science

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
Copyright © JTE.


