STA-GANN: A Valid and Generalizable Spatio-Temporal Kriging Approach

November 11, 2025 Β· View on GitHub

Official repository for the paper:
"STA-GANN: A Valid and Generalizable Spatio-Temporal Kriging Approach"
Accepted at ACM CIKM 2025.

arXiv

πŸ“– Table of Contents


πŸ“– Introduction

Spatio-temporal tasks often encounter incomplete data due to missing or inaccessible sensors, making spatio-temporal kriging crucial for inferring missing temporal information.

However, existing models face challenges in:

  • Capturing dynamic spatial dependencies and temporal shifts,
  • Ensuring validity of spatio-temporal patterns,
  • Optimizing generalizability to unknown sensors.

To address these issues, we propose Spatio-Temporal Aware Graph Adversarial Neural Network (STA-GANN), a novel GNN-based kriging framework that enhances both validity and generalization of spatio-temporal pattern inference.


πŸ”‘ Key Contributions

  • Decoupled Phase Module (DPM): Detects and adjusts timestamp shifts.
  • Dynamic Data-Driven Metadata Graph Modeling (D3MGM): Updates spatial relationships using temporal signals and metadata.
  • Adversarial Transfer Learning Strategy: Ensures robust generalization to unseen sensors.

πŸ“‚ Repository Structure

Our STA-GANN and STKriging implementations are developed based on BasicTS (Dec 2023 release).
We plan to continuously follow the updates of BasicTS to ensure that our framework remains fully aligned with the official version.

The current repository structure is as follows:

β”œβ”€β”€ data_preparation/   # Dataset processing methods
β”œβ”€β”€ datasets/           # Raw data
β”œβ”€β”€ examples/           # Parameters CFG for each dataset and each methods
β”œβ”€β”€ ── {Method}/        # Corresponding method folder
β”œβ”€β”€ ── ── {Method}_{Datasets}.py # Each method and dataset has a CFG py file.
β”œβ”€β”€ stkriging/         # Main Folder
β”œβ”€β”€ ── arch/           # Kriging algorithm
β”œβ”€β”€ ── data/           # Dataset processing related
β”œβ”€β”€ ── loss/           # Define the loss function, redirected from metrics
β”œβ”€β”€ ── metrics/        # metrics
β”œβ”€β”€ ── runners/        # pipeline
β”œβ”€β”€ ── utils/          # Kriging processing related
└── README.md          # Project documentation

πŸš€ Getting Started

Please install all dependencies via:

pip install -r requirements.txt

Go to examples/run.py, select the method and dataset you need, then run:

python examples/run.py

πŸ“Š Datasets

DatasetDomainSensorsDurationTime StepsFrequencyExtra InfoData Link
METR-LATraffic207Mar 2012 – Jun 201234,2725 minIncludes latitude/longitude; sensor graph; adjacency via Gaussian kernelLINK
PEMS-BAYTraffic325Jan 2017 – Jun 201752,1165 minIncludes latitude/longitude; sensor graph; adjacency via Gaussian kernelLINK
PEMS03Traffic358Sep 2018 – Nov 201826,2085 minSensor graph only; no latitude/longitudeLINK
PEMS04Traffic307Jan 2018 – Feb 201816,9925 minSensor graph only; no latitude/longitudeLINK
PEMS07Traffic883May 2017 – Aug 201728,2245 minSensor graph only; no latitude/longitudeLINK
PEMS08Traffic170Jul 2016 – Aug 201617,8565 minSensor graph only; no latitude/longitudeLINK
NRELEnergy1372006105,12010 min*Solar power plants in Alabama; includes latitude/longitudeLINK
USHCNClimate1,2181899 – 20191,440MonthlyPrecipitation; includes latitude/longitudeLINK
AQIEnvironment43743 cities (China)59,710Hourly*Air Quality Index (PM2.5); includes latitude/longitudeLINK

πŸ“Œ Data Split

For spatio-temporal kriging experiments, we split the data along two dimensions:

  1. Node Split

    • 7:1:2 ratio
    • 7 parts for known sensors in training
    • 1 part for unknown sensors in validation
    • 2 parts for unknown sensors in test
  2. Series Split

    • 7:3 ratio
    • 7 parts for training
    • 3 parts for validation & test

πŸ“š Baselines

NamePaper TitleVenueYearLinkType
GCNSemi-Supervised Classification with Graph Convolutional NetworksICLR2017LINKBackbone
GINHow Powerful are Graph Neural Networks?ICLR2019LINKBackbone
IGNNKInductive Graph Neural Networks for Spatiotemporal KrigingAAAI2021LINKSpatio-temporal Kriging
GRINFilling the Gaps: Multivariate Time Series Imputation by Graph Neural NetworksICLR2022LINKAdapted Spatio-temporal Imputation
SATCNSpatial Aggregation and Temporal Convolution Networks for Real-time KrigingNone2021LINKSpatio-temporal Kriging
INCREASEINCREASE: Inductive Graph Representation Learning for Spatio-Temporal KrigingWWW2023LINKSpatio-temporal Kriging
DualSTNDecoupling Long- and Short-Term Patterns in Spatiotemporal InferenceTNNLS2023LINKSpatio-temporal Kriging
IAGCNInductive and Adaptive Graph Convolution Networks Equipped with Constraint Task for Spatial–Temporal Traffic Data KrigingKBS2024LINKSpatio-temporal Kriging
OKrigingβ€”β€”β€”β€”Traditional Kriging

πŸ“œ Citation

arXiv link: http://arxiv.org/abs/2508.16161

The citation:

@inproceedings{li2025sta,
  title={STA-GANN: A Valid and Generalizable Spatio-Temporal Kriging Approach},
  author={Li, Yujie and Zezhi, Shao and Yu, Chengqing and Qian, Tangwen and Zhang, Zhao and Du, Yifan and He, Shaoming and Wang, Fei and Xu, Yongjun},
  booktitle={Proceedings of the 34th ACM International Conference on Information and Knowledge Management},
  pages={1726--1736},
  year={2025}
}

🀝 Contact

For any issues, please contact: liyujie23s@ict.ac.cn