GithubHelp home page GithubHelp logo

3803531 / beatgan_ch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hi-bingo/beatgan

0.0 0.0 0.0 48.74 MB

BeatGAN: Anomalous Rhythm Detection using Adversarially Generated Time Series

License: MIT License

Shell 0.19% Python 15.91% Roff 83.89%

beatgan_ch's Introduction

Overview

This is the implementation for the BeatGAN model architecture described in the paper: "BeatGAN: Anomalous Rhythm Detection using Adversarially Generated Time Series".

In this paper, we propose an unsupervised anomaly detection algorithm for time series data. BeatGAN has the following advantages: 1) Unsupervised: it is applicable even when labels are unavailable; 2) Effectiveness: It outperforms baselines in both accuracy and inference speed, achieving accuracy of nearly 0.95 AUC on ECG data and very fast inference (2.6 ms per beat); 3) Explainability: It pinpoints the time ticks involved in the anomalous patterns, providing interpretable output for visualization and attention routing; 4) Generality: BeatGAN also successfully detects unusual moions in multivariate motion-capture database.

DataSet

Usage

  • For ecg full experiemnt (need to download full dataset)

    sh run_ecg.sh

  • For ecg demo (there are demo data in experiments/ecg/dataset/demo, the output dir is in experiments/ecg/output/beatgan/ecg/demo )

    sh run_ecg_demo.sh

  • For motion experiment

    sh run_mocap.sh

Require

  • Python 3

Packages

  • PyTorch (1.0.0)
  • scikit-learn (0.20.0)
  • biosppy (0.6.1) # For data preprocess
  • tqdm (4.28.1)
  • matplotlib (3.0.2)

Reference

If you find this code useful in your research, please, consider citing our paper:

@inproceedings{zhou2019beatgan,
  title={BeatGAN: Anomalous Rhythm Detection using Adversarially Generated Time Series},
  author={Zhou, Bin and Liu, Shenghua and Bryan Hooi and Cheng, Xueqi and Ye, Jing },
  booktitle={International Joint Conference on Artificial Intelligence},
  year={2019},
}

beatgan_ch's People

Contributors

hi-bingo 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.