Next Article in Journal
Rethinking Growth in the Gulf: The Role of Renewable Energy, Electricity Use, and Economic Openness in Oil-Rich Economies
Previous Article in Journal
ESG and Firm Performance in Korea: The Moderating Role of CEO Tenure, Ownership Structure, and Foreign Ownership
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Application of Traffic Load-Balancing Algorithm—Case of Vigo

by
Selim Dündar
*,
Sina Alp
,
İrem Merve Ulu
and
Onur Dursun
Faculty of Engineering and Natural Sciences, Istanbul Okan University, 34959 Istanbul, Turkey
*
Author to whom correspondence should be addressed.
Sustainability 2025, 17(19), 8948; https://doi.org/10.3390/su17198948
Submission received: 10 August 2025 / Revised: 24 September 2025 / Accepted: 25 September 2025 / Published: 9 October 2025
(This article belongs to the Section Sustainable Transportation)

Abstract

Urban traffic congestion is a significant challenge faced by cities globally, resulting in delays, increased emissions, and diminished quality of life. This study introduces an innovative traffic load-balancing algorithm developed as part of the IN2CCAM Horizon 2020 project, which was specifically tested in the city of Vigo, Spain. The proposed method incorporates short-term traffic forecasting through machine learning models—primarily Long Short-Term Memory (LSTM) networks—alongside a dynamic routing algorithm designed to equalize travel times across alternative routes. Historical speed and volume data collected from Bluetooth sensors were analyzed and modeled to predict traffic conditions 15 min ahead. The algorithm was implemented within the PTV Vissim microsimulation environment to assess its effectiveness. Results from 20 distinct traffic scenarios demonstrated significant improvements: an increase in average speed of up to 3%, an 8% reduction in delays, and a 10% decrease in total standstill time during peak weekday hours. Furthermore, average emissions of CO2, NOx, HC, and CO were reduced by 4% to 11% across the scenarios. These findings highlight the potential of integrating predictive analytics with real-time load balancing to enhance traffic efficiency and promote environmental sustainability in urban areas. The proposed approach can further support policymakers and traffic operators in designing more sustainable mobility strategies and optimizing future urban traffic management systems.

1. Introduction

Traffic congestion is a significant social issue faced by nearly all major cities today. It arises when the demand for road usage exceeds the network’s capacity, but it can be alleviated through effective traffic management strategies. Various techniques, including demand management, optimization of traffic signal timings, and traffic balancing, have been developed and implemented to address this challenge. Travelers typically opt for the least congested routes, selecting paths that minimize travel time to lessen the effects of traffic congestion, often relying on mobile applications to identify the quickest options. Both traffic management methods and route planning software fundamentally depend on accurately predicting near-future traffic conditions. In addition to these general causes, it is essential to note that road traffic volumes exhibit specific temporal distribution patterns. On weekdays, the traffic volume across particular road types follows regular hourly trends; however, during public holidays, these patterns are notably disrupted, resulting in significant variations in daily traffic distribution. Such temporal characteristics of traffic flow play a crucial role in analyzing and understanding congestion dynamics. Previous research has examined this issue in detail, highlighting the differences between public holidays and workday traffic distributions across selected road network elements [1]. Incorporating these temporal variations into congestion analysis enhances the accuracy of traffic prediction and provides a more comprehensive perspective for developing effective management strategies.
The IN2CCAM project (Enhancing Integration and Interoperability of the CCAM Eco-System) is conducted within the framework of the Horizon 2020 program. Istanbul Okan University participates in the project as one of the partner institutions. The primary objective is to design, implement, and validate innovative technologies and services that support both infrastructure and end-users. This includes the integration of connected and autonomous vehicles (Cooperative, Connected, and Automated Mobility—CCAM) for both passenger and freight transportation. The overarching goal of IN2CCAM is to benefit all citizens by fully embedding CCAM services into the transportation system. With driverless cars, buses, and trucks operated by Artificial Intelligence (AI)-based vehicle control systems, the project aims to significantly reduce road accidents caused by human error, thereby enhancing road safety. Additionally, this initiative is expected to have positive environmental impacts, such as reducing emissions and optimizing traffic flow to prevent unnecessary travel. It also promotes inclusiveness by ensuring that the elderly and individuals with disabilities can access and benefit from transportation services. This comprehensive approach is centered on the implementation and integration of advanced physical, digital, and operational infrastructures to enhance CCAM services and improve both safety and traffic efficiency.
IN2CCAM comprises 21 partners from nine European countries. The project aims to implement digital and operational CCAM solutions across six living labs. The pioneering living labs where the proposed driverless vehicles will be tested in real traffic conditions are located in Tampere (Finland), Trikala (Greece), Turin (Italy), and Vigo (Spain). Additionally, Bari (Italy) and Quadrilatero (Portugal) will serve as follower living labs, evaluating CCAM services in large simulation environments and conducting impact assessments. The IN2CCAM consortium will share the results and findings from the CCAM integration process in both urban and peri-urban traffic with the public.
Vigo, one of the pioneering living labs within IN2CCAM, is located in northwest Spain and has a population of 292,817. It is a significant urban center renowned for its intense industrial activity, particularly in the automotive and shipbuilding sectors. The city features a bustling fresh fish port -one of the leading ports in Europe- along with a container terminal and various commercial enterprises. However, the city’s dense activity, challenging geography, and irregular growth give rise to a range of transportation challenges.
This study developed a load-balancing algorithm to address traffic demand in the city center of Vigo. The algorithm redistributes traffic across multiple route alternatives to optimize network performance, with the primary goal of equalizing travel times on all alternative routes between designated points. The effectiveness of this algorithm was assessed using the PTV Vissim 2023 microsimulation software.
In the grand scheme of sustainable transportation, reducing traffic and improving the efficient use of existing infrastructure are crucial for cutting energy demand and emissions. As urban regions expand, methodologies that enhance traffic flow with a lean reliance on large-scale new construction promote sustainability by reducing the environmental burden of mobility systems. Dynamic traffic regulation strategies, such as the load-balancing algorithm, are beneficial for enhancing mobility and optimizing resources in the context of sustainable urban development. This makes them efficient tools in building a robust and environmentally friendly transport system.
A longstanding theoretical tension in traffic assignment arises between user equilibrium (UE) and system optimum (SO), as articulated in Wardrop’s principles [2]. Under UE, each driver minimizes their individual travel time, leading to a stable yet often suboptimal outcome for the entire system. By contrast, SO seeks to minimize total travel time across the network, which may require deviations from individually optimal routes. Most existing studies on dynamic routing and load balancing implicitly align with the UE framework, since drivers are modeled as rational agents optimizing their own trips. However, this emphasis on individual rationality overlooks the gap between user-based and system-wide efficiency. In this study, while the simulation framework reproduces driver behavior consistent with UE, the proposed load-balancing algorithm functions as a corrective mechanism that guides routing decisions toward more balanced traffic distributions. In this sense, the method can be regarded as a step toward reconciling UE with SO. It demonstrates potential both as a practical congestion management tool and as a contribution to the theoretical discussion on the trade-off between individual choice and collective efficiency.
The main contributions and innovative aspects of this study can be summarized as follows:
  • This paper presents the first combination of 15-min Bluetooth-based short-term traffic forecasts and a real-time load-balancing algorithm. This link effectively connects predictive modeling to dynamic routing decisions.
  • It introduces a solid data processing framework that combines Monte Carlo-based methods for filling in missing data with a decade’s worth of high-resolution Bluetooth data. This ensures the reliability and completeness of the input.
  • The proposed approach has been thoroughly tested under 20 realistic peak-hour scenarios in PTV Vissim, showing its practical use and strength beyond theoretical development. Additionally, the simulation workflow is designed to be replicable and focused on supporting decision making.
  • It provides valuable insights for both local and central governments, as well as mobility service providers working on data-driven congestion reduction.
All the codes used in this study are provided in the GitHub link: https://github.com/OnurPSR/IN2CCAM/ which exists since 1 August 2025.

2. Literature Review

