Skip to main navigation Skip to search Skip to main content

U-Flow: A U-Shaped Normalizing Flow for Anomaly Detection with Unsupervised Threshold

  • Digital Sense
  • Universidad de la República

Research output: Contribution to journalArticlepeer-review

18 Scopus citations

Abstract

In this work, we propose a one-class self-supervised method for anomaly segmentation in images that benefits from both a modern machine learning approach and a more classic statistical detection theory. The method consists of four phases. First, features are extracted using a multi-scale image transformer architecture. Then, these features are fed into a U-shaped normalizing flow (NF) that lays the theoretical foundations for the subsequent phases. The third phase computes a pixel-level anomaly map from the NF embedding, and the last phase performs a segmentation based on the a contrario framework. This multiple hypothesis testing strategy permits the derivation of robust unsupervised detection thresholds, which are crucial in real-world applications where an operational point is needed. The segmentation results are evaluated using the mean intersection over union metric, and for assessing the generated anomaly maps we report the area under the receiver operating characteristic curve (AUROC), as well as the area under the per-region-overlap curve (AUPRO). Extensive experimentation in various datasets shows that the proposed approach produces state-of-the-art results for all metrics and all datasets, ranking first in most MVTec-AD categories, with a mean pixel-level AUROC of 98.74%. Code and trained models are available at https://github.com/mtailanian/uflow.

Original languageEnglish
Pages (from-to)678-696
Number of pages19
JournalJournal of Mathematical Imaging and Vision
Volume66
Issue number4
DOIs
StatePublished - Aug 2024

Keywords

  • A contrario
  • Anomaly detection
  • Anomaly localization
  • NFA
  • Normalizing flows
  • Novelty detection
  • Number of false alarms
  • One-class classification
  • Self-supervised learning

Fingerprint

Dive into the research topics of 'U-Flow: A U-Shaped Normalizing Flow for Anomaly Detection with Unsupervised Threshold'. Together they form a unique fingerprint.

Cite this