Skip to content

Repo for using an LSTM and other algorithms on time series data for anomaly detection

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.txt
Notifications You must be signed in to change notification settings

michhar/anomaly-detect-timeseries

Repository files navigation

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}
}

About

Repo for using an LSTM and other algorithms on time series data for anomaly detection

Topics

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages