MAD: Self-Supervised Masked Anomaly Detection Task for Multivariate Time Series

Yiwei Fu, Feng Xue
5/4/2022
cs.LGcs.AIcs.NE
contrastive-ssl

Official code: icsdataset/hai (188 stars, Jupyter Notebook, last commit 2023-06-06).

Abstract

In this paper, we introduce Masked Anomaly Detection (MAD), a general self-supervised learning task for multivariate time series anomaly detection. With the increasing availability of sensor data from industrial systems, being able to detecting anomalies from streams of multivariate time series data is of significant importance.

Show full abstract

Given the scarcity of anomalies in real-world applications, the majority of literature has been focusing on modeling normality. The learned normal representations can empower anomaly detection as the model has learned to capture certain key underlying data regularities. A typical formulation is to learn a predictive model, i.e., use a window of time series data to predict future data values. In this paper, we propose an alternative self-supervised learning task. By randomly masking a portion of the inputs and training a model to estimate them using the remaining ones, MAD is an improvement over the traditional left-to-right next step prediction (NSP) task. Our experimental results demonstrate that MAD can achieve better anomaly detection rates over traditional NSP approaches when using exactly the same neural network (NN) base models, and can be modified to run as fast as NSP models during test time on the same hardware, thus making it an ideal upgrade for many existing NSP-based NN anomaly detection models.

View on arXivView PDF

Code Implementations(1)

icsdataset/haiOfficial100%

HIL-based Augmented ICS (HAI) Security Dataset

18860Jupyter NotebookFeb 6, 20203 years ago

Similar Papers

Cite this paper

@article{fu2022mad,
  title  = {MAD: Self-Supervised Masked Anomaly Detection Task for Multivariate Time Series},
  author = {Yiwei Fu and Feng Xue},
  year   = {2022},
  eprint = {2205.02100},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.02100}
}

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/2205.02100.svg)](https://codeofpaper.com/paper/2205.02100)

Discussion