As urban populations grow and vehicle ownership rises, transportation-related challenges have emerged as significant issues in medium- and large-sized cities. These challenges lead to traffic congestion, economic losses, accidents, wasted time during commutes, and environmental impacts associated with transportation [3,4,5]. Public transportation services often face platform failures and deteriorating service quality in high-demand situations, such as natural disasters, pandemics, and holiday periods [6]. In these circumstances, effective traffic management becomes crucial. Without a sound strategy, rising user demand can result in bottlenecks, interruptions, and delays [7].
Congestion management strategies generally fall into two categories: congestion prevention and congestion control. Congestion prevention takes a proactive approach to safeguard the network from overload, while congestion control reacts to congestion that has already occurred within the network [8,9]. Given the current limitations in modifying transportation infrastructure and the insufficient information available to drivers, traditional shortest path algorithms are widely employed. Algorithms such as Dijkstra and A* are commonly used to identify optimal routes and minimize travel times. Alongside these, dynamic path planning algorithms address unique situations [5,10,11,12]. Dynamic path planning algorithms often utilize big data predictive analysis technologies to assess traffic conditions and forecast future scenarios, thereby enabling the estimation of the most suitable routes [13].
One alternative method, multi-agent simulation, emphasizes the individual active components within a system. This approach allows for flexibility in designing heterogeneous actors that interact with one another and their environment [14]. Conversely, reinforcement learning is a modeling technique inspired by behavioral psychology, where the system is conceptualized as agents interacting with their surroundings [15].
Another approach is optimization. In the realm of traffic engineering, optimization focuses on routing traffic across the network to enhance overall performance and efficiently utilize resources. Effective traffic management can improve service accessibility while optimizing resource use and minimizing operational costs [16]. Classical optimization methods typically involve offline routing based on a pre-estimated or predefined traffic matrix [17,18,19]. These methods function effectively as long as actual traffic patterns closely align with the predefined matrix. However, they often struggle to accommodate traffic fluctuations in unexpected scenarios, which has led to the implementation of online dynamic load-balancing techniques [17]. Load balancing enhances efficiency and mitigates the risk of overload by distributing traffic across multiple units, ensuring optimal resource utilization [20]. A notable drawback of this method is the potential for interruptions that may arise during the rebalancing of the routing protocol amidst congestion [17]. Another strategy involves robust static routing, which considers multiple potential traffic matrices to identify a routing configuration that ensures optimal performance across all scenarios [17,21,22].
In unusual road situations, traffic management centers redirect drivers to alternative routes. This approach not only enhances the efficiency and capacity of the network but also mitigates the risk of secondary accidents that can occur due to congestion [23]. In recent years, intelligent navigation systems—similar to active traffic management functions—have been developed. These systems calculate routes that minimize travel times by leveraging congestion predictions derived from the speed and location data of all devices using the application [23].
In earlier studies, Zhang et al. introduced a Dynamic Hybrid Routing framework aimed at optimizing traffic flow [17]. This approach focuses on rebalancing traffic by choosing and implementing the most suitable pre-configured routing scenario in response to fluctuations in traffic conditions. Conversely, Li et al. addressed the challenge of load balancing by formulating it as a non-linear programming problem. They then applied deep learning techniques, combined with traffic predictions, to address this optimization problem [20].
The primary objective of active traffic management is to enhance system performance by utilizing traffic assignment algorithms. In this regard, dynamic routing algorithms and traffic simulations, which help predict traffic patterns, are becoming increasingly vital for designers of active traffic systems. Active traffic management is a crucial concern, not only due to its impact on productivity loss but also because it influences fuel consumption [23].
Modern routing techniques can gather traffic congestion data using both real-time and historical information. Real-time data can be sourced from loop detectors, cameras, toll port data, or mobile phone signals. While today’s prevalent navigation systems typically direct users to the route with the shortest travel time, a significant strategic challenge persists [24]. These systems generally guide drivers based on periodically updated data, which can lead to an excessive concentration of vehicles on the “optimal” route. Consequently, this can lead to increased travel times due to congestion. Additionally, subsequent drivers often make their routing decisions before the impacts of earlier traffic flows are reflected in the system. As a result, directing the majority of vehicles to the “best route” can paradoxically create traffic bottlenecks and lead to longer overall travel times [24].
To address the routing challenge, various algorithms have been developed that employ a cooperative routing approach, taking into account both the predicted traffic volume and estimated travel times [24]. Liu et al. introduced a participatory navigation system that utilizes data from collaborative location and route selections made by vehicles to forecast traffic speed and future traffic flow [24]. Roughgarden’s research suggests that routing without coordination yields suboptimal outcomes [25]. In this context, Wilkie et al. introduced a self-aware re-routing algorithm that integrates historical traffic data with planner-predicted routes. The algorithm explicitly considers the potential for each vehicle’s planned trajectory to exacerbate congestion on the roads; marginally, it utilizes [26].
The use of traffic simulations to assess the potential impacts of policies and strategies has become increasingly essential, particularly as transportation systems become more complex with the incorporation of new active traffic management techniques. The models applied in these analyses are typically categorized as equilibrium models (traffic assignment models) and non-equilibrium models (simulation models) [23]. While equilibrium models fall short in addressing unexpected events, non-equilibrium models are necessary to fill that gap. However, in densely populated and congested urban areas, information is often lacking, especially in situations where various stakeholders, such as smartphone applications and traffic management centers, employ different management strategies [23].
Liang and Wakahara conducted a SUMO microsimulation in a medium-sized area of London, demonstrating that proactive dynamic re-routing can significantly reduce average travel times [27]. In their study, Wang et al. tested an algorithm within SUMO that aimed to address congestion. The process began with calculating the immediate turn for a vehicle approaching a congested road segment, followed by a recalibration of the remaining route [7]. This algorithm achieved an impressive reduction of up to 51.50% in average travel time.
Urban traffic management has been an active research area, encompassing traffic prediction, routing, and load balancing. Traditional parametric models, such as the Kalman filter (KF) [28], exponential smoothing (ES) [29], and the autoregressive integrated moving average (ARIMA) family [30], have been widely applied for traffic prediction. However, these models assume stationary time series, which is often not the case, especially for non-linear traffic data [31]. Non-parametric approaches, including K-nearest neighbor (KNN) [32] and support vector regression (SVR) [33], provide greater flexibility but require careful parameter tuning. Deep learning models, such as stacked autoencoders (SAEs), deep belief networks (DBNs), and artificial neural networks (ANNs), have been explored for their superior predictive capabilities [34]. Standard ANNs, however, cannot explicitly capture temporal dependencies; they often function primarily as output aggregators in deeper network architectures [34]. Recurrent neural networks (RNNs) address this limitation by learning sequential dependencies, making them suitable for time-series prediction. Vanilla RNNs suffer from vanishing gradient issues [35], which are mitigated by long short-term memory (LSTM) networks and gated recurrent units (GRUs) [36]. RNNs are often implemented in stacked layers or encoder–decoder frameworks [37], compressing input sequences into context vectors. While effective, static context vectors may create bottlenecks, limiting the model’s ability to capture complex temporal patterns.
In addition to accurate traffic prediction, effective routing and load balancing are essential for minimizing congestion and improving network efficiency. Traditional shortest-path routing and uniform load distribution approaches are limited in their responsiveness to dynamic traffic conditions. Popularity-based routing methods, such as Polaris, distribute traffic according to road usage patterns, mitigating congestion and lowering CO2 emissions [38]. Quantum-inspired optimization algorithms provide scalable solutions to complex routing problems, outperforming classical optimization methods in specific urban networks [39]. Strength-optimized weight balancing dynamically adjusts traffic flow to prevent network congestion [40], while adaptive load balancing using Road Side Units (RSUs) redistributes traffic based on network conditions [41]. Smart Route Determining with Load Balancing (SRD-LB) integrates real-time traffic data and environmental factors to optimize routing and reduce travel time [42].
While these schemes represent tremendous advancements over the conventional approach, the most serious problems remain in properly integrating prediction into routing and load balancing. Most dynamic routing algorithms, particularly those based on Reinforcement Learning (RL), respond quickly to real-time data. This quick response can lead to delays or loss of information, resulting in poor clustering. Cars may end up following a limited number of routes, making traffic worse instead of better. Additionally, merging predictive models with load balancing brings up issues with timing and accuracy. If re-routing is too aggressive, it can disrupt traffic; if it is too cautious, it might fail to prevent congestion under changing conditions. These challenges require a broader strategy that utilizes effective traffic predictions and adjusts vehicle schedules across the network to avoid bottlenecks and enhance overall performance.
These constraints drive this current work, which suggests an integrated urban traffic control model. The model combines traffic prediction optimization and load balancing, routing based on not only near-future forecasts but also more abstract network states and long-term traffic patterns. The proposed approach enhances efficiency and reliability in urban road networks by directly addressing issues such as poor clustering, prediction uncertainty, and dynamic load balancing. This is especially important in complex areas, such as Vigo. The combined approach is far superior to conventional approaches, as it provides practical guidance for traffic operators and policymakers who aim to optimize congestion control, minimize travel time, and mitigate environmental impacts.
Technologies such as autonomy and connectivity can significantly enhance system performance [43]. Through vehicle-to-vehicle (V2V) and vehicle-to-infrastructure (V2I) communications, vehicles can exchange information without requiring extensive sensor deployment across the network, thereby improving the overall travel experience [43,44]. V2V communication enables vehicles to access local traffic data, thereby alleviating the computational burden on centralized systems, while automation facilitates real-time responses [44].
A study analyzing 2900 rows of vehicle data, recorded hourly from January to May 2021 at the Başakşehir Mahmutbey Junction in Istanbul, aimed to predict both traffic volume and speed values [45]. To achieve this, an LSTM–based prediction method was employed. Its results were compared with those obtained from linear regression, Random Forest (RF), Support Vector Machines (SVMs), Multi-Layer Perceptron (MLP), Convolutional Neural Networks (CNNs), and RNNs. The LSTM method yielded significantly superior results across all evaluation metrics, including mean squared error, root mean squared error, mean absolute error, and R2 values. Specifically, it achieved an R2 score of 0.897 for volume prediction and 0.883 for speed prediction.
In another study, researchers sought to predict average speed using data from 15 traffic density measurement stations and 10 weather stations in Istanbul, covering the period from 1 January 2020 to 1 January 2021 [46]. Utilizing four different ANNs along with two SVM models, the General Regression Neural Network (GRNN) model demonstrated the highest performance, attaining an R2 value of 0.899.
Additionally, another investigation focused on predicting average flow speed under various conditions along the D100 Highway at the entrance to Tuzla District in Istanbul [47]. This study systematically examined the meteorological factors that affect traffic flow speed, including temperature, humidity, wind speed, prevailing weather conditions, weekdays, and working hours. It further sought to predict average flow speed by analyzing different combinations of these influencing factors. The performance of the developed model was rigorously evaluated by examining the discrepancies between observed and predicted speeds. The analysis indicated that the differences ranged from a minimum of 0.09 km/h to a maximum of 5.98 km/h, demonstrating the model’s predictive accuracy.
A groundbreaking study utilizing the LSTM method to predict near-future traffic speeds was conducted in Beijing, China [48]. This research utilized data from two microwave sensors positioned on a highway to forecast both traffic volume and speed. The performance of the model was evaluated against three RNN architectures, SVM, ARIMA, and Kalman Filters. The LSTM model outperformed all other methods in terms of mean absolute percentage error and mean squared error.
Another significant study focused on traffic speed prediction in Chicago, USA [49]. This study employed various pre-processing techniques to support seven distinct deep learning models aimed at predicting average flow speeds along a 13-mile segment of Interstate 55 (I-55) Highway. The top-performing model achieved an R2 value of 0.85, effectively forecasting traffic speeds during both a sports event and rainy conditions.
Additionally, research utilizing data from two publicly available datasets—METR-LA and TaxiBJ—alongside data from the Chengdu Highway in Chengdu, China, aimed to predict traffic [50]. This study employed a graph-based CNN and compared its performance with that of five different methodologies, including LSTM. The evaluation used mean absolute error, root mean squared error, and mean absolute percentage error as performance measures, revealing that the graph-based CNN delivered superior results across all metrics.
A recent review extensively analyzed modern deep learning-based traffic prediction methods, with a particular focus on CNN, RNN, and LSTM, while highlighting the strengths and weaknesses inherent to these deep learning approaches [51].
Traffic prediction has evolved in recent years from traditional time series and deep learning methods to graph-based methods. These new methods explicitly model spatial dependencies in road networks. GNNs have been utilized with open-government data to achieve better performance than traditional methods, such as ARIMA and historical averages. This is because they can effectively manage spatial and temporal interactions within urban traffic systems [52].
Subsequently, more advanced architectures, such as the Dynamic Graph Spatial-Temporal Neural Network (DGSTN), have been proposed to overcome the limitations of static graph models. Equipped with adaptive spatial self-attention and dynamic graph generation, these models can better describe changing traffic conditions. As a result, they outperform traditional LSTM-based models in terms of prediction performance [53]. This shift from static to dynamic graph models shows the advantage of flexibility in modeling changing traffic networks.
Another issue is how to retain prediction capability with new traffic data over time. In 2025, a continual learning framework based on Spatial-Temporal Graph Convolutional Recurrent Networks and regularization techniques, including the Elastic Weight Consolidation and Memory Aware Synapses, is presented. This method enables the learning of new traffic patterns without forgetting the old ones, resulting in more robust real-time prediction [54].
Alongside progress in traffic prediction methods, the development of Vehicle-to-Everything (V2X) communication has enabled cooperative traffic prediction. Among the deep learning models, Bidirectional Long Short-Term Memory (BiLSTM), GRU, and LSTM, we can see that including V2X communication data significantly enhances the prediction performance. These results indicate the usefulness of cooperative vehicle systems in traffic management [55]. Moreover, hybrid models that combine GNNs and Deep Reinforcement Learning (DRL) have been used in optimizing resource allocation for V2X communication networks, demonstrating the broader applications of graph-based learning outside the realm of traffic flow prediction [56].
Additionally, contrastive learning has been recently introduced into GNN-based traffic forecasting models. The Contrastive Learning Multi-Graph Convolution Network (CLMGCN) utilizes temporal data augmentation and contrastive representation learning to enhance feature learning. The model, supported by multiple graph structures, has been shown to outperform traditional graph convolutional models. It confirms that representation learning is effective for traffic forecasting [57].
These developments collectively indicate an interesting direction for research in graph-based, adaptive, and communication-aware prediction models. GNN-based models naturally capture network-level dependencies in a more straightforward manner than LSTM-based ones. V2X models enhance predictions by leveraging information from the cooperation of traffic states. With the addition of continuous learning and contrastive learning, adaptiveness and robustness are enhanced further. This work contributes by placing an LSTM-based prediction model within the context of a real-world decision support system, taking into account these emerging trends for future applications.

3. Materials and Methods

Initially, the traffic data collected for the city of Vigo was assessed, revealing sensor-related gaps within the time series data. These gaps were addressed through a Monte Carlo simulation, followed by short-term traffic forecasting conducted using Machine Learning techniques. Rather than relying solely on current traffic conditions, load balancing was implemented based on anticipated traffic conditions projected for the next 15 min. Ultimately, the traffic load-balancing process aimed to distribute demand in a manner that would achieve equilibrium in travel times on roads within the city center. The effectiveness of the developed load-balancing algorithm was evaluated within the PTV Vissim microsimulation environment. This section provides a comprehensive overview of the studies conducted.

3.1. Traffic Prediction

In 2013, the city of Vigo launched a network of 80 Bluetooth sensors. These sensors anonymously capture the Bluetooth MAC (Medium Access Control) addresses of devices, including smartphones and vehicle systems, at various locations throughout the city. The timestamps of these detections are recorded, and an algorithm refines and filters the data to calculate the travel time between two Bluetooth sensor locations. Figure 1 illustrates the Bluetooth sensor detection architecture in Vigo.
The journey between each pair of sensors is referred to as a Vector, with its length and trajectory determined by a set of geographic coordinates. The city publishes all data about these vectors through an API REST (Application Programming Interface, Representational State Transfer) service.
The system’s algorithm computes travel times for all vectors every three minutes. The resulting data are made available through the Vigo website, the Vigo Driving Application (APP) V1.4, and in a JSON (JavaScript Object Notation) file formatted for open data. Travel times for points of interest are displayed on physical Variable Message Panels (VMPs) and Virtual VMPs (IVI—In Vehicle Information messages) within the Vigo Driving APP (see Figure 2).
The thresholds that determine each vector color are as follows:
  • Medium Speed > 30 km/h—green.
  • 20 km/h < Medium Speed < 30 km/h—green.
  • 15 km/h < Medium Speed < 20 km/h—yellow.
  • 10 km/h < Medium Speed < 15 km/h—orange.
  • Medium Speed < 10 km/h—red.
The data collected by the Bluetooth sensor network is utilized to deliver real-time information to drivers and the traffic management system. Furthermore, all records are stored in a database with a resolution of 3 min. This database contains approximately 10 years of data for each vector, detailing trip times and average speeds. Given the substantial size of the full database, the resolution has been adjusted to 15 min. The final dataset now comprises 112 months of recorded data for 281 vectors, with a compressed size of 2.7 GB.
To assess traffic load and vehicle counts, an experimental study was conducted at the onset of the system’s deployment and is regularly updated. This is essential since not all vehicles and drivers are equipped with Bluetooth-enabled devices. In 2014, the Municipality of Vigo installed Bluetooth sensors in the city and subsequently conducted a study to measure their effectiveness in detecting vehicles. This study utilized inductive loops and video camera recordings to assess the proportion of total vehicles that were detected by the Bluetooth sensors. The study contrasts the actual number of vehicles measured (using inductive loops or video recordings) with the number of detected Bluetooth devices. Findings indicate that the Bluetooth system captures 30% of the total vehicle count in the city, allowing for extrapolation of vehicle numbers for each vector based on this measurement. This rate is also consistent with those reported in some studies in the literature [58,59,60,61]. For this study, information obtained from the Municipality of Vigo served as the basis, and no additional field studies were conducted to verify this rate.
Taking all of this into account, the historical data provided for traffic model training spans the period from 2014 to 2024 and is structured as seen in Table 1. Table 2 offers explanations of the historical data fields. The obtained dataset does not contain any Bluetooth MAC address data for the detected devices. Therefore, there are no issues concerning General Data Protection Regulation (GDPR) compliance or the ethical handling of mobility data.
The number of vehicles recorded in each database (DB) registry is calculated through the extrapolation of the ’Probes’ parameter, grounded in experimental data as previously discussed. For example, in the first line of the illustration, there are 86 quality matches (Probes). This allows us to estimate the total number of vehicles that passed during the 15 min. By dividing 86 by 0.33, the estimated total is approximately 260 vehicles. In the conducted study, a ±5% margin of error was added to this value to ensure data randomness.
Hourly flow rates and average flow speed data were collected from 80 Bluetooth sensors in Vigo, Spain, recording information every 15 min from September 2014 to November 2023 across 281 origin–destination pairs. The methodology employed involved detecting devices at both the starting and exit sensors; if a device was detected at both locations, it was classified as moving within a vehicle. This approach effectively prevents the misidentification of pedestrians or lower-speed vehicles, such as bicycles, as motor vehicles. Furthermore, when multiple Bluetooth devices were detected at the duplicate entry and exit times, they were considered as separate devices within a single motor vehicle, with all being evaluated as a single unit.
In the study, five of these origin–destination pairs were selected for sampling, and a separate simulation was conducted for each pair. Traffic speed predictions were then conducted specifically for these pairs. Despite continuous data collection from the sensors, some data were missing due to disruptions in collection and transmission to the traffic control center. Consequently, specific time intervals contain incomplete data. After that, data pre-processing was performed, and any missing data were synthesized using a Monte Carlo simulation technique. The equations used for these purposes are presented in Equations (1) and (2).
xmin = max(xhourmin, xdaymin, xmonthmin)
xmax = min(xhourmax, xdaymax, xmonthmax)
In the equations, xmin denotes the minimum value that can be assigned to the missing data, while xmax signifies the maximum value. The terms xhourmin and xhourmax represent the smallest and largest values, respectively, recorded at the same hour across different days within the dataset. xdaymin and xdaymax represent the lowest and highest values recorded on the same day of the week, respectively. Similarly, xmonthmin and xmonthmax denote the smallest and largest values observed within the same month of the year. To better understand the method, consider the Aerop. Hasta Ap–9 Túnel Da Madroa origin–destination pair, where the average speed data for 17 May 2020 (Sunday), between 19:00–19:15, is assumed to be missing. First, all speed values for the 19:00–19:15 interval in the data obtained for this origin–destination (O-D) pair were collected. The smallest of these values is defined as xhourmin and the largest as xhourmax. Similarly, for the same sensor pair, the smallest speed value obtained across all Sundays is defined as xdaymin and the largest as xdaymax. The smallest speed value obtained within May 2020 is defined as xmonthmin and the largest as xmonthmax. The largest of the minimum values is defined as the lower bound (xmin), and the smallest of the maximum values is defined as the upper bound (xmax). After establishing the lower and upper limits for the potential values of the missing data, a random value is generated, conforming to a normal distribution within these boundaries, to fill in the gaps. The pseudo code of the Monte Carlo technique is given as Algorithm 1.
Algorithm 1. Pseudo Code of the Monte Carlo Technique
1:Proc GENERATE_NULL_VALUE(data, O, D, missingtimestamp):
2:Input:
3:data ← dataset of speed values
4:O, D ← origin-destination pair
5:missingtimestamp ← time of missing data (date + time interval)
6:Output:
7:xmissing ← imputed value for the missing data
8:// Step 1: Extract contextual information
9:hour     ← hour(missingtimestamp)
10:day       ← day_of_week(missingtimestamp)
11:month    ← month(missingtimestamp)
12:// Step 2: Collect candidate values from dataset
13:hourvalues ← all values from data[O,D] at same hour across different days
14:dayvalues ← all values from data[O,D] on same day_of_week across dates
15:monthvalues ← all values from data[O,D] in same month across years
16:// Step 3: Compute bounds
17:xhourmin ← min(hourvalues)
18:xhourmax← max(hourvalues)
19:xdaymin ← min(dayvalues)
20:xdaymax ← max(dayvalues)
21:xmonthmin ← min(monthvalues)
22:xmonthmax ← max(monthvalues)
23:xmin ← max(xhourmin, xdaymin, xmonthmin)   // lower bound
24:xmax ← min(xhourmax, xdaymax, xmonthmax)   // upper bound
25:// Step 4: Generate random value within bounds
26:meanval ← (xmin + xmax)/2
27:stdval ← (xmax − xmin)/6    // 99.7% normal distribution rule
28:Repeat
29:xmissing ← random_normal(meanval, stdval)
30:Until xmin ≤ xmissing ≤ xmax
31:Return xmissing
The imputed versus empirical speed distributions are shown in Figure 3.

