Skip to content
Conference

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

Aug 2026 · Moratuwa Engineering Research Conference · pp. 271-276 · 0 citations · 17 references

Abstract

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.

View source

Similar papers

Open access Aug 2026

Urban traffic volume forecasting using machine learning and neural networks

To build sustainable cities, it is critical to be able to predict traffic volume and to manage and control it effectively, especially in large cities. This study aims to determine whether the number of vehicles on the road in Istanbul, the world's most congested city, can be predicted using meteorological and traffic-r...

Vildan Gülpınar Demirci, Busra Ozdenizci Kose, F. Huseynov et al. · 0 citations
Conference Open access Sep 2026

Short-Term Traffic Speed Prediction and Pattern Discovery Using Sensor Data

The sustained growth of urban populations has worsened chronic traffic congestion, with detrimental impacts on multiple dimensions of urban livability, including increased commute times, reduced road safety, and the degradation of local air quality. Thus, traffic speed prediction (TSP) is an important component of inte...

Ali Hadi, Muhammad Munim Shafi, Asadullah Safi et al. · 0 citations
Conference Open access 2026

Short-Term Freeway Traffic Volume Prediction with Weather and Holiday Features: A Comparative Study of LSTM and Transformer Models

The task of predicting short-term traffic flows accurately during abnormal conditions like adverse weather or holidays remains a significant problem in Intelligent Transportation Systems, particularly when using isolated single-link detectors. This paper presents a freeway congestion forecast integrating weather variab...

Bo Chen · 0 citations
Open access Aug 2026

Comparative Analysis of LSTM and PatchTST Models for Urban Street Traffic Time Series Forecasting

Although the forecasting accuracy of both models decreases with longer prediction horizons, PatchTST maintains relatively lower errors and better stability, and the results indicate that the patch-based representation and attention mechanism provide advantages in capturing both local variations and long-term temporal d...

Wentao Hu, Er Zhou · 0 citations

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