Computer Science ›› 2026, Vol. 53 ›› Issue (11): 115-123.doi: 10.11896/jsjkx.250900037

• Database& Big Data& Data Science • Previous Articles     Next Articles

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 Online:2026-11-15 Published: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).

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

CLC Number: 

  • 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.
[1] XU Jianjun, BI Ying, CHEN Mingming, LIANG Jing. Survey of Molecular Pre-training Models and Their Applications in Drug Discovery [J]. Computer Science, 2026, 53(9): 110-123.
[2] WANG Xingyue, YE Hongting, XU Honghua, ZHOU Suyang, KONG Youyong. Multimodal Renewable Energy Data Feature Graph Modeling Method Based on Hard Prompts [J]. Computer Science, 2026, 53(9): 145-156.
[3] ZOU Jing, WANG Pingxin. Structural Deep Clustering with Fuzzy C-means Refinement and Rollback Gating [J]. Computer Science, 2026, 53(9): 173-179.
[4] ZHONG Hao, KONG Qingxuan, CAI Xianqing, LI Zhizhong, SUN Hao. Intelligent Recognition Method Based on Multimodal Feature Fusion [J]. Computer Science, 2026, 53(6A): 250700065-10.
[5] KE Changbo, LI Tianhao, ZHANG Bolei, XIAO Fu, XU Kang. Teaching Evaluation Sentiment Analysis Method Based on Capsule Network [J]. Computer Science, 2026, 53(6): 10-18.
[6] LIU Xukai, LIU Yang, HUANG Haozhen. EC-MIIP:Efficient Fine-tuning Small-parameter Large Language Model for Intellectual Property [J]. Computer Science, 2026, 53(5): 299-308.
[7] LIU Yichen, LIN Yan, ZHOU Zeyu, GUO Shengnan, LIN Youfang, WAN Huaiyu. Efficient Semantic-aware Trajectory Representation Learning Method via State Space Model [J]. Computer Science, 2026, 53(4): 134-142.
[8] LIU Dehua, YU Saixuan, QIAO Jinlan, HUANG Heqing, CHENG Wenhui. Denoising Diffusion Model-enhanced Algorithm for Battery Swap Demand Data Generation [J]. Computer Science, 2026, 53(4): 163-172.
[9] ZHANG Can, LI Weixun, WANG Ming, ZHAN Xiong, XIE Ziguang, HAN Dongqi, WANG Zhiliang, YANG Jiahai. Network Traffic Generation Method for Malicious Traffic Identification [J]. Computer Science, 2026, 53(4): 415-423.
[10] YU Ding, LI Zhangwei. Prediction Method of RNA Secondary Structure Based on Transformer Architecture [J]. Computer Science, 2026, 53(3): 375-382.
[11] ZHU Feng, YE Zongguo, LI Peng, XU He. Transformer-based Domain Adaptation Method for IoT Traffic Intrusion Detection [J]. Computer Science, 2026, 53(3): 443-452.
[12] WANG Xinyu, SONG Xiaomin, ZHENG Huiming, PENG Dezhong, CHEN Jie. Contrastive Learning-based Masked Graph Autoencoder [J]. Computer Science, 2026, 53(2): 145-151.
[13] LIU Zhenyu, YAO Dengfeng, ZHAO Yuan, MENG Ziwen, XU Cheng, LI Yan. Research Progress of Multimodal Machine Learning in Audio-Visual Semantic Analysis [J]. Computer Science, 2026, 53(10): 1-17.
[14] LI Ye, WANG Qi, XIA Jingyuan, HUANG Xinghua, JIANG Weidong. HLDNet:High-Low Frequency Dual-stream Decoupling Network for Infrared and Visible ImageFusion [J]. Computer Science, 2026, 53(10): 68-76.
[15] WAN Shenghua, XU Xingye, GAN Le, ZHAN Dechuan. Pre-training World Models from Videos with Generated Actions by Multi-modal Large Models [J]. Computer Science, 2026, 53(1): 51-57.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!