AirCast: Improving Air Pollution Forecasting Through Multi-Variable Data Alignment

Vishal Nedungadi, Muhammad Akhtar Munir, Marc Rußwurm, Ron Sarafian, Ioannis N. Athanasiadis, Yinon Rudich, Fahad Shahbaz Khan, Salman H. Khan · DOI

Introduction

Forecasting particulate matter (PM1, PM2.5, PM10) is a critical challenge for public health, yet it remains notoriously difficult. Traditional physics-based models, such as WRF-Chem, are computationally intensive and often struggle with the highly non-linear dynamics of the atmosphere. While data-driven machine learning (ML) models offer speed and adaptability, they frequently rely on limited variable sets, overlooking the intricate interplay between meteorology and atmospheric chemistry.

A significant hurdle in this domain is the distribution of pollution data. Extreme pollution events—those posing the highest health risks—are statistically rare. This results in a heavy-tailed distribution that biases standard ML models toward predicting average conditions, causing them to fail during critical pollution spikes.

PM2.5 concentration distribution showing a heavy-tailed nature, where extreme events are rare.

Methodology: The AirCast Architecture

To address these challenges, we introduce AirCast, a model built on a Vision Transformer (ViT) backbone. AirCast is designed to jointly learn from aligned weather and air quality datasets, specifically targeting the Middle East and North Africa (MENA) region.

The AirCast architecture featuring multi-variable tokenization, a ViT encoder, and a dual-prediction head for weather and air quality.

The architecture incorporates several key innovations:

  • Multi-Task Learning: AirCast employs a dual-decoder setup. One head predicts weather variables, while the other focuses on air quality. This decoupling prevents "negative transfer" between distinct tasks while allowing a shared encoder to capture their underlying interactions.
  • Variable Tokenization & Aggregation: To manage the high-dimensional input space of multiple weather and chemical variables, each variable is tokenized separately. These tokens are then aggregated using cross-attention, reducing sequence length and enhancing computational efficiency.
  • Randomized Lead Time: Training involves varying the forecast horizon (6, 12, and 24 hours) randomly. This serves as a regularization technique, improving the robustness of the final 24-hour forecast.

Tackling Data Imbalance with fMAE

Standard loss functions like Mean Absolute Error (MAE) or Mean Squared Error (MSE) optimize for the "average" day, often ignoring the tails of the distribution. To combat this, AirCast utilizes a Frequency-Weighted Mean Absolute Error (fMAE). By adapting class-balanced loss concepts for regression, fMAE heavily penalizes errors on rare, extreme pollution values. This forces the model to prioritize accurate predictions for severe events over simply minimizing average error.

Data Alignment

The model was trained on a custom dataset spanning 2003–2018, integrating weather data from the ERA5 archive and air quality data from the CAMS EAC4 dataset. The CAMS data was temporally interpolated to hourly and spatially regridded to match ERA5's 5.625° resolution, creating a cohesive multi-variable input for the MENA region.

Key Results and Insights

AirCast significantly outperforms both persistence baselines and physics-based global forecasts.

  • Performance Gains: The best AirCast configuration achieved a PM2.5 RMSE of 8.82 µg/m³, compared to 13.12 µg/m³ for the Persistence Baseline and 22.16 µg/m³ for the CAMS global forecast.
  • Impact of fMAE: Implementing fMAE improved RMSE by 4.18% for PM2.5 and 3.65% for PM10, validating the importance of frequency weighting for heavy-tailed data.
  • Variable Selection: Interestingly, restricting inputs to near-surface variables yielded better results than using all multi-level variables, suggesting that high-altitude data can introduce noise for surface-level PM forecasting.
  • Extreme Event Capture: Qualitatively, AirCast successfully predicted the spatial distribution of major dust storms in Saudi Arabia and Kuwait in 2017—events that standard CAMS forecasts largely missed.

Conclusion and Future Directions

AirCast demonstrates that multi-task ViT architectures, combined with frequency-weighted loss functions, can dramatically improve air quality forecasting. While currently operating at a 5.625° resolution, future work will focus on increasing spatial resolution for city-level forecasts and extending the lead time beyond 24 hours. Additionally, further research is needed to improve geographic generalization for global deployment.

Summary updated

BibTeX
@inproceedings{nedungadi2025aircast,
  author = {Vishal Nedungadi and Muhammad Akhtar Munir and Marc Rußwurm and Ron Sarafian and Ioannis N. Athanasiadis and Yinon Rudich and Fahad Shahbaz Khan and Salman H. Khan},
  title = {{AirCast: Improving Air Pollution Forecasting Through Multi-Variable Data Alignment}},
  booktitle = {TerraBytes @ ICML},
  year = {2025},
  url = {https://openreview.net/forum?id=bUJt8lifOT},
}
Figure