Traffic Flow Prediction Based on Spatio-temporal Attention Block

Junhan Liu,Hao Qu,Meng Chen,Yongshun Gong
DOI: https://doi.org/10.1109/mlccim55934.2022.00014
2022-01-01
Abstract:Traffic flow prediction is closely related to the intelligent transportation construction and public risk assessment, which is a typical spatio-temporal prediction problem. Traffic flow has complex interrelationship in the time and space perspectives, and is also affected by a large number of external factors. However, most existing methods cannot simultaneously take into account the extraction of spatiotemporal dependence under multiple granularity. To tackle this problem, we propose a model with spatio-temporal Attention block (STA). The model divides time into different scales and dynamically aggregates time features through multi-head attention in temporal attention block. ResNet is used as the backbone to encode traffic flows, and attention mechanism is used in spatial attention block to dynamically capture the correlation of the global large area. Besides, the characteristics of external factors are also considered in our prediction process. Our STA model is assessed on two real-world data sets. The results of two ablation experiments illustrate the correctness of temporal and spatial attention blocks we have proposed, and the STA model performs better than other comparative baselines.
What problem does this paper attempt to address?