Contrastive Trajectory Similarity Learning with Dual-Feature Attention
Yanchuan Chang, Jianzhong Qi, Yuxuan Liang, Egemen Tanin
Abstract
Trajectory similarity measures act as query predicates in trajectory databases, making them the key player in determining the query results. They also have a heavy impact on the query efficiency. An ideal measure should have the capability to accurately evaluate the similarity between any two trajectories in a very short amount of time. Towards this aim, we propose a contrastive learning-based trajectory modeling method named TrajCL. We present four trajectory augmentation methods and a novel dual-feature self-attention-based trajectory backbone encoder. The resultant model can jointly learn both the spatial and the structural patterns of trajectories. Our model does not involve any recurrent structures and thus has a high efficiency. Besides, our pre-trained backbone encoder can be fine-tuned towards other computationally expensive measures with minimal supervision data. Experimental results show that TrajCL is consistently and significantly more accurate than the state-of-the-art trajectory similarity measures. After fine-tuning, i.e., to serve as an estimator for heuristic measures, TrajCL can even outperform the state-of-the-art supervised method by up to 56% in the accuracy for processing trajectory similarity queries.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers31
- More Than Routing: Joint GPS and Route Modeling for Refine Trajectory Representation LearningZhipeng Ma, Zheyan Tu, Xinhai Chen, Yan Zhang et al.WWW 2024 · 38 citations
- Trajectory Similarity Measurement: An Efficiency PerspectiveYanchuan Chang, Egemen Tanin, Gao Cong, Christian S. Jensen et al.VLDB 2024 · 28 citations
- TERI: An Effective Framework for Trajectory Recovery with Irregular Time IntervalsYile Chen, Gao Cong, Cuauhtemoc AndaVLDB 2024 · 22 citations
- RED: Effective Trajectory Representation Learning with Comprehensive InformationSilin Zhou, Shuo Shang, Lisi Chen, Christian S. Jensen et al.VLDB 2025 · 17 citations
- Urban Region Representation Learning with Attentive FusionFengze Sun, Jianzhong Qi, Yanchuan Chang, Xiaoliang Fan et al.ICDE 2024 · 14 citations
Builds on13
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- Unsupervised Learning of Visual Features by Contrasting Cluster AssignmentsMathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal et al.NeurIPS 2020 · 5,249 citations
- SimCSE: Simple Contrastive Learning of Sentence EmbeddingsTianyu Gao, Xingcheng Yao, Danqi ChenEMNLP 2021 · 2,496 citations
- Contrastive Multi-View Representation Learning on GraphsKaveh Hassani, Amir Hosein Khas AhmadiICML 2020 · 1,663 citations
Related papers
- Having It Both Ways: Single Trajectory Embedding for Similarity Computation with Pairwise LearningJianing Si, Haitao Yuan, Xiang Li, Nan Jiang et al.ICDE 2025
- Self-supervised Trajectory Representation Learning with Temporal Regularities and Travel SemanticsJiawei Jiang, Dayan Pan, Houxing Ren, Xiaohan Jiang et al.ICDE 2023 · 101 citations
- SimRN: Trajectory Similarity Learning in Road Networks based on Distributed Deep Reinforcement LearningDanlei Hu, Yilin Li, Lu Chen, Ziquan Fang et al.VLDB 2025 · 1 citation
- MovSemCL: Movement-Semantics Contrastive Learning for Trajectory SimilarityZhichen Lai, Hua Lu, Huan Li, Jialiang Li et al.AAAI 2026
- Self-Supervised Trajectory Representation Learning with Multi-Scale Spatio-Temporal Feature ExplorationHong Xia, Xiao Zhang, Yuan Cao, Lei Cao et al.ICDE 2025
