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 feature analysis and Explainable Machine Learning (ML). Temporal features derived from timestamps and selected weather variables were used to train four regression models: Linear Regression, Support Vector Regression, K-Nearest Neighbors, and XGBoost. A structured backward feature elimination approach was applied at the feature-group level to explicitly compare the predictive contributions of temporal (hour-of-day, day-of-week, month) and weather variables (temperature, rainfall, cloud coverage). The results show that XGBoost, KNN, and SVR outperform linear regression, with XGBoost achieving the best performance (RMSE = 479.07 vehicles/hour, R2 = 0.94). Quantitative analysis using the XGBoost model reveals a clear contrast between feature groups: removing weather features results in an RMSE change of less than 1%, whereas removing temporal features, such as day-of-week, increases RMSE by up to 94%. To improve interpretability, SHapley Additive exPlanations (SHAP) were applied to the XGBoost model, to acquire clear global and local explanations of predictions. The explainability results confirm that traffic patterns are mainly driven by recurring human activity rather than short-term weather effects for this research. By combining robust modeling with Explainable ML, this research moves beyond mere accuracy to provide transparent, actionable insights. These findings equip urban and transport planners with the quantitative evidence needed to prioritize peak-hour demand management and develop focused, evidence-based congestion mitigation strategies. While this specific study is limited to continuous-flow freeway data from the USA, future work will validate the framework using additional datasets from different geographic regions and functional road classifications, with a particular focus on expressways and urban road networks.
S. Nissanka, Damayanthi Herath, Panduka Neluwala et al.· Moratuwa Engineering Researc...· 0 citations
Accurate bus travel time prediction is essential for improving service reliability, passenger information systems, and operational efficiency in public transportation. However, predictions remain challenging under heterogeneous traffic conditions commonly observed in developing countries due to mixed traffic flow, weak lane discipline, and highly variable delays. This study presents a comparative evaluation of three forecasting approaches, namely ARIMA, LSTM, and a Transformer encoder-based model, using real-world automatic vehicle location data collected from the Digana-Kandy corridor in Sri Lanka. The data set consists of 5,126 bus journeys recorded over five months. Travel times were aggregated into 30-minute intervals, and all models were evaluated using the same preprocessing procedure, 80:20 train-test split, and error metrics. Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), and Root Mean Squared Error (RMSE) were used for evaluation. Results show that the Transformer encoder-based model achieved the best predictive performance with an MAE of 2.10 min, MAPE of 4.52%, and RMSE of 3.76 min, outperforming both LSTM and ARIMA models. The findings highlight the potential of Transformer encoder-based architecture for intelligent public transport applications and real-time bus arrival prediction under heterogeneous traffic conditions.
Hasanka Wijesundara, Damayanthi Herath, Sara Moridpour et al.· Moratuwa Engineering Researc...· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.