Skip to content
Open access

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

Aug 2026 · Applied and Computational Engineering · 0 citations

TL;DR

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 dependencies in urban traffic sequences.

Abstract

With the increasing complexity of urban traffic systems, reliable forecasting of road conditions has become an important requirement for congestion management and intelligent transportation applications. This study develops a multivariate and multi-horizon traffic speed forecasting framework using real-world traffic monitoring data collected from 75 street segments in Shenzhen, China. LSTM and PatchTST are selected as representative recurrent and Transformer-based forecasting models for comparative evaluation. Average travel speed is considered the prediction target, while traffic index, total sample travel length, and total sample travel time are incorporated as additional input variables. Historical observations from the previous 48 hours are used to forecast traffic speeds over three future horizons, including 30, 60, and 120 minutes. To increase the dependability of experimental outcomes, the dataset is split chronologically, and several random seeds are used. MAE, RMSE, MAPE, and R2 are used to assess the model's performance. According to the experimental findings, PatchTST consistently outperforms LSTM in predicting across all prediction horizons. The MAE values of PatchTST are 2.0710, 2.1960, and 2.3552 for 30-, 60-, and 120-minute forecasting tasks, corresponding to reductions of 6.81%, 7.86%, and 5.89% compared with LSTM. Meanwhile, PatchTST obtains R² values of 0.8886, 0.8795, and 0.8670, respectively. Although the forecasting accuracy of both models decreases with longer prediction horizons, PatchTST maintains relatively lower errors and better stability. The results indicate that the patch-based representation and attention mechanism provide advantages in capturing both local variations and long-term temporal dependencies in urban traffic sequences.

Read PDF

Similar papers

Conference Aug 2026

Bus Travel Time Prediction under Heterogeneous Traffic Conditions Using a Transformer Encoder-Based Model: A Comparative Study

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...

Hasanka Wijesundara, Damayanthi Herath, Sara Moridpour et al. · 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
Open access Aug 2026

A Multi-Source Machine Learning Framework for Segment-Level Travel Time Prediction in Urban Arterial Corridors: Toward Sustainable Traffic Management

A multi-source machine learning framework for segment-direction-level prediction in the Denizli city center showed that temporal and traffic-state variables dominate predictions, while weather and public transport provide complementary value.

Muhammed Enes Karaoğlan, Yetis Sazi Murat · 0 citations
Open access Aug 2026

Efficient Spatiotemporal Traffic Forecasting for Smart Cities Using DCRNN-Lite in a Digital Twin Environment

A Digital Twin-based urban traffic prediction framework using a lightweight Diffusion Convolutional Recurrent Neural Network (DCRNN-Lite) that integrates spatial dependencies among road segments through diffusion convolution and temporal traffic dynamics through recurrent modeling, enabling effective spatiotemporal tra...

H. Awad · 0 citations
Review

Panoramic Review and Outlook of Traffic Flow Prediction Technology System

This paper aims to provide references for subsequent academic exploration and industrial application, helping to enhance the efficiency of urban traffic management, alleviate congestion, ensure safety and promote sustainable development.

Jun-Yu Chen · 0 citations

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