Abstract
Unsupervised anomaly detection in multi-dimensional time series is challenging due to the presence of outliers in training data and non-stationary noise. This paper introduces the Smoothness-Inducing Sequential Variational Auto-Encoder (SISVAE), a deep generative model that incorporates a temporal smoothness prior. By regularizing the probability distribution of reconstructions to change smoothly over time, SISVAE effectively ignores abrupt anomalies during training and adapts to varying noise levels, outperforming existing state-of-the-art methods on both synthetic and real-world benchmarks.
Introduction
Anomaly detection in time series is a critical task in domains like power grid monitoring and web traffic analysis. Often, labeled data is unavailable, necessitating unsupervised approaches like Variational Auto-Encoders (VAEs). However, standard VAEs struggle with "dirty" training data—where anomalies are mistakenly learned as normal patterns—and non-stationary noise, where the baseline variance of a signal changes over time. SISVAE is designed to overcome these hurdles by leveraging temporal dependencies and an innovative smoothness constraint.
Methodology
SISVAE addresses these challenges by combining Recurrent Neural Networks (RNNs) with the VAE framework to capture complex temporal dependencies.
The Smoothness-Inducing Prior
The core innovation is a variational smoothness regularizer. The model is penalized if the probability distribution of its reconstructions changes too abruptly between time steps. This is achieved by minimizing the Kullback-Leibler (KL) divergence between the predicted distributions at consecutive time steps $t$ and $t-1$. This inductive bias aligns with physical processes, which typically evolve smoothly, preventing the model from overfitting to sudden, jagged anomalies during the unsupervised training phase.
Dynamic Variance and Anomaly Scoring
Unlike many previous models, SISVAE models both the mean and the variance dynamically for every time step. This allows the model to adjust its sensitivity based on local noise levels, reducing false positives during noisy periods and maintaining high sensitivity during quiet ones. To detect anomalies, the model uses Sequential Monte Carlo (SMC) to estimate the "reconstruction probability." A point is flagged if the model determines it is highly unlikely to have been generated by the learned "normal" distribution.
Experimental Evaluation
The model was evaluated on a mix of synthetic Gaussian Process data and high-stakes real-world datasets, including the Yahoo S5 Webscope benchmark and the Open $\mu$PMU power distribution network data.
Key Results
SISVAE consistently outperformed baselines such as Donut, STORN, and traditional Kalman Filters (LDS):
- AUPRC (Area Under Precision-Recall Curve): On the Yahoo A1 dataset, SISVAE achieved an AUPRC of 0.369, nearly doubling the performance of the recent Donut model (0.178).
- F1-Score: On the complex $\mu$PMU power grid data, SISVAE reached an F1-score of 0.367, outperforming all other deep learning and statistical baselines.
- Robustness: The model maintains high performance even when training data is heavily contaminated (up to 10% anomalies), whereas competing models see their performance plummet as they begin to "accept" anomalies as normal.
Discussion and Future Work
The smoothness prior not only improves accuracy but also stabilizes training by preventing the "sawtooth" performance common in unsupervised models. While currently assuming Gaussian noise, the authors suggest that for data with "heavy tails," a Student-t distribution might be a better fit for the output layer. Future work could also extend this framework from point-level detection to more macro-level, sequence-wide anomaly detection tasks.
Summary updated