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.