Machine learning-enhanced air quality forecasting and trend analysis: A five-year comprehensive assessment of PM2.5 concentrations in Bangkok, Thailand

• Gradient Boosting achieves R 2 =0.935 on independent 2024 validation data. • External validation prevents overfitting in operational PM 2.5 forecasting. • PM 2.5 temporal features account for 88% of model importance in Bangkok. • Winter pollution exceeds WHO guidelines on 98.7% of days in Bangkok. • Forecasting accuracy suitable for 1–7-day public health early warnings. Air pollution forecasting is crucial for protecting public health in rapidly urbanizing Asian megacities; however, comprehensive comparative studies of advanced machine learning approaches are limited in Southeast Asian urban environments. This study developed and systematically compared three state-of-the-art machine learning algorithms for operational PM 2.5 forecasting in Bangkok, Thailand, using comprehensive monitoring data from 2020 to 2024. Daily PM 2.5 concentrations and meteorological variables, including temperature, rainfall, wind speed, atmospheric pressure, and relative humidity, were collected from 12 monitoring stations across Bangkok. Three machine learning approaches were implemented and compared: Random Forest (RF), Gradient Boosting (GB), and Long Short-Term Memory (LSTM) neural networks. Advanced feature engineering incorporated temporal lags, moving averages, and cyclical encoding to capture seasonal and temporal dependencies. The dataset comprised 1,827 daily observations across all variables. PM 2.5 concentrations exhibited pronounced seasonal variations, with a mean of 21.89 ± 8.71 μg/m 3 , ranging from winter highs of 29.78 ± 7.88 μg/m 3 to rainy-season lows of 14.58 ± 3.16 μg/m 3 . Strong positive correlations were observed between PM 2.5 and atmospheric pressure (r = 0.473), while negative correlations were found with rainfall (r = -0.260) and relative humidity (r = -0.237). Gradient Boosting demonstrated superior predictive performance, with an RMSE of 2.17 μg/m 3 and an R 2 of 0.935 on an independent external validation dataset comprising 365 days of 2024 data, withheld entirely from model development, confirming genuine generalization to unseen future data. Random Forest achieved RMSE = 3.34 μg/m 3 and R² = 0.845 on the same external validation set. To address overfitting identified in preliminary analyses (training R 2 = 0.964), hyperparameter regularization was substantially strengthened, yielding R 2 degradation of only 3.9% (Gradient Boosting) and 5.6% (Random Forest) from training to external validation. Feature importance analysis revealed that PM 2.5 temporal features dominated the predictions, with the 3-day moving average achieving the highest importance in Random Forest (42.17%) and Gradient Boosting (60.41%). Short-term forecasting performance (1-7 days) met operational requirements for early warning systems, but performance degraded significantly beyond 14 days. The validated Gradient Boosting framework provides immediate applicability for environmental agencies across Southeast Asian urban centers, supporting evidence-based air quality management and public health protection in rapidly developing megacities.

Authors

Institutions

Publication Details

Journal
Environmental Challenges
Published
2026-02-25
DOI
https://doi.org/10.1016/j.envc.2026.101442
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

Machine learning-enhanced air quality forecasting and trend analysis: A five-year comprehensive assessment of PM2.5 concentrations in Bangkok, Thailand

Jeevan Bhatta, Shiva Raj Acharya, Kwang Mo Yang
Environmental Challenges
Air Quality Monitoring and Forecasting
article

Machine learning-enhanced air quality forecasting and trend analysis: A five-year comprehensive assessment of PM2.5 concentrations in Bangkok, Thailand

Jeevan Bhatta, Shiva Raj Acharya, Kwang Mo Yang
article en

Abstract

• Gradient Boosting achieves R 2 =0.935 on independent 2024 validation data. • External validation prevents overfitting in operational PM 2.5 forecasting. • PM 2.5 temporal features account for 88% of model importance in Bangkok. • Winter pollution exceeds WHO guidelines on 98.7% of days in Bangkok. • Forecasting accuracy suitable for 1–7-day public health early warnings. Air pollution forecasting is crucial for protecting public health in rapidly urbanizing Asian megacities; however, comprehensive comparative studies of advanced machine learning approaches are limited in Southeast Asian urban environments. This study developed and systematically compared three state-of-the-art machine learning algorithms for operational PM 2.5 forecasting in Bangkok, Thailand, using comprehensive monitoring data from 2020 to 2024. Daily PM 2.5 concentrations and meteorological variables, including temperature, rainfall, wind speed, atmospheric pressure, and relative humidity, were collected from 12 monitoring stations across Bangkok. Three machine learning approaches were implemented and compared: Random Forest (RF), Gradient Boosting (GB), and Long Short-Term Memory (LSTM) neural networks. Advanced feature engineering incorporated temporal lags, moving averages, and cyclical encoding to capture seasonal and temporal dependencies. The dataset comprised 1,827 daily observations across all variables. PM 2.5 concentrations exhibited pronounced seasonal variations, with a mean of 21.89 ± 8.71 μg/m 3 , ranging from winter highs of 29.78 ± 7.88 μg/m 3 to rainy-season lows of 14.58 ± 3.16 μg/m 3 . Strong positive correlations were observed between PM 2.5 and atmospheric pressure (r = 0.473), while negative correlations were found with rainfall (r = -0.260) and relative humidity (r = -0.237). Gradient Boosting demonstrated superior predictive performance, with an RMSE of 2.17 μg/m 3 and an R 2 of 0.935 on an independent external validation dataset comprising 365 days of 2024 data, withheld entirely from model development, confirming genuine generalization to unseen future data. Random Forest achieved RMSE = 3.34 μg/m 3 and R² = 0.845 on the same external validation set. To address overfitting identified in preliminary analyses (training R 2 = 0.964), hyperparameter regularization was substantially strengthened, yielding R 2 degradation of only 3.9% (Gradient Boosting) and 5.6% (Random Forest) from training to external validation. Feature importance analysis revealed that PM 2.5 temporal features dominated the predictions, with the 3-day moving average achieving the highest importance in Random Forest (42.17%) and Gradient Boosting (60.41%). Short-term forecasting performance (1-7 days) met operational requirements for early warning systems, but performance degraded significantly beyond 14 days. The validated Gradient Boosting framework provides immediate applicability for environmental agencies across Southeast Asian urban centers, supporting evidence-based air quality management and public health protection in rapidly developing megacities.

Environmental ChallengesVol. 22
Yonsei University (KR), Mahidol University (TH)
Openalex Percentile: Top 52%
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.