SDA-GRIN for Adaptive Spatial-Temporal Multivariate Time Series Imputation

Amir Eskandari, Aman Anand, Drishti Sharma, Farhana H. Zulkernine

TL;DR

SDA-GRIN introduces a "dynamic awareness" layer to multivariate time series imputation by using Multi-Head Attention to adapt graph structures in real-time. By moving beyond static spatial assumptions, the model achieves up to a 9.5% reduction in Mean Squared Error (MSE) on air quality datasets compared to previous state-of-the-art methods.

What Problem Does This Paper Address?

In fields ranging from urban traffic management to environmental monitoring, sensors frequently fail, leading to "holes" in Multivariate Time Series (MTS) data. To fill these gaps (imputation), researchers often use Graph Neural Networks (GNNs) to leverage spatial dependencies—the idea being that if one sensor is missing data, its neighbors can help predict the value.

However, most existing models rely on static graphs. They assume the relationship between two sensors is fixed, often based on simple geographic proximity. This is a flawed assumption:

  1. Dynamic Relationships: Spatial dependencies change over time (e.g., wind patterns shifting air pollutants).
  2. Misleading Proximity: Two sensors might be physically close but on opposite sides of a highway, measuring completely different traffic flows.
  3. Non-linearity: Simple linear metrics often fail to capture the complex, non-linear interactions between variables.

Methods

The authors propose the Spatial Dynamic Aware Graph Recurrent Imputation Network (SDA-GRIN). It builds upon the existing GRIN framework but adds a critical adaptive mechanism:

  • Multi-Head Attention (MHA): Instead of just using a pre-defined map of sensors, the model uses MHA to look at the data within a specific time window. It calculates "attention weights" between every pair of variables, essentially asking, "Which sensors are most relevant to each other right now?"
  • Graph Adaptation: These attention weights are used to "tweak" the static adjacency matrix. This creates a time-varying, data-driven graph ($A^*_t$) that reflects current spatial dependencies.
  • Message-Passing Recurrent Units (MPGRU): The model processes these dynamic graphs using a Gated Recurrent Unit (GRU) where the standard internal layers are replaced with Message-Passing Neural Networks (MPNN). This allows the model to capture both temporal trends and spatial relationships simultaneously.
  • Bidirectional Processing: The model looks at the data both forward and backward in time to produce the most accurate imputation.

Datasets

The model was evaluated on four real-world benchmark datasets:

  • Air Quality (AQI): 437 monitoring stations across 43 cities in China.
  • AQI-36: A smaller subset of the AQI dataset with 36 sensors.
  • PEMS-BAY: Traffic data from 325 sensors in the San Francisco Bay Area.
  • METR-LA: Traffic data from 207 sensors on Los Angeles County highways.

Key Insights and Ideas

  • The "Static Map" Trap: The paper demonstrates that static graphs are insufficient for datasets with high spatial variability. In air quality data, where relationships are volatile, the dynamic adaptation provided by SDA-GRIN yielded much higher performance gains than in traffic data, where spatial relationships are more stable.
  • Efficiency Matters: One might worry that adding attention mechanisms would make the model too heavy. However, the authors show that SDA-GRIN only increases the total parameter count by 1.1% to 4.9%, making it a highly efficient upgrade to the base GRIN model.
  • Window Size Trade-offs: The "context" matters. For large datasets, a larger time window helps the attention mechanism understand dynamics better. However, for smaller datasets (like AQI-36), smaller windows actually performed better, likely because there are fewer variables to coordinate.

Key Results

SDA-GRIN consistently outperformed established baselines like BRITS, MPGRU, and the original GRIN:

  • Air Quality: Achieved a 9.51% reduction in MSE for the AQI dataset and a 9.40% reduction for AQI-36.
  • Traffic: Achieved a 1.94% reduction in MSE on PEMS-BAY.
  • Robustness: The model maintained superior performance even as the "missingness" rate increased, though performance naturally declines when data becomes extremely sparse (e.g., 90% missing).

Limitations and Future Work

  • Scalability Constraints: While the parameter increase is minimal, the authors noted that for very large datasets (like AQI with 437 variables), large window sizes caused GPU memory overflows. This suggests a need for more memory-efficient attention implementations for massive sensor networks.
  • Sensitivity to Sparsity: At very high missing data rates (above 80-90%), the attention mechanism struggles to find enough "signal" to adapt the graph effectively.
  • Future Directions: The authors suggest further exploration into how different types of attention or sparse graph learning could further optimize the balance between computational cost and imputation accuracy.

Summary updated

BibTeX
@inproceedings{eskandari2025sda,
  author = {Amir Eskandari and Aman Anand and Drishti Sharma and Farhana H. Zulkernine},
  title = {{SDA-GRIN for Adaptive Spatial-Temporal Multivariate Time Series Imputation}},
  booktitle = {COMPSAC},
  year = {2025},
  doi = {10.1109/compsac65507.2025.00246},
}
Figure