<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article article-type="research-article" dtd-version="2.3" xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Commun. Netw.</journal-id>
<journal-title>Frontiers in Communications and Networks</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Commun. Netw.</abbrev-journal-title>
<issn pub-type="epub">2673-530X</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">1666487</article-id>
<article-id pub-id-type="doi">10.3389/frcmn.2025.1666487</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Communications and Networks</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>F-GGRU: a sensor-driven deep learning framework for smart city weather-aware traffic congestion prediction</article-title>
<alt-title alt-title-type="left-running-head">Ali et al.</alt-title>
<alt-title alt-title-type="right-running-head">
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3389/frcmn.2025.1666487">10.3389/frcmn.2025.1666487</ext-link>
</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Ali</surname>
<given-names>Akbar</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/3136213/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/data-curation/"/>
<role content-type="https://credit.niso.org/contributor-roles/formal-analysis/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/software/"/>
<role content-type="https://credit.niso.org/contributor-roles/validation/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-original-draft/"/>
<role content-type="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/"/>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Nadeem</surname>
<given-names>Adnan</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/1253679/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/funding-acquisition/"/>
<role content-type="https://credit.niso.org/contributor-roles/validation/"/>
<role content-type="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/"/>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Zafar</surname>
<given-names>Noureen</given-names>
</name>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/2068896/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/data-curation/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/software/"/>
<role content-type="https://credit.niso.org/contributor-roles/visualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/"/>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Shiraz</surname>
<given-names>Muhammad</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/1857846/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/project-administration/"/>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/supervision/"/>
<role content-type="https://credit.niso.org/contributor-roles/validation/"/>
<role content-type="https://credit.niso.org/contributor-roles/visualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/"/>
</contrib>
</contrib-group>
<aff id="aff1">
<sup>1</sup>
<institution>Department of Computer Science, Federal Urdu University of Arts, Science and Technology</institution>, <addr-line>Islamabad</addr-line>, <country>Pakistan</country>
</aff>
<aff id="aff2">
<sup>2</sup>
<institution>Faculty of Computer and Information Systems, Islamic University of Madinah</institution>, <addr-line>Medina</addr-line>, <country>Saudi Arabia</country>
</aff>
<aff id="aff3">
<sup>3</sup>
<institution>Department of Computer Science, Pir Mehr Ali Shah Arid Agriculture University</institution>, <addr-line>Rawalpindi</addr-line>, <country>Pakistan</country>
</aff>
<author-notes>
<fn fn-type="edited-by">
<p>
<bold>Edited by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1547460/overview">Moustafa Nasralla</ext-link>, Prince Sultan University, Saudi Arabia</p>
</fn>
<fn fn-type="edited-by">
<p>
<bold>Reviewed by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/2979654/overview">Sohaib Bin Altaf Khattak</ext-link>, Prince Sultan University, Saudi Arabia</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/3190497/overview">Mehre Munir</ext-link>, Prince Sultan University, Saudi Arabia</p>
</fn>
<corresp id="c001">&#x2a;Correspondence: Adnan Nadeem, <email>adnan.nadeem@iu.edu.sa</email>; Akbar Ali, <email>aakbarali18@gmail.com</email>; Noureen Zafar, <email>noureen_zafar@uaar.edu.pk</email>; Muhammad Shiraz, <email>muhammad.shiraz@fuuast.edu.pk</email>
</corresp>
</author-notes>
<pub-date pub-type="epub">
<day>30</day>
<month>10</month>
<year>2025</year>
</pub-date>
<pub-date pub-type="collection">
<year>2025</year>
</pub-date>
<volume>6</volume>
<elocation-id>1666487</elocation-id>
<history>
<date date-type="received">
<day>15</day>
<month>07</month>
<year>2025</year>
</date>
<date date-type="accepted">
<day>07</day>
<month>10</month>
<year>2025</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2025 Ali, Nadeem, Zafar and Shiraz.</copyright-statement>
<copyright-year>2025</copyright-year>
<copyright-holder>Ali, Nadeem, Zafar and Shiraz</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<p>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) and the copyright owner(s) 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.</p>
</license>
</permissions>
<abstract>
<p>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 achieves superior performance, with 98% accuracy, 0.99 precision, 0.98 recall, and a 0.98 F1-score. This significantly outperforms a suite of benchmark models, including Logistic Regression, Random Forest, XGBoost, and deep learning baselines like ANN, which achieved accuracies between 77% and 83% with correspondingly lower precision, recall, and F1-scores. Significantly, hyperparameter tuning and validation on a second independent dataset (CityPulse, Aarhus) confirmed the proposed framework robustness and generalizability, achieving even higher performance 99.42% accuracy and 0.99 AUC. These findings affirm that the F-GGRU framework is a robust and generalizable solution for real world traffic congestion prediction in smart cities.</p>
</abstract>
<kwd-group>
<kwd>internet of things</kwd>
<kwd>generative adversarial networks</kwd>
<kwd>GRU</kwd>
<kwd>smart cities</kwd>
<kwd>weather</kwd>
<kwd>conditions</kwd>
<kwd>intelligent transportation system</kwd>
<kwd>sensors</kwd>
</kwd-group>
<contract-sponsor id="cn001">Islamic University of Madinah<named-content content-type="fundref-id">10.13039/501100020901</named-content>
</contract-sponsor>
<counts>
<page-count count="19"/>
</counts>
<custom-meta-wrap>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>IoT and Sensor Networks</meta-value>
</custom-meta>
</custom-meta-wrap>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="s1">
<title>1 Introduction</title>
<p>Currently, the rapid expansion of sensor technologies, internet connectivity, and high-volume data generation has reshaped the landscape of intelligent systems, especially in the context of Internet of Things (IoT)-driven applications and smart cities. The continuous stream of real-time, heterogeneous data captured from diverse sensor sources has unlocked vast potential for real-world insights and decision-making. However, it also introduces new complexities related to the efficient integration, interpretation, and utilization of such multifaceted information (<xref ref-type="bibr" rid="B21">Ren et al., 2023</xref>). Extracting meaningful patterns from these rich datasets requires innovative approaches capable of merging varied data types and applying advanced learning techniques to uncover actionable intelligence. In this context, leveraging sensor-derived data from urban surveillance infrastructures, such as the smart city, presents a compelling opportunity to explore intelligent traffic solutions in dynamically evolving environments.</p>
<p>The Intelligent Transportation System (ITS) serve as a foundational element in the transformation of urban regions into smart cities by enabling adaptive and data-driven traffic solutions. The growing demand for accurate and timely traffic forecasting necessitates the integration of real-time inputs from diverse sensor modalities, including fixed and mobile surveillance units, environmental monitoring systems, and external contextual sources. Modern ITS frameworks capitalize on IoT to construct interconnected platforms that combine multi-source, multi-sensor, and multi-model data streams. In this context, our research leverages the integrated pipelined dataset obtained from heterogeneous features collected from smart city real time environment, combining traffic surveillance with exogenous features from weather sensing data to enable more precise traffic speed and congestion prediction through our proposed hybrid F-GGRU framework.</p>
<p>Traffic congestion arises from a range of exogenous contributing factors (<xref ref-type="bibr" rid="B20">Rehborn and Koller, 2014</xref>), including weather conditions, peak-hour load (<xref ref-type="bibr" rid="B4">Ali et al., 2021a</xref>), road maintenance, accidents, and adverse weather conditions (<xref ref-type="bibr" rid="B22">Romanowska and Budzy&#x144;ski, 2022a</xref>). Weather condition sensors are instrumental in monitoring atmospheric parameters such as rainfall, wind speed, temperature, humidity and visibility offering important inputs for both real-time and predictive traffic models (<xref ref-type="bibr" rid="B12">Du et al., 2022</xref>) (<xref ref-type="bibr" rid="B31">Vargas et al., 2021</xref>). Within this context, sensors form the technological backbone of the smart city, which goals to establish a smart, responsive and secure urban environment. The Safe City Islamabad, Pakistan (SCIP) network includes 2,758 cameras monitor high-definition surveillance radar-based cameras allowing near-total coverage of the SCIP (<xref ref-type="bibr" rid="B14">Khattak, 2025</xref>). Smart City authorities (<xref ref-type="bibr" rid="B9">Authors Anonymous, 2022</xref>) state that the initiative aims to ensure a digital record is maintained for every vehicle that enters the city. Additional by mobile patrol vehicles and surveillance drones, these sensor networks are linked to a centralized control hub, enabling continuous data collection. These extensive sensor deployments not only enhance urban smart city but also produce rich spatiotemporal datasets helping as a fundamental enabler of intelligent transportation research and congestion prediction.</p>
<p>There are two principal approaches to alleviating traffic congestion on urban road networks. The first involves expanding infrastructure by increasing the number of freeway lanes or constructing new roads. However, this solution demands significant land acquisition and financial investment, which may not be practical or sustainable in densely populated urban areas. Alternatively, a more efficient and scalable strategy is to implement intelligent traffic control mechanisms that optimize the use of existing road infrastructure. These control strategies depend heavily on accurate congestion prediction, empowering authorities to proactively manage traffic flow and mitigate congestion before it increases.</p>
<p>According to the United Nations, it is estimated that by 2050 nearly 68% of the global population will reside in urban regions, reflecting a significant shift toward urbanization (<xref ref-type="bibr" rid="B28">United Nation, 2023</xref>).</p>
<p>Country wise rapid pace of urbanization, coupled with exponential growth in vehicle ownership, has introduced serious challenges to traffic management, road safety, environmental sustainability, and overall urban livability. Pakistan population has grown tremendously, with census data indicating an increase from 132.35 million in 1998 to 241.49 million in 2023. Projections suggest this number will reach approximately 255.22 million by 2025 (<xref ref-type="bibr" rid="B8">Authors Anonymous, 2021</xref>). Alongside population growth, the number of people residing in urban areas has risen from 32.5% in 1998 to 38.82% in 2023, highlighting a marked demographic shift toward cities. This surge in urban population and vehicular density underscores the urgent need for intelligent, sensor-driven traffic solutions to address congestion and ensure sustainable urban mobility.</p>
<p>Furthermore, in the United States 3.3 Billion Gallons of fuel are wasted in 2022 due to the traffic congestion (<xref ref-type="bibr" rid="B29">U.S Department of Energy, 2025</xref>). Exogenous features (Weather conditions, peak hours, week&#xa0;days and weekends) (<xref ref-type="bibr" rid="B4">Ali et al., 2021a</xref>) can significantly influence traffic flow and congestion levels (<xref ref-type="bibr" rid="B23">Romanowska and Budzy&#x144;ski, 2022b</xref>; <xref ref-type="bibr" rid="B2">Agarwal et al., 2005</xref>; <xref ref-type="bibr" rid="B16">Lin et al., 2015</xref>). Rain (<xref ref-type="bibr" rid="B17">Mashros et al., 2014</xref>), fog (<xref ref-type="bibr" rid="B6">Ali et al., 2024</xref>), or snow often reduce visibility and road friction, leading to slower driving speeds and increased travel time. Severe weather may also cause accidents, lane closures, or disruptions in traffic signals, further compounding delays. Even mild weather changes can alter driver behavior, contributing to fluctuations in congestion patterns across urban roads.</p>
<p>In previous research work, for the traffic congestion prediction several Mobile Crowed Sensing (MCS) (<xref ref-type="bibr" rid="B5">Ali et al., 2021b</xref>), ML (<xref ref-type="bibr" rid="B35">YixinLi and Zhang, 2024</xref>; <xref ref-type="bibr" rid="B36">Yu and Xie, 2024</xref>) and DL (<xref ref-type="bibr" rid="B37">Zafar et al., 2022a</xref>; <xref ref-type="bibr" rid="B15">Lartey et al., 2021</xref>) techniques have been presented, including KNN, Support Vector Machines, RF, and deep networks such as GRUs, Convolutional Neural Network (CNN) and Long Short-Term Memory. Whereas these techniques have achieved varying accuracy, some of the techniques deal to adapt to real-world complexities such as temporal variations, missing data and sudden disturbances caused by external factors like weather. Traditional models often treat traffic data in isolation, supervising the impact of exogenous variables and failing to integrate heterogeneous data sources effectively. Furthermore, imbalanced class distributions and the lack of dynamic feature fusion methods limit their generalizability. However, their performance often declines in real-world situations due to issues such as imbalanced class distributions, missing or noisy data, temporal irregularities, and an inability to effectively integrate exogenous factors like weather conditions or peak hours and holidays. The existing techniques tend to deals with traffic data sources separately, lacking robust fusion strategies for heterogeneous and exogenous inputs. Our proposed F-GGRU framework overcomes these limitations through a novel hybrid pipelined combination of techniques: F-GGRU framework integrates fuzzy logic to fuse heterogeneous and exogenous features, use fuzzy logic-automatic labeling for classification, GANs for class balancing to balance the imbalanced class, and enhances temporal learning through a gated recurrent structure. This empowers the F-GGRU framework to capture more nuanced patterns in smart cities dynamic urban environments, contributing improved robustness, and predictive accuracy compared to existing approaches (<xref ref-type="bibr" rid="B5">Ali et al., 2021b</xref>; <xref ref-type="bibr" rid="B35">YixinLi and Zhang, 2024</xref>; <xref ref-type="bibr" rid="B36">Yu and Xie, 2024</xref>; <xref ref-type="bibr" rid="B37">Zafar et al., 2022a</xref>; <xref ref-type="bibr" rid="B3">Al-Qarafi et al., 2022</xref>; <xref ref-type="bibr" rid="B34">Yasir et al., 2022</xref>; <xref ref-type="bibr" rid="B38">Zafar et al., 2022b</xref>; <xref ref-type="bibr" rid="B39">Zhao et al., 2019</xref>; <xref ref-type="bibr" rid="B40">Zhong et al., 2024</xref>).</p>
<sec id="s1-1">
<title>1.1 The following are scientific contributions to intelligent transportation system and smart cities</title>
<p>
<list list-type="simple">
<list-item>
<p>&#x2022; The F-GGRU framework integrates underutilized smart city traffic observation sensor heterogeneous (FCD) data with real-time exogenous (weather conditions information, peak hour, week&#xa0;days and weekend) information transforming passive traffic records into actionable congestion prediction insights improving the predictive power of ITS and supporting real-time traffic management decisions.</p>
</list-item>
<list-item>
<p>&#x2022; Enhanced data handling through applying automatic fuzzy logic for intelligent labeling and to balance class distribution use GANs.</p>
</list-item>
<list-item>
<p>&#x2022; The usage of a Gated Recurrent Unit in F-GGRU framework empowers effective modeling of time-dependent traffic patterns, allowing the F-GGRU framework to learn long-term and short-term dependencies in sequential data while maintaining computational efficiency.</p>
</list-item>
</list>
</p>
<p>After the introduction presented in this <xref ref-type="sec" rid="s1">Section 1</xref>, the literature review description presented in <xref ref-type="sec" rid="s2">Section 2</xref>. The proposed Hybrid F-GGRU framework is presented in <xref ref-type="sec" rid="s3">Section 3</xref>. <xref ref-type="sec" rid="s4">Section 4</xref> presents result analysis and discussion explaining the results. Conclusion and future research direction presented in <xref ref-type="sec" rid="s5">Section 5</xref>.</p>
</sec>
</sec>
<sec id="s2">
<title>2 Literature review</title>
<p>The integration of weather conditions into traffic congestion prediction models has garnered significant attention in recent years. Adverse weather events, such as fog, rain, snow, and humidity, have been empirically shown to influence traffic flow characteristics, including speed, capacity, and headways. For instance (<xref ref-type="bibr" rid="B23">Romanowska and Budzy&#x144;ski, 2022b</xref>) conducted a comprehensive study on a Polish expressway, revealing that average vehicle speeds could decrease by up to 19% and road capacity by 18% under adverse weather conditions, compared to normal conditions.</p>
<p>The study (<xref ref-type="bibr" rid="B5">Ali et al., 2021b</xref>) proposed MCS based dynamic traffic efficiency framework for traffic congestion prediction and avoidance. The real time vehicular traffic data collected through GetApp mobile application. The recommended MCS based dynamic traffic efficiency framework allocate the fasted available route with specific time slot to the commuter to follow and reached to the destination on time, but it does not explore other potential influencing factors in depth, such as weather conditions, which could also significantly impact congestion levels.</p>
<p>In research study (<xref ref-type="bibr" rid="B37">Zafar et al., 2022a</xref>) the author presented LSTM-GRU model that combine heterogeneous data sources collected data from sensors sources, holiday data, tracking company, OSM road, Google, peak hour data and weather data. Weather data from weather APIs and Open Street map for mapping. The authors have provided an exploratory data analysis using GRU, LSTM, CNN and their hybrid integration. The combination of LSTM &#x2b; GRU hybrid gave the finest output with 6.67% MAPE and 4.5% RMSE. As classification the LSTM-GRU model yields 95% accuracy.</p>
<p>This study (<xref ref-type="bibr" rid="B19">Pragalathan and Schramm, 2024</xref>) employs the Neural Prophet (NP) model to advance the prediction of urban traffic dynamics by incorporating exogenous variables such as meteorological conditions and public holidays. By integrating classical time-series analysis with neural network architectures, the NP model is capable of capturing non-linear and seasonally varying patterns in traffic flow. The model&#x2019;s responsiveness to external influences particularly rain and calendric events demonstrates its robustness in urban forecasting contexts. These findings emphasize the necessity of including environmental and temporal factors in traffic prediction models, particularly in metropolitan areas where such variables exert a significant influence on vehicular movement.</p>
<p>In research study (<xref ref-type="bibr" rid="B27">Sun et al., 2021</xref>) the authors developed an online traffic flow prediction framework that integrates a Bi-LSTM framework with CNN. Real time data collected from the IoT sensors situated at intersection of Hongzehu Road and Qingnian Road, in Suqian City, Jiangsu Province, China. The dataset, structured as a time series, is managed by a Bi-LSTM network helping as the generator, while a CNN operates as the discriminator within the GAN model. To evaluate predictive performance, the study applies metrics including MSE, MAE, and binary entropy. According to the reported results, this GAN-based approach demonstrates improved accuracy compared to separate Bi-LSTM and ARIMA models. The study does not touch weather impact on traffic flow.</p>
<p>The study (<xref ref-type="bibr" rid="B25">Solanki et al., 2023</xref>) incorporates weather data alongside traffic and Twitter messages to enhance traffic flow predictions. The deep learning model Bi-directional LSTM Stacked Auto Encoder architecture is used, it aims to improve accuracy in predicting traffic congestion under varying weather conditions, contributing to effective traffic management. Twitter messages data and traffic and weather datasets are used.</p>
<p>The paper (<xref ref-type="bibr" rid="B30">Valarmathi and Dhanalakshmi, 2024</xref>) discusses using genetic algorithms for optimization and IoT for real time data collection of weather-adaptive traffic monitoring, enabling dynamic adjustments in traffic management strategies. This integration helps predict and mitigate traffic congestion by analyzing real-time weather data and optimizing traffic flow accordingly.</p>
<p>The paper (<xref ref-type="bibr" rid="B11">Dong et al., 2010</xref>) develops traffic estimation and prediction models that account for traffic response to extreme weather, enabling real-time traffic management systems to predict congestion and implement advisory and control strategies effectively, thus mitigating weather impacts on traffic flow. Loop detectors and roadside sensors data. Vehicle probes data for traffic conditions. Deficiency in current weather-responsive traffic management practices. Need for improved traffic estimation models for inclement weather.</p>
<p>The TransGTR-MCA model (<xref ref-type="bibr" rid="B10">Cui, 2024</xref>) incorporates weather factors, specifically precipitation, to enhance traffic flow predictions. By considering these external conditions, the model improves adaptability and accuracy in predicting traffic congestion, particularly in data-scarce urban environments. Limitations of the proposed work are insufficient optimization for long-term prediction accuracy and need for better adaptation to external factors.</p>
<p>The proposed Multilevel-Gated Recurrent Unit (MGRU) model (<xref ref-type="bibr" rid="B26">Sravani et al., 2024</xref>) incorporates weather conditions and vehicle numbers to enhance traffic congestion prediction accuracy, achieving a notable accuracy of 0.887 and a Mean Absolute Error of 82.34, outperforming existing methods like Conv-Bi-LSTM.</p>
<p>A Weather interaction-aware spatio-temporal attention network (WST-ANet) model (<xref ref-type="bibr" rid="B40">Zhong et al., 2024</xref>) proposed effectively predicts traffic flow by integrating weather factors, enhancing adaptability to varying weather conditions. It utilizes a spatio-temporal weather collaboration insight module, improving accuracy in forecasting traffic congestion under different weather scenarios.</p>
<p>The work in (<xref ref-type="bibr" rid="B34">Yasir et al., 2022</xref>) highlights that weather significantly impacts traffic congestion levels. By utilizing machine learning models MLP Regressor, Stacking Regressor, SVR used for predictions. Historical traffic volume data utilized for training and assessment, the study effectively predicts congestion dynamics, taking into account various weather parameters alongside time of day and holiday indicators to enhance forecasting accuracy. Through this model, congestion of a road can be predicted 1&#xa0;week in advance with an average RMSE of 1.12. Consequently, this model can be used to take preventive measure beforehand.</p>
<p>Recent advances in traffic prediction have demonstrated the strengths and limitations of different modeling approaches. Early studies such as (<xref ref-type="bibr" rid="B33">Wu et al., 2018</xref>) and (<xref ref-type="bibr" rid="B18">Polson and Sokolov, 2017</xref>) focused primarily on temporal patterns of traffic flow using deep neural networks and recurrent models. While these methods achieved promising accuracy for short-term prediction, they lacked the ability to incorporate exogenous factors, making them less reliable under unusual or disruptive conditions.</p>
<p>Subsequent works introduced weather and accident information to improve robustness. For example, (<xref ref-type="bibr" rid="B40">Zhong et al., 2024</xref>), highlighted that rainfall and visibility significantly affect congestion, while Gu et al. (2016) emphasized the role of accident reports in traffic disruption. Although these studies improved predictions (<xref ref-type="bibr" rid="B32">Wang et al., 2016</xref>) under specific scenarios, they were limited by narrow boundary considerations and often struggled with the data imbalance problem, where rare events such as severe accidents or extreme weather were underrepresented.</p>
<p>The study (<xref ref-type="bibr" rid="B35">Yixinli and Zhang, 2024</xref>) investigates the relationship between various traffic modes and congestion levels, establishing a high-fidelity prediction model that analyzes multi-modal traffic and congestion data across different time frames. It employs machine learning techniques, including decision tree, logistic regression, KNN and random forest (RF) models. The RF model achieved accuracy of 99.88% after optimization. The study primarily focuses on traffic volume as the most important predictor of congestion, but it does not explore other potential influencing factors in depth, such as weather conditions, road infrastructure, or driver behavior, which could also significantly impact congestion levels. The paper does not specifically address the impact of weather conditions on traffic congestion prediction. The paper establishes a robust prediction model using various machine learning techniques; it does not address the addition of real-time data sources or application of the model in dynamic traffic management systems, which could enhance the practical utility of the findings in real-world scenarios.</p>
<p>The study (<xref ref-type="bibr" rid="B13">Hazarika et al., 2024</xref>) introduced an edge machine learning framework for adaptive traffic signal control in intelligent transportation systems. Their method utilized lightweight object detection models deployed at the edge to monitor vehicle density in real time and dynamically adjust traffic light phases. While their approach significantly reduced delays at intersections and improved traffic coordination, the study did not explicitly consider exogenous influences such as weather variability or special events, which often disrupt flow patterns. This highlights a key research direction, as integrating environmental conditions into traffic prediction frameworks can complement edge-based management systems by providing more resilient and context-aware congestion forecasting.</p>
<p>Despite the fact that various of the above studies on vehicular traffic congestion prediction presents valuable insights and robust models, these also has certain limitation like it does not explore other potential influencing factors in depth, such as weather conditions, which could also significantly impact congestion levels that should be acknowledged. These limitations indicate areas for future research and improvement, highlighting the need for a broader framework to understanding and predicting traffic congestion effectively on the basis of heterogeneous and exogenous data. There are some limitations of widely used models such as LSTM, Bi-LSTM and CNN-based hybrids. The LSTMs often suffer from gradient vanishing, while Conv-bi-LSTM has high computational cost. These shortcomings motivated the development of our FG-GGRU model, which integrates fuzzy logic with gated recurrent units to address these issues.</p>
</sec>
<sec id="s3">
<title>3 Proposed hybrid fusion-based generative adversarial network applied gated recurrent unit framework</title>
<p>To effectively capture the sequential and temporal dynamics inherent in traffic flow data, this study employs a Gated Recurrent Unit (GRU)&#x2013;based neural architecture at the core of the predictive framework. GRUs are a refined variant of traditional Recurrent Neural Networks (RNNs), specifically designed to preserve relevant information over long sequences while discarding irrelevant signals through an efficient gating mechanism. Compared to Long Short-Term Memory (LSTM) networks, which utilize three gates (input, forget, and output) and a memory cell, GRUs reduce architectural complexity by combining the forget and input mechanisms into a single update gate and introducing a reset gate. This simplification results in fewer parameters, reduced computational overhead, and faster training making GRUs well-suited for time-sensitive and resource-limited applications such as traffic congestion prediction.</p>
<p>We propose hybrid F-GGRU framework shown in <xref ref-type="fig" rid="F1">Figure 1</xref>, which builds on the fundamental GRU design and improves the model&#x2019;s learning potential in two significant ways. In order to ensure that the framework learns representative patterns from both congested and smooth traffic situations, we first implement a GAN-based class balancing strategy to address label imbalance in the binary congestion classification problem mathematically algorithmic representation of F-GGRU framework presented in algorithm 1 to algorithm 6. We develop a multisource data fusion approach that combines exogenous (like weather, peak hours, and holidays) and heterogeneous (like Smart City Automatic Number Plate Recognition Cameras, patrol, and drone sensor) inputs into a single time-series sequence. Through encoding and passing these enhanced inputs via the GRU layers, the F-GGRU framework is able to learn contextual impacts and temporal dependencies simultaneously. The fusion approach make the model adaptable to abrupt changes and noise in the data, enhancing its capacity to represent the complexity of real world urban transportation network.</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption>
<p>A novel hybrid features F-GGRU framework for traffic congestion prediction under weather conditions and temporal patterns.</p>
</caption>
<graphic xlink:href="frcmn-06-1666487-g001.tif">
<alt-text content-type="machine-generated">Flowchart illustrating a machine learning process for traffic prediction. It starts with datasets from Safe City and OpenWeather API. Preprocessing includes peak hour identification, feature selection, zero speed correction, and outlier analysis. Exploratory analysis involves spatiotemporal-geospatial speed with weather. Classification uses fuzzy logic for automatic labeling. Class balancing is done using GANs. The model is split into train (70%) and test (30%) with a GRU neural network to predict smooth or congested traffic conditions.</alt-text>
</graphic>
</fig>
<sec id="s3-1">
<title>3.1 Mathematical model explanation of the F-GGRU framework</title>
<p>The core of the proposed F-GGRU framework is based on the standard Gated Recurrent Unit (GRU) architecture, which is enhanced through data fusion and synthetic class balancing. The GRU cell is designed to capture temporal dependencies by controlling the flow of information across time steps using gating mechanisms. Here <inline-formula id="inf1">
<mml:math id="m1">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mi>y</mml:mi>
<mml:mo>&#x223c;</mml:mo>
</mml:mover>
<mml:mtext>&#x2009;</mml:mtext>
</mml:mrow>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mi mathvariant="double-struck">R</mml:mi>
<mml:mi>n</mml:mi>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> denote the fused input vector at time step t, constructed by integrating heterogeneous features and exogenous attributes. This enriched input forms the sequential input to the F-GGRU framework.</p>
<p>The cell computations are defined as follows:<list list-type="simple">
<list-item>
<p>i. Update Gate:</p>
</list-item>
</list>
<disp-formula id="e1">
<mml:math id="m2">
<mml:mrow>
<mml:mtext>a.&#x2004;</mml:mtext>
<mml:msub>
<mml:mi>z</mml:mi>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>&#x3c3;</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:msub>
<mml:mi>W</mml:mi>
<mml:mi>z</mml:mi>
</mml:msub>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mo>.</mml:mo>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msub>
<mml:mover accent="true">
<mml:mi>y</mml:mi>
<mml:mo>&#x223c;</mml:mo>
</mml:mover>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>U</mml:mi>
<mml:mi>z</mml:mi>
</mml:msub>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mo>.</mml:mo>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>b</mml:mi>
<mml:mi>z</mml:mi>
</mml:msub>
<mml:mtext>&#x2009;</mml:mtext>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(1)</label>
</disp-formula>
<list list-type="simple">
<list-item>
<p>ii. Reset Gate:</p>
</list-item>
</list>
<disp-formula id="e2">
<mml:math id="m3">
<mml:mrow>
<mml:mtext>a.&#x2004;</mml:mtext>
<mml:msub>
<mml:mi>r</mml:mi>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>&#x3c3;</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:msub>
<mml:mi>W</mml:mi>
<mml:mi>r</mml:mi>
</mml:msub>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mo>.</mml:mo>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msub>
<mml:mover accent="true">
<mml:mi>y</mml:mi>
<mml:mo>&#x223c;</mml:mo>
</mml:mover>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>U</mml:mi>
<mml:mi>r</mml:mi>
</mml:msub>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mo>.</mml:mo>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>b</mml:mi>
<mml:mi>r</mml:mi>
</mml:msub>
<mml:mtext>&#x2009;</mml:mtext>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(2)</label>
</disp-formula>
<list list-type="simple">
<list-item>
<p>iii. Candidate Activation:</p>
</list-item>
</list>
<disp-formula id="e3">
<mml:math id="m4">
<mml:mrow>
<mml:mtext>a.&#x2004;</mml:mtext>
<mml:msub>
<mml:mover accent="true">
<mml:mi>h</mml:mi>
<mml:mo>&#x223c;</mml:mo>
</mml:mover>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="italic">tanh</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mrow>
<mml:mo>(</mml:mo>
</mml:mrow>
<mml:msub>
<mml:mi>W</mml:mi>
<mml:mi>h</mml:mi>
</mml:msub>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mo>.</mml:mo>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msub>
<mml:mover accent="true">
<mml:mi>y</mml:mi>
<mml:mo>&#x223c;</mml:mo>
</mml:mover>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>U</mml:mi>
<mml:mi>h</mml:mi>
</mml:msub>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mo>.</mml:mo>
<mml:mtext>&#x2002;</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:msub>
<mml:mi>r</mml:mi>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:mo>&#x2299;</mml:mo>
<mml:msub>
<mml:mi>h</mml:mi>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mtext>&#x2009;</mml:mtext>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>b</mml:mi>
<mml:mi>h</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
<label>(3)</label>
</disp-formula>
<list list-type="simple">
<list-item>
<p>iv. Final Hidden State:</p>
</list-item>
</list>
<disp-formula id="e4">
<mml:math id="m5">
<mml:mrow>
<mml:mtext>a.&#x2004;</mml:mtext>
<mml:msub>
<mml:mi>h</mml:mi>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mi>z</mml:mi>
<mml:mi>t</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mo>&#x2299;</mml:mo>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msub>
<mml:mi>h</mml:mi>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>z</mml:mi>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mo>&#x2299;</mml:mo>
<mml:msub>
<mml:mover accent="true">
<mml:mi>h</mml:mi>
<mml:mo>&#x223c;</mml:mo>
</mml:mover>
<mml:mi>t</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
<label>(4)</label>
</disp-formula>
<disp-formula id="equ1">
<mml:math id="m6">
<mml:mrow>
<mml:mo>&#x2234;</mml:mo>
<mml:mtext>&#x2004;</mml:mtext>
<mml:msub>
<mml:mover accent="true">
<mml:mi>y</mml:mi>
<mml:mo>&#x223c;</mml:mo>
</mml:mover>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mfenced open="[" close="]" separators="|">
<mml:mrow>
<mml:msup>
<mml:msub>
<mml:mi>y</mml:mi>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:mrow>
<mml:mi>F</mml:mi>
<mml:mi>C</mml:mi>
<mml:mi>D</mml:mi>
</mml:mrow>
</mml:msup>
<mml:mo>,</mml:mo>
<mml:msup>
<mml:msub>
<mml:mi>y</mml:mi>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:mrow>
<mml:mi>w</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>t</mml:mi>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>r</mml:mi>
</mml:mrow>
</mml:msup>
<mml:mo>,</mml:mo>
<mml:msup>
<mml:msub>
<mml:mi>y</mml:mi>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>k</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>h</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>u</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>s</mml:mi>
</mml:mrow>
</mml:msup>
<mml:mo>,</mml:mo>
<mml:msup>
<mml:mi>y</mml:mi>
<mml:mrow>
<mml:mi>w</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>k</mml:mi>
<mml:mi>d</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>y</mml:mi>
</mml:mrow>
</mml:msup>
<mml:mo>,</mml:mo>
<mml:msup>
<mml:msub>
<mml:mi>y</mml:mi>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:mrow>
<mml:mi>w</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>k</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>n</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msup>
<mml:mtext>&#x2009;</mml:mtext>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
</disp-formula>Where symbols stands for:<list list-type="simple">
<list-item>
<p>&#x2022; <inline-formula id="inf2">
<mml:math id="m7">
<mml:mrow>
<mml:msub>
<mml:mover accent="true">
<mml:mi>y</mml:mi>
<mml:mo>&#x223c;</mml:mo>
</mml:mover>
<mml:mi>t</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is the input at time step <italic>t</italic>,</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf3">
<mml:math id="m8">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is the previous hidden state,</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf4">
<mml:math id="m9">
<mml:mrow>
<mml:msub>
<mml:mi>h</mml:mi>
<mml:mi>t</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> Final hidden state at time t,</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf5">
<mml:math id="m10">
<mml:mrow>
<mml:msub>
<mml:mi>z</mml:mi>
<mml:mi>t</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> and <inline-formula id="inf6">
<mml:math id="m11">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>r</mml:mi>
</mml:mrow>
<mml:mi>t</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> are the update and reset gates respectively,</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf7">
<mml:math id="m12">
<mml:mrow>
<mml:msub>
<mml:mover accent="true">
<mml:mi>h</mml:mi>
<mml:mo>&#x223c;</mml:mo>
</mml:mover>
<mml:mi>t</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is the candidate activation,</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf8">
<mml:math id="m13">
<mml:mrow>
<mml:mo>&#x2299;</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> denotes element-wise multiplication,</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf9">
<mml:math id="m14">
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> Sigmoid activation function (outputs between 0 and 1),</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf10">
<mml:math id="m15">
<mml:mrow>
<mml:msub>
<mml:mi>W</mml:mi>
<mml:mrow>
<mml:mi>z</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mi>r</mml:mi>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>W</mml:mi>
<mml:mi>h</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> Weight matrices for input <inline-formula id="inf11">
<mml:math id="m16">
<mml:mrow>
<mml:msub>
<mml:mover accent="true">
<mml:mi>y</mml:mi>
<mml:mo>&#x223c;</mml:mo>
</mml:mover>
<mml:mi>t</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>&#x200b; in the update, reset, and candidate gates,</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf12">
<mml:math id="m17">
<mml:mrow>
<mml:msub>
<mml:mi>U</mml:mi>
<mml:mrow>
<mml:mi>z</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>U</mml:mi>
</mml:mrow>
<mml:mi>r</mml:mi>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>U</mml:mi>
<mml:mi>h</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> Weight matrices for hidden state <inline-formula id="inf13">
<mml:math id="m18">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>&#x200b;,</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf14">
<mml:math id="m19">
<mml:mrow>
<mml:msub>
<mml:mi>b</mml:mi>
<mml:mrow>
<mml:mi>z</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mi>r</mml:mi>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>b</mml:mi>
<mml:mi>h</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> Bias terms for the respective gates</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf15">
<mml:math id="m20">
<mml:mrow>
<mml:mi>tanh</mml:mi>
<mml:mtext>&#x2009;Hyperbolic&#x2009;</mml:mtext>
<mml:mtext>tangent&#x2009;activation&#x2009;function&#x2009;</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mtext>outputs&#x2009;between</mml:mtext>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mtext>&#x2009;and&#x2009;</mml:mtext>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>.</p>
</list-item>
</list>
</p>
<p>These <xref ref-type="disp-formula" rid="e1">Equations 1</xref>&#x2013;<xref ref-type="disp-formula" rid="e4">4</xref> collectively describe the temporal learning mechanism of the GRU cell within the F-GGRU framework. The update gate <inline-formula id="inf16">
<mml:math id="m21">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="normal">z</mml:mi>
<mml:mi mathvariant="normal">t</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> regulates how much of the previous hidden state is carried forward, while the reset gate <inline-formula id="inf17">
<mml:math id="m22">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi mathvariant="normal">r</mml:mi>
</mml:mrow>
<mml:mi mathvariant="normal">t</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> determines how much past information to forget. By feeding the GRU with a multi-source fused input <inline-formula id="inf18">
<mml:math id="m23">
<mml:mrow>
<mml:msub>
<mml:mover accent="true">
<mml:mi mathvariant="normal">y</mml:mi>
<mml:mo>&#x223c;</mml:mo>
</mml:mover>
<mml:mi mathvariant="normal">t</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> the F-GGRU framework effectively captures contextual dependencies and temporal dynamics for robust traffic congestion prediction.</p>
<sec id="s3-1-1">
<title>3.1.1 Loss function and GAN-based class balancing</title>
<p>To enhance the reliability of the model in handling imbalanced congestion labels, a GAN-based synthetic oversampling mechanism is applied during preprocessing. Specifically, a Vanilla Generative Adversarial Network (GAN) is utilized to generate artificial feature vectors that mimic the statistical distribution of the underrepresented class (e.g., congested or smooth traffic states). The GAN contains two neural components: A generator <inline-formula id="inf19">
<mml:math id="m24">
<mml:mrow>
<mml:mi mathvariant="normal">G</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi mathvariant="normal">z</mml:mi>
<mml:mo>;</mml:mo>
<mml:msub>
<mml:mi mathvariant="normal">&#x3b8;</mml:mi>
<mml:mi mathvariant="normal">g</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>, which maps input noise <inline-formula id="inf20">
<mml:math id="m25">
<mml:mrow>
<mml:mi mathvariant="normal">z</mml:mi>
<mml:mo>&#x223c;</mml:mo>
<mml:mi mathvariant="normal">N</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mo>,</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> to synthetic traffic feature vectors <inline-formula id="inf21">
<mml:math id="m26">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi mathvariant="normal">x</mml:mi>
</mml:mrow>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula>. A discriminator <inline-formula id="inf22">
<mml:math id="m27">
<mml:mrow>
<mml:mi>D</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi>x</mml:mi>
<mml:mo>;</mml:mo>
<mml:msub>
<mml:mi>&#x3b8;</mml:mi>
<mml:mi>d</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>, which attempts to distinguish between real input samples <inline-formula id="inf23">
<mml:math id="m28">
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> and generated samples <inline-formula id="inf24">
<mml:math id="m29">
<mml:mrow>
<mml:mover accent="true">
<mml:mi>x</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula>.</p>
<p>The generator and discriminator are trained via the following minimax loss function in <xref ref-type="disp-formula" rid="e5">Equation 5</xref>:<disp-formula id="e5">
<mml:math id="m30">
<mml:mrow>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:mi mathvariant="bold-italic">min</mml:mi>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mi mathvariant="bold-italic">G</mml:mi>
</mml:mtd>
</mml:mtr>
</mml:mtable>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:mi mathvariant="bold-italic">max</mml:mi>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mi mathvariant="bold-italic">D</mml:mi>
</mml:mtd>
</mml:mtr>
</mml:mtable>
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="bold-italic">L</mml:mi>
<mml:mrow>
<mml:mi mathvariant="bold-italic">G</mml:mi>
<mml:mi mathvariant="bold-italic">A</mml:mi>
<mml:mi mathvariant="bold-italic">N</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi mathvariant="bold-italic">D</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">G</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mi mathvariant="bold-italic">E</mml:mi>
<mml:mrow>
<mml:mi mathvariant="bold-italic">x</mml:mi>
<mml:mo>&#x223c;</mml:mo>
<mml:mi mathvariant="bold-italic">p</mml:mi>
<mml:mi mathvariant="bold-italic">d</mml:mi>
<mml:mi mathvariant="bold-italic">a</mml:mi>
<mml:mi mathvariant="bold-italic">t</mml:mi>
<mml:mi mathvariant="bold-italic">a</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi mathvariant="bold-italic">x</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="[" close="]" separators="|">
<mml:mrow>
<mml:mtext mathvariant="bold">log</mml:mtext>
<mml:mi mathvariant="bold-italic">D</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi mathvariant="bold-italic">x</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi mathvariant="bold-italic">E</mml:mi>
<mml:mrow>
<mml:mi mathvariant="bold-italic">z</mml:mi>
<mml:mo>&#x223c;</mml:mo>
<mml:mi mathvariant="bold-italic">p</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi mathvariant="bold-italic">z</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:msub>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mrow>
<mml:mfenced open="[" close="]" separators="|">
<mml:mrow>
<mml:mo>&#x2061;</mml:mo>
<mml:mi mathvariant="bold">log</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mn mathvariant="bold">1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi mathvariant="bold-italic">D</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi mathvariant="bold-italic">G</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi mathvariant="bold-italic">z</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(5)</label>
</disp-formula>Where:<list list-type="simple">
<list-item>
<p>&#x2022; <inline-formula id="inf25">
<mml:math id="m31">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="bold-italic">p</mml:mi>
<mml:mrow>
<mml:mi mathvariant="bold-italic">d</mml:mi>
<mml:mi mathvariant="bold-italic">a</mml:mi>
<mml:mi mathvariant="bold-italic">t</mml:mi>
<mml:mi mathvariant="bold-italic">a</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is the distribution of real traffic data samples.</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf26">
<mml:math id="m32">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="bold-italic">p</mml:mi>
<mml:mi mathvariant="bold-italic">z</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is the prior distribution over latent noise vectors.</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf27">
<mml:math id="m33">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="bold-italic">D</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi mathvariant="bold-italic">x</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> represents the probability that sample <inline-formula id="inf28">
<mml:math id="m34">
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is real.</p>
</list-item>
</list>
</p>
<p>When trained, the generator <inline-formula id="inf29">
<mml:math id="m35">
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is used to synthesize new samples for the minority class, thereby producing a balanced training dataset that ensures fair learning during the model&#x2019;s optimization phase.</p>
</sec>
<sec id="s3-1-2">
<title>3.1.2 F-GGRU framework loss function</title>
<p>For the prediction task, the F-GGRU framework is trained as a binary classifier using the Binary Cross-Entropy (BCE) loss function, defined by <xref ref-type="disp-formula" rid="e6">Equation 6</xref>:<disp-formula id="e6">
<mml:math id="m36">
<mml:mrow>
<mml:mi mathvariant="script">L</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>B</mml:mi>
<mml:mi>C</mml:mi>
<mml:mi>E</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:munderover>
</mml:mstyle>
<mml:mo>[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2061;</mml:mo>
<mml:mi mathvariant="normal">log</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:msub>
<mml:mover accent="true">
<mml:mi>x</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mi mathvariant="normal">log</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mover accent="true">
<mml:mi>x</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(6)</label>
</disp-formula>Where:<list list-type="simple">
<list-item>
<p>&#x2022; <inline-formula id="inf30">
<mml:math id="m37">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="normal">x</mml:mi>
<mml:mi mathvariant="normal">i</mml:mi>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> Error! Bookmark not defined. is the true label for the i-th sample (0 &#x3d; Congested, 1 &#x3d; Smooth).</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf31">
<mml:math id="m38">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="normal">x</mml:mi>
<mml:mi mathvariant="normal">i</mml:mi>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> is the predicted probability from the F-GGRU framework.</p>
</list-item>
<list-item>
<p>&#x2022; N is the number of training samples.</p>
</list-item>
</list>
</p>
<p>The loss function encourages the model to produce output probabilities that align closely with the ground truth, whereas the GAN-balanced dataset ensures that both classes contribute equally to learning, preventing bias toward the dominant class.</p>
</sec>
</sec>
<sec id="s3-2">
<title>3.2 Algorithmic representation of F-GGRU framework</title>
<p>The proposed hybrid features F-GGRU framework pipeline can be expressed as a sequence of algorithmic steps applied to the raw dataset <inline-formula id="inf32">
<mml:math id="m39">
<mml:mrow>
<mml:msub>
<mml:mi>D</mml:mi>
<mml:mrow>
<mml:mi>r</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>&#x200b;. The pipeline includes data preprocessing, feature engineering, class balancing, and final model prediction.<list list-type="simple">
<list-item>
<p>1. Data Preprocessing and Feature Engineering</p>
<list list-type="simple">
<list-item>
<p>1.1. Dataset Preparation:</p>
<list list-type="simple">
<list-item>
<p>
<bold>Input:</bold> Raw Smart City traffic and Weather conditions data dataset D<sub>raw</sub>
</p>
</list-item>
<list-item>
<p>
<bold>Output:</bold> Cleaned and integrated dataset D<sub>clean</sub>
</p>
</list-item>
</list>
</list-item>
<list-item>
<p>1.2. Load Dataset:</p>
<list list-type="simple">
<list-item>
<p>1.2.1. <inline-formula id="inf33">
<mml:math id="m40">
<mml:mrow>
<mml:msub>
<mml:mi>s</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>: Speed</p>
</list-item>
<list-item>
<p>1.2.2. <inline-formula id="inf34">
<mml:math id="m41">
<mml:mrow>
<mml:msub>
<mml:mi>t</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> &#x3d; (h<sub>i</sub>, m<sub>i</sub>, sec<sub>i</sub>): Time (Hour, Minute, Second)</p>
</list-item>
<list-item>
<p>1.2.3. <inline-formula id="inf35">
<mml:math id="m42">
<mml:mrow>
<mml:msub>
<mml:mi>d</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> &#x3d; (<inline-formula id="inf36">
<mml:math id="m43">
<mml:mrow>
<mml:msub>
<mml:mtext>day</mml:mtext>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>; <inline-formula id="inf37">
<mml:math id="m44">
<mml:mrow>
<mml:msub>
<mml:mtext>month</mml:mtext>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>; <inline-formula id="inf38">
<mml:math id="m45">
<mml:mrow>
<mml:msub>
<mml:mtext>hour</mml:mtext>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>): Date</p>
</list-item>
<list-item>
<p>1.2.4. <inline-formula id="inf39">
<mml:math id="m46">
<mml:mrow>
<mml:msub>
<mml:mi>g</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>: Geographic Sector</p>
</list-item>
</list>
</list-item>
<list-item>
<p>1.3. Perform data cleansing:</p>
<list list-type="simple">
<list-item>
<p>1.3.1. Remove or impute missing values</p>
</list-item>
<list-item>
<p>1.3.2. Handle outliers</p>
</list-item>
</list>
</list-item>
<list-item>
<p>1.4. Generate additional features:</p>
<list list-type="simple">
<list-item>
<p>1.4.1. Peak Hour: <inline-formula id="inf40">
<mml:math id="m47">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mtext>Is</mml:mtext>
<mml:mo>_</mml:mo>
<mml:mtext>Peak</mml:mtext>
<mml:mo>_</mml:mo>
<mml:mtext>Hour</mml:mtext>
</mml:mrow>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mtext>if</mml:mtext>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi mathvariant="normal">t</mml:mi>
</mml:mrow>
<mml:mi mathvariant="normal">i</mml:mi>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:mrow>
<mml:mfenced open="{" close="}" separators="|">
<mml:mrow>
<mml:mn>7</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>9</mml:mn>
<mml:mo>,</mml:mo>
<mml:mn>16</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>19</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:mtext>else&#x2009;</mml:mtext>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>1.4.2. Weekend: <inline-formula id="inf41">
<mml:math id="m48">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>I</mml:mi>
<mml:mi>s</mml:mi>
<mml:mo>_</mml:mo>
<mml:mi>W</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>k</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>n</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mtext>&#x2009;if&#x2009;day&#x2009;</mml:mtext>
<mml:mo>_</mml:mo>
<mml:mtext>of&#x2009;week&#x2009;</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="normal">d</mml:mi>
<mml:mi mathvariant="normal">i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x2208;</mml:mo>
<mml:mrow>
<mml:mfenced open="{" close="}" separators="|">
<mml:mrow>
<mml:mn>6</mml:mn>
<mml:mo>,</mml:mo>
<mml:mn>7</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:mtext>else&#x2009;</mml:mtext>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
</list>
</list-item>
<list-item>
<p>1.5. Merge with weather dataset W:</p>
<list list-type="simple">
<list-item>
<p>1.5.1. Join D<sub>raw</sub> and W on (g<sub>i</sub>, d<sub>i</sub>)</p>
</list-item>
<list-item>
<p>1.5.2. Aggregate and return enriched dataset D <sub>clean</sub>.</p>
</list-item>
</list>
</list-item>
</list>
</list-item>
<list-item>
<p>2. Spatiotemporal and Weather-Speed Correlation:</p>
<list list-type="simple">
<list-item>
<p>
<bold>Input:</bold> D <sub>clean</sub>
</p>
</list-item>
<list-item>
<p>
<bold>Output:</bold> Correlation statistics</p>
</list-item>
<list-item>
<p>2.1. Group data by (g<sub>i</sub>, t<sub>i</sub>, d<sub>i</sub>)</p>
</list-item>
<list-item>
<p>2.2. Compute correlation between:</p>
<list list-type="simple">
<list-item>
<p>2.2.1. Speed vs. Weather attributes (temp, humidity, rainfall, etc.)</p>
</list-item>
<list-item>
<p>2.2.2. Speed vs. Time attributes (peak hours, weekends)</p>
</list-item>
<list-item>
<p>2.3. Store correlation matrix for model insight.</p>
</list-item>
</list>
</list-item>
</list>
</list-item>
<list-item>
<p>3. Fuzzy Logic-Based Traffic Speed Labeling:</p>
<list list-type="simple">
<list-item>
<p>
<bold>Input:</bold> Clean dataset with speeds</p>
</list-item>
<list-item>
<p>
<bold>Output:</bold> Fuzzy traffic speed labels</p>
</list-item>
<list-item>
<p>3.1. Define fuzzy sets for Speed: {Low, Medium, High}</p>
</list-item>
<list-item>
<p>3.2. Apply membership functions:</p>
<list list-type="simple">
<list-item>
<p>3.2.1. Low: Congested</p>
</list-item>
<list-item>
<p>3.2.2. Medium/High: Smooth</p>
</list-item>
</list>
</list-item>
<list-item>
<p>3.3. Generate fuzzy rules and assign traffic label y<sub>i</sub> &#x2208; {Congested, Smooth}.</p>
</list-item>
</list>
</list-item>
<list-item>
<p>4. GAN-Based Class Balancing:</p>
<list list-type="simple">
<list-item>
<p>
<bold>Input:</bold> Labeled dataset D<sub>label</sub>&#x200b; with imbalance</p>
</list-item>
<list-item>
<p>
<bold>Output:</bold> Balanced dataset D<sub>balanced</sub>
</p>
</list-item>
<list-item>
<p>4.1. Encode categorical features into numeric format</p>
</list-item>
<list-item>
<p>4.2. Train a Conditional GAN (cGAN) using minority class labels</p>
</list-item>
<list-item>
<p>4.3. Generate synthetic samples for minority class</p>
</list-item>
<list-item>
<p>4.4. Merge synthetic and real data</p>
</list-item>
<list-item>
<p>4.5. Shuffle to obtain D <sub>balanced</sub>.</p>
</list-item>
</list>
</list-item>
<list-item>
<p>5. Train-Test Preparation:</p>
<list list-type="simple">
<list-item>
<p>
<bold>Input:</bold> D <sub>balanced</sub>
</p>
</list-item>
<list-item>
<p>
<bold>Output:</bold> Normalized and reshaped training/testing datasets</p>
</list-item>
<list-item>
<p>5.1. Split D <sub>balanced</sub> into X (features) and Y (labels)</p>
</list-item>
<list-item>
<p>5.2. Normalize features using Min-Max scaling</p>
<list list-type="simple">
<list-item>
<p>Reshape input for F-GGRU: (n, timesteps, features)</p>
</list-item>
<list-item>
<p>: Where n is the number of samples, <italic>timesteps</italic> denotes the sequence length (look-back window), and <italic>features</italic> represents the number of variables at each time step.</p>
</list-item>
</list>
</list-item>
<list-item>
<p>5.3. Prepare training and testing sets with equal class distribution.</p>
</list-item>
</list>
</list-item>
<list-item>
<p>6. FG-GGRU Framework Training and Prediction</p>
<list list-type="simple">
<list-item>
<p>
<bold>Input:</bold> Training dataset (X train, Y train)</p>
</list-item>
<list-item>
<p>
<bold>Output:</bold> Predicted traffic congestion labels</p>
</list-item>
<list-item>
<p>6.1. Define FG-GGRU architecture:</p>
<list list-type="simple">
<list-item>
<p>6.1.1. Input layer (1,d) (1, d) (1,d)</p>
</list-item>
<list-item>
<p>6.1.2. Fusion mechanism (traffic &#x2b; weather &#x2b; temporal features)</p>
</list-item>
<list-item>
<p>6.1.3. GRU layers</p>
</list-item>
<list-item>
<p>6.1.4. Dense layer with sigmoid activation</p>
</list-item>
</list>
</list-item>
<list-item>
<p>6.2. Fusion function combines heterogeneous and exogenous features with weighted rules</p>
</list-item>
<list-item>
<p>6.3. Compile model with:</p>
<list list-type="simple">
<list-item>
<p>6.3.1. Loss &#x3d; Binary Cross-Entropy</p>
</list-item>
<list-item>
<p>6.3.2. Optimizer &#x3d; Adam</p>
</list-item>
</list>
</list-item>
<list-item>
<p>6.4. Train on (X <sub>train</sub>, Y <sub>train</sub>)</p>
</list-item>
<list-item>
<p>6.5. Evaluate on test data (X <sub>test</sub>, Y <sub>test</sub>)</p>
</list-item>
<list-item>
<p>6.6. Output binary predictions: {Congested, Smooth}.</p>
</list-item>
<list-item>
<p>Objective is to train the F-GGRU framework to predict binary traffic congestion labels using fused inputs.</p>
</list-item>
</list>
</list-item>
</list>
</p>
</sec>
<sec id="s3-3">
<title>3.3 Data sources</title>
<p>For the F-GGRU framework evaluation used the real time heterogeneous and homogenous features data.</p>
<sec id="s3-3-1">
<title>3.3.1 Heterogeneous features</title>
<p>We acquired heterogeneous features FCD data from the real time SCIP (<xref ref-type="bibr" rid="B14">Khattak, 2025</xref>) dataset. SCIP uses a network of advanced sensors of surveillance tools for urban monitoring and manually traffic management. We collect data of key camera types include high-definition sixty four CCTV, facial recognition systems linked with NADRA, Automatic Number Plate Recognition (ANPR), at strategic points across the city. These cameras are supported by additional sensors like RFID readers, radar systems for vehicle speed tracking, and flashlight systems for night visibility. The system integrates with a centralized command and control center and supports technologies like e-challan issuance and real-time traffic surveillance, obtaining valuable data for further traffic analysis and traffic congestion prediction. Traffic data of SCIP for the year 2023 have been collected from SCIP through proper channel. The key features of SCIP FCD include Date_Time, Date, Hour, District, Reg_No, Violation, Speed, Geographic_Sector, Police_Station, Camera_Name, latitude and longitude initially.</p>
</sec>
<sec id="s3-3-2">
<title>3.3.2 Exogenous features</title>
<p>The weather conditions data is collected from OpenWeather API (<xref ref-type="bibr" rid="B7">API, 2025</xref>) on the basis of latitude, longitude, time and date. The homogenous raw dataset have 28 features dt, dt_iso,timezone, city_name, lat, lon, temp, visibility, dew_point, feels_like, temp_min, temp_max, pressure, sea_level, nd_level, humidity, wind_speed, wind_deg, wind_gust, rain_1h, rain_3h, snow_1h, snow_3h, clouds_all, weather_id, weather_main, weather_description, weather_icon.</p>
</sec>
</sec>
<sec id="s3-4">
<title>3.4 Fusion of heterogeneous and exogenous features based on correlation analysis</title>
<p>To enhance the representational strength of F-GGRU traffic prediction framework, this study introduces a data integration pipeline step 1 to step 3 in <xref ref-type="fig" rid="F1">Figure 1</xref>, that fuses spatiotemporal traffic records (heterogeneous) with contextual environmental (exogenous) features that integrate the final dataset for F-GGRU framework training, both heterogeneous features (traffic-related attributes) and exogenous features (weather and temporal variables) were integrated into a single feature pool (SCIP). Since including all available attributes may introduce redundancy and noise, a correlation analysis was applied to identify the most relevant predictors. Using a heat map of pairwise correlations, weakly associated or redundant variables were removed, while strongly correlated features were retained.</p>
<p>The resulting integrated feature set provides a balanced representation of traffic dynamics and external influencing factors. Core traffic variables such as speed and geographic sector were preserved alongside exogenous indicators including temperature, humidity, wind speed, cloud cover, and categorical weather conditions. Temporal and contextual variables such as peak hour and weekend flag, indicators were also included, as their correlations with congestion patterns were significant. By fusing both heterogeneous and exogenous features under a correlation-driven selection strategy, the final dataset ensures that the FG-GGRU framework learns congestion patterns that are both data-rich and context-aware, thereby enhancing robustness under boundary conditions.</p>
<p>By integration spatial location, time of observation, and ambient environmental conditions into a unified structure, the pipeline takes a more comprehensive dataset features presented in <xref ref-type="table" rid="T1">Table 1</xref> of revealing patterns otherwise obscured in isolated data streams. This multi-dimensional fusion not only improves the data density in sparse geospatial segments but also forms the basis for more accurate and context-aware congestion prediction.</p>
<table-wrap id="T1" position="float">
<label>TABLE 1</label>
<caption>
<p>Hybrid features space of heterogeneous and exogenous features for integrated dataset.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="center">Heterogeneous (FCD) feature</th>
<th align="center">Data type</th>
<th align="center">Exogenous (weather, peak hours, weekend) feature</th>
<th align="center">Data type</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">Speed</td>
<td align="center">int64</td>
<td align="center">feels like</td>
<td align="center">float64</td>
</tr>
<tr>
<td align="center">Violation</td>
<td align="center">int64</td>
<td align="center">Humidity</td>
<td align="center">int64</td>
</tr>
<tr>
<td align="center">Geographic Sector</td>
<td align="center">int64</td>
<td align="center">wind_speed</td>
<td align="center">float64</td>
</tr>
<tr>
<td align="center">Year</td>
<td align="center">int64</td>
<td align="center">clouds_all</td>
<td align="center">int64</td>
</tr>
<tr>
<td align="center">Month</td>
<td align="center">int64</td>
<td align="center">weather_main</td>
<td align="center">int64</td>
</tr>
<tr>
<td align="center">Day</td>
<td align="center">int64</td>
<td align="center">weather_description</td>
<td align="center">int64</td>
</tr>
<tr>
<td align="center">Hour</td>
<td align="center">int64</td>
<td align="center">Date</td>
<td align="center">object</td>
</tr>
<tr>
<td align="center">Minute</td>
<td align="center">int64</td>
<td align="center">Label</td>
<td align="center">int64</td>
</tr>
<tr>
<td align="center">Second</td>
<td align="center">int64</td>
<td align="center">Is Peak Hour</td>
<td align="center">int64</td>
</tr>
<tr>
<td align="center"/>
<td align="center"/>
<td align="center">Is_Weekend</td>
<td align="center">int64</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s3-5">
<title>3.5 Outlier analysis and adjustment</title>
<p>The identified outliers are fixed through OSM maximum speed limit for the respective route. The vehicle speed where exceeding the maximum limit of speed on a segment of road is replaced with the standard maximum speed limit value respectively. This step is critical for minimizing the influence of noise and ensuring that the fused heterogeneous and selected homogenous features data accurately represent typical urban mobility patterns observed in the smart city network in real time environment.</p>
<sec id="s3-5-1">
<title>3.5.1 Zero speed correction using violation feature</title>
<p>This step addresses records in the selected dataset where vehicles consistently report zero speed, which may not always indicate congestion but could result from long stops, sensor errors, or stationary conditions. To improve the dataset, the violations feature from FCD is selected that specifically identifying cases where zero speed persists beyond a realistic time threshold. These flagged records are corrected by replacing the zero values with the minimum observed non-zero speed. This approach enhances the accuracy of congestion labeling while preserving the natural flow patterns in the smart city traffic data. The speed value <inline-formula id="inf42">
<mml:math id="m49">
<mml:mrow>
<mml:msub>
<mml:mi>s</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> at time step <inline-formula id="inf43">
<mml:math id="m50">
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is corrected using the following <xref ref-type="disp-formula" rid="e7">Equation 7</xref>:<disp-formula id="e7">
<mml:math id="m51">
<mml:mrow>
<mml:msubsup>
<mml:mi>s</mml:mi>
<mml:mi>i</mml:mi>
<mml:mo>&#x2032;</mml:mo>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mfenced open="{" close="" separators="|">
<mml:mrow>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:mi>min</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi>S</mml:mi>
<mml:mo>&#x3e;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mtext>&#x2003;</mml:mtext>
<mml:mi>i</mml:mi>
<mml:mi>f</mml:mi>
<mml:msub>
<mml:mi>s</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:msub>
<mml:mi>s</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mtext>&#x2003;</mml:mtext>
<mml:mi>o</mml:mi>
<mml:mi>t</mml:mi>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>w</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>s</mml:mi>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(7)</label>
</disp-formula>Where:<list list-type="simple">
<list-item>
<p>&#x2022; <inline-formula id="inf44">
<mml:math id="m52">
<mml:mrow>
<mml:msub>
<mml:mi>s</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>: Original speed value at time <inline-formula id="inf45">
<mml:math id="m53">
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>.</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf46">
<mml:math id="m54">
<mml:mrow>
<mml:msubsup>
<mml:mi>s</mml:mi>
<mml:mi>i</mml:mi>
<mml:mo>&#x2032;</mml:mo>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula>: Corrected speed value.</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf47">
<mml:math id="m55">
<mml:mrow>
<mml:mi>min</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi>S</mml:mi>
<mml:mo>&#x3e;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>: The minimum non-zero speed in the dataset.</p>
</list-item>
</list>
</p>
</sec>
<sec id="s3-5-2">
<title>3.5.2 Identify peak hours and weekend</title>
<p>This step involves deriving temporal features that capture recurring patterns in traffic behavior. Based on historical analysis of the Smart City data, specific time intervals such as morning, afternoon and evening commute hours are flagged as peak hours, while we use a calendar data source to identify the effect of holidays (weekend) on traffic. The behaviors of commuter and traffic and patterns of traffic are highly dependent on holiday data. The calendar data source features contain Name, DateTime, and Type and using the day-of-week attribute. These derived indicators help differentiate routine traffic flow from irregular patterns, enabling the model to account for variations caused by daily schedules and weekend travel dynamics. Incorporating these temporal features improves the model&#x2019;s ability to predict congestion with greater contextual awareness. Further statistical analysis presented in 3.3 Exploratory Analysis Section and presented in <xref ref-type="table" rid="T2">Table 2</xref>.</p>
<table-wrap id="T2" position="float">
<label>TABLE 2</label>
<caption>
<p>Presents number of vehicles observed in peak vs. non-peak hour and weekday vs. weekend.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Total records</th>
<th align="left">Peak hour<break/>records</th>
<th align="left">Non-peak<break/>hour records</th>
<th align="left">Weekday<break/>records</th>
<th align="left">Weekend<break/>records</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">3149881</td>
<td align="left">1316877</td>
<td align="left">1833004</td>
<td align="left">2266293</td>
<td align="left">883588</td>
</tr>
<tr>
<td align="left">-------------</td>
<td align="left">(41.81%)</td>
<td align="left">(58.19%)</td>
<td align="left">(71.95%)</td>
<td align="left">(28.05%)</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
</sec>
<sec id="s3-6">
<title>3.6 Exploratory data analysis</title>
<p>This step involves examining how traffic speed varies across different locations, time intervals, and weather conditions. By analyzing the merged dataset from heterogeneous traffic data of Smart City and exogenous data of weather sources, patterns are uncovered showing how weather condition like rainfall, humidity, cloudy, and wind speed influence vehicle movement in specific geographic sectors and time frames. Heatmaps, trend plots, and correlation matrices are used to visualize these relationships, providing critical insights into how congestion behavior shifts under varying spatiotemporal and weather contexts. The analysis shown in <xref ref-type="fig" rid="F2">Figure 2</xref> forms a foundation for building weather-aware traffic prediction models.</p>
<fig id="F2" position="float">
<label>FIGURE 2</label>
<caption>
<p>Heat map of correlation between heterogeneous (FCD) features and exogenous (weather conditions, peak hours, week&#xa0;days) features.</p>
</caption>
<graphic xlink:href="frcmn-06-1666487-g002.tif">
<alt-text content-type="machine-generated">Heatmap showing feature correlations with a color gradient from blue for negative correlations to red for positive correlations. Notably, &#x22;Speed&#x22; and &#x22;Label&#x22; have a strong positive correlation of 0.70, whereas &#x22;temp&#x22; negatively correlates with &#x22;humidity&#x22; at -0.81.</alt-text>
</graphic>
</fig>
<p>The analysis of the Average Speed Performance Index (SPI) across weekdays and weekends reveals clear distinctions in traffic behavior within smart cities urban road network. During weekdays (Monday to Friday), SPI values remain relatively high (above 0.68) during the early morning hours (midnight to 4 a.m.), indicating free-flowing traffic shown in <xref ref-type="fig" rid="F3">Figure 3</xref>. However, a sharp decline occurs between 5 a.m. and 9 a.m., marking the onset of peak congestion driven by office commutes and school activity. The lowest SPI values are consistently observed between 7 a.m. and 9 a.m., with Friday exhibiting a slightly more pronounced drop likely due to early closures and pre-prayer movement. A mild recovery follows during midday (10 a.m.&#x2013;2 p.m.), though SPI remains below off-peak levels, with a second dip observed between 3 p.m. and 6 p.m. representing evening rush hour. After 7 p.m., the SPI gradually rises, stabilizing (above 0.64) post-9 p.m. as traffic dissipates shown in <xref ref-type="fig" rid="F3">Figure 3</xref>.</p>
<fig id="F3" position="float">
<label>FIGURE 3</label>
<caption>
<p>Speed performance index variations on weekdays.</p>
</caption>
<graphic xlink:href="frcmn-06-1666487-g003.tif">
<alt-text content-type="machine-generated">Line graph showing the average Social Performance Index (SPI) for Monday to Friday across 24 hours. Each day follows similar trends with peaks around midnight and 23:00, and a drop around 7:00. Data fluctuates throughout the day, increasing again in the late evening.</alt-text>
</graphic>
</fig>
<p>In contrast, weekend traffic patterns (Saturday and Sunday) display a smoother flow with less pronounced rush-hour fluctuations shown in <xref ref-type="fig" rid="F3">Figure 3</xref>. SPI values stay elevated through the early morning (midnight to 5 a.m.) and gradually decline from 6 a.m., reaching their lowest between 9 a.m. and 5 p.m. Sunday shows slightly reduced performance during afternoon hours, reflecting increased recreational or commercial activity. Unlike weekdays, the absence of sharp troughs indicates more dispersed travel behavior. After 6 p.m., SPI steadily recovers toward the late evening on both days.</p>
<p>Together, these patterns highlight distinct temporal traffic characteristics between weekdays and weekends shown in <xref ref-type="fig" rid="F4">Figure 4</xref>. They highlight the importance of incorporating time-of-day and day-of-week variations in predictive traffic models. The insights derived from Smart City real time sensor data support the development of intelligent, context-aware urban traffic management systems. <xref ref-type="fig" rid="F5">Figure 5</xref> shown total number vehicles per hour.</p>
<fig id="F4" position="float">
<label>FIGURE 4</label>
<caption>
<p>Speed performance index variation on weekends.</p>
</caption>
<graphic xlink:href="frcmn-06-1666487-g004.tif">
<alt-text content-type="machine-generated">Line graph depicting Average SPI against Hour of Day for Saturday and Sunday. Both days show a high SPI around midnight, decrease to their lowest around 7 AM, and rise again toward midnight. Saturday, shown in green, consistently remains slightly higher than Sunday, which is in orange.</alt-text>
</graphic>
</fig>
<fig id="F5" position="float">
<label>FIGURE 5</label>
<caption>
<p>Vehicles record per hour.</p>
</caption>
<graphic xlink:href="frcmn-06-1666487-g005.tif">
<alt-text content-type="machine-generated">Bar chart showing total vehicle records per hour across all sectors. Activity is lowest from midnight to 5 a.m., rising steeply to peak between 8 a.m. and 5 p.m., then gradually declining until midnight.</alt-text>
</graphic>
</fig>
<p>The comparison of vehicle record volumes across defined time categories tells a diverse distribution pattern between peak and non-peak hours are presented in <xref ref-type="table" rid="T2">Table 2</xref>. As per the implemented time segmentation logic, seven out of 24&#xa0;h (approximately 29%) are considered peak hours, specifically 8&#x2013;9 a.m., 2&#x2013;3 p.m., 6&#x2013;8 p.m. The remaining 17&#xa0;h (about 71%) are classified as non-peak hours. Despite this uneven distribution of hours, the recorded traffic data show that 1833004 vehicle records occurred during non-peak hours, while 1316877vehicles record were observed in the peak-hour window. This outcome highlights that although peak hours span fewer clock hours, they still account for a substantial portion of the total traffic volume approximately 41.81% of all vehicle records for December 2023. This indicates significant congestion pressure during concentrated periods of urban activity, such as morning and evening commutes or mid-day institutional movement. On the other hand, the larger share of vehicle records during non-peak hours reflects steady urban mobility outside conventional congestion windows. These findings support the relevance of temporal features in traffic modeling and underscore the importance of capturing both regular and irregular traffic behavior in predictive systems.</p>
<sec id="s3-6-1">
<title>3.6.1 Feature importance analysis</title>
<p>To enhance the interpretability of the proposed F-GGRU framework, a feature importance analysis was performed. We applied statistical features selection techniques over the integrated dataset obtained from FCD SCIP and weather sources. The results shown that traffic speed is the most influential predictor of congestion, confirming its strong and direct association with traffic flow conditions. Among exogenous variables, humidity, cloud cover, and wind speed emerged as significant contributors, underscoring the impact of weather factors on congestion dynamics. Temporal indicators such as peak hour and weekend also demonstrated strong influence, reflecting the critical role of time-of-day and day-of-week variations in shaping traffic behavior. In contrast, features such as feels_like showed limited predictive value and was excluded during correlation-based selection. Overall, this analysis provides transparency into how the model utilizes heterogeneous and exogenous inputs, reinforcing that the F-GGRU framework not only delivers higher predictive accuracy but also offers interpretable insights into congestion patterns under boundary conditions.</p>
</sec>
</sec>
<sec id="s3-7">
<title>3.7 Fuzzy logic-automatic labeling for classification</title>
<p>Fuzzy logic automatic labeling is used for classification The mathematical formulation for our traffic congestion classification problem, particularly a binary classification task (Congested vs. Smooth) based on traffic data features like Speed, Hour, Geographic_Sector, and weather condition.</p>
<p>We define a binary classification problem to predict:</p>
<p>
<inline-formula id="inf48">
<mml:math id="m56">
<mml:mrow>
<mml:mi mathvariant="normal">y</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mo>,</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
<p>Where:<list list-type="simple">
<list-item>
<p>&#x2022; y &#x3d; 1: Congested</p>
</list-item>
<list-item>
<p>&#x2022; y &#x3d; 0: Smooth</p>
</list-item>
<list-item>
<p>Input Features:</p>
</list-item>
</list>
</p>
<p>Let the feature vector be: <inline-formula id="inf49">
<mml:math id="m57">
<mml:mrow>
<mml:mi mathvariant="normal">x</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mfenced open="[" close="]" separators="|">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="normal">x</mml:mi>
<mml:mn>1</mml:mn>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi mathvariant="normal">x</mml:mi>
<mml:mn>2</mml:mn>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mo>&#x2026;</mml:mo>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi mathvariant="normal">x</mml:mi>
<mml:mi mathvariant="normal">n</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x2208;</mml:mo>
<mml:msub>
<mml:mi mathvariant="normal">R</mml:mi>
<mml:mi mathvariant="normal">n</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
<p>We have selected total twenty features, here R<sub>n</sub> is set of features. Our selected features are shown in <xref ref-type="table" rid="T2">Table 2</xref>. We use a logistic regression-based model as the core classifier for Prediction Function by <xref ref-type="disp-formula" rid="e8">Equation 8</xref>:<disp-formula id="e8">
<mml:math id="m58">
<mml:mrow>
<mml:mover accent="true">
<mml:mi mathvariant="normal">y</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="normal">f</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi mathvariant="normal">x</mml:mi>
<mml:mo>;</mml:mo>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi mathvariant="normal">&#x3b8;</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="normal">&#x3c3;</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msup>
<mml:mi mathvariant="normal">w</mml:mi>
<mml:mi mathvariant="normal">T</mml:mi>
</mml:msup>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi mathvariant="normal">x</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi mathvariant="normal">b</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(8)</label>
</disp-formula>Where.<list list-type="simple">
<list-item>
<p>&#x2022; <inline-formula id="inf50">
<mml:math id="m59">
<mml:mrow>
<mml:mover accent="true">
<mml:mi>y</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
<mml:mo>:</mml:mo>
<mml:mi>P</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>d</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>c</mml:mi>
<mml:mi>t</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>d</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>p</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>b</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>b</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>t</mml:mi>
<mml:mi>y</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>c</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>n</mml:mi>
<mml:mi>g</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>s</mml:mi>
<mml:mi>t</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf51">
<mml:math id="m60">
<mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi>z</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mn>1</mml:mn>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2b;</mml:mo>
<mml:msup>
<mml:mo>&#x212e;</mml:mo>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>z</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:math>
</inline-formula>: Sigmoid activation function</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf52">
<mml:math id="m61">
<mml:mrow>
<mml:mi>w</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mi mathvariant="double-struck">R</mml:mi>
<mml:mi>n</mml:mi>
</mml:msup>
<mml:mo>:</mml:mo>
<mml:mi>W</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>g</mml:mi>
<mml:mi>h</mml:mi>
<mml:mi>t</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>v</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>c</mml:mi>
<mml:mi>t</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>r</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf53">
<mml:math id="m62">
<mml:mrow>
<mml:mi>b</mml:mi>
<mml:mo mathvariant="double-struck">&#x2208;</mml:mo>
<mml:mi mathvariant="double-struck">R</mml:mi>
<mml:mo>:</mml:mo>
<mml:mi>B</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>s</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>t</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
</list>
</p>
<p>Classification Rule: We may adjust the threshold t &#x2208; (0, 1) depending on class imbalance.<disp-formula id="e9">
<mml:math id="m63">
<mml:mrow>
<mml:msub>
<mml:mover accent="true">
<mml:mi mathvariant="normal">y</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
<mml:mtext>label</mml:mtext>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mfenced open="{" close="" separators="|">
<mml:mrow>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mtext>&#x2009;if&#x2009;</mml:mtext>
<mml:mover accent="true">
<mml:mi mathvariant="normal">y</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
<mml:mo>&#x2265;</mml:mo>
<mml:mn>0.5</mml:mn>
<mml:mtext>&#x2003;</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mtext>Congested</mml:mtext>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
</mml:mrow>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mtext>&#x2009;if&#x2009;</mml:mtext>
<mml:mover accent="true">
<mml:mi mathvariant="normal">y</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.5</mml:mn>
<mml:mtext>&#x2003;</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mtext>Smooth</mml:mtext>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(9)</label>
</disp-formula>
</p>
<p>We use binary cross-entropy (log loss) as a Loss Function:<disp-formula id="e10">
<mml:math id="m64">
<mml:mrow>
<mml:mi mathvariant="script">L</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mover accent="true">
<mml:mi>y</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
<mml:mo>,</mml:mo>
<mml:mi>y</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mo>&#x2212;</mml:mo>
<mml:mrow>
<mml:mfenced open="[" close="]" separators="|">
<mml:mrow>
<mml:mi>y</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>log</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mover accent="true">
<mml:mi>y</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>y</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mi>log</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mover accent="true">
<mml:mi>y</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(10)</label>
</disp-formula>
</p>
<p>The optimization objective over m training samples is:<disp-formula id="e11">
<mml:math id="m65">
<mml:mrow>
<mml:mi mathvariant="script">I</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi mathvariant="normal">&#x3b8;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">m</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mtext>&#x2002;</mml:mtext>
<mml:mrow>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi mathvariant="normal">m</mml:mi>
</mml:munderover>
</mml:mstyle>
<mml:mrow>
<mml:mi mathvariant="script">L</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msup>
<mml:mover accent="true">
<mml:mi mathvariant="normal">y</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi mathvariant="normal">i</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msup>
<mml:mo>,</mml:mo>
<mml:msup>
<mml:mi mathvariant="normal">y</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi mathvariant="normal">i</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msup>
<mml:mtext>&#x2009;</mml:mtext>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(11)</label>
</disp-formula>
</p>
<p>Evaluation Metrics are:<disp-formula id="e12">
<mml:math id="m66">
<mml:mrow>
<mml:mtext>Accuracy</mml:mtext>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mtext mathvariant="bold">TC</mml:mtext>
<mml:mo>&#x2b;</mml:mo>
<mml:mtext mathvariant="bold">TS</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mtext mathvariant="bold">TC</mml:mtext>
<mml:mo>&#x2b;</mml:mo>
<mml:mtext mathvariant="bold">TS</mml:mtext>
<mml:mo>&#x2b;</mml:mo>
<mml:mtext mathvariant="bold">FC</mml:mtext>
<mml:mo>&#x2b;</mml:mo>
<mml:mtext mathvariant="bold">FS</mml:mtext>
<mml:mtext>&#x2009;</mml:mtext>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:math>
<label>(12)</label>
</disp-formula>
<disp-formula id="e13">
<mml:math id="m67">
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>c</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>s</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>n</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi mathvariant="bold-italic">T</mml:mi>
<mml:mi mathvariant="bold-italic">C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">T</mml:mi>
<mml:mi mathvariant="bold-italic">C</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi mathvariant="bold-italic">F</mml:mi>
<mml:mi mathvariant="bold-italic">S</mml:mi>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:math>
<label>(13)</label>
</disp-formula>
<disp-formula id="e14">
<mml:math id="m68">
<mml:mrow>
<mml:mi>R</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>c</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>l</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi mathvariant="bold-italic">T</mml:mi>
<mml:mi mathvariant="bold-italic">C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">T</mml:mi>
<mml:mi mathvariant="bold-italic">C</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi mathvariant="bold-italic">F</mml:mi>
<mml:mi mathvariant="bold-italic">S</mml:mi>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:math>
<label>(14)</label>
</disp-formula>
<disp-formula id="e15">
<mml:math id="m69">
<mml:mrow>
<mml:mi>F</mml:mi>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>S</mml:mi>
<mml:mi>c</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>e</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>2</mml:mn>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mo>.</mml:mo>
<mml:mtext>&#x2002;</mml:mtext>
<mml:mfrac>
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>c</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>s</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>n</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mo>.</mml:mo>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>R</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>c</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>l</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>c</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>s</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>n</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>R</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>c</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>l</mml:mi>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:math>
<label>(15)</label>
</disp-formula>
<list list-type="simple">
<list-item>
<p>&#x2022; <inline-formula id="inf54">
<mml:math id="m70">
<mml:mrow>
<mml:mi mathvariant="bold-italic">T</mml:mi>
<mml:mi mathvariant="bold-italic">C</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>T</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>u</mml:mi>
<mml:mi>e</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>C</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>n</mml:mi>
<mml:mi>g</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>s</mml:mi>
<mml:mi>t</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf55">
<mml:math id="m71">
<mml:mrow>
<mml:mi mathvariant="bold-italic">F</mml:mi>
<mml:mi mathvariant="bold-italic">C</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>F</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>s</mml:mi>
<mml:mi>e</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>C</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>n</mml:mi>
<mml:mi>g</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>s</mml:mi>
<mml:mi>t</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf56">
<mml:math id="m72">
<mml:mrow>
<mml:mi mathvariant="bold-italic">T</mml:mi>
<mml:mi mathvariant="bold-italic">S</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>T</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>u</mml:mi>
<mml:mi>e</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>S</mml:mi>
<mml:mi>m</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>t</mml:mi>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2022; <inline-formula id="inf57">
<mml:math id="m73">
<mml:mrow>
<mml:mi mathvariant="bold-italic">F</mml:mi>
<mml:mi mathvariant="bold-italic">S</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>F</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>s</mml:mi>
<mml:mi>e</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>S</mml:mi>
<mml:mi>m</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>t</mml:mi>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
</list>
</p>
<p>Evaluation metrics of the classification model presents mathematically by <xref ref-type="disp-formula" rid="e12">Equations 12</xref>&#x2013;<xref ref-type="disp-formula" rid="e15">15</xref> presents. In the proposed scenario, accuracy measures the proportion of correctly predicted instances among the total number of samples. It provides a general effectiveness measure by computing how often the model&#x2019;s predictions match the actual class labels. Whereas informative, it may be less reliable when class imbalance is present.</p>
<p>In our scenario Precision evaluates the ratio of true positive predictions to all in-stances predicted as positive. This metric emphasizes the model accuracy by identifying how many of the predicted congestion alerts (positives) are truly congested. It is crucial in applications wherever false positives carry a significant cost. Recall calculates the proportion of actual positive cases that the model correctly identifies. It measures the model&#x2019;s ability to detect all relevant traffic congestion events. High recall ensures that the system minimizes the chances of overlooking actual congested conditions, which is critical for real-time urban traffic management. The F1-score is the harmonic mean of precision and recall. It delivers a balanced evaluation metric that accounts for both false negatives and false positives. This is especially useful when seeking a trade-off between capturing all congestion events and ensuring the accuracy of predictions.</p>
</sec>
<sec id="s3-8">
<title>3.8 Class balancing using generative adversarial network (GAN)</title>
<p>In real-world traffic datasets such as those derived from Smart City, class imbalance is a common issue particularly when congestion events are underrepresented compared to normal traffic conditions. To address this skewed distribution, GAN are employed to balance the imbalance class without disturbing the sequence of data. This approach mitigates bias in the training process, ensuring that the learning algorithm does not disproportionately favor the majority class and keeps predictive fairness across all classes.</p>
<p>A standard GAN architecture comprises two neural networks: a Generator G (z; &#x3b8;g) and a Discriminator D (x; &#x3b8;d), where random noise vector sampled represented by z, from a prior distribution pz(z), and x is a real data sample drawn from the true distribution pdata (x). The generator learns to produce synthetic data G (z) that mimics the true distribution, whereas the discriminator attempts to distinguish between real and generated samples.</p>
<p>The minimax optimization objective is formally defined as:<disp-formula id="e16">
<mml:math id="m74">
<mml:mrow>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:mi mathvariant="italic">min</mml:mi>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mi>G</mml:mi>
</mml:mtd>
</mml:mtr>
</mml:mtable>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:mi mathvariant="italic">max</mml:mi>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mi>D</mml:mi>
</mml:mtd>
</mml:mtr>
</mml:mtable>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msub>
<mml:mi>L</mml:mi>
<mml:mtext mathvariant="italic">GAN</mml:mtext>
</mml:msub>
<mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi>D</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mtext>&#x2009;</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mi>E</mml:mi>
<mml:mrow>
<mml:mi>x</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mo>&#x223c;</mml:mo>
<mml:mtext mathvariant="italic">pdata&#x2009;</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mfenced open="[" close="]" separators="|">
<mml:mrow>
<mml:mtext>log</mml:mtext>
<mml:mi>D</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
</mml:mrow>
<mml:msub>
<mml:mi>E</mml:mi>
<mml:mrow>
<mml:mi>z</mml:mi>
<mml:mo>&#x223c;</mml:mo>
<mml:mi>p</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi>z</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:msub>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mrow>
<mml:mrow>
<mml:mfenced open="[" close="]" separators="|">
<mml:mrow>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>log</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>D</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi>G</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi>z</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(16)</label>
</disp-formula>
</p>
<p>Through iterative adversarial training, the generator gradually improves its ability to produce high-fidelity minority class data points that the discriminator cannot distinguish from real samples. Once the GAN reaches equilibrium, synthetic minority data is combined with the original dataset to form a balanced training set. This enhances model generalizability, reduces classification bias, and improves performance on previously underrepresented classes during evaluation.</p>
</sec>
<sec id="s3-9">
<title>3.9 Impact of hybrid F-GGRU framework on society</title>
<p>The hybrid F-GGRU framework acts a valuable role in administrative urban development by highlighting places that frequently involvement traffic congestion. This awareness enables city planners to avoid further constructions of public commercial centers, educational institutions and patrol pumps in congestion proven locations in city infrastructure they are already overburdened areas. The hybrid F-GGRU framework not only improves daily mobility for citizens but also supports long-term urban sustainability and improves the livability of cities.</p>
</sec>
</sec>
<sec sec-type="results|discussion" id="s4">
<title>4 Results and discussion</title>
<p>This study evaluates the effectiveness of Gated Recurrent Unit (GRU) models across four experimental configurations designed to enhance traffic congestion prediction accuracy. The experiments were systematically structured as follows: (i) using raw FCD alone, (ii) GAN balanced classification FCD (iii) Combine FCD with weather conditions (FCD&#x2013;weather) features from weather APIs, and (iv) Applying GANs for class balancing over the merged FCD&#x2013;weather dataset. These configurations reflect a progressive enhancement in data richness and preprocessing sophistication, enabling the assessment of each augmentation&#x2019;s contribution to the model&#x2019;s predictive performance.</p>
<p>The dataset used in this analysis comprises minute-level traffic records for the month of December 2023, collected from the Smart City real time surveillance system, covering seven major urban sectors. Traffic behavior was analyzed at fine temporal granularity, where each segment was annotated using fuzzy logic based labeling strategies derived from vehicle speed and time-based thresholds. Our analysis described in below four scenarios.</p>
<sec id="s4-1">
<title>4.1 Comparative analysis of F-GGRU framework and benchmark models</title>
<p>In our study, a range of machine learning, classical deep learning, and advanced deep learning models were implemented on below four types of features i. FCD features dataset, ii. GAN based FCD features dataset, iii. Integrated heterogeneous (FCD) and exogenous features dataset, iv. GAN based balanced Integrated heterogeneous (FCD) and exogenous features dataset. The Benchmark Models include widely used approaches such as AdaBoost (<xref ref-type="bibr" rid="B32">Wang et al., 2016</xref>), XGBoost (<xref ref-type="bibr" rid="B36">Yu and Xie, 2024</xref>), Decision Trees (<xref ref-type="bibr" rid="B15">Lartey et al., 2021</xref>) as base learners alongside Linear Regression (<xref ref-type="bibr" rid="B13">Hazarika et al., 2024</xref>), and K-Nearest Neighbors KNN (<xref ref-type="bibr" rid="B7">API, 2025</xref>). Additionally, Artificial Neural Networks (ANNs) and CNN were applied. Deep learning model employed in the analysis include Gated Recurrent Unit (GRU). Furthermore, hybrid architectures were explored through F-GGRU framework. Given the spatiotemporal characteristics of the dataset, F-GGRU framework demonstrated relatively stronger performance. Among these, the F-GGRU framework yielded the most favorable outcomes. The subsequent sections provide a concise overview of the F-GGRU framework, followed by an explanation of the hybrid approach integrating this model.</p>
<sec id="s4-1-1">
<title>4.1.1 Models training and evaluation</title>
<p>The entire dataset is split into 70% training and 30% testing sets represented in algorithm 5. During the training phase, the model learns to minimize the prediction error between actual and predicted speeds. Once trained, the model is evaluated using standard performance metrics, such as accuracy, precision, recall, and F1-score, especially focusing on the congested class to validate its reliability under real-world conditions. The results are then presented in terms of the predicted traffic state, facilitating decision-making for traffic control authorities.</p>
</sec>
<sec id="s4-1-2">
<title>4.1.2 Scenario 1: benchmark models and GRU analysis on unbalanced floating car data features dataset</title>
<p>In the initial evaluation using the selected FCD features presented in <xref ref-type="table" rid="T1">Table 1</xref> without class balancing, performance variation was observed across classical ML and DL models and the models results shown in <xref ref-type="table" rid="T3">Table 3</xref>. Logistic Regression, although simple, showed relatively moderate accuracy (74%) and a notably low precision (0.56), indicating high false-positive rates. Decision Tree and Random Forest showed balanced precision and recall, but accuracy remained in the 65%&#x2013;70% range. Notably, ensemble models like Gradient Boosting, XGBoost, and AdaBoost reached slightly better accuracy (&#x223c;75%), though their F1-scores hovered around 0.66. Among all models, GRU with linear activation stood out with an F1-score of 0.79 and the highest precision (0.81), highlighting its superior capability in capturing sequential dependencies in temporal traffic data even without class balancing.</p>
<table-wrap id="T3" position="float">
<label>TABLE 3</label>
<caption>
<p>Benchmark models accuracy results on heterogeneous FCD features.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Model setup</th>
<th align="center">Accuracy (%)</th>
<th align="center">Precision</th>
<th align="center">Recall</th>
<th align="center">F1-score</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Logistic Regression</td>
<td align="center">74</td>
<td align="center">0.56</td>
<td align="center">0.74</td>
<td align="center">0.6425</td>
</tr>
<tr>
<td align="left">Decision Tree</td>
<td align="center">65</td>
<td align="center">0.67</td>
<td align="center">0.65</td>
<td align="center">0.66349</td>
</tr>
<tr>
<td align="left">Random Forest</td>
<td align="center">70</td>
<td align="center">0.67</td>
<td align="center">0.70</td>
<td align="center">0.6872</td>
</tr>
<tr>
<td align="left">Gradient Boosting</td>
<td align="center">75</td>
<td align="center">0.71</td>
<td align="center">0.75</td>
<td align="center">0.66187</td>
</tr>
<tr>
<td align="left">XGBoost</td>
<td align="center">75</td>
<td align="center">0.70</td>
<td align="center">0.75</td>
<td align="center">0.670464</td>
</tr>
<tr>
<td align="left">AdaBoost</td>
<td align="center">75</td>
<td align="center">0.71</td>
<td align="center">0.75</td>
<td align="center">0.644089</td>
</tr>
<tr>
<td align="left">KNN</td>
<td align="center">71</td>
<td align="center">0.67</td>
<td align="center">0.713</td>
<td align="center">0.6877</td>
</tr>
<tr>
<td align="left">Artificial Neural Network</td>
<td align="center">75</td>
<td align="center">0.70</td>
<td align="center">0.752</td>
<td align="center">0.6625</td>
</tr>
<tr>
<td align="left">GRU</td>
<td align="center">76</td>
<td align="center">0.81</td>
<td align="center">0.77</td>
<td align="center">0.79</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s4-1-3">
<title>4.1.3 Scenario 2: benchmark models and F-GGRU framework analysis on generative adversarial networks based balanced floating car data features dataset</title>
<p>Upon applying GANs to balance class distributions of FCD features presented in <xref ref-type="table" rid="T1">Table 1</xref>, a significant performance boost was evident across nearly all models and results shown in <xref ref-type="table" rid="T4">Table 4</xref>. Logistic Regression, which previously had weak precision, achieved a perfect recall (1.0) and improved F1-score (0.85). Similarly, ensemble models like Gradient Boosting, AdaBoost, and XGBoost consistently achieved an accuracy of 83% with strong F1-scores around 0.85, indicating balanced predictive strength. The F-GGRU framework further excelled in this scenario, reaching an accuracy of 84% and maintaining high precision (0.78) and recall (0.98), underscoring the effectiveness of combining generative resampling with temporal deep learning in imbalanced classification tasks.</p>
<table-wrap id="T4" position="float">
<label>TABLE 4</label>
<caption>
<p>Benchmark models and F-GGRU framework accuracy on GAN applied on FCD features.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Model setup</th>
<th align="center">Accuracy (%)</th>
<th align="center">Precision</th>
<th align="center">Recall</th>
<th align="center">F1-score</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Logistic Regression</td>
<td align="center">83</td>
<td align="center">0.74</td>
<td align="center">1.0</td>
<td align="center">0.85</td>
</tr>
<tr>
<td align="left">Decision Tree</td>
<td align="center">77</td>
<td align="center">0.78</td>
<td align="center">0.75</td>
<td align="center">0.76</td>
</tr>
<tr>
<td align="left">Random Forest</td>
<td align="center">80</td>
<td align="center">0.77</td>
<td align="center">0.85</td>
<td align="center">0.81</td>
</tr>
<tr>
<td align="left">Gradient Boosting</td>
<td align="center">83</td>
<td align="center">0.75</td>
<td align="center">0.99</td>
<td align="center">0.85</td>
</tr>
<tr>
<td align="left">XGBoost</td>
<td align="center">83</td>
<td align="center">0.75</td>
<td align="center">0.98</td>
<td align="center">0.85</td>
</tr>
<tr>
<td align="left">AdaBoost</td>
<td align="center">83</td>
<td align="center">0.75</td>
<td align="center">0.99</td>
<td align="center">0.85</td>
</tr>
<tr>
<td align="left">KNN</td>
<td align="center">80</td>
<td align="center">0.77</td>
<td align="center">0.87</td>
<td align="center">0.82</td>
</tr>
<tr>
<td align="left">ANN</td>
<td align="center">83</td>
<td align="center">0.75</td>
<td align="center">0.98</td>
<td align="center">0.85</td>
</tr>
<tr>
<td align="left">F-GGRU Framework</td>
<td align="center">
<bold>84</bold>
</td>
<td align="center">
<bold>0.78</bold>
</td>
<td align="center">
<bold>0.98</bold>
</td>
<td align="center">
<bold>0.85</bold>
</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s4-1-4">
<title>4.1.4 Scenario 3: benchmark models and F-GRU framework analysis on unbalanced integrated floating car data and exogenous features dataset</title>
<p>Integrating external exogenous features presented in <xref ref-type="table" rid="T1">Table 1</xref> with the FCD features presented in <xref ref-type="table" rid="T1">Table 1</xref> provided additional context for congestion prediction, and models responded well to the enriched feature space. Integrating exogenous features presented in <xref ref-type="table" rid="T1">Table 1</xref> with FCD features dataset provided additional context for congestion prediction, and models responded well to the enriched feature space. While benchmark models Logistic Regression and Decision Trees showed modest improvements, reaching up to 74% accuracy and F1-scores of 0.85 and 0.76 respectively, ensemble techniques retained their strength, maintaining accuracy levels around 75% with improved recall and F1-scores (&#x223c;0.85). Notably, the fuzzy logic based labeling GRU (F-GRU) framework achieved 83% accuracy and a superior F1-score of 0.88, suggesting that weather context synergizes well with temporal dependencies in traffic flow modeling. Comparative results of models presented in <xref ref-type="table" rid="T5">Table 5</xref>.</p>
<table-wrap id="T5" position="float">
<label>TABLE 5</label>
<caption>
<p>Benchmark models and F-GRU accuracy results on unbalanced integrated features space dataset.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="center">Model setup</th>
<th align="center">Accuracy (%)</th>
<th align="center">Precision</th>
<th align="center">Recall</th>
<th align="center">F1-score</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">Logistic Regression</td>
<td align="center">74</td>
<td align="center">0.74</td>
<td align="center">1</td>
<td align="center">85</td>
</tr>
<tr>
<td align="center">Decision Tree</td>
<td align="center">65</td>
<td align="center">0.78</td>
<td align="center">0.75</td>
<td align="center">76</td>
</tr>
<tr>
<td align="center">Random Forest</td>
<td align="center">69</td>
<td align="center">0.77</td>
<td align="center">0.83</td>
<td align="center">0.80</td>
</tr>
<tr>
<td align="center">Gradient Boosting</td>
<td align="center">75</td>
<td align="center">0.75</td>
<td align="center">0.98</td>
<td align="center">0.85</td>
</tr>
<tr>
<td align="center">XGBoost</td>
<td align="center">75</td>
<td align="center">0.75</td>
<td align="center">0.98</td>
<td align="center">0.85</td>
</tr>
<tr>
<td align="center">AdaBoost</td>
<td align="center">75</td>
<td align="center">0.75</td>
<td align="center">0.99</td>
<td align="center">0.85</td>
</tr>
<tr>
<td align="center">KNN</td>
<td align="center">71</td>
<td align="center">0.77</td>
<td align="center">0.87</td>
<td align="center">0.82</td>
</tr>
<tr>
<td align="center">ANN</td>
<td align="center">75</td>
<td align="center">0.75</td>
<td align="center">0.98</td>
<td align="center">0.85</td>
</tr>
<tr>
<td align="center">F-GRU</td>
<td align="center">
<bold>83</bold>
</td>
<td align="center">
<bold>0.89</bold>
</td>
<td align="center">
<bold>0.87</bold>
</td>
<td align="center">
<bold>0.88</bold>
</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s4-1-5">
<title>4.1.5 Scenario 4: benchmark models and F-GGRU framework analysis on generative adversarial networks based balanced integrated features space</title>
<p>This scenario produced the most pronounced results presented in <xref ref-type="table" rid="T6">Table 6</xref>, where both class balancing (via GAN) and multi-source data fusion (FCD &#x2b; weather) were employed. All models benefited from this approach, with ensemble methods like Gradient Boosting, Ada-Boost, and XG-Boost reaching consistent scores accuracy at 83%, precision at 0.87, and F1-scores around 0.83. KNN also showed strong performance (81% accuracy and 0.81 F1-score). The F-GGRU framework, however, dominated this setting with a remarkable 98% accuracy and F1-score of 0.98, authenticating its robustness in sequence modeling and its adaptability to fused and balanced datasets.</p>
<table-wrap id="T6" position="float">
<label>TABLE 6</label>
<caption>
<p>Accuracy table of benchmark models and F-GGRU framework on GANs applied integrated data.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="center">Model setup</th>
<th align="center">Accuracy (%)</th>
<th align="center">Precision</th>
<th align="center">Recall</th>
<th align="center">F1-score</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">Decision Tree</td>
<td align="center">77</td>
<td align="center">0.77</td>
<td align="center">0.77</td>
<td align="center">0.77</td>
</tr>
<tr>
<td align="center">Random Forest</td>
<td align="center">79</td>
<td align="center">0.80</td>
<td align="center">0.80</td>
<td align="center">0.80</td>
</tr>
<tr>
<td align="center">KNN</td>
<td align="center">81</td>
<td align="center">0.82</td>
<td align="center">0.81</td>
<td align="center">0.81</td>
</tr>
<tr>
<td align="center">Logistic Regression</td>
<td align="center">83</td>
<td align="center">0.87</td>
<td align="center">0.83</td>
<td align="center">0.83</td>
</tr>
<tr>
<td align="center">Gradient Boosting</td>
<td align="center">83</td>
<td align="center">0.87</td>
<td align="center">0.84</td>
<td align="center">0.83</td>
</tr>
<tr>
<td align="center">XGBoost</td>
<td align="center">83</td>
<td align="center">0.87</td>
<td align="center">0.84</td>
<td align="center">0.83</td>
</tr>
<tr>
<td align="center">AdaBoost</td>
<td align="center">83</td>
<td align="center">0.87</td>
<td align="center">0.83</td>
<td align="center">0.83</td>
</tr>
<tr>
<td align="center">ANN</td>
<td align="center">83</td>
<td align="center">0.86</td>
<td align="center">0.83</td>
<td align="center">0.83</td>
</tr>
<tr>
<td align="center">F-GGRU Framework</td>
<td align="center">
<bold>0.98</bold>
</td>
<td align="center">
<bold>0.99</bold>
</td>
<td align="center">
<bold>0.98</bold>
</td>
<td align="center">
<bold>0.98</bold>
</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>The inclusion of weather variables such as humidity, wind speed, temperature, and overall weather conditions demonstrated a measurable impact on prediction accuracy, reflecting the influence of environmental dynamics on congestion trends. Furthermore, the application of GANs to balance class representation effectively mitigated the skew typically observed in real-world traffic datasets, especially between congested and smooth instances. The results highlight that the final F-GGRU framework, trained on the GAN-augmented and exogenous features (weather conditions, peak hours, weekend)-enhanced dataset, outperformed other configurations in terms of classification metrics including F1-score, precision, and Recall. This confirms the benefit of both data balancing and multimodal data integration in smart traffic prediction systems. This benchmarking not only establishes the superiority of the proposed F-GGRU framework but also fulfills the requirement of comparing its performance against state-of-the-art deep learning ANN and in <xref ref-type="table" rid="T6">Table 6</xref> mentioned machine learning algorithms.</p>
<p>To evaluate the classification performance of each model, the Receiver Operating Characteristic (ROC) curves for both traffic congestion classes&#x2014;Congested (0) and Smooth (1)&#x2014;were plotted for AdaBoost shown in <xref ref-type="fig" rid="F6">Figure 6a</xref>, ANN shown in <xref ref-type="fig" rid="F6">Figure 6b</xref>, and the proposed hybrid F-GGRU framework shown in <xref ref-type="fig" rid="F6">Figure 6c</xref>.</p>
<fig id="F6" position="float">
<label>FIGURE 6</label>
<caption>
<p>
<bold>(A)</bold> ROC curve for both classes congested and smooth using AdaBoost model <bold>(B)</bold> ROC Curve for both classes congested and smooth using ANN model <bold>(C)</bold>. ROC curve for both classes congested and smooth using F-GGRU framework.</p>
</caption>
<graphic xlink:href="frcmn-06-1666487-g006.tif">
<alt-text content-type="machine-generated">Three ROC curve graphs comparing Congested and Smooth classes are shown for different models. (a) AdaBoost model displays an AUC of 0.78 for both classes, with curves closely following each other. (b) ANN model shows a higher AUC of 0.88 for both classes, with the curves diverging more significantly from the diagonal. (c) F-GGRU framework exhibits an AUC of 0.99 for the Smooth class and 0.98 for Congested, demonstrating the best performance with curves near the top left corner.</alt-text>
</graphic>
</fig>
<p>The ROC curve for the AdaBoost model indicates moderate discriminative power, with AUC values of 0.78 for both classes, suggesting limited sensitivity in differentiating between congested and smooth traffic under the current feature representation. The performance improved considerably with the ANN model, where both classes achieved an AUC of 0.88, reflecting enhanced predictive capacity and more reliable generalization over unseen data.</p>
<p>However, the most significant improvement was observed in the F-GGRU frame-work with 98% accuracy, which delivered near-perfect separation with an AUC of 0.99 for both Congested and Smooth classes. The ROC curves of F-GGRU framework closely follow the top-left corner, indicating a very high true positive rate with a minimal false positive rate. This level of precision can be attributed to the model&#x2019;s ability to incorporate temporal patterns and weather-related variations more effectively than traditional ensemble or feed forward architectures. In summary, the progression from AdaBoost to F-GGRU framework highlights the benefits of deep temporal modeling and fusion strategies in enhancing traffic congestion prediction accuracy.</p>
<p>Across all scenarios, the proposed F-GGRU framework with linear activation function consistently outperformed from traditional ML models, Multilevel-Gated Recurrent Unit (MGRU) model (<xref ref-type="bibr" rid="B26">Sravani et al., 2024</xref>) and Conv-Bi-LSTM and GRU-LSTM (<xref ref-type="bibr" rid="B38">Zafar et al., 2022b</xref>), especially when supported by balanced data and contextual weather features. GAN-based augmentation and data fusion significantly enhanced classification robustness, reducing bias and improving generalizability. These findings validate the effectiveness of integrating generative resampling with temporal deep learning frameworks for smart city traffic analytics.</p>
</sec>
</sec>
<sec id="s4-2">
<title>4.2 Hyperparameter tuning and optimal F-GGRU framework configuration</title>
<sec id="s4-2-1">
<title>4.2.1 Hyperparameter tuning of F-GGRU on SCIP dataset</title>
<p>A thorough hyperparameter tuning process was carried out to optimize the proposed F-GGRU framework. Sixteen experimental trials were conducted by systematically adjusting the learning rate, batch size, model depth, hidden units, dropout rate, and activation functions. The results <xref ref-type="table" rid="T7">Table 7</xref> demonstrated that the model achieved consistently strong performance across all configurations, with validation accuracy of approximately 98.5%, precision of 97.0%, recall of 100%, F1-score of 98.5%, and AUC values exceeding 0.991. Among the tested configurations, the combination of a learning rate of 0.0005, batch size of 128, hidden units (128, 64, 32), dropout rate of 0.3, and tanh activation function achieved the best trade-off between accuracy and generalization, and was therefore selected as the final model.</p>
<table-wrap id="T7" position="float">
<label>TABLE 7</label>
<caption>
<p>Hyperparameter tuning results for the F-GGRU framework on SCIP dataset</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Trial</th>
<th align="left">Learning rate</th>
<th align="left">Batch size</th>
<th align="left">Hidden units (Layers)</th>
<th align="left">Dropout</th>
<th align="left">Activation</th>
<th align="left">Accuracy</th>
<th align="left">Precision</th>
<th align="left">Recall</th>
<th align="left">F1-score</th>
<th align="left">AUC</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">1</td>
<td align="left">0.001</td>
<td align="left">64</td>
<td align="left">(64, 32, 16)</td>
<td align="left">0.2</td>
<td align="left">ReLU</td>
<td align="left">0.9847</td>
<td align="left">0.9702</td>
<td align="left">1.0000</td>
<td align="left">0.9849</td>
<td align="left">0.9912</td>
</tr>
<tr>
<td align="left">2</td>
<td align="left">0.001</td>
<td align="left">128</td>
<td align="left">(128, 64, 32)</td>
<td align="left">0.3</td>
<td align="left">Tanh</td>
<td align="left">0.9848</td>
<td align="left">0.9704</td>
<td align="left">1.0000</td>
<td align="left">0.9850</td>
<td align="left">0.9914</td>
</tr>
<tr>
<td align="left">3</td>
<td align="left">0.001</td>
<td align="left">256</td>
<td align="left">(128, 64, 32)</td>
<td align="left">0.4</td>
<td align="left">ReLU</td>
<td align="left">0.9846</td>
<td align="left">0.9701</td>
<td align="left">1.0000</td>
<td align="left">0.9848</td>
<td align="left">0.9911</td>
</tr>
<tr>
<td align="left">4</td>
<td align="left">0.0005</td>
<td align="left">64</td>
<td align="left">(64, 32, 16)</td>
<td align="left">0.2</td>
<td align="left">Tanh</td>
<td align="left">0.9848</td>
<td align="left">0.9703</td>
<td align="left">1.0000</td>
<td align="left">0.9849</td>
<td align="left">0.9913</td>
</tr>
<tr>
<td align="left">5</td>
<td align="left">0.0005</td>
<td align="left">128</td>
<td align="left">(128, 64, 32)</td>
<td align="left">0.3</td>
<td align="left">Tanh</td>
<td align="left">0.9848</td>
<td align="left">0.9704</td>
<td align="left">1.0000</td>
<td align="left">0.9850</td>
<td align="left">0.9914</td>
</tr>
<tr>
<td align="left">6</td>
<td align="left">0.0005</td>
<td align="left">256</td>
<td align="left">(256, 128, 64)</td>
<td align="left">0.3</td>
<td align="left">ReLU</td>
<td align="left">0.9847</td>
<td align="left">0.9703</td>
<td align="left">1.0000</td>
<td align="left">0.9849</td>
<td align="left">0.9912</td>
</tr>
<tr>
<td align="left">7</td>
<td align="left">0.0001</td>
<td align="left">64</td>
<td align="left">(64, 32, 16)</td>
<td align="left">0.2</td>
<td align="left">ReLU</td>
<td align="left">0.9847</td>
<td align="left">0.9702</td>
<td align="left">1.0000</td>
<td align="left">0.9849</td>
<td align="left">0.9912</td>
</tr>
<tr>
<td align="left">8</td>
<td align="left">0.0001</td>
<td align="left">128</td>
<td align="left">(128, 64, 32)</td>
<td align="left">0.3</td>
<td align="left">Tanh</td>
<td align="left">0.9848</td>
<td align="left">0.9704</td>
<td align="left">1.0000</td>
<td align="left">0.9850</td>
<td align="left">0.9913</td>
</tr>
<tr>
<td align="left">9</td>
<td align="left">0.0001</td>
<td align="left">256</td>
<td align="left">(128, 64, 32)</td>
<td align="left">0.4</td>
<td align="left">ReLU</td>
<td align="left">0.9846</td>
<td align="left">0.9701</td>
<td align="left">1.0000</td>
<td align="left">0.9848</td>
<td align="left">0.9911</td>
</tr>
<tr>
<td align="left">10</td>
<td align="left">0.001</td>
<td align="left">64</td>
<td align="left">(128, 64, 32)</td>
<td align="left">0.3</td>
<td align="left">Tanh</td>
<td align="left">0.9847</td>
<td align="left">0.9702</td>
<td align="left">1.0000</td>
<td align="left">0.9849</td>
<td align="left">0.9912</td>
</tr>
<tr>
<td align="left">11</td>
<td align="left">0.001</td>
<td align="left">128</td>
<td align="left">(256, 128, 64)</td>
<td align="left">0.3</td>
<td align="left">ReLU</td>
<td align="left">0.9847</td>
<td align="left">0.9703</td>
<td align="left">1.0000</td>
<td align="left">0.9849</td>
<td align="left">0.9912</td>
</tr>
<tr>
<td align="left">
<bold>12</bold>
</td>
<td align="left">
<bold>0.0005</bold>
</td>
<td align="left">
<bold>128</bold>
</td>
<td align="left">
<bold>(128, 64, 32)</bold>
</td>
<td align="left">
<bold>0.3</bold>
</td>
<td align="left">
<bold>Tanh</bold>
</td>
<td align="left">
<bold>0.9848&#x2a;</bold>
</td>
<td align="left">
<bold>0.9704&#x2a;</bold>
</td>
<td align="left">
<bold>1.0000&#x2a;</bold>
</td>
<td align="left">
<bold>0.9850&#x2a;</bold>
</td>
<td align="left">
<bold>0.9914&#x2a;</bold>
</td>
</tr>
<tr>
<td align="left">13</td>
<td align="left">0.0005</td>
<td align="left">64</td>
<td align="left">(256, 128, 64)</td>
<td align="left">0.2</td>
<td align="left">ReLU</td>
<td align="left">0.9847</td>
<td align="left">0.9702</td>
<td align="left">1.0000</td>
<td align="left">0.9849</td>
<td align="left">0.9912</td>
</tr>
<tr>
<td align="left">14</td>
<td align="left">0.0005</td>
<td align="left">256</td>
<td align="left">(128, 64, 32)</td>
<td align="left">0.4</td>
<td align="left">Tanh</td>
<td align="left">0.9846</td>
<td align="left">0.9701</td>
<td align="left">1.0000</td>
<td align="left">0.9848</td>
<td align="left">0.9911</td>
</tr>
<tr>
<td align="left">15</td>
<td align="left">0.0001</td>
<td align="left">128</td>
<td align="left">(128, 64, 32)</td>
<td align="left">0.3</td>
<td align="left">ReLU</td>
<td align="left">0.9847</td>
<td align="left">0.9703</td>
<td align="left">1.0000</td>
<td align="left">0.9849</td>
<td align="left">0.9912</td>
</tr>
<tr>
<td align="left">16</td>
<td align="left"/>
<td align="left">128</td>
<td align="left">(128, 64, 32)</td>
<td align="left">0.3</td>
<td align="left">Tanh</td>
<td align="left">0.9848</td>
<td align="left">0.9704</td>
<td align="left">1.0000</td>
<td align="left">0.9850</td>
<td align="left">0.9913</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s4-2-2">
<title>4.2.2 Hyperparameter tuning of F-GGRU on CityPulse dataset</title>
<p>The hyperparameter tuning of the F-GGRU framework analysis presented in <xref ref-type="table" rid="T8">Table 8</xref> on the CityPulse weather conditions data integrated with FCD dataset (<xref ref-type="bibr" rid="B1">Aarhus, 2025</xref>), conducted across 16 trials, successfully identified an optimal configuration (Trial 5: LR &#x3d; 0.001, Batch &#x3d; 256, Units &#x3d; (64,64,32), Dropout &#x3d; 0.2, Activation &#x3d; Tanh) that achieved exceptional performance (Accuracy &#x3d; 0.9942, AUC &#x3d; 0.9976) while consistently maintaining perfect recall (1.000) across all trials. The results demonstrated a pronounced sensitivity to batch size, with larger batches (256) significantly outperforming smaller ones (128), and revealed the superiority of a wider, symmetric network architecture paired with moderate regularization. This rigorous tuning process not only optimized the model for the CityPulse dataset but also, when contrasted with the robust performance on the SCIP dataset, provided strong evidence for the generalizability and robustness of the F-GGRU framework across diverse real-world sensing data environments.</p>
<table-wrap id="T8" position="float">
<label>TABLE 8</label>
<caption>
<p>Hyperparameter tuning results for the F-GGRU framework on CityPulse dataset.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Trial</th>
<th align="left">Learning rate</th>
<th align="left">Batch size</th>
<th align="left">Hidden units (Layers)</th>
<th align="left">Dropout</th>
<th align="left">Activation</th>
<th align="left">Val_Acc</th>
<th align="left">Precision</th>
<th align="left">Recall</th>
<th align="left">F1-score</th>
<th align="left">AUC</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">1</td>
<td align="left">0.001</td>
<td align="left">128</td>
<td align="left">(64, 64, 32)</td>
<td align="left">0.2</td>
<td align="left">tanh</td>
<td align="left">0.9845</td>
<td align="left">0.9701</td>
<td align="left">1.0000</td>
<td align="left">0.9850</td>
<td align="left">0.9910</td>
</tr>
<tr>
<td align="left">2</td>
<td align="left">0.001</td>
<td align="left">128</td>
<td align="left">(64, 64, 32)</td>
<td align="left">0.3</td>
<td align="left">tanh</td>
<td align="left">0.9852</td>
<td align="left">0.9710</td>
<td align="left">1.0000</td>
<td align="left">0.9854</td>
<td align="left">0.9915</td>
</tr>
<tr>
<td align="left">3</td>
<td align="left">0.001</td>
<td align="left">128</td>
<td align="left">(128, 64, 32)</td>
<td align="left">0.2</td>
<td align="left">tanh</td>
<td align="left">0.9868</td>
<td align="left">0.9725</td>
<td align="left">1.0000</td>
<td align="left">0.9861</td>
<td align="left">0.9920</td>
</tr>
<tr>
<td align="left">4</td>
<td align="left">0.001</td>
<td align="left">128</td>
<td align="left">(128, 64, 32)</td>
<td align="left">0.3</td>
<td align="left">tanh</td>
<td align="left">0.9860</td>
<td align="left">0.9718</td>
<td align="left">1.0000</td>
<td align="left">0.9859</td>
<td align="left">0.9917</td>
</tr>
<tr>
<td align="left">5</td>
<td align="left">0.001</td>
<td align="left">256</td>
<td align="left">(64, 64, 32)</td>
<td align="left">0.2</td>
<td align="left">tanh</td>
<td align="left">
<bold>0.9942</bold>
</td>
<td align="left">0.9870</td>
<td align="left">1.0000</td>
<td align="left">
<bold>0.9942</bold>
</td>
<td align="left">
<bold>0.9976</bold>
</td>
</tr>
<tr>
<td align="left">6</td>
<td align="left">0.001</td>
<td align="left">256</td>
<td align="left">(64, 64, 32)</td>
<td align="left">0.3</td>
<td align="left">tanh</td>
<td align="left">0.9935</td>
<td align="left">0.9865</td>
<td align="left">1.0000</td>
<td align="left">0.9932</td>
<td align="left">0.9973</td>
</tr>
<tr>
<td align="left">7</td>
<td align="left">0.001</td>
<td align="left">256</td>
<td align="left">(128, 64, 32)</td>
<td align="left">0.2</td>
<td align="left">tanh</td>
<td align="left">0.9928</td>
<td align="left">0.9855</td>
<td align="left">1.0000</td>
<td align="left">0.9927</td>
<td align="left">0.9970</td>
</tr>
<tr>
<td align="left">8</td>
<td align="left">0.001</td>
<td align="left">256</td>
<td align="left">(128, 64, 32)</td>
<td align="left">0.3</td>
<td align="left">tanh</td>
<td align="left">0.9918</td>
<td align="left">0.9842</td>
<td align="left">1.0000</td>
<td align="left">0.9920</td>
<td align="left">0.9965</td>
</tr>
<tr>
<td align="left">9</td>
<td align="left">0.0005</td>
<td align="left">128</td>
<td align="left">(64, 64, 32)</td>
<td align="left">0.2</td>
<td align="left">tanh</td>
<td align="left">0.9850</td>
<td align="left">0.9705</td>
<td align="left">1.0000</td>
<td align="left">0.9850</td>
<td align="left">0.9912</td>
</tr>
<tr>
<td align="left">10</td>
<td align="left">0.0005</td>
<td align="left">128</td>
<td align="left">(64, 64, 32)</td>
<td align="left">0.3</td>
<td align="left">tanh</td>
<td align="left">0.9848</td>
<td align="left">0.9704</td>
<td align="left">1.0000</td>
<td align="left">0.9850</td>
<td align="left">0.9914</td>
</tr>
<tr>
<td align="left">11</td>
<td align="left">0.0005</td>
<td align="left">128</td>
<td align="left">(128, 64, 32)</td>
<td align="left">0.2</td>
<td align="left">tanh</td>
<td align="left">0.9856</td>
<td align="left">0.9715</td>
<td align="left">1.0000</td>
<td align="left">0.9856</td>
<td align="left">0.9918</td>
</tr>
<tr>
<td align="left">12</td>
<td align="left">0.0005</td>
<td align="left">128</td>
<td align="left">(128, 64, 32)</td>
<td align="left">0.3</td>
<td align="left">tanh</td>
<td align="left">0.9848</td>
<td align="left">0.9704</td>
<td align="left">1.0000</td>
<td align="left">0.9850</td>
<td align="left">0.9914</td>
</tr>
<tr>
<td align="left">13</td>
<td align="left">0.0005</td>
<td align="left">256</td>
<td align="left">(64, 64, 32)</td>
<td align="left">0.2</td>
<td align="left">tanh</td>
<td align="left">0.9920</td>
<td align="left">0.9850</td>
<td align="left">1.0000</td>
<td align="left">0.9925</td>
<td align="left">0.9960</td>
</tr>
<tr>
<td align="left">14</td>
<td align="left">0.0005</td>
<td align="left">256</td>
<td align="left">(64, 64, 32)</td>
<td align="left">0.3</td>
<td align="left">tanh</td>
<td align="left">0.9915</td>
<td align="left">0.9846</td>
<td align="left">1.0000</td>
<td align="left">0.9920</td>
<td align="left">0.9962</td>
</tr>
<tr>
<td align="left">15</td>
<td align="left">0.0005</td>
<td align="left">256</td>
<td align="left">(128, 64, 32)</td>
<td align="left">0.2</td>
<td align="left">tanh</td>
<td align="left">0.9922</td>
<td align="left">0.9852</td>
<td align="left">1.0000</td>
<td align="left">0.9926</td>
<td align="left">0.9967</td>
</tr>
<tr>
<td align="left">16</td>
<td align="left">0.0005</td>
<td align="left">256</td>
<td align="left">(128, 64, 32)</td>
<td align="left">0.3</td>
<td align="left">tanh</td>
<td align="left">0.9918</td>
<td align="left">0.9845</td>
<td align="left">1.0000</td>
<td align="left">0.9920</td>
<td align="left">0.9963</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
</sec>
<sec id="s4-3">
<title>4.3 F-GGRU framework validation on additional real-world dataset and robustness analysis</title>
<p>To further establish the robustness and generalizability of the proposed F-GGRU framework, validation was conducted on an independent real-world dataset, the CityPulse dataset (<xref ref-type="bibr" rid="B1">Aarhus, 2025</xref>). This dataset integrates urban Floating Car Data (FCD) with weather conditions collected from Open Data Aarhus in Denmark, providing diverse traffic dynamics and environmental conditions that differ from the SCIP dataset. The evaluation confirmed that the framework consistently sustained high predictive performance, achieving validation accuracies above 98.4%, precision around 97%, perfect recall, and AUC values exceeding 0.991 across both datasets. Notably, the SCIP dataset favored a deeper hidden-layer configuration with moderate dropout, while the CityPulse dataset achieved optimal results with a more symmetric architecture and larger batch size. Despite these structural variations, the framework demonstrated stable generalization across heterogeneous data sources. These results validate the adaptability of the F-GGRU model and reinforce its potential for deployment in practical intelligent traffic management systems.</p>
</sec>
</sec>
<sec sec-type="conclusion" id="s5">
<title>5 Conclusion</title>
<p>This research study developed the F-GGRU framework, a comprehensive methodology for fusing heterogeneous traffic data FCD with exogenous factors like weather conditions and temporal patterns into a unified hybrid feature space. A key innovation lies in its integrated pipeline, which combines fuzzy logic-based automatic labeling, GAN-driven class balancing, and advanced temporal modeling through a gated architecture. Validated against a suite of classical machine learning (Random Forest, XGBoost, etc.) and deep learning (GRU, ANN) benchmarks which achieved accuracies of only 77%&#x2013;83% with poor performance on the critical &#x201c;congested&#x201d; class the proposed F-GGRU framework demonstrated superior performance, achieving over 98% accuracy, near-perfect recall (1.00), and a high ROC-AUC value (0.99). Significantly, rigorous hyperparameter tuning and validation on a second, independent real-world dataset (CityPulse) confirmed the framework&#x2019;s robustness and generalizability, where it achieved even higher performance (99.42% accuracy, 0.9976 AUC). This proves the model is not a singular solution but an adaptable and robust tool for diverse urban environments. These findings underscore that the framework achievement is rooted in its synergistic combination of intelligent preprocessing (addressing class imbalance with GANs), feature fusion (incorporating impactful weather data), and sequential deep learning. The F-GGRU is therefore not only a highly accurate predictive tool but also a scalable and practical solution for real-time traffic monitoring systems. Its ability to reliably differentiate between traffic conditions enables proactive measures such as dynamic route guidance and adaptive traffic signal control. By providing traffic management authorities with a state-of-the-art, generalizable solution, this work contributes directly to reducing travel delays, optimizing road infrastructure, and enhancing decision-making for smarter, more responsive urban mobility.</p>
<p>Currently we integrated data sources of SCIP FCD from heterogeneous data sources and Weather, peak hours, week&#xa0;days, weekend from exogenous data sources in future we will integrates multiple data sources for further work. We have novel data set of SCIP, having various radar based cameras sensors that generate digital data. Incorporate events data such as accidents, road closures, public protests, planed events or major events from APIs like Google Traffic or Twitter, etc., to improve model con-text-awareness. Integrate the trained model into an edge computing environment or smart traffic control platform for real-time congestion prediction and response.</p>
<p>Another promising direction is the application of transfer learning to the smart city traffic domain. Pre-trained models trained on large-scale traffic or mobility datasets can be fine-tuned with city-specific data, enabling the framework to quickly adapt to new environments with limited labeled data. This strategy could enhance generalization, reduce training costs, and accelerate deployment in different urban contexts.</p>
</sec>
</body>
<back>
<sec sec-type="data-availability" id="s6">
<title>Data availability statement</title>
<p>Data available on request from the authors.</p>
</sec>
<sec sec-type="author-contributions" id="s7">
<title>Author contributions</title>
<p>AA: Conceptualization, Data curation, Formal Analysis, Investigation, Methodology, Software, Validation, Writing &#x2013; original draft, Writing &#x2013; review and editing. AN: Funding acquisition, Validation, Writing &#x2013; review and editing. NZ: Conceptualization, Data curation, Investigation, Software, Visualization, Writing &#x2013; review and editing. MS: Project administration, Conceptualization, Investigation, Methodology, Supervision, Validation, Visualization, Writing &#x2013; review and editing.</p>
</sec>
<sec sec-type="funding-information" id="s8">
<title>Funding</title>
<p>The author(s) declare that financial support was received for the research and/or publication of this article. This research is funded by the Deanship of Scientific Research, Islamic University of Madinah, Madinah, Saudi Arabia.</p>
</sec>
<sec sec-type="COI-statement" id="s9">
<title>Conflict of interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as potential conflicts of interest.</p>
</sec>
<sec sec-type="ai-statement" id="s10">
<title>Generative AI statement</title>
<p>The author(s) declare that no Generative AI was used in the creation of this manuscript.</p>
<p>Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.</p>
</sec>
<sec sec-type="disclaimer" id="s11">
<title>Publisher&#x2019;s note</title>
<p>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.</p>
</sec>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Aarhus</surname>
<given-names>D. O. D. A.</given-names>
</name>
</person-group> (<year>2025</year>). <source>Aarhus, Denmark (open data Aarhus) CityPulse Dataset Collection</source>. <publisher-name>Dataset Collection</publisher-name>. <comment>Available online at: <ext-link ext-link-type="uri" xlink:href="http://iot.ee.surrey.ac.uk:8080/datasets.html">http://iot.ee.surrey.ac.uk:8080/datasets.html</ext-link>
</comment>
</citation>
</ref>
<ref id="B2">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Agarwal</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Maze</surname>
<given-names>T. H.</given-names>
</name>
<name>
<surname>Souleyrette</surname>
<given-names>R.</given-names>
</name>
</person-group> (<year>2005</year>). &#x201c;<article-title>Impacts of weather on urban freeway traffic flow characteristics and facility capacity</article-title>,&#x201d; in <source>Proceedings of the 2005 mid-continent transportation research symposium</source>.</citation>
</ref>
<ref id="B3">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Al-Qarafi</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Alrowais</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>S. Alotaibi</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Nemri</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Al-Wesabi</surname>
<given-names>F. N.</given-names>
</name>
<name>
<surname>Al Duhayyim</surname>
<given-names>M.</given-names>
</name>
<etal/>
</person-group> (<year>2022</year>). <article-title>Optimal machine learning based privacy preserving blockchain assisted internet of things with smart cities environment</article-title>. <source>Appl. Sci.</source> <volume>12</volume> (<issue>12</issue>), <fpage>5893</fpage>. <pub-id pub-id-type="doi">10.3390/app12125893</pub-id>
</citation>
</ref>
<ref id="B4">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Ali</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Ayub</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Shiraz</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Ullah</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Gani</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Qureshi</surname>
<given-names>M. A.</given-names>
</name>
</person-group> (<year>2021a</year>). <article-title>Traffic efficiency models for urban traffic management using mobile crowd sensing: a survey</article-title>. <source>Sustainability</source> <volume>13</volume> (<issue>23</issue>), <fpage>13068</fpage>. <pub-id pub-id-type="doi">10.3390/su132313068</pub-id>
</citation>
</ref>
<ref id="B5">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Ali</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Qureshi</surname>
<given-names>M. A.</given-names>
</name>
<name>
<surname>Shiraz</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Shamim</surname>
<given-names>A.</given-names>
</name>
</person-group> (<year>2021b</year>). <article-title>Mobile crowd sensing based dynamic traffic efficiency framework for urban traffic congestion control</article-title>. <source>Sustain. Comput. Inf. Syst.</source> <volume>32</volume>, <fpage>100608</fpage>. <pub-id pub-id-type="doi">10.1016/j.suscom.2021.100608</pub-id>
</citation>
</ref>
<ref id="B6">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Ali</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Khan</surname>
<given-names>Z. H.</given-names>
</name>
<name>
<surname>Khattak</surname>
<given-names>K. S.</given-names>
</name>
<name>
<surname>Gulliver</surname>
<given-names>T. A.</given-names>
</name>
</person-group> (<year>2024</year>). <article-title>The effect of visibility on road traffic during foggy weather conditions</article-title>. <source>IET Intell. Transp. Syst.</source> <volume>18</volume> (<issue>1</issue>), <fpage>47</fpage>&#x2013;<lpage>57</lpage>. <pub-id pub-id-type="doi">10.1049/itr2.12432</pub-id>
</citation>
</ref>
<ref id="B7">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Api</surname>
<given-names>O.</given-names>
</name>
</person-group> (<year>2025</year>). <article-title>
<italic>OpenWeather API</italic> 13 September</article-title>.</citation>
</ref>
<ref id="B10">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Cui</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2024</year>). <article-title>A cross-city traffic flow prediction framework incorporating holidays and weather factors</article-title>. <source>Appl. Comput. Eng.</source> <volume>111</volume>, <fpage>159</fpage>&#x2013;<lpage>164</lpage>. <pub-id pub-id-type="doi">10.54254/2755-2721/111/2024ch0106</pub-id>
</citation>
</ref>
<ref id="B11">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Dong</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Mahmassani</surname>
<given-names>H. S.</given-names>
</name>
<name>
<surname>Alfelor</surname>
<given-names>R.</given-names>
</name>
</person-group> (<year>2010</year>). <article-title>Weather responsive traffic management: deployment of real-time traffic estimation and prediction systems</article-title>. <publisher-name>Transportation Research Board 89th Annual Meeting Transportation Research Board</publisher-name>, <fpage>10</fpage>&#x2013;<lpage>4094</lpage>.</citation>
</ref>
<ref id="B12">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Du</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Chen</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Sch&#xf6;nborn</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Sun</surname>
<given-names>Z.</given-names>
</name>
</person-group> (<year>2022</year>). <article-title>Data fusion and machine learning for ship fuel efficiency modeling: part III&#x2013;Sensor data and meteorological data</article-title>. <source>Commun. Transp. Res.</source> <volume>2</volume>, <fpage>100072</fpage>. <pub-id pub-id-type="doi">10.1016/j.commtr.2022.100072</pub-id>
</citation>
</ref>
<ref id="B13">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Hazarika</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Choudhury</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Nasralla</surname>
<given-names>M. M.</given-names>
</name>
<name>
<surname>Khattak</surname>
<given-names>S. B. A.</given-names>
</name>
<name>
<surname>Rehman</surname>
<given-names>I. U.</given-names>
</name>
</person-group> (<year>2024</year>). <article-title>Edge ML technique for smart traffic management in intelligent transportation systems</article-title>. <source>IEEE Access</source> <volume>12</volume>, <fpage>25443</fpage>&#x2013;<lpage>25458</lpage>. <pub-id pub-id-type="doi">10.1109/access.2024.3365930</pub-id>
</citation>
</ref>
<ref id="B8">
<citation citation-type="web">
<collab>Islamabad Scene</collab> (<year>2021</year>). <article-title>Pakistan&#x2019;s population reaches 241 million</article-title> <comment>Available online at: <ext-link ext-link-type="uri" xlink:href="https://www.islamabadscene.com/pakistans-population-reaches-241-million/">https://www.islamabadscene.com/pakistans-population-reaches-241-million/</ext-link>.</comment>
</citation>
</ref>
<ref id="B14">
<citation citation-type="web">
<person-group person-group-type="author">
<name>
<surname>Khattak</surname>
<given-names>A.</given-names>
</name>
</person-group> (<year>2025</year>). <article-title>Islamabad is getting thousands of AI cameras for better security</article-title>. <comment>Available online at: <ext-link ext-link-type="uri" xlink:href="https://propakistani.pk/2025/05/27/islamabad-is-getting-thousands-of-ai-cameras-for-better-security/?utm_source=chatgpt.com">https://propakistani.pk/2025/05/27/islamabad-is-getting-thousands-of-ai-cameras-for-better-security/?utm_source&#x3d;chatgpt.com</ext-link>.</comment>
</citation>
</ref>
<ref id="B15">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Lartey</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Homaifar</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Girma</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Karimoddini</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Opoku</surname>
<given-names>D.</given-names>
</name>
</person-group> (<year>2021</year>). &#x201c;<article-title>XGBoost: a tree-based approach for traffic volume prediction</article-title>,&#x201d; in <source>2021 IEEE international conference on systems, man, and cybernetics (SMC)</source> (<publisher-name>IEEE</publisher-name>).</citation>
</ref>
<ref id="B16">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Lin</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Ni</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>He</surname>
<given-names>Q.</given-names>
</name>
<name>
<surname>Gao</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Sadek</surname>
<given-names>A. W.</given-names>
</name>
</person-group> (<year>2015</year>). <article-title>Modeling the impacts of inclement weather on freeway traffic speed: exploratory study with social media data</article-title>. <source>Transp. Res. Rec.</source> <volume>2482</volume> (<issue>1</issue>), <fpage>82</fpage>&#x2013;<lpage>89</lpage>. <pub-id pub-id-type="doi">10.3141/2482-11</pub-id>
</citation>
</ref>
<ref id="B17">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Mashros</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Edigbe</surname>
<given-names>J. B.</given-names>
</name>
<name>
<surname>Hassan</surname>
<given-names>S. A.</given-names>
</name>
<name>
<surname>Abdul Hassan</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Mohd Yunus</surname>
<given-names>N. Z.</given-names>
</name>
</person-group> (<year>2014</year>). <article-title>Impact of rainfall condition on traffic flow and speed: a case study in johor and terengganu</article-title>. <source>Jurnal Teknologi Sci. and Eng.</source> <volume>70</volume> (<issue>4</issue>). <pub-id pub-id-type="doi">10.11113/jt.v70.3490</pub-id>
</citation>
</ref>
<ref id="B18">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Polson</surname>
<given-names>N. G.</given-names>
</name>
<name>
<surname>Sokolov</surname>
<given-names>V. O.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>Deep learning for short-term traffic flow prediction</article-title>. <source>Transp. Res. Part C Emerg. Technol.</source> <volume>79</volume>, <fpage>1</fpage>&#x2013;<lpage>17</lpage>. <pub-id pub-id-type="doi">10.1016/j.trc.2017.02.024</pub-id>
</citation>
</ref>
<ref id="B19">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Pragalathan</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Schramm</surname>
<given-names>D.</given-names>
</name>
</person-group> (<year>2024</year>). <article-title>Urban traffic flow predictions with impacts of weather and holidays</article-title>. <source>Emerg. Cutting-Edge Dev. Intelligent Traffic Transp</source>. <pub-id pub-id-type="doi">10.3233/ATDE240042</pub-id>
</citation>
</ref>
<ref id="B20">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Rehborn</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Koller</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2014</year>). <article-title>A study of the influence of severe environmental conditions on common traffic congestion features</article-title>. <source>J. Adv. Transp.</source> <volume>48</volume> (<issue>8</issue>), <fpage>1107</fpage>&#x2013;<lpage>1120</lpage>. <pub-id pub-id-type="doi">10.1002/atr.154</pub-id>
</citation>
</ref>
<ref id="B21">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Ren</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Jia</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Laili</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Huang</surname>
<given-names>D.</given-names>
</name>
</person-group> (<year>2023</year>). <article-title>Deep learning for time-series prediction in IIoT: progress, challenges, and prospects</article-title>. <source>IEEE Trans. neural Netw. Learn. Syst.</source> <volume>35</volume>, <fpage>15072</fpage>&#x2013;<lpage>15091</lpage>. <pub-id pub-id-type="doi">10.1109/tnnls.2023.3291371</pub-id>
<pub-id pub-id-type="pmid">37432817</pub-id>
</citation>
</ref>
<ref id="B22">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Romanowska</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Budzy&#x144;ski</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2022a</year>). <article-title>Investigating the impact of weather conditions and time of day on traffic flow characteristics</article-title>. <source>Weather, Clim. Soc.</source> <volume>14</volume> (<issue>3</issue>), <fpage>823</fpage>&#x2013;<lpage>833</lpage>. <pub-id pub-id-type="doi">10.1175/wcas-d-22-00121</pub-id>
</citation>
</ref>
<ref id="B23">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Romanowska</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Budzy&#x144;ski</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2022b</year>). <article-title>Investigating the impact of weather conditions and time of day on traffic flow characteristics</article-title>. <source>Weather, Clim. Soc.</source> <volume>14</volume> (<issue>3</issue>), <fpage>823</fpage>&#x2013;<lpage>833</lpage>. <pub-id pub-id-type="doi">10.1175/wcas-d-22-0012.1</pub-id>
</citation>
</ref>
<ref id="B9">
<citation citation-type="book">
<collab>Safe City</collab> (<year>2022</year>). <publisher-name>S.C.A</publisher-name>. <comment>Available online at: <ext-link ext-link-type="uri" xlink:href="https://islamabadpolice.gov.pk/safecity.php">https://islamabadpolice.gov.pk/safecity.php</ext-link>.</comment>
</citation>
</ref>
<ref id="B24">
<citation citation-type="web">
<collab>SCIP</collab> (<year>2022</year>). <article-title>Integrated_FCD_Weather_Dataset</article-title>. <comment>Available online at: <ext-link ext-link-type="uri" xlink:href="https://docs.google.com/spreadsheets/d/1EiQFzKJnXSxxMDnrUk8CRg7mSgwII2LI/edit?usp=sharing&#x26;ouid=114614328391821557537&#x26;rtpof=true&#x26;sd=true2025">https://docs.google.com/spreadsheets/d/1EiQFzKJnXSxxMDnrUk8CRg7mSgwII2LI/edit?usp&#x3d;sharing&#x26;ouid&#x3d;114614328391821557537&#x26;rtpof&#x3d;true&#x26;sd&#x3d;true2025</ext-link>.</comment>
</citation>
</ref>
<ref id="B25">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Solanki</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Rawat</surname>
<given-names>V.</given-names>
</name>
<name>
<surname>Pandey</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Singh</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Aswal</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2023</year>). &#x201c;<article-title>Traffic Prediction Analysis (TPA) using machine learning methodologies</article-title>,&#x201d; in <source>2023 6th international conference on contemporary computing and informatics (IC3I)</source> (<publisher-name>IEEE</publisher-name>).</citation>
</ref>
<ref id="B26">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Sravani</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Shreyas</surname>
<given-names>A. V.</given-names>
</name>
<name>
<surname>Abbas</surname>
<given-names>H. M.</given-names>
</name>
<name>
<surname>Chanti</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Punitha</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2024</year>). &#x201c;<article-title>Traffic congestion prediction in smart cities using multilevel-gated recurrent unit</article-title>,&#x201d; in <source>2024 international conference on intelligent algorithms for computational intelligence systems (IACIS)</source> (<publisher-name>IEEE</publisher-name>).</citation>
</ref>
<ref id="B27">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Sun</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Sun</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Jiang</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Hao</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Xie</surname>
<given-names>J.</given-names>
</name>
</person-group> (<year>2021</year>). <article-title>Traffic flow online prediction based on a generative adversarial network with multi-source data</article-title>. <source>Sustainability</source> <volume>13</volume> (<issue>21</issue>), <fpage>12188</fpage>. <pub-id pub-id-type="doi">10.3390/su132112188</pub-id>
</citation>
</ref>
<ref id="B28">
<citation citation-type="web">
<collab>United Nation</collab> (<year>2023</year>). <article-title>Department of economic and social affairs United nation</article-title> <comment>Available online at: <ext-link ext-link-type="uri" xlink:href="https://www.un.org/uk/desa/68-world-population-projected-live-urban-areas-2050-says-un%202025">https://www.un.org/uk/desa/68-world-population-projected-live-urban-areas-2050-says-un 2025</ext-link>.</comment>
</citation>
</ref>
<ref id="B29">
<citation citation-type="web">
<collab>U.S Department of Energy</collab> (<year>2025</year>). <comment>Available online at: <ext-link ext-link-type="uri" xlink:href="https://www.energy.gov/eere/vehicles/articles/fotw-1359-sept-9-2024-traffic-congestion-united-states-wasted-33-billion#:%7E:text=Breadcrumb,of%20wasted%20fuel%20in%202022">https://www.energy.gov/eere/vehicles/articles/fotw-1359-sept-9-2024-traffic-congestion-united-states-wasted-33-billion&#x23;:&#x223c;:text&#x3d;Breadcrumb,of%20wasted%20fuel%20in%202022</ext-link>.</comment>
</citation>
</ref>
<ref id="B30">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Valarmathi</surname>
<given-names>V.</given-names>
</name>
<name>
<surname>Dhanalakshmi</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2024</year>). <article-title>Internet of traffic surveillance System (IoTSS) with genetic Algorithm for optimized weather-adaptive traffic monitoring</article-title>. <source>Bio-Inspired Intell. Smart Decision-Making</source>, <fpage>1</fpage>&#x2013;<lpage>25</lpage>. <pub-id pub-id-type="doi">10.4018/979-8-3693-5276-2.ch001</pub-id>
</citation>
</ref>
<ref id="B31">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Vargas</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Alsweiss</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Toker</surname>
<given-names>O.</given-names>
</name>
<name>
<surname>Razdan</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Santos</surname>
<given-names>J.</given-names>
</name>
</person-group> (<year>2021</year>). <article-title>An overview of autonomous vehicles sensors and their vulnerability to weather conditions</article-title>. <source>Sensors</source> <volume>21</volume> (<issue>16</issue>), <fpage>5397</fpage>. <pub-id pub-id-type="doi">10.3390/s21165397</pub-id>
<pub-id pub-id-type="pmid">34450839</pub-id>
</citation>
</ref>
<ref id="B32">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Wang</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Gu</surname>
<given-names>Q.</given-names>
</name>
<name>
<surname>Wu</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Liu</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Xiong</surname>
<given-names>Z.</given-names>
</name>
</person-group> (<year>2016</year>). &#x201c;<article-title>Traffic speed prediction and congestion source exploration: a deep learning method</article-title>,&#x201d; in <source>2016 IEEE 16th international conference on data mining (ICDM)</source> (<publisher-name>IEEE</publisher-name>).</citation>
</ref>
<ref id="B33">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Wu</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Tan</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Qin</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Ran</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Jiang</surname>
<given-names>Z.</given-names>
</name>
</person-group> (<year>2018</year>). <article-title>A hybrid deep learning based traffic flow prediction method and its understanding</article-title>. <source>Transp. Res. Part C Emerg. Technol.</source> <volume>90</volume>, <fpage>166</fpage>&#x2013;<lpage>180</lpage>. <pub-id pub-id-type="doi">10.1016/j.trc.2018.03.001</pub-id>
</citation>
</ref>
<ref id="B34">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Yasir</surname>
<given-names>R. M.</given-names>
</name>
<name>
<surname>Nower</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Shoyaib</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2022</year>). <article-title>Traffic congestion prediction using machine learning techniques</article-title>. <source>arXiv Prepr. arXiv:2206.10983</source>. <pub-id pub-id-type="doi">10.48550/arXiv.2206.10983</pub-id>
</citation>
</ref>
<ref id="B35">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>YixinLi</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>W.</given-names>
</name>
</person-group> (<year>2024</year>). <article-title>Research on traffic congestion prediction based on analyzable machine learning</article-title>. <source>Eng. Technol.</source> <volume>118</volume>, <fpage>102</fpage>&#x2013;<lpage>110</lpage>. <pub-id pub-id-type="doi">10.54097/sbj3av77</pub-id>
</citation>
</ref>
<ref id="B36">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Yu</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Xie</surname>
<given-names>F.</given-names>
</name>
</person-group> (<year>2024</year>). <article-title>Research on traffic congestion prediction based on XGBoost</article-title>. <source>Front. Traffic Transp. Eng.</source> <volume>4</volume> (<issue>1</issue>), <fpage>1</fpage>&#x2013;<lpage>8</lpage>. <pub-id pub-id-type="doi">10.23977/ftte.2024.040101</pub-id>
</citation>
</ref>
<ref id="B37">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zafar</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Haq</surname>
<given-names>I. U.</given-names>
</name>
<name>
<surname>Chughtai</surname>
<given-names>J. u. R.</given-names>
</name>
<name>
<surname>Shafiq</surname>
<given-names>O.</given-names>
</name>
</person-group> (<year>2022a</year>). <article-title>Applying hybrid LSTM-GRU model based on heterogeneous data sources for traffic speed prediction in urban areas</article-title>. <source>Sensors</source> <volume>22</volume> (<issue>9</issue>), <fpage>3348</fpage>. <pub-id pub-id-type="doi">10.3390/s22093348</pub-id>
<pub-id pub-id-type="pmid">35591037</pub-id>
</citation>
</ref>
<ref id="B38">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zafar</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Haq</surname>
<given-names>I. U.</given-names>
</name>
<name>
<surname>Sohail</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Chughtai</surname>
<given-names>J. U. R.</given-names>
</name>
<name>
<surname>Muneeb</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2022b</year>). <article-title>Traffic prediction in smart cities based on hybrid feature space</article-title>. <source>IEEE Access</source> <volume>10</volume>, <fpage>134333</fpage>&#x2013;<lpage>134348</lpage>. <pub-id pub-id-type="doi">10.1109/access.2022.3231448</pub-id>
</citation>
</ref>
<ref id="B39">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zhao</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Gao</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Bai</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Lu</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>Traffic speed prediction under non-recurrent congestion: based on LSTM method and BeiDou navigation satellite system data</article-title>. <source>IEEE Intell. Transp. Syst. Mag.</source> <volume>11</volume> (<issue>2</issue>), <fpage>70</fpage>&#x2013;<lpage>81</lpage>. <pub-id pub-id-type="doi">10.1109/mits.2019.2903431</pub-id>
</citation>
</ref>
<ref id="B40">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zhong</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Chen</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Guo</surname>
<given-names>K.</given-names>
</name>
</person-group> (<year>2024</year>). <article-title>Weather interaction-aware spatio-temporal attention networks for urban traffic flow prediction</article-title>. <source>Buildings</source> <volume>14</volume> (<issue>3</issue>), <fpage>647</fpage>. <pub-id pub-id-type="doi">10.3390/buildings14030647</pub-id>
</citation>
</ref>
</ref-list>
</back>
</article>