PriSTI: A Conditional Diffusion Framework for Spatiotemporal Imputation

Mingzhe Liu, Han Huang, Hao Feng, Leilei Sun, Bowen Du, Yanjie Fu · DOI

Introduction

Spatiotemporal data—information indexed across both space and time—serves as the foundation for critical urban services, including traffic management, weather forecasting, and air quality monitoring. However, real-world data collection is frequently compromised by sensor malfunctions, battery depletion, and transmission failures, leading to significant data gaps.

Accurately filling these gaps, a process known as imputation, is essential for downstream analysis. Traditional approaches, primarily based on Recurrent Neural Networks (RNNs), often suffer from error accumulation due to their autoregressive nature. While Diffusion Probabilistic Models (DPMs) have emerged as a powerful generative alternative, they often struggle to effectively integrate complex geographic relationships and temporal dependencies as conditional information. This paper introduces PriSTI (Prior-modeling enhanced SpatioTemporal Imputation), a conditional diffusion framework designed to overcome these limitations by leveraging a global context prior.

The Problem: Error Accumulation and Conditional Complexity

Most existing imputation methods rely on temporal or spatial correlations to predict missing values. RNN-based models (like GRIN) process data sequentially, meaning an incorrect prediction at one time step can propagate and amplify errors throughout the remainder of the sequence.

Generative models, specifically diffusion models, avoid this sequential dependency by treating imputation as a denoising task. However, standard diffusion models often treat the conditional information (the observed data) and the noisy latent state (the data being reconstructed) with equal weight during the denoising process. When missing rates are high, the noise dominates, making it difficult for the model to identify the underlying spatiotemporal structure.

The PriSTI Framework

PriSTI redefines imputation as a conditional generation task, focusing on extracting a reliable "Global Context Prior" to guide the diffusion process. The framework consists of two primary innovations:

1. Conditional Feature Extraction

Rather than feeding raw, incomplete data directly into the diffusion model, PriSTI first performs a simple linear interpolation to create a continuous, albeit coarse, signal. This "coarse" signal provides a more stable foundation than sparse, masked data.

A specialized architecture then processes this signal using:

  • Temporal Attention: To capture long-term trends and periodicities.
  • Spatial Attention: To model dependencies between different geographic locations.
  • Graph Neural Networks (MPNN): To explicitly incorporate the physical distance between sensors via an adjacency matrix.

The result is a Global Context Prior that captures the essential "skeleton" of the spatiotemporal dependencies.

2. Specialized Noise Estimation

In standard diffusion models, attention weights are typically calculated based on the noisy input. PriSTI improves upon this by using the extracted Global Context Prior to calculate these weights. By decoupling the attention mechanism from the noise, the model maintains a clear understanding of spatial and temporal correlations even in the early stages of denoising when the input is almost entirely Gaussian noise. This ensures that the reconstruction remains grounded in geographic and temporal reality.

Experimental Results

The authors evaluated PriSTI on three major real-world benchmarks: AQI-36 (air quality in Beijing), METR-LA (traffic speed in Los Angeles), and PEMS-BAY (traffic speed in the Bay Area). The model was tested against various missing data patterns, including random point-missing and continuous block-missing scenarios.

Performance Highlights

  • State-of-the-Art Accuracy: On the AQI-36 dataset, PriSTI achieved a Mean Absolute Error (MAE) of 9.03, significantly outperforming the previous diffusion leader, CSDI (9.51), and the RNN-based GRIN (12.08).
  • Resilience to Extreme Data Loss: In sensitivity tests where 90% of the data was missing, PriSTI demonstrated remarkable robustness, improving MAE performance by 4.67% to 43.99% over competing baselines.
  • Effective Kriging: The model proved highly effective at "Kriging"—the task of reconstructing an entire time series for a sensor with zero observations—by successfully leveraging the patterns of neighboring sensors.
  • Downstream Utility: Data imputed by PriSTI led to more accurate results in secondary tasks, such as traffic forecasting, compared to data filled by other imputation methods.

Discussion and Limitations

While PriSTI sets a new benchmark for accuracy, it does come with trade-offs. As a diffusion-based model, it is computationally more intensive than deterministic models, requiring approximately 18% more inference time than CSDI on large-scale datasets. Additionally, while the use of "virtual nodes" helps manage spatial complexity, scaling the model to thousands of sensors remains a challenge for future research.

Future work may also explore ways to capture even longer-range temporal dependencies, such as weekly or monthly seasonality, to further refine the global context prior. Nevertheless, PriSTI represents a significant step forward in making spatiotemporal data more reliable for urban and environmental modeling.

Summary updated

BibTeX
@inproceedings{liu2023pristi,
  author = {Mingzhe Liu and Han Huang and Hao Feng and Leilei Sun and Bowen Du and Yanjie Fu},
  title = {{PriSTI: A Conditional Diffusion Framework for Spatiotemporal Imputation}},
  booktitle = {ICDE},
  year = {2023},
  url = {https://openreview.net/forum?id=oKpi40dmUX},
}
Figure