Graph-Enhanced Spatiotemporal Trajectory Similarity Learning
Xijuan Liu, Zhangyi Xu, Haobo Wei, Peilun Yang · Intelligent Computing · 2025
The advent of location information platforms based on global positioning systems has led to a proliferation of spatiotemporal trajectory data, which has, in turn, made the analysis of such data available to a broad range of applications, including traffic prediction, route planning, and trajectory similarity computation. Traditional methods for calculating trajectory similarity often suffer from high computational costs due to quadratic time complexity, particularly when dealing with large datasets. To this end, deep learning-based approaches to trajectory similarity learning have been proposed, with a view to offering enhanced efficiency and adaptability in comparison with traditional methods. However, these methods primarily focus on spatial trajectory similarity and fail to capture important temporal periodicity. Moreover, most of them directly use recurrent neural networks to obtain trajectory representations, while ignoring the spatial proximity information between neighboring regions. To address these limitations, we propose a graph-enhanced spatiotemporal trajectory network, named GST, which integrates both spatial and temporal information to effectively learn trajectory similarity. Specifically, our model incorporates a graph neural network to capture the spatial proximity relationships and a time-embedding module to model the temporal periodicity information, thereby providing a more comprehensive spatiotemporal trajectory representation learning paradigm. Extensive experiments on 2 real-life datasets demonstrate that our model outperforms existing state-of-the-art methods in terms of accuracy. In addition, ablation studies demonstrate the effectiveness of the proposed spatiotemporal learning mechanism.