← 开源
lin-shuyu

VAE-LSTM-for-anomaly-detection

We propose a VAE-LSTM model as an unsupervised learning approach for anomaly detection in time series.

Model DevelopmentArchitectureJupyter Notebook
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
578
Star
95
Fork
+0
本周
3
贡献者
创建于 2020-02-13 · 更新于 2026-09-27 · 今日第 16678 名
主要开发者
lin-shuyur0nn13

lin-shuyu/VAE-LSTM-for-anomaly-detection 排名第 16,678,有 578 个星标。

同类别比较

lin-shuyu/VAE-LSTM-for-anomaly-detection 排名第 16,678,此处有 8 个同类条目;legubiao/quadruped_ros2_control 排名第 16,677。

同类别比较
名称排名指标
Zardinality/WGAN-tensorflow16,672
语言:
Jupyter Notebook
星标数:
578
分叉数:
195
简介:
a tensorflow implementation of WGAN
clvrai/furniture16,673
语言:
Python
星标数:
578
分叉数:
63
简介:
IKEA Furniture Assembly Environment for Long-Horizon Complex Manipulation Tasks
jannerm/ddpo16,675
语言:
Python
星标数:
578
分叉数:
35
简介:
Code for the paper "Training Diffusion Models with Reinforcement Learning"
legubiao/quadruped_ros2_control16,677
语言:
C++
星标数:
578
分叉数:
75
简介:
ROS2-Control implementations for Quadruped robots, include sim2real
materialyzeai/matgl16,679
语言:
Python
星标数:
578
分叉数:
120
简介:
Graph deep learning library for materials
Bartzi/see16,685
语言:
Python
星标数:
577
分叉数:
146
简介:
Code for the AAAI 2018 publication "SEE: Towards Semi-Supervised End-to-End Scene Text Recognition"
Mostafa-Samir/DNC-tensorflow16,688
语言:
Jupyter Notebook
星标数:
577
分叉数:
161
简介:
A TensorFlow implementation of DeepMind's Differential Neural Computers (DNC)
Scalsol/mega.pytorch16,689
语言:
Python
星标数:
577
分叉数:
121
简介:
Memory Enhanced Global-Local Aggregation for Video Object Detection, CVPR2020
关键参数与规格
关键参数与规格
参数值
语言Jupyter Notebook
类别Model Development
子类别Architecture
星标数578
分叉数95
贡献者3
创建日期2020-02-13
更新日期2026-09-27
1 天星标数0
7 天星标数0
排名16,678
上次排名16,467
排名变化-211
7 天星标排名15,661
上次 7 天星标排名15,668
7 天星标排名变化7
总星标排名17,285
上次总星标排名17,258
总星标排名变化-27
国家UK
README 摘录

