Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2024 Aug 22;19(8):e0307214.
doi: 10.1371/journal.pone.0307214. eCollection 2024.

Real-time AIoT platform for monitoring and prediction of air quality in Southwestern Morocco

Affiliations

Real-time AIoT platform for monitoring and prediction of air quality in Southwestern Morocco

Abdellatif Bekkar et al. PLoS One. .

Abstract

Urbanization and industrialization have led to a significant increase in air pollution, posing a severe environmental and public health threat. Accurate forecasting of air quality is crucial for policymakers to implement effective interventions. This study presents a novel AIoT platform specifically designed for PM2.5 monitoring in Southwestern Morocco. The platform utilizes low-cost sensors to collect air quality data, transmitted via WiFi/3G for analysis and prediction on a central server. We focused on identifying optimal features for PM2.5 prediction using Minimum Redundancy Maximum Relevance (mRMR) and LightGBM Recursive Feature Elimination (LightGBM-RFE) techniques. Furthermore, Bayesian optimization was employed to fine-tune hyperparameters of popular machine learning models for the most accurate PM2.5 concentration forecasts. Model performance was evaluated using Root Mean Square Error (RMSE), Mean Absolute Error (MAE), and the coefficient of determination (R2). Our results demonstrate that the LightGBM model achieved superior performance in PM2.5 prediction, with a significant reduction in RMSE compared to other evaluated models. This study highlights the potential of AIoT platforms coupled with advanced feature selection and hyperparameter optimization for effective air quality monitoring and forecasting.

PubMed Disclaimer

Conflict of interest statement

The authors have declared that no competing interests exist.

Figures

Fig 1
Fig 1. Workflow diagram of the IoT monitoring system.
Fig 2
Fig 2. Schematic diagram of the wireless environmental monitoring device integrating PMS5003, DHT22, and MQ135 sensors with NodeMCU V3 (ESP8266).
Fig 3
Fig 3. Location of the experimental facility in Ait Melloul.
Map data (C) OpenStreetMap contributors, under the Open Database License (ODbL). This map was created using the folium library in Python.
Fig 4
Fig 4. Temporal fluctuations of pollution and meteorological parameters.
The data were observed at station 1 during the initial days of October.
Fig 5
Fig 5. Wind rose of the wind speed and direction in Ait Melloul.
Map data (C) OpenStreetMap contributors, under the Open Database License (ODbL). This map was created using the folium library in Python.
Fig 6
Fig 6. Hourly Concentration of PM2.5 in Ait Melloul.
The figure depicts the hourly concentrations of PM2.5 at two monitoring sites: S_RH (blue) and S_ZI (red).
Fig 7
Fig 7. Average hourly concentration of PM2.5 at two monitoring stations in Ait Melloul.
Fig 8
Fig 8. Correlation between PM2.5 levels and environmental parameters at two monitoring sites.
Fig 9
Fig 9. Boxplot of hourly mean air pollution levels in S1 and S2.
Fig 10
Fig 10. Comparison of imputed data: Actual vs. Imputed dataset in S1 and S2.
Fig 11
Fig 11. Observed and predicted PM2.5 concentrations.
Fig 12
Fig 12. Fit curve of PM2.5 real value and predicted value using the LightGBM model.
Fig 13
Fig 13. Feature ranking using the SHAP values for the LightGBM model.
Fig 14
Fig 14. Feature importance plot derived from the LightGBM model.

Similar articles

Cited by

References

    1. United Nations. (2018). World Urbanization Prospects 2018 [Report]. Retrieved June 22, 2023, from https://www.un.org/en/desa/2018-revision-world-urbanization-prospects.
    1. World Economic Forum. (2015). Global Risks 2015 [Report]. Retrieved June 22, 2023, from https://www.weforum.org/reports/global-risks-2015.
    1. World Health Organization. (2018). 9 out of 10 people worldwide breathe polluted air, but more countries are taking action [Report]. Retrieved June 22, 2023, from https://www.who.int/news/item/02-05-2018-9-out-of-10-people-worldwide-br....
    1. Khafaie M. A., Yajnik C. S., Salvi S. S., & Ojha A. (2016). Critical review of air pollution health effects with special concern on respiratory health. Journal of air pollution and health, 1(2), 123–136.
    1. Lelieveld J., Evans J., Fnais M., et al.. “The contribution of outdoor air pollution sources to premature mortality on a global scale”. Nature, vol. 525, pp. 367–371, 2015. doi: 10.1038/nature15371 - DOI - PubMed