Learning to Hash for Trajectory Similarity Computation and Search
Liwei Deng, Yan Zhao, Jin Chen, Shuncheng Liu, Yuyang Xia, Kai Zheng
Abstract
Searching for similar trajectories from a database is an important way for extracting human-understandable knowledge. However, due to the huge volume of trajectories and high computation complexity of distance between trajectories, it is difficult to search for exact results, which motivates the research of approximating approaches. In this study, we propose a learning to hash method for trajectory similarity computation and search, called Traj2Hash, which consists of a two-channel trajectory encoder and a hash layer to encode trajectories into Euclidean and Hamming space, respectively. The embeddings of trajectories obtained from the encoder are capable of preserving the reverse symmetric property and more representative due to the reverse augmentation and the lower-bound induced read-out layer. Moreover, we design a decomposed grid representation in the encoder to make the model lighter and better. In the model training phase, we combine a weighted mean squared error loss and a ranking-based hashing loss to enable the model similarity-aware and representations self-structured, respectively, in which a fast trajectory triplet generation method is leveraged to enrich the training corpus. Extensive experiments conducted on real data offer evidence of the effectiveness and efficiency of the proposed model.
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.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 735dfc07-c9b7-4a65-8b10-449e6382cf28Cited by top-tier papers6
- Efficient Data-aware Distance Comparison Operations for High-Dimensional Approximate Nearest Neighbor SearchLiwei Deng, Penghao Chen, Ximu Zeng, Tianfu Wang et al.VLDB 2025 · 11 citations
- LIRA: A Learning-based Query-aware Partition Framework for Large-scale ANN SearchXimu Zeng, Liwei Deng, Penghao Chen, Xu Chen et al.WWW 2025 · 10 citations
- MILLION: A General Multi-Objective Framework with Controllable Risk for Portfolio ManagementLiwei Deng, Tianfu Wang, Yan Zhao, Kai ZhengVLDB 2025 · 6 citations
- Energy-Efficient Autonomous Driving With Adaptive Perception and Robust DecisionYuyang Xia, Zibo Liang, Liwei Deng, Yan Zhao et al.ICDE 2026 · 1 citation
- Exact and Efficient Similar Subtrajectory Search: Integrating Constraints and SimplificationLiwei Deng, Fei Wang, Tianfu Wang, Yan Zhao et al.ICDE 2025 · 1 citation
Builds on8
- Learning to Hash with Graph Neural Networks for Recommender SystemsQiaoyu Tan, Ninghao Liu, Xing Zhao, Hongxia Yang et al.WWW 2020 · 106 citations
- TrajGAT: A Graph-based Long-term Dependency Modeling Approach for Trajectory Similarity ComputationDi Yao, Haonan Hu, Lun Du, Gao Cong et al.KDD 2022 · 74 citations
- Spatio-Temporal Trajectory Similarity Learning in Road NetworksZiquan Fang, Yuntao Du, Xinjun Zhu, Danlei Hu et al.KDD 2022 · 68 citations
- PM-LSH: A Fast and Accurate LSH Framework for High-Dimensional Approximate NN SearchBolong Zheng, Xi Zhao, Lianggui Weng, Nguyen Quoc Viet Hung et al.VLDB 2020 · 64 citations
- TMN: Trajectory Matching Networks for Predicting SimilarityPeilun Yang, Hanchen Wang, Defu Lian, Ying Zhang et al.ICDE 2022 · 32 citations
Related papers
- GeoPTH: A Lightweight Approach to Category-Based Trajectory Retrieval via Geometric Prototype Trajectory HashingYang Xu, Zuliang Yang, Kai Ming TingAAAI 2026
- Contrastive Trajectory Similarity Learning with Dual-Feature AttentionYanchuan Chang, Jianzhong Qi, Yuxuan Liang, Egemen TaninICDE 2023 · 77 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
- Trajectory Similarity Measurement: An Efficiency PerspectiveYanchuan Chang, Egemen Tanin, Gao Cong, Christian S. Jensen et al.VLDB 2024 · 28 citations
- Accelerate Learning of Deep Hashing With Gradient AttentionLong-Kai Huang, Jianda Chen, Sinno Jialin PanICCV 2019 · 22 citations
