计算机科学 ›› 2026, Vol. 53 ›› Issue (11): 115-123.doi: 10.11896/jsjkx.250900037

• 数据库&大数据&数据科学 • 上一篇    下一篇

基于相似轨迹增强的轨迹表示学习模型

朱清林, 张磊, 刘佰龙   

  1. 1 中国矿业大学矿山数字化教育部工程研究中心 江苏 徐州 221116
    2 中国矿业大学科学与技术学院/人工智能学院 江苏 徐州 221116
  • 收稿日期:2025-09-04 修回日期:2025-12-26 出版日期:2026-11-15 发布日期:2026-11-10
  • 通讯作者: 张磊(zhanglei@cumt.edu.cn)
  • 作者简介:(zhuqlin70@163.com)
  • 基金资助:
    江苏省高校自然科学研究项目(KYCX24_2789)

Trajectory Representation Learning Model Enhanced by Similar Trajectories

ZHU Qinglin, ZHANG Lei, LIU Bailong   

  1. 1 Engineering Research Center of Mine Digitalization,Ministry of Education,China University of Mining and Technology,Xuzhou,Jiangsu 221116,China
    2 School of Computer Science and Technology/School of Artificial Intelligence,China University of Mining and Technology,Xuzhou,Jiangsu 221116,China
  • Received:2025-09-04 Revised:2025-12-26 Published:2026-11-15 Online:2026-11-10
  • About author:ZHU Qinglin,born in 2001,postgra-duate.His main research interest is trajectory representation learning.
    ZHANG Lei,born in 1977,professor,is a member of CCF(No.12434S).His main research interest is trajectory data mining.
  • Supported by:
    Natural Science Foundation of the Jiangsu Higher Education Institutions of China(KYCX24_2789).

摘要: 轨迹表示学习(TRL)旨在将原始轨迹序列转换成低维轨迹表示,是众多轨迹分析任务的基础。尽管现有深度学习模型在该任务中表现出色,但这些方法往往局限于挖掘轨迹自身的内部特征,未能有效利用其相似轨迹中丰富的上下文信息。因此,模型在理解群体移动规律、推断行为语义方面表现欠佳,尤其在处理稀疏或带噪声的轨迹数据时,所学表示往往语义区分度不足,泛化能力也较为有限。此外,传统注意力机制在建模轨迹序列时,通常需要计算所有时空点之间的全局关联,导致计算复杂度过高,并且难以从长程序列中捕捉局部关键依赖。针对上述问题,提出了一种基于相似轨迹增强的轨迹表示学习方法SimiTRL(Trajectory Representation Learning with enhanced trajectory Similarity)。该方法首先设计基于多视角信息的相似轨迹提取模块,通过融合时空特征构建相似度度量,检索语义相近的轨迹集合;进而构建基于交叉注意力的表征信息聚合模块,聚合相似轨迹中的上下文语义信息,增强轨迹表示的判别能力。同时,为降低计算开销并突出局部依赖,采用基于稀疏注意力的轨迹编码器,以聚焦局部细粒度依赖关系,提升计算效率。在Porto数据集上进行的多项实验结果表明,SimiTRL在轨迹分类任务中性能相较最佳基准模型平均提升17.8%,在行程时间估计任务中MAE降低5.59%,在轨迹相似度计算任务中,MR降低15.63%,HR@1和HR@5分别提高0.76%和0.31%。

关键词: 轨迹表示学习, 交叉注意力, 自监督学习, 预训练, 轨迹分析

Abstract: Trajectory representation learning(TRL) aims to convert raw trajectory sequences into low-dimensional representations,serving as a foundation for many trajectory analysis tasks.Although existing deep learning models have achieved notable performance in this task,they often focus solely on mining the internal features of trajectories themselves,failing to effectively leverage the rich contextual information from similar trajectories.Consequently,such models demonstrate limited capability in understanding collective mobility patterns and inferring behavioral semantics,especially when processing sparse or noisy trajectory data.The learned representations often lack sufficient semantic discriminability and exhibit limited generalization.Moreover,traditional attention mechanisms usually require computing global correlations among all spatio-temporal points when modeling trajectory sequences,leading to high computational complexity and difficulty in capturing local key dependencies from long sequences.To address these issues,a similarity-enhanced trajectory representation learning method named SimiTRL(Trajectory Representation Learning with Enhanced Trajectory Similarity) is proposed.Firstly,the proposed method designs a multi-view-based similar trajectory retrieval module,which constructs similarity metrics by fusing spatio-temporal features to retrieve sets of semantically similar trajectories.It then builds a cross-attention-based representation aggregation module to incorporate contextual semantic information from similar trajectories,thereby enhancing the discriminative power of trajectory representations.Meanwhile,to reduce computational overhead and highlight local dependencies,a sparse-attention-based trajectory encoder is employed to focus on local fine-grained dependencies and improve computational efficiency.Extensive experiments on the Porto dataset show that SimiTRL outperforms the best baseline model by an average of 17.8% in trajectory classification,reduces MAE by 5.59% in travel time estimation,and reduces MR by 15.63% and improves HR@1 and HR@5 by 0.76% and 0.31%,respectively,for trajectory similarity computation.

Key words: Trajectory representation learning, Cross-attention, Self-supervised learning, Pre-training, Trajectory analysis

中图分类号: 

  • TP181
