《计算机应用》唯一官方网站

• •    下一篇

结合变种残差模型和Transformer的城市公路短时交通流预测

杨鑫1,陈雪妮1,吴春江2,周世杰1   

  1. 1. 电子科技大学 信息与软件工程学院 2. 成都信息工程大学 软件工程学院
  • 收稿日期:2023-09-14 修回日期:2023-11-28 发布日期:2024-03-15 出版日期:2024-03-15
  • 通讯作者: 吴春江
  • 作者简介:杨鑫(1998—),男,四川成都人,硕士研究生,主要研究方向:智慧交通;陈雪妮(1998—),女,四川成都人,硕士研究生,主要研究方向:智慧交通;吴春江(1982—),男,四川南江人,副教授,博士,主要研究方向:智慧交通,大数据,工业软件;周世杰(1970—),男,四川自贡人,教授,博士,博士生导师,CCF高级会员,主要研究方向:交通仿真,网络安全,工业软件。
  • 基金资助:
    国家自然科学基金资助项目(62272089);四川省科技厅面上项目(2022YFG0207)

Urban roads short-term traffic flow prediction combined with variant residual model and Transformer

YANG Xin1,CHEN Xueni1,WU Chunjiang2,ZHOU Shijie1   

  1. 1. School of Information and Software Engineering, University of Electronic Science and Technology of China 2. School of Software Engineering, Chengdu University of Information Technology
  • Received:2023-09-14 Revised:2023-11-28 Online:2024-03-15 Published:2024-03-15
  • About author:YANG Xin, born in 1998, M.S. candidate. His research interests include smart transportation. CHEN Xueni, born in 1998, M.S. candidate. Her research interests include smart transportation. WU Chunjiang, born in 1982, Ph. D., assiociate professor. His research interests include smart transportation, big data, and industrial software. ZHOU Shijie, born in 1970, Ph. D., professor. His research interest includes traffic simulation, cybersecurity, and industrial software.
  • Supported by:
    National Natural Science Foundation of China (62272089), Sichuan Provincial Department of Science and Technology General Project (2022YFG0207)

摘要: 城市公路交通流的预测受到历史交通流量和相邻车道交通流量的影响,蕴含了复杂的时空特征。针对传统交通流预测模型卷积长短时记忆网络(ConvLSTM)进行交通流预测时,未将时空特征分开提取而造成的提取不充分、特征信息混淆和特征信息缺失等问题,对ConvLSTM模型作出改进。首先,提取每个采样时刻的交通流数据的短期时间特征和空间特征,并在特定的维度下将交通流的短期时空特征融合;其次,进行残差映射;最后,将映射后的短期时空特征交由Transformer模型捕捉交通流数据长期的时空间特征,并根据所捕捉的长期特征对未来时刻每个采样点交通流进行预测。使用加州城市快速路数据对模型进行验证,在消融实验中,以平均绝对误差(MAE)作为模型评价指标时,所提模型相较于Conv-Transformer模型,预测精度提高了18%,验证了所提模型的有效性。

关键词: 短时交通流预测, 交通流时空特征提取, 残差结构, Transformer, 组合模型

Abstract: The prediction of urban highway traffic flow is influenced by historical traffic flow and neighboring lane traffic flow, involving complex spatio-temporal features. In order to address the insufficient feature extraction, feature confusion, and feature information loss caused by not separating the spatio-temporal features in the traditional traffic flow prediction model Convolutional Long Short-Term Memory (ConvLSTM), improvements are made to the ConvLSTM model. Firstly, the short-term temporal features and spatial features of the traffic flow data at each sampling moment were extracted, and the short-term spatio-temporal features of the traffic flow were fused in specific dimensions. Secondly, residual mapping was performed. Finally, the mapped short-term spatio-temporal features were captured by the Transformer model to capture the long-term spatio-temporal features of the traffic flow data, and based on the captured long-term features, the traffic flow at each sampling point in the future moment was predicted. The model is validated using California urban freeway data, and in the ablation experiment, when the Mean Absolute Error (MAE) is used as the model evaluation metric, the proposed model has the prediction accuarcy improved by 18% compared to the Conv-Transformer model, validating the effectiveness of the proposed model.

Key words: short-term traffic flow prediction, spatio-temporal feature extraction of traffic flow, residual structure, Transformer, combined model

中图分类号: