TrajGAT: A Graph-based Long-term Dependency Modeling Approach for Trajectory Similarity Computation
Di Yao, Haonan Hu, Lun Du, Gao Cong, Shi Han, Jingping Bi
Abstract
Computing trajectory similarities is a critical and fundamental task for various spatial-temporal applications, such as clustering, prediction, and anomaly detection. Traditional similarity metrics, i.e. DTW and Hausdorff, suffer from quadratic computation complexity, leading to their inability on large-scale data. To solve this problem, many trajectory representation learning techniques are proposed to approximate the metric space while reducing the complexity of similarity computation. Nevertheless, these works are designed based on RNN backend, resulting in a serious performance decline on long trajectories. In this paper, we propose a novel graph-based method, namely TrajGAT, to explicitly model the hierarchical spatial structure and improve the performance of long trajectory similarity computation. TrajGAT consists of two main modules, i.e. , graph construction and trajectory encoding. For graph construction, TrajGAT first employs PR quadtree to build the hierarchical structure of the whole spatial area, and then constructs a graph for each trajectory based on the original records and the leaf nodes of the quadtree. For trajectory encoding, we replace the self-attention in Transformer with graph attention and design an encoder to represent the generated graph trajectory. With these two modules, TrajGAT can capture the long-term dependencies of trajectories while reducing the GPU memory usage of Transformer. Our experiments on two real-life datasets show that TrajGAT not only improves the performance on long trajectories but also outperforms the state-of-the-art methods on mixture trajectories significantly.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 420a2cf5-863e-488a-9991-65778c6688ecCited by top-tier papers25
- Contrastive Trajectory Similarity Learning with Dual-Feature AttentionYanchuan Chang, Jianzhong Qi, Yuxuan Liang, Egemen TaninICDE 2023 · 77 citations
- Trajectory Similarity Measurement: An Efficiency PerspectiveYanchuan Chang, Egemen Tanin, Gao Cong, Christian S. Jensen et al.VLDB 2024 · 28 citations
- Learning to Hash for Trajectory Similarity Computation and SearchLiwei Deng, Yan Zhao, Jin Chen, Shuncheng Liu et al.ICDE 2024 · 18 citations
- RED: Effective Trajectory Representation Learning with Comprehensive InformationSilin Zhou, Shuo Shang, Lisi Chen, Christian S. Jensen et al.VLDB 2025 · 17 citations
- CausalTAD: Causal Implicit Generative Model for Debiased Online Trajectory Anomaly DetectionWenbin Li, Di Yao, Chang Gong, Xiaokai Chu et al.ICDE 2024 · 9 citations
Related papers
- Structure and Position-Aware Graph Modeling for Trajectory Similarity Computation Over Road NetworksPeilun Yang, Hanchen Wang, Zhangyi Xu, Zhengping Qian et al.ICDE 2025 · 2 citations
- SIMformer: Single-Layer Vanilla Transformer Can Learn Free-Space Trajectory SimilarityChuang Yang, Renhe Jiang, Xiaohang Xu, Chuan Xiao et al.VLDB 2025 · 8 citations
- A Graph-based Approach for Trajectory Similarity Computation in Spatial NetworksPeng Han, Jin Wang, Di Yao, Shuo Shang et al.KDD 2021 · 119 citations
- Self-supervised Trajectory Representation Learning with Temporal Regularities and Travel SemanticsJiawei Jiang, Dayan Pan, Houxing Ren, Xiaohan Jiang et al.ICDE 2023 · 101 citations
- TMN: Trajectory Matching Networks for Predicting SimilarityPeilun Yang, Hanchen Wang, Defu Lian, Ying Zhang et al.ICDE 2022 · 32 citations