3.2. Machine Learning Models

The machine learning methods outlined below were employed to predict traffic volume for five start–end pairs along the 281. A separate model was developed for each start–end pair of data. Each method utilized the last eight traffic speed values, reflecting the average traffic speed over the previous 2 h, as input features. The single output value represents the anticipated traffic speed 15 min in advance. Although the Bluetooth sensors in the city of Vigo began to be installed in 2014, not all of the sensors from which data were obtained in this study were installed that year. Instead, the network reached its current state through the gradual addition of sensors at locations where they were needed. Therefore, data from 2014 to 2021 were used for training the models, data from 2022 for validation, and data from 2023 for the test set. Considering the entire dataset, approximately 80% of the total data was allocated for training, 10% for validation, and 10% for testing. Evaluation of performance was conducted exclusively on the test set. All models were developed using the Python programming language (3.10.12).

3.2.1. Multiple Linear Regression

Multiple Linear Regression (MLR) is a fundamental statistical technique that models the relationship between a dependent variable and one or more independent variables by fitting a linear equation to observed data. The primary goal of this method is to identify the best-fitting line that minimizes the sum of squared residuals (SSR), which quantifies the discrepancy between observed and predicted values. One of the key advantages of linear regression is its ability to provide clear interpretations of the relationships among variables. The coefficients in the model signify how much the dependent variable changes in response to a one-unit change in the independent variable while keeping all other variables constant.

3.2.2. Support Vector Regression

SVR is an extension of the SVM algorithm designed for regression tasks. It functions by identifying a function that approximates the data within a defined margin of error, which makes it effective in high-dimensional spaces and resilient to overfitting, particularly with smaller datasets. SVR employs the kernel trick to transform input data into a higher-dimensional space, enabling it to address non-linear relationships. The algorithm aims to find a hyperplane that fits the data with the least possible deviation within a specified threshold, known as epsilon.
One of the key advantages of SVR is its flexibility in managing non-linear data through various kernel functions, including linear, polynomial, and radial basis functions. This adaptability enables SVR to conform to various data structures, making it suitable for a wide range of applications. Furthermore, SVR is memory-efficient, as it relies on a subset of the training points (support vectors) in its decision function.

3.2.3. Random Forest Regressor

The Random Forest Regressor (RFR) is an ensemble learning technique that constructs multiple decision trees and produces predictions by averaging the outputs of these individual trees. This method, referred to as bootstrap aggregating or bagging, enhances both accuracy and robustness. Each tree is created from a random subset of the training data, which helps mitigate overfitting and improve the model’s generalization capabilities. The diversity among the trees enables the Random Forest to effectively capture complex interactions between features, making it a powerful tool for regression tasks.
The key advantages of Random Forest include its efficiency in handling high-dimensional data and large datasets. It accommodates both numerical and categorical variables, demonstrating robustness against outliers and noise. Additionally, the algorithm offers measures of feature importance, providing valuable insights into the underlying data structure. However, it can be computationally demanding and memory-intensive, especially when a large number of trees are utilized. While the ensemble nature of the model may reduce interpretability compared to single decision trees, this trade-off is often justified by the substantial gains in predictive accuracy.

3.2.4. Multi-Layer Perceptron Regressor

An MLP is a type of artificial neural network designed to model complex relationships through multiple layers of interconnected neurons. An MLP comprises an input layer, one or more hidden layers, and an output layer. Each neuron in a layer is connected to every neuron in the subsequent layer, forming a dense network capable of learning intricate patterns within the data. The network employs an activation function in each layer to introduce non-linearity, enabling it to capture complex, non-linear relationships. Training the model involves backpropagation, during which the weights are adjusted iteratively to minimize prediction error.
The advantages of MLPs lie in their ability to approximate any continuous function, provided that a sufficient number of neurons and training data are available. This flexibility makes them suitable for a diverse range of applications, including image and speech recognition, financial forecasting, and medical diagnosis. One of the model’s key strengths is its capacity to handle large datasets and capture complex dependencies among features. However, MLPs require significant computational resources, particularly when dealing with deep networks comprising numerous layers and neurons. The training process can also be slow and may necessitate a substantial amount of data to avoid overfitting. Additionally, MLP models can be challenging to interpret, as their complex network structure does not readily provide insights into the relationships between variables.

3.2.5. AdaBoost Regressor

AdaBoost Regressor (ABR), which stands for Adaptive Boosting, is an ensemble learning technique that combines multiple weak learners to create a robust predictive model. The algorithm operates by sequentially adding weak learners, typically in the form of decision stumps, to the model. Each learner is trained to correct the errors made by its predecessors, with increased emphasis placed on instances that were misclassified. This iterative process continues until either a specified number of weak learners is reached or no further improvements can be achieved. AdaBoost is particularly effective in enhancing the performance of weak models, although it can be sensitive to noisy data and outliers.
The strength of AdaBoost lies in its ability to enhance the accuracy of weak models by focusing on challenging instances. The algorithm dynamically adjusts the weights of the training data, placing greater importance on those that are more difficult to predict. This targeted approach enables the model to learn from its errors and gradually improve. However, AdaBoost is also at risk of overfitting, especially when dealing with noisy data, as it may pay excessive attention to outliers. Furthermore, the performance of AdaBoost is influenced by the selection of weak learners and the number of iterations, necessitating careful tuning and validation.

3.2.6. Gradient Boosting Regressor

Gradient Boosting Regressor (GBR) is an ensemble learning technique that constructs models sequentially, with each new model aiming to rectify the errors made by its predecessors. This approach leverages the strengths of multiple simple models to generate a robust predictive model. Each model in the sequence is trained on the residuals of the previous model, progressively minimizing the overall prediction error. The iterative nature of Gradient Boosting enhances its performance, making it an effective method for capturing complex patterns within data. This technique excels with structured data and can achieve impressive predictive accuracy.
One of the primary advantages of Gradient Boosting is its flexibility in accommodating various loss functions, which can be customized to address specific problems. This versatility enables Gradient Boosting to be applied across a wide range of applications, including regression, classification, ranking, and other complex tasks. Furthermore, the algorithm demonstrates commendable resilience to overfitting, particularly when parameters are adjusted with meticulous care. Its capability to manage both numerical and categorical data, along with its efficiency in processing large datasets, positions Gradient Boosting as a favored choice in numerous machine learning endeavors.

3.2.7. k-Nearest Neighbor Regressor

KNN is a non-parametric algorithm utilized for both classification and regression tasks. It predicts the value of a new data point by considering the ’k’ nearest neighbors from the training set. This method operates on the premise that similar data points tend to be clustered together, making KNN both intuitive and straightforward to implement. In regression tasks, KNN determines predictions by calculating the average value of the ’k’ nearest neighbors. Its simplicity and intuitive design contribute to the popularity of KNN across various applications, including pattern recognition and data mining.
The primary advantages of KNN include its straightforwardness and flexibility, as it does not impose any assumptions regarding the underlying data distribution. It effectively handles both classification and regression tasks, demonstrating resilience against noisy data. However, KNN can be computationally demanding, particularly with large datasets, due to the need to calculate distances for all data points in the training set for each prediction. This can result in high memory usage and slower prediction times. Additionally, the algorithm’s performance is heavily influenced by the choice of ’k’ and the distance metric, requiring extensive cross-validation to optimize these parameters. KNN is also sensitive to the scale of the data, necessitating the use of appropriate normalization or standardization to ensure accurate results.

3.2.8. Extra Tree Regressor

The Extra Tree Regressor (ETR), also known as Extremely Randomized Trees, is an ensemble learning technique that enhances prediction accuracy and robustness by averaging the outputs of multiple decision trees. This approach involves constructing numerous trees using the entire dataset while selecting split points at random, thereby increasing diversity among the trees. This inherent randomness helps to mitigate overfitting, rendering Extra Trees more resilient than standard decision trees or even Random Forests in certain situations. The algorithm effectively manages both numerical and categorical variables, demonstrating robustness in the presence of outliers and noise within the data.
One of the key advantages of the Extra Trees Regressor is its capability to accommodate diverse data types and provide estimates of feature importance, which are crucial for gaining insights into the underlying data structure. The random selection of split points yields a diverse set of trees, which enhances the model’s ability to generalize to new data. Furthermore, Extra Trees is computationally efficient and lends itself to parallelization, thus making it scalable for large datasets. However, the model may be less interpretable compared to simpler models such as linear regression, as it consists of an ensemble of multiple trees. It can also be memory-intensive, necessitating considerable storage for the ensemble. While randomness typically helps reduce overfitting, it may occasionally lead to increased bias if the model is not correctly tuned. Therefore, careful parameter tuning and validation are essential to achieve optimal performance.

3.2.9. Long Short-Term Memory

LSTM networks are a specialized form of RNNs that effectively capture long-term dependencies in sequential data, making them particularly suited for time series prediction. LSTMs address the shortcomings of traditional RNNs by incorporating mechanisms such as input, output, and forget gates, which regulate the flow of information. This enables the network to retain relevant information over extended periods while discarding irrelevant data. As a result, LSTMs excel in various tasks, including time series forecasting, speech recognition, and natural language processing.
The primary advantage of LSTMs lies in their robustness when handling sequential data, where the relationships between data points over time are critical. This characteristic makes them highly effective for applications demanding precise time series predictions, such as financial market forecasting, weather prediction, and energy load forecasting. By effectively managing the vanishing gradient problem—a common challenge in standard RNNs—LSTMs maintain performance across long sequences.
Despite their strengths, LSTMs do have limitations. They are computationally intensive and require considerable training time and resources, particularly when working with large datasets. The complexity of the model can complicate the interpretation of its internal workings and the relationships it captures. Additionally, hyperparameter tuning for LSTMs can be intricate, often necessitating extensive experimentation to achieve optimal performance. Nevertheless, the advantages of LSTMs in managing complex sequential data establish them as invaluable tools within the machine learning toolkit.
In summary, LSTM networks are potent methods for modeling and predicting sequential data due to their capacity to capture long-term dependencies while alleviating common issues faced by traditional RNNs. Although they are resource-intensive and require careful tuning, their applications across various fields highlight their significance and effectiveness in time series analysis.

3.2.10. Comparison of Model Performances

The performance metrics (R2 and Mean Squared Error, MSE) obtained from the Deep Learning models for each start–end pair are presented in Table 3 and Table 4. As indicated by the tables, the LSTM model has exhibited significantly superior performance in terms of R2 across all origin–destination pairs when compared to the other models. However, with respect to mean squared error (MSE), it outperformed the other models only in the Martinez Garrido–Burgos and Aragon–Jenaro pairs. In the cases of Aeropuerto Hasta Ap-9 Tunnel Da Madroa, GBR, Florida–Padre Seixas A Ricardo Mella, and Praza Da Estacion A Garcia Barbon Ve Pso Alfonso XII–G Portela–Berbes, the MLP model demonstrated the best performance. Nevertheless, the performance of the LSTM model closely approached that of these models. In both tables, the best values are highlighted in bold. The hyperparameters of the LSTM model are presented in Table 5. To visualize the prediction performance of the LSTM model, the predicted speed values derived from the speed data obtained at Martinez Garrido-Burgos A Aragon-Jenaro for a single day are illustrated in Figure 4.
The results indicate that the models perform well in estimating traffic volume through time-series analysis using machine learning methods, with the LSTM model demonstrating the highest levels of performance among those tested. Accurate traffic predictions are crucial for various applications, including demand management, optimizing traffic signal timings, and balancing traffic flow. Nonetheless, models trained solely on historical traffic speed data, despite achieving high accuracy, exhibit limitations in anticipating changes in traffic conditions. Additionally, they tend to provide average values during peak and trough periods of demand, including speed estimates.

3.3. Load-Balancing Algorithm

