Sustainable Traffic Congestion Forecasting Through Lightweight Explainable AI and TinyML Edge Deployment: A Casablanca Case Study
Sustainability · 01.05.2026 · 18 (9) · 4439
DOI: 10.3390/su18094439 ↗Kurz gefasst
Fachartikel in der Zeitschrift Sustainability, online erschienen am 01.05.2026. Verfasst von Mehdi Attioui und 1 weiteren Autor:innen. Die Arbeit wurde bisher 2-mal zitiert (Crossref) und nennt 25 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).
Abstract (Originalsprache)
Traffic congestion in urban areas poses substantial challenges to transportation management, urban planning, and environmental sustainability. This study introduces an explainable artificial intelligence (XAI) framework for predicting traffic congestion in Casablanca, Morocco, by integrating gradient boosting models with lightweight XAI techniques that are suitable for edge deployment. Employing SUMO-simulated traffic data comprising 30,000 data points across 30 scenarios, we implemented a GradientBoostingRegressor (scikit-learn) enhanced with native feature importance analysis, permutation importance, and partial dependence plots, achieving R2=0.9939, MAE = 0.015, and RMSE = 0.019. The XAI analysis reveals that lag features (32.0%), temporal patterns (35.0%), and infrastructure features (15.0%) are the primary contributors to congestion prediction, with culturally relevant factors, such as Friday prayers, accounting for 8.7% of the total feature importance. The model was deployed through a knowledge-distillation TinyML pipeline, achieving 31× compression (2.4 MB → 76 KB) on ESP32 microcontrollers with 2.1 ms inference latency and a 667× reduction in per-inference energy consumption compared to cloud-based deployment. This lightweight XAI approach directly addresses the gap between interpretability requirements and edge deployment constraints, facilitating sustainable intelligent transportation systems in developing countries with limited infrastructure and energy resources. The proposed framework is transferable to other rapidly urbanizing cities in the Global South, offering a replicable template for data-driven interpretable traffic management that can directly inform infrastructure investment prioritization, adaptive signal-control policy design, and culturally aware urban mobility planning strategies.
Zitieren
APA
Attioui, M., & Lahby, M. (2026). Sustainable Traffic Congestion Forecasting Through Lightweight Explainable AI and TinyML Edge Deployment: A Casablanca Case Study. Sustainability, 18(9), 4439. https://doi.org/10.3390/su18094439
Vancouver
Attioui M, Lahby M. Sustainable Traffic Congestion Forecasting Through Lightweight Explainable AI and TinyML Edge Deployment: A Casablanca Case Study. Sustainability. 2026;18(9):4439. doi:10.3390/su18094439
BibTeX
@article{Attioui2026,
author = {Attioui, Mehdi and Lahby, Mohamed},
title = {Sustainable Traffic Congestion Forecasting Through Lightweight Explainable AI and TinyML Edge Deployment: A Casablanca Case Study},
journal = {Sustainability},
year = {2026},
volume = {18},
number = {9},
pages = {4439},
doi = {10.3390/su18094439}
}
EUVIMED