Self-supervised learning for anomaly detection with dynamic local augmentation

Seungdong Yoa, Seungjun Lee, Chiyoon Kim, Hyunwoo J. Kim

Research output: Contribution to journalArticlepeer-review

10 Citations (Scopus)


Anomaly detection is an important problem for recent advances in machine learning. To this end, many attempts have emerged to detect unknown anomalies of the images by learning representations and designing score functions. In this paper, we propose a simple yet effective framework for unsupervised anomaly detection using self-supervised learning. We extend conventional self-supervised learning for an anomaly detection problem. In anomaly detection, anomalous patterns appear in the local regions of an image, so we employ dynamic local augmentation to generate a negative pair of the images from the normal training dataset. Specifically, in addition to learning the global representation of an image, our framework contrasts a normal sample to a locally augmented sample. To effectively apply the local augmentations regardless of a category or a random location of an image, we use dynamically weighted local augmentations to generate more suitable negative samples. We also present a novel scoring function for detecting unseen anomalous patterns. Our experiment demonstrates the effectiveness of our method, and we show that our framework achieves competitive performance compared to state-of-the-art methods on MVTec Anomaly Detection dataset.

Original languageEnglish
Pages (from-to)147201-147211
Number of pages11
JournalIEEE Access
Publication statusPublished - 2021

Bibliographical note

Publisher Copyright:
© 2021 Institute of Electrical and Electronics Engineers Inc.. All rights reserved.


  • Anomaly detection
  • Computer vision
  • Deep learning
  • Machine learning
  • Self-supervised learning

ASJC Scopus subject areas

  • General Engineering
  • General Materials Science
  • General Computer Science


Dive into the research topics of 'Self-supervised learning for anomaly detection with dynamic local augmentation'. Together they form a unique fingerprint.

Cite this