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

Matías Tailanian, Álvaro Pardo, Pablo Musé
11/22/2022
46 citations
cs.CV
diffusion-flow

Official code: mtailanian/uflow (42 stars, Python, AGPL-3.0, last commit 2024-11-08).

Abstract

In this work we propose a one-class self-supervised method for anomaly segmentation in images that benefits both from a modern machine learning approach and a more classic statistical detection theory. The method consists of four phases.

Show full abstract

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 (mIoU) 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.

View on arXivView PDF

Code Implementations(1)

mtailanian/uflowOfficial100%
AGPL-3.0
426PythonNov 16, 20222 years agoAGPL-3.0

Similar Papers

Cite this paper

@article{tailanian2022uflow,
  title  = {U-Flow: A U-shaped Normalizing Flow for Anomaly Detection with Unsupervised Threshold},
  author = {Matías Tailanian and Álvaro Pardo and Pablo Musé},
  year   = {2022},
  eprint = {2211.12353},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.12353}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.12353.svg)](https://codeofpaper.com/paper/2211.12353)

Discussion