An improved transformer based traffic flow prediction model.

Sci Rep

College of Computer and Control Engineering, Northeast Forestry University, HeXing Road, Harbin, China.

Published: March 2025

Traffic flow prediction is a key challenge in intelligent transportation, and the ability to accurately forecast future traffic flow directly affects the efficiency of urban transportation systems. However, existing deep learning-based prediction models suffer from the following issues: First, CNN- or RNN-based models are limited by their architecture and unsuitable for modeling long-term sequences. Second, most Transformer-based methods focus solely on the traffic flow data itself during embedding, neglecting the implicit information behind the traffic data. This implicit information includes behavioral trends, community and surrounding traffic patterns, urban weather, semantic information, and temporal periodicity. Third, methods using the original multi-head self-attention mechanism calculate attention scores point by point in the temporal dimension without utilizing contextual information, which to some extent leads to less accurate attention computation. Fourth, existing methods struggle to capture long and short-range spatial dependencies simultaneously. To address these four issues, we propose an IEEAFormer technique (Implicit-information Embedding and Enhanced Spatial-Temporal Multi-Head Attention Transformer). First, it adopts a Transformer architecture and incorporates an embedding layer to capture implicit information in the input. Secondly, the method replaces the traditional multi-head self-attention with time-environment-aware self-attention in the temporal dimension, enabling each node to perceive the contextual environment. Additionally, the technique uses two unique graph mask matrices in the spatial dimension. It employs a novel parallel spatial self-attention architecture to capture both long-range and short-range dependencies in the data simultaneously. The results verified on four real-world traffic datasets show that the proposed IEEAFormer outperforms most existing models regarding prediction performance.

Download full-text PDF

Source
http://dx.doi.org/10.1038/s41598-025-92425-7DOI Listing

Publication Analysis

Top Keywords

traffic flow
16
flow prediction
8
multi-head self-attention
8
temporal dimension
8
traffic
7
improved transformer
4
transformer based
4
based traffic
4
flow
4
prediction
4

Similar Publications

Road traffic is a major source of atmospheric pollution, especially in urban areas, contributing significantly to particulate matter (PM) emissions. While electric vehicles (EVs) help reduce exhaust emissions, they do not substantially address non-exhaust emissions (NEEs), such as brake wear dust (BWD), which remains a significant source of PM, particularly in urban environments. This study investigates at a preliminary level the environmental fate of BWD, studying at the laboratory scale its mobility and behaviour in unsaturated and saturated porous media, which simulate subsoil and aquifer conditions.

View Article and Find Full Text PDF

An improved transformer based traffic flow prediction model.

Sci Rep

March 2025

College of Computer and Control Engineering, Northeast Forestry University, HeXing Road, Harbin, China.

Traffic flow prediction is a key challenge in intelligent transportation, and the ability to accurately forecast future traffic flow directly affects the efficiency of urban transportation systems. However, existing deep learning-based prediction models suffer from the following issues: First, CNN- or RNN-based models are limited by their architecture and unsuitable for modeling long-term sequences. Second, most Transformer-based methods focus solely on the traffic flow data itself during embedding, neglecting the implicit information behind the traffic data.

View Article and Find Full Text PDF

In heterogeneous traffic flow environments, it is critical to accurately predict the future trajectories of human-driven vehicles around intelligent vehicles in real time. This paper introduces a neural network model that integrates both spatial interaction information and the long-term and short-term characteristics of the time series. Initially, the historical state information of both the target vehicle and its surrounding counterparts, along with their spatial interaction relationships, are fed into a Graph Attention Network (GAT) encoder.

View Article and Find Full Text PDF

Accurate traffic flow prediction serves as the foundation for urban traffic guidance and control, playing a crucial role in intelligent transportation management and regulation. However, current methods fail to fully capture the complex patterns and periodic characteristics of traffic flow, leading to significant discrepancies between predicted and actual values. This gap hampers the achievement of high-precision forecasting.

View Article and Find Full Text PDF

Intelligent Transportation Systems (ITSs) have become pivotal in urban traffic management by utilizing traffic flow prediction, which aids in alleviating congestion and facilitating route planning. This study introduces the Linear Attention Based Spatial-Temporal Multi-Graph Convolutional Neural Network (LASTGCN), a novel deep learning model tailored for traffic flow prediction. LASTGCN incorporates a Multifactor Fusion Unit (MFF-unit) to dynamically integrate meteorological factors, an advanced multi-graph convolutional network for spatial correlations, and the Receptance Weighted Key Value (RWKV) block, which employs a linear attention mechanism for efficient processing of historical traffic data.

View Article and Find Full Text PDF

Want AI Summaries of new PubMed Abstracts delivered to your In-box?

Enter search terms and have AI summaries delivered each week - change queries or unsubscribe any time!