ALGAN: Time Series Anomaly Detection with Adjusted-LSTM GAN
Md Abul Bashar, Richi Nayak
TL;DR
ALGAN addresses unsupervised anomaly detection in time series by combining an Adjusted-LSTM (ALstm) with a GAN to learn the normal data distribution and detect deviations via a latent-space reconstruction framework. The model introduces two attention layers that refine both LSTM outputs and inputs, and uses a reconstruction-based anomaly score blending residual and discriminator-derived terms. Empirical results on 46 NAB univariate datasets and a large SWaT multivariate dataset show ALGAN consistently outperforms traditional, neural-network, and other GAN-based methods, with particularly strong F1 and recall. The work demonstrates the effectiveness of combining attention-enhanced LSTM units with adversarial learning to capture complex temporal dynamics and detect subtle anomalies in diverse domains, while noting challenges in window-length selection and GAN training stability.
Abstract
Anomaly detection in time series data, to identify points that deviate from normal behaviour, is a common problem in various domains such as manufacturing, medical imaging, and cybersecurity. Recently, Generative Adversarial Networks (GANs) are shown to be effective in detecting anomalies in time series data. The neural network architecture of GANs (i.e. Generator and Discriminator) can significantly improve anomaly detection accuracy. In this paper, we propose a new GAN model, named Adjusted-LSTM GAN (ALGAN), which adjusts the output of an LSTM network for improved anomaly detection in both univariate and multivariate time series data in an unsupervised setting. We evaluate the performance of ALGAN on 46 real-world univariate time series datasets and a large multivariate dataset that spans multiple domains. Our experiments demonstrate that ALGAN outperforms traditional, neural network-based, and other GAN-based methods for anomaly detection in time series data.
