AeroChem: Closed-loop Physics-Informed State Space Modeling for Long-term Chemically-Reactive Air Quality Forecasting

Kien Le Trung, Tung Kieu, Dinh Duc Nha Nguyen, Cuong Do, Bin Yang, Phi Long NguyenNeurIPS 2026

TL;DR

Predicting air quality days in advance is notoriously hard because winds shift, emissions fluctuate, and sunlight literally cooks raw gases into new, toxic "secondary" pollutants. Pure deep learning models eventually drift into physically impossible predictions, while existing physics-AI hybrids only glue physics and neural outputs together at the very end. AeroChem solves this by locking a physics simulator and a deep sequence model into a continuous, closed-loop conversation—correcting the system's internal physical state at every step to keep 9-day forecasts grounded in reality and responsive to sudden pollution spikes.

What Problem Does This Paper Address?

Forecasting air pollution isn't just about tracking where the wind blows smoke. The atmosphere is a giant, open-air chemical reactor. Primary emissions (like nitrogen oxides and volatile organic compounds from traffic and factories) bake in solar radiation and humidity to form nonlinear secondary pollutants like ozone ($\text{O}_3$) and fine particulate matter ($\text{PM}_{2.5}$).

Figure 1: Impacts on Air Quality.

Historically, we’ve tackled this in two ways:

  1. Traditional Chemical Transport Models: Differential equations built from physical first principles. They are interpretable, but computationally heavy and trip over simplified reaction rules and unknown boundary conditions.
  2. Pure Data-Driven Deep Learning (Transformers, GNNs, Mamba): Great at short-term pattern matching, terrible at long-horizon rollouts. Errors snowball step-by-step, predictions drift, and abrupt pollution spikes get smoothed into oblivion.

Recent Physics-Informed Machine Learning (PIML) tries to marry the two, but usually in an open-loop fashion: run a physics branch, run a neural branch, and average their answers at the output. Because the internal, evolving physical state is never corrected along the way, errors from unmodeled emissions or imperfect equations silently accumulate inside the simulator.

Methods

AeroChem reframes long-term forecasting as closed-loop latent-state inference—inspired by data assimilation (like Kalman filtering in weather models), except we obviously don't have real sensor readings from the future. Instead, AeroChem builds a two-branch co-correction loop across a spatial sensor graph:

Figure 2: AeroChem architecture. A S-Mamba-based virtual measurement branch generates adaptive virtual observations, while a UDE-based process branch models transport and meteorology-gated neural reactions as a structured physical prior. Neural Kalman Fusion couples the two branches through a learnable correction term, producing a posterior state that is recursively fed back into the UDE. This closed-loop neural state correction allows virtual measurements and physics-informed dynamics to correct each other, mitigating long-horizon drift.
  • The Process Branch (Physics Prior): Formulated as a continuous-time stochastic Universal Differential Equation (UDE), this acts as a differentiable simulator. It explicitly separates transport—background dispersion (isotropic graph Laplacian diffusion) and wind-driven movement (anisotropic advection)—from chemistry. What’s new here is the Meteorology-Gated Neural Reaction module: self-attention learns how pollutants and emissions interact, while a sigmoid gate driven by weather (like sunlight and temperature) turns reaction kinetics up or down.
  • The Virtual Measurement Branch (Data-Driven Sensor): Built on S-Mamba (a selective state space model), it digests long-range historical context and the previous step's corrected state to hallucinate a trustworthy "virtual observation" alongside an uncertainty estimate that grows over the forecast horizon.
  • Neural Kalman Fusion (The Closed Loop): At every forecast step, this module fuses the UDE's physical prior with S-Mamba's virtual observation. Crucially, because open-air environments have non-Gaussian quirks (like sudden boundary leakage or unrecorded factory plumes), the authors add a learnable neural correction term to standard diagonal Kalman math. The resulting posterior state is fed right back into the UDE for the next step.

Datasets

AeroChem is evaluated on chronological splits across two hourly real-world datasets integrating pollutant concentrations, meteorology, and emission inventories:

  • KnowAir: A public benchmark covering 355 monitoring stations (2016–2023).
  • HanoiAir (Newly Introduced): A regional dataset built and released by the authors covering northern Vietnam across 27 stations (2018–2025), featuring downscaled emission inventories alongside weather and pollutant data. Because it has far fewer stations and noisier regional dynamics than KnowAir, it serves as a tough stress test for sparse sensor networks.

