main.pdf (1.97 MB)
Download file

Attention to Traffic Forecasting: Improving Predictions with Temporal Graph Attention Networks

Download (1.97 MB)
posted on 12.05.2022, 19:24 by Raúl GadeaRaúl Gadea, Jose L. AznarteJose L. Aznarte

Dynamic traffic flow forecasting remains an open issue to this day. As other spatio-temporal problems, traffic prediction deals with both temporal and spatial nonlinear relationships, with the particularity that nearby points in the Euclidean space might be allocated in different roads, adding another layer of complexity. Traffic prediction has witnessed a revolution with the appearance of deep learning, with graph neural networks being prominently responsible for a steep increase in forecasting accuracy. In this paper, we consider the use of an automatic attention mechanism in order to improve the prediction capabilities of a traffic graph convolutional network. This model is based on the composition of gated recurrent units and graph convolution networks to model space and time simultaneously. To overcome the spatial modelling limitations of the original model, our proposal replaces the graph convolutional layer with a graph attention mechanism. Our aim is to model spatial relations in an automatic, more dynamic way. In order to prove the validity and usefulness of our proposal, we have performed a thorough experimentation over two known traffic datasets used in previous research, plus a new, complex one which we have curated and published. Our results portray a clear and statistically significant advantage with the inclusion of spatial attention, surpassing the performance of a wide set of state-of-the-art models on every tested scenario.


This research was partially funded by the Empresa Municipal de Transportes (EMT) of Madrid under the program “Aula Universitaria EMT/UNED de Calidad del Aire y Movilidad Sostenible”.


Email Address of Submitting Author

ORCID of Submitting Author


Submitting Author's Institution

Universidad Nacional de Educación a Distancia

Submitting Author's Country