Explainable Time Series Anomaly Detection using Masked Latent Generative Modeling

Daesoo Lee, Sara Malacarne, Erlend Aune
11/21/2023
65 citations
cs.LGstat.ML

Official code: ML4ITS/TimeVQVAE-AnomalyDetection (101 stars, Jupyter Notebook, MIT, last commit 2024-08-09).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

[official] PyTorch implementation of TimeVQVAE-AD, a time series anomaly detection model.

10117Jupyter Notebook, PythonDec 14, 20232 years agoMIT
time-seriestime-series-anomaly-detectionucrucr-anomaly-archive

Similar Papers

Cite this paper

@article{lee2023explainable,
  title  = {Explainable Time Series Anomaly Detection using Masked Latent Generative Modeling},
  author = {Daesoo Lee and Sara Malacarne and Erlend Aune},
  year   = {2023},
  eprint = {2311.12550},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.12550v5}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.12550.svg)](https://codeofpaper.com/paper/2311.12550)

Discussion