Daesoo Lee, Sara Malacarne, Erlend Aune
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.
| Task | Dataset | Metric | Value | Model |
|---|---|---|---|---|
| Time Series Analysis | UCR Anomaly Archive | accuracy | 0.708 | TimeVQVAE-AD |
| Time Series Analysis | UCR Anomaly Archive | accuracy | 0.512 | Matrix Profile STUMPY |
| Time Series Analysis | UCR Anomaly Archive | accuracy | 0.47 | MDI |
| Time Series Analysis | UCR Anomaly Archive | accuracy | 0.416 | Matrix Profile SCRIMP |
| Time Series Analysis | UCR Anomaly Archive | accuracy | 0.387 | RCF |
| Time Series Analysis | UCR Anomaly Archive | accuracy | 0.376 | IF |
| Time Series Analysis | UCR Anomaly Archive | accuracy | 0.352 | Convolutional AE |
| Time Series Analysis | UCR Anomaly Archive | accuracy | 0.3 | SR-CNN |
| Time Series Analysis | UCR Anomaly Archive | accuracy | 0.276 | USAD |
| Time Series Analysis | UCR Anomaly Archive | accuracy | 0.198 | LSTM-VAE |
| Time Series Analysis | UCR Anomaly Archive | accuracy | 0.19 | TranAD |
| Time Series Analysis | UCR Anomaly Archive | accuracy | 0.088 | OC-SVM |
| Time Series Analysis | UCR Anomaly Archive | accuracy | 0.076 | Deep SVDD |
| Time Series Analysis | UCR Anomaly Archive | accuracy | 0.061 | DAGMM |
| Time Series Analysis | UCR Anomaly Archive | accuracy | 0.006 | TS-TCC-AD |
| Time Series Anomaly Detection | UCR Anomaly Archive | accuracy | 0.708 | TimeVQVAE-AD |
| Time Series Anomaly Detection | UCR Anomaly Archive | accuracy | 0.512 | Matrix Profile STUMPY |
| Time Series Anomaly Detection | UCR Anomaly Archive | accuracy | 0.47 | MDI |
| Time Series Anomaly Detection | UCR Anomaly Archive | accuracy | 0.416 | Matrix Profile SCRIMP |
| Time Series Anomaly Detection | UCR Anomaly Archive | accuracy | 0.387 | RCF |
| Time Series Anomaly Detection | UCR Anomaly Archive | accuracy | 0.376 | IF |
| Time Series Anomaly Detection | UCR Anomaly Archive | accuracy | 0.352 | Convolutional AE |
| Time Series Anomaly Detection | UCR Anomaly Archive | accuracy | 0.3 | SR-CNN |
| Time Series Anomaly Detection | UCR Anomaly Archive | accuracy | 0.276 | USAD |
| Time Series Anomaly Detection | UCR Anomaly Archive | accuracy | 0.198 | LSTM-VAE |
| Time Series Anomaly Detection | UCR Anomaly Archive | accuracy | 0.19 | TranAD |
| Time Series Anomaly Detection | UCR Anomaly Archive | accuracy | 0.088 | OC-SVM |
| Time Series Anomaly Detection | UCR Anomaly Archive | accuracy | 0.076 | Deep SVDD |
| Time Series Anomaly Detection | UCR Anomaly Archive | accuracy | 0.061 | DAGMM |
| Time Series Anomaly Detection | UCR Anomaly Archive | accuracy | 0.006 | TS-TCC-AD |