JRCC-Net: A Segmentation Network With Joint Representation and Contrast Clustering for Surface Anomaly Detection

The goal of unsupervised surface anomaly detection is to detect areas of the image that are different from the normal pattern, which can be considered as a semantic segmentation problem oriented to anomalous patterns. However, this problem is challenging due to the lack of actual available anomaly sam- ples. In this article, we transform unsupervised anomaly detection into a self-supervised problem by the proposed anomaly simulation strategy. Using only normal samples for training, real anomalies appearing in the inference phase can be detected. Thus, we propose a segmentation network with joint representation and contrast clustering (JRCC-Net). The proposed method learns a joint representation between simulated samples and the magnitude of the differences in distance from their nearest memory samples, as well as a decision boundary between normal and anomalous samples. Moreover, we propose a novel contrast clustering-based representation learning strategy, which allows the model to better learn general patterns from normal samples and mine the latent differences between simulated anomalous and normal samples. JRCC-Net is able to locate anomalies directly in an end-to-end manner and can be trained well with our elaborate anomaly simulation strategy. On the challenging MVTec AD dataset, JRCC-Net outperforms the state-of-the-art unsupervised methods, achieving 98.2% image-level area under the receiver operating characteristics (AUROC) and 97.7% pixel-level AUROC, respectively, and even on the extensively used DAGM dataset, its localization accuracy greatly exceeds that of fully supervised methods.

[1]  Zilei Wang,et al.  SimpleNet: A Simple Network for Image Anomaly Detection and Localization , 2023, 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).

[2]  Xinyi Gong,et al.  Deep Learning for Unsupervised Anomaly Localization in Industrial Images: A Survey , 2022, IEEE Transactions on Instrumentation and Measurement.

[3]  Minghui Yang,et al.  MemSeg: A semi-supervised method for image surface defect detection using differences and commonalities , 2022, Eng. Appl. Artif. Intell..

[4]  Radu Tudor Ionescu,et al.  Self-Supervised Predictive Convolutional Attentive Block for Anomaly Detection , 2021, 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).

[5]  Rui Zhao,et al.  Focus Your Distribution: Coarse-to-Fine Non-Contrastive Learning for Anomaly Detection and Localization , 2021, 2022 IEEE International Conference on Multimedia and Expo (ICME).

[6]  Kyeongbo Kong,et al.  AnoSeg: Anomaly Segmentation Network Using Self-Supervised Learning , 2021, ArXiv.

[7]  D. Skočaj,et al.  DRÆM – A discriminatively trained reconstruction embedding for surface anomaly detection , 2021, 2021 IEEE/CVF International Conference on Computer Vision (ICCV).

[8]  B. Schölkopf,et al.  Towards Total Recall in Industrial Anomaly Detection , 2021, 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).

[9]  Jonathan Pirnay,et al.  Inpainting Transformer for Anomaly Detection , 2021, ICIAP.

[10]  Gian Luca Foresti,et al.  VT-ADL: A Vision Transformer Network for Image Anomaly Detection and Localization , 2021, 2021 IEEE 30th International Symposium on Industrial Electronics (ISIE).

[11]  Tomas Pfister,et al.  CutPaste: Self-Supervised Learning for Anomaly Detection and Localization , 2021, 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).

[12]  Jiashi Feng,et al.  Coordinate Attention for Efficient Mobile Network Design , 2021, 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).

[13]  Romaric Audigier,et al.  PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localization , 2020, ICPR Workshops.

[14]  Matej Kristan,et al.  Reconstruction by inpainting for visual anomaly detection , 2020, Pattern Recognit..

[15]  Dezhong Peng,et al.  Contrastive Clustering , 2021, AAAI.

[16]  Bin Zhan,et al.  An Efficient Network for Surface Defect Detection , 2020 .

[17]  Danijel Skocaj,et al.  End-to-end training of a two-stage neural network for defect detection , 2020, 2020 25th International Conference on Pattern Recognition (ICPR).

