A multi-head attention-based transformer model for traffic flow forecasting with a comparative analysis to recurrent neural networks
Open accessThe DOI matches its Crossref record; 28 of the 28 references it cites were found in a registry or an index.
Abstract
Traffic flow forecasting is an essential component of an intelligent transportation system to mitigate congestion. Recurrent neural networks, particularly gated recurrent units and long short-term memory, have been the state-of-the-art traffic flow forecasting models for the last few years. However, a more sophisticated and resilient model is necessary to effectively acquire long-range correlations in the time-series data sequence under analysis. The dominant performance of transformers by overcoming the drawbacks of recurrent neural networks in natural language processing might tackle this need and lead to successful time-series forecasting. This article presents a multi-head attention based transformer model for traffic flow forecasting with a comparative analysis between a gated recurrent unit and a long-short term memory-based model on PeMS dataset in this context. The model uses 5 heads with 5 identical layers of encoder and decoder and relies on Square Subsequent Masking techniques. The results demonstrate the promising performance of the transform-based model in predicting long-term traffic flow patterns effectively after feeding it with substantial amount of data. It also demonstrates its worthiness by increasing the mean squared errors and mean absolute percentage errors by (1.25−47.8)% and (32.4−83.8)%, respectively, concerning the current baselines.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Hochreiter, S., & Schmidhuber, J. (1997) · Neural Computation · doi:10.1162/neco.1997.9.8.1735 · Cited by 102,318
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2018) · arXiv · doi:10.48550/arxiv.1810.04805 · Cited by 73,173
Advances in Neural Information Processing Systems 29
Teymur, O., Zygalakis, K., & Calderhead, B. (2016) · Cited by 13,887
Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) Network
Sherstinsky, A. (2020) · Physica D: Nonlinear Phenomena · doi:10.1016/j.physd.2019.132306 · Cited by 5,680
Temporal Fusion Transformers for interpretable multi-horizon time series forecasting
Lim, B., Arık, S. Ö., Loeff, N., & Pfister, T. (2021) · International Journal of Forecasting · doi:10.1016/j.ijforecast.2021.03.012 · Cited by 3,291
Ma, X., Tao, Z., Wang, Y., Yu, H., & Wang, Y. (2015) · Transportation Research Part C: Emerging Technologies · doi:10.1016/j.trc.2015.03.014 · Cited by 2,191
LSTM network: a deep learning approach for short‐term traffic forecast
Zhao, Z., Chen, W., Wu, X., Chen, P. C. Y., & Liu, J. (2017) · IET Intelligent Transport Systems · doi:10.1049/iet-its.2016.0208 · Cited by 1,834
Enhancing the Locality and Breaking the Memory Bottleneck of Transformer on Time Series Forecasting
Li, S., Jin, X., Xuan, Y., Zhou, X., Chen, W., Wang, Y.-X., & Yan, X. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1907.00235 · Cited by 1,053
Deep learning for short-term traffic flow prediction
Polson, N. G., & Sokolov, V. O. (2017) · Transportation Research Part C: Emerging Technologies · doi:10.1016/j.trc.2017.02.024 · Cited by 1,015
Gated Feedback Recurrent Neural Networks
Chung, J., Gulcehre, C., Cho, K., & Bengio, Y. (2015) · arXiv · doi:10.48550/arxiv.1502.02367 · Cited by 583
Efficient Learning Machines: Theories, Concepts, and Applications for Engineers and System Designers
Awad, M., & Khanna, R. (2015) · Directory of Open access Books (OAPEN Foundation) · doi:10.1007/978-1-4302-5990-9 · Cited by 448
Learning Dynamic and Hierarchical Traffic Spatiotemporal Features With Transformer
Yan, H., Ma, X., & Pu, Z. (2022) · IEEE Transactions on Intelligent Transportation Systems · doi:10.1109/tits.2021.3102983 · Cited by 290
Spatial-Temporal Transformer Networks for Traffic Flow Forecasting
Xu, M., Dai, W., Liu, C., Gao, X., Lin, W., Qi, G.-J., & Xiong, H. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2001.02908 · Cited by 261
Long-Range Transformers for Dynamic Spatiotemporal ForecastingPreprint
Grigsby, J., Wang, Z., Nguyen, N., & Qi, Y. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2109.12218 · Cited by 206
On the diversity of multi-head attention
Li, J., Wang, X., Tu, Z., & Lyu, M. R.-T. (2021) · Neurocomputing · doi:10.1016/j.neucom.2021.04.038 · Cited by 165
Rainfall‐integrated traffic speed prediction using deep learning method
Jia, Y., Wu, J., Ben‐Akiva, M., Seshadri, R., & Du, Y. (2017) · IET Intelligent Transport Systems · doi:10.1049/iet-its.2016.0257 · Cited by 105
TrafficBERT: Pre-trained model with large-scale data for long-range traffic flow forecasting
Jin, K., Wi, J. A., Lee, E., Kang, S., Kim, S., & Kim, Y. (2021) · Expert systems with applications · doi:10.1016/j.eswa.2021.115738 · Cited by 95
Cooperative Traffic Signal Control with Traffic Flow Prediction in Multi-Intersection
Kim, D., & Jeong, O. (2019) · Sensors · doi:10.3390/s20010137 · Cited by 80
Reza, S., Oliveira, H. S., Machado, J. J. M., & Tavares, J. M. R. S. (2021) · Sensors · doi:10.3390/s21227705 · Cited by 58
Self-citationKhan, Z., Khan, S. M., Dey, K. C., & Chowdhury, M. (2019) · Transportation Research Record Journal of the Transportation Research Board · doi:10.1177/0361198119849059 · Cited by 56
Online Traffic Flow Prediction for Edge Computing-Enhanced Autonomous and Connected Vehicles
Song, X., Guo, Y., Li, N., & Zhang, L. (2021) · IEEE Transactions on Vehicular Technology · doi:10.1109/tvt.2021.3057109 · Cited by 53
Link traffic speed forecasting using convolutional attention-based gated recurrent unit
Khodabandelou, G., Kheriji, W., & Hadj‐Selem, F. (2020) · Applied Intelligence · doi:10.1007/s10489-020-02020-8 · Cited by 43
Transformers predicting the future. Applying attention in next-frame and time series forecastingPreprint
Cholakov, R., & Kolev, T. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2108.08224 · Cited by 34
Modeling the accuracy of traffic crash prediction models
Rashidi, H., Keshavarz, S., Pazari, P., Safahieh, N., & Samimi, A. (2022) · IATSS Research · doi:10.1016/j.iatssr.2022.03.004 · Cited by 27
Spatiotemporal Traffic State Prediction Based on Discriminatively Pre-trained Deep Neural Networks
Elhenawy, M. M. Z., & Rakha, H. A. (2017) · Advances in Science Technology and Engineering Systems Journal · doi:10.25046/aj020387 · Cited by 17
Freeway Performance Measurement System (PeMS), PeMS 7.0
Varaiya, P. P. (2007) · Cited by 16
Prediction of Road Traffic Flow Based on Deep Recurrent Neural Networks
Bartlett, Z., Han, L., Nguyễn, T. T., & Johnson, P. (2019) · IEEE SmartWorld, Ubiquitous Intelligence & Computing, Advanced & Trusted Computing, Scalable Computing & Communications, Cloud & Big Data Computing, Internet of People and Smart City Innovation (SmartWorld/SCALCOM/UIC/ATC/CBDCom/IOP/SCI) · doi:10.1109/smartworld-uic-atc-scalcom-iop-sci.2019.00060 · Cited by 14
Cited by
The impact of ChatGPT on higher education
Dempere, J., Modugu, K., Hesham, A., & Ramasamy, L. K. (2023) · Frontiers in Education · doi:10.3389/feduc.2023.1206936 · Cited by 519
RNN-LSTM: From applications to modeling techniques and beyond—Systematic review
Al-Selwi, S. M., Hassan, M. F., Abdulkadir, S. J., Muneer, A., Sumiea, E. H., Alqushaibi, A., & Ragab, M. G. (2024) · Journal of King Saud University - Computer and Information Sciences · doi:10.1016/j.jksuci.2024.102068 · Cited by 505
A comprehensive survey on applications of transformers for deep learning tasks
Islam, S., Elmekki, H., Elsebai, A., Bentahar, J., Drawel, N., Rjoub, G., & Pedrycz, W. (2024) · Expert Systems with Applications · doi:10.1016/j.eswa.2023.122666 · Cited by 487
Moveh, S., Merchán-Cruz, E. A., Abuhussain, M., Dodo, Y. A., Alhumaid, S., & Alhamami, A. H. (2025) · Energies · doi:10.3390/en18061468 · Cited by 27
Human behavior recognition based on sparse transformer with channel attention mechanism
Cao, K., & Wang, M. (2023) · Frontiers in Physiology · doi:10.3389/fphys.2023.1239453 · Cited by 12
Metadata
- Authors
- Reza, S., Ferreira, M. C., Machado, J. J. M., & Tavares, J. M. R. S.
- Venue
- Expert Systems with Applications
- Publisher
- Elsevier BV
- Published
- 2022-09
- Volume
- 202
- Pages
- 117275
- ISSN
- 0957-4174 (ISSN-L)
- OpenAlex
- W4224211827
- Cited by
- 306
- References
- 28
- FWCI
- 26.14
- Type
- journal article
- Language
- en
- Open access
- hybrid
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.