作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2026, Vol. 52 ›› Issue (3): 392-402. doi: 10.19678/j.issn.1000-3428.0069550

• 交叉融合与工程应用 • 上一篇    下一篇

面向交通流预测的全局-局部时空感知模型

潘理虎1,*(), 尹佳莉1, 张睿1, 谢斌红1, 张林梁2   

  1. 1. 太原科技大学计算机科学与技术学院, 山西 太原 030024
    2. 山西省智慧交通研究院有限公司, 山西 太原 030036
  • 收稿日期:2024-03-13 修回日期:2024-06-04 出版日期:2026-03-15 发布日期:2024-09-24
  • 通讯作者: 潘理虎
  • 作者简介:

    潘理虎(CCF高级会员), 男, 教授、博士, 主研方向为人工智能、领域软件工程

    尹佳莉, 硕士研究生

    张睿(CCF高级会员), 副教授、博士

    谢斌红(CCF会员), 教授

    张林梁, 高级工程师、博士

  • 基金资助:
    山西省基础研究项目(202203021221145); 山西省研究生联合培养示范基地项目(2022JD11)

Global-Local Spatiotemporal Perception Model for Traffic Flow Prediction

PAN Lihu1,*(), YIN Jiali1, ZHANG Rui1, XIE Binhong1, ZHANG Linliang2   

  1. 1. College of Computer Science and Technology, Taiyuan University of Science and Technology, Taiyuan 030024, Shanxi, China
    2. Shanxi Intelligent Transportation Institute Co., Ltd., Taiyuan 030036, Shanxi, China
  • Received:2024-03-13 Revised:2024-06-04 Online:2026-03-15 Published:2024-09-24
  • Contact: PAN Lihu

摘要:

交通流预测方法是智能交通系统的重要基础, 但现有方法在准确捕获交通数据的时空相关性上仍有不足。为挖掘道路网络的复杂时空相关性, 提高预测性能, 提出一种考虑全局-局部时空感知的时空图注意力网络模型GL-STAGGN。首先对输入数据进行时空位置嵌入来表征交通流的时空异质性, 以增强时空数据的特征表示, 其次利用全局-局部时间感知的多头自注意力同步挖掘全局与局部空间范围内的时间动态相关性; 然后引入图注意力网络和基于注意力机制的动态图卷积网络分别聚合局部节点特征和动态调整空间相关性强度, 以深度捕捉全局与局部空间相关性的内在关联; 最后采用编码器-解码器架构将时空组件融合以构成GL-STAGGN模型。在现实世界的高速公路交通数据集PEMS04和PEMS08上的实验结果表明, 相比未考虑全局-局部时空关系和忽略空间异质性的先进方法DSTAGNN, GL-STAGGN的平均绝对误差(MAE)、均方根误差(RMSE)和平均绝对百分比误差(MAPE)平均降低了2.8%、2.3%和3.3%, 优于大多数现有基线模型, 可更好地为智能交通系统提供支持。

关键词: 交通流预测, 时空相关性, 编码器-解码器, 注意力机制, 动态图卷积网络

Abstract:

Traffic flow prediction is crucial for intelligent transportation systems; however, the existing methods cannot accurately capture the temporal and spatial correlation of traffic data. To further explore the complex spatiotemporal correlation of road networks and improve prediction performance, a spatiotemporal graph attention network GL-STAGGN model considering global-local spatiotemporal perception is proposed. First, the spatiotemporal heterogeneity of traffic flow is represented by embedding the spatiotemporal location of the input data to enhance the feature representation of spatiotemporal data; subsequently, global-local time-aware multi-head self-attention synchronization is used to mine the global and local spatiotemporal dynamic correlation. Second, a graph attention network and a dynamic graph convolutional network based on the attention mechanism are introduced to aggregate local node features and dynamically adjust the spatial correlation intensity for capturing the internal correlation between global and local spatial correlations in depth. Finally, the GL-STAGGN model is constructed using an encoder-decoder architecture to fuse the spatiotemporal components. Experimental results on real-world highway traffic datasets, PEMS04 and PEMS08, show that compared with the advanced method DSTAGNN, which does not consider the global-local spatiotemporal relationship and spatial heterogeneity, the average Mean Absolute Error (MAE), Root Mean Square Error (RMSE), and Mean Absolute Percentage Error (MAPE) decreased by 2.8%, 2.3%, and 3.3%, respectively. Furthermore, GL-STAGGN performs better than most existing baseline models in terms of supporting intelligent transportation systems.

Key words: traffic flow prediction, spatio-temporal correlation, encoder-decoder, attention mechanism, dynamic graph convolution network