Thanks to visit codestin.com
Credit goes to github.com

Skip to content

xren451/DAMR

Repository files navigation

DAMR:Dynamic Adjacency Matrix Representation Learning for Multivariate Time Series Imputation

This repository contains the code and datasets for the paper "Dynamic Adjacency Matrix Representation Learning for Multivariate Time Series Imputation". In this paper, we propose a new imputation method based on graph neural network architecture.

we design DAMR that extracts various dynamic patterns of spatial correlations and represents them as adjacency matrices. The adjacency matrices are then aggregated and fed into a well-designed graph representation learning layer for predicting the missing values.

3 Architecture

10 AM layers

Dataset:

For IN, SZ, CO and NZ dataset, please refer to the data folder. For CN dataset, please download the dataset from the paper here. For KDD-CUP dataset, please download the dataset here provided by the paper here and add this dataset into our folder.

Experiment:

To better understand our approach, we use DAMR_AIRQUALITY.ipynb for convenience. In DAMR_AIRQUALITY.ipynb, we provide the colab version here of DAMR approach and several statistical baseline models: Mean, Sliding Window, MF, KNN and MICE. For reproducibility on different datasets, please modify the input path "data=Csv2Tensor('Data/AIRQUALITY/raw')" by changing "AIRQUALITY" with other datasets. The default setting of hyper-parameters are shown here: Miss_perc = 0.1; Split_perc1 = 0.8; Split_perc2 = 0.1; learning_rate = 0.0001; batch_size = 24; epochs = 100; seed = 42; verbose = 1; path = '/content/DAMR/Data/Airquality/raw'

You can easily replace with other hyper parameters in colab.

Baseline models

(1) GRIN:

Run the code on GRIN, please run "python main.py" on baseline folder.

(2) BRITS: Follow the steps on BRITS.

1.Put the dataset into raw folder. 2.Make a empty folder named json, and run input_process.py.

(3) GRAPE: Follow the steps on GRAPE.

1.Enter in the path GRAPE/uci/raw_data/concrete/data/, then modify data.txt into our datasets, eg. ND. 2.Run python train_mdi.py uci --data ND.

Ablation study:

Run DAMR_Ablation-Diffconv.ipynb, DAMR_Ablation-GAT+Diffconv.ipynb, DAMR_Ablation-GAT+GCN.ipynb, DAMR_Ablation-GAT.ipynb, DAMR_Ablation-GCN.ipynb, DAMR_Ablation-Diffconv.ipynb to conduct ablation study.

Citation

APA style:

  • Xiaobin Ren, Kaiqi Zhao and Patricia Riddle et al. (2023). DAMR: Dynamic Adjacency Matrix Representation Learning for Multivariate Time Series Imputation. SIGMOD. https://doi.org/10.1145/3589333.

Bibtex style:

@article{xren,
    title = {DAMR: Dynamic Adjacency Matrix Representation Learning for Multivariate Time Series Imputation},
    year = {2023},
    journal = {SIGMOD},
    author = {Xiaobin Ren and Kaiqi Zhao and Patricia Riddle and Katerina Ta\v{s}kova and Lianyan Li and Qingyi Pan}
    doi={10.1145/3589333},
    }


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published