DCdetector: Dual Attention Contrastive Representation Learning for Time Series Anomaly Detection

Yiyuan Yang, Chaoli Zhang, Tian Zhou, Qingsong Wen, Liang Sun
6/17/2023
cs.LGcs.AI

Official code: DAMO-DI-ML/KDD2023-DCdetector (274 stars, last commit 2023-10-09). 1 more implementation below.

Abstract

Time series anomaly detection is critical for a wide range of applications. It aims to identify deviant samples from the normal sample distribution in time series. The most fundamental challenge for this task is to learn a representation map that enables effective discrimination of anomalies. Reconstruction-based methods still dominate, but the representation learning with anomalies might hurt the performance with its large abnormal loss. On the other hand, contrastive learning aims to find a representation that can clearly distinguish any instance from the others, which can bring a more natural and promising representation for time series anomaly detection. In this paper, we propose DCdetector, a multi-scale dual attention contrastive representation learning model. DCdetector utilizes a novel dual attention asymmetric design to create the permutated environment and pure contrastive loss to guide the learning process, thus learning a permutation invariant representation with superior discrimination abilities. Extensive experiments show that DCdetector achieves state-of-the-art results on multiple time series anomaly detection benchmark datasets. Code is publicly available at https://github.com/DAMO-DI-ML/KDD2023-DCdetector.

View on arXivView PDF

Code Implementations(2)

27432Shell, PythonMay 28, 20233 years ago

Similar Papers

Cite this paper

@article{yang2023dcdetector,
  title  = {DCdetector: Dual Attention Contrastive Representation Learning for Time Series Anomaly Detection},
  author = {Yiyuan Yang and Chaoli Zhang and Tian Zhou and Qingsong Wen and Liang Sun},
  year   = {2023},
  eprint = {2306.10347},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.10347v2}
}

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

Discussion