Key Insights and Ideas

  • Fix the trajectory, not just the destination: In ablation studies, stripping away the closed-loop Kalman feedback (w/o Kalman) caused the single worst performance collapse across the board, and simple output-level averaging (Late Fusion) fared almost as poorly. Correcting the latent state before the next simulation step prevents physical drift from compounding.
  • Chemistry needs a weather switch: Removing the meteorology-gated reaction module hurt accuracy more than removing diffusion or wind advection. Transport alone can't explain sudden smog; the model needs to know when heat and sunlight switch chemical production on.
  • Standard Gaussian assumptions break in the wild: Dropping the learnable neural correction inside the Kalman update noticeably degraded results, confirming that textbook Gaussian filtering struggles with open-system surprises like unrecorded emissions.
  • Co-correction forgives sloppy math: Usually, increasing an ODE solver's step size ($dt$) ruins accuracy via discretization errors. AeroChem stayed remarkably stable up to $dt = 1.0$, because Neural Kalman Fusion actively nudges straying trajectories back on track.

Key Results

Tested across 3-day (72h), 6-day (144h), and 9-day (216h) horizons, plus Sudden Change events ($\text{PM}_{2.5} > 75\,\mu\text{g/m}^3$ jumping by $> \pm 20\,\mu\text{g/m}^3$ within 3 hours), AeroChem shines brightest when horizons stretch out or conditions turn volatile:

  • Long-Horizon Stability (9 Days): AeroChem achieved the best 9-day $\text{PM}_{2.5}$ MAE and RMSE on both KnowAir (24.08 MAE / 39.34 RMSE) and the sparser HanoiAir dataset (46.80 MAE / 68.34 RMSE), outperforming strong sequence models like TimeMoE, PatchTST, and S-Mamba, as well as physics hybrids like Air-DualODE.
  • Catching Sudden Spikes: Where pure sequence models over-smooth abrupt shifts, AeroChem led Sudden Change MAE on KnowAir (34.50 vs. TimeMoE’s 36.54 and Air-DualODE’s 39.24) and HanoiAir (68.80 vs. AirPhyNet’s 71.50 and S-Mamba’s 75.85).

Limitations and Future Work

While AeroChem tracks the timing of abrupt pollution shifts well, the authors note that recovering extreme peak amplitudes during sudden events remains a challenge. Additionally, the self-attention reaction module learns latent interaction affinities rather than recovering exact chemical stoichiometry, and relies on exogenous weather and emission inputs during rollout. Future work aims to expand the framework into richer multi-species chemical interaction modeling and apply its calibrated uncertainty estimates toward probabilistic environmental risk assessment.

Summary updated

Abstract

Accurate long-term air quality forecasting is challenging due to long-range transport, meteorological variability, and nonlinear chemical reactions underlying secondary pollutant formation. Purely data-driven models often suffer from long-horizon drift and lack physical consistency, while existing physics-informed approaches commonly follow open-loop designs that fuse neural and physical components only at the output level. We propose AeroChem, a closed-loop physics-informed state space framework for chemically reactive air quality forecasting. AeroChem adopts a two-branch co-correction design: a UDE-based process branch provides a structured but imperfect physical prior, while a Mamba-based virtual measurement branch captures long-range temporal context and produces probabilistic virtual observations. Neural Kalman Fusion couples the two branches by correcting the latent physical state at each forecasting step and feeding the posterior state back into the simulator, reducing long-horizon drift. We further introduce HanoiAir, a real-world dataset integrating pollutant concentrations, meteorology, and emission inventories. Experiments on HanoiAir and a public benchmark show that AeroChem improves long-horizon stability and sudden-change forecasting.
BibTeX
@inproceedings{trung2026aerochem,
  author = {Kien Le Trung and Tung Kieu and Dinh Duc Nha Nguyen and Cuong Do and Bin Yang and Phi Long Nguyen},
  title = {{AeroChem: Closed-loop Physics-Informed State Space Modeling for Long-term Chemically-Reactive Air Quality Forecasting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=K8qavlGl1B},
}
Figure