Explainable Time Series Anomaly Detection using Masked Latent Generative Modeling
Daesoo Lee, Sara Malacarne, Erlend Aune
Code Available — Be the first to reproduce this paper.
ReproduceCode
- github.com/ml4its/timevqvae-anomalydetectionOfficialIn paperpytorch★ 99
Abstract
We present a novel time series anomaly detection method that achieves excellent detection accuracy while offering a superior level of explainability. Our proposed method, TimeVQVAE-AD, leverages masked generative modeling adapted from the cutting-edge time series generation method known as TimeVQVAE. The prior model is trained on the discrete latent space of a time-frequency domain. Notably, the dimensional semantics of the time-frequency domain are preserved in the latent space, enabling us to compute anomaly scores across different frequency bands, which provides a better insight into the detected anomalies. Additionally, the generative nature of the prior model allows for sampling likely normal states for detected anomalies, enhancing the explainability of the detected anomalies through counterfactuals. Our experimental evaluation on the UCR Time Series Anomaly archive demonstrates that TimeVQVAE-AD significantly surpasses the existing methods in terms of detection accuracy and explainability. We provide our implementation on GitHub: https://github.com/ML4ITS/TimeVQVAE-AnomalyDetection.
Tasks
Benchmark Results
| Dataset | Model | Metric | Claimed | Verified | Status |
|---|---|---|---|---|---|
| UCR Anomaly Archive | TimeVQVAE-AD | accuracy | 0.71 | — | Unverified |
| UCR Anomaly Archive | Matrix Profile STUMPY | accuracy | 0.51 | — | Unverified |
| UCR Anomaly Archive | MDI | accuracy | 0.47 | — | Unverified |
| UCR Anomaly Archive | Matrix Profile SCRIMP | accuracy | 0.42 | — | Unverified |
| UCR Anomaly Archive | RCF | accuracy | 0.39 | — | Unverified |
| UCR Anomaly Archive | IF | accuracy | 0.38 | — | Unverified |
| UCR Anomaly Archive | Convolutional AE | accuracy | 0.35 | — | Unverified |
| UCR Anomaly Archive | SR-CNN | accuracy | 0.3 | — | Unverified |
| UCR Anomaly Archive | USAD | accuracy | 0.28 | — | Unverified |
| UCR Anomaly Archive | AE | accuracy | 0.24 | — | Unverified |
| UCR Anomaly Archive | LSTM-VAE | accuracy | 0.2 | — | Unverified |
| UCR Anomaly Archive | TranAD | accuracy | 0.19 | — | Unverified |
| UCR Anomaly Archive | OC-SVM | accuracy | 0.09 | — | Unverified |
| UCR Anomaly Archive | Deep SVDD | accuracy | 0.08 | — | Unverified |
| UCR Anomaly Archive | DAGMM | accuracy | 0.06 | — | Unverified |
| UCR Anomaly Archive | TS-TCC-AD | accuracy | 0.01 | — | Unverified |