DConAD: A Differencing-based Contrastive Representation Learning Framework for Time Series Anomaly Detection

Wenxin Zhang, Xiaojian Lin, Wenjun Yu, Guangzhen Yao, jingxiang Zhong +5 more
4/19/2025
cs.LGcs.AI

Official code: shaieesss/DConAD (2 stars, last commit 2024-08-29).

Abstract

Time series anomaly detection holds notable importance for risk identification and fault detection across diverse application domains. Unsupervised learning methods have become popular because they have no requirement for labels. However, due to the challenges posed by the multiplicity of abnormal patterns, the sparsity of anomalies, and the growth of data scale and complexity, these methods often fail to capture robust and representative dependencies within the time series for identifying anomalies. To enhance the ability of models to capture normal patterns of time series and avoid the retrogression of modeling ability triggered by the dependencies on high-quality prior knowledge, we propose a differencing-based contrastive representation learning framework for time series anomaly detection (DConAD). Specifically, DConAD generates differential data to provide additional information about time series and utilizes transformer-based architecture to capture spatiotemporal dependencies, which enhances the robustness of unbiased representation learning ability. Furthermore, DConAD implements a novel KL divergence-based contrastive learning paradigm that only uses positive samples to avoid deviation from reconstruction and deploys the stop-gradient strategy to compel convergence. Extensive experiments on five public datasets show the superiority and effectiveness of DConAD compared with nine baselines. The code is available at https://github.com/shaieesss/DConAD.

View on arXivView PDF

Code Implementations(1)

shaieesss/DConADOfficial100%
20Shell, PythonAug 29, 20242 years ago

Similar Papers

Cite this paper

@article{zhang2025dconad,
  title  = {DConAD: A Differencing-based Contrastive Representation Learning Framework for Time Series Anomaly Detection},
  author = {Wenxin Zhang and Xiaojian Lin and Wenjun Yu and Guangzhen Yao and jingxiang Zhong and Yu Li and Renda Han and Songcheng Xu and Hao Shi and Cuicui Luo},
  year   = {2025},
  eprint = {2504.14204},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.14204v2}
}

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

Discussion