All Projects → RomanPlusPlus → Thio

RomanPlusPlus / Thio

Licence: other
Thio - a playground for real-time anomaly detection

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Thio

Ad examples
A collection of anomaly detection methods (iid/point-based, graph and time series) including active learning for anomaly detection/discovery, bayesian rule-mining, description for diversity/explanation/interpretability. Analysis of incorporating label feedback with ensemble and tree-based detectors. Includes adversarial attacks with Graph Convolutional Network.
Stars: ✭ 641 (+1586.84%)
Mutual labels:  lstm, anomaly-detection
Keras Anomaly Detection
Anomaly detection implemented in Keras
Stars: ✭ 335 (+781.58%)
Mutual labels:  lstm, anomaly-detection
Lstm anomaly thesis
Anomaly detection for temporal data using LSTMs
Stars: ✭ 178 (+368.42%)
Mutual labels:  lstm, anomaly-detection
Telemanom
A framework for using LSTMs to detect anomalies in multivariate time series data. Includes spacecraft anomaly data and experiments from the Mars Science Laboratory and SMAP missions.
Stars: ✭ 589 (+1450%)
Mutual labels:  lstm, anomaly-detection
Getting Things Done With Pytorch
Jupyter Notebook tutorials on solving real-world problems with Machine Learning & Deep Learning using PyTorch. Topics: Face detection with Detectron 2, Time Series anomaly detection with LSTM Autoencoders, Object Detection with YOLO v5, Build your first Neural Network, Time Series forecasting for Coronavirus daily cases, Sentiment Analysis with BERT.
Stars: ✭ 738 (+1842.11%)
Mutual labels:  lstm, anomaly-detection
Timecop
Time series based anomaly detector
Stars: ✭ 65 (+71.05%)
Mutual labels:  lstm, anomaly-detection
kaspersky hackathon
https://events.kaspersky.com/hackathon/
Stars: ✭ 25 (-34.21%)
Mutual labels:  lstm, anomaly-detection
khiva-ruby
High-performance time series algorithms for Ruby
Stars: ✭ 27 (-28.95%)
Mutual labels:  anomaly-detection
Anomaly-Detection-in-Networks-Using-Machine-Learning
A thesis submitted for the degree of Master of Science in Computer Networks and Security
Stars: ✭ 51 (+34.21%)
Mutual labels:  anomaly-detection
Faster-Grad-CAM
Faster and more precisely than Grad-CAM
Stars: ✭ 33 (-13.16%)
Mutual labels:  anomaly-detection
vietnamese word seperate
Seperate vietnamese using lstm
Stars: ✭ 13 (-65.79%)
Mutual labels:  lstm
PyAnomaly
Useful Toolbox for Anomaly Detection
Stars: ✭ 95 (+150%)
Mutual labels:  anomaly-detection
hcn
Hybrid Code Networks https://arxiv.org/abs/1702.03274
Stars: ✭ 81 (+113.16%)
Mutual labels:  lstm
tiny-rnn
Lightweight C++11 library for building deep recurrent neural networks
Stars: ✭ 41 (+7.89%)
Mutual labels:  lstm
Chinese-Word-Segmentation-in-NLP
State of the art Chinese Word Segmentation with Bi-LSTMs
Stars: ✭ 23 (-39.47%)
Mutual labels:  lstm
EVT
使用极端值理论(Extreme Value Theory)实现阈值动态自动化设置
Stars: ✭ 48 (+26.32%)
Mutual labels:  anomaly-detection
Stock-Prediction
stock predict by cnn and lstm
Stars: ✭ 25 (-34.21%)
Mutual labels:  lstm
Pytorch-POS-Tagger
Part-of-Speech Tagger and custom implementations of LSTM, GRU and Vanilla RNN
Stars: ✭ 24 (-36.84%)
Mutual labels:  lstm
GAN-Ensemble-for-Anomaly-Detection
This repository is the PyTorch implementation of GAN Ensemble for Anomaly Detection.
Stars: ✭ 26 (-31.58%)
Mutual labels:  anomaly-detection
Text-Analysis
Explaining textual analysis tools in Python. Including Preprocessing, Skip Gram (word2vec), and Topic Modelling.
Stars: ✭ 48 (+26.32%)
Mutual labels:  lstm

