Discrepancy Constraint Learning for Industrial Unsupervised Anomaly Detection

10 Pages Posted: 6 Apr 2024

See all articles by Yiguo Song

Yiguo Song

Zhejiang University

Zhenyu Liu

Zhejiang University

Hui Liu

Zhejiang University

Ruining Tang

Zhejiang University

Guifang Duan

Zhejiang University

Jianrong Tan

Zhejiang University

Abstract

Anomaly detection plays an important role in industrial production. In this area, existing reconstruction-based methods aim to reduce the reconstruction discrepancy on the normal samples and then the abnormal samples can not be reconstructed well. However, there is a risk that the model has no pathway to know the abnormal features. Thus, these methods cannot guarantee the high reconstruction discrepancy of the abnormal samples since the anomaly is open-set. Therefore, we propose a discrepancy constraint learning method (DiCo) for the unsupervised anomaly detection, including discrepancy construction and discrepancy augmentation. First, in the discrepancy construction, we design a dual-branch input autoencoder. For the same images in each batch, one pre-trained encoder branch is fed into the normal images and another is fed into the masked images. The hierarchical reconstruction error is calculated between the masked images reconstruction output and the normal images input. Second, in discrepancy augmentation, we propose a learnable dynamic memory module to store the common normal features and reweight the abnormal features. Meanwhile, a novel anomaly score is proposed to select the larger pixel predicted values adaptively as the anomaly score to effectively improve the discrepancy between normal and abnormal samples. The experimental results illustrate that DiCo outperforms the SOTA methods on the well-known dataset MVTec with 99.5%AUC in image level and 98.8%AUC in pixel level.

Keywords: Anomaly DetectionSelf-supervised LearningDynamic MemoryAnomaly Score

Suggested Citation

Song, Yiguo and Liu, Zhenyu and Liu, Hui and Tang, Ruining and Duan, Guifang and Tan, Jianrong, Discrepancy Constraint Learning for Industrial Unsupervised Anomaly Detection. Available at SSRN: https://ssrn.com/abstract=4786002 or http://dx.doi.org/10.2139/ssrn.4786002

Yiguo Song

Zhejiang University ( email )

38 Zheda Road
Hangzhou, 310058
China

Zhenyu Liu

Zhejiang University ( email )

38 Zheda Road
Hangzhou, 310058
China

Hui Liu

Zhejiang University ( email )

38 Zheda Road
Hangzhou, 310058
China

Ruining Tang

Zhejiang University ( email )

38 Zheda Road
Hangzhou, 310058
China

Guifang Duan (Contact Author)

Zhejiang University ( email )

38 Zheda Road
Hangzhou, 310058
China

Jianrong Tan

Zhejiang University ( email )

38 Zheda Road
Hangzhou, 310058
China

Do you have a job opening that you would like to promote on SSRN?

Paper statistics

Downloads
26
Abstract Views
151
PlumX Metrics