GithubHelp home page GithubHelp logo

mtgflow's Introduction

Detecting-Multivariate-Time-Series-Anomalies-with-Zero-Known-Label

This repository provides a PyTorch implementation of MTGFlow (Paper), which is the unsupervised anomaly dection and localization method. This repository is based on GANF.

Framework

Framework

Main results

Results

Requirements

  • python==3.8.5
  • pytorch==1.7.1
  • numpy==1.19.2
  • torchvision==1.5
  • scipy==1.6.1
  • scikit-learn==0.24.1
  • scikit-image==0.18.1
  • matplotlib== 3.3.4
  • pillow == 7.2.0
pip install -r requirements.txt

Data

We test our method for five public datasets, e.g., SWaT, WADI, PSM, MSL, and SMD.

SWaT WADI

mkdir Dataset
cd Dataset
mkdir input

Download the dataset in Data/input.

Train

  • train for MITGFlow For example, training for WADI
sh runners/run_WADI.sh
  • train for DeepSVDD, DeepSAD, DROCC, and ALOCC.
python3 train_other_model.py --name SWaT --model DeepSVDD
  • train for USAD and DAGMM We report the results by the implementations in the following links:

USAD and DAGMM

Test

We provide the pretained model of MTGFlow.

For example, testing for WADI

sh runners/run_WADI_test.sh

BibTex Citation

If you find this paper and repository useful, please cite our paper.

@inproceedings{zhou2023detecting,
  title={Detecting Multivariate Time Series Anomalies with Zero Known Label},
  author={Zhou, Qihang and Chen, Jiming and Liu, Haoyu and He, Shibo and Meng, Wenchao},
  booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
  volume={37},
  number={4},
  pages={4963--4971},
  year={2023}
}

mtgflow's People

Contributors

zqhang 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.