Anomaly detection through latent space restoration using vector-quantized variational autoencoders

12/12/2020
by   Sergio Naval Marimont, et al.
25

We propose an out-of-distribution detection method that combines density and restoration-based approaches using Vector-Quantized Variational Auto-Encoders (VQ-VAEs). The VQ-VAE model learns to encode images in a categorical latent space. The prior distribution of latent codes is then modelled using an Auto-Regressive (AR) model. We found that the prior probability estimated by the AR model can be useful for unsupervised anomaly detection and enables the estimation of both sample and pixel-wise anomaly scores. The sample-wise score is defined as the negative log-likelihood of the latent variables above a threshold selecting highly unlikely codes. Additionally, out-of-distribution images are restored into in-distribution images by replacing unlikely latent codes with samples from the prior model and decoding to pixel space. The average L1 distance between generated restorations and original image is used as pixel-wise anomaly score. We tested our approach on the MOOD challenge datasets, and report higher accuracies compared to a standard reconstruction-based approach with VAEs.

READ FULL TEXT

page 3

page 4

research
07/04/2023

Anomaly detection in image or latent space of patch-based auto-encoders for industrial image analysis

We study several methods for detecting anomalies in color images, constr...
research
11/28/2019

A Case for the Score: Identifying Image Anomalies using Variational Autoencoder Gradients

Through training on unlabeled data, anomaly detection has the potential ...
research
12/14/2018

Context-encoding Variational Autoencoder for Unsupervised Anomaly Detection

Unsupervised learning can leverage large-scale data sources without the ...
research
01/14/2021

Unsupervised heart abnormality detection based on phonocardiogram analysis with Beta Variational Auto-Encoders

Heart Sound (also known as phonocardiogram (PCG)) analysis is a popular ...
research
06/09/2021

Implicit field learning for unsupervised anomaly detection in medical images

We propose a novel unsupervised out-of-distribution detection method for...
research
02/28/2017

Towards Deeper Understanding of Variational Autoencoding Models

We propose a new family of optimization criteria for variational auto-en...
research
04/30/2020

Unsupervised Lesion Detection via Image Restoration with a Normative Prior

Unsupervised lesion detection is a challenging problem that requires acc...

Please sign up or login with your details

Forgot password? Click here to reset