readme.md
April 11, 2026 Β· View on GitHub
CoAD
π Bridging Classification and Reconstruction: Cooperative Time Series Anomaly Detection
Table of Contents
- πβ Overall Framework
- π Main Results
- π Case Studies
- βοΈ Setup
- ποΈ Prepare datasets
- π Reproduce the main results
- π Reproduce the baseline results
- π Reproduce the ablation study results
- π Reproduce the parameter study results
- π References
πβ Overall Framework
π Main Results
Evaluation results on reliable datasets (KDD21 [1] and TSB-AD [2]) using rigorous evaluation protocols [2].
π Case Studies
Visualizes the detection results of COAD on several challenging cases.
βοΈ Setup
Installationconda create -n CoAD python=3.11
conda activate CoAD
pip install -r requirements.txt
ποΈ Prepare datasets
-
A visual illustration of the flaws present in the datasets (SMD, PSM, SWaT, SMAP, MSL, and NAB) can be found at the following anonymous link: flawed datasets. The PDF is sourced from a presentation given at ITISE 2023.
-
Download the dataset from the anonymous link dataset and extract it to the
datasetfolder. -
The 64 subsets of TSB-AD used in the paper can be found in the
runners/run_all_CoAD.shfile, including MGAB, SED, SVDB, IOPS and TODS benchmark datasets.
ββdataset
ββββTSB-AD
β ββββraw
β β ββββ001_NAB_id_1_Facility_tr_1007_1st_2014.csv
β β ββββ...
ββββUCR(KDD21)
β ββββprocessed
β β ββββtrain
β β ββββtest
β β ββββlabel
β ββββall_period.csv
π Reproduce the main results
sh runners/run_all_CoAD.sh
π Reproduce the baseline results
# reproduce the deep learning based methods
sh runners/run_deep_baseline.sh
# reproduce the data mining based methods
sh runners/run_dm_baseline.sh
π Reproduce the ablation study results
The details of the ablation versions are shown in the runners/run_ablation_CoAD.sh file.
sh runners/run_ablation_CoAD.sh
π Reproduce the parameter study results
sh runners/parameter.sh
π References
-
βMultidataset time series anomaly detection competition,β 2021, https://compete.hexagon-ml.com/practice/competition/39/.
-
βThe elephant in the room: Towards a reliable time-series anomaly detection benchmark,β in The 38th Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2024