摘要
准确可靠的交通流预测对城市规划、居民出行、公共安全等具有重要现实意义,目前对于交通流预测的方法主要集中在RNN等深度学习模型,仍有以下问题:一是没有考虑长、短距离动态空间依赖,二是忽视了空间信息传播情况。基于以上情况本文提出一种基于空间信息迟延感知的时空Transformer模型。首先,该模型采用多头自注意力机制捕捉城市交通流的时空特性;其次,在编码层使用空间与时间自注意力机制关注长、短距离动态空间影响与时间动态特性,同时也模拟了空间信息传播迟延情况;最后,时空编码层通过跳跃连接处理,从而进一步提高模型的性能。实验在两个真实的交通流数据集上进行,对比主流的交通预测算法,结果表明所提出的DAST-Transformer模型具有更好的性能和预测精度。
Accurate and reliable traffic flow prediction has important practical significance for urban planning, residents’ travel, public safety, etc. At present, the methods for traffic flow prediction are mainly integrated in the RNN and other in DL models, but there are still the following problems: first, the dynamic spatial dependence of long and short distance is not considered, and second, the spatial information dissemination is ignored. Based on the above situation, this paper proposes a spatial- temporal Transformer model based on spatial information delay awareness. First of all, the model uses the multi-attention mechanism to capture the space-time characteristics of urban traffic flow;Secondly, in the encoder layer, the spatial-temporal self-attention mechanism is used to focus on the long and short distance dynamic spatial impact and temporal dynamic characteristics, and the spatial information transmission delay is also simulated;Finally, the spatial-temporal encoder layer can further improve the performance of the model through jump connection processing. The experiment is carried out on two real traffic flow data sets. Compared with the mainstream traffic flow prediction algorithms, the results show that the proposed DAST-Transformer model has better performance and prediction accuracy.
出处
《软件工程与应用》
2023年第2期293-302,共10页
Software Engineering and Applications