Load balancing has its roots in computer technology. It refers to the process of distributing resources—such as servers, processors, and storage units—across a network or system in an equitable manner to optimize performance. This approach not only enhances the efficiency of network or system operations but also bolsters resilience against potential overloads.
The primary objective of load balancing is to effectively distribute traffic or queues directed towards resources experiencing high demand. By ensuring that traffic is evenly distributed among available resources, load balancing helps prevent resource overload. It mitigates the risks associated with single points of failure, which can lead to performance degradation.
This technique is particularly prevalent in large-scale networks and server clusters, where it plays a crucial role in ensuring high availability and performance. By reducing the likelihood of system crashes, load balancing improves user experiences and supports business continuity. A variety of load-balancing algorithms and technologies are employed to cater to differing requirements.
In the realm of transportation engineering, load balancing can be likened to the role of a traffic police officer, who alleviates congestion by directing vehicles to optimal positions. This systematic approach not only prevents accidents but also ensures that vehicles reach their destinations as efficiently and swiftly as possible. Traffic load balancing, therefore, refers to the balanced distribution of traffic across various resources in a network, resulting in more effective resource utilization and improved network performance.
Implementing traffic load balancing is crucial for increasing operational efficiency, saving time and resources, and minimizing environmental impacts in road transportation. Consequently, transportation companies and logistics operations can strategically adopt these practices to reap significant benefits, particularly in large distribution centers, logistics hubs, and warehouses, where effective traffic management is essential. This not only helps to lower costs but also improves delivery timelines.
Achieving effective transportation efficiency can be accomplished through several methods:
Route Optimization: This process ensures that the chosen route is the most accurate, based on time and distance parameters. To optimize routes, various factors must be taken into account, including the number and locations of necessary visit points along the route, as well as the timing of these visits. By optimizing transportation routes, vehicles can take shorter and more efficient paths, resulting in reduced fuel consumption and time savings. Effective route optimization not only enhances distribution and transportation processes but also supports business growth through cost-effectiveness.
Vehicle Tracking Systems: Global Positioning System (GPS)-based vehicle tracking systems facilitate real-time monitoring of vehicles, allowing for route adjustments based on current traffic conditions and helping to balance traffic load.
Capacity Planning: Efficient transportation capacity planning organizes vehicles and shipments according to demand, thereby preventing unnecessary trips made by empty vehicles.
Multiple Distribution Centers: For larger companies, utilizing multiple distribution centers to distribute loads yields positive outcomes by balancing traffic and minimizing delivery times.
Transportation Diversification: Employing a diverse range of interoperable transportation modes—such as trucks, trains, and ships—helps to balance traffic loads and reduce costs.
Traffic Routing: Traffic routing algorithms can effectively be employed to steer clear of congested areas.
In the IN2CCAM project, the development of a load-balancing algorithm began with classifying roads in the city center of Vigo into four categories based on their respective legal speed limits. For each category, the boundary conditions of traffic flow were determined. These conditions included free flow speed (us), jam density (kjam), and maximum flow (Qmax), which were calculated based on the number of lanes in one direction, ranging from one to four. Utilizing these values, the fundamental relationship between speed and flow was derived individually for each road, as illustrated in Figure 5.
The speed–flow relationship predicts a decline in flow when demand surpasses Qmax; however, it fails to address how speed is affected when demand exceeds capacity. Consequently, for the saturated flow conditions depicted in Figure 6, the shift in speed resulting from demand exceeding capacity was determined by symmetrically reflecting the forced flow section of the graph around the capacity point. This approach enabled the derivation of individual curves that illustrate how vehicle demand affects flow speed on each road in the city center of Vigo.
The developed load-balancing algorithm determines the optimal route between any two points by taking into account current road congestion. It subsequently guides vehicles along these routes to distribute traffic evenly and prevent bottlenecks. As each new vehicle contributes to the load on its selected path, the algorithm recalibrates the conditions and may suggest an alternative route for subsequent vehicles.
Initially, a weighted and directed graph is constructed to represent all possible transactions between roads. The algorithm incorporates two distinct weights: the distances between roads and the travel durations between them (Equations (3)–(5)).
G = (V, E, d, τ)
d:E ⟶ R_(>0)
τ:E ⟶ R_(>0)
In this context, V represents the set of roads, E signifies the set of directed connections, d denotes the length of edge E in kilometers, and τ indicates the expected travel time in minutes.
Once the graph is created, an adjacency matrix is generated to facilitate recursive calculations and enable traversal of all nodes. Based on the structured data, all potential paths between the source and destination are determined using a depth-first algorithm with an exhaustive search method.
The 15-min prediction results are used to determine how many seconds it will take for a driver to use a route, considering the car congestion on that route. With the prediction results using discrete time blocks of 1–20 s, a car congestion threshold dataset is constructed. Each column represents a car congestion threshold, which is needed at maximum to travel at that time in seconds. The weights of the duration and distance parameters are tested in different proportions.
The path with the shortest distance is identified with depth-first approach, and, subsequently, all paths whose distance is less than λ times the shortest distance are filtered for evaluation, where λ is a tuned threshold set by the Sobol test.
The duration of the filtered paths is then calculated in relation to the road’s load. To evaluate the optimal path, durations and distances of roads are normalized with respect to their minimum and maximum values, and a weighted average approach is employed. The weight α balances time and distance and is tuned via the Sobol sensitivity test. The procedure is given as Equations (6) and (7).
d ~ = d d m i n d m a x d m i n ,   t ~ = t t m i n t m a x t m i n
Weighted average = α(duration) + (1 − α/100)(distance)
The weighted average is calculated based on the priority assigned to the variables of duration and distance. After computing the weighted average for each candidate path, the one with the lowest value is selected. Subsequently, the travel times for the roads along that route are updated. Each time a new vehicle is routed from the source to the destination, these same steps are repeated. As traffic increases, travel times may change, which can alter the recommended path compared to the initial suggestion. Evaluations of the results are analyzed using the First-order Sobol Sensitivity Test. Based on the parameters within the specified range, 512 tests have been conducted. Table 6 and Table 7 present the parameters of the load balancing algorithm and the Sobol sensitivity scores of the algorithm, respectively. The change in the depth range had zero variance in the Sobol Sensitivity Test, as it was observed that the algorithm’s convergence determination depends on 10 or fewer recursions.
The pseudo-code of the load-balancing algorithm is given as Algorithm 2.
Algorithm 2. Pseudo Code of the Load-Balancing Algorithm
1:Proc ENUMERATE_PATHS(G, s, t, Dmax):
2:Input: G = (V, E, d, τ)
3:s ← source vertex
4:t ← destination vertex
5:Dmax ← recursion depth limit
6:Output: P ← list of tuples (π, dist(π))
7:Procedure DFS(cur, depthleft, path, distacc):
8:If depth_left = 0:
9:Return
10:For each (cur, nxt) ∈ E:
11:de ← d(cur, nxt)
12:If nxt = t:
13:π ← path ▹ [cur, nxt]
14:Append (π, distacc + de) TO P
15:Continue
16:If nxt ∈ path:
17:Continue
18:DFS(nxt,
19:depthleft − 1,
20:path ▹ [cur, nxt],
21:distacc + de)
22:Initialise empty list P
23:DFS(s, Dmax, [], 0)
24:Return P
The description of the pseudo-code is provided in Appendix A.

4. Traffic Simulations

The PTV Vissim 2023 software was employed to simulate traffic conditions. The analysis was constrained by the software’s 1000 km road drawing limit and the complexity of mapping Bluetooth data to individual road segments. Consequently, the study concentrated on a designated sample area rather than the entire city of Vigo. During the simulation phase, the geographic boundaries of this sample area were established to ensure an accurate representation of the region, as shown in Figure 7.
The road network of the selected sample area was represented in the simulation model. The representation incorporated key parameters, including the number of lanes, lane width, geometric characteristics, road classification, intersections, and turning movement data for both right and left turns. Figure 8 displays the roads included in the simulation model.
In the next phase, traffic control devices were integrated into the simulation model for the designated area in Vigo. This involved defining the locations and phases (red, yellow, and green lights) of each traffic signal, as depicted in Figure 9. In the simulations, the same signal plans were implemented during weekend peak hours as well. Subsequently, the routes of public transportation lines within the sample area were incorporated, along with the placement of stops and the frequency of service. In the following steps, these transportation routes, stop locations, and service frequencies were systematically added to the simulation. In the final stage, the hourly traffic flow for each road segment was established in the simulation, with average speeds reflecting the vehicle composition.
Scenario preparation is essential for evaluating traffic performance under varying traffic conditions. In this context, multiple scenarios are developed using a calibrated and validated simulation model. By employing a load-balancing algorithm designed to distribute traffic load more evenly, simulations of load-balancing applications are conducted for historical dates and times within the modeled area. Each scenario aims to compare the algorithm’s effectiveness in balancing traffic and its responsiveness to different traffic situations. These scenarios incorporate various traffic conditions from different times, including both peak and off-peak hours. The analyses will yield insights into the algorithm’s efficacy in managing traffic flow and assessing potential changes in traffic performance.
For the analysis, traffic conditions during peak hours over a ten-day period in 2023 were examined. A dataset was prepared to select these days, taking into account factors such as weekdays versus weekends, seasonal variations (summer versus winter), whether schools were in session, and differing weather conditions. The identified peak hour periods for the city are as follows: on weekdays, the morning peak spans from 07:30 to 08:30, while the evening peak occurs from 17:15 to 18:15. On weekends, the morning peak is from 11:00 to 12:00, and the evening peak is from 18:00 to 19:00. A detailed overview of the included days and their corresponding conditions can be found in Table 8.
In the Vigo study, vehicle volume and speed data were collected using Bluetooth sensors deployed at multiple locations across the network. This approach correlated detected vehicles rather than relying solely on counts at individual road sections or on origin–destination matrices derived from start and end zones. The Bluetooth sensors were assumed to operate with an accuracy of 30%, a value periodically updated by the Traffic Management Centre of Vigo through comparisons with inductive loop measurements on main roads. Accordingly, the measured volume data were scaled by a factor of 3.33 to estimate total traffic. In addition, a ±5% normally distributed error term was added to ensure randomness. These route-based data were subsequently allocated to individual road segments, allowing for the determination of total hourly traffic volume for each segment. The O-D demand matrix used in the simulation conducted for 16 January 2023, at 17:15, is presented in Table 9, while the O-D demand matrix used in the simulation conducted for 10 June 2023, at 18:00, is presented in Table 10. In both tables, the rows represent origins and the columns represent destinations. In both tables, the diagonal cells in the OD matrix were marked with ‘–’ to indicate that trips with the exact origin and destination are not considered, since no travel demand is defined in such cases. Table 11 lists the segment represented by each letter.
For traffic simulations to yield reliable and accurate results, it is essential to conduct the processes of calibration and validation meticulously. Calibration involves fine-tuning the model to ensure it aligns with real-world data. During this phase, model parameters, such as vehicle speeds and signal timings, are adjusted based on observed traffic conditions. Real traffic data is collected and utilized to construct the model. Validation, on the other hand, evaluates the accuracy of the calibrated model by testing it against various datasets. Both calibration and validation are critical for ensuring the model’s realism and dependability, thus enabling decision-makers to formulate strategies based on credible and trustworthy results.
During the calibration process, distinct scenarios were established for morning and evening peak hours over 10 days, with vehicle volumes and speeds allocated to various scenarios for each day. The simulation runtime was set to 3600 s, accompanied by a 900-s warm-up period. Each scenario was executed with 48 random seeds and run 10 times to minimize variability, using the average results for analysis. The model calibration was conducted with consideration for driver behaviors. Since the considered road network consists of urban roads, the calibration was performed based on the parameters of the Wiedemann 74 car-following model [63]. The Wiedemann 74 model has three parameters: the average standstill distance, the additive part of the safety distance, and the multiplicative part of the safety distance. During the calibration process, the values of these three parameters were adjusted to ensure that the traffic volumes and average speed values on each link matched the observed values. As a result of the calibration, the parameters were set as follows: average standstill distance = 2 m, additive part of safety distance = 2, and multiplicative part of safety distance = 3.
Over the course of the ten days analyzed, a total of 20 primary scenarios—comprising one-hour intervals during both morning and evening peak times—were executed in the simulations for the validation process. The average traffic flow speeds for each road segment were validated using the GEH (Geoffrey E. Havers) statistic. The GEH statistic is a widely recognized non-linear metric in traffic engineering that compares volume values derived from model data with those observed in real-world data. A GEH value of less than 5 indicates a well-calibrated model, which is interpreted as a discrepancy of 0.5 vehicles per hour. Feldman provides the formula used to calculate the GEH value as Equation (8) [64].
G E H = 2 Q m o d e l Q o b s e r v a t i o n 2 Q m o d e l + Q o b s e r v a t i o n
The acceptance criteria for the GEH value are set as follows: values from 0 to 5 indicate a well-established model, values between 5 and 10 require further investigation, and values exceeding 10 are considered unacceptable [64]. The field data (Qobservation) and model outputs (Qmodel) were divided into 15-min intervals and evaluated using the GEH statistic. Notably, all GEH values resulting from the comparison between the model and real-world data are below 5, demonstrating the model’s alignment with observed data and reinforcing its reliability. The GEH values for each road segment across the 20 scenarios were calculated using both model and observed data (see Table 12). The GEH values obtained from each seed for each road segment on 10 June 2023 are presented in Table 13. In both tables, the best values are highlighted in bold, and the values exceeding 5 are shown in red.
After calibrating and validating the primary scenarios, the impacts of load balancing on traffic conditions and performance were systematically analyzed. This analysis was conducted in collaboration with the Traffic Control Centre (TCC) to examine vehicle participation levels of 25%, 50%, 75%, and 100%. To facilitate this, four sub-scenarios were created for each primary scenario, resulting in a total of 80 scenarios (20 main scenarios multiplied by four increments). In these scenarios, dynamic assignment was employed to redistribute vehicles across different routes based on road segment delay rates, effectively balancing the traffic load. This approach aimed to alleviate congestion and decrease emissions by optimizing vehicle distribution throughout the network.
The performance of the traffic network and emissions were analyzed using load balancing. For scenarios demonstrating an improvement of more than 5% in traffic network performance, load balancing was examined at levels of 25%, 50%, 75%, and 100%. Conversely, in situations yielding lower performance improvements, only the outcome of 100% load balancing was considered. Moreover, for the scenarios simulating 25 July 2023, load balancing was not applicable due to the exceedingly low traffic volume recorded on that day.

5. Results

The evaluation of 20 distinct scenarios involving load balancing focused on several key metrics: average speeds, total travel time, total delays, total number of stops, and total standstill time. Additionally, the study examined the effects of re-routing vehicles by 25%, 50%, and 75% in scenarios where the impact of these re-routed vehicles was significant. The results indicate that weekday scenarios with 100% load balancing exhibited significant improvements. Average speeds increased by 3%, and total travel time was reduced by 3%. Furthermore, total delays decreased by 8%, the total number of stops fell by 6%, and total standstill time declined by 10%. Conversely, weekend scenarios exhibited more modest improvements. Average speeds rose by 1%, and total travel time decreased by 1%. Total delays decreased by 4%, the number of stops fell by 4%, and total standstill time declined by 5%.
Emission calculations were established for each vehicle type utilizing an external emission model in PTV Vissim 2023 software. This emission model was developed based on the research conducted by Nouri and Morency [65]. Through this model, the values for CO (Carbon monoxide), CO2 (Carbon dioxide), NOX (Nitrogen oxides), and HC (Hydrocarbons) were determined for each scenario. In the City of Vigo, the Euro-class mix of vehicles in traffic in 2023 is presented in Figure 10. In the simulation environment, the vehicle distributions were also aligned with these proportions. The definitions of the classes in the figure are as follows:
  • Without label: All gasoline prior to 2001 or that does not comply with Euro III—all diesels before 2006 or that do not comply with Euro IV.
  • Label B: All gasoline vehicles registered on or after 1 January 2001 or that comply with Euro III. All diesels registered on or after 1 January 2006 or complying with Euro IV and Euro V.
  • Label C: All gasoline vehicles registered on or after 1 January 2006 or that comply with Euro IV, Euro V, or Euro VI. All diesels registered on or after 1 September 2015 or Euro VI compliant.
  • ECO Label: All hybrid or plug-in hybrid vehicles with an electric range of less than 40 km. All vehicles powered by natural gas, compressed natural gas (CNG), or liquefied petroleum gas (LPG), and that also meet the requirements of label C.
  • Zero Emissions Label: All electrified vehicles with an electric range of more than 40 km, whether pure electric, plug-in hybrids, or extended range electric. All vehicles are powered by hydrogen or fuel cells.
Table 14 and Table 15 present the scenarios and their corresponding emission results, respectively. The implementation of load-balancing measures has led to reductions in traffic congestion and delays, which in turn have diminished stop-and-go movements and lowered emissions. On average days, this has resulted in approximately a 4% decrease in levels of CO2, NOx, HC, and CO. On days with heavier traffic, this reduction can reach as high as 11%.

6. Discussion