VAE-LSTM for anomaly detection (ICASSP'20) This Github repository hosts our code and pre-processed data to train a VAE-LSTM hybrid model for anomaly detection, as proposed in our paper: Anomaly Detection for Time Series Using VAE-LSTM Hybrid Model. Shuyu Lin 1 , Ronald Clark 2 , Robert Birke 3 , Sandro Schönborn 3 , Niki Trigoni 1 , Stephen Roberts 1 1 University of Oxford, 2 Imperial College London, 3 ABB Corporate Research In short, our anomaly detection model contains

: a VAE unit which summarizes the local information of a short window into a low-dimensional embedding, a LSTM model, which acts on the low- dimensional embeddings produced by the VAE model, to manage the sequential patterns over longer term. An overview of our model is shown below: An example of anomaly detection on a time series of office temperature, which is provided by Numenta anomaly benchmark (NAB) datasets in their known anomaly subgroup link: To run our code, please

follow the instructions shown below. Environment Our code is written in Python3 with tensorflow 1. Please install the python libraries listed in the requirements. We suggest to build a virtual environment using virtualenv package. To install and set up virtualenv, please follwo the procedures here. Data pre-processing We pre-processed the NAB data, which consists of 5 sequences, by creating a training set that does not contain any anomalies while keeping the rest of sequence as test set for

evaluation. In addition, we removed the mean and standardized the time series. Pre-processed data are included in the subfolder with this repository for convenience of running our code. A demo ipython notebook has also been provided in to show how the pre-processing is done. Explanation of the different features saved in the . npz files for the pre-processed datasets are given in the discussion. If you want to use the data for your own project, please cite and

refer to the NAB project and access the raw data if needed. Training Our VAE-LSTM model is defined in several files in the subfolder, including train. To train our model, simply run , where NAB_config. json defines all the hyper-parameters of our model and you can experiment by using different values. Anomaly detection using the trained model After the model has been trained, we also prepare an iPython-notebook in NAB-anomaly-detection. ipynb for you to detect

some anomalies detection on the test set. All you need to do is to run the code, make sure the NAB_config. json is prepared so that the right trained model will be loaded. The only thing that you need to specify in order to achieve reasonable anomaly detection result is to set a threshold on the anomaly detection metric. We suggest to observe the histogram of the anomaly detection metric and set the threshold accordingly. Hope you enjoy playing

with our code and find it helpful for your projects! If you find our codes/project relevant to your work

常见问题

记录了多少星标和分叉?

lin-shuyu/VAE-LSTM-for-anomaly-detection 有 578 个星标和 95 个分叉。

仓库排名是多少?

lin-shuyu/VAE-LSTM-for-anomaly-detection 排名第 16,678。

记录的语言和类别是什么?

lin-shuyu/VAE-LSTM-for-anomaly-detection 有 578 个星标,语言为 Jupyter Notebook,类别为 Model Development。

哪个仓库排名最接近?

lin-shuyu/VAE-LSTM-for-anomaly-detection 与 legubiao/quadruped_ros2_control 比较,后者排名第 16,677,有 578 个星标。

README

VAE-LSTM for anomaly detection (ICASSP'20)

This Github repository hosts our code and pre-processed data to train a VAE-LSTM hybrid model for anomaly detection, as proposed in our paper:

Anomaly Detection for Time Series Using VAE-LSTM Hybrid Model.

Shuyu Lin1, Ronald Clark2, Robert Birke3, Sandro Schönborn3, Niki Trigoni1, Stephen Roberts1

1University of Oxford, 2Imperial College London, 3ABB Corporate Research

In short, our anomaly detection model contains:

  • a VAE unit which summarizes the local information of a short window into a low-dimensional embedding,
  • a LSTM model, which acts on the low- dimensional embeddings produced by the VAE model, to manage the sequential patterns over longer term.

An overview of our model is shown below:

An example of anomaly detection on a time series of office temperature, which is provided by Numenta anomaly benchmark (NAB) datasets in their known anomaly subgroup link:

To run our code, please follow the instructions shown below.

Environment

Our code is written in Python3 with tensorflow 1.5 library. Please install the python libraries listed in the requirements.txt. We suggest to build a virtual environment using virtualenv package. To install and set up virtualenv, please follwo the procedures here.

Data pre-processing

We pre-processed the NAB data, which consists of 5 sequences, by creating a training set that does not contain any anomalies while keeping the rest of sequence as test set for evaluation. In addition, we removed the mean and standardized the time series. Pre-processed data are included in the datasets/ subfolder with this repository for convenience of running our code. A demo ipython notebook has also been provided in datasets/ to show how the pre-processing is done. Explanation of the different features saved in the .npz files for the pre-processed datasets are given in the discussion.

If you want to use the data for your own project, please cite and refer to the NAB project and access the raw data if needed.

Training

Our VAE-LSTM model is defined in several files in the codes/ subfolder, including train.py, base.py, utils.py, data_loader.py, models.py, trainers.py. To train our model, simply run python3 train.py --config NAB_config.json, where NAB_config.json defines all the hyper-parameters of our model and you can experiment by using different values.

Anomaly detection using the trained model

After the model has been trained, we also prepare an iPython-notebook in NAB-anomaly-detection.ipynb for you to detect some anomalies detection on the test set. All you need to do is to run the code, make sure the NAB_config.json is prepared so that the right trained model will be loaded. The only thing that you need to specify in order to achieve reasonable anomaly detection result is to set a threshold on the anomaly detection metric. We suggest to observe the histogram of the anomaly detection metric and set the threshold accordingly.

Hope you enjoy playing with our code and find it helpful for your projects! Happy anomaly detection!

If you find our codes/project relevant to your work, please cite us in your work:

@INPROCEEDINGS{VAE-LSTM-AD, 
   author={S. {Lin} and R. {Clark} and R. {Birke} and S. {Schönborn} and N. {Trigoni} and S. {Roberts}}, 
   booktitle={ICASSP 2020 - 2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)}, 
   title={Anomaly Detection for Time Series Using VAE-LSTM Hybrid Model}, 
   year={2020}} 
排名相邻
同类项目