Air quality prediction via hybrid BiGRU-MLP using binary ant colony optimization and firefly algorithm for hyperparameter tuning

Air quality prediction is an important environmental task that supports pollution monitoring, public health protection, and sustainable urban decision-making. This study proposes a hybrid BiGRU-MLP prediction framework enhanced using Binary Ant Colony Optimization (BACO) for feature selection and the Firefly Algorithm (FA) for hyperparameter tuning. The proposed model was evaluated using the public Air Quality dataset from Kaggle, which contains 9,357 records and multiple pollutant and meteorological attributes, including CO(GT), NOx(GT), NO2(GT), temperature, relative humidity, and sensor-based air quality indicators. The dataset was divided into 70% training, 20% validation, and 10% testing subsets to ensure reliable model development and unbiased performance evaluation. Several baseline models were implemented for comparison, including BiGRU, MLP, Neural Network (NN), LSTM, and BiLSTM. The experimental results demonstrate that the proposed BiGRU-MLP model achieved the best predictive performance, obtaining an MSE of 0.0001, RMSE of 0.0101, MAE of 0.0081, MedAE of 0.0070, MAPE of 0.0008, and R² of 99.99%. In comparison, the standalone BiGRU achieved an R² of 96.87%, while MLP, NN, LSTM, and BiLSTM achieved R² values of 95.17%, 92.71%, 90.88%, and 89.29%, respectively. These results confirm that combining BiGRU's temporal learning capability with MLP's nonlinear feature representation significantly improves prediction accuracy. The integration of BACO and FA further enhances the model by selecting informative features and optimizing model parameters. Therefore, the proposed framework provides an accurate and efficient solution for air quality prediction and can support intelligent environmental monitoring systems.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-06-24
DOI
https://doi.org/10.1038/s41598-026-57938-9
Primary Topic
Air Quality Monitoring and Forecasting
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Air quality prediction via hybrid BiGRU-MLP using binary ant colony optimization and firefly algorithm for hyperparameter tuning

Ahmed M. Elshewey, Amira A. Mahmoud, Ahmed M. Osman, Yasser Fouad et al.
Scientific Reports
Air Quality Monitoring and Forecasting
article

Air quality prediction via hybrid BiGRU-MLP using binary ant colony optimization and firefly algorithm for hyperparameter tuning

Ahmed M. Elshewey, Amira A. Mahmoud, Ahmed M. Osman, Yasser Fouad, Sarah M. Alhammad, Hazem M. El-Bakry
article en

Abstract

Air quality prediction is an important environmental task that supports pollution monitoring, public health protection, and sustainable urban decision-making. This study proposes a hybrid BiGRU-MLP prediction framework enhanced using Binary Ant Colony Optimization (BACO) for feature selection and the Firefly Algorithm (FA) for hyperparameter tuning. The proposed model was evaluated using the public Air Quality dataset from Kaggle, which contains 9,357 records and multiple pollutant and meteorological attributes, including CO(GT), NOx(GT), NO2(GT), temperature, relative humidity, and sensor-based air quality indicators. The dataset was divided into 70% training, 20% validation, and 10% testing subsets to ensure reliable model development and unbiased performance evaluation. Several baseline models were implemented for comparison, including BiGRU, MLP, Neural Network (NN), LSTM, and BiLSTM. The experimental results demonstrate that the proposed BiGRU-MLP model achieved the best predictive performance, obtaining an MSE of 0.0001, RMSE of 0.0101, MAE of 0.0081, MedAE of 0.0070, MAPE of 0.0008, and R² of 99.99%. In comparison, the standalone BiGRU achieved an R² of 96.87%, while MLP, NN, LSTM, and BiLSTM achieved R² values of 95.17%, 92.71%, 90.88%, and 89.29%, respectively. These results confirm that combining BiGRU's temporal learning capability with MLP's nonlinear feature representation significantly improves prediction accuracy. The integration of BACO and FA further enhances the model by selecting informative features and optimizing model parameters. Therefore, the proposed framework provides an accurate and efficient solution for air quality prediction and can support intelligent environmental monitoring systems.

Scientific ReportsVol. 16(1)
Princess Nourah bint Abdulrahman University (SA), Suez University (EG), Mansoura University (EG), Higher Technological Institute (EG)
Princess Nourah Bint Abdulrahman University
Sustainable cities and communities
Openalex Percentile: Top 11%
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.