{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,4,22]],"date-time":"2026-04-22T05:29:16Z","timestamp":1776835756868,"version":"3.51.2"},"reference-count":37,"publisher":"MDPI AG","issue":"3","license":[{"start":{"date-parts":[[2022,3,13]],"date-time":"2022-03-13T00:00:00Z","timestamp":1647129600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Future Internet"],"abstract":"<jats:p>Industrial quality control is an important task. Most of the existing vision-based unsupervised industrial anomaly detection and segmentation methods require that the training set only consists of normal samples, which is difficult to ensure in practice. This paper proposes an unsupervised framework to solve the industrial anomaly detection and segmentation problem when the training set contains anomaly samples. Our framework uses a model pretrained on ImageNet as a feature extractor to extract patch-level features. After that, we propose a trimming method to estimate a robust Gaussian distribution based on the patch features at each position. Then, with an iterative filtering process, we can iteratively filter out the anomaly samples in the training set and re-estimate the Gaussian distribution at each position. In the prediction phase, the Mahalanobis distance between a patch feature vector and the center of the Gaussian distribution at the corresponding position is used as the anomaly score of this patch. The subsequent anomaly region segmentation is performed based on the patch anomaly score. We tested the proposed method on three datasets containing the anomaly samples and obtained state-of-the-art performance.<\/jats:p>","DOI":"10.3390\/fi14030086","type":"journal-article","created":{"date-parts":[[2022,3,13]],"date-time":"2022-03-13T22:29:43Z","timestamp":1647210583000},"page":"86","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":4,"title":["Unsupervised Anomaly Detection and Segmentation on Dirty Datasets"],"prefix":"10.3390","volume":"14","author":[{"given":"Jiahao","family":"Guo","sequence":"first","affiliation":[{"name":"School of Computer Engineering and Science, Shanghai University, Shanghai 200444, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Xiaohuo","family":"Yu","sequence":"additional","affiliation":[{"name":"School of Computer Engineering and Science, Shanghai University, Shanghai 200444, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Lu","family":"Wang","sequence":"additional","affiliation":[{"name":"School of Computer Engineering and Science, Shanghai University, Shanghai 200444, China"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2022,3,13]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"348","DOI":"10.1109\/TIE.1930.896476","article-title":"Computer-vision-based fabric defect detection: A survey","volume":"55","author":"Kumar","year":"2008","journal-title":"IEEE Trans. Ind. Electron."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3439950","article-title":"Deep learning for anomaly detection: A review","volume":"54","author":"Pang","year":"2021","journal-title":"ACM Comput. Surv."},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Czimmermann, T., Ciuti, G., Milazzo, M., Chiurazzi, M., Roccella, S., Oddo, C.M., and Dario, P. (2020). Visual-based defect detection and classification approaches for industrial applications\u2014A survey. Sensors, 20.","DOI":"10.3390\/s20051459"},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"756","DOI":"10.1109\/JPROC.2021.3052449","article-title":"A unifying review of deep and shallow anomaly detection","volume":"109","author":"Ruff","year":"2021","journal-title":"Proc. IEEE"},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Chalapathy, R., and Chawla, S. (2019). Deep learning for anomaly detection: A survey. arXiv.","DOI":"10.1145\/3394486.3406704"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"8","DOI":"10.1002\/cpns.41","article-title":"A guide to robust statistical methods in neuroscience","volume":"82","author":"Wilcox","year":"2018","journal-title":"Current Protoc. Neurosci."},{"key":"ref_7","first-page":"1443","article-title":"Estimating the support of a high-dimensional distribution","volume":"3","author":"Platt","year":"2001","journal-title":"Neural Comput."},{"key":"ref_8","unstructured":"Yi, J., and Yoon, S. (December, January 30). Patch svdd: Patch-level svdd for anomaly detection and segmentation. Proceedings of the Asian Conference on Computer Vision, Kyoto, Japan."},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"45","DOI":"10.1023\/B:MACH.0000008084.60811.49","article-title":"Support vector data description","volume":"54","author":"Tax","year":"2004","journal-title":"Mach. Learn."},{"key":"ref_10","unstructured":"Golan, I., and El-Yaniv, R. (2018). Deep anomaly detection using geometric transformations. arXiv."},{"key":"ref_11","unstructured":"Sohn, K., Li, C.-L., Yoon, J., Jin, M., and Pfister, T. (2020). Learning and evaluating representations for deep one-class classification. arXiv."},{"key":"ref_12","unstructured":"Chen, T., Kornblith, S., Norouzi, M., and Hinton, G. (2020, January 13\u201318). A simple framework for contrastive learning of visual representations. Proceedings of the International Conference on Machine Learning, Virtual."},{"key":"ref_13","unstructured":"Schl\u00fcter, H.M., Tan, J., Hou, B., and Kainz, B. (2021). Self-supervised out-of-distribution detection and localization with natural synthetic anomalies (nsa). arXiv."},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Li, C.-L., Sohn, K., Yoon, J., and Pfister, T. (2021, January 19\u201325). Cutpaste: Self-supervised learning for anomaly detection and localization. Proceedings of the IEEE\/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA.","DOI":"10.1109\/CVPR46437.2021.00954"},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Rippel, O., Mertens, P., and Merhof, D. (2021, January 10\u201315). Modeling the distribution of normal data in pre-trained deep features for anomaly detection. Proceedings of the 2020 25th International Conference on Pattern Recognition (ICPR), Milan, Italy.","DOI":"10.1109\/ICPR48806.2021.9412109"},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Defard, T., Setkov, A., Loesch, A., and Audigier, R. (2021, January 10\u201311). Padim: A patch distribution modeling framework for anomaly detection and localization. Proceedings of the ICPR 2020-25th International Conference on Pattern Recognition Workshops and Challenges, Milan, Italy.","DOI":"10.1007\/978-3-030-68799-1_35"},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Zheng, Y., Wang, X., Deng, R., Bao, T., Zhao, R., and Wu, L. (2021). Focus your distribution: Coarse-to-fine non-contrastive learning for anomaly detection and localization. arXiv.","DOI":"10.1109\/ICME52920.2022.9859925"},{"key":"ref_18","unstructured":"Cohen, N., and Hoshen, Y. (2020). Sub-image anomaly detection with deep pyramid correspondences. arXiv."},{"key":"ref_19","unstructured":"Wang, G., Han, S., Ding, E., and Huang, D. (2021). Student-teacher feature pyramid matching for anomaly detection. arXiv."},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Schlegl, T., Seeb\u00f6ck, P., Waldstein, S.M., Schmidt-Erfurth, U., and Langs, G. (2017, January 25\u201330). Unsupervised anomaly detection with generative adversarial networks to guide marker discovery. Proceedings of the International Conference on Information Processing in Medical Imaging, Boone, NC, USA.","DOI":"10.1007\/978-3-319-59050-9_12"},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"30","DOI":"10.1016\/j.media.2019.01.010","article-title":"f-anogan: Fast unsupervised anomaly detection with generative adversarial networks","volume":"54","author":"Schlegl","year":"2019","journal-title":"Med. Image Anal."},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Deecke, L., Vandermeulen, R., Ruff, L., Mandt, S., and Kloft, M. (2018, January 19\u201323). Image anomaly detection with generative adversarial networks. Poceedings of the Joint European Conference on Machine Learning and Knowledge Discovery in Databases, Riva del Garda, Italy.","DOI":"10.1007\/978-3-030-10925-7_1"},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Sabokrou, M., Khalooei, M., Fathy, M., and Adeli, E. (2018, January 18\u201323). Adversarially learned one-class classifier for novelty detection. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.","DOI":"10.1109\/CVPR.2018.00356"},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Akcay, S., Atapour-Abarghouei, A., and Breckon, T.P. (2018, January 2\u20136). Ganomaly: Semi-supervised anomaly detection via adversarial training. Proceedings of the Asian conference on computer vision, Perth, Australia.","DOI":"10.1007\/978-3-030-20893-6_39"},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Venkataramanan, S., Peng, K.-C., Singh, R.V., and Mahalanobis, A. (2020, January 23\u201328). Attention guided anomaly localization in images. Proceedings of the European Conference on Computer Vision, Glasgow, UK.","DOI":"10.1007\/978-3-030-58520-4_29"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Bergmann, P., L\u00f6we, S., Fauser, M., Sattlegger, D., and Steger, C. (2018). Improving unsupervised defect segmentation by applying structural similarity to autoencoders. arXiv.","DOI":"10.5220\/0007364503720380"},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Gong, D., Liu, L., Le, V., Saha, B., Mansour, M.R., Venkatesh, S., and Hengel, A.v.d. (2019, January 27\u201328). Memorizing normality to detect anomaly: Memory-augmented deep autoencoder for unsupervised anomaly detection. Proceedings of the IEEE\/CVF International Conference on Computer Vision, Seoul, Korea.","DOI":"10.1109\/ICCV.2019.00179"},{"key":"ref_28","unstructured":"Li, Z., Li, N., Jiang, K., Ma, Z., Wei, X., Hong, X., and Gong, Y. (2020). Superpixel masking and inpainting for self-supervised anomaly detection. BMVC, Available online: https:\/\/www.bmvc2020-conference.com\/assets\/papers\/0275.pdf."},{"key":"ref_29","first-page":"1","article-title":"Variational autoencoder based anomaly detection using reconstruction probability","volume":"2","author":"An","year":"2015","journal-title":"Spec. Lect. IE"},{"key":"ref_30","unstructured":"You, S., Tezcan, K.C., Chen, X., and Konukoglu, E. (2019, January 8\u201310). Unsupervised lesion detection via image restoration with a normative prior. Proceedings of the International Conference on Medical Imaging with Deep Learning, London, UK."},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"Pirnay, J., and Chai, K. (2021). Inpainting transformer for anomaly detection. arXiv.","DOI":"10.1007\/978-3-031-06430-2_33"},{"key":"ref_32","doi-asserted-by":"crossref","unstructured":"Tan, D.S., Chen, Y.-C., Chen, T.P.-C., and Chen, W.-C. (2021, January 4\u20138). Trustmae: A noise-resilient defect classification framework using memory-augmented auto-encoders with trust regions. Proceedings of the IEEE\/CVF Winter Conference on Applications of Computer Vision, Waikoloa, HI, USA.","DOI":"10.1109\/WACV48630.2021.00032"},{"key":"ref_33","doi-asserted-by":"crossref","unstructured":"Li, T., Wang, Z., Liu, S., and Lin, W.-Y. (2021, January 4\u20138). Deep unsupervised anomaly detection. Proceedings of the IEEE\/CVF Winter Conference on Applications of Computer Vision, Waikoloa, HI, USA.","DOI":"10.1109\/WACV48630.2021.00368"},{"key":"ref_34","unstructured":"Yang, J., Shi, Y., and Qi, Z. (2020). Dfr: Deep feature reconstruction for unsupervised anomaly segmentation. arXiv."},{"key":"ref_35","doi-asserted-by":"crossref","unstructured":"Bergmann, P., Fauser, M., Sattlegger, D., and Steger, C. (2019, January 15\u201320). Mvtec ad\u2013a comprehensive real-world dataset for unsupervised anomaly detection. Proceedings of the IEEE\/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA.","DOI":"10.1109\/CVPR.2019.00982"},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"103459","DOI":"10.1016\/j.compind.2021.103459","article-title":"Mixed supervision for surface-defect detection: From weakly to fully supervised learning","volume":"129","author":"Tabernik","year":"2021","journal-title":"Comput. Ind."},{"key":"ref_37","doi-asserted-by":"crossref","unstructured":"Mishra, P., Verk, R., Fornasier, D., Piciarelli, C., and Foresti, G.L. (2021). Vt-adl: A vision transformer network for image anomaly detection and localization. arXiv.","DOI":"10.1109\/ISIE45552.2021.9576231"}],"container-title":["Future Internet"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1999-5903\/14\/3\/86\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T22:35:43Z","timestamp":1760135743000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1999-5903\/14\/3\/86"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,3,13]]},"references-count":37,"journal-issue":{"issue":"3","published-online":{"date-parts":[[2022,3]]}},"alternative-id":["fi14030086"],"URL":"https:\/\/doi.org\/10.3390\/fi14030086","relation":{},"ISSN":["1999-5903"],"issn-type":[{"value":"1999-5903","type":"electronic"}],"subject":[],"published":{"date-parts":[[2022,3,13]]}}}