Spatio-Temporal Forecasting of $$PM_{2.5}$$ via Spatial-Diffusion Guided Encoder-Decoder Architecture
This repository contains the code for the research paper "Spatio-Temporal Forecasting of $$PM_{2.5}$$ via Spatial-Diffusion guided Encoder-Decoder Architecture" accepted for presentation at "CODS-COMAD'24".
In many problem settings that require spatio-temporal forecasting, the values in the time-series not only exhibit spatio-temporal correlations but are also influenced by spatial diffusion across locations. One such example is forecasting the concentration of fine particulate matter (
This study is based on two similar real world datasets:
- Bihar, India: A dataset collected using 511 low-cost sensors deployed across the entire region of Bihar for a year (01/05/2023 - 30/04/2024).
- KnowAir Dataset: Dataset covering severly polluted regions in China, spanning across 4 years (01/01/2015 - 31/12/2018). Dataset is available at KnowAir.
Python 3.10.13
or above- GPU recommended for training (trained on NVIDIA A30 with 24G memory)
- Clone this repository
git clone https://github.com/malayp717/pm2.5.git cd pm2.5
- Install dependencies:
pip install -r requirements.txt
- Choose the model you want to run, and make required changes in either
bihar_config.yaml
orchina_config.yaml
, depending on your location preference.train: model: GRU model: GC_GRU model: GraphConv_GRU model: GNN_GRU model: Attn_GNN_GRU
python -u train.py --config <config_file>.yaml
Make sure to choose the correct configuration file:
bihar_config.yaml
: Use this file for training on the Bihar dataset.china_config.yaml
: Use this file for training on the China dataset.
python -u stats.py --config <config_file>.yaml
@misc{pandey2024spatiotemporalforecastingpm25spatialdiffusion,
title={Spatio-Temporal Forecasting of PM2.5 via Spatial-Diffusion guided Encoder-Decoder Architecture},
author={Malay Pandey and Vaishali Jain and Nimit Godhani and Sachchida Nand Tripathi and Piyush Rai},
year={2024},
eprint={2412.13935},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2412.13935},
}