# Enhancing short-term traffic prediction by integrating trends and fluctuations with attention mechanism

arXiv: https://arxiv.org/abs/2504.19967 · HTML: https://mlsanity.com/paper/2504.19967/

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Builds on 5 of its 31 references that are in the map.
- First posted on arXiv 28 Apr 2025.

## Builds on (most cited first, 5 of 5)

- [Attention-Based Models for Speech Recognition](https://mlsanity.com/paper/1506.07503/) (2015)
- [Temporal Pattern Attention for Multivariate Time Series Forecasting](https://mlsanity.com/paper/1809.04206/) (2018)
- [End-to-end Flow Correlation Tracking with Spatial-temporal Attention](https://mlsanity.com/paper/1711.01124/) (2017)
- [A Hybrid Method for Traffic Flow Forecasting Using Multimodal Deep Learning](https://mlsanity.com/paper/1803.02099/) (2018)
- [Hybrid hidden Markov LSTM for short-term traffic flow prediction](https://mlsanity.com/paper/2307.04954/) (2023)

## Abstract (arXiv)

Traffic flow prediction is a critical component of intelligent transportation systems, yet accurately forecasting traffic remains challenging due to the interaction between long-term trends and short-term fluctuations. Standard deep learning models often struggle with these challenges because their architectures inherently smooth over fine-grained fluctuations while focusing on general trends. This limitation arises from low-pass filtering effects, gate biases favoring stability, and memory update mechanisms that prioritize long-term information retention. To address these shortcomings, this study introduces a hybrid deep learning framework that integrates both long-term trend and short-term fluctuation information using two input features processed in parallel, designed to capture complementary aspects of traffic flow dynamics. Further, our approach leverages attention mechanisms, specifically Bahdanau attention, to selectively focus on critical time steps within traffic data, enhancing the model's ability to predict congestion and other transient phenomena. Experimental results demonstrate that features learned from both branches are complementary, significantly improving the goodness-of-fit statistics across multiple prediction horizons compared to a baseline model. Notably, the attention mechanism enhances short-term forecast accuracy by directly targeting immediate fluctuations, though challenges remain in fully integrating long-term trends. This framework can contribute to more effective congestion mitigation and urban mobility planning by advancing the robustness and precision of traffic prediction models.
