Submitted:
06 January 2025
Posted:
07 January 2025
Read the latest preprint version here
Abstract
Keywords:
1. Introduction
1.0.0.1. Novelty and contributions of the research:
2. Literature Review
2.0.0.2. Analysis of Comparative Studies:
3. Dataset Description
3.1. Origin of the Dataset
3.2. Data Description
- Number: The number of vehicles in a group (cluster);
- Direction: Direction taken by the vehicle (14 possible directions, numbered 1 to 14);
- Second: The time of collection in seconds, extracted from the Date column;
- Type: Type of vehicle (Normal, Bus, Tram);
- Weekday: Day of the week;
- Day: Day of the month;
- Temperature: Ambient temperature (e.g., 61°F);
- Humidity: Humidity level;
- Hour: Hour of the day;
- IsWeekend: Attribute indicating whether it is a weekend day;
- Atmospheric pressure (e.g., 29.71 in);
- Wind Speed: Wind gusts speed;
- Month: Month of the year.
4. Methodology
4.1. Development Environment
4.2. Data Preprocessing
4.2.1. Temporal Data Consolidation
4.2.2. Weather-Related Attributes Conversion
4.2.3. Direction Encoding
4.2.4. Conversion of Wind Directions to Degrees
4.2.5. Encoding Categorical Variables
- Normal vehicles were assigned a value of 0;
- Buses were encoded as 1, trams as 2, and bikes as 3.
4.3. Handling Missing Values
4.4. Feature Engineering
- Weekday: Day of the week, represented numerically (0–6);
- Day: Day of the year;
- Month: Month of the year;
- Year: Year of the observation;
- IsWeekend: Binary indicator for weekends, where 1 represents a weekend, and 0 represents a weekday;
- Hour, Minute, and Second: Extracted to provide finer temporal granularity.
4.5. Assigning Congestion Levels
4.6. Dual Importance Intersection Feature Selection (DIFS)
- RF evaluates the importance of each feature by measuring its contribution to reducing uncertainty within a decision tree model. This makes it well suited for capturing nonlinear relationships between features and the target variable;
- evaluates the statistical relationship between each feature and the target variable and prioritizes features that have strong relationships based on categorical data analysis.
4.6.0.1. Advantages of DIFS:
- Robustness: By using two distinct criteria—model contribution and statistical association—DIFS minimizes the risk of over-reliance on a single selection method, ensuring more reliable feature selection;
- Redundancy Reduction: By focusing on the intersection of the two methods, DIFS eliminates redundant or uninformative features, resulting in a leaner feature set that improves model performance and reduces overfitting;
- Improved Interpretability: The selected features are both statistically significant and impactful to the model, improving the interpretability of the resulting predictive model;
- Adaptability: DIFS can be customized to integrate other feature selection techniques, providing the flexibility to test different combinations of algorithms for various datasets and modeling needs.
4.7. Data Balancing Using SMOTE
4.8. Exploratory Data Analysis
4.8.1. Relationship Between Vehicle Count and Congestion Level
- Low and Medium Congestion Levels: For congestion levels categorized as Low and Medium, the number of vehicles is consistently low, predominantly concentrated around 1 or 2. This indicates that minimal vehicular presence corresponds to these lower congestion levels;
- High Congestion Level: For the High congestion level, the distribution of vehicle counts is much broader. The number of vehicles ranges significantly, with the density peak observed around 5. The spread and height of the distribution suggest that a larger number of vehicles is a key indicator of high congestion;
- Distribution Shape: The sharp increase in density for High congestion at lower vehicle counts, coupled with a long tail extending to higher counts, reflects the variability in vehicular presence during high congestion scenarios. This highlights the importance of accounting for such variability in predictive modeling.
4.8.2. Hourly Traffic Patterns
- Morning Traffic (8 AM - 10 AM): The number of congestion incidents steadily increases from 1,731 at 8 AM to 2,005 at 10 AM. This trend indicates increasing traffic flow during the morning rush hours, with a notable proportion of High and Medium severity levels;
- Afternoon Traffic (3 PM - 6 PM): Congestion incidents peak between 4 PM and 5 PM, reaching a maximum of 2,543 at 5 PM. This reflects the typical evening rush hour, where high congestion levels dominate, suggesting significant delays and traffic buildup;
- Severity Proportions: Throughout the day, Low congestion levels (green) form the main proportion of incidents, followed by Medium (yellow) and High (red). However, during peak hours, the proportion of High severity levels increases significantly, highlighting critical traffic management challenges.
4.8.3. Day of the Week vs. Congestion Level
-
Higher Congestion on Weekdays:
- -
- Congestion incidents are notably higher from Monday to Thursday, with Tuesday and Wednesday showing the peak total congestion levels at 2,508 and 2,491 incidents, respectively;
- -
- Low Congestion (green) dominates, followed by Medium (yellow) and High (red) congestion levels. The presence of High Congestion highlights the impact of weekday commuting patterns.
-
Reduced Congestion on Weekends:
- -
- A significant reduction in congestion incidents is observed on Saturday and Sunday, with totals dropping to 1,670 and 1,721 incidents, respectively. This aligns with lower traffic volumes typically associated with weekends;
- -
- Low congestion incidents continue to occur most frequently on these days, while high congestion incidents occur less frequently compared to weekdays.
-
Transition on Friday:
- -
- Friday marks a transition between the high congestion levels of weekdays and the lower congestion of weekends, with 1,973 total incidents. This reflects the changing traffic dynamics as work-related commuting gives way to leisure and weekend activities.
4.8.4. Direction of Vehicles vs. Congestion Level
-
Dominant Congestion Directions:
- -
- Directions 6 and 13 account for the highest number of congestion incidents, with totals of 6,242 and 5,792, respectively. These directions exhibit a substantial proportion of High Congestion (red) and Medium Congestion (yellow), indicating their critical role in overall traffic congestion at the intersection;
- -
- This dominance suggests that these directions may correspond to main traffic inflow or outflow routes.
-
Lower Congestion in Other Directions:
- -
- Directions 2, 9, 10, 11, and 12 have significantly fewer incidents, with totals ranging between 13 and 207. These directions show predominantly Low Congestion (green), implying less frequent or less severe traffic issues.
-
Intermediate Congestion Levels:
- -
- Directions such as 1, 3, 5, 7, and 8 show moderate numbers of congestion incidents, with a mix of Low and Medium congestion levels. This pattern may reflect secondary traffic routes or turning lanes with moderate traffic density.
-
Traffic Dynamics at Intersections:
- -
- The evident disparity in congestion levels across directions suggests directional bias in traffic flow, likely influenced by factors such as road hierarchy, intersection design, or traffic signal timing.
4.8.5. Monthly Traffic Trends
-
Peak Congestion in May and July:
- -
- May records the highest total number of congestion incidents at 5,828, closely followed by July with 5,242 incidents. These months are dominated by Low Congestion (green), but both show a notable proportion of Medium (yellow) and High Congestion (red) levels. The high traffic volumes during these months may correspond to seasonal patterns or increased travel activity.
-
Drop in June and August:
- -
- June and August exhibit significantly lower congestion levels, with 2,492 and 1,460 total incidents, respectively. These months have smaller proportions of High Congestion incidents, indicating relatively smoother traffic flow during this period.
-
Severity Distribution:
- -
- Across all months, Low Congestion levels form the majority, followed by Medium and High Congestion. However, the share of High Congestion is more prominent in May and July, emphasizing the challenges of managing traffic during these peak months.
-
Temporal Variations:
- -
- The sharp contrast between months with high congestion (May and July) and those with lower congestion (June and August) highlights the importance of incorporating Month as a feature in predictive modeling. Understanding such temporal trends can significantly improve the model’s ability to anticipate congestion levels.
Keys Factors Influencing Congestion Level at the Intersection:
- Number of Vehicles: A strong correlation is observed between the number of vehicles and congestion severity, with higher vehicle counts associated with high congestion levels.
- Time of Day: Morning and evening rush hours significantly impact congestion levels, particularly during peak times (8-10 AM and 4-6 PM).
- Day of the Week: Weekdays experience higher congestion levels compared to weekends, driven by weekday commuting patterns.
- Direction of Vehicles: Traffic flow patterns, particularly from dominant directions such as 6 and 13, heavily influence congestion.
- Monthly Variations: Seasonal changes and monthly variations, as observed in May and July, highlight the importance of accounting for temporal trends in predictive modeling.
4.9. Development of the Predictive Model
5. Results and Discussion
5.1. Results
5.2. Discussion
6. Conclusions and Future Research
- Geographic Scalability: Extending the predictive framework to diverse urban environments, including intersections with varying traffic patterns and road configurations, can validate its generalizability and adaptability.
- Enhanced Feature Engineering: Exploring additional predictive features, such as traffic incidents, weather anomalies, or pedestrian flow, could refine model performance and offer deeper insights into congestion causality.
- Interactive Decision Support Systems: Developing user-friendly interfaces for traffic management authorities, integrating real-time predictions, and visualizing congestion hotspots can facilitate proactive decision-making and resource allocation.
- Integration with Emission Control Strategies: Combining congestion prediction with models for estimating vehicular emissions can enable comprehensive approaches to mitigating traffic delays and environmental impacts.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- World Health Organization. Ambient (outdoor) air pollution. https://www.who.int/news-room/fact-sheets/detail/ambient-(outdoor)-air-quality-and-health, 2024. Accessed: 2024-12-10.
- Minderytė, A.; Pauraite, J.; Dudoitis, V.; Plauškaitė, K.; Kilikevičius, A.; Matijošius, J.; Rimkus, A.; Kilikevičienė, K.; Vainorius, D.; Byčenkienė, S. Carbonaceous aerosol source apportionment and assessment of transport-related pollution. Atmospheric Environment 2022, 279, 119043. [Google Scholar] [CrossRef]
- Li, J.; Wang, C.; Abdoli, S.; Yuen, A.C.; Kook, S.; Yeoh, G.H.; Chan, Q.N. Economic burden of transport related pollution in Australia. Journal of Transport & Health 2024, 34, 101747. [Google Scholar]
- Bajwa, A.U.; Sheikh, H.A. Contribution of road transport to Pakistan’s air pollution in the urban environment. Air 2023, 1, 237–257. [Google Scholar] [CrossRef]
- Pietrzak, K.; Pietrzak, O. Environmental effects of electromobility in a sustainable urban public transport. Sustainability 2020, 12, 1052. [Google Scholar] [CrossRef]
- Balta, M.; Özcelik, I. Traffic signaling optimization for intelligent and green transportation in smart cities. In Proceedings of the 2018 3rd International conference on computer science and engineering (UBMK). IEEE; 2018; pp. 31–35. [Google Scholar]
- Shahid, N.; Shah, M.A.; Khan, A.; Maple, C.; Jeon, G. Towards greener smart cities and road traffic forecasting using air pollution data. Sustainable Cities and Society 2021, 72, 103062. [Google Scholar] [CrossRef]
- Zhong, H.; Chen, K.; Liu, C.; Zhu, M.; Ke, R. Models for predicting vehicle emissions: A comprehensive review. Science of the Total Environment, 2024; 171324. [Google Scholar]
- Yang, J.; Han, S.; Chen, Y. Prediction of traffic accident severity based on random forest. Journal of Advanced Transportation 2023, 2023, 7641472. [Google Scholar] [CrossRef]
- Zhong, W.; Du, L. Predicting Traffic Casualties Using Support Vector Machines with Heuristic Algorithms: A Study Based on Collision Data of Urban Roads. Sustainability 2023, 15, 2944. [Google Scholar] [CrossRef]
- Muktar, B.; Fono, V. Toward Safer Roads: Predicting the Severity of Traffic Accidents in Montreal Using Machine Learning. Electronics 2024, 13, 3036. [Google Scholar] [CrossRef]
- Nematichari, A.; Pechlivanoglou, T.; Papagelis, M. Evaluating and forecasting the operational performance of road intersections. In Proceedings of the Proceedings of the 30th International Conference on Advances in Geographic Information Systems, 2022; pp. 1–12.
- Qin, K.; Xu, Y.; Kang, C.; Kwan, M.P. A graph convolutional network model for evaluating potential congestion spots based on local urban built environments. Transactions in GIS 2020, 24, 1382–1401. [Google Scholar] [CrossRef]
- Olayode, I.O.; Tartibu, L.K.; Alex, F.J. Comparative study analysis of ANFIS and ANFIS-GA models on flow of vehicles at road Intersections. Applied Sciences 2023, 13, 744. [Google Scholar] [CrossRef]
- Moumen, I.; Mahdaoui, R.; Raji, F.Z.; Rafalia, N.; Abouchabaka, J. Distributed Multi-Intersection Traffic Flow Prediction using Deep Learning. In Proceedings of the E3S Web of Conferences. EDP Sciences, Vol. 477; 2024; p. 00049. [Google Scholar]
- Katambire, V.N.; Musabe, R.; Uwitonze, A.; Mukanyiligira, D. Forecasting the Traffic Flow by Using ARIMA and LSTM Models: Case of Muhima Junction. Forecasting 2023, 5, 616–628. [Google Scholar] [CrossRef]
- Mirzahossein, H.; Gholampour, I.; Sajadi, S.R.; Zamani, A.H. A hybrid deep and machine learning model for short-term traffic volume forecasting of adjacent intersections. IET Intelligent Transport Systems 2022, 16, 1648–1663. [Google Scholar] [CrossRef]
- Chahal, A.; Gulia, P.; Gill, N.S.; Priyadarshini, I. A hybrid univariate traffic congestion prediction model for IOT-enabled smart city. Information 2023, 14, 268. [Google Scholar] [CrossRef]
- CHAOURA, C.; LAZAR, H.; JARIR, Z. Traffic Flow Prediction at Intersections: Enhancing with a Hybrid LSTM-PSO Approach. International Journal of Advanced Computer Science & Applications 2024, 15. [Google Scholar]
- Wang, J.; Duan, X.; Wang, P.; Qiu, A.G.; Chen, Z. Predicting urban signal-controlled intersection congestion events using spatio-temporal neural point process. International Journal of Digital Earth 2024, 17, 2376270. [Google Scholar] [CrossRef]
- Gwalani, A.; Pai, A.; Padalia, A.; Bhavathankar, P.; Devadkar, K. Prediction and Management of Traffic Congestion in Urban Environments. In Proceedings of the 2024 15th International Conference on Computing Communication and Networking Technologies (ICCCNT). IEEE; 2024; pp. 1–6. [Google Scholar]
- AlKheder, S.; Alkhamees, W.; Almutairi, R.; Alkhedher, M. Bayesian combined neural network for traffic volume short-term forecasting at adjacent intersections. Neural Computing and Applications 2021, 33, 1785–1836. [Google Scholar] [CrossRef]
- Navarro-Espinoza, A.; López-Bonilla, O.R.; García-Guerrero, E.E.; Tlelo-Cuautle, E.; López-Mancilla, D.; Hernández-Mejía, C.; Inzunza-González, E. Traffic flow prediction for smart traffic lights using machine learning algorithms. Technologies 2022, 10, 5. [Google Scholar] [CrossRef]
- Giraka, O.; Selvaraj, V.K. Short-term prediction of intersection turning volume using seasonal ARIMA model. Transportation letters 2020, 12, 483–490. [Google Scholar] [CrossRef]
- Qu, W.; Li, J.; Yang, L.; Li, D.; Liu, S.; Zhao, Q.; Qi, Y. Short-term intersection traffic flow forecasting. Sustainability 2020, 12, 8158. [Google Scholar] [CrossRef]
- Tsalikidis, N.; Mystakidis, A.; Koukaras, P.; Ivaškevičius, M.; Morkūnaitė, L.; Ioannidis, D.; Fokaides, P.A.; Tjortjis, C.; Tzovaras, D. Urban traffic congestion prediction: a multi-step approach utilizing sensor data and weather information. Smart Cities 2024, 7, 233–253. [Google Scholar] [CrossRef]
- Tran, Q.H.; Fang, Y.M.; Chou, T.Y.; Hoang, T.V.; Wang, C.T.; Vu, V.T.; Ho, T.L.H.; Le, Q.; Chen, M.H. Short-term traffic speed forecasting model for a parallel multi-lane arterial road using GPS-monitored data based on deep learning approach. Sustainability 2022, 14, 6351. [Google Scholar] [CrossRef]
- Tang, B.; Hu, Y. Frequent congestion detection model based on critical intersection identification. Transportation research record 2023, 2677, 371–385. [Google Scholar] [CrossRef]
- Karunathilake, Thenuka and Zongo, Meyo and Amarawardana, Dinithi and Förster, Anna. CN+: Vehicular Dataset at Traffic Light Regulated Intersection in Bremen, Germany. Zenodo, 2023. [Online; accessed ]. 19 November 2024.
- Karunathilake, T.; Zongo, M.; Amarawardana, D.; Förster, A. CN+: Vehicular Dataset at Traffic Light Regulated Intersection in Bremen, Germany. Scientific Data 2024, 11, 665. [Google Scholar] [CrossRef] [PubMed]
- Chawla, N.V.; Bowyer, K.W.; Hall, L.O.; Kegelmeyer, W.P. SMOTE: synthetic minority over-sampling technique. Journal of artificial intelligence research 2002, 16, 321–357. [Google Scholar] [CrossRef]
- Hassan, M.A.; Salem, H.; Bailek, N.; Kisi, O. Random forest ensemble-based predictions of on-road vehicular emissions and fuel consumption in developing urban areas. Sustainability 2023, 15, 1503. [Google Scholar] [CrossRef]
- Park, J.; Hwang, E. A two-stage multistep-ahead electricity load forecasting scheme based on LightGBM and attention-BiLSTM. Sensors 2021, 21, 7697. [Google Scholar] [CrossRef]
- Chahal, A.; Gulia, P.; Gill, N.S.; Priyadarshini, I. A hybrid univariate traffic congestion prediction model for IOT-enabled smart city. Information 2023, 14, 268. [Google Scholar] [CrossRef]