The implementation of the traffic load-balancing algorithm revealed significant advantages in enhancing overall network performance and reducing environmental impacts. By identifying congested road segments and redistributing traffic flows in real-time, the proposed system achieved measurable improvements in average speed, travel time, and emissions across various simulation scenarios. These outcomes demonstrate the algorithm’s ability to optimize route choices based on anticipated traffic conditions dynamically.
A notable strength of this study is its integration of machine learning-based short-term traffic forecasting with microsimulation modeling. Unlike traditional methods that rely solely on current traffic data, this approach facilitates proactive traffic management by predicting near-future conditions. This capability is especially relevant in urban settings that experience frequent demand fluctuations due to temporal, meteorological, or event-related factors.
One limitation of the conducted study is that vehicle volume and speed data were obtained from Bluetooth sensors. The information that Bluetooth sensors can detect approximately 30% of the actual traffic volume was obtained from previous studies carried out by the Municipality of Vigo. In the current study, vehicle volumes were scaled based on this value by multiplying by 3.33, and a randomly varying error term of ±5% was added. It was considered that a 30% sampling rate would represent the actual average speed with high accuracy (±10.6% for a population of 200 vehicles and ±8.7% for a population of 300 vehicles), and the values obtained from the sensors were used in the modeling. Using alternative detection methods to obtain vehicle volumes and average speeds with higher accuracy (considering the vehicle types as well) would increase the reliability of the study.
Another limitation of this study is that the LSTM models were developed considering traffic conditions within a two-hour historical time window. Extending the time horizon and incorporating exogenous/spatial features such as weather, holidays, events, or neighboring link conditions could further improve the performance of the LSTM models. However, each additional parameter increases model complexity and the computational load required. In particular, under a 100% compliance rate scenario, all vehicles in the city would communicate with the TCC, and repeated calculations would be required for each route. Therefore, the number of parameters included in the model has been kept as low as possible. Consequently, a model reflecting the trade-off between accuracy and simplicity was established, with simplicity dominating. Nevertheless, the LSTM models achieve R2 values above 0.9, demonstrating that accuracy is well beyond merely acceptable. Adding more parameters to the LSTM models could further enhance performance. In future studies, additional parameters could be incorporated into LSTM models to improve prediction performance. However, the practical applicability of the model should also be considered in such cases.
A further limitation of this study is that pedestrian movements and trips made with non-motorized modes, such as micromobility systems, were not considered in the microsimulation. The traffic data obtained from Vigo Municipality does not include pedestrian activity or vehicles operating at low speeds, such as micromobility modes. Pedestrian interactions with motorized traffic primarily occur when crossing the street, typically during the red signal phase for motor vehicles. Given that the actual signal phases and timings used in the city were incorporated into the simulation, one may argue that pedestrian traffic was, to some extent, implicitly taken into account. However, including pedestrian and non-motorized vehicle traffic in the simulation would enable a much more realistic representation of traffic conditions. This, however, would proportionally increase the computational burden. Therefore, the objectives of the simulation should be carefully defined, and an appropriate balance should be struck between simplicity and accuracy.
The findings are particularly encouraging for cities like Vigo, which feature irregular urban layouts and varied traffic patterns. The scalability of this approach indicates its potential applicability in a broader range of contexts. Similar frameworks could be modified to suit other urban centers with distinct traffic dynamics, infrastructure configurations, and varying levels of data availability. Future research may focus on adapting the algorithm for larger and more complex metropolitan networks, or on integrating multimodal transportation systems, including public transit, bicycles, and micromobility options.
Additionally, while this study predominantly examined passenger vehicles, broadening the model to include freight vehicles, ride-sharing systems, and connected autonomous vehicles (CAVs) would yield a more thorough assessment of network-wide performance in mixed traffic scenarios. By incorporating V2V and V2I communications into the load-balancing framework, the responsiveness and efficiency of highly interconnected urban environments could be significantly enhanced.
The results of this paper underscore the dual importance in real-life settings of the algorithm presented here: that it improves traffic network operation, as well as its sustainability. Through the redistribution of demand and the reduction in congestion, the approach avoids unnecessary fuel consumption and CO2 emissions, thus contributing to a push for sustainable traffic systems. The approach can also synchronize with other innovative mobility modes, such as electrification and shared mobility, to create a more sustainable urban mobility ecosystem. From a policy perspective, such decision support can serve as a foundation for various planning processes.
The results clearly demonstrate that traffic load balancing, when integrated with predictive analytics and simulation-based validation, presents a feasible solution for optimizing urban traffic. This approach not only helps alleviate congestion and mitigate environmental effects but also aligns with the broader goals of sustainable urban mobility and intelligent transportation systems.
In conclusion, the identification of congested road segments and the application of load-balancing strategies have yielded positive outcomes regarding both traffic network performance and emission reduction. This methodology could be effectively implemented not just in the city of Vigo but also in various other cities and countries across different scales. Furthermore, the study could be expanded to encompass not only passenger vehicles but also other modes of transportation and their integration. The findings suggest that merging load balancing with intelligent transportation systems can significantly enhance urban quality of life while lessening the environmental impact associated with transportation.

7. Conclusions

This study proposed and evaluated a traffic load-balancing algorithm designed for the city of Vigo, Spain, as part of the IN2CCAM Horizon 2020 project. The algorithm incorporated short-term traffic predictions, primarily generated using LSTM models, alongside a dynamic routing mechanism intended to redistribute traffic demand and optimize network performance. Results from various simulation scenarios indicated improvements in average travel speed, reductions in delays and periods of standstill, and measurable decreases in pollutant emissions.
The findings confirm that integrating predictive analytics with dynamic load balancing can yield significant advantages for urban traffic management. This approach not only facilitates a more efficient utilization of existing infrastructure but also enhances environmental sustainability by reducing fuel consumption and emissions. Additionally, the methodology offers practical value for policymakers and local authorities, serving as a decision-support tool to inform the development of more adaptive and inclusive mobility strategies.
Future research should concentrate on extending the application of the proposed algorithm to various cities with differing traffic and infrastructure characteristics, as well as incorporating more advanced prediction models such as GNNs. These advancements will enhance the approach’s adaptability and robustness, contributing to the establishment of smarter and more sustainable urban transportation systems.

Author Contributions

Conceptualization, S.D. and S.A.; methodology, S.D. and S.A.; software, S.D., İ.M.U. and O.D.; validation, S.D. and S.A.; formal analysis, S.D. and S.A.; investigation, S.D. and S.A.; resources, S.D.; data curation, S.D. and S.A.; writing—original draft preparation, S.D., İ.M.U. and O.D.; writing—review and editing, S.D.; visualization, S.D.; supervision, S.D. and S.A.; project administration, S.D.; funding acquisition, S.D. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by European Union’s Horizon CL5 2022-D6-01-04 research and innovation program, grant number 101076791.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The datasets presented in this article are not readily available because they belong to Municipality of Vigo. Requests to access the datasets should be directed to Municipality of Vigo.

Acknowledgments

During the preparation of this manuscript, the authors used Grammarly for the purposes of improving the language of this text. The authors have reviewed and edited the output and take full responsibility for the content of this publication.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ABRAdaBoost Regressor
AIArtificial Intelligence
ANNsArtificial Neural Networks
API RESTApplication Programming Interface Representational State Transfer
APPApplication
ARIMAAutoregressive Integrated Moving Average
BiLSTMBidirectional Long Short-Term Memory
CAVConnected Autonomous Vehicle
CCAMCooperative, Connected, and Automated Mobility
CLMGCNContrastive Learning Multi-Graph Convolution Network
CNGCompressed Natural Gas
CNNsConvolutional Neural Networks
COCarbon monoxide
CO2Carbon dioxide
DBNsDeep Belief Networks
DGSTNDynamic Graph Spatial–Temporal Neural Network
DRL Deep Reinforcement Learning
ETRExtra Tree Regressor
GBsGigaBytes
GBRGradient Boosting Regressor
GDPRGeneral Data Protection Regulation
GEHGeoffrey E. Havers
GNNGraph Neural Network
GPSGlobal Positioning System
GRNNGeneral Regression Neural Network
GRUsGated Recurrent Units
HCHydrocarbons
I-55Interstate 55
IN2CCAMEnhancing Integration and Interoperability of CCAM eco-system
IVIIn Vehicle Information
JSONJavaScript Object Notation
KNNK-Nearest Neighbor
LPGLiquefied Petroleum Gas
LSTMLong-Short Term Memory
MACMedium Access Control
MAPEMean Absolute Percentage Error
MLPMultilayer Perceptron
MLRMultiple Linear Regression
MSEMean Squared Error
NOxNitrogen oxide
O-DOrigin–Destination
RFRandom Forest
RFRRandom Forest Regressor
RLReinforced Learning
RNNsRecurrent Neural Networks
RSURoad Side Unit
SAEsStacked Autoencoders
SDStandard Deviation
SEStandard Error
SOSystem Optimum
SRD-LBSmart Route Determining with Load Balancing
SSRSum of Squared Residuals
SVMsSupport Vector Machines
SVRSupport Vector Regression
TCCTraffic Control Centre
UEUser Equilibrium
V2IVehicle-to-Infrastructure
V2VVehicle-to-Vehicle
V2XVehicle-to-Everything
VMPVariable Message Panel

Appendix A

This glossary defines the symbols and variables used in the path-enumeration procedure that builds candidate routes from a source node to a target node in a positively weighted graph G = (V, E, d, τ), where d: E → ℝ+ is edge distance, and τ: E → ℝ+ is edge duration. The algorithm performs a depth-bounded, cycle-free DFS and returns a set P of complete paths, each annotated with its total distance (and, optionally, duration).
VariableTypeDefinition/RoleSet/Computed byExample
ENUMERATE_PATHSProcedure/functionTop-level routine that initializes the search and returns P; calls DFS(s, D_max, [], 0).Defined by the algorithm; orchestrates recursion and final return.Returns P = { (π1, d(π1)), (π2, d(π2)), … }
sVertex (node)Source node where path search starts.Given as input.s = A
D_maxInteger (≥0)Maximum number of edges (hop budget) allowed for any path explored.Given as input; controls search breadth.D_max = 3
depth_leftInteger (0…D_max)Remaining hop budget at the current recursion level.Starts at D_max; decremented by 1 on each recursive step.depth_left = 2
curVertex (node)The node currently being expanded during DFS.Initialized as s; updated to nxt on recursion.cur = B
nxtVertex (node)A neighbor of cur reached by an outgoing edge (cur, nxt).Enumerated from outgoing edges of cur.nxt = C
ESet of edges (subset of V × V)Edge set of the graph; may be directed or represented with symmetric pairs for undirected graphs.Defined by the network/road topology.E = {(A,B), (B,D), (A,C), (C,D)}
d_ePositive real (ℝ+)Distance (weight) of the edge currently traversed.d_e = d(cur, nxt).d_e = 3.0 (km)
dWeight function d: E → ℝ+Maps each edge to its distance (or cost) used in accumulation and pruning.Provided with the graph; queried as d(u,v).d(A,B) = 5
tVertex (node)Target (destination) node. When nxt == t, a complete path is recorded.Given as input.t = D
π (pi)Path (ordered list of edges or vertices)A complete route from s to t discovered by DFS.π = path ⊕ [(cur, nxt)] when nxt == t (⊕ = concatenate).π = [(A,B), (B,D)]
pathPartial pathThe path built so far along the current recursion branch (no repeated vertices).Extended on recursion: path’ = path ⊕ [(cur, nxt)].path = [(A,B)]
dist_accPositive real (ℝ+)Accumulated distance along the current partial path.Updated as dist_acc’ = dist_acc + d_e.dist_acc = 5.0
PList/set of recordsCollection of discovered complete paths with annotations (e.g., total distance).Append (π, dist_acc + d_e) whenever nxt == t.P = [([(A,B),(B,D)], 9.0), ([(A,C),(C,D)], 5.0)]

References

  1. Macioszek, E.; Kurek, A. Road Traffic Distribution on Public Holidays and Workdays on Selected Road Transport Network Elements. Transp. Probl. 2021, 16, 127–138. [Google Scholar] [CrossRef]
  2. Wardrop, J.G. Some theoretical aspects of road traffic research. Proc. Inst. Civ. Eng. 1952, 1, 325–378. [Google Scholar] [CrossRef]
  3. Meghana, B.S.; Kumari, S.; Pushphavathi, T.P. Comprehensive traffic management system: Real-time traffic data analysis using RFID. In Proceedings of the International conference of Electronics, Communication and Aerospace Technology (ICECA), Coimbatore, India, 20–22 April 2017. [Google Scholar] [CrossRef]
  4. Gu, Y.; Xie, L. Fast sensitivity analysis approach to assessing congestion induced wind curtailment. IEEE Trans. Power Syst. 2014, 29, 101–110. [Google Scholar] [CrossRef]
  5. Sun, N.; Shi, H.; Han, G.; Wang, B.; Shu, L. Dynamic path planning algorithms with load balancing based on data prediction for smart transportation systems. IEEE Access 2020, 8, 15907–15922. [Google Scholar] [CrossRef]
  6. World Health Organization. Health Service Continuity Planning for Public Health Emergencies: A Handbook for Health Facilities: Interim Version for Field Testing; World Health Organization: Geneva, Switzerland, 2021. [Google Scholar]
  7. Wang, S.; Djahel, S.; McManis, J. A multi-agent based vehicles re-routing system for unexpected traffic congestion avoidance. In Proceedings of the 17th International IEEE Conference on Intelligent Transportation Systems (ITSC), Qingdao, China, 8–11 October 2014. [Google Scholar] [CrossRef]
  8. Chughtai, O.; Badruddin, N.; Awang, A.; Rehan, M. Congestion-aware and traffic load balancing scheme for routing in WSNs. Telecommun. Syst. 2016, 63, 481–504. [Google Scholar] [CrossRef]
  9. Ee, C.T.; Bajcsy, R. Congestion control and fairness for many-to-one routing in sensor networks. In Proceedings of the 2nd International Conference on Embedded Networked Sensor Systems, Baltimore, MD, USA, 3–5 November 2004. [Google Scholar] [CrossRef]
  10. Dijkstra, E.W. A note on two problems in connexion with graphs. Numer. Math. 1959, 1, 269–271. [Google Scholar] [CrossRef]
  11. Hart, P.; Nilsson, N.; Raphael, B. A formal basis for the heuristic determination of minimum cost paths. IEEE Trans. Syst. Sci. Cybern. 1968, 4, 100–107. [Google Scholar] [CrossRef]
  12. Zhao, J.; Gao, Y.; Bai, Z.; Wang, H.; Lu, S. Traffic speed prediction under non-recurrent congestion: Based on LSTM method and BeiDou navigation satellite system data. IEEE Intell. Transp. Syst. Mag. 2019, 11, 70–81. [Google Scholar] [CrossRef]
  13. Wang, Y.; Zhou, H.; Wang, Y. Mobile robot dynamic path planning based on improved genetic algorithm. In Proceedings of the International Conference on Green Energy and Sustainable Development (GESD 2017), Chongqing, China, 27–28 May 2017. [Google Scholar] [CrossRef]
  14. Clausen, U.; Brueggenolte, M.; Kirberg, M.; Besenfelder, C.; Poeting, M.; Gueller, M. Agent-based simulation in logistics and supply chain research: Literature review and analysis. In Proceedings of the Interdisciplinary Conference on Production, Logistics and Traffic, Dortmund, Germany, 27–28 March 2019. [Google Scholar] [CrossRef]
  15. Sutton, R.S.; Barto, A.G. Reinforcement Learning: An Introduction, 2nd ed.; MIT Press: Cambridge, MA, USA, 2018. [Google Scholar]
  16. Akerele, J.I.; Uzoka, A.; Ojukwu, P.U.; Olamijuwon, O.J. Optimizing traffic management for public services during high-demand periods using cloud load balancers. Comput. Sci. IT Res. J. 2024, 5, 2594–2608. [Google Scholar] [CrossRef]
  17. Zhang, J.; Xi, K.; Luo, M.; Chao, H.J. Dynamic hybrid routing: Achieve load balancing for changing traffic demands. In Proceedings of the 2014 IEEE 22nd International Symposium of Quality of Service (IWQoS), Hong Kong, China, 26–27 May 2014. [Google Scholar] [CrossRef]
  18. Fortz, B.; Thorup, M. Optimizing OSPF/IS-IS weights in a changing world. IEEE J. Sel. Areas Commun. 2002, 20, 756–767. [Google Scholar] [CrossRef]
  19. Zhang, J.; Xi, K.; Zhang, L.; Chao, H. Optimizing network performance using weighted multipath routing. In Proceedings of the 21st International Conference on Computer Communications and Networks (ICCCN), Munich, Germany, 30 July–2 August 2012. [Google Scholar] [CrossRef]
  20. Li, J.; Luo, G.; Cheng, N.; Yuan, Q.; Wu, Z.; Gao, S.; Liu, Z. An end-to-end load balancer based on deep learning for vehicular network traffic control. IEEE Internet Things J. 2018, 6, 953–966. [Google Scholar] [CrossRef]
  21. Kodialam, M.; Lakshman, T.V.; Orlin, J.B.; Sengupta, S. Oblivious routing of highly variable traffic in service overlays and IP backbones. IEEE/ACM Trans. Netw. 2009, 17, 459–472. [Google Scholar] [CrossRef]
  22. Zhang, C.; Liu, Y.; Gong, W.; Kurose, J.; Moll, R.; Towsley, D. On optimal routing with multiple traffic matrices. In Proceedings of the 24th Annual Joint Conference of the IEEE Computer and Communications Societies INFOCOM 2005, Miami, FL, USA, 13–17 March 2005. [Google Scholar] [CrossRef]
  23. Chan, C.; Kuncheria, A.; Macfarlane, J. Simulating the impact of dynamic re-routing on metropolitan-scale traffic systems. ACM Trans. Model. Comput. Simul. 2023, 33, 1–29. [Google Scholar] [CrossRef]
  24. Liu, R.; Liu, H.; Kwak, D.; Xiang, Y.; Borcea, C.; Nath, B.; Iftode, L. Balanced traffic routing: Design, implementation, and evaluation. Ad Hoc Netw. 2016, 37, 14–28. [Google Scholar] [CrossRef]
  25. Roughgarden, T. Selfish Routing and the Price of Anarchy; MIT Press: Cambridge, MA, USA, 2005. [Google Scholar]
  26. Wilkie, D.; Van den Berg, J.; Lin, M.; Manocha, D. Self-aware traffic route planning. In Proceedings of the AAAI Conference on Artificial Intelligence, San Francisco, CA, USA, 7–11 August 2011. [Google Scholar] [CrossRef]
  27. Liang, Z.; Wakahara, Y. Real-time urban traffic amount prediction models for dynamic route guidance systems. EURASIP J. Wirel. Commun. Netw. 2014, 2014, 85. [Google Scholar] [CrossRef]
  28. Guo, J.; Huang, W.; Williams, B.M. Adaptive Kalman Filter Approach for Stochastic Short-Term Traffic Flow Rate Prediction and Uncertainty Quantification. Transp. Res. Part C Emerg. Technol. 2014, 43, 50–64. [Google Scholar] [CrossRef]
  29. Williams, B.M.; Durvasula, P.K.; Brown, D.E. Urban Freeway Traffic Flow Prediction: Application of Seasonal Autoregressive Integrated Moving Average and Exponential Smoothing Models. Transp. Res. Rec. J. Transp. Res. Board 1998, 1644, 132–141. [Google Scholar] [CrossRef]
  30. Lee, S.; Fambro, D.B. Application of Subset Autoregressive Integrated Moving Average Model for Short-Term Freeway Traffic Volume Forecasting. Transp. Res. Rec. J. Transp. Res. Board 1999, 1678, 179–188. [Google Scholar] [CrossRef]
  31. Karlaftis, M.G.; Vlahogianni, E.I. Statistical Methods Versus Neural Networks in Transportation Research: Differences, Similarities and Some Insights. Transp. Res. Part C Emerg. Technol. 2011, 19, 387–399. [Google Scholar] [CrossRef]
  32. Sun, B.; Cheng, W.; Goswami, P.; Bai, G. Flow-Aware WPT K-Nearest Neighbours Regression for Short-Term Traffic Prediction. In Proceedings of the 2017 IEEE Symposium on Computers and Communications (ISCC), Heraklion, Greece, 3–6 July 2017; pp. 48–53. [Google Scholar] [CrossRef]
  33. Su, H.; Zhang, L.; Yu, S. Short-Term Traffic Flow Prediction Based on Incremental Support Vector Regression. In Proceedings of the Third International Conference on Natural Computation (ICNC 2007), Haikou, Hainan, China, 24–27 August 2007; pp. 640–645. [Google Scholar] [CrossRef]
  34. Tedjopurnomo, D.A.; Bao, Z.; Zheng, B.; Choudhury, F.M.; Qin, A.K. A Survey on Modern Deep Neural Network for Traffic Prediction: Trends, Methods and Challenges. IEEE Trans. Knowl. Data Eng. 2020, 34, 1544–1561. [Google Scholar] [CrossRef]
  35. Hochreiter, S. The Vanishing Gradient Problem During Learning Recurrent Neural Nets and Problem Solutions. Int. J. Uncertain. Fuzziness Knowl. Based Syst. 1998, 6, 107–116. [Google Scholar] [CrossRef]
  36. Cho, K.; Van Merriënboer, B.; Bahdanau, D.; Bengio, Y. On the Properties of Neural Machine Translation: Encoder-Decoder Approaches. In Proceedings of the SSST-8, Eighth Workshop on Syntax, Semantics and Structure in Statistical Translation, Doha, Qatar, 25 October 2014; pp. 103–111. [Google Scholar] [CrossRef]
  37. Cho, K.; Van Merriënboer, B.; Gulcehre, C.; Bahdanau, D.; Bougares, F.; Schwenk, H.; Bengio, Y. Learning Phrase Representations Using RNN Encoder-Decoder for Statistical Machine Translation. arXiv 2014, arXiv:1406.1078. [Google Scholar] [CrossRef]
  38. Cornacchia, G.; Lemma, L.; Pappalardo, L. Polaris: Popularity-Based Traffic Routing Algorithm. arXiv 2024, arXiv:2406.05388. [Google Scholar] [CrossRef]
  39. Bentley, C.D.B.; Marsh, S.; Carvalho, A.R.R.; Kilby, P.; Biercuk, M. J Quantum computing for transport optimization. arXiv 2022, arXiv:2206.07313. [Google Scholar] [CrossRef]
  40. Rath, M.; Chatterjee, J.M. Strength Optimized Weight Balancing for Traffic Management in Vehicular Ad-hoc Networks. Int. J. Bus. Data Commun. Netw. 2025, 20, 1–19. [Google Scholar] [CrossRef]
  41. Haider, S.E.; Khan, M.F.; Saeed, Y. Adaptive Load Balancing Approach to Mitigate Network Congestion in VANETS. Computers 2024, 13, 194. [Google Scholar] [CrossRef]
  42. Upadhyay, U.; Maheshwari, S.; Sikka, G. SRD-LB: A Smart Route Determining algorithm with Load Balancing for Smart Cities in India. Nat. Volatiles Essent. Oils 2021, 8, 13206–13215. Available online: https://www.nveo.org/index.php/journal/article/view/4269/3516 (accessed on 10 September 2025).
  43. Wang, C.; Peeta, S.; Wang, J. Incentive-based decentralized routing for connected and autonomous vehicles using information propagation. Transp. Res. Part B Methodol. 2021, 149, 138–161. [Google Scholar] [CrossRef]
  44. Bagloee, S.A.; Sarvi, M.; Patriksson, M.; Rajabifard, A. A mixed user-equilibrium and system-optimal traffic flow for connected vehicles stated as a complementarity problem. Comput. Aided Civ. Infrastruct. Eng. 2017, 32, 562–580. [Google Scholar] [CrossRef]
  45. Utku, A. Derin Öğrenme Tabanlı Trafik Yoğunluğu Tahmini: İstanbul İçin Bir Vaka Çalışması. Düzce Üniversitesi Bilim Ve Teknol. Derg. 2023, 11, 1584–1598. [Google Scholar] [CrossRef]
  46. Taş, İ.Ç.; Müngen, A.A. Yapay Sinir Ağları ve Destek Vektör Makineleri Yöntemleri ile Bölgesel Trafik Yoğunluk Tahmini. Adıyaman Üniversitesi Mühendislik Bilim. Derg. 2021, 8, 378–390. [Google Scholar] [CrossRef]
  47. Taş, N.; Sezen, B. Yapay Sinir Ağları ile Trafik Yoğunluğu Tahmini. Afyon Kocatepe Üniversitesi Sos. Bilim. Derg. 2020, 22, 1020–1034. [Google Scholar] [CrossRef]
  48. Ma, X.; Tao, Z.; Wang, Y.; Yu, H.; Wang, Y. Long short-term memory neural network for traffic speed prediction using remote microwave sensor data. Transp. Res. Part C Emerg. Technol. 2015, 54, 187–197. [Google Scholar] [CrossRef]
  49. Polson, N.G.; Sokolov, V.O. Deep learning for short-term traffic flow prediction. Transp. Res. Part C Emerg. Technol. 2017, 79, 1–17. [Google Scholar] [CrossRef]
  50. Chen, K.; Chen, F.; Lai, B.; Jin, Z.; Liu, Y.; Li, K.; Wei, L.; Wang, P.; Tang, Y. Dynamic spatiotemporal graph-based CNNs for traffic flow prediction. IEEE Access 2020, 8, 185136–185145. [Google Scholar] [CrossRef]
  51. Kashyap, A.A.; Raviraj, S.; Devarakonda, A.; Nayak, K.; Santosh, K.V.; Bhat, S.J. Traffic flow prediction models—A review of deep learning techniques. Cogent Eng. 2021, 9, 1–24. [Google Scholar] [CrossRef]
  52. Brimos, P.; Karamanou, A.; Kalampokis, E.; Tarabanis, K. Graph Neural Networks and Open-Government Data to Forecast Traffic Flow. Information 2023, 14, 228. [Google Scholar] [CrossRef]
  53. Jiang, M.; Liu, Z. Traffic Flow Prediction Based on Dynamic Graph Spatial-Temporal Neural Network. Mathematics 2023, 11, 2528. [Google Scholar] [CrossRef]
  54. Francies, M.L.; Khalil, A.T.; Amer, H.M.; Ata, M.M. A framework for continual learning in real-time traffic forecasting utilizing spatial–temporal graph convolutional recurrent networks. Complex Intell. Syst. 2025, 11, 420. [Google Scholar] [CrossRef]
  55. Abdellah, A.R.; Abdelmoaty, A.; Ateya, A.A.; El-Latif, A.A.A.; Muthanna, A.; Koucheryavy, A. Accurate V2X traffic prediction with deep learning architectures. Front. Artif. Intell. Sec. Mach. Learn. Artif. Intell. 2025, 8, 1565287. [Google Scholar] [CrossRef]
  56. Guo, K.; Tian, D.; Hu, Y.; Sun, Y.; Qian, Z.; Zhou, J.; Gao, J.; Yin, B. Contrastive learning for traffic flow forecasting based on multi graph convolution network. IET Intell. Transp. Syst. 2024, 18, 290–301. [Google Scholar] [CrossRef]
  57. Ji, M.; Wu, Q.; Fan, P.; Cheng, N.; Chen, W.; Wang, J.; Letaief, K.B. Graph Neural Networks and Deep Reinforcement Learning Based Resource Allocation for V2X Communications. arXiv 2024, arXiv:2407.06518. [Google Scholar] [CrossRef]
  58. Blogg, M.; Semler, C.; Hingorani, D.; Troutbeck, R. Travel time and origin-destination data collection using Bluetooth MAC address readers. In Proceedings of the 33rd Australasian Transport Research Forum (ATRF), Canberra, Australia, 29 September–1 October 2010. [Google Scholar]
  59. Margreiter, M.; Busch, F.; Carstensen, C. The Evolution of Bluetooth Detection Rates. In Proceedings of the 98th Annual Meeting of the Transportation Research Board, Washington, DC, USA, 13–17 January 2019; Available online: https://mediatum.ub.tum.de/1476803 (accessed on 10 September 2025).
  60. Gheorghiu, R.A.; Iordache, V.; Cormoş, A.C. Analysis of the possibility to detect road vehicles via Bluetooth technology. Sensors 2021, 21, 7281. [Google Scholar] [CrossRef] [PubMed]
  61. Zinner, J. Bluetooth-Based Travel time Monitoring: An Assessment of Performance and Potential Applications. Master’s Thesis, Georgia Institute of Technology, Atlanta, Georgia, 2013. [Google Scholar]
  62. Akçelik, R. Speed-Flow Models for Uninterrupted Traffic Facilities; Technical Report; Akcelik & Associates Pty Ltd.: Balwyn, VIC, Australia, 2003. Available online: https://www.sidrasolutions.com/media/119/download (accessed on 10 September 2025).
  63. Wiedemann, R. Simulation des StraBenverkehrsflusses in Schriftenreihe des Tnstituts fir Verkehrswesen der Universitiit Karlsruhe; Universität Karlsruhe: Karlsruhe, Germany, 1974. [Google Scholar]
  64. Feldman, O. The GEH Measure and Quality of the Highway Assignment Model; Association for European Transport and Contributors: London, UK, 2012; pp. 1–18. [Google Scholar]
  65. Nouri, P.; Morency, C. Untangling the Impacts of Various Factors on Emission Levels of Light Duty Gasoline Vehicles; Technical Report n° CIRRELT-2015-53; CIRRELT: Montréal, QC, Canada, 2015. [Google Scholar] [CrossRef]
Figure 1. Bluetooth sensor detection architecture in Vigo.
Figure 1. Bluetooth sensor detection architecture in Vigo.
Sustainability 17 08948 g001
Figure 2. VMPs displayed on the Vigo driving app.
Figure 2. VMPs displayed on the Vigo driving app.
Sustainability 17 08948 g002
Figure 3. The imputed vs. empirical speed distributions.
Figure 3. The imputed vs. empirical speed distributions.
Sustainability 17 08948 g003
Figure 4. Predicted speed values derived from the speed data obtained at Martinez Garrido-Burgos A Aragon-Jenaro for a single day. Reported Mean Absolute Percentage Error (MAPE) = 2.87%.
Figure 4. Predicted speed values derived from the speed data obtained at Martinez Garrido-Burgos A Aragon-Jenaro for a single day. Reported Mean Absolute Percentage Error (MAPE) = 2.87%.
Sustainability 17 08948 g004
Figure 5. Speed–flow relationship.
Figure 5. Speed–flow relationship.
Sustainability 17 08948 g005
Figure 6. Speed–demand relationship [62].
Figure 6. Speed–demand relationship [62].
Sustainability 17 08948 g006
Figure 7. Geographic boundaries used for the Vigo traffic simulation.
Figure 7. Geographic boundaries used for the Vigo traffic simulation.
Sustainability 17 08948 g007
Figure 8. Representation of the roads in the simulation model.
Figure 8. Representation of the roads in the simulation model.
Sustainability 17 08948 g008
Figure 9. Visualization of the traffic light configuration in the simulation.
Figure 9. Visualization of the traffic light configuration in the simulation.
Sustainability 17 08948 g009
Figure 10. Euro-class mix of vehicles in traffic in Vigo, 2023.
Figure 10. Euro-class mix of vehicles in traffic in Vigo, 2023.
Sustainability 17 08948 g010
Table 1. Structure of historical traffic data in Vigo.
Table 1. Structure of historical traffic data in Vigo.
Vector IDVector DescriptionVector Length (m)Time StampDetected Devices (ud)Matches (ud)Probes (ud)Clusters (ud)Scans per DeviceAvgspeed15 (km/h)Traveltime15 (s)Losstime15Quality15
97Av. Madrid—Seminario a Av. Madrid—Estacion13782023-11-02T07: 15:00Z440998609.1138.41305.880.94
247Av. Clara Campoamor desde Parque Tecnologico a Estrada do Foxo7922023-11-02T08: 00:00Z278998608.0248.758.700.93
114Gran Via—Carmen A Gran Via—Tarragona3812023-11-02T10: 15:00Z2769989010.13638.23.920.94
97Av. Madrid—Seminario a Av. Madrid—Estacion13892023-11-02T17: 15:00Z467998828.9634.914420.10.94
114Gran Via—Carmen a Gran Via—Tarragona3812023-11-03T12: 45:00Z3379991010.133.9416.690.94
Table 2. Explanation of the historical data fields.
Table 2. Explanation of the historical data fields.
ParameterExplanation
Detected DevicesNumber of unique wireless devices detected at the destination sensor.
MatchesNumber of matches between origin and destination sensor (including outliers).
ProbesNumber of quality matches between the origin and destination sensor (excluding outliers).
ClustersNumber of clusters detected between origin and destination (including outliers). Clusters consist of a group of devices (two or more) that are detected simultaneously and are already known to the system as devices traveling together in the exact vehicle.
Scans per deviceThe average number of times each device has been scanned (detected) at the destination sensor.
Speed (km/h)The calculated real-time vector speed. The calculated average speed of the vehicles over the full distance of the vector from the origin sensor to the destination sensor.
Travel timeThe calculated real-time vector travel time. The calculated average time it took the vehicles to travel the full distance from the origin sensor to the destination sensor.
Loss timeThe calculated real-time vector loss time is based on the typical speed settings of the vector. The calculated average time the vehicles lost due to delays when travelling the full distance of the vector from the origin sensor to the destination sensor. If the speed is faster, the loss of time is zero. The loss of time of traffic moving at a slower speed is the time lost in reference to the time it would take at the typical speed.
QualityThe statistical quality of the gathered data. The quality is, above all, based on dispersion, recentness, and quantity. 0.01 is 1% (poor quality). 0.99 is 99% (excellent quality).
Table 3. R2 Value of the Models.
Table 3. R2 Value of the Models.
PerformanceAerop. Hasta Ap-9 Túnel Da MadroaFlorida-Padre Seixas A Ricardo MellaMartinez Garrido-Burgos A Aragon-JenaroPraza Da Estacion A Garcia BarbonPso Alfonso XII—G Portela—Berbes
MLR0.8440.6970.7470.7920.971
SVR0.8480.6810.7330.7960.972
RFR0.8400.6780.7280.7830.973
MLP0.8530.7080.7530.8040.976
ABR0.7500.7010.7420.8310.955
GBR0.8530.7070.7540.8020.974
KNN0.8260.6550.7070.7680.971
ETR0.8330.6620.7200.7740.972
LSTM0.9530.9180.9070.9520.993
Table 4. MSE Value of the Models.
Table 4. MSE Value of the Models.
PerformanceAerop. Hasta Ap-9 Túnel Da MadroaFlorida-Padre Seixas A Ricardo MellaMartinez Garrido-Burgos A Aragon-JenaroPraza Da Estacion A Garcia BarbonPso Alfonso XII—G Portela—Berbes
MLR15.28229.08211.3418.48371.137
SVR14.86130.55811.9588.31469.796
RFR15.67730.92212.1868.83767.333
MLP14.37727.98211.0397.98563.403
ABR24.52628.80311.43825.235113.920
GBR14.36928.12211.0268.07163.936
KNN17.03933.12613.0919.47772.928
ETR16.32532.39412.5479.20769.935
LSTM14.76529.2389.1868.36678.988
Table 5. Hyperparameters of the LSTM Model.
Table 5. Hyperparameters of the LSTM Model.
ComponentHyperparameterSearch SpaceFinal Value
Model InputInput Sequence Length[3, 4, 5, 6, 7, 8, 9, 10]8
Model InputPrediction Horizon[15 min]15 min
Model InputHidden Layer Size[5, 10, 15, 20, 25, 30, 35, 40, 45, 50]15
Model InputNumber of Layers[1, 2, 3, 4]2
Model InputBatch Size[32, 64, 128]64
RegularizationEarly Stopping Patience[8]8
OptimizerLoss Function[Adam Optimizer]Adam Optimizer
OptimizerLearning Rate[1 × 10−3, 5 × 10−4]1 × 10−3
Normalizer---
Window Length---
Stride---
Table 6. Parameters of the Load-Balancing Algorithm.
Table 6. Parameters of the Load-Balancing Algorithm.
ParameterSearch Space
Depth Range[10, 40]
α Range[0, 1.0]
γ Range[2.0, 4.0]
Table 7. Sobol Sensitivity Scores of the Load-Balancing Algorithm.
Table 7. Sobol Sensitivity Scores of the Load-Balancing Algorithm.
ParameterS1 IndexS1 Confidence Score
Depth 0.000000 0.000000
α0.592330 0.093727
γ 0.225597 0.081464
Table 8. The dates used to create the simulations.
Table 8. The dates used to create the simulations.
Date Day Season Special Condition School Weather Conditions
1 January 2023 Sunday Winter New Year (Holiday) Closed 13.5 °C, Rain
22 January 2023 Sunday Winter None Closed 12.0 °C, Sunny
16 January 2023 Monday Winter None Open 12.0 °C, Rain
10 June 2023 Saturday Summer None Closed 20.0 °C, Cloudy
16 June 2023 Friday Summer None Open 25.0 °C, Sunny
9 July 2023 Sunday Summer None Closed 21.0 °C, Partially Cloudy
25 July 2023 Tuesday Summer None Open 23.0 °C, Sunny
15 August 2023 Tuesday Summer Assumption of Mary (Holiday) Open 25.0 °C, Sunny
11 November 2023 Saturday Winter None Closed 18.0 °C, Rain
22 November 2023 Wednesday Winter None Open 15.0 °C, Sunny
Table 9. The O-D matrix used in the simulation conducted for 16 January 2023—17:15.
Table 9. The O-D matrix used in the simulation conducted for 16 January 2023—17:15.
ZoneABCDEFGHIJKLMNOPRST
A-303303181 209209 73 20973309309309309
B163-829503 1414 112112126112 112112
C163600-619 565614 112112126112 112112
D163600600-559256256303303303418174335174 194194
E97359359359-256256303303303363128256120 194194
F5815015089 -312 674631265 6767
G600260260155 285-493 117100530169 117117
H97359239239239285426-303303363128218120 139139
I68239239239239 218239-529443221216207 241241
J83239239239239 270239635-547270270253 294294
K83329239239239 170239635635-170170253 10561056
L 270270 229-270229 229229
M 493493 229229-229 229229
N83 170170 762170170- 762762
O186 460 460-859859492306
P186239239239239 239635635635 460952-1956492306
R186239239239239 239635635635 4609521587-492306
S186 859859859-306
T 550550550550-
Table 10. The OD matrix used in the simulation conducted for 10 June 2023—18:00.
Table 10. The OD matrix used in the simulation conducted for 10 June 2023—18:00.
ZoneABCDEFGHIJKLMNOPRST
A-87 12620311630163163163163
B117-576539257373713514514540878736 120120
C117319-5392573737135145145 123725 120120
D117319396-2961161161801801801704511630 159159
E64172221283-1161161801801801704511630 159159
F6983839090-153152121192153
G10612412412469160-2633030273230
H101160153134193160236-180180170457730 159159
I3798126160160 74160-372365943856 309309
J3798126160216 132160492-515545479 436436
K3798126160160 156160492492-156156156 755755
L46 209209 96-20996 9696
M10612412412469 209209303096203-96 9696
N46 156156 319156156- 319319
O106 193 193-722722742636
P14598126160160 160492492550595959193-1477742636
R14598126160160 16049249255059591931931485-742636
S106 722722722-636
T 566566566566-
Table 11. Name of the zone represented by each letter.
Table 11. Name of the zone represented by each letter.
LetterZone
APraza de América
BMonumento Á Xente do Mar
CAv. de Castelao
DVG-20
ECoia
FAv. da Florida, 197–191
GRúa Padre Seixas
HA Florida
IRúa de Citroën
JRúa dos Olimpícos
KAv. do Alcalde Portanet
LAv. do Fragoso
MRúa Martín Echegaray, 1
NAv. do Fragoso
OAv. de Balaídos, 2
PAv. do Alcalde Portanet, 1
RAv. de Castrelos, 236
SAv. de Antonio Palacios, 54
TCamiño Freixeiro
Table 12. GEH values for each road segment across the 20 scenarios.
Table 12. GEH values for each road segment across the 20 scenarios.
Section Number1 January 202316 January 202322 January 202310 June 202316 June 20239 July 202325 July 200315 August 202311 November 202322 November 2023
11:0018:0007:3017:1511:0018:0011:0018:0007:3017:1511:0018:0007:3017:1507:3017:1511:0018:0007:3017:15
10.770.910.690.980.790.700.120.820.870.860.880.850.930.770.800.803.370.810.840.92
20.700.290.550.180.660.430.850.090.080.840.430.191.121.640.150.370.700.050.352.20
30.320.630.470.020.830.040.360.650.560.880.630.430.500.761.330.242.270.080.790.70
40.020.170.740.630.400.260.110.170.060.490.240.360.620.100.370.820.430.210.490.96
50.171.190.210.690.950.310.720.040.170.660.061.000.071.070.060.160.440.080.240.73
61.091.650.301.140.421.170.590.140.381.140.680.461.241.493.160.300.870.130.221.97
70.170.500.673.560.420.170.190.670.110.250.150.250.770.440.380.180.110.480.690.29
80.622.820.031.480.340.720.600.300.510.320.010.090.730.950.330.261.040.110.212.14
91.020.850.840.900.970.740.270.700.500.960.191.060.461.660.690.333.400.910.630.72
100.741.953.544.550.460.271.210.771.370.681.210.931.972.151.060.961.590.822.280.81
110.612.270.440.860.470.030.340.312.130.250.180.630.070.370.120.090.670.760.351.14
120.020.310.320.080.120.330.460.600.100.041.070.370.630.700.240.520.580.380.480.43
130.013.770.172.430.010.210.270.302.320.060.060.410.360.420.000.210.700.040.111.58
140.530.370.233.020.040.440.420.063.970.220.080.350.530.280.070.080.490.100.102.72
150.150.430.222.151.090.020.240.510.170.160.580.250.430.800.560.240.060.631.600.48
160.330.070.261.733.610.260.220.250.180.220.080.030.230.310.170.020.330.022.760.60
170.470.351.201.301.001.460.480.270.530.801.390.120.150.521.052.340.940.054.048.94
180.370.460.443.170.400.180.540.550.380.390.370.360.200.150.050.350.540.400.420.35
191.101.040.660.890.560.802.930.780.890.570.691.161.022.271.041.010.910.040.630.21
200.480.660.680.660.650.500.840.710.020.700.460.630.442.910.710.480.440.620.730.72
210.400.440.330.250.230.260.070.320.270.440.440.460.390.020.450.400.320.400.500.38
220.390.100.190.120.240.512.460.060.390.070.460.140.390.060.480.190.020.011.281.10
231.030.860.560.640.690.800.630.690.880.260.750.740.911.430.920.620.550.011.430.62
240.190.530.560.510.400.380.430.450.170.580.460.620.611.361.380.510.500.600.660.55
250.970.840.600.610.770.850.620.670.820.200.770.780.881.410.850.620.540.300.880.70
260.162.840.271.320.230.580.110.261.801.340.430.710.611.071.100.460.960.263.421.36
270.350.330.310.150.520.180.020.250.430.230.082.480.120.170.250.291.750.160.300.80
280.490.000.252.930.150.120.200.070.560.060.580.570.390.850.690.590.370.330.010.81
290.296.050.112.730.390.100.081.840.010.260.380.260.080.230.350.151.170.300.700.54
300.580.340.140.181.021.830.060.050.450.470.270.060.660.181.192.550.970.120.553.34
310.020.200.030.440.161.020.274.530.020.720.030.690.760.240.090.190.861.410.160.65
320.350.090.700.050.630.821.490.310.151.100.700.211.360.100.491.070.080.060.451.22
330.160.300.180.040.210.600.370.420.030.310.241.080.580.060.790.420.050.170.380.93
340.000.040.330.360.070.040.800.040.120.250.550.370.600.150.340.100.580.900.140.26
350.080.350.110.010.340.130.210.370.380.020.331.840.190.030.040.050.220.070.120.30
360.270.360.141.550.160.140.010.170.040.190.180.290.060.500.220.060.000.030.250.17
370.170.240.011.850.090.320.351.440.230.720.212.662.060.260.150.180.420.330.300.48
380.450.710.740.192.170.840.102.400.131.050.630.051.350.051.300.302.140.130.730.76
390.110.030.740.130.160.080.130.011.990.150.471.410.260.340.080.470.190.501.210.11
400.390.010.108.800.050.060.360.110.460.030.460.530.390.900.710.520.180.220.140.58
410.120.170.010.000.470.320.140.370.030.320.182.220.180.030.330.130.130.070.110.81
420.310.290.114.320.200.100.580.161.250.170.710.440.440.060.060.000.160.742.780.25
430.040.650.480.021.660.100.200.220.720.680.350.210.430.851.400.302.210.180.880.62
440.060.480.580.520.280.390.280.380.480.440.310.070.260.050.260.611.582.800.590.88
Table 13. GEH values obtained from each seed for each road segment for 10 June 2023—18:00.
Table 13. GEH values obtained from each seed for each road segment for 10 June 2023—18:00.
Section NumberSeed
12345678910
10.460.091.600.470.942.690.180.461.522.28
21.330.001.440.111.440.210.771.240.650.88
31.000.221.860.060.891.700.340.801.110.83
40.171.801.720.422.090.002.000.170.461.35
51.220.090.531.010.920.270.551.220.550.00
61.330.111.340.421.540.220.321.140.540.99
70.910.490.071.490.211.200.771.560.620.70
81.960.140.640.421.370.211.290.490.640.42
90.570.290.672.030.291.002.470.290.481.23
100.281.170.370.371.351.700.001.090.911.61
111.530.180.370.181.370.360.360.370.180.18
121.400.601.730.300.001.070.911.400.601.07
130.921.250.501.400.660.142.212.800.070.88
140.881.250.221.841.210.991.692.370.170.56
150.650.240.160.490.400.651.061.320.400.57
160.140.270.002.200.141.730.530.141.300.55
170.390.420.381.841.881.392.630.730.260.64
180.970.770.180.221.831.441.610.550.510.00
190.001.300.851.811.301.220.920.391.221.37
200.760.761.590.101.040.480.791.230.861.13
210.120.720.630.960.240.241.561.451.560.00
220.510.081.540.720.041.121.001.411.060.79
230.300.850.410.260.701.721.541.830.000.63
240.330.411.021.150.070.071.091.811.560.18
250.300.890.410.190.631.691.651.790.040.52
260.520.691.011.390.330.032.220.461.290.56
270.460.470.200.131.491.350.590.130.330.26
280.280.140.890.210.340.420.491.560.950.14
291.071.331.122.462.411.172.312.361.622.46
300.490.540.272.240.800.762.461.000.960.22
315.155.673.463.306.026.432.764.024.414.30
321.740.710.001.270.531.792.210.001.230.41
330.161.030.330.680.680.500.500.320.500.50
341.600.240.120.860.590.241.270.360.980.98
350.851.440.640.731.342.251.090.180.470.28
361.711.880.212.120.641.620.430.532.191.42
371.171.021.592.290.220.742.351.521.731.66
382.290.722.143.151.531.914.702.991.762.99
392.140.860.462.510.531.020.770.990.710.52
400.630.910.890.420.140.350.211.060.950.41
410.331.410.000.561.412.020.950.480.330.33
422.271.630.242.230.000.930.860.641.160.78
431.290.200.750.970.351.431.070.710.650.20
440.732.312.060.391.710.302.760.130.781.62
Table 14. Simulation scenario results.
Table 14. Simulation scenario results.
DateHoursTotal Number of VehiclesCompliance RatesNumber of Re-Routed VehiclesPercentages of Re-Routed VehiclesMetricAverage Speed (km/h)Total Travel Time (s)Total Delay (s)Total Number of StopsTotal Standstill Time (s)
January 202311:0017140%00.00%Mean23.07503,936126,151429295,803
Standard Error (SE)0.0644011692471341
Standard Deviation (SD)0.2013,91653501494239
100%221.30%Mean23.07503,566126,111429095,848
SE0.0643371689471344
SD0.2013,71553401494249
18:0032660%00.00%Mean21.391,003,433311,0348832242,589
SE0.2211,80310,2911699390
SD0.7037,32532,54353529,693
25%70.21%Mean21.60993,783301,152871523,3209
SE0.22961195791568835
SD0.7030,39430,29149327,940
50%130.40%Mean22.17971,354276,3938323210,186
SE0.1374955800915368
SD0.4223,70118,34028816,976
75%200.61%Mean22.33955,391267,6778122202,987
SE0.18768672121136626
SD0.5824,30522,80535820,955
100%260.80%Mean22.69951,607258,5548064193,451
SE0.15815458271015298
SD0.4625,78518,42632016,754
16 January 202307:3062800%00.00%Mean17.252,336,233901,75625,288708,572
SE0.1319,26218,43849316,352
SD0.4260,91158,305156151,708
25%230.37%Mean17.582,294,527861,61224,114673,821
SE0.2332,26030,49778926,076
SD0.73102,01796,440249482,459
50%450.72%Mean17.852,254,945825,20923,668638,707
SE0.2128,49927,04567223,361
SD0.6690,12185,524212573,874
75%681.08%Mean18.282,176,157763,05122,002588,171
SE0.1924,21722,82360819,595
SD0.5976,58072,172192361,964
100%901.43%Mean17.942,266,038824,29023,907636,073
SE0.2024,07624,62466321,718
SD0.6376,13577,867209868,678
17:1556510%00.00%Mean13.522,749,7391,361,45050,257996,171
SE0.1931,36333,335147224,750
SD0.6099,178105,413465678,267
25%330.58%Mean13.022,780,3501,431,41154,2071,047,835
SE0.1731,64233,168166824,456
SD0.55100,061104,885527677,337
50%661.17%Mean14.592,534,7831,155,64343,507830,769
SE0.1322,91022,357108516,669
SD0.4272,44870,700343252,713
75%991.75%Mean15.212,434,9781,059,10140,459750,733
SE0.1625,02424,907115218,750
SD0.5179,13278,764364259,292
100%1322.34%Mean15.312,437,5171,054,39441,122740,273
SE0.1015,62515,17284510,124
SD0.3049,41247,977267132,014
22 January 202311:0037520%00.00%Mean20.891,220,339317,48710,310235,439
SE0.0974735272794757
SD0.2823,63316,67025015,042
100%250.67%Mean20.951,216,423314,65010,265232,851
SE0.0869194908784445
SD0.2621,87815,52024814,058
18:0042660%00.00%Mean23.911,117,878283,1609290208,501
SE0.08675542281642903
SD0.2521,36113,3705189180
100%200.47%Mean24.011,115,526281,3529193207,384
SE0.08641841371492928
SD0.2620,29613,0824719260
10 June 202311:0055570%00.00%Mean19.221,643,711540,86017,844347,020
SE0.2120,19918,48583512,744
SD0.6563,87558,454263940,301
25%90.16%Mean19.221,645,431540,12717,762346,541
SE0.1819,54417,20573711,816
SD0.5561,80254,407233237,364
50%180.32%Mean18.531,955,242653,07219,318454,041
SE0.1011,39710,4084458070
SD0.3236,04132,914140625,518
75%270.49%Mean19.291,639,913531,50117,553338,714
SE0.1715,91514,1916329934
SD0.5550,32944,875200031,413
100%360.65%Mean19.311,638,716535,91117,775343,343
SE0.2120,10218,73289712,838
SD0.6663,56759,236283740,596
18:0044630%00.00%Mean20.571,312,556399,40112,338252,407
SE0.12777272853025038
SD0.3824,57823,03795515,931
100%250.56%Mean20.671,306,238393,96312,152249,146
SE0.10713160102414115
SD0.3122,55019,00476313,012
16 June 202307:3054160%00.00%Mean18.162,019,782704,36620,957495,634
SE0.2124,18024,22477320,134
SD0.6876,46276,604244363,669
25%160.30%Mean18.401,987,682673,21820,132469,969
SE0.1211,58412,55740110,809
SD0.3736,63139,709126834,181
50%360.66%Mean18.531,955,242653,07219,318454,041
SE0.1011,39710,4084458070
SD0.3236,04132,914140625,518
75%480.89%Mean18.541,960,590655,08619,428455,639
SE0.1011,19610,2954388192
SD0.3035,40632,554138525,906
100%631.16%Mean17.942,266,038824,29023,907636,073
SE0.2024,07624,62466321,718
SD0.6376,13577,867209868,678
17:1547350%00.00%Mean20.091,611,435508,41613,495340,938
SE0.0910,55179971616590
SD0.2833,36725,29050820,839
100%280.59%Mean20.491,585,600481,23313,043317,666
SE0.08894666811525411
SD0.2528,28921,12748217,110
9 July 202311:0037710%00.00%Mean17.161,397,382500,13820,146290,550
SE0.2419,15919,168149811,712
SD0.7560,58760,616473637,037
25%180.48%Mean17.121,399,422503,64220,514296,185
SE0.2216,34616,837123710,557
SD0.6851,69153,244391333,384
50%360.95%Mean17.251,388,914490,55619,839282,966
SE0.2823,08520,511147510,895
SD0.8773,00264,862466534,452
75%541.43%Mean17.361,364,835471,28917,798269,563
SE0.1611,15610,6867175629
SD0.5135,27833,792226817,801
100%721.91%Mean17.941,335,044436,03915,527253,098
SE0.2719,38917,887112710,471
SD0.8461,31256,565356433,113
18:0043160%00.00%Mean21.501,247,485383,57911,560256,969
SE0.1410,20191744185959
SD0.4332,26029,012132118,844
100%270.63%Mean21.691,234,614374,09611,265250,984
SE0.11952476933235046
SD0.3530,11824,326102015,958
25 July 202307:3017650%00.00%Mean26.03444,972101,658339577,910
SE0.082902102326895
SD0.2691763234812831
17:154590%00.00%Mean23.53130,29628,72895821,s883
SE0.11146430210249
SD0.33463195532787
15 August 202307:3017720%00.00%Mean20.78541,290125,442378887,780
SE0.054305131832910
SD0.1713,61341681022876
100%150.85%Mean20.84538,250124,458376186,995
SE0.064020141533925
SD0.1912,71244761042924
17:1539640%00.00%Mean19.84117,7651334,04910,342227,660
SE0.1512,28499134346555
SD0.4738,84631,349137420,729
100%170.43%Mean19.911,169,459330,16010,176222,767
SE0.1510,78093104145952
SD0.4634,08829,441130818,821
11 November 202311:0043500%00.00%Mean21.761,317,746397,78511,445248,679
SE0.07586443651312658
SD0.2118,54513,8044148405
100%220.51%Mean21.851,314,453395,56711,523247,457
SE0.08677754631923498
SD0.2521,43117,27660811,060
18:0045820%00.00%Mean15.801,816,194558,03616,167392,465
SE0.1317,75713,80634112,108
SD0.4056,15243,658107838,289
100%280.61%Mean16.121,782,191524,97615,550363,198
SE0.1015,27911,3842929921
SD0.3248,31736,00092531,372
22 November 202307:3063560%00.00%Mean14.512,775,04514,23,21947,2221,036,773
SE0.1831,63132,057147822,893
SD0.57100,027101,374467572,394
25%180.28%Mean14.652,748,5291,394,99946,6731,011,053
SE0.1532,09029,856122722,617
SD0.48101,47894,414388071,521
50%360.57%Mean14.752,724,0191,372,56646,365990,563
SE0.2037,90837,077168927,169
SD0.63119,875117,248534285,917
75%540.85%Mean14.862,715,5521,359,27746,116978,052
SE0.2036,78736,922164427,598
SD0.64116,330116,759520087,271
100%711.12%Mean14.802,722,7531,367,25646,717982,040
SE0.1424,64224,463119717,447
SD0.4477,92377,358378455,173
17:1556840%00.00%Mean12.922,703,5751,400,83857,059957,045
SE0.1125,92723,695148515,233
SD0.3581,98974,931469648,172
100%430.76%Mean13.272,638,6981,331,43954,870903,383
SE0.1023,00520,496104814,781
SD0.3272,74764,814331346,740
Table 15. Emission results obtained from the simulations.
Table 15. Emission results obtained from the simulations.
DateHoursCompliance RatesTotal CO2 (t)Total HC (kg)Total NOX (kg)Total CO (kg)
1 January 202311:000%0.630.180.169.84
100%0.630.180.169.83
18:000%1.270.360.3219.78
25%1.260.350.3119.59
50%1.230.340.3119.15
75%1.210.340.3018.84
100%1.210.340.3018.77
16 January 202307:300%2.980.830.7446.35
25%2.930.820.7345.53
50%2.880.810.7244.74
75%2.870.800.7144.63
100%2.860.800.7144.47
17:150%3.510.980.8754.59
25%3.350.950.8452.02
50%3.230.910.8150.33
75%3.110.870.7748.36
100%3.110.870.7748.43
22 January 202311:000%1.550.430.3924.14
100%1.550.430.3924.06
18:000%1.420.400.3522.09
100%1.420.400.3522.04
10 June 202311:000%2.090.590.5232.58
25%2.100.590.5232.62
50%2.090.590.5232.55
75%2.090.590.5232.51
100%2.090.580.5232.49
18:000%1.670.470.4225.98
100%1.660.470.4125.85
16 June 202307:300%2.540.710.6339.49
25%2.500.700.6238.83
50%2.460.690.6138.20
75%2.460.690.6138.31
100%2.470.690.6138.40
17:150%2.050.580.5131.94
100%2.020.570.5031.44
9 July 202311:000%1.780.500.4427.64
25%1.780.500.4427.68
50%1.770.490.4427.47
75%1.730.490.4326.99
100%1.700.480.4226.40
18:000%1.590.440.3924.68
100%1.570.440.3924.43
25 July 202307:300%0.560.160.148.66
17:150%0.150.040.042.37
15 August 202307:300%0.680.190.1710.57
100%0.680.190.1710.51
17:150%1.500.420.3723.28
100%1.490.420.3723.12
11 November 202311:000%1.680.470.4226.08
100%1.670.470.4226.02
18:000%2.310.650.5835.98
100%2.270.640.5735.32
22 November 202307:300%3.540.990.8855.09
25%3.510.980.8754.56
50%3.480.970.8754.07
75%3.470.970.8653.91
100%3.460.970.8653.89
17:150%3.450.970.8653.72
100%3.370.940.8452.43
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Dündar, S.; Alp, S.; Ulu, İ.M.; Dursun, O. Application of Traffic Load-Balancing Algorithm—Case of Vigo. Sustainability 2025, 17, 8948. https://doi.org/10.3390/su17198948

AMA Style

Dündar S, Alp S, Ulu İM, Dursun O. Application of Traffic Load-Balancing Algorithm—Case of Vigo. Sustainability. 2025; 17(19):8948. https://doi.org/10.3390/su17198948

Chicago/Turabian Style

Dündar, Selim, Sina Alp, İrem Merve Ulu, and Onur Dursun. 2025. "Application of Traffic Load-Balancing Algorithm—Case of Vigo" Sustainability 17, no. 19: 8948. https://doi.org/10.3390/su17198948

APA Style

Dündar, S., Alp, S., Ulu, İ. M., & Dursun, O. (2025). Application of Traffic Load-Balancing Algorithm—Case of Vigo. Sustainability, 17(19), 8948. https://doi.org/10.3390/su17198948

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop