Air Quality Prediction with Physics-Guided Dual Neural ODEs in Open Systems

Jindong Tian, Yuxuan Liang, Ronghui Xu, Peng Chen, Chenjuan Guo, Aoying Zhou, Lujia Pan, Zhongwen Rao, Bin Yang

TL;DR

Air-DualODE is a novel physics-guided deep learning framework that treats air quality prediction as an open system problem. By integrating dual Neural ODE branches—one solving a boundary-aware physical equation and the other capturing complex data-driven patterns—it achieves state-of-the-art accuracy on both city and national scales.

What Problem Does This Paper Address?

Predicting air quality (like $\text{PM}_{2.5}$ levels) is notoriously difficult because it involves complex spatiotemporal dynamics. Existing methods generally fall into two camps:

  1. Physics-based models: These use differential equations to model how pollutants move. However, they are computationally expensive and often rely on "closed-system" assumptions, ignoring the fact that pollutants constantly enter and exit a region (sources and sinks).
  2. Data-driven models: These are fast and good at finding patterns but often ignore physical laws, leading to predictions that might be mathematically sound but physically impossible.

Hybrid models exist, but they often struggle with a "representation mismatch"—trying to force explicit physical variables to play nice with the abstract, high-dimensional latent representations used by neural networks.

Methods

The authors propose Air-DualODE, which features three main innovations:

  • Boundary-Aware Diffusion-Advection Equation (BA-DAE): Unlike standard models that assume a closed system, BA-DAE introduces a linear correction term to account for "sources" (like factory emissions) and "sinks" (like forest absorption or wind carrying pollutants away). This is illustrated in the sources and sinks at a specific station in Figure 4.
  • Dual-Branch Neural ODEs:
    • The Physics Dynamics branch directly solves the BA-DAE to generate physically consistent sequences.
  • The Data-Driven Dynamics branch uses a Neural ODE with Spatial Masked Self-Attention (Spatial-MSA) to capture dependencies the physics equations might miss, such as the impact of humidity or complex local patterns.
  • Decaying Temporal Contrastive Learning (Decay-TCL): To solve the representation mismatch, this module aligns the latent states of both branches. It uses a contrastive loss that assumes representations at the same or adjacent time steps should be more similar than those further apart.

The overall architecture, shown in Figure 2, concludes with a GNN Fusion layer that merges these aligned representations based on the geospatial relationships between monitoring stations.

The overall framework of Air-DualODE

Datasets

The model was evaluated on two real-world datasets:

  • Beijing Dataset: A city-scale dataset with 35 monitoring stations providing hourly data on pollutants and meteorology.
  • KnowAir Dataset: A national-scale dataset covering 184 cities across China with observations recorded at three-hour intervals.

Key Insights and Ideas

  • The "Open System" Necessity: The paper argues that the biggest flaw in previous physics-guided models was the "closed system" assumption. By explicitly modeling dissipation and generation (Figure 4), the model becomes much more robust to real-world boundary conditions.
  • Physics as a Prior, Not a Constraint: Instead of just using physics as a loss penalty, Air-DualODE uses it to generate a parallel latent representation. This allows the model to lean on physical laws where they are clear and data-driven patterns where physics is too complex to solve explicitly.
  • Spatial Masking for Scalability: In the data-driven branch, the authors use the geospatial graph to mask self-attention. This ensures that a station in Beijing isn't trying to learn direct correlations from a station in Guangzhou, which reduces noise and improves computational efficiency.
The sources and sinks at station E

Key Results

Air-DualODE outperformed all baselines, including classical methods (HA, VAR), standard spatio-temporal models (DCRNN, STGCN), and recent SOTA transformers like AirFormer.

  • Accuracy: On the Beijing dataset, it achieved a Mean Absolute Error (MAE) of 40.32, compared to the next best model's 42.72.
  • Sudden Changes: The model is particularly effective at predicting "sudden changes" (fluctuations > 20 $\mu g/m^3$), a common failure point for time-series models.
  • Interpretability: The model can visualize the learned $\beta$ coefficients (source/sink intensity), showing higher generation values in Beijing's city center during morning rush hour—aligning perfectly with vehicle emission patterns.

Limitations and Future Work

  • Domain Specificity: The current physical branch is tailor-made for air pollutants. Applying this to other fields like traffic or water quality would require redesigning the BA-DAE component.
  • Peak Prediction: While the model tracks trends well during sudden changes, it still occasionally struggles to capture the exact magnitude of extreme pollutant peaks (as seen in Figure 12).
  • Future Directions: The authors suggest incorporating probabilistic approaches, such as variational inference, into the data-driven branch to better handle the inherent uncertainty of weather-driven pollution events.

Summary updated

Abstract

Air pollution significantly threatens human health and ecosystems, necessitating effective air quality prediction to inform public policy. Traditional approaches are generally categorized into physics-based and data-driven models. Physics-based models usually struggle with high computational demands and closed-system assumptions, while data-driven models may overlook essential physical dynamics, confusing the capturing of spatiotemporal correlations. Although some physics-guided approaches combine the strengths of both models, they often face a mismatch between explicit physical equations and implicit learned representations. To address these challenges, we propose Air-DualODE, a novel physics-guided approach that integrates dual branches of Neural ODEs for air quality prediction. The first branch applies open-system physical equations to capture spatiotemporal dependencies for learning physics dynamics, while the second branch identifies the dependencies not addressed by the first in a fully data-driven way. These dual representations are temporally aligned and fused to enhance prediction accuracy. Our experimental results demonstrate that Air-DualODE achieves state-of-the-art performance in predicting pollutant concentrations across various spatial scales, thereby offering a promising solution for real-world air quality challenges.
BibTeX
@inproceedings{tian2025air,
  author = {Jindong Tian and Yuxuan Liang and Ronghui Xu and Peng Chen and Chenjuan Guo and Aoying Zhou and Lujia Pan and Zhongwen Rao and Bin Yang},
  title = {{Air Quality Prediction with Physics-Guided Dual Neural ODEs in Open Systems}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=kOJf7Dklyv},
}
Figure