Abstract
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 PM2.5 forecasting in Bangkok, Thailand, using comprehensive monitoring data from 2020 to 2024. Daily PM2.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. PM2.5 concentrations exhibited pronounced seasonal variations, with a mean of 21.89 ± 8.71 μg/m3, ranging from winter highs of 29.78 ± 7.88 μg/m3 to rainy-season lows of 14.58 ± 3.16 μg/m3. Strong positive correlations were observed between PM2.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/m3 and an R2 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/m3 and R² = 0.845 on the same external validation set. To address overfitting identified in preliminary analyses (training R2 = 0.964), hyperparameter regularization was substantially strengthened, yielding R2 degradation of only 3.9% (Gradient Boosting) and 5.6% (Random Forest) from training to external validation. Feature importance analysis revealed that PM2.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.
| Original language | English |
|---|---|
| Article number | 101442 |
| Pages (from-to) | 1-13 |
| Number of pages | 13 |
| Journal | Environmental Challenges |
| Volume | 22 |
| Early online date | 25 Feb 2026 |
| DOIs | |
| Publication status | Published - Mar 2026 |
Bibliographical note
Copyright the Author(s) 2026. Version archived for private and non-commercial use with the permission of the author/s and according to publisher conditions. For further rights please contact the publisher.Keywords
- Air pollution
- PM2.5
- Machine Learning
- Gradient boosting
- Bangkok
- Environmental forecasting
- Tropical megacities
- Tropical megacity
- Machine learning
- PM
Fingerprint
Dive into the research topics of 'Machine learning-enhanced air quality forecasting and trend analysis: a five-year comprehensive assessment of PM2.5 concentrations in Bangkok, Thailand'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver