Next Article in Journal
Fragility-Based Seismic Risk Assessment of Reinforced Concrete Bridge Columns
Previous Article in Journal
Numerical Simulation and Analysis of the Influencing Factors of Ice Formation on Electrified Railway Contact Lines
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Analysis and Prediction of Traffic Conditions Using Machine Learning Models on Ikorodu Road in Lagos State, Nigeria

Department of Structural and Geotechnical Engineering, Faculty of Architecture, Civil Engineering and Transport Sciences, Széchenyi István University, H-9026 Győr, Hungary
*
Author to whom correspondence should be addressed.
Infrastructures 2025, 10(5), 122; https://doi.org/10.3390/infrastructures10050122
Submission received: 12 February 2025 / Revised: 13 May 2025 / Accepted: 14 May 2025 / Published: 16 May 2025

Abstract

Traffic counts are essential for assessing road capacity to provide efficient, effective, and safe mobility. However, current methods for generating models for traffic count studies are often limited in their accuracy and applicability, which can lead to incorrect or imprecise estimates of traffic volume. This study focused on analyzing and predicting traffic conditions on Ikorodu Road in Lagos State. The analysis involved an examination of historical traffic data, specifically focusing on daily and hourly traffic volumes. The prediction involved the use of machine learning models, including decision trees, gradient boosting, and random forest classifiers. The results of this study revealed significant variations in traffic volume across different days of the week and times of the day, indicating peak and off-peak periods. The study also highlighted the need for a more comprehensive approach that includes additional factors, such as weather conditions, road work, and special events, which could significantly impact traffic volume.

1. Introduction

The basis of an economy is the effective movement of people, goods, and services within regions that are covered by transportation networks [1]. However, the interconnectivity of the various roads that make up the network, as well as the efficiency of upstream and downstream vehicular movements, are key components of a successful road network. Consequently, a nation’s road system is a crucial part of its infrastructure [2]. A well-designed road network creates effective and sufficient daily traffic flow, which can spur economic expansion. Owing to its impact on inhabitants’ daily activities, mobility is crucial to the viability of communities [3]. Transportation systems play an integral role in the movement of people, goods, and services throughout the city, thus supporting socio-economic activities, social interactions, and the overall quality of life [4,5,6,7,8,9,10]. The effectiveness of transportation networks depends on several factors, including infrastructure capacity, design, interconnection, and operational efficiency [7,11,12,13,14,15,16,17]. These include road networks, which are the main modes of transport in many urban centers worldwide, with road traffic forming the foundation of daily mobility [18,19,20,21,22,23,24,25,26]. Road infrastructure therefore has a profound impact on urban economic performance, social well-being, and environmental sustainability [26,27,28,29,30,31,32]. In many cities worldwide, roads are the main means of transportation, and road traffic is the core of daily mobility. Road networks have a profound impact on urban economic performance, social well-being, and environmental sustainability [33,34,35,36,37]. Nigeria’s largest city, Lagos, exemplifies the challenges faced by urban transportation systems. Over the past few decades, the population has grown exponentially, with estimates of over 20 million people, driven by migration from rural areas. The rapid growth of the city has put immense pressure on infrastructure, especially its transportation system, which has become insufficient to meet growing demands [38,39]. Insufficient road networks, traffic congestion, and inadequate public transportation are some of the most common problems faced by residents daily, highlighting the importance of sustainable urban planning. It is becoming increasingly difficult for Lagos’ road networks, which were designed decades ago, to keep up with the growing demand for mobility as the city grows [40,41,42]. In addition to causing economic and environmental inefficiencies, Lagos’ congested roads are a major barrier to efficient transportation. Traffic flow and congestion are critical issues in urban transportation systems, particularly in rapidly growing cities such as Lagos, Nigeria. These challenges significantly impact urban mobility, economic productivity, and residents’ quality of life [36,42,43,44]. Numerous studies [45,46,47] have identified the causes and consequences of urban congestion, including high traffic volume, insufficient road capacity, and inadequate traffic management. Additional contributing factors include suboptimal public transportation systems, rapid urbanization, and increasing car ownership rates in developing cities [48,49,50,51,52,53]. Traditional traffic data collection methods, such as manual counting and road sensors, exhibit limitations in capturing the full spectrum of traffic dynamics. These approaches often yield incomplete or inaccurate data, are labor-intensive, and struggle to capture real-time changes in traffic patterns. Moreover, they may not be suitable for large-scale implementation in cities with limited resources or infrastructure [14,54,55,56,57].
In recent years, machine learning techniques have emerged as powerful tools for analyzing and predicting traffic conditions. Unlike traditional methods, ML algorithms can process large volumes of data, identify complex patterns, and generate accurate predictions based on historical information. This capability facilitates a more comprehensive understanding of traffic dynamics and enables more effective traffic management strategies [58,59,60,61,62,63,64]. Research has demonstrated the efficacy of support vector machines, artificial neural networks, decision trees, and random forests in predicting traffic flow and congestion levels with high accuracy [65,66,67,68,69,70,71,72]. These algorithms can incorporate a wide range of variables, including historical traffic data, weather conditions, time of day, and special events, to generate robust predictions. Some researchers have also explored the potential of deep learning techniques, such as recurrent neural networks and long short-term memory networks, which are particularly well suited for analyzing time-series data like traffic patterns.
The application of machine learning in traffic prediction has significant implications for urban transportation management. Real-time traffic prediction can assist authorities in optimizing signal timing, managing congestion, and improving road safety. By anticipating traffic bottlenecks and congestion hotspots, city planners and traffic managers can implement proactive measures to alleviate congestion before it occurs [60,73,74,75,76]. These measures may include dynamic lane management, adaptive traffic signal control, or real-time route guidance for drivers. Predictive models can also support infrastructure planning by forecasting future traffic volumes and identifying potential congestion hotspots. This information is invaluable for urban planners and policymakers in making informed decisions about road network expansions, public transportation investments, and land-use planning [77,78,79,80]. By anticipating future traffic patterns, cities can develop more sustainable and efficient transportation systems that can accommodate growing populations and changing mobility needs.
However, challenges persist in the development and deployment of predictive models, including model validation and the need for high-quality, granular data. Ensuring the accuracy and reliability of ML models in diverse urban contexts is crucial for their effective implementation. Additionally, data privacy and security concerns must be addressed when collecting and utilizing large-scale traffic data. There is a notable lack of research on the application of machine learning for traffic prediction in rapidly urbanizing African cities like Lagos, where data infrastructure is limited and traffic conditions are highly variable. These cities often face unique challenges, including informal transportation systems, rapidly changing urban landscapes, and limited technological resources. Developing effective ML-based traffic prediction models in these contexts requires innovative approaches to data collection and model development.
This study aims to address this gap by applying supervised machine learning techniques to predict traffic conditions on Ikorodu Road in Lagos. By leveraging video-based data collection methods and ML algorithms, the research seeks to provide accurate and real-time traffic predictions in a challenging urban environment. This approach has the potential to overcome some of the limitations of traditional data collection methods and provide a more comprehensive understanding of traffic dynamics in Lagos. The research contributes to the broader field of intelligent transportation systems (ITSs) and smart city initiatives. By demonstrating the feasibility and effectiveness of ML-based traffic prediction in a complex urban environment like Lagos, this study could pave the way for similar applications in other rapidly growing cities in Africa and beyond. The insights gained from this research could inform the development of more effective traffic management strategies, improve urban mobility, and ultimately enhance the quality of life for urban residents.

2. Literature Review

2.1. Traffic Flow and Congestion

Traffic flow refers to the movement of vehicles within a transportation network and is influenced by a variety of factors including traffic volume, road conditions, vehicle types, driver behavior, and environmental conditions. It is essential to understand traffic flow dynamics to develop strategies to improve the efficiency of road networks [53,57,81,82,83]. According to [84], traffic flow can be categorized into different regimes such as free flow, synchronized flow, and jam flow. In free-flow conditions, vehicles move smoothly with minimal interaction between them, whereas in synchronized flow, vehicles move at slower speeds but maintain a coordinated pattern. Traffic congestion occurs when road capacity is exceeded, leading to slower speeds, increased delays, and stop-and-go conditions [85].
Several studies have highlighted the causes and consequences of urban congestion. For instance, ref. [86] demonstrated that the primary causes of congestion include high traffic volume, insufficient road capacity, and poor traffic management. Similarly, ref. [87] suggested that traffic accidents, a lack of driver awareness, and a poor understanding of traffic signs contribute to accidents and congestion in Nigerian cities. A study focused on urban traffic congestion [88] emphasized the importance of adopting comprehensive traffic management strategies that consider the unique characteristics of local traffic patterns.

2.2. Traditional Traffic Data Collection Methods

Traditionally, traffic data have been collected through manual counting, road sensors, and cameras. These methods have been widely used for decades to monitor vehicle counts and determine traffic volumes at different times of day [89]. Manual counting involves human observers recording the number of vehicles passing a particular point on the road, whereas automated methods use sensors, such as inductive loops or infrared sensors, to detect vehicles and gather data on traffic conditions [90].
However, these methods also have several limitations. For example, manual counting is labor-intensive, prone to human error, and can only be performed at specific locations and times. Automated sensors, on the other hand, are often costly to install and maintain, and their data collection capabilities are limited to specific points on the road network [82,84,89,91]. As such, these methods do not capture the full range of traffic dynamics such as vehicle interactions, congestion patterns, or the impact of external factors such as weather or accidents.

2.3. Machine Learning in Traffic Prediction

In recent years, machine learning (ML) techniques have emerged as powerful tools for analyzing and predicting traffic conditions. Unlike traditional methods, ML algorithms can process large volumes of traffic data, identify complex patterns, and provide accurate predictions based on historical data. The application of ML in transportation research has grown significantly, as evidenced by several studies exploring its use in traffic flow prediction, congestion forecasting, and optimization of traffic management systems [53,92,93].
Machine learning models have the potential to revolutionize traffic prediction by learning from historical traffic data and adapting to changing traffic conditions [94]. In [95], the authors demonstrated the use of support vector machines (SVMs) to accurately predict traffic flow on urban roads, traffic volumes, and congestion levels, outperforming traditional models based on linear regression. Other ML techniques, such as artificial neural networks (ANNs), decision trees, and random forests, have also been widely applied for traffic prediction [90,92,94,95,96]. Ref. [97] employed artificial neural networks to model traffic flows and predict highway congestion. Their model could forecast traffic volumes and congestion patterns with a high degree of accuracy, even during periods of heavy traffic. Similarly, ref. [98,99,100,101] used random forests to predict traffic conditions at various intersections in a busy urban area, achieving notable improvements in prediction accuracy compared to conventional methods.
Several studies have explored the integration of multiple data sources for more comprehensive traffic prediction models [70,95,102,103,104]. For instance, ref. [97] combined real-time traffic data, weather information, and historical traffic patterns to develop a machine learning model that predicts traffic conditions across a city. The integration of diverse data sources has proven to enhance the accuracy of traffic predictions, particularly in complex urban environments such as Lagos [105,106].

