Harnessing Contrastive Learning and Neural Transformation for Time Series Anomaly Detection

Katrina Chen, Mingbin Feng, Tony S. Wirjanto
4/16/2023
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Time series anomaly detection (TSAD) plays a vital role in many industrial applications. While contrastive learning has gained momentum in the time series domain for its prowess in extracting meaningful representations from unlabeled data, its straightforward application to anomaly detection is not without hurdles. Firstly, contrastive learning typically requires negative sampling to avoid the representation collapse issue, where the encoder converges to a constant solution. However, drawing from the same dataset for dissimilar samples is ill-suited for TSAD as most samples are ``normal'' in the training dataset. Secondly, conventional contrastive learning focuses on instance discrimination, which may overlook anomalies that are detectable when compared to their temporal context. In this study, we propose a novel approach, CNT, that incorporates a window-based contrastive learning strategy fortified with learnable transformations. This dual configuration focuses on capturing temporal anomalies in local regions while simultaneously mitigating the representation collapse issue. Our theoretical analysis validates the effectiveness of CNT in circumventing constant encoder solutions. Through extensive experiments on diverse real-world industrial datasets, we show the superiority of our framework by outperforming various baselines and model variants.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2023harnessing,
  title  = {Harnessing Contrastive Learning and Neural Transformation for Time Series Anomaly Detection},
  author = {Katrina Chen and Mingbin Feng and Tony S. Wirjanto},
  year   = {2023},
  eprint = {2304.07898},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.07898v2}
}

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

Discussion