Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Commun. Netw.

Sec. IoT and Sensor Networks

Volume 6 - 2025 | doi: 10.3389/frcmn.2025.1666487

F-GGRU: A Sensor-Driven Deep Learning Framework for Smart City Weather-Aware Traffic Congestion Prediction

Provisionally accepted
  • 1Federal Urdu University of Arts Science and Technology - Islamabad Campus, Islamabad, Pakistan
  • 2Islamic University of Madinah, Medina, Saudi Arabia
  • 3PMAS-Arid Agriculture University Rawalpindi, Rawalpindi, Pakistan

The final, formatted version of the article will be published soon.

The deployment of various sensors including inductive loops, radars, GPS devices, cameras and floating car data (FCD) in intelligent transportation systems generates a stream of heterogeneous data, further complicated by exogenous factors like weather conditions and temporal patterns (e.g., peak hours, weekends). For urban traffic development planning, the accurate prediction of congestion under the influence of these exogenous factors remains a major challenge. The proliferation of these diverse data sources creates a complex prediction environment, demanding advanced analytical frameworks. To address this issue, we propose a novel Fusion-based Generative Adversarial Network with Gated Recurrent Unit (F-GGRU) framework. The F-GGRU develops a generic data pipeline for integrating and preprocessing multi-source data, featuring advanced techniques for outlier removal, fuzzy logic-based automatic labeling, and Generative Adversarial Networks (GANs) for class balancing. Extensive experimentation was conducted on a novel real-time dataset from the Safe City Islamabad Pakistan (SCIP) project, integrating heterogeneous and exogenous features. The results demonstrate that our proposed F-GGRU framework consistently achieves superior performance, with 98.48% accuracy, 0.97 precision, 1.00 recall, 0.985 F1-score, and a 0.9914 ROC-AUC score. This significantly outperforms a suite of benchmark models—including Logistic Regression, Random Forest, XGBoost, and deep learning baselines like GRU and ANN, which achieved accuracies between 77–83% with notably lower precision and recall for the congested class. Crucially, hyperparameter tuning and rigorous validation on a second independent dataset (CityPulse, Aarhus) confirmed the model's robustness and generalizability, achieving even higher performance (99.42% accuracy, 0.9976 AUC) while maintaining perfect recall. These findings affirm that the F-GGRU framework is not only highly accurate but also a robust and generalizable solution for real-world traffic congestion prediction in smart cities

Keywords: Internet of Things, Generative Adversarial Networks, GRU, Smart Cities, weather, Conditions, Intelligent transportation system, Sensors

Received: 15 Jul 2025; Accepted: 07 Oct 2025.

Copyright: © 2025 Ali, Nadeem, Zafar and Shiraz. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: Adnan Nadeem, adnan.nadeem@iu.edu.sa

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.