Thio

Thio - a playground for real-time anomaly detection.


What if you could add an anomaly to your streaming data by clicking a button, and immediatelly see how an AI detects it?

With Thio, you can do it.

Data

Thio takes synthetic or real-life data as the input (you can toggle between them in config/settings.xml).

The synthetic data is generated on the fly. If plotted, it looks like something one would get from noisy physical sensors (see the picture below).

The real-life data are current cryptocurrencies exchange rates, fetched from CoinGecko.

The data could have an arbitrary number of channels (defined in config/data_channels.xml)

Alt text

Algos

Currently, Thio supports two anomaly detection algos - KitNET and Telemanom. Both are ANN-based, and both learn in an unsupervised manner.

KitNET is a lightweight online anomaly detection algorithm, which uses an ensemble of autoencoders. KitNET was developed by Mirsky et al, 2018, and released under MIT license. Please support them by citing their paper:

Mirsky, Doitshman, Elovici, Shabtai. "Kitsune: An Ensemble of Autoencoders for Online Network Intrusion Detection", Network and Distributed System Security Symposium 2018 (NDSS'18)

Telemanom is a framework for using LSTMs to detect anomalies in multivariate time series data. It was developed by Hundman et al, 2018, and released under an Apache 2.0 license. Please support them by citing their paper:

Hundman, Constantinou, Laporte, Colwell, Soderstrom. "Detecting Spacecraft Anomalies Using LSTMs and Nonparametric Dynamic Thresholding". KDD '18: Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, July 2018, Pages 387–395

None of the mentioned people or organisations are affiliated with the Thio project.

Compute

You can run Thio on CPU, and it will still be able to detect anomalies in real-time, and learn on new data.

Training and inference processes are running in parallel. The models are regularly retrained on the latest N datapoints. The inference process uses the most recent model to produce risk scores.

Installation and usage

Thio was tested on Ubuntu 16.04, with the following packages versions:

  • conda==4.8.3
  • Python==3.8.2 (in the thio_kitnet env)
  • Python==3.7.7 (in the thio_telemanom env)
  • numpy==1.18.1
  • pandas==1.0.3
  • pyyaml==5.3.1
  • keras==2.3.1
  • tensorflow==2.1.0
  • theano==1.0.4
  • cufflinks==0.17.3
  • more_itertools==8.2.0
  • scipy==1.4.1
  • matplotlib==3.1.3
  • requests==2.23.0
  • psutil==5.7.0

0. Dowload

Download this repo.

1. Setup the first virtual environment

Create it:

conda create --name thio_telemanom

Type "y" and enter.

Activate it:

conda activate thio_telemanom

Install dependencies:

conda install numpy pandas pyyaml keras

conda install -c conda-forge tensorflow

pip install theano cufflinks more_itertools

Deactivate it:

conda deactivate

2. Setup the second virtual environment

Create it:

conda create --name thio_kitnet

Type "y" and enter.

Activate it:

conda activate thio_kitnet

Install dependencies:

conda install scipy pandas matplotlib requests psutil

3. Launch

cd to the dir where 0launcher.py is located.

Launch 0launcher.py and wait a few sec.

A window (similar to the one depicted above) will be opened, with plots regularly updating.

Click the "add an anomaly" button and observe a bump in the two bottom graphs.

The anomaly was added to the input data, the data was processed by the anomaly-detection algo, and the corresponding risk scores were plotted.

4. Tips

If you want a KitNET model that can produce meaningful results, you need a dataset of at least 30 000 datapoints (a thumb rule). Same for Telemanom.

Telemanom will take some time after the launch before starting to detect anomalies. On my modest hardware (no GPU inference), it's about 15 min.

5. Name

Thio is named after Isaac Asimov's Thiotimoline, a fictitious chemical that starts dissolving before it makes contact with water:)

6. Contact

If you have any questions that can't be resolved through Github, feel free to contact me directly.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].