Modeling the Distribution of Normal Data in Pre-Trained Deep Features for Anomaly Detection

05/28/2020
by   Oliver Rippel, et al.
4

Anomaly Detection (AD) in images is a fundamental computer vision problem and refers to identifying images and/or image substructures that deviate significantly from the norm. Popular AD algorithms commonly try to learn a model of normality from scratch using task specific datasets, but are limited to semi-supervised approaches employing mostly normal data due to the inaccessibility of anomalies on a large scale combined with the ambiguous nature of anomaly appearance. We follow an alternative approach and demonstrate that deep feature representations learned by discriminative models on large natural image datasets are well suited to describe normality and detect even subtle anomalies. Our model of normality is established by fitting a multivariate Gaussian to deep feature representations of classification networks trained on ImageNet using normal data only in a transfer learning setting. By subsequently applying the Mahalanobis distance as the anomaly score we outperform the current state of the art on the public MVTec AD dataset, achieving an Area Under the Receiver Operating Characteristic curve of 95.8 ± 1.2 (mean ± SEM) over all 15 classes. We further investigate why the learned representations are discriminative to the AD task using Principal Component Analysis. We find that the principal components containing little variance in normal data are the ones crucial for discriminating between normal and anomalous instances. This gives a possible explanation to the often sub-par performance of AD approaches trained from scratch using normal data only. By selectively fitting a multivariate Gaussian to these most relevant components only we are able to further reduce model complexity while retaining AD performance. We also investigate setting the working point by selecting acceptable False Positive Rate thresholds based on the multivariate Gaussian assumption.

READ FULL TEXT
research
08/09/2021

Transfer Learning Gaussian Anomaly Detection by Fine-Tuning Representations

Current state-of-the-art Anomaly Detection (AD) methods exploit the powe...
research
07/20/2023

Heuristic Hyperparameter Choice for Image Anomaly Detection

Anomaly detection (AD) in images is a fundamental computer vision proble...
research
08/09/2023

Gaussian Image Anomaly Detection with Greedy Eigencomponent Selection

Anomaly detection (AD) in images, identifying significant deviations fro...
research
11/16/2022

On the Connection of Generative Models and Discriminative Models for Anomaly Detection

Anomaly detection (AD) has attracted considerable attention in both acad...
research
05/30/2020

Rethinking Assumptions in Deep Anomaly Detection

Though anomaly detection (AD) can be viewed as a classification problem ...
research
10/14/2022

Learning image representations for anomaly detection: application to discovery of histological alterations in drug development

We present a system for anomaly detection in histopathological images. I...
research
07/20/2023

Optimizing PatchCore for Few/many-shot Anomaly Detection

Few-shot anomaly detection (AD) is an emerging sub-field of general AD, ...

Please sign up or login with your details

Forgot password? Click here to reset