The implementation of our ICML-2025 paper "Conformal Anomaly Detection in Event Sequences".
- Install the dependencies
conda env create -f environment.yml - Activate the conda environment
conda activate anomaly_tpp - Install the package (this command must be run in the
CADESfolder)pip install -e . - Unzip the data
unzip data.zip
experiments/spp.py: GOF tests for SPP under nine alternatives (Section 4.1 in the paper).experiments/multivariate.py: Detecting anomalies in synthetic data (Section 4.2).experiments/real_world.py: Detecting anomalies in real-world data (Section 4.3).experiments/fpr_control.py: FPR control (Section 4.4).
If you find this code useful, please consider citing our paper. Thanks.
@inproceedings{zhang2025conformal,
title={Conformal Anomaly Detection in Event Sequences},
author={Zhang, Shuai and Zhou, Chuan and Liu, Yang and Zhang, Peng and Lin, Xixun and Pan, Shirui},
booktitle={International Conference on Machine Learning},
year={2025}
}
Parts of this code are based on and/or copied from https://github.com/shchur/tpp-anomaly-detection.