FusAD: Time-Frequency Fusion with Adaptive Denoising for General Time Series Analysis
December 17, 2025 ยท View on GitHub
๐ Introduction
FusAD (Fusion Adaptive Network) is a unified deep learning framework for time series analysis, supporting three major tasks:
- ๐ Anomaly Detection
- ๐ Classification
- ๐ Forecasting
D. Zhang, B. Li, Z. Zhao, F. Nie, J. Gao, and X. Li, "FusAD: Time-Frequency Fusion with Adaptive Denoising for General Time Series Analysis," ICDE, 2026.
๐ Supported Datasets
Forecasting and Anomaly Detection
Forecasting and Anomaly Detection datasets are downloaded from TimesNet.
Classification
UCR and UEA classification datasets are available at UCR Time Series Classification Archive.
๐ Project Structure
FusAD/
โโโ FusAD-Anomaly-Detection/ # Anomaly detection task
โ โโโ models/
โ โ โโโ FusAD.py # Main model
โ โ โโโ ASM.py # Adaptive Spectral Module
โ โ โโโ IFM.py # Interactor-Fusion Module
โ โโโ exp/ # Experiment classes
โ โโโ data_provider/ # Data loading utilities
โ โโโ scripts/ # Training scripts (MSL, SMAP, SMD, PSM, SWAT)
โ โโโ utils/ # Utility functions
โ โโโ run.py # Main entry point
โ
โโโ FusAD-classification/ # Classification task
โ โโโ Component/
โ โ โโโ ASM.py
โ โ โโโ IFM.py
โ โ โโโ Patch.py
โ โโโ Dataload/ # Data loading
โ โโโ utils/ # Utilities
โ โโโ main.py # Main entry point
โ
โโโ FusAD-forecasting/ # Forecasting task
โ โโโ Component/
โ โ โโโ ASM.py
โ โ โโโ IFM.py
โ โโโ scripts/ # Training scripts (ETT, Weather, Traffic, etc.)
โ โโโ data_factory.py # Data factory
โ โโโ data_loader.py # Data loader
โ โโโ FusAD_Forecasting.py # Main entry point
โ
โโโ README.md
๐ Quick Start
Requirements
pip install torch lightning timm einops pandas numpy scikit-learn
Anomaly Detection
cd FusAD-Anomaly-Detection
# Train on MSL dataset
bash scripts/MSL.sh
# Or run directly
python run.py \
--task_name anomaly_detection \
--is_training 1 \
--model FusAD \
--data MSL \
--root_path ./data/MSL \
--seq_len 100 \
--d_model 256 \
--e_layers 3 \
--batch_size 128
Classification
cd FusAD-classification
python main.py \
--model_id YourDataset \
--data_path /path/to/dataset \
--emb_dim 64 \
--depth 3 \
--batch_size 1024 \
--num_epochs 300
Forecasting
cd FusAD-forecasting
# Train on ETTh1 dataset
bash scripts/ETTh1.sh
# Or run directly
python FusAD_Forecasting.py \
--root_path ./data/ETT-small \
--data ETTh1 \
--data_path ETTh1.csv \
--seq_len 512 \
--pred_len 96 \
--emb_dim 64 \
--depth 3 \
--batch_size 512
๐ Citation
If you find FusAD useful in your research, please consider citing:
@article{zhang2026fusad,
title={Time-Frequency Fusion with Adaptive Denoising for General Time Series Analysis},
author={Zhang, Da and Li, Bingyu and Zhao, Zhiyuan and Nie, Feiping and Gao, Junyu and Li, Xuelong},
journal={arXiv preprint arXiv:2512.14078},
year={2025}
}
๐ License
This project is licensed under the MIT License.
๐ Acknowledgements
Our codebase is based on the following Github repositories. Thanks to the following public repositories:
Note: This is a research level repository and might contain issues/bugs. Please contact the authors for any query.