Git Product home page Git Product logo

anomaly-detect-timeseries's Introduction

Using an LSTM and Other Algorithms for Unsupervised Anomaly Detection

Using an LSTM (Long Short-Term Memory) algorithm on synthetic time series data for unsupervised anomaly detection. It uses the Mean Squared Error as a measure of outliers in this type of data.

Diagram of original signal, smoothed signal and anomaly detection via MSE.

Instructions

  1. Install the Python dependencies (please use Python 3.6+).
pip install -r requirements.txt
  1. Run the program (creates its own synthetic data, creates an LSTM model, trains it and predicts with it).
python run.py

That's it!

Some TODO:

Other Approaches:

  • Finite state automaton with state transitions for time series data segmentation (Ref)
  • One-class NN (Code)
  • TBD

References

  1. https://github.com/aurotripathy/lstm-anomaly-detect
  2. https://github.com/Vict0rSch/deep_learning/tree/master/keras/recurrent
  3. http://simaaron.github.io/Estimating-rainfall-from-weather-radar-readings-using-recurrent-neural-networks/
  4. https://github.com/khundman/telemanom/tree/no-labels

Original Citation

This work is partially based upon the Telemanom project with code and information found at https://github.com/khundman/telemanom.

If you use this work, please cite:

  title={Detecting Spacecraft Anomalies Using LSTMs and Nonparametric Dynamic Thresholding},
  author={Hundman, Kyle and Constantinou, Valentino and Laporte, Christopher and Colwell, Ian and Soderstrom, Tom},
  journal={arXiv preprint arXiv:1802.04431},
  year={2018}
}

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.