[1] LIU H,JIANG W,LIU S,et al.Uncertainty-aware probabilistic travel time prediction for on-demand ride-hailing at didi[C]//Proceedings of the 29th ACM SIGKDD Conference on Know-ledge Discovery and Data Mining.2023:4516-4526.
[2] FANG Y,ZHAO T,LIU Q L,et al.Trajectory Prediction Me-thod Based on Fusion of Graph Interaction and Scene Perception [J].Computer Science,2022,49(10):258-264.
[3] ZHOU S,LI J,WANG H,et al.GRLSTM:trajectory similaritycomputation with graph-based residual LSTM[C]//Proceedings of the AAAI Conference on Artificial Intelligence.2023:4972-4980.
[4] YAO D,ZHANG C,ZHU Z,et al.Trajectory clustering via deep representation learning[C]//2017 International Joint Confe-rence on Neural Networks(IJCNN).IEEE,2017:3880-3887.
[5] VASWANI A,SHAZEER N,PARMAR N,et al.Attention isall you need[C]//Advances in Neural Information Processing Systems.2017.
[6] CHEN Y,LI X,CONG G,et al.Robust road network representation learning:When traffic patterns meet traveling semantics[C]//Proceedings of the 30th ACM International Conference on Information & Knowledge Management.2021:211-220.
[7] GROVER A,LESKOVEC J.node2vec:Scalable feature learning for networks[C]//Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mi-ning.2016:855-864.
[8] NGUYEN T,NGUYEN T,BARANIUK R.Mitigating Over-smoothing in Transformers via Regularized Nonlocal Func-tionals [C]//Advances in Neural Information Processing Systems.2023:80233-80256.
[9] LI X,ZHAO K,CONG G,et al.Deep representation learning for trajectory similarity computation[C]//2018 IEEE 34th International Conference on Data Engineering(ICDE).IEEE,2018:617-628.
[10] YANG P,WANG H,ZHANG Y,et al.T3s:Effective representation learning for trajectory similarity computation[C]//2021 IEEE 37th International Conference on Data Engineering(ICDE).IEEE,2021:2183-2188.
[11] HAN P,WANG J,YAO D,et al.A graph-based approach for trajectory similarity computation in spatial networks[C]//Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining.2021:556-564.
[12] ZHOU S,HAN P,YAO D,et al.Spatial-temporal fusion graph framework for trajectory similarity computation[J].World Wide Web,2023,26(4):1501-1523.
[13] FANG Z,DU Y,CHEN L,et al.E 2 dtc:An end to end deep trajectory clustering framework via self-training[C]//2021 IEEE 37th International Conference on Data Engineering(ICDE).IEEE,2021:696-707.
[14] WANG C,HUANG J,WANG Y,et al.A deep spatiotemporal trajectory representation learning framework for clustering[J].IEEE Transactions on Intelligent Transportation Systems,2024,25(7):7687-7700.
[15] LIU Y,ZHAO K,CONG G,et al.Online anomalous trajectory detection with deep generative sequence modeling[C]//2020 IEEE 36th International Conference on Data Engineering(ICDE).IEEE,2020:949-960.
[16] ZHANG Q,WANG Z,LONG C,et al.Online anomalous subtrajectory detection on road networks with deep reinforcement learning[C]//2023 IEEE 39th International Conference on Data Engineering(ICDE).IEEE,2023:246-258.
[17] FUT Y,LEE W C.Trembr:Exploring road networks for trajectory representation learning[J].ACM Transactions on Intelligent Systems and Technology,2020,11(1):1-25.
[18] YANG S B,GUO C,HU J,et al.Unsupervised path representation learning with curriculum negative sampling[J].arXiv:2106.09373,2021.
[19] MAO Z,LI Z,LI D,et al.Jointly contrastive representationlearning on road network and trajectory[C]//Proceedings of the 31st ACM International Conference on Information & Know-ledge Management.2022:1501-1510.
[20] JIANG J,PAN D,REN H,et al.Self-supervised trajectory representation learning with temporal regularities and travel semantics[C]//2023 IEEE 39th International Conference on Data Engineering(ICDE).IEEE,2023:843-855.
[21] YANG S B,HU J,GUO C,et al.Lightpath:Lightweight andscalable path representation learning[C]//Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining.2023:2999-3010.
[22] MA Z,TU Z,CHEN X,et al.More than routing:Joint GPS and route modeling for refine trajectory representation learning[C]//Proceedings of the ACM Web Conference 2024.2024:3064-3075.
[23] ZHOU S,SHANG S,CHEN L,et al.Red:Effective trajectoryrepresentation learning with comprehensive information[J].arXiv:2411.15096,2024.
[24] YANG C,GIDOFALVI G.Fast map matching,an algorithm integrating hidden Markov model with precomputation[J].International Journal of Geographical Information Science,2018,32(3):547-570.
[25] VELIČKOVIĆ P,CUCURULL G,CASANOVA A,et al.Graphattention networks[J].arXiv:1710.10903,2017.
[26] DEVLIN J,CHANG M W,LEE K,et al.Bert:Pre-training ofdeep bidirectional transformers for language understanding[C]//Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics:Human Language Technologies.2019:4171-4186.
[27] LOSHCHILOV I,HUTTER F.Decoupled weight decay regularization[J]arXiv:1711.05101,2017.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!