2.4. Applications on Machine Learning in Urban Transportation Systems

The use of machine learning in traffic prediction has significant implications for urban transportation management. Real-time traffic prediction can assist traffic authorities in optimizing traffic signal timing, managing congestion, and improving overall road safety [64,90,93,94,104,106]. Additionally, predictive models can support infrastructure planning by forecasting future traffic volumes and identifying potential congestion hotspots that require road expansions or upgrades [107]. In the context of Lagos, where traffic congestion is a major concern, machine learning models can help policymakers allocate resources more effectively and prioritize investments in transportation infrastructure. For example, by predicting peak traffic periods, authorities can adjust traffic signal timings, implement variable-toll pricing, or deploy traffic officers to manage congestion at critical intersections [72,108,109]. Predictive traffic models can inform public transportation planning by identifying areas with a high demand for buses or other modes of transport. [101,110,111,112].

2.5. Challenges in Traffic Prediction and Model Validation

Despite promising applications of machine learning in traffic prediction, several challenges remain in the development and deployment of predictive models. One of the primary challenges is model validation [104,109,113]. According to [114], the calibration and validation of traffic prediction models can be complex and time-consuming. This is particularly true when using data from different sources because discrepancies in data quality or coverage can lead to inaccurate predictions. In addition, traffic conditions can be highly variable and influenced by numerous external factors, such as accidents, roadwork, and weather conditions, making it difficult to develop models that are universally applicable across different scenarios [115,116].
Another challenge is the requirement for high-quality granular data. For machine-learning models to produce accurate predictions, they must be trained on a large dataset that captures the full range of traffic conditions. However, in many cities, there is a lack of sufficient traffic data, especially in developing countries such as Nigeria, where traffic counting and monitoring infrastructure are often inadequate [117,118,119,120]. This limitation can hinder the development of effective machine learning models and limit their potential for real-world applications [121,122,123].
Although significant progress has been made in the use of machine learning for traffic prediction, there remains a need for more research on its application in rapidly urbanizing cities, particularly in African countries, such as Nigeria. Existing studies have tended to focus on developed regions, where the data infrastructure is more robust and traffic conditions are often more predictable. In contrast, cities such as Lagos present unique challenges, including highly variable traffic conditions, limited data availability, and rapid urbanization [124,125,126,127]. There is also a lack of studies that specifically focus on the application of machine learning to traffic prediction on major urban roads in Lagos, such as Ikorodu Road. This gap in the literature presents an opportunity for further research, as understanding the traffic dynamics on such roads is critical for improving the overall efficiency and safety of a city’s transportation system [127,128].

3. Materials and Methods

In this study, we aimed to analyze and predict traffic conditions on Ikorodu Road, one of Lagos’ busiest highways, using machine learning models. The methodology was designed to provide insights into how traffic flows and congestion in this highly urbanized environment can be better managed. Below, we describe the steps taken, including data collection, preprocessing, model development, and the evaluation of model performance.

3.1. Study Area

Ikorodu Road is a critical transportation route in Lagos that connects the northern parts of the city to the central business districts, specifically between the Jibowu and Fadeyi bus stops, located at 6.5178° N, 3.3679° E. This area is situated within a bustling urban environment and is characterized by high volumes of traffic. A variety of data collection techniques and tools, including traffic sensors and cameras, will be employed to gather information on the traffic volume and flow patterns in the study area. The collected data will serve as the basis for developing precise and comprehensive geometric models of highways and their adjacent infrastructures.

3.2. Methods

To obtain a comprehensive understanding of traffic patterns on Ikorodu Road in Lagos, Nigeria, data were collected on all days of the week, from Monday to Sunday. The methodology involved traffic volume data acquisition and preprocessing, followed by machine learning (ML) model development and the evaluation for traffic classification. A summary of the research process for the analysis and prediction of traffic is displayed in Figure 1, with the dataset preprocessing and model architecture illustrated in Figure 2.

3.3. Traffic Count Survey

The traffic volume data were collected using a combination of manual and automated methods. Video cameras were strategically installed along Ikorodu Road between Jibowu and Fadeyi bus stops to capture continuous traffic flow over a full week. The use of pre-recorded video footage allowed for flexibility in data analysis as well as improved accuracy compared to on-site manual counts, which are often limited by weather conditions, human error, and resource intensity. Vehicles were counted at 1 h intervals for each 24 h cycle, and traffic was classified into five categories: cars, jeeps, buses, trucks, and tricycles. The resulting dataset was organized in a structured format (CSV or spreadsheet) with variables representing the day of the week, time interval, vehicle type, and hourly vehicle count. To ensure reliability, the dataset was subjected to quality control to detect and correct anomalies or missing values. The Average Daily Traffic (ADT) was calculated for each day and the Annual Average Daily Traffic (AADT) was derived by dividing the total yearly traffic counts by 365. These metrics were used to assess the current traffic demand and identify infrastructure needs.
Manual video-based counting, although accurate, is time-consuming and can take up to three hours to analyze one hour of footage, depending on factors such as traffic density and video quality. However, it remains the preferred method when automated systems are not available or are not practical. The accuracy of such counts is vital for planning studies including delay analysis, capacity estimation, and traffic impact assessments. Manual traffic counts were conducted using pre-recorded video footage captured using strategically positioned cameras. This method was selected over on-site manual counting because of its greater reliability in adverse weather, reduced labor intensity, and increased accuracy. As noted in previous studies [129,130], video-based traffic counts offer a cost-effective and scalable solution for urban traffic analysis, although challenges such as human errors, video quality, and survey design inefficiencies may still arise [97].
Traffic was recorded at hourly intervals for 24 h each day. Vehicles were classified into five main categories: cars, jeeps, buses, trucks, and tricycles. The data were structured in tabular format (CSV), with fields for the day of the week, hour, vehicle type, and vehicle count. Data quality checks were performed to identify and rectify the anomalies, missing values, and inconsistencies. The Average Daily Traffic (ADT) was computed from the recorded volumes. The Annual Average Daily Traffic (AADT) was derived by aggregating the daily traffic counts over the year and dividing it by 365. This metric serves as a basis for estimating the current service demand and identifying areas requiring infrastructural improvements.

3.4. Machine Learning Models (ML)

ML is an artificial intelligence (AI) branch that aims to develop statistical models to improve computer system performance by learning data [131,132] including supervision, unsupervised learning, and reinforcement. Although supervision and reinforcement learning algorithms can involve human supervision, non-supervised learning algebra does not depend on label data or human guidance. Our study used supervised ML algorithms to classify traffic numbers and volumes using various vehicle datasets. We used vehicle training datasets and trained three different ML algorithms: decision trees, gradient increase, and random forest classification systems, and tested their performance using R programming languages [131].
After feature selection, classification models were developed to predict traffic conditions. These models classify traffic into three categories: ‘Low’, ‘Medium’, and ‘High’. These categories represent different levels of traffic volume. Three different classification models were used: the decision tree classifier (DT), gradient boosting classifier (GBC), and random forest classifier (RFC) [133,134,135]. These models were chosen because of their robustness and performance with classification tasks, especially with multi-class problems, such as ours. The models were trained using the training dataset and selected features. The performances of the models were evaluated using cross-validation scores, and the best-performing model was selected based on the average score [136].

3.4.1. Random Forest Model (RFC)

Random forests are widely used as comprehensive learning algorithms for classification and regression. This algorithm uses multiple decision trees to improve the accuracy and robustness of models. Unlike individual decision trees, random forests are less likely to be overfitted because they bind multiple trees with different biases and differences. Additionally, they can efficiently handle high-dimensional data with many functions by randomly selecting a set of functions for each tree. As a result, algorithms can handle large and complex datasets [85]. We used random forest algorithms to train models using random forest packages [137] in R programming languages. We refined the model’s hyperparameters using Bayesian optimization techniques based on models, including the random sampling of variables at each step of a decision tree, the minimum size of an internal node, and the number of decision trees. The performance of the model was evaluated using cross-validation, and the optimal values of the hyperparameters were selected based on their best performance.

3.4.2. Decision Tree Model (DT)

Decision trees (DTs) are widely used machine learning algorithms that can be applied to classification and regression problems. This non-parametric algorithm can handle large-scale complex datasets without forcing rigid parametric structures and is a versatile tool for different applications [138]. The DT algorithm creates a tree model, with the internal node of the tree representing an input feature decision and each leaf node representing a class label or target value. DT models are suitable for multilevel classification problems because they capture the nonlinear relationship between input characteristics and target variables [139,140].

3.4.3. Gradient Boosting Classifier (GBC)

Gradient boosting classifiers (GBC) are highly accurate, efficient, and popular. This is an ensemble method that combines several weak learners, such as decimal trees, into a single strong learner [140]. The gradient boost package is typically used to implement regression models in R. The package also provides support for the modification of high-performance parameters, which can significantly improve the performance of the model. The hyperparameters provide several options for adjustment, including learning rates, the maximum depth of each tree, the number of trees, and regularization parameters (alpha and gamma). Bayesian optimization can be used to increase the hyperparameters in gradient boosting.

3.5. Reliability Analysis

Before developing the prediction models, a comprehensive statistical analysis of the collected traffic data was conducted. The main objectives were to understand the underlying structure of the data, identify patterns, and extract meaningful insights. The following statistical methods were used.

3.5.1. Descriptive Statistics

Descriptive statistics provided an overview of the data, including central tendencies (mean) and measures of dispersion (variance and standard deviation). This helped us understand the general trends and variability in traffic volume.
Mean: The mean of a dataset X with n elements is given by the following equation:
μ = 1 n i = 1 n x i
Variance: The variance of dataset X with n elements is given by the following equation:
σ 2 = 1 n i = 1 n ( x i μ ) 2
Standard Deviation: The standard deviation is the square root of the variance.