| Reference | Focus | Models/Techniques | Key Findings |
|---|---|---|---|
| [12] | Intersection traffic forecasting | Graph theory, trajectory mining | Real-time analytics with structural time series models. |
| [13] | Urban congestion spot identification | mGCN, DenseNet | Achieved 85.5% accuracy in predicting congestion spots. |
| [14] | Traffic flow prediction | ANFIS, ANFIS-GA | ANFIS-GA achieved R² = 0.9980, surpassing standalone ANFIS. |
| [15] | Multi-intersection traffic modeling | GRU | Demonstrated robust performance even with sparse datasets. |
| [16] | Traffic flow forecasting | LSTM, ARIMA | LSTM outperformed ARIMA in predictive reliability. |
| [17] | Volume prediction | GRU-LSTM, wavelet transform | Achieved 94% accuracy through hybrid noise reduction methods. |
| [18,19] | Hybrid modeling | SARIMA + Bi-LSTM, LSTM + PSO | Achieved low RMSE and high prediction accuracy across test cases. |
| [20,21] | Real-time management frameworks | STNPP, GRU + V2I communication | Effective in reducing congestion and optimizing travel times. |
| [22,23] | Bayesian and ensemble approaches | BCNN, MLP | High regression accuracy; robust multi-lane intersection predictions. |
| [24,25] | Time-series and stacking methods | SARIMA, KNN + Elman NN | Offered computationally efficient and scalable solutions. |
| [26,27,28] | IoT and directed networks | LightGBM, DSAM, LSTM | Reliable congestion management for urban planning and traffic optimization. |
| Current Work | Congestion level prediction at intersections | RF, XGBoost, LightGBM, CatBoost, ANN | Achieved perfect F1 and QWK scores using CN+ dataset with advanced feature selection (DIFS). |
| Temperature | Dew Point | Humidity | Wind Speed | Wind Gust | Pressure |
|---|---|---|---|---|---|
| 61 °F | 48 °F | 63 % | 15 mph | 0 mph | 29.71 in |
| 61 °F | 48 °F | 63 % | 15 mph | 0 mph | 29.71 in |
| 61 °F | 48 °F | 63 % | 15 mph | 0 mph | 29.71 in |
| 61 °F | 48 °F | 63 % | 15 mph | 0 mph | 29.71 in |
| 61 °F | 48 °F | 63 % | 15 mph | 0 mph | 29.71 in |
| Temperature | Dew Point | Humidity | Wind Speed | Wind Gust | Pressure |
|---|---|---|---|---|---|
| 61.0 | 48.0 | 63.0 | 15.0 | 0.0 | 29.71 |
| 61.0 | 48.0 | 63.0 | 15.0 | 0.0 | 29.71 |
| 61.0 | 48.0 | 63.0 | 15.0 | 0.0 | 29.71 |
| 61.0 | 48.0 | 63.0 | 15.0 | 0.0 | 29.71 |
| 61.0 | 48.0 | 63.0 | 15.0 | 0.0 | 29.71 |
| Feature | Importance (RF) | Score () | Top 15 RF | Top 15 | Selected (Final Features) |
|---|---|---|---|---|---|
| Number | 0.900267 | 1418.054207 | True | True | True |
| Direction | 0.018842 | 33.116457 | True | True | True |
| Second | 0.014737 | 2.197631 | True | True | True |
| Type | 0.012121 | 256.689034 | True | True | True |
| Weekday | 0.006432 | 38.393137 | True | True | True |
| Day | 0.005297 | 21.434902 | True | True | True |
| Temperature | 0.005136 | 16.758210 | True | True | True |
| Humidity | 0.004894 | 13.497951 | True | True | True |
| Hour | 0.003438 | 4.778054 | True | True | True |
| IsWeekend | 0.003056 | 228.424129 | True | True | True |
| Pressure | 0.002675 | 7.180566 | True | True | True |
| Wind Speed | 0.002200 | 3.593028 | True | True | True |
| Month | 0.001966 | 20.931367 | True | True | True |
| Minute | 0.001442 | 0.617892 | True | False | False |
| Dew Point | 0.002470 | 0.950019 | True | False | False |
| Wind | 0.001823 | 2.148818 | False | False | False |
| Wind Gust | 0.000223 | 29.798063 | False | False | False |
| Class | Precision | Recall | F1-score | Accuracy | QWK Score | Support |
|---|---|---|---|---|---|---|
| Random Forest (RF) | ||||||
| Low | 1.00 | 1.00 | 1.00 | - | - | 530 |
| Medium | 1.00 | 1.00 | 1.00 | - | - | 1925 |
| High | 1.00 | 1.00 | 1.00 | - | - | 536 |
| Overall | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 2991 |
| XGBoost | ||||||
| Low | 1.00 | 1.00 | 1.00 | - | - | 530 |
| Medium | 1.00 | 1.00 | 1.00 | - | - | 1925 |
| High | 1.00 | 1.00 | 1.00 | - | - | 536 |
| Overall | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 2991 |
| LightGBM | ||||||
| Low | 1.00 | 1.00 | 1.00 | - | - | 530 |
| Medium | 1.00 | 1.00 | 1.00 | - | - | 1925 |
| High | 1.00 | 1.00 | 1.00 | - | - | 536 |
| Overall | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 2991 |
| CatBoost | ||||||
| Low | 1.00 | 1.00 | 1.00 | - | - | 530 |
| Medium | 1.00 | 1.00 | 1.00 | - | - | 1925 |
| High | 1.00 | 1.00 | 1.00 | - | - | 536 |
| Overall | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 2991 |
| Artificial Neural Network (ANN) | ||||||
| Low | 1.00 | 1.00 | 1.00 | - | - | 530 |
| Medium | 1.00 | 1.00 | 1.00 | - | - | 1925 |
| High | 1.00 | 1.00 | 1.00 | - | - | 536 |
| Overall | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 2991 |
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. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).