← 开源
imperial-qore

TranAD

[VLDB'22] Anomaly Detection using Transformers, self-conditioning and adversarial training.

ModelsDomain-specific modelsPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
705
Star
196
Fork
+1
本周
1
贡献者
创建于 2021-03-01 · 更新于 2026-10-12 · 今日第 14769 名
主要开发者

imperial-qore/TranAD 排名第 14,769,有 705 个星标。

同类别比较

imperial-qore/TranAD 排名第 14,769,此处有 8 个同类条目;yihao-meng/HoloCine 排名第 14,762。

同类别比较
名称排名指标
microsoft/BiomedParse14,720
语言:
Python
星标数:
709
分叉数:
104
简介:
BiomedParse: A Foundation Model for Joint Segmentation, Detection, and Recognition of Biomedical Objects Across Nine Modalities
melodysdreamj/WizardVicunaLM14,733
星标数:
708
分叉数:
34
简介:
LLM that combines the principles of wizardLM and vicunaLM
salesforce/progen14,745
语言:
Python
星标数:
707
分叉数:
139
简介:
Official release of the ProGen models
yihao-meng/HoloCine14,762
语言:
Python
星标数:
706
分叉数:
122
简介:
[CVPR 2026 Highlight] Official Implementations for Paper - HoloCine: Holistic Generation of Cinematic Multi-Shot Long Video Narratives
microsoft/ClimaX14,781
语言:
Python
星标数:
704
分叉数:
113
简介:
Foundation model for weather & climate
deepglint/unicom14,786
语言:
Python
星标数:
703
分叉数:
34
简介:
Large-Scale Visual Representation Model
Julie-tang00/Point-BERT14,826
语言:
Python
星标数:
700
分叉数:
73
简介:
[CVPR 2022] Pre-Training 3D Point Cloud Transformers with Masked Point Modeling
szq0214/MEAL-V214,847
语言:
Python
星标数:
699
分叉数:
70
简介:
MEAL V2: Boosting Vanilla ResNet-50 to 80%+ Top-1 Accuracy on ImageNet without Tricks. In NeurIPS 2020 workshop.
关键参数与规格
关键参数与规格
参数值
语言Python
类别Models
子类别Domain-specific models
关键词Datasets, Deep Research, Model architecture
星标数705
分叉数196
贡献者1
创建日期2021-03-01
更新日期2026-10-12
1 天星标数0
7 天星标数1
排名14,769
上次排名14,613
排名变化-156
7 天星标排名10,880
上次 7 天星标排名10,940
7 天星标排名变化60
总星标排名14,812
上次总星标排名14,787
总星标排名变化-25
国家UK
README 摘录

TranAD This repository supplements our paper "TranAD: Deep Transformer Networks for Anomaly Detection in Multivariate Time Series Data" accepted in VLDB 2022. This is a refactored version of the code used for results in the paper for ease of use. Follow the below steps to replicate each cell in the results table. Due to limited resources, we are unable to provide support on any issues you may experience with installing or running the tool. Our work has been discussed in

the PodBean podcast! Results Installation This code needs Python-3. Dataset Preprocessing Preprocess all datasets using the command Distribution rights to some datasets may not be available. Check the readme files in the folder for more details. If you want to ignore a dataset, remove it from the above command to ensure that the preprocessing does not fail. Result Reproduction To run a model on a dataset, run the following command: where can be either of 'TranAD', 'GDN', 'MAD_GAN

', 'MTAD_GAT', 'MSCRED', 'USAD', 'OmniAnomaly', 'LSTM_AD', and dataset can be one of 'SMAP', 'MSL', 'SWaT', 'WADI', 'SMD', 'MSDS', 'MBA', 'UCR' and 'NAB. To train with 20% data, use the following command You can use the parameters in to set values in for each file. Note: to reproduce exact results of baselines, use their original codebases (links given in our paper) as the ones implemented in this repository are *not* the ones used in the paper, which used the original

versions. The versions provided here are for use of initial comparison and may not be identical to the original versions. For ablation studies, use the following models: 'TranAD_SelfConditioning', 'TranAD_Adversarial', 'TranAD_Transformer', 'TranAD_Basic'. The output will provide anomaly detection and diagnosis scores and training time. For example: All outputs can be run multiple times to ensure statistical significance. Supplementary video Cite this work Our paper is available in the Proceedings of VLDB: If you use this work, please

cite using the following bibtex entry.

常见问题

记录了多少星标和分叉?

imperial-qore/TranAD 有 705 个星标和 196 个分叉。

仓库排名是多少?

imperial-qore/TranAD 排名第 14,769。

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

imperial-qore/TranAD 有 705 个星标,语言为 Python,类别为 Models。

哪个仓库排名最接近?

imperial-qore/TranAD 与 yihao-meng/HoloCine 比较,后者排名第 14,762,有 706 个星标。

README

TranAD

This repository supplements our paper "TranAD: Deep Transformer Networks for Anomaly Detection in Multivariate Time Series Data" accepted in VLDB 2022. This is a refactored version of the code used for results in the paper for ease of use. Follow the below steps to replicate each cell in the results table. The code is provided as-is. Due to limited resources, we are unable to provide support on any issues you may experience with installing or running the tool.

Our work has been discussed in the PodBean podcast! See here.

Results

Installation

This code needs Python-3.7 or higher.

pip3 install torch==1.8.1+cpu torchvision==0.9.1+cpu torchaudio===0.8.1 -f https://download.pytorch.org/whl/torch_stable.html
pip3 install -r requirements.txt

Dataset Preprocessing

Preprocess all datasets using the command

python3 preprocess.py SMAP MSL SWaT WADI SMD MSDS UCR MBA NAB

Distribution rights to some datasets may not be available. Check the readme files in the ./data/ folder for more details. If you want to ignore a dataset, remove it from the above command to ensure that the preprocessing does not fail.

Result Reproduction

To run a model on a dataset, run the following command:

python3 main.py --model  --dataset  --retrain

where `` can be either of 'TranAD', 'GDN', 'MAD_GAN', 'MTAD_GAT', 'MSCRED', 'USAD', 'OmniAnomaly', 'LSTM_AD', and dataset can be one of 'SMAP', 'MSL', 'SWaT', 'WADI', 'SMD', 'MSDS', 'MBA', 'UCR' and 'NAB. To train with 20% data, use the following command

python3 main.py --model  --dataset  --retrain --less

You can use the parameters in src/params.json to set values in src/constants.py for each file.

Note: to reproduce exact results of baselines, use their original codebases (links given in our paper) as the ones implemented in this repository are not the ones used in the paper, which used the original versions. The versions provided here are for use of initial comparison and may not be identical to the original versions.

For ablation studies, use the following models: 'TranAD_SelfConditioning', 'TranAD_Adversarial', 'TranAD_Transformer', 'TranAD_Basic'.

The output will provide anomaly detection and diagnosis scores and training time. For example:

$ python3 main.py --model TranAD --dataset SMAP --retrain 
Using backend: pytorch
Creating new model: TranAD
Training TranAD on SMAP
Epoch 0,        L1 = 0.09839354782306504
Epoch 1,        L1 = 0.039524692888342115
Epoch 2,        L1 = 0.022258711623482686
Epoch 3,        L1 = 0.01833707226553135
Epoch 4,        L1 = 0.016330517334598792
100%|███████████████████████████████████████████████████████████████████| 5/5 [00:03<00:00,  1.57it/s]
Training time:     3.1920 s
Testing TranAD on SMAP
{'FN': 0,
 'FP': 182,
 'Hit@100%': 1.0,
 'Hit@150%': 1.0,
 'NDCG@100%': 0.9999999999999999,
 'NDCG@150%': 0.9999999999999999,
 'TN': 7575,
 'TP': 748,
 'f1': 0.8915325929177795,
 'precision': 0.8043010666204187,
 'recall': 0.9999999866310163,
 'threshold': 0.16133320075167037}

All outputs can be run multiple times to ensure statistical significance.

Supplementary video

Cite this work

Our paper is available in the Proceedings of VLDB: http://vldb.org/pvldb/vol15/p1201-tuli.pdf. If you use this work, please cite using the following bibtex entry.

@article{tuli2022tranad,
  title={{TranAD: Deep Transformer Networks for Anomaly Detection in Multivariate Time Series Data}},
  author={Tuli, Shreshth and Casale, Giuliano and Jennings, Nicholas R},
  journal={Proceedings of VLDB},
  volume={15},
  number={6},
  pages={1201-1214},
  year={2022}
}

License

BSD-3-Clause. Copyright (c) 2022, Shreshth Tuli. All rights reserved.

See License file for more details.

排名相邻
同类项目