Spatial Aggregation and Temporal Convolution Networks for Real-time Kriging

Yuankai Wu, Dingyi Zhuang, Mengying Lei, Aurélie Labbe, Lijun SunarXiv 2021

Abstract

Spatiotemporal kriging—estimating missing sensor data across space and time—is traditionally bottlenecked by computationally heavy or inflexible models. This paper introduces SATCN, a novel deep learning framework combining Temporal Convolutional Networks (TCNs) and a unique Spatial Aggregation Network (SAN) with a masking strategy. SATCN allows for real-time, inductive kriging on unseen locations and varying time windows, outperforming existing state-of-the-art methods on diverse real-world datasets.

Introduction: The Challenge of Spatiotemporal Kriging

In many fields, such as climate modeling and traffic monitoring, data is collected via a network of sensors. Often, researchers need to estimate values at locations where no sensor exists or where a sensor has failed—a process known as kriging.

Traditional methods like Gaussian Processes (GP) are computationally expensive, scaling cubically with the number of data points. Matrix and tensor completion methods are faster but are transductive, meaning they require retraining to estimate data for any new location. While Graph Neural Networks (GNNs) have been applied to this problem, they typically rely on rigid adjacency matrices and often fail to fully utilize the temporal dimension of the data. The authors propose SATCN to build an inductive model that can generalize to entirely unseen locations and varying time windows without retraining, while capturing both spatial and temporal dependencies.

Methodology: The SATCN Architecture

The authors propose SATCN (Spatial Aggregation and Temporal Convolution Networks), an architecture that alternates between spatial and temporal processing blocks to capture complex dependencies.

The SATCN architecture alternates between masked spatial aggregation and temporal convolution layers to process spatiotemporal data.

Masked Spatial Aggregation Network (SAN)

Standard GNNs pass messages between all connected nodes. To train a model for kriging, SATCN uses a masking strategy: missing nodes are simulated during training and forbidden from sending messages to their neighbors. This forces the network to learn how to infer a node's value strictly from its surrounding observed neighbors. Additionally, instead of simple averaging, SAN uses multiple aggregators—including mean, softmax, standard deviation, and distance-weighted metrics—to capture the complex statistical distribution of the neighborhood.

Temporal Convolutional Networks (TCN)

To capture how data changes over time, SATCN uses 1D temporal convolutions. Unlike Recurrent Neural Networks (RNNs), TCNs allow the model to process input sequences of varying lengths, making the framework highly flexible for real-time applications.

Datasets and Evaluation

The model was evaluated on three diverse real-world spatiotemporal datasets:

  • METR-LA: 5-minute resolution traffic speed data from 207 highway sensors in Los Angeles.
  • MODIS: Daily land surface temperatures from the Terra satellite, containing 39.6% missing data due to cloud cover.
  • USHCN: Monthly precipitation data from 1,218 US weather stations spanning over a century.

Key Results and Performance

SATCN consistently outperformed traditional baselines (kNN, Ordinary Kriging) and state-of-the-art GNNs (IGNNK, KCN-SAGE) across all datasets. For example, on the METR-LA dataset, SATCN achieved an RMSE of 8.35, compared to IGNNK's 9.08 and KCN-SAGE's 8.52.

Comparison of absolute error across the US for various kriging methods on the USHCN dataset. SATCN shows lower and more uniform error distribution compared to baselines.

The model also demonstrated extreme robustness. On the USHCN dataset with a 50% missing data mask, SATCN maintained an RMSE of 4.03, significantly beating IGNNK, which degraded to 6.02. Qualitatively, on the MODIS dataset, SATCN produced physically consistent temperature predictions for cloud-covered areas, whereas baselines generated unrealistic anomalies or overly smoothed maps.

Discussion and Key Insights

  • Masking for Inductive Learning: By simulating missing nodes during training, the GNN learns a generalized interpolation rule that handles completely new graph structures during inference.
  • Aggregator Diversity: Using multiple aggregators helps the model distinguish subtle spatial nuances that a simple average would blur.
  • Temporal Context: The inclusion of TCNs makes the model robust; when spatial data is sparse, the model leans on learned temporal dependencies to maintain accuracy.
  • Optimal Network Depth: The authors found that a 2-layer SATCN works best. A 3-layer network expands the spatial receptive field too far, pulling in irrelevant, distant information.

Conclusion

SATCN provides a powerful framework for real-time kriging by effectively combining masked spatial aggregation with temporal convolutions. While the model's performance can drop if the training graph is too sparse or the network too deep, it represents a general solution for graph-based missing data. Future work may involve integrating this into broader forecasting frameworks for dynamic systems, such as moving vehicle sensors.

Summary updated

BibTeX
@misc{wu2021spatial,
  author = {Yuankai Wu and Dingyi Zhuang and Mengying Lei and Aurélie Labbe and Lijun Sun},
  title = {{Spatial Aggregation and Temporal Convolution Networks for Real-time Kriging}},
  year = {2021},
  eprint = {2109.12144},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.12144},
}
Figure