Scalable AI-driven air quality forecasting and classification for public health applications

Abstract Background Air pollution remains one of the most pressing public health and environmental issues, particularly in developing countries like Afghanistan, where reliable air quality monitoring infrastructure is lacking. Traditional systems often rely on static data and limited sensors, which restrict their ability to generate timely, localized, and actionable insights. There is a growing need for dynamic, data-driven solutions to help policymakers and communities respond more effectively to pollution events. Objective This study aims to build a real-time, scalable air quality prediction and classification system that not only enhances forecasting accuracy but also empowers public health interventions and environmental governance. The research seeks to bridge the gap between AI advancements and their application in under-resourced regions by developing interpretable, deployable tools for real-world use. Methods We designed a hybrid AI framework that combines ensemble machine learning models such as Random Forest and XGBoost with deep learning architectures including Long Short-Term Memory (LSTM), Convolutional Neural Networks (CNNs), and the Transformer-based Time Series Mixer (TSMixer). The models were trained on historical air pollution data from Afghanistan’s National Environmental Protection Agency (NEPA) alongside real-time meteorological data from the OpenWeather API. To improve prediction accuracy across regions, we used geospatial clustering techniques to group cities with similar pollution patterns. Additionally, SHAP and LIME were employed to ensure transparency and explainability of model predictions. A Django-based API and user-friendly dashboards were developed for real-time deployment and visualization. Results The TSMixer model stood out in regression tasks, achieving a high R² score of 0.9861 and a low mean squared error (MSE) of 0.0278. In classification tasks, the Random Forest model performed best with an accuracy of 99.96%, slightly outperforming XGBoost at 99.48%. We also assessed the computational efficiency of the models: ensemble ML models like Random Forest had much lower inference times (around 0.0289 s), making them ideal for real-time use, while DL models like CNN and LSTM required higher computational resources (up to 1.25 s per inference). Key pollutant indicators driving predictions included NO 2 and PM 10 , aligning with known environmental patterns identified by SHAP and LIME. Conclusion This study presents a scalable and real-time AI-based framework for air quality prediction tailored to low-resource settings like Afghanistan. By combining models such as TSMixer with geospatial clustering and deploying them through accessible tools, the system offers a practical solution for environmental monitoring. In addition to technical contributions, the framework supports policy-making and public engagement by promoting explainable, localized forecasts.

Authors

Institutions

Publication Details

Journal
Discover Atmosphere
Published
2025-08-14
DOI
https://doi.org/10.1007/s44292-025-00052-8
Primary Topic
Air Quality Monitoring and Forecasting
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Scalable AI-driven air quality forecasting and classification for public health applications

Mohammad Aryaee Panah, Eda Nur Saruhan, Hossein Farahmand, Mohammad S. Jalali et al.
Discover Atmosphere
Air Quality Monitoring and Forecasting
article

Scalable AI-driven air quality forecasting and classification for public health applications

Mohammad Aryaee Panah, Eda Nur Saruhan, Hossein Farahmand, Mohammad S. Jalali, Bahir Saidi
article en

Abstract

Abstract Background Air pollution remains one of the most pressing public health and environmental issues, particularly in developing countries like Afghanistan, where reliable air quality monitoring infrastructure is lacking. Traditional systems often rely on static data and limited sensors, which restrict their ability to generate timely, localized, and actionable insights. There is a growing need for dynamic, data-driven solutions to help policymakers and communities respond more effectively to pollution events. Objective This study aims to build a real-time, scalable air quality prediction and classification system that not only enhances forecasting accuracy but also empowers public health interventions and environmental governance. The research seeks to bridge the gap between AI advancements and their application in under-resourced regions by developing interpretable, deployable tools for real-world use. Methods We designed a hybrid AI framework that combines ensemble machine learning models such as Random Forest and XGBoost with deep learning architectures including Long Short-Term Memory (LSTM), Convolutional Neural Networks (CNNs), and the Transformer-based Time Series Mixer (TSMixer). The models were trained on historical air pollution data from Afghanistan’s National Environmental Protection Agency (NEPA) alongside real-time meteorological data from the OpenWeather API. To improve prediction accuracy across regions, we used geospatial clustering techniques to group cities with similar pollution patterns. Additionally, SHAP and LIME were employed to ensure transparency and explainability of model predictions. A Django-based API and user-friendly dashboards were developed for real-time deployment and visualization. Results The TSMixer model stood out in regression tasks, achieving a high R² score of 0.9861 and a low mean squared error (MSE) of 0.0278. In classification tasks, the Random Forest model performed best with an accuracy of 99.96%, slightly outperforming XGBoost at 99.48%. We also assessed the computational efficiency of the models: ensemble ML models like Random Forest had much lower inference times (around 0.0289 s), making them ideal for real-time use, while DL models like CNN and LSTM required higher computational resources (up to 1.25 s per inference). Key pollutant indicators driving predictions included NO 2 and PM 10 , aligning with known environmental patterns identified by SHAP and LIME. Conclusion This study presents a scalable and real-time AI-based framework for air quality prediction tailored to low-resource settings like Afghanistan. By combining models such as TSMixer with geospatial clustering and deploying them through accessible tools, the system offers a practical solution for environmental monitoring. In addition to technical contributions, the framework supports policy-making and public engagement by promoting explainable, localized forecasts.

Discover AtmosphereVol. 3(1)
Koç University (TR), Kardan University (AF), Polytechnical University of Kabul (AF), Parwan University (AF), Government College University, Lahore (PK)
Openalex Percentile: Top 77%
Air Quality Monitoring and Forecasting
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.