[18]  Sungroh Yoon,et al.  Patch SVDD: Patch-level SVDD for Anomaly Detection and Segmentation , 2020, ACCV.

[19]  Chien-Fang Ding,et al.  Anomaly Detection Neural Network with Dual Auto-Encoders GAN and Its Industrial Inspection Applications , 2020, Sensors.

[20]  Yedid Hoshen,et al.  Sub-Image Anomaly Detection with Deep Pyramid Correspondences , 2020, ArXiv.

[21]  Geoffrey E. Hinton,et al.  A Simple Framework for Contrastive Learning of Visual Representations , 2020, ICML.

[22]  O. Camps,et al.  Towards Visually Explaining Variational Autoencoders , 2019, 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).

[23]  Paul Bergmann,et al.  Uninformed Students: Student-Teacher Anomaly Detection With Discriminative Latent Embeddings , 2019, 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).

[24]  Carsten Steger,et al.  MVTec AD — A Comprehensive Real-World Dataset for Unsupervised Anomaly Detection , 2019, 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).

[25]  Georg Langs,et al.  f‐AnoGAN: Fast unsupervised anomaly detection with generative adversarial networks , 2019, Medical Image Anal..

[26]  Svetha Venkatesh,et al.  Memorizing Normality to Detect Anomaly: Memory-Augmented Deep Autoencoder for Unsupervised Anomaly Detection , 2019, 2019 IEEE/CVF International Conference on Computer Vision (ICCV).

[27]  Toby P. Breckon,et al.  Skip-GANomaly: Skip Connected and Adversarially Trained Encoder-Decoder Anomaly Detection , 2019, 2019 International Joint Conference on Neural Networks (IJCNN).

[28]  Carsten Steger,et al.  Improving Unsupervised Defect Segmentation by Applying Structural Similarity to Autoencoders , 2018, VISIGRAPP.

[29]  Alexander Binder,et al.  Deep One-Class Classification , 2018, ICML.

[30]  Toby P. Breckon,et al.  GANomaly: Semi-Supervised Anomaly Detection via Adversarial Training , 2018, ACCV.

[31]  Dejan Tomazevic,et al.  A Compact Convolutional Neural Network for Textured Surface Anomaly Detection , 2018, 2018 IEEE Winter Conference on Applications of Computer Vision (WACV).

[32]  Mahmood Fathy,et al.  Adversarially Learned One-Class Classifier for Novelty Detection , 2018, 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition.

[33]  Hua Yang,et al.  An Unsupervised-Learning-Based Approach for Automated Defect Inspection on Textured Surfaces , 2018, IEEE Transactions on Instrumentation and Measurement.

[34]  Kaiming He,et al.  Focal Loss for Dense Object Detection , 2017, 2017 IEEE International Conference on Computer Vision (ICCV).

[35]  Georg Langs,et al.  Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discovery , 2017, IPMI.

[36]  Jian Sun,et al.  Deep Residual Learning for Image Recognition , 2015, 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).

[37]  Thomas Brox,et al.  U-Net: Convolutional Networks for Biomedical Image Segmentation , 2015, MICCAI.

[38]  Iasonas Kokkinos,et al.  Describing Textures in the Wild , 2013, 2014 IEEE Conference on Computer Vision and Pattern Recognition.

[39]  Chandan Srivastava,et al.  Support Vector Data Description , 2011 .

[40]  Vladimir Kolmogorov,et al.  "GrabCut": interactive foreground extraction using iterated graph cuts , 2004, ACM Trans. Graph..

[41]  Ken Perlin,et al.  An image synthesizer , 1988 .

[42]  Kun Liu,et al.  Detection of Surface Defects in Solar Cells by Bidirectional-Path Feature Pyramid Group-Wise Attention Detector , 2022, IEEE Transactions on Instrumentation and Measurement.

[43]  Chandranath Adak,et al.  Unsupervised Anomaly Detection for Surface Defects with Dual-Siamese Network , 2022, IEEE Transactions on Industrial Informatics.