Contribution to Advanced Air Quality Monitoring in Smart Cities Based on the Design of a Frugal Device Combining Mobile IoT and Machine Learning
Fixed air-quality monitoring networks are costly to deploy and maintain, which limits their coverage in developing cities. Low-cost mobile sensors on public transport fleets are a promising alternative, but face four obstacles: the lack of real-time processing, site-specific predictive models, the neglect of atmospheric dispersion, and the absence of an integrated end-to-end architecture. This simulation-based study develops and evaluates a microscopic SUMO/TraCI simulation of the urban network of Mohammedia (Morocco), in which four bus lines act as virtual IoT sensors. No physical sensors or gas measurements were used: CO2, NOx and PMx emission rates from the surrounding vehicles within a 50 m radius are generated by SUMO/HBEFA and combined with a stochastic background scenario. The 1 Hz data streams are routed through an open-source pipeline (MQTT, InfluxDB, Grafana), the performance of which was quantified on a single machine: all 102,848 published messages were stored in InfluxDB, with a median end-to-end latency of 14.8 ms (95th percentile 63.2 ms, maximum 610 ms) up to the confirmed database write. Exploratory analysis reveals strongly skewed emission distributions, with 64% of emissions concentrated on 18% of the road network. A Random Forest model achieved mean R2 values of 92.23% for CO2, 82.74% for NOx and 81.51% for PMx under five-fold cross-validation on 102,848 simulated records, and outperformed XGBoost in a separate 80/20 random hold-out comparison. These results indicate that a limited set of spatiotemporal and kinematic variables can reproduce the simulated emission signal. However, because the evaluation relies on a single simulated day, random data splits and simulated emission rates rather than measured concentrations, validation with independent simulation scenarios and real-world measurements is required before any broader temporal or geographical generalization.
Authors
- Hasna Nhaila (ORCID: https://orcid.org/0000-0002-4807-7483)
- Mohamed El Khaïli (ORCID: https://orcid.org/0000-0001-8730-2981)
- Adil El Arfaoui (ORCID: https://orcid.org/0009-0003-2759-1859)
- Bothayna Zaki
Institutions
- École Normale Supérieure de l'Enseignement Technique de Mohammedia (MA)
Publication Details
- Journal
- Applied System Innovation
- Published
- 2026-11-30
- DOI
- https://doi.org/10.3390/asi9120260
- Primary Topic
- Air Quality Monitoring and Forecasting
- Type
- article
- Field-Weighted Citation Impact
- 0.00