Generative Adversarial Network with Soft-Dynamic Time Warping and Parallel Reconstruction for Energy Time Series Anomaly Detection
Hardik Prabhu, Jayaraman Valadi, Pandarasamy Arjunan
TL;DR
This work tackles sequential anomaly detection in energy time series by training a 1D-DCGAN on normal data and performing gradient-descent-based inversion in the latent space to reconstruct query subsequences. It introduces Soft-DTW as a differentiable reconstruction loss and implements parallel reconstruction to accelerate test-time performance. Anomaly scores combine Soft-DTW reconstruction with a latent-space penalty, while KDE-based analysis converts detected subsequences into timestamped anomalies, enabling robust evaluation with tolerance for sequential events. The approach, evaluated on hourly energy data from 15 LEAD buildings, demonstrates improved performance over autoencoders and traditional methods, with notable speedups from parallelization and strong performance when using Soft-DTW.
Abstract
In this paper, we employ a 1D deep convolutional generative adversarial network (DCGAN) for sequential anomaly detection in energy time series data. Anomaly detection involves gradient descent to reconstruct energy sub-sequences, identifying the noise vector that closely generates them through the generator network. Soft-DTW is used as a differentiable alternative for the reconstruction loss and is found to be superior to Euclidean distance. Combining reconstruction loss and the latent space's prior probability distribution serves as the anomaly score. Our novel method accelerates detection by parallel computation of reconstruction of multiple points and shows promise in identifying anomalous energy consumption in buildings, as evidenced by performing experiments on hourly energy time series from 15 buildings.