3.5.2. Correlation Analysis

Correlation analysis was conducted to discover potential relationships between different variables in the dataset. This helped our understanding of how variables such as the time of day and the type of vehicle influenced traffic volume.
Pearson’s correlation coefficient between two variables X and Y is given as follows:
r x y = i = 1 n ( x i μ x ) ( y i μ y ) i = 1 n x i μ x 2 i = 1 n y i μ y 2

3.5.3. Model Development

During preprocessing, the standardization process was divided into three sets: training, testing, and validation. A feature selection model was used to pinpoint the most significant predictors of traffic volume from the training and validation datasets, which [113,116,141] is characterized by a loop connecting the feature selection, modeling, and hyperparameter optimization modules. This loop automatically explores different combinations of features and modeling methods, ultimately producing the most effective model with the optimal subset of features based on the input data [142].

3.5.4. Data Preprocessing and Partitioning

In the initial phase of data processing, numerical values were assigned to each independent variable. These values were then standardized to follow a normal distribution (0, 1) [93,141,143].

3.5.5. Feature Selection

Feature selection was performed using standardized and partitioned data. Function S was used to determine whether a feature column should be selected in a binary manner. The selected data were then modeled using both linear and nonlinear methods. During inference, the result for a given data point is computed as follows, where F represents the trained model, and Xi represents the features [41,48,50,141].
Y i = F ( X i S ( X i ) )

3.5.6. Model Evaluation and Validation

The performance of the models was evaluated using a range of techniques. Cross-validation was used during the model selection phase to ensure that the chosen model did not overfit the training data and could generalize well to the unseen data. The cross-validation process involved splitting the training data into five subsets or ‘folds’. Four of these folds were used for training, and the remaining fold was used for testing. This process was repeated five times, and each fold was used once for testing [64,93]. The results of each run were averaged to obtain the final cross-validation scores for the model.
The ML models are presented and discussed using a confusion matrix and various performance metrics, such as overall accuracy, sensitivity (ability to detect positive instances), specificity (ability to detect negative instances), negative predicted value (NPV), positive predicted value (PPV), and balanced accuracy (the average of sensitivity and specificity) [101,109,113]. Owing to the imbalanced dataset used for training and testing purposes, additional informative performance metrics, such as precision, recall, and F1_score, were utilized to assess the efficacy of the ML models.
Overall Accuracy = (TP + TN)/(TP + TN + FP + FN)
where TP = true positive (correctly predicted as positive), TN = true negative (correctly predicted as negative), FP = false positive (incorrectly predicted as positive), and FN = false negative (incorrectly predicted as negative).
Precision = TP/(TP + FP)
Sensitivity = TP/(TP + FN)
F 1 _ s c o r e = 2 × p r e c i s i o n × S e n s i t i v i t y p r e c i s i o n + S e n s i t i v i t y
In addition, a classification report was generated for each model. This report included metrics such as the precision, recall, and F1 score for each traffic condition (‘High’, ‘Medium’, and ‘Low’). These metrics provided detailed insights into the performance of the models. The model was validated by using a validation dataset. The results of this validation process provided the final assurance of the model’s predictive power and ability to generalize new data.

3.5.7. Predicting Traffic Conditions

The chosen model can be used to predict traffic conditions based on the features selected during the feature selection process. To make a prediction, the user must input the feature values into the model. The model then outputs a prediction of the traffic condition (‘High’, ‘Medium’, or ‘Low’). These predictive models are powerful tools for traffic management. They can be used to predict future traffic conditions based on current and historical data, allowing proactive measures to be taken to manage and control traffic flows [109,124].

4. Results and Discussion

The results of the traffic data analysis were conducted on Ikorodu (Jibowu Section) Road. The analysis was performed using the outlined methods, including traffic count analysis, time-based analysis, statistical analysis, and the development of predictive models. The primary objective of these methods is to gain an in-depth understanding of the traffic patterns along the studied segment of the road and to predict future traffic conditions. Such insights can aid effective traffic management and planning.
The Results Section provides insights into the traffic volume observed daily and at different times of the day. Subsequently, the outcomes of the statistical analyses are presented, which include the mean, variance, and standard deviation of the traffic volume for each day. Furthermore, a correlation analysis was conducted to examine the relationship between different variables, such as the time of day, day of the week, and traffic volume.
The performance of the predictive models developed in this study was then examined, highlighting their accuracy in classifying traffic into various categories: ‘Low’, ‘Medium’, and ‘High’. The implications of these models for predicting future traffic conditions were also explored. The analysis and interpretation of these results are integral to achieving the research objectives. They provide valuable insights into the traffic patterns on Ikorodu Road and their ability to forecast future traffic conditions. These findings are critical for the development of effective traffic management strategies and solutions.

4.1. Daily Traffic Volume

An examination of the traffic volume for each day of the week provided crucial insights into the traffic patterns on Ikorodu Road. As illustrated in Table 1, the total flow varied significantly across days, indicating different traffic dynamics at play. The highest total flow was observed on Monday, with a traffic volume of approximately 5582 vehicles per day. This was closely followed by Tuesday, with an estimated 5372 vehicles per day. Conversely, Saturday experienced the lowest total flow, with approximately 3083 vehicles per day. The analysis of the average flow per hour revealed similar patterns. The average flow was the highest on Monday (465.17 vehicles per day) and the lowest on Saturday (256.92 vehicles per day).
The traffic volume on Ikorodu Road fluctuates throughout the week, reflecting varying patterns of commuter activity. Figure 3 illustrates these patterns using confidence and prediction bands, emphasizing the variability and predictability in traffic flow. Monday is the busiest day with 5582 vehicles, as people return to their workweek routines, followed by Tuesday with 5372 vehicles. Wednesday saw a slight drop to 4739 vehicles, reflecting a mid-week lull, while Thursday and Friday saw increased traffic again, reaching 4996 and 5239 vehicles, respectively, as people wrap up their week and prepare for the weekend. The weekend shows a stark contrast, with Saturday having the lowest traffic of 3083 vehicles, as many people stay home or engage in non-work activities. Sunday saw a moderate increase to 3832 vehicles, which is still significantly lower than on weekdays. In summary, weekdays, particularly Mondays and Fridays, experience the heaviest traffic due to commuting and work-related activities, while Saturdays and Sundays see reduced traffic, reflecting the shift to leisure and rest. Understanding these patterns is crucial for improving traffic management and planning.

4.2. Time-Based Traffic Volume

Analyzing traffic volume in relation to time is essential, as it helps determine peak and off-peak hours, which could be crucial in planning and managing traffic flow.
Table 2 and Figure 4 below is a summary of the total traffic flow for each type of vehicle per hour.
The traffic data for Ikorodu Road revealed significant variations in vehicle flow during different hours of the day. The highest traffic volume was observed between 16:00 (4:00 p.m.) and 17:00 (5:00 p.m.), with a peak of 3445 vehicles, predominantly composed of cars (555), jeeps (721), and buses (431). These hours align with the evening rush period, indicating a surge in commuter and transportation activity. Conversely, the lowest traffic volumes were recorded at 12:00 p.m. and 1:00 a.m., when only 438 vehicles were observed, reflecting a lull in road usage during midday and late-night hours. Throughout the day, cars consistently represented the largest proportion of traffic on Table 3 and Figure 5, with their numbers peaking in the afternoon. Jeeps also maintained a substantial presence, particularly during late morning and afternoon periods. Buses showed notable spikes at 6:00 a.m. and 17:00 p.m. in Figure 6, reflecting the role of public transportation during the morning and evening rush hours. Trucks, although less frequent, exhibited higher counts in the early morning and lower numbers overnight. Tricycles and bicycles accounted for a smaller fraction of the total traffic, but remained relatively stable in volume, with tricycles peaking at 6:00 a.m. and bicycles showing consistent but low numbers throughout the day. The traffic patterns on Ikorodu Road exhibited peak congestion during the late afternoon and early evening, predominantly driven by cars, jeeps, and buses. In contrast, the traffic volume was significantly lower during the late night and midday periods. These insights are essential for traffic management, urban planning, and optimization of road infrastructure to accommodate peak and off-peak traffic conditions effectively.
Understanding these traffic volume trends across different times of the day is crucial for making informed decisions regarding traffic planning and management. For instance, during peak traffic hours, traffic control measures may need to be intensified, and roads may be designed with a higher capacity. Conversely, resources can be allocated to others during off-peak hours. Infrastructure planning should also consider these patterns to address traffic congestion efficiently.

4.3. Descriptive Statistics Results

It was observed that the mean traffic volume tended to decrease from Monday to Wednesday, increased slightly on Thursday and Friday, and then significantly decreased over the weekend on Saturday and Sunday. This may suggest that the road experiences heavier traffic during weekdays than weekends, possibly due to work-related commuters.
The variance and standard deviation, which measure the spread of the traffic volume, are higher during weekdays than during weekends. This might indicate greater variability in traffic volume during weekdays. This variability could be due to various factors, such as differences in work schedules, school runs, and other weekday-specific activities.

4.4. Correlation Analysis Results

Regarding the correlation result, a correlation value of 0.1048 between the time of day and traffic volume indicated a weak positive correlation as shown in Table 4. In other words, as the day progressed, there was a slightly higher likelihood of increased traffic volume, but this relationship was not very strong.

4.5. Model Performance Cross-Validation Results

