Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
research-article

A Multi-Layer Model Based on Transformer and Deep Learning for Traffic Flow Prediction

Published: 22 September 2023 Publication History

Abstract

Using traffic data to accurately predict the traffic flow at a certain time in the future can alleviate problems such as traffic congestion, which plays an important role in the healthy transportation and economic development of cities. However, current traffic flow prediction models rely on human experience and only consider the advantages of single machine learning model. Therefore, in this work, we propose a multi-layer model based on transformer and deep learning for traffic flow prediction (MTDLTFP). The MTDLTFP model first draws on the idea of transformer model, which uses multiple encoders and decoders to perform feature extraction on the initial traffic data without human experience. In addition, in the prediction stage, the MTDLTFP model using deep learning technology, which input the hidden features into the convolutional neural network (CNN) and multi-layer feedforward neural network (MFNN) to obtain the prediction score respectively. The CNN model can captures the correlation information between the hidden features, and the MFNN can captures the nonlinear relationship between the features. Finally, we use a linear model to combine the two prediction scores, which can make the final prediction value take into account the common advantages of both models. Multiple experimental results on two real datasets demonstrate the effectiveness of the MTDLTFP model. The experimental results on the <inline-formula> <tex-math notation="LaTeX">$WorkDay$ </tex-math></inline-formula> dataset are as follows, with the RMSE value of 0.191, MAE value of 0.165. The experimental results on the <inline-formula> <tex-math notation="LaTeX">$HoliDay$ </tex-math></inline-formula> dataset are as follows, with RMSE value of 0.227, MAE value of 0.192.

References

[1]
A. Miglani and N. Kumar, “Deep learning models for traffic flow prediction in autonomous vehicles: A review, solutions, and challenges,” Veh. Commun., vol. 20, Dec. 2019, Art. no.
[2]
C. Chen, B. Liu, S. Wan, P. Qiao, and Q. Pei, “An edge traffic flow detection scheme based on deep learning in an intelligent transportation system,” IEEE Trans. Intell. Transp. Syst., vol. 22, no. 3, pp. 1840–1852, Mar. 2020.
[3]
K. Y. Chan, T. S. Dillon, J. Singh, and E. Chang, “Neural-network-based models for short-term traffic flow forecasting using a hybrid exponential smoothing and Levenberg–Marquardt algorithm,” IEEE Trans. Intell. Transp. Syst., vol. 13, no. 2, pp. 644–654, Jun. 2012.
[4]
B. Yu, X. Song, F. Guan, Z. Yang, and B. Yao, “K-nearest neighbor model for multiple-time-step prediction of short-term traffic condition,” J. Transp. Eng., vol. 142, no. 6, Jun. 2016, Art. no.
[5]
D. Chen, “Research on traffic flow prediction in the big data environment based on the improved RBF neural network,” IEEE Trans. Ind. Informat., vol. 13, no. 4, pp. 2000–2008, Aug. 2017.
[6]
L. Zhaoet al., “T-GCN: A temporal graph convolutional network for traffic prediction,” IEEE Trans. Intell. Transp. Syst., vol. 21, no. 9, pp. 3848–3858, Aug. 2019.
[7]
Y. Lv, Y. Duan, W. Kang, Z. Li, and F.-Y. Wang, “Traffic flow prediction with big data: A deep learning approach,” IEEE Trans. Intell. Transp. Syst., vol. 16, no. 2, pp. 865–873, Apr. 2014.
[8]
H. Penget al., “Dynamic graph convolutional network for long-term traffic flow prediction with reinforcement learning,” Inf. Sci., vol. 578, pp. 401–416, Nov. 2021.
[9]
Z. Zhao, W. Chen, X. Wu, P. C. Y. Chen, and J. Liu, “LSTM network: A deep learning approach for short-term traffic forecast,” IET Intell. Transp. Syst., vol. 11, no. 2, pp. 68–75, Mar. 2017.
[10]
A. Stathopoulos and M. G. Karlaftis, “A multivariate state space approach for urban traffic flow modeling and prediction,” Transp. Res. C, Emerg. Technol., vol. 11, no. 2, pp. 121–135, Apr. 2003.
[11]
M. Van Der Voort, M. Dougherty, and S. Watson, “Combining Kohonen maps with ARIMA time series models to forecast traffic flow,” Transp. Res. C, Emerg. Technol., vol. 4, no. 5, pp. 307–318, 1996.
[12]
Y. Liu, J. James, J. Kang, D. Niyato, and S. Zhang, “Privacy-preserving traffic flow prediction: A federated learning approach,” IEEE Internet Things J., vol. 7, no. 8, pp. 7751–7763, Aug. 2020.
[13]
X. Luo, D. Li, Y. Yang, and S. Zhang, “Spatiotemporal traffic flow prediction with KNN and LSTM,” J. Adv. Transp., vol. 2019, pp. 1–10, Feb. 2019.
[14]
A. Vaswaniet al., “Attention is all you need,” in Proc. Adv. Neural Inf. Process. Syst., vol. 30, 2017, pp. 5998–6008.
[15]
Y. LeCun, Y. Bengio, and G. Hinton, “Deep learning,” Nature, vol. 521, pp. 436–444, May 2015.
[16]
Y. Wu, H. Tan, L. Qin, B. Ran, and Z. Jiang, “A hybrid deep learning based traffic flow prediction method and its understanding,” Transp. Res. C, Emerg. Technol., vol. 90, pp. 166–180, May 2018.
[17]
A. Abadi, T. Rajabioun, and P. A. Ioannou, “Traffic flow prediction for road transportation networks with limited traffic data,” IEEE Trans. Intell. Transp. Syst., vol. 16, no. 2, pp. 653–662, Apr. 2015.
[18]
H. Yin, S. C. Wong, J. Xu, and C. K. Wong, “Urban traffic flow prediction using a fuzzy-neural approach,” Transp. Res. C, Emerg. Technol., vol. 10, no. 2, pp. 85–98, Apr. 2002.
[19]
N. G. Polson and O. S. Vadim, “Deep learning for short-term traffic flow prediction,” Transp. Res. C, Emerg. Technol., vol. 79 pp. 1–17, Dec. 2017.
[20]
Y. Tian, K. Zhang, J. Li, X. Lin, and B. Yang, “LSTM-based traffic flow prediction with missing data,” Neurocomputing, vol. 318, pp. 297–305, Nov. 2018.
[21]
W. Huang, G. Song, H. Hong, and K. Xie, “Deep architecture for traffic flow prediction: Deep belief networks with multitask learning,” IEEE Trans. Intell. Transp. Syst., vol. 15, no. 5, pp. 2191–2201, Oct. 2014.
[22]
A. Koesdwiady, R. Soua, and F. Karray, “Improving traffic flow prediction with weather information in connected cars: A deep learning approach,” IEEE Trans. Veh. Technol., vol. 65, no. 12, pp. 9508–9517, Dec. 2016.
[23]
Z. Zheng, Y. Yang, J. Liu, H.-N. Dai, and Y. Zhang, “Deep and embedded learning approach for traffic flow prediction in urban informatics,” IEEE Trans. Intell. Transp. Syst., vol. 20, no. 10, pp. 3927–3939, Oct. 2019.
[24]
J. Guet al., “Recent advances in convolutional neural networks,” Pattern Recognit., vol. 77, pp. 354–377, May 2018.
[25]
J. Masci, U. Meier, D. Cireşan, and J. Schmidhuber, “Stacked convolutional auto-encoders for hierarchical feature extraction,” in Artificial Neural Networks and Machine Learning—ICANN 2011, T. Honkela, W. Duch, M. Girolami, and S. Kaski, Eds. Berlin, Germany: Springer, 2011, pp. 52–59.
[26]
S. Chauhan, M. Singh, and A. K. Aggarwal, “Data science and data analytics: Artificial intelligence and machine learning integrated based approach,” in Data Science Data Analytics: Opportunities Challenges, vol. 1. Boca Raton, FL, USA: CRC Press, 2021.
[27]
Z. Lu, J. Xia, M. Wang, Q. Nie, and J. Ou, “Short-term traffic flow forecasting via multi-regime modeling and ensemble learning,” Appl. Sci., vol. 10, no. 1, p. 356, Jan. 2020.
[28]
I. Goodfellow, “Generative adversarial networks,” Commun. ACM, vol. 63, no. 11, pp. 139–144, 2020.
[29]
Y. Wang, Q. Yao, J. T. Kwok, and L. M. Ni, “Generalizing from a few examples: A survey on few-shot learning,” ACM Comput. Surv., vol. 53, no. 3, pp. 1–34, 2020.

Cited By

View all

Index Terms

  1. A Multi-Layer Model Based on Transformer and Deep Learning for Traffic Flow Prediction
        Index terms have been assigned to the content through auto-classification.

        Recommendations

        Comments

        Information & Contributors

        Information

        Published In

        cover image IEEE Transactions on Intelligent Transportation Systems
        IEEE Transactions on Intelligent Transportation Systems  Volume 25, Issue 1
        Jan. 2024
        1067 pages

        Publisher

        IEEE Press

        Publication History

        Published: 22 September 2023

        Qualifiers

        • Research-article

        Contributors

        Other Metrics

        Bibliometrics & Citations

        Bibliometrics

        Article Metrics

        • Downloads (Last 12 months)0
        • Downloads (Last 6 weeks)0
        Reflects downloads up to 25 Dec 2024

        Other Metrics

        Citations

        Cited By

        View all

        View Options

        View options

        Media

        Figures

        Other

        Tables

        Share

        Share

        Share this Publication link

        Share on social media