Skip to main content
QUICK REVIEW

[Paper Review] Unsupervised Learning of Anomaly Detection from Contaminated Image Data using Simultaneous Encoder Training

Amanda Berg, Jörgen Ahlberg|arXiv (Cornell University)|May 27, 2019
Anomaly Detection Techniques and ApplicationsComputer Science34 references31 citations
TL;DR

This paper proposes a novel unsupervised anomaly detection method for image data that remains robust to training data contamination by anomalies. By jointly training a generator and an image-to-latent-space encoder with an image distance loss, the method stratifies the latent space such that anomalies exhibit significantly shorter latent vector norms than normal samples, achieving state-of-the-art AUC performance on CIFAR-10 and a large cell image dataset even with contaminated training data.

ABSTRACT

Unsupervised learning of anomaly detection in high-dimensional data, such as images, is a challenging problem recently subject to intense research. Through careful modelling of the data distribution of normal samples, it is possible to detect deviant samples, so called anomalies. Generative Adversarial Networks (GANs) can model the highly complex, high-dimensional data distribution of normal image samples, and have shown to be a suitable approach to the problem. Previously published GAN-based anomaly detection methods often assume that anomaly-free data is available for training. However, this assumption is not valid in most real-life scenarios, a.k.a. in the wild. In this work, we evaluate the effects of anomaly contaminations in the training data on state-of-the-art GAN-based anomaly detection methods. As expected, detection performance deteriorates. To address this performance drop, we propose to add an additional encoder network already at training time and show that joint generator-encoder training stratifies the latent space, mitigating the problem with contaminated data. We show experimentally that the norm of a query image in this stratified latent space becomes a highly significant cue to discriminate anomalies from normal data. The proposed method achieves state-of-the-art performance on CIFAR-10 as well as on a large, previously untested dataset with cell images.

Motivation & Objective

  • To investigate the impact of anomaly contamination in training data on state-of-the-art GAN-based anomaly detection methods.
  • To address the degradation in detection performance caused by contaminated training data in existing unsupervised GAN-based approaches.
  • To develop a truly unsupervised anomaly detection method that remains effective even when training data contains anomalies.
  • To demonstrate that joint training of generator and encoder with image distance loss improves latent space stratification and anomaly detection robustness.
  • To achieve state-of-the-art performance on both CIFAR-10 and a large cell image dataset under realistic, contaminated training conditions.

Proposed method

  • The method introduces a simultaneous training framework for a generator and an image-to-latent-space encoder, where the encoder is trained with a loss based on L2 distance in image space.
  • The encoder loss enforces similar images to be mapped close to each other in the latent space, leading to a stratified latent space structure.
  • Anomaly detection is performed by measuring the L2 norm of the latent vector of a query image; shorter norms indicate anomalies.
  • A convex combination of normalized residual loss (L_n) and norm-based loss (L_o) is used as the final anomaly score.
  • The method is evaluated using AUC on CIFAR-10 and a large KTH-Cellvideos dataset with varying levels of training data contamination.
  • t-SNE visualizations are used to analyze the distribution of normal and anomalous samples in the latent space before and after joint training.

Experimental results

Research questions

  • RQ1How does the presence of anomalies in the training data affect the performance of state-of-the-art GAN-based anomaly detection methods?
  • RQ2Can joint training of generator and encoder improve robustness to anomaly contamination in training data?
  • RQ3Does the use of an image distance-based encoder loss lead to a more stratified latent space that enhances anomaly detection?
  • RQ4Is the norm of the latent vector a reliable indicator for distinguishing anomalies from normal samples in the stratified latent space?
  • RQ5Can the proposed method achieve state-of-the-art performance on both standard and real-world datasets with contaminated training data?

Key findings

  • The proposed method achieves an AUC of 0.90 on the KTH-Cellvideos dataset and 0.72 on CIFAR-10 with 2% anomaly contamination, outperforming f-AnoGAN and other baselines.
  • When training data contains 2% anomalies, f-AnoGAN's AUC drops to 0.43 on KTH-Cellvideos and 0.44 on CIFAR-10, demonstrating significant performance degradation.
  • Joint generator-encoder training with image distance loss results in a stratified latent space where anomalous samples have significantly shorter latent vector norms than normal samples.
  • The proposed anomaly score, combining normalized residual loss and norm-based loss, achieves the highest AUC (0.90) on KTH-Cellvideos and 0.72 on CIFAR-10 with contaminated data.
  • t-SNE visualizations confirm that the proposed method clusters normal and anomalous samples more distinctly in the latent space compared to f-AnoGAN.
  • The method maintains high performance even with 2% anomalies in training data, while f-AnoGAN shows consistent performance drops under the same conditions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.