Back to the Future: GNN-based NO$_2$ Forecasting via Future Covariates

Antonio Giganti, Sara Mandelli, Paolo Bestagini, Umberto Giuriato, Alessandro D'Ausilio, Marco Marcon, Stefano TubaroarXiv 2024

TL;DR

This paper introduces MAGCRN, a novel spatiotemporal graph neural network that significantly improves urban $NO_2$ forecasting by incorporating "future covariates"—information known in advance, such as weather forecasts and calendar events. The authors demonstrate that conditioning predictions on future weather information is more impactful than relying on past traffic data, particularly for multi-day forecasting horizons.

What Problem Does This Paper Address?

Predicting air quality in urban environments is notoriously difficult because pollutant concentrations (like $NO_2$) are influenced by complex, dynamic interactions across both space and time. While current Deep Learning models, specifically Spatiotemporal Graph Neural Networks (STGNNs), are good at capturing these patterns, they typically only look "backward." They use past observations and past exogenous variables (covariates) like traffic or weather to predict the future.

However, at the moment we make a prediction, we often have access to high-quality information about the future, such as meteorological forecasts (temperature, wind speed, precipitation) and calendar data (weekends, holidays, rush hours). The authors identify a gap in how these "future covariates" are systematically integrated into GNN architectures to improve long-term forecasting accuracy.

Methods

The researchers built their method, MAGCRN (Modified Adaptive Graph Convolutional Recurrent Network), upon the existing AGCRN framework. AGCRN is powerful because it doesn't require a pre-defined map of monitoring stations; it learns the "hidden" graph topology directly from the data.

The core innovation is the Cond (Conditioning) module, which allows the network to "ingest" future information in a structured way:

  1. Conditioning Block: The model uses separate Multi-Layer Perceptron (MLP) paths to embed past covariates (e.g., traffic) and future covariates (e.g., weather forecasts) into the current observation space. The Cond Module
  2. Embedding Estimation: These conditioned signals are passed through two identical AGCRN cells to extract latent spatiotemporal features.
  3. Past & Future Fusion: The resulting embeddings ($E^p$ and $E^f$) are combined using a mixing coefficient $\alpha$. This allows the model to balance the influence of historical trends versus future expected conditions. The MAGCRN Training Pipeline
Fig. 2: The proposed Cond module.
Fig. 1: The training pipeline of the proposed MAGCRN. The AGCRN∗used here rep- resents AGCRN without the last FC layer.

Datasets

The model was evaluated using a real-world dataset from Madrid, Spain, spanning January to June 2019. The data was collected from 24 ground monitoring stations and included:

  • Air Quality: $NO_2$ concentrations.
  • Meteorology: Wind speed/direction, temperature, humidity, pressure, and solar irradiance.
  • Traffic: Intensity, occupancy, load, and average speed.
  • Calendar: Time of day, day of the week, and seasons.
Fig. 3: The distribution of the 24 ground monitoring stations placed in the city of Madrid. Each point represents one observation station.

Key Insights and Ideas

  • Future Weather > Past Traffic: One of the most striking findings is that future weather forecasts have a significantly higher impact on prediction accuracy than past traffic conditions. While traffic causes emissions, weather determines how those emissions disperse or accumulate.
  • The $\alpha$ Factor: The authors found that the best performance occurred when $\alpha \approx 0.8$. This means the model achieves its highest accuracy when it gives much more weight to future conditioning than to past conditioning.
  • Robust Generalization: Although the model was trained specifically for 1-day ahead forecasts, it generalized remarkably well to 2-day and 3-day horizons without retraining, maintaining a significant lead over baseline models.

Key Results

MAGCRN consistently outperformed state-of-the-art baselines like Graph WaveNet and the original AGCRN across all tested horizons (1, 2, and 3 days).

  • 1-Day Forecast: MAGCRN achieved a Mean Absolute Error (MAE) of 9.43, compared to 11.56 for the standard AGCRN (an ~18% improvement).
  • 3-Day Forecast: The MAE for MAGCRN was 10.85, while the best baseline (AGCRN) lagged at 13.69.

Sensitivity analysis (shown below) confirms that as the forecasting horizon increases, the reliance on future covariates (higher $\alpha$) becomes even more critical for maintaining acceptable results.

Fig. 4: MAE results vs network parameters, according to different time forecasting horizons. In particular, ▼indicates 1-day time horizon, ▲the 2-day time horizon, ◀the 3-day time horizon.

Limitations and Future Work

The authors acknowledge a few areas for further development:

  • Static Balancing: Currently, the mixing coefficient $\alpha$ is a fixed hyperparameter. Future work aims to make this a learnable parameter that the network can adjust dynamically during training.
  • Integration Depth: The current model fuses past and future information at a late stage (embedding fusion). The researchers suggest investigating how to integrate future covariates directly into the GNN's internal message-passing process.
  • Dynamic Graphs: While the model learns a graph structure, that structure remains static after training. Exploring dynamic graph structures that evolve with changing weather or traffic patterns could further boost performance.

Summary updated

Abstract

Due to the latest environmental concerns in keeping at bay contaminants emissions in urban areas, air pollution forecasting has been rising the forefront of all researchers around the world. When predicting pollutant concentrations, it is common to include the effects of environmental factors that influence these concentrations within an extended period, like traffic, meteorological conditions and geographical information. Most of the existing approaches exploit this information as past covariates, i.e., past exogenous variables that affected the pollutant but were not affected by it. In this paper, we present a novel forecasting methodology to predict NO$_2$ concentration via both past and future covariates. Future covariates are represented by weather forecasts and future calendar events, which are already known at prediction time. In particular, we deal with air quality observations in a city-wide network of ground monitoring stations, modeling the data structure and estimating the predictions with a Spatiotemporal Graph Neural Network (STGNN). We propose a conditioning block that embeds past and future covariates into the current observations. After extracting meaningful spatiotemporal representations, these are fused together and projected into the forecasting horizon to generate the final prediction. To the best of our knowledge, it is the first time that future covariates are included in time series predictions in a structured way. Remarkably, we find that conditioning on future weather information has a greater impact than considering past traffic conditions. We release our code implementation at https://github.com/polimi-ispl/MAGCRN.
BibTeX
@misc{giganti2024back,
  author = {Antonio Giganti and Sara Mandelli and Paolo Bestagini and Umberto Giuriato and Alessandro D'Ausilio and Marco Marcon and Stefano Tubaro},
  title = {{Back to the Future: GNN-based NO$\_2$ Forecasting via Future Covariates}},
  year = {2024},
  eprint = {2404.05324},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.05324},
}

Loading related content...

Figure