The study incorporated three predictive models: the decision tree classifier, gradient boosting classifier, and random forest classifier. The performance of each model was evaluated using cross-validation and classification. The decision tree classifier achieved an average cross-validation score of approximately 0.881. The gradient boosting classifier slightly outperformed the decision tree classifier, with an average cross-validation score of approximately 0.925. The random forest classifier exhibited an average cross-validation score of approximately 0.894. Although the cross-validation scores were relatively close, the gradient boosting classifier scored the highest, indicating that it had the best general performance in predicting test data during training. The classification reports provided more detailed information on the performance of each model. Both the decision tree classifier and gradient boosting classifier achieved an accuracy of 0.88 on the test set, while the random forest classifier achieved a perfect accuracy of 1.00. This demonstrates that the random forest classifier had the highest precision, recall, and F1-score for all classes (High, medium, and Low), making it the best-performing model out of the three when tested on unseen data.
The traffic patterns observed on Ikorodu Road throughout the day revealed fluctuations in vehicle flow as illustrated in Table 5 and Figure 7 above, which can be compared to the performance of different machine learning models in a predictive context. Just as traffic volumes rise and fall during the day based on various factors, such as work hours, leisure activities, and commuting patterns, machine learning models decision tree classifiers, gradient boosting classifiers, and random forest classifiers demonstrate different levels of accuracy and efficiency in handling data.
The decision tree classifier mirrors predictable traffic patterns. It performs consistently with a cross-validation score of 0.881 and a test accuracy of 0.88 as shown in Table 6 below, similar to how traffic on Ikorodu Road is relatively stable during rush hours, such as the 6:00 a.m. and 17:00 p.m. periods, when car and jeep volume peaks. These periods follow predictable routines in which commuters’ behaviors are well understood, much like how decision trees split data into clear categories. However, while the model performs well, it does not fully capture all possible fluctuations, akin to how traffic patterns might remain consistent but occasionally miss variations in flow.
The gradient boosting classifier, with a higher cross-validation score of 0.925 as shown in Table 7, can learn and adapt to data more effectively than the decision tree; however, its test accuracy matches that of the decision tree at 0.88. This suggests that despite its strength in training, the model’s ability to generalize to unseen data is not superior. This is similar to traffic on Ikorodu Road during non-peak hours, such as 7:00 a.m. or 12:00 p.m., when, while traffic is heavy, the flow does not improve significantly. Similarly to the gradient boosting model, traffic volumes fluctuate but do not show drastic improvements in efficiency during these times.
The random forest classifier stood out with a perfect test accuracy of 1.00 and a solid cross-validation score of 0.894 as shown in Table 8. It excels in handling complex and variable patterns, just as traffic on Ikorodu Road fluctuates throughout the day with periods of high congestion, such as 16:00 and 17:00, when cars, jeeps, and buses dominate the road. The model’s ability to generalize well, even with unpredictable traffic peaks, makes it the most efficient in handling diverse scenarios, akin to how a well-designed traffic system might adapt to heavy road use during rush hour.
Machine learning models and traffic data reflect similar patterns of fluctuation and predictability. The decision tree works well for stable and predictable situations, such as how rush-hour traffic follows a consistent rhythm. The gradient boosting classifier adapts better during training but does not significantly outperform the decision tree on the test set, much like traffic that remains steady, but does not improve drastically during certain times. Finally, the random forest classifier performs exceptionally, accurately predicting even the most complex and fluctuating traffic conditions, similar to a traffic system that adjusts seamlessly to both regular and unpredictable peak times.

4.6. Model Validation

The models were validated on a test dataset in which the models were not observed during training. The random forest classifier again proved to be the most accurate model, correctly predicting the traffic category for every instance in the test dataset. This suggests that the random forest classifier is the most reliable for future predictions, given its ability to generalize well to new data. However, further validation is recommended, using a more extensive and diverse dataset to confirm the robustness and reliability of the model.
Overall, the models performed well in predicting traffic categories based on the traffic data provided. Future work could consider tuning the hyperparameters of the models or incorporating additional relevant features to further improve their performance.

4.7. Traffic Condition Predictions

The predictive models developed in this study, specifically the random forest classifier, have shown significant potential for predicting future traffic conditions on Ikorodu Road (Jibowu section). This model offers a reliable tool for forecasting traffic volumes and categorizing them into “Low”, “Medium”, and “High”. The prediction of traffic conditions is pivotal for traffic management and planning. Accurate predictions can facilitate the implementation of dynamic traffic management strategies, enabling traffic control centers to take preventative measures during peak hours or in anticipation of increased traffic volumes.
For instance, in anticipation of “High” traffic volumes, authorities can implement measures such as congestion pricing, rerouting traffic through alternative routes, or optimizing traffic signal timings. This proactive approach can significantly mitigate traffic congestion, reduce travel time, and improve overall road safety. This study provides insightful results regarding the traffic conditions on Ikorodu Road. It identifies patterns in traffic volume in relation to the day of the week and time of day. These models have shown promising accuracy in predicting traffic volumes, which could be an essential tool for traffic management.
However, this study had some limitations. This study is based on historical traffic data from a specific location, Ikorodu Road (Jibowu section). Hence, the predictions of the model may not be generalizable to other locations with different traffic patterns or conditions. Moreover, the study does not account for certain external factors, such as weather conditions, road work, accidents, or special events, which can significantly impact traffic volume. Future studies should consider these factors to obtain more comprehensive and accurate predictions.
In addition, further research could investigate the use of more sophisticated machine learning techniques or deep learning models, which might capture more complex patterns in the data and provide more accurate predictions. Another area of interest could be the exploration of real-time traffic prediction, which could offer even more dynamic and responsive traffic management solutions.

5. Conclusions

This study focused on analyzing and predicting traffic conditions on Ikorodu Road in Lagos. The analysis involved the examination of historical traffic data, specifically focusing on daily and hourly traffic volumes. The prediction involved the use of machine learning models, including decision trees, gradient boosting, and random forest classifiers. Our findings revealed significant variations in traffic volume across different days of the week and times of day, indicating peak and off-peak periods.
However, while our models were effective for predicting traffic conditions based on historical data, they also highlighted the need for a more comprehensive approach that includes additional factors, such as weather conditions, road work, and special events, which could significantly impact traffic volume. Based on our findings, we recommend the following:
  • Implementation of dynamic traffic management: The Lagos Traffic Management Authority should consider using a random forest classifier model or similar predictive tools to facilitate dynamic traffic management strategies. This could involve taking proactive measures during predicted peak times to mitigate congestion.
  • Consideration of additional factors: Future studies and traffic prediction models should incorporate additional external factors, such as weather conditions and special events, for more accurate and comprehensive traffic predictions.
  • Exploration of advanced modeling techniques: Further research could explore the use of more advanced machine learning techniques or deep learning models that might better capture complex patterns in the data and provide more accurate predictions.
  • Development of real-time traffic prediction systems: As technology and data collection techniques evolve, there is potential for developing real-time traffic prediction systems. Such systems can provide even more dynamic and responsive traffic management solutions.
In conclusion, although this study provides valuable insights and tools for traffic management on Ikorodu Road, there is still room for improvement and exploration of more advanced techniques in the field of traffic volume prediction.

Author Contributions

U.U.I.: writing—original draft preparation. M.M.R.: conceptualization, Software. U.U.I. and M.M.R.: validation methodology. U.U.I.: formal analysis. U.U.I.: investigation. M.M.R.: supervision and editing. All authors have read and agreed to the published version of the manuscript.

Funding

This study was financially supported by the Széchenyi István University.

Data Availability Statement

The datasets created and analyzed during the present work are provided in the main publication; more information is available from the authors.

Conflicts of Interest

The authors declare that they have no known conflicting financial interests or personal relationships that might have influenced the research presented in this study.

Abbreviations

ITSIntelligent transportation systems
ADTAverage daily traffic
AADTAnnual average daily traffic
AIArtificial intelligence
RFCRandom forest classifier
DTDecision tree
GBCGradient boosting classifier
MLMachine learning
XiFeatures
FTrained model

