Skip to main content
QUICK REVIEW

[Paper Review] Anomaly detection with Wasserstein GAN

Ilyass Haloui, Jayant Gupta|arXiv (Cornell University)|Dec 6, 2018
Anomaly Detection Techniques and ApplicationsComputer Science3 references6 citations
TL;DR

This paper proposes a Wasserstein GAN with an encoder for anomaly detection in time series data, leveraging the generator's ability to reconstruct normal samples and detect anomalies via reconstruction error. It achieves a 70% AUPRC on the UCI HAR dataset, demonstrating state-of-the-art performance for this approach in multivariate time series settings.

ABSTRACT

Generative adversarial networks are a class of generative algorithms that have been widely used to produce state-of-the-art samples. In this paper, we investigate GAN to perform anomaly detection on time series dataset. In order to achieve this goal, a bibliography is made focusing on theoretical properties of GAN and GAN used for anomaly detection. A Wasserstein GAN has been chosen to learn the representation of normal data distribution and a stacked encoder with the generator performs the anomaly detection. W-GAN with encoder seems to produce state of the art anomaly detection scores on MNIST dataset and we investigate its usage on multi-variate time series.

Motivation & Objective

  • To investigate the feasibility of using Generative Adversarial Networks (GANs) for anomaly detection in high-dimensional time series data.
  • To evaluate the performance of Wasserstein GAN with encoder on diverse datasets, including a 2D multimodal distribution, MNIST, and multivariate time series.
  • To compare reconstruction error-based anomaly detection using the generator and encoder against discriminative GAN components.
  • To identify architectural and training choices that improve anomaly detection performance, particularly in raw time series data.

Proposed method

  • Train a Wasserstein GAN (W-GAN) on normal time series data to learn the underlying data distribution.
  • Implement a stacked encoder network to map input time series to the latent space, enabling reconstruction via the generator.
  • Use mean squared error (MSE) between original and reconstructed time series as the anomaly score.
  • Apply recurrence plots to represent time series as multi-channel images for input to the W-GAN with encoder.
  • Train the generator and encoder jointly using adversarial loss and reconstruction loss.
  • Evaluate performance using Area Under the Precision-Recall Curve (AUPRC) on test data, including anomalous classes.

Experimental results

Research questions

  • RQ1Can a Wasserstein GAN with encoder effectively detect anomalies in multivariate time series data?
  • RQ2How does reconstruction error from the generator and encoder compare to discriminative GAN outputs in identifying anomalies?
  • RQ3What architectural choices (e.g., use of 1D convolutions, batch normalization) improve anomaly detection performance?
  • RQ4How does the model perform on raw time series versus transformed representations like recurrence plots?
  • RQ5What is the impact of latent space dimension and prior distribution on reconstruction quality and anomaly detection accuracy?

Key findings

  • The W-GAN with encoder achieved an AUPRC of 70% on the UCI HAR dataset when detecting the 'laying' activity as anomalous, indicating strong performance for this task.
  • Reconstruction error from the generator and encoder provided a reliable anomaly score, with abnormal samples showing significantly higher error than normal ones.
  • Using recurrence plots to transform time series into multi-channel images improved the model's ability to capture temporal patterns for anomaly detection.
  • The discriminator component of the GAN showed weak performance in detecting anomalies, while the generator and encoder were more effective for reconstruction-based detection.
  • Batch normalization before the generator's input layer improved encoder convergence, though the formal impact on latent space alignment remains unclear.
  • The model struggled to clearly separate reconstruction errors for abnormal and normal classes when using raw time series data, indicating limitations in direct raw input processing without feature engineering.

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.