Skip to content
Open access

A Comparative Analysis of Machine Learning Algorithms for Urban Traffic Congestion Prediction: The Impact of Hyperparameter Optimization

Aug 2026 · Academic Journal of International University of Erbil · Vol 3, pp. 201-215 · 0 citations · 21 references

TL;DR

The tuned RF emerged as the most reliable and robust classifier, offering high predictive accuracy with reduced overfitting risk, and hyperparameter tuning proved particularly beneficial for SVM and KNN, substantially improving their generalization capabilities, while producing minimal changes in already well-optimized models such as Naïve Bayes and GB.

Abstract

Accurately predicting urban traffic congestion is a central requirement in modern Intelligent Transportation Systems (ITS). Although machine learning (ML) remains the primary tool for this task, model performance is strongly influenced by the characteristics and quality of the training data. This study presents a comparative evaluation of eight supervised ML algorithms Logistic Regression (LR), Decision Tree (DT), Random Forest (RF), Support Vector Machine (SVM), K-Nearest Neighbors (KNN), Gaussian Naïve Bayes (GNB), Gradient Boosting (GB), and the Multi-Layer Perceptron (MLP) Neural Network using a balanced synthetic dataset representing multiple congestion scenarios. Model behavior is assessed under both default configurations and after hyperparameter optimization using a lightweight Grid Search CV procedure. Several classifiers, including DT, RF, and GB, achieved exceptional accuracy exceeding 0.9977 percent, indicating strongly separable class boundaries within the dataset. Hyperparameter tuning proved particularly beneficial for SVM and KNN, substantially improving their generalization capabilities, while producing minimal changes in already well-optimized models such as Naïve Bayes and GB. The tuned RF emerged as the most reliable and robust classifier, offering high predictive accuracy with reduced overfitting risk. The study also highlights a critical consideration: models trained exclusively on clean, noise-free data may exhibit inflated performance that does not fully reflect real-world operational conditions. These findings underscore the importance of evaluating model robustness when deploying ML-based congestion-prediction systems in dynamic and noisy traffic environments.

Read PDF

Similar papers

Conference Open access 2026

A F-R Algorithm-based Machine Learning Model for Traffic Accident Severity Prediction

A novel approach to optimizing intelligent transportation models using the hybrid Foraging Habitat Selection Particle Swarm Optimization–Random Forest (FHSPSO-RF) technique, which can adaptively optimize several parameters of the Random Forest classifier, namely the number of trees, maximum depth, and minimal samples p...

Jing-Yi Zhang · 0 citations
Open access Aug 2026

A Machine Learning Approach for Intelligent Digital Network Traffic Classification Using XG Boost and Random Forest

In the last decade, with the expansion of digital networks, the network traffic control problem has raised the necessity of effective and accurate techniques for its management. This work aims to compare and analyze two ensemble machine learning algorithms, XGBoost and Random Forest, for network traffic congestion clas...

Hanan Zainel · 0 citations
Open access Sep 2026

Deployment of Artificial Neural Networks for Vehicular Road Traffic Flow Prediction and Adaptive Signal Control in Metropolitan Road Networks

This study integrates ANN prediction with adaptive traffic signal optimization within a SUMO simulation framework for Nigerian urban traffic road networks, addressing the persistent challenge of urban congestion. Using synthetic and real traffic data from Jattu Junction in Auchi, Edo State, the framework was implemente...

Ikharo Ab, Obasi Cc · 0 citations
Conference Open access Sep 2026

A Hyperparameter-Optimized LSTM Machine Learning Method for Predicting Air Quality

The experimental results reveal that the XGBoost model outperforms the other models, while hyperparameter tuning further improves the effectiveness of both the Decision Tree and KNN models.

K. Venkatesh, A. B. Teja, Research, Guntur, India · 0 citations
Conference Aug 2026

Traffic Volume Prediction Using Temporal and Weather Features with Explainable Machine Learning

Accurate traffic volume prediction is essential for effective traffic management and transport planning, particularly on major freeway corridors. This study examines hourly traffic volume prediction using the Metro Interstate Traffic Volume Dataset by applying classical machine learning models together with systematic...

S. Nissanka, Damayanthi Herath, Panduka Neluwala et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.