References

  1. Lowans, C.; Del Rio, D.F.; Sovacool, B.K.; Rooney, D.; Foley, A.M. What Is the State of the Art in Energy and Transport Poverty Metrics? A Critical and Comprehensive Review. Energy Econ. 2021, 101, 105360. [Google Scholar] [CrossRef]
  2. Oladimeji, D.; Gupta, K.; Kose, N.A.; Gundogan, K.; Ge, L.; Liang, F. Smart Transportation: An Overview of Technologies and Applications. Sensors 2023, 23, 3880. [Google Scholar] [CrossRef]
  3. Nugmanova, A.; Arndt, W.-H.; Hossain, M.A.; Kim, J.R. Effectiveness of Ring Roads in Reducing Traffic Congestion in Cities for Long Run: Big Almaty Ring Road Case Study. Sustainability 2019, 11, 4973. [Google Scholar] [CrossRef]
  4. Loo, B.P.Y. Transport, Urban. International Encyclopedia of Human Geography; Elsevier: Amsterdam, The Netherlands, 2009; pp. 465–469. [Google Scholar]
  5. Dimitrakopoulos, G.; Uden, L.; Varlamis, I. Transportation Network Applications. In The Future of Intelligent Transport Systems; Elsevier: Amsterdam, The Netherlands, 2020; pp. 175–188. [Google Scholar]
  6. Koźlak, A. The Role of the Transport System in Stimulating Economic and Social Development. Zesz. Nauk. Uniw. Gdańskiego. Ekon. Transp. I Logistyka 2017, 72, 19–33. [Google Scholar] [CrossRef]
  7. Anwar, A.H.M.M.; Oakil, A.T. Smart Transportation Systems in Smart Cities: Practices, Challenges, and Opportunities for Saudi Cities. In Smart Cities; Springer: Cham, Switzerland, 2024; pp. 315–337. [Google Scholar]
  8. Hajduk, S. Efficiency Evaluation of Urban Transport Using the DEA Method. Equilibrium. Q. J. Econ. Econ. Policy 2018, 13, 141–157. [Google Scholar] [CrossRef]
  9. Yannis, G.; Chaziris, A. Transport System and Infrastructure. Transp. Res. Procedia 2022, 60, 6–11. [Google Scholar] [CrossRef]
  10. Cheng, R.; Jiang, Y.; Nielsen, O.A. Integrated People-and-Goods Transportation Systems: From a Literature Review to a General Framework for Future Research. Transp. Rev. 2023, 43, 997–1020. [Google Scholar] [CrossRef]
  11. Gentili, M.; Mirchandani, P.B. Review of Optimal Sensor Location Models for Travel Time Estimation. Transp. Res. Part C Emerg. Technol. 2018, 90, 74–96. [Google Scholar] [CrossRef]
  12. Ng, A.K.Y.; Jiang, C.; Larson, P.; Prentice, B.; Duval, D. Transport Networks and Impacts on Transport Nodes. In Transport Nodal System; Elsevier: Amsterdam, The Netherlands, 2018; pp. 9–28. [Google Scholar]
  13. Mehmood, S.; Fan, J.; Dokota, I.S.; Nazir, S.; Nazir, Z. How to Manage Supply Chains Successfully in Transport Infrastructure Projects. Sustainability 2024, 16, 730. [Google Scholar] [CrossRef]
  14. Wu, D.; Zheng, A.; Yu, W.; Cao, H.; Ling, Q.; Liu, J.; Zhou, D. Digital Twin Technology in Transportation Infrastructure: A Comprehensive Survey of Current Applications, Challenges, and Future Directions. Appl. Sci. 2025, 15, 1911. [Google Scholar] [CrossRef]
  15. Fatorachian, H.; Kazemi, H. Sustainable Optimization Strategies for On-Demand Transportation Systems: Enhancing Efficiency and Reducing Energy Use. Sustain. Environ. 2025, 11, 2464388. [Google Scholar] [CrossRef]
  16. Ngcobo, N.; Akinradewo, O.; Mokoena, P. Evaluating the Measures to Promote Sustainable Transport Infrastructure: A Case of City of Johannesburg, South Africa. J. Eng. 2024, 2024, 6372226. [Google Scholar] [CrossRef]
  17. Yang, S.; Xiang, P.; Zhao, X.; Wang, Y.; Hu, M.; Qian, Y. Identifying Key Influencing Factors of Cross-Regional Railway Infrastructure Interconnection: A Fuzzy Integrated MCDM Framework. Humanit. Soc. Sci. Commun. 2025, 12, 169. [Google Scholar] [CrossRef]
  18. Lah, O. Sustainable Urban Mobility in Action. In Sustainable Urban Mobility Pathways; Elsevier: Amsterdam, The Netherlands, 2019; pp. 133–282. [Google Scholar]
  19. Jin, K.; Wang, W.; Li, X.; Hua, X.; Chen, S.; Qin, S. Identifying the Critical Road Combination in Urban Roads Network under Multiple Disruption Scenarios. Phys. A Stat. Mech. Its Appl. 2022, 607, 128192. [Google Scholar] [CrossRef]
  20. Bin Hariz, M.; Said, D.; Mouftah, H.T. A Dynamic Mobility Traffic Model Based on Two Modes of Transport in Smart Cities. Smart Cities 2021, 4, 253–270. [Google Scholar] [CrossRef]
  21. Alessandretti, L.; Orozco, L.G.N.; Saberi, M.; Szell, M.; Battiston, F. Multimodal Urban Mobility and Multilayer Transport Networks. Environ. Plan B Urban Anal City Sci. 2023, 50, 2038–2070. [Google Scholar] [CrossRef]
  22. Saif, M.A.; Zefreh, M.M.; Torok, A. Public Transport Accessibility: A Literature Review. Period. Polytech. Transp. Eng. 2018, 47, 36–43. [Google Scholar] [CrossRef]
  23. Schiller, P.L.; Kenworthy, J.R. An Introduction to Sustainable Transportation, 2nd ed.; Routledge: New York, NY, USA, 2018; ISBN 9781315644486. [Google Scholar]
  24. Yang, S.; Stepanchuk, O.; Pylypenko, O.; Ji, J.; Bieliatynskyi, A. Scientific Basis for Improving the Efficiency of Urban Street and Road Network Operation. J. Navig. 2023, 76, 685–708. [Google Scholar] [CrossRef]
  25. Yusuf, O.; Rasheed, A.; Lindseth, F. Exploring Urban Mobility Trends Using Cellular Network Data. In Proceedings of the 1st International Conference on Net-Zero Built Environment, Oslo, Norway, 19–21 June 2024. [Google Scholar] [CrossRef]
  26. Wang, J.; Ren, Y.; Shu, T.; Shen, L.; Liao, X.; Yang, N.; He, H. Economic Perspective-Based Analysis on Urban Infrastructures Carrying Capacity—A China Study. Environ. Impact Assess. Rev. 2020, 83, 106381. [Google Scholar] [CrossRef]
  27. Ruiz, A.; Guevara, J. Environmental and Economic Impacts of Road Infrastructure Development: Dynamic Considerations and Policies. J. Manag. Eng. 2020, 36, 04020006. [Google Scholar] [CrossRef]
  28. Mtweve, P.; Moseti, V.; Mahmoud, N.; Kramm, T.; Bogner, C.; Ibisch, P.; Biber-Freudenberger, L. Exploring Socioeconomic and Environmental Impacts of Road Infrastructure Development in Sub-Saharan Africa: A Systematic Literature Review. Environ. Dev. 2025, 54, 101177. [Google Scholar] [CrossRef]
  29. Kuncoro, E.; Wurarah, R.N.; Erari, I.E. The Impact of Road Infrastructure Development on Ecosystems and Communities. Soc. Ecol. Econ. Sustain. Dev. Goals J. 2024, 1. [Google Scholar] [CrossRef]
  30. Gutman, S.; Malashenko, M. The Impact of Transport Infrastructure on Sustainable Economic Development of Russian Regions. Sustainability 2025, 17, 3776. [Google Scholar] [CrossRef]
  31. Ben, S.O. Significance of Road Infrastructure on Economic Sustainability. Am. Int. J. Multidiscip. Sci. Res. 2019, 5, 1–9. [Google Scholar] [CrossRef]
  32. Vijayakumar, A.; Mahmood, M.N.; Gurmu, A.; Kamardeen, I.; Alam, S. Social Sustainability Indicators for Road Infrastructure Projects: A Systematic Literature Review. IOP Conf. Ser. Earth Environ. Sci. 2022, 1101, 022039. [Google Scholar] [CrossRef]
  33. Papadakis, D.M.; Savvides, A.; Michael, A.; Michopoulos, A. Advancing Sustainable Urban Mobility: Insights from Best Practices and Case Studies. Fuel Commun. 2024, 20, 100125. [Google Scholar] [CrossRef]
  34. Rodrigue, J.-P. The Geography of Transport Systems; Routledge: London, UK, 2024; ISBN 9781003343196. [Google Scholar]
  35. Gao, Y.; Zhu, J. Characteristics, Impacts and Trends of Urban Transportation. Encyclopedia 2022, 2, 1168–1182. [Google Scholar] [CrossRef]
  36. Fattah, M.A.; Morshed, S.R.; Kafy, A.-A. Insights into the Socio-Economic Impacts of Traffic Congestion in the Port and Industrial Areas of Chittagong City, Bangladesh. Transp. Eng. 2022, 9, 100122. [Google Scholar] [CrossRef]
  37. Abdullahi, U.O.; Adnan, A. Sustainable Urban Mobility: Lessons from European Cities. Glob. J. Eng. Technol. Adv. 2024, 21, 157–170. [Google Scholar] [CrossRef]
  38. Aliyu, A.; Amadu, L. Urbanization, Cities, and Health: The Challenges to Nigeria—A Review. Ann. Afr. Med. 2017, 16, 149. [Google Scholar] [CrossRef]
  39. Solanke, M.O. Challenges of Urban Transportation in Nigeria. Int. J. Dev. Sustain. 2013, 2, 891–901. [Google Scholar]
  40. Thondoo, M.; Marquet, O.; Márquez, S.; Nieuwenhuijsen, M.J. Small Cities, Big Needs: Urban Transport Planning in Cities of Developing Countries. J. Transp. Health 2020, 19, 100944. [Google Scholar] [CrossRef]
  41. Pojani, D.; Stead, D. Sustainable Urban Transport in the Developing World: Beyond Megacities. Sustainability 2015, 7, 7784–7805. [Google Scholar] [CrossRef]
  42. Faheem, H.B.; Shorbagy, A.M.E.; Gabr, M.E. Impact Of Traffic Congestion on Transportation System: Challenges and Remediations—A Review. Mansoura Eng. J. 2024, 49, 18. [Google Scholar] [CrossRef]
  43. Sokido, D.L. Measuring the Level of Urban Traffic Congestion for Sustainable Transportation in Addis Ababa, Ethiopia, the Cases of Selected Intersections. Front. Sustain. Cities 2024, 6, 1366932. [Google Scholar] [CrossRef]
  44. Obanya, H.E.; Amaeze, N.H.; Togunde, O.; Otitoloju, A.A. Air Pollution Monitoring around Residential and Transportation Sector Locations in Lagos Mainland. J. Health Pollut. 2018, 8, 180903. [Google Scholar] [CrossRef] [PubMed]
  45. Afifa; Arshad, K.; Hussain, N.; Ashraf, M.H.; Saleem, M.Z. Air Pollution and Climate Change as Grand Challenges to Sustainability. Sci. Total Environ. 2024, 928, 172370. [Google Scholar] [CrossRef]
  46. Zhang, K.; Batterman, S. Air Pollution and Health Risks Due to Vehicle Traffic. Sci. Total Environ. 2013, 450–451, 307–316. [Google Scholar] [CrossRef]
  47. Kumar, P.G.; Lekhana, P.; Tejaswi, M.; Chandrakala, S. Effects of Vehicular Emissions on the Urban Environment- a State of the Art. Mater. Today Proc. 2021, 45, 6314–6320. [Google Scholar] [CrossRef]
  48. Lu, S. Modeling Dynamics of Traffic Flow, Information Creation and Spread through Vehicle-to-Vehicle Communications: A Kinetic Approach. Int. J. Non Linear Mech. 2025, 175, 105096. [Google Scholar] [CrossRef]
  49. Kotsi, A.; Politis, I.; Mitsakis, E. Strategic Traffic Management in Mixed Traffic Road Networks: A Methodological Approach Integrating Game Theory, Bilevel Optimization, and C-ITS. Future Transp. 2024, 4, 1602–1624. [Google Scholar] [CrossRef]
  50. Zhang, Y.; Yang, X. (Terry) Discrete Macroscopic Traffic Flow Model Considering the Lane-Changing Behaviors in the Mixed Traffic Environment. Transp. Res. Part C Emerg. Technol. 2024, 164, 104672. [Google Scholar] [CrossRef]
  51. Lieberthal, E.B.; Serok, N.; Duan, J.; Zeng, G.; Havlin, S. Addressing the Urban Congestion Challenge Based on Traffic Bottlenecks. Philos. Trans. R. Soc. A Math. Phys. Eng. Sci. 2024, 382, 20240095. [Google Scholar] [CrossRef]
  52. Kumar, S. Urban Traffic: Understanding the Traffic Flow Factor Through Fluid Dynamics. SSRN 2023. [Google Scholar] [CrossRef]
  53. Narayanan, S.; Chaniotakis, E.; Antoniou, C. Factors Affecting Traffic Flow Efficiency Implications of Connected and Autonomous Vehicles: A Review and Policy Recommendations. Adv. Transp. Policy Plan. 2020, 5, 1–50. [Google Scholar]
  54. Khanmohamadi, M.; Guerrieri, M. Advanced Sensor Technologies in CAVs for Traditional and Smart Road Condition Monitoring: A Review. Sustainability 2024, 16, 8336. [Google Scholar] [CrossRef]
  55. Wang, Y.; Szeto, W.Y.; Han, K.; Friesz, T.L. Dynamic Traffic Assignment: A Review of the Methodological Advances for Environmentally Sustainable Road Transportation Applications. Transp. Res. Part B Methodol. 2018, 111, 370–394. [Google Scholar] [CrossRef]
  56. Antoniou, C.; Balakrishna, R.; Koutsopoulos, H.N. A Synthesis of Emerging Data Collection Technologies and Their Impact on Traffic Management Applications. Eur. Transp. Res. Rev. 2011, 3, 139–148. [Google Scholar] [CrossRef]
  57. Yu, H.; Jiang, R.; He, Z.; Zheng, Z.; Li, L.; Liu, R.; Chen, X. Automated Vehicle-Involved Traffic Flow Studies: A Survey of Assumptions, Models, Speculations, and Perspectives. Transp. Res. Part C Emerg. Technol. 2021, 127, 103101. [Google Scholar] [CrossRef]
  58. Razali, N.A.M.; Shamsaimon, N.; Ishak, K.K.; Ramli, S.; Amran, M.F.M.; Sukardi, S. Gap, Techniques and Evaluation: Traffic Flow Prediction Using Machine Learning and Deep Learning. J. Big Data 2021, 8, 152. [Google Scholar] [CrossRef]
  59. Rowan, D.; He, H.; Hui, F.; Yasir, A.; Mohammed, Q. A Systematic Review of Machine Learning-Based Microscopic Traffic Flow Models and Simulations. Commun. Transp. Res. 2025, 5, 100164. [Google Scholar] [CrossRef]
  60. Ogunkan, S.K.; Ogunkan, D.V. Traffic Pattern Recognition Using IoT Sensors and Machine Learning: A Comprehensive Review. Int’l J. Manag. Innov. Syst. 2025, 9, 13. [Google Scholar] [CrossRef]
  61. Casali, Y.; Aydin, N.Y.; Comes, T. Machine Learning for Spatial Analyses in Urban Areas: A Scoping Review. Sustain. Cities Soc. 2022, 85, 104050. [Google Scholar] [CrossRef]
  62. Dritsas, E.; Trigka, M. Exploring the Intersection of Machine Learning and Big Data: A Survey. Mach. Learn. Knowl. Extr. 2025, 7, 13. [Google Scholar] [CrossRef]
  63. Singh, V.; Sahana, S.K.; Bhattacharjee, V. A Novel CNN-GRU-LSTM Based Deep Learning Model for Accurate Traffic Prediction. Discov. Comput. 2025, 28, 38. [Google Scholar] [CrossRef]
  64. Mystakidis, A.; Koukaras, P.; Tjortjis, C. Advances in Traffic Congestion Prediction: An Overview of Emerging Techniques and Methods. Smart Cities 2025, 8, 25. [Google Scholar] [CrossRef]
  65. Govindaraju, S. Intelligent Transportation System’s Machine Learning-Based Traffic Prediction. J. Appl. Data Sci. 2024, 5, 1826–1837. [Google Scholar] [CrossRef]
  66. Elassy, M.; Al-Hattab, M.; Takruri, M.; Badawi, S. Intelligent Transportation Systems for Sustainable Smart Cities. Transp. Eng. 2024, 16, 100252. [Google Scholar] [CrossRef]
  67. Zemmouchi-Ghomari, L. Artificial Intelligence in Intelligent Transportation Systems. J. Intell. Manuf. Spec. Equip. 2025, 6, 26–42. [Google Scholar] [CrossRef]
  68. Yuan, T.; Da Neto, W.R.; Rothenberg, C.E.; Obraczka, K.; Barakat, C.; Turletti, T. Machine Learning for Next-generation Intelligent Transportation Systems: A Survey. Trans. Emerg. Telecommun. Technol. 2022, 33, e4427. [Google Scholar] [CrossRef]
  69. Hassan, M.; Mahin, H.D.; Al Nafees, A.; Paul, A.; Shraban, S.S. Big Data Applications in Intelligent Transport Systems: A Bibliometric Analysis and Review. Discov. Civ. Eng. 2025, 2, 49. [Google Scholar] [CrossRef]
  70. Khalil, R.A.; Safelnasr, Z.; Yemane, N.; Kedir, M.; Shafiqurrahman, A.; SAEED, N. Advanced Learning Technologies for Intelligent Transportation Systems: Prospects and Challenges. IEEE Open J. Veh. Technol. 2024, 5, 397–427. [Google Scholar] [CrossRef]
  71. Mrabet, M.; Sliti, M. Integrating Machine Learning for the Sustainable Development of Smart Cities. Front. Sustain. Cities 2024, 6, 1449404. [Google Scholar] [CrossRef]
  72. Tao, X.; Cheng, L.; Zhang, R.; Chan, W.K.; Chao, H.; Qin, J. Towards Green Innovation in Smart Cities: Leveraging Traffic Flow Prediction with Machine Learning Algorithms for Sustainable Transportation Systems. Sustainability 2023, 16, 251. [Google Scholar] [CrossRef]
  73. Zhu, X.; Yu, H.; Qian, G.; Yao, D.; Dai, W.; Zhang, H.; Li, J.; Zhong, H. Evaluation of Asphalt Mixture Micromechanical Behavior Evolution in the Failure Process Based on Discrete Element Method. Case Stud. Constr. Mater. 2023, 18, e01773. [Google Scholar] [CrossRef]
  74. Wang, X.; Han, S.; Lv, H.; Xie, H.; Zhu, Y. DEM Analysis of the Effect of Geocell on Splitting Tensile Behavior of Asphalt Mixture Based on Multi-Phase Model. Constr. Build. Mater. 2024, 411, 134567. [Google Scholar] [CrossRef]
  75. Abdullah, S.M.; Periyasamy, M.; Kamaludeen, N.A.; Towfek, S.K.; Marappan, R.; Raju, S.K.; Alharbi, A.H.; Khafaga, D.S. Optimizing Traffic Flow in Smart Cities: Soft GRU-Based Recurrent Neural Networks for Enhanced Congestion Prediction Using Deep Learning. Sustainability 2023, 15, 5949. [Google Scholar] [CrossRef]
  76. Rasulmukhamedov, M.; Tashmetov, T.; Tashmetov, K. Forecasting Traffic Flow Using Machine Learning Algorithms. Proc. EEPES 2024, 70, 14. [Google Scholar]
  77. Sanchez-Sepulveda, M.V.; Navarro, J.; Fonseca-Escudero, D.; Amo-Filva, D.; Antunez-Anea, F. Exploiting Urban Data to Address Real-World Challenges: Enhancing Urban Mobility for Environmental and Social Well-Being. Cities 2024, 153, 105275. [Google Scholar] [CrossRef]
  78. Bibri, S.E. Data-Driven Smart Sustainable Cities of the Future: An Evidence Synthesis Approach to a Comprehensive State-of-the-Art Literature Review. Sustain. Futures 2021, 3, 100047. [Google Scholar] [CrossRef]
  79. Sanchez-Sepulveda, M.V.; Navarro, J.; Amo-Filva, D.; Fonseca, D.; Antúnez-Anea, F.; Barranco-Albalat, A. A Data-Driven Approach to Enhance Urban Infrastructure for Sustainable Mobility and Improved Quality of Life in Highly Populated Cities. Case Study: Barcelona. Front. Built. Env. 2024, 10, 1439700. [Google Scholar] [CrossRef]
  80. Mohsen, B.M. AI-Driven Optimization of Urban Logistics in Smart Cities: Integrating Autonomous Vehicles and IoT for Efficient Delivery Systems. Sustainability 2024, 16, 11265. [Google Scholar] [CrossRef]
  81. Elefteriadou, L. An Introduction to Traffic Flow Theory; Springer: New York, NY, USA, 2014; Volume 84, ISBN 978-1-4614-8434-9. [Google Scholar]
  82. Ren, Q.; He, J.; Liu, Z.; Xu, M. Traffic Flow Characteristics and Traffic Conflict Analysis in the Downstream Area of Expressway Toll Station Based on Vehicle Trajectory Data. Asian Transp. Stud. 2024, 10, 100138. [Google Scholar] [CrossRef]
  83. Al-Turki, M.; Ratrout, N.T.; Rahman, S.M.; Reza, I. Impacts of Autonomous Vehicles on Traffic Flow Characteristics under Mixed Traffic Environment: Future Perspectives. Sustainability 2021, 13, 11052. [Google Scholar] [CrossRef]
  84. Kerner, B.S. Three-Phase Traffic Theory and Highway Capacity. Phys. A Stat. Mech. Its Appl. 2004, 333, 379–440. [Google Scholar] [CrossRef]
  85. Wu, Y.; He, X. Using the Automated Random Forest Approach for Obtaining the Compressive Strength Prediction of RCA. Multiscale Multidiscip. Model. Exp. Des. 2024, 7, 855–867. [Google Scholar] [CrossRef]
  86. Choudhary, A.; Gokhale, S.; Kumar, P.; Pradhan, C.; Sahu, S.K. Urban Traffic Congestion: Its Causes-Consequences-Mitigation. Res. J. Chem. Env. 2022, 26, 164–176. [Google Scholar] [CrossRef]
  87. Udo, I.U.; Ndarake, U.I.; Udeme, U.U.; Julius, E. Challenges on the Exposition of Traffic Signs and Symbols to Lagos State Road Users. Int. J. Innov. Res. Adv. Eng. 2021, 8, 239–250. [Google Scholar] [CrossRef]
  88. Dong, S.; Zhang, H.; Li, S.; Jia, N.; He, N. A Study on Urban Traffic Congestion Pressure Based on CFD. Sustainability 2024, 16, 10911. [Google Scholar] [CrossRef]
  89. Zheng, P.; Mike, M. An Investigation on the Manual Traffic Count Accuracy. Procedia Soc. Behav. Sci. 2012, 43, 226–231. [Google Scholar] [CrossRef]
  90. Ulvi, H.; Yerlikaya, M.A.; Yildiz, K. Urban Traffic Mobility Optimization Model: A Novel Mathematical Approach for Predictive Urban Traffic Analysis. Appl. Sci. 2024, 14, 5873. [Google Scholar] [CrossRef]
  91. Sarker, T.; Meng, X. Traffic Signal Recognition Using End-to-End Deep Learning. In Proceedings of the Tran-SET 2022, San Antonio, TX, USA, 31 August–2 September 2022; American Society of Civil Engineers: Reston, VA, USA, 2022; pp. 182–191. [Google Scholar]
  92. Soori, M.; Arezoo, B.; Dastres, R. Artificial Intelligence, Machine Learning and Deep Learning in Advanced Robotics, a Review. Cogn. Robot. 2023, 3, 54–70. [Google Scholar] [CrossRef]
  93. Bhartiya, P.; Bhatele, M.; Waoo, A.A. A MACHINE LEARNING APPROACH FOR PREDICTIVE ANALYSIS OF TRAFFIC FLOW. ShodhKosh J. Vis. Perform. Arts 2024, 5, 422–430. [Google Scholar] [CrossRef]
  94. Shaygan, M.; Meese, C.; Li, W.; Zhao, X.; Nejad, M. Traffic Prediction Using Artificial Intelligence: Review of Recent Advances and Emerging Opportunities. Transp. Res. Part C Emerg. Technol. 2022, 145, 103921. [Google Scholar] [CrossRef]
  95. Toan, T.D.; Truong, V.-H. Support Vector Machine for Short-Term Traffic Flow Prediction and Improvement of Its Model Training Using Nearest Neighbor Approach. Transp. Res. Rec. J. Transp. Res. Board 2021, 2675, 362–373. [Google Scholar] [CrossRef]
  96. Al-refai, G.; Al-refai, M.; Alzu’bi, A. Driving Style and Traffic Prediction with Artificial Neural Networks Using On-Board Diagnostics and Smartphone Sensors. Appl. Sci. 2024, 14, 5008. [Google Scholar] [CrossRef]
  97. Ahmed, M.; Zhang, X.; Shen, Y.; Ahmed, T.; Ali, S.; Ali, A.; Gulakhmadov, A.; Nam, W.-H.; Chen, N. Low-Cost Video-Based Air Quality Estimation System Using Structured Deep Learning with Selective State Space Modeling. Environ. Int 2025, 199, 109496. [Google Scholar] [CrossRef]
  98. Zhao, Y.; Yang, Y.; Wen, X. A Study on Predicting Traffic Flow by Random Forest Based on Treatment of Eliminating Skewed Distribution. Highlights Sci. Eng. Technol. 2024, 115, 97–106. [Google Scholar] [CrossRef]
  99. Liu, Y.; Wu, H. Prediction of Road Traffic Congestion Based on Random Forest. In Proceedings of the IEEE 2017 10th International Symposium on Computational Intelligence and Design (ISCID), Hangzhou, China, 9–10 December 2017; pp. 361–364. [Google Scholar]
  100. Mądziel, M. Predictive Methods for CO2 Emissions and Energy Use in Vehicles at Intersections. Sci. Rep. 2025, 15, 6463. [Google Scholar] [CrossRef]
  101. Rajha, R.; Shiode, S.; Shiode, N. Improving Traffic-Flow Prediction Using Proximity to Urban Features and Public Space. Sustainability 2024, 17, 68. [Google Scholar] [CrossRef]
  102. Kashyap, A.A.; Raviraj, S.; Devarakonda, A.; Nayak K, S.R.; KV, S.; Bhat, S.J. Traffic Flow Prediction Models—A Review of Deep Learning Techniques. Cogent Eng. 2022, 9, 2010510. [Google Scholar] [CrossRef]
  103. Yan, M.; Shen, Y. Traffic Accident Severity Prediction Based on Random Forest. Sustainability 2022, 14, 1729. [Google Scholar] [CrossRef]
  104. Qiu, J.; Zhao, Y. Traffic Prediction with Data Fusion and Machine Learning. Analytics 2025, 4, 12. [Google Scholar] [CrossRef]
  105. Phapale, A.; Shravagi, S. Traffic Flow Prediction on Road Using Machine Learning. Int. J. Appl. Adv. Multidiscip. Res. 2024, 2, 31–38. [Google Scholar] [CrossRef]
  106. Abduljabbar, R.; Dia, H.; Liyanage, S. Machine Learning Models for Traffic Prediction on Arterial Roads Using Traffic Features and Weather Information. Appl. Sci. 2024, 14, 11047. [Google Scholar] [CrossRef]
  107. Gheorghe, C.; Soica, A. Revolutionizing Urban Mobility: A Systematic Review of AI, IoT, and Predictive Analytics in Adaptive Traffic Control Systems for Road Networks. Electronics 2025, 14, 719. [Google Scholar] [CrossRef]
  108. Kayisu, A.K.; Mikusova, M.; Bokoro, P.N.; Kyamakya, K. Exploring Smart Mobility Potential in Kinshasa (DR-Congo) as a Contribution to Mastering Traffic Congestion and Improving Road Safety: A Comprehensive Feasibility Assessment. Sustainability 2024, 16, 9371. [Google Scholar] [CrossRef]
  109. Deng, S. Research on Traffic Prediction Based on Machine Learning. Appl. Comput. Eng. 2025, 135, 195–203. [Google Scholar] [CrossRef]
  110. Xiong, J.; Xu, L.; Wei, Z.; Wu, P.; Li, Q.; Pei, M. Identifying, Analyzing, and Forecasting Commuting Patterns in Urban Public Transportation: A Review. Expert Syst. Appl. 2024, 249, 123646. [Google Scholar] [CrossRef]
  111. Zhong, C.; Wu, P.; Zhang, Q.; Ma, Z. Online Prediction of Network-Level Public Transport Demand Based on Principle Component Analysis. Commun. Transp. Res. 2023, 3, 100093. [Google Scholar] [CrossRef]
  112. Jovanović, B.; Shabanaj, K.; Ševrović, M. Conceptual Model for Determining the Statistical Significance of Predictive Indicators for Bus Transit Demand Forecasting. Sustainability 2022, 15, 749. [Google Scholar] [CrossRef]
  113. Gilani, S.A.U.; Al-Rajab, M.; Bakka, M. Challenges and Opportunities in Traffic Flow Prediction: Review of Machine Learning and Deep Learning Perspectives. Data Metadata 2024, 3, 378. [Google Scholar] [CrossRef]
  114. Otković, I.I.; Deluka-Tibljaš, A.; Šurdonja, S. Validation of the Calibration Methodology of the Micro-Simulation Traffic Model. Transp. Res. Procedia 2020, 45, 684–691. [Google Scholar] [CrossRef]
  115. Hammoumi, L.; Farah, S.; Benayad, M.; Maanan, M.; Rhinane, H. Leveraging Machine Learning to Predict Traffic Jams: Case Study of Casablanca, Morocco. J. Urban Manag. 2025, In Press, Corrected Proof. [Google Scholar] [CrossRef]
  116. Ulu, M.; Kilic, E.; Türkan, Y.S. Prediction of Traffic Incident Locations with a Geohash-Based Model Using Machine Learning Algorithms. Appl. Sci. 2024, 14, 725. [Google Scholar] [CrossRef]
  117. Munappy, A.R.; Bosch, J.; Olsson, H.H.; Arpteg, A.; Brinne, B. Data Management for Production Quality Deep Learning Models: Challenges and Solutions. J. Syst. Softw. 2022, 191, 111359. [Google Scholar] [CrossRef]
  118. Ali, Y.; Hussain, F.; Haque, M.M. Advances, Challenges, and Future Research Needs in Machine Learning-Based Crash Prediction Models: A Systematic Review. Accid. Anal. Prev. 2024, 194, 107378. [Google Scholar] [CrossRef] [PubMed]
  119. Ismaeel, A.G.; Janardhanan, K.; Sankar, M.; Natarajan, Y.; Mahmood, S.N.; Alani, S.; Shather, A.H. Traffic Pattern Classification in Smart Cities Using Deep Recurrent Neural Network. Sustainability 2023, 15, 14522. [Google Scholar] [CrossRef]
  120. Betkier, I.; Oszczypała, M. A Novel Approach to Traffic Modelling Based on Road Parameters, Weather Conditions and GPS Data Using Feedforward Neural Networks. Expert. Syst. Appl. 2024, 245, 123067. [Google Scholar] [CrossRef]
  121. Barbierato, E.; Gatti, A. The Challenges of Machine Learning: A Critical Review. Electronics 2024, 13, 416. [Google Scholar] [CrossRef]
  122. Lones, M.A. Avoiding Common Machine Learning Pitfalls. Patterns 2024, 5, 101046. [Google Scholar] [CrossRef]
  123. Taye, M.M. Understanding of Machine Learning with Deep Learning: Architectures, Workflow, Applications and Future Directions. Computers 2023, 12, 91. [Google Scholar] [CrossRef]
  124. Mienye, I.D.; Sun, Y.; Ileberi, E. Artificial Intelligence and Sustainable Development in Africa: A Comprehensive Review. Mach. Learn. Appl. 2024, 18, 100591. [Google Scholar] [CrossRef]
  125. Tekouabou, S.C.K.; Diop, E.B.; Azmi, R.; Jaligot, R.; Chenal, J. Reviewing the Application of Machine Learning Methods to Model Urban Form Indicators in Planning Decision Support Systems: Potential, Issues and Challenges. J. King Saud Univ. Comput. Inf. Sci. 2022, 34, 5943–5967. [Google Scholar] [CrossRef]
  126. Ezugwu, A.E.; Oyelade, O.N.; Ikotun, A.M.; Agushaka, J.O.; Ho, Y.-S. Machine Learning Research Trends in Africa: A 30 Years Overview with Bibliometric Analysis Review. Arch. Comput. Methods Eng. 2023, 30, 4177–4207. [Google Scholar] [CrossRef]
  127. Ofoezie, E.I.; Eludoyin, A.O.; Udeh, E.B.; Onanuga, M.Y.; Salami, O.O.; Adebayo, A.A. Climate, Urbanization and Environmental Pollution in West Africa. Sustainability 2022, 14, 15602. [Google Scholar] [CrossRef]
  128. Akhtar, M.; Moridpour, S. A Review of Traffic Congestion Prediction Using Artificial Intelligence. J. Adv. Transp. 2021, 2021, 8878011. [Google Scholar] [CrossRef]
  129. Majumder, M.; Wilmot, C. Automated Vehicle Counting from Pre-Recorded Video Using You Only Look Once (YOLO) Object Detection Model. J. Imaging 2023, 9, 131. [Google Scholar] [CrossRef]
  130. Jakubec, M.; Cingel, M.; Lieskovská, E.; Drliciak, M. Integrating Neural Networks for Automated Video Analysis of Traffic Flow Routing and Composition at Intersections. Sustainability 2025, 17, 2150. [Google Scholar] [CrossRef]
  131. Sarker, I.H. Machine Learning: Algorithms, Real-World Applications and Research Directions. SN Comput. Sci. 2021, 2, 160. [Google Scholar] [CrossRef]
  132. Algren, M.; Fisher, W.; Landis, A.E. Machine Learning in Life Cycle Assessment. In Data Science Applied to Sustainability Analysis; Elsevier: Amsterdam, The Netherlands, 2021; pp. 167–190. [Google Scholar]
  133. Bagui, S.; Fang, X.; Kalaimannan, E.; Bagui, S.C.; Sheehan, J. Comparison of Machine-Learning Algorithms for Classification of VPN Network Traffic Flow Using Time-Related Features. J. Cyber Secur. Technol. 2017, 1, 108–126. [Google Scholar] [CrossRef]
  134. Gomes, B.; Coelho, J.; Aidos, H. A Survey on Traffic Flow Prediction and Classification. Intell. Syst. Appl. 2023, 20, 200268. [Google Scholar] [CrossRef]
  135. Cao, J.; Wang, D.; Qu, Z.; Sun, H.; Li, B.; Chen, C.-L. An Improved Network Traffic Classification Model Based on a Support Vector Machine. Symmetry 2020, 12, 301. [Google Scholar] [CrossRef]
  136. Friedman, J.H. Stochastic Gradient Boosting. Comput. Stat. Data. Anal. 2002, 38, 367–378. [Google Scholar] [CrossRef]
  137. Breiman, L.; Cutler, A.; Liaw, A.; Wiener, M. RandomForest: Breiman and Cutlers Random Forests for Classification and Regression. In CRAN: Contributed Packages 2002; Vienna University of Economics: Vienna, Austria, 2022. [Google Scholar]
  138. Song, Y.-Y.; Lu, Y. Decision Tree Methods: Applications for Classification and Prediction. Shanghai Arch. Psychiatry 2015, 27, 130–135. [Google Scholar] [CrossRef] [PubMed]
  139. Chala, A.T.; Ray, R. Assessing the Performance of Machine Learning Algorithms for Soil Classification Using Cone Penetration Test Data. Appl. Sci. 2023, 13, 5758. [Google Scholar] [CrossRef]
  140. Chala, A.T.; Ray, R.P. Machine Learning Techniques for Soil Characterization Using Cone Penetration Test Data. Appl. Sci. 2023, 13, 8286. [Google Scholar] [CrossRef]
  141. Mahdavian, A.; Shojaei, A.; Salem, M.; Laman, H.; Yuan, J.S.; Oloufa, A. Automated Machine Learning Pipeline for Traffic Count Prediction. Modelling 2021, 2, 482–513. [Google Scholar] [CrossRef]
  142. Ali, Y.; Awwad, E.; Al-Razgan, M.; Maarouf, A. Hyperparameter Search for Machine Learning Algorithms for Optimizing the Computational Complexity. Processes 2023, 11, 349. [Google Scholar] [CrossRef]
  143. Wu, P.; Zhang, Z.; Peng, X.; Wang, R. Deep Learning Solutions for Smart City Challenges in Urban Development. Sci. Rep. 2024, 14, 5176. [Google Scholar] [CrossRef]
Figure 1. Flow chart on the analysis and prediction of traffic.
Figure 1. Flow chart on the analysis and prediction of traffic.
Infrastructures 10 00122 g001
Figure 2. Flow diagram illustrating dataset preprocessing and machine learning model architecture.
Figure 2. Flow diagram illustrating dataset preprocessing and machine learning model architecture.
Infrastructures 10 00122 g002
Figure 3. Confidence and prediction band in relationship with the traffic volume of vehicle.
Figure 3. Confidence and prediction band in relationship with the traffic volume of vehicle.
Infrastructures 10 00122 g003
Figure 4. Total traffic count by day and vehicle.
Figure 4. Total traffic count by day and vehicle.
Infrastructures 10 00122 g004
Figure 5. Average traffic count by day and vehicle.
Figure 5. Average traffic count by day and vehicle.
Infrastructures 10 00122 g005
Figure 6. Total and average matrix correlation for traffic flow.
Figure 6. Total and average matrix correlation for traffic flow.
Infrastructures 10 00122 g006
Figure 7. Model performance cross-validation.
Figure 7. Model performance cross-validation.
Infrastructures 10 00122 g007
Table 1. Traffic volume for each day of the week.
Table 1. Traffic volume for each day of the week.
DayTotal Flow (Veh/day)Average Flow (Veh/day)
Monday5582465.17
Tuesday5372447.67
Wednesday4739394.92
Thursday4996416.33
Friday5239436.58
Saturday3083256.92
Sunday3832319.33
Table 2. Total traffic flow per hour.
Table 2. Total traffic flow per hour.
TimeCar TotalJeeps TotalTrucks TotalBuses TotalTricycles TotalBicycles Total
6:00225811413427021112
7:002271590234551747
8:0011452681726618712
9:001173276153132696
10:007331541518629410
11:004381751230918715
12:00471234242621959
13:0045924191601686
14:0012452951019716613
15:001863450232321705
16:002730721194311959
17:0034455551432116710
18:00225811413427021112
19:002271590234551747
20:0011452681726618712
21:001173276153132696
22:007331541518629410
23:004381751230918715
0:00471234242621959
1:0045924191601686
2:0012452951019716613
3:001863450232321705
4:002730721194311959
5:0034455551432116710
Table 3. Total traffic flow and average traffic flow per hour.
Table 3. Total traffic flow and average traffic flow per hour.
TimeCar TotalCars AverageJeeps TotalJeeps AverageTrucks TotalTrucks AverageBuses TotalBuses AverageTricycles TotalTricycles AverageBicycles TotalBicycle Average
6:002258322.571141163344.8627038.5721130.14121.71
7:002271324.4359084.29233.294556517424.8671
8:001145163.5726838.29172.432663818726.71121.71
9:001173167.5727639.43152.1431344.7126938.4360.86
10:00733104.7115422152.1418626.5729442101.43
11:0043862.5717525121.7130944.1418726.71152.14
12:0047167.2923433.43243.4326237.4319527.8691.29
13:0045965.5724134.4391.2916022.861682460.86
14:001245177.8629542.14101.4319728.1416623.71131.86
15:001863266.1445064.29233.2923233.1417024.2950.71
16:002730390721103192.7143161.5719527.8691.29
17:003445492.1455579.2914232145.8616723.86101.43
18:002258322.571141163344.8627038.5721130.14121.71
19:002271324.4359084.29233.294556517424.8671
20:001145163.5726838.29172.432663818726.71121.71
21:001173167.5727639.43152.1431344.7126938.4360.86
22:00733104.7115422152.1418626.5729442101.43
23:0043862.5717525121.7130944.1418726.71152.14
0:0047167.2923433.43243.4326237.4319527.8691.29
1:0045965.5724134.4391.2916022.861682460.86
2:001245177.8629542.14101.4319728.1416623.71131.86
3:001863266.1445064.29233.2923233.1417024.2950.71
4:002730390721103192.7143161.5719527.8691.29
5:003445492.1455579.2914232145.8616723.86101.43
Table 4. Correlation analysis results.
Table 4. Correlation analysis results.
VariablesCorrelation
Time of day and traffic volume0.1048
Table 5. Model performance cross-validation results.
Table 5. Model performance cross-validation results.
ModelCross-Validation ScoreTest Accuracy
Decision Tree Classifier0.8810.88
Gradient Boosting Classifier0.9250.88
Random Forest Classifier0.8941.00
Table 6. Decision tree classifier.
Table 6. Decision tree classifier.
ClassPrecisionRecallF1-Score
High1.001.001.00
Low0.800.800.80
Medium0.670.670.67
Average/Total0.880.880.88
Table 7. Gradient boosting classifier.
Table 7. Gradient boosting classifier.
ClassPrecisionRecallF1-Score
High1.001.001.00
Low0.800.800.80
Medium0.670.670.67
Average/Total0.880.880.88
Table 8. Random forest classifier.
Table 8. Random forest classifier.
ClassPrecisionRecallF1-Score
High1.001.001.00
Low1.001.001.00
Medium1.001.001.00
Average/Total1.001.001.00
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

Imoh, U.U.; Rad, M.M. Analysis and Prediction of Traffic Conditions Using Machine Learning Models on Ikorodu Road in Lagos State, Nigeria. Infrastructures 2025, 10, 122. https://doi.org/10.3390/infrastructures10050122

AMA Style

Imoh UU, Rad MM. Analysis and Prediction of Traffic Conditions Using Machine Learning Models on Ikorodu Road in Lagos State, Nigeria. Infrastructures. 2025; 10(5):122. https://doi.org/10.3390/infrastructures10050122

Chicago/Turabian Style

Imoh, Udeme Udo, and Majid Movahedi Rad. 2025. "Analysis and Prediction of Traffic Conditions Using Machine Learning Models on Ikorodu Road in Lagos State, Nigeria" Infrastructures 10, no. 5: 122. https://doi.org/10.3390/infrastructures10050122

APA Style

Imoh, U. U., & Rad, M. M. (2025). Analysis and Prediction of Traffic Conditions Using Machine Learning Models on Ikorodu Road in Lagos State, Nigeria. Infrastructures, 10(5), 122. https://doi.org/10.3390/infrastructures10050122

Article Metrics

Back to TopTop