GithubHelp home page GithubHelp logo

chenyujie / tscp2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cruiseresearchgroup/tscp2

0.0 0.0 0.0 826 KB

Time Series Change Point Detection based on Contrastive Predictive Coding

Python 100.00%

tscp2's Introduction

TS-CP2

Time Series Change Point Detection based on Contrastive Predictive Coding

Abstract

Change Point Detection techniques aim to capture changes in trends and sequences in time-series data to describe the underlying behaviour of the system. Detecting changes and anomalies in the web services, the trend of applications usage can provide valuable insights into the system. However, many existing approaches are done in a supervised manner, requiring well-labelled data. As the amount of data produced and captured by sensors are growing rapidly, it is getting harder and even impossible to annotate the data. Therefore, coming up with a self-supervised solution is a necessity these days. In this work, we propose TS-CP2 a novel self-supervised technique for temporal change point detection, based on representation learning with a Temporal Convolutional Network (TCN). To the best of our knowledge, our proposed method is the first method which employs Contrastive Learning for prediction with the aim of change point detection. Through extensive evaluations, we demonstrate that our method outperforms multiple state-of-the-art change point detection and anomaly detection baselines, including those adopting the either unsupervised or semi-supervised approach. TS-CP2 is shown to improve both non-Deep learning- and Deep learning-based methods by 0.28 and 0.12 in terms of average F1-score across three datasets.

Link to arXiv version here

The script to run the model

python 3 main.py  --datapath <path_to_dataset> 
                  --output <path_to_output> 
                  --win <window_size> 
                  --dataset <dataset_name> 
                  --batch <batch_size>  
                  --code <code_size> 
                  --sim [cosine||] 
                  --loss [nce|fc|dcl|harddcl] 
                  --lr [0.00005|0.0001] 
                  --temp 0.5 
                  --tau <> 
                  --beta <>

Bibtex

If you find this code or the paper useful, please consider citing:

@inproceedings{deldari2021tscp2,
title={Time Series Change Point Detection with Self-Supervised Contrastive Predictive Coding}, 
author={Deldari, Shohreh and Smith, Daniel V. and Xue, Hao and Salim, Flora D. },
year = {2021},
publisher = {Association for Computing Machinery},
url = {https://doi.org/10.1145/3442381.3449903},
doi = {10.1145/3442381.3449903},
booktitle = {Proceedings of The Web Conference 2021},
pages = {},
numpages = {12},
series = {WWW '21}
}

tscp2's People

Contributors

shdeldari avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.