Abstract
Trajectory similarity search is one of the most fundamental tasks in spatial-temporal data analysis. Classical methods are based on predefined trajectory similarity measures, consuming high time and space costs. To accelerate similarity computation, some deep metric learning methods have recently been proposed to approximate predefined measures based on the learned representation of trajectories. However, instead of predefined measures, real applications may require personalized measures, which cannot be effectively learned by existing models due to insufficient labels. Thus, this paper proposes a transfer-learning-based model FTL-Traj, which addresses this problem by effectively transferring knowledge from several existing measures as source measures. Particularly, a ProbSparse self-attention-based GRU unit is designed to extract the spatial and structural information of each trajectory. Confronted with diverse source measures, the priority modeling assists the model for the rational ensemble. Then, sparse labels are enriched with rank knowledge and collaboration knowledge via transfer learning. Extensive experiments on two real-world datasets demonstrate the superiority of our model.
Similar content being viewed by others
Availability of Data and Materials
Both datasets analyzed during the current study are available in the following resources: https://drive.google.com/drive/folders/1wGDt81o80yfbWx3Dmb66Q9VgQdP2-mqr?usp=drive_link
References
Shuo S, Chen L, Jensen CS, Wen J-R, Panos (2017) Searching trajectories by regions of interest. TKDE 29(7):1549–1562
Chen L, Shang S, Yang C, Li J (2019) Spatial keyword search: a survey. GeoInformatica 24(3)
Jin F, Hua W, Zhou T, Xu J, Francia M, Orlowska ME, Zhou X (2022) Trajectory-based spatiotemporal entity linking. IEEE Trans Knowl Data Eng 9:34
Yang S, Liu J, Zhao K (2022) Getnext: Trajectory flow map enhanced transformer for next POI recommendation. In: Amigó E, Castells P, Gonzalo J, Carterette B, Culpepper JS, Kazai G (eds) SIGIR, pp 1144–1153
Wang C, Erfani SM, Alpcan T, Leckie C (2023) Online trajectory anomaly detection based on intention orientation. In: IJCNN, pp 1–8
Colombe C, Fox K (2021) Approximating the (continuous) fréchet distance. SoCG 189:26–12614
Xi Z, Kuszmaul W (2022) Approximating dynamic time warping distance between run-length encoded strings. ESA 244:90–19019
Backurs A, Sidiropoulos A (2016) Constant-distortion embeddings of hausdorff metrics into constant-dimensional l_p spaces. APPROX/RANDOM 60:1–1115
Gong X, Xiong Y, Huang W, Chen L, Lu Q, Hu Y (2015) Fast similarity search of multi-dimensional time series via segment rotation. DASFAA 9049:108–124
Sakurai Y, Yoshikawa M, Faloutsos C (2005) FTW: fast similarity search under the time warping distance. In: ACM SIGACT-SIGMOD-SIGART, pp 326–337
Yao D, Cong G, Zhang C, Bi J (2019) Computing trajectory similarity in linear time: A generic seed-guided neural metric learning approach. In: ICDE, pp 1358–1369
Zhang H, Zhang X, Jiang Q, Zheng B, Sun Z, Sun W, Wang C (2020) Trajectory similarity learning with auxiliary supervision and optimal matching. In: IJCAI, pp 3209–3215
Yang P, Wang H, Zhang Y, Qin L, Zhang W, Lin X (2021) T3S: effective representation learning for trajectory similarity computation. In: ICDE, pp 2183–2188
Yao D, Hu H, Du L, Cong G, Han S, Bi J (2022) Trajgat: A graph-based long-term dependency modeling approach for trajectory similarity computation. In: SIGKDD, pp 2275–2285
Hu D, Chen L, Fang H, Fang Z, Li T, Gao Y (2023) Spatio-temporal trajectory similarity measures: A comprehensive survey and quantitative study. CoRR arXiv:2303.05012
Toohey K, Duckham M (2015) Trajectory similarity measures. ACM SIGSPATIAL Special 7(1):43–50
Zhou H, Zhang S, Peng J, Zhang S, Li J, Xiong H, Zhang W (2021) Informer: Beyond efficient transformer for long sequence time-series forecasting. In: AAAI, pp 11106–11115
Fan Y, Xu J, Zhou R, Li J, Zheng K, Chen L, Liu C (2022) Metaer-tte: An adaptive meta-learning model for en route travel time estimation. In: Raedt LD (ed) IJCAI. Main Track, pp 2023–2029
Sun J, Xu J, Zhou R, Zheng K, Liu C (2018) Discovering expert drivers from trajectories. In: ICDE, pp 1332–1335
Shang S, Lu H, Pedersen TB, Xie X (2013) Finding traffic-aware fastest paths in spatial networks. In: SSTD. SSTD 2013, pp 128–145. Springer, Berlin, Heidelberg
Shi W, Xu J, Fang J, Chao P, Liu A, Zhou X (2023) Lhmm: A learning enhanced hmm model for cellular trajectory map matching. In: ICDE, pp 2429–2442
Xu Y, Xu J, Zhao J, Zheng K, Liu A, Zhao L, Zhou X (2022) Metaptp: An adaptive meta-optimized model for personalized spatial trajectory prediction. SIGKDD. NY, USA, New York, pp 2151–2159
Zhao J, Xu J, Zhou R, Zhao P, Liu C, Zhu F (2018) On prediction of user destination by sub-trajectory understanding: A deep learning based approach. In: CIKM. CIKM ’18, pp 1413–1422. Association for Computing Machinery, New York, NY, USA
Shang S, Chen L, Zheng K, Jensen CS, Wei Z, Kalnis P (2019) Parallel trajectory-to-location join. TKDE 31(6):1194–1207
Chen L, Shang S (2019) Approximate spatio-temporal top-k publish/subscribe. World Wide Web
Zheng K, Su H, Zheng B, Shang S, Xu J, Liu J, Zhou X (2015) Interactive top-k spatial keyword queries. In: ICDE, pp 423–434
Chen L, Shang S, Jensen CS, Xu J, Kalnis P, Yao B, Shao L (2020) Top-k term publish/subscribe for geo-textual data streams. The VLDB Journal 29:1101–1128
Chen L, Özsu MT, Oria V (2005) Robust and fast similarity search for moving object trajectories. In: SIGMOD, pp 491–502
Vlachos M, Gunopulos D, Kollios G (2002) Discovering similar multidimensional trajectories. In: Agrawal R, Dittrich KR (eds) ICDE, pp 673–684
Gerschner F, Paul J, Schmid L, Barthel N, Gouromichos V, Schmid F, Atzmueller M, Theissler A (2023) Domain transfer for surface defect detection using few-shot learning on scarce data. In: INDIN, pp 1–7
Zhang Q, Wu X, Yang Q, Zhang C, Zhang X (2022) Few-shot heterogeneous graph learning via cross-domain knowledge transfer. In: Zhang A, Rangwala H (eds) KDD, pp 2450–2460
Lin J, Wang Y, Chen Z, He T (2020) Learning to transfer: Unsupervised domain translation via meta-learning. In: AAAI, pp 11507–11514
Zhang W, Zhang P, Zhang B, Wang X, Wang D (2023) A collaborative transfer learning framework for cross-domain recommendation. In: Singh AK, Sun Y, Akoglu L, Gunopulos D, Yan X, Kumar R, Ozcan F, Ye J (eds) KDD, pp 5576–5585
Tay Y, Dehghani M, Bahri D, Metzler D (2023) Efficient transformers: A survey. ACM Comput Surv 55(6):109–110928
Tang J, Wang K (2018) Ranking distillation: Learning compact ranking models with high performance for recommender system. In: SIGKDD, pp 2289–2298
Rendle S, Freudenthaler C (2014) Improving pairwise learning for item recommendation from implicit feedback. In: Carterette B, Diaz F, Castillo C, Metzler D (eds) WSDM, pp 273–282
Moreira-Matias L, Gama JM, Ferreira M, Mendes-Moreira J, Damas L (2016) Time-evolving o-d matrix estimation using high-speed gps data streams. Expert Syst Appl Int J 44:275–288
Chang Y, Qi J, Liang Y, Tanin E (2023) Contrastive trajectory similarity learning with dual-feature attention. In: 2023 IEEE 39th International conference on data engineering (ICDE), pp 2933–2945. IEEE
Funding
This work was supported by the National Natural Science Foundation of China (Grant No. 62102276), the Natural Science Foundation of Jiangsu Province (Grant No. BK20210705), China Postdoctoral Science Foundation(Grant No. 2023M732563)and the Natural Science Foundation of Educational Commission of Jiangsu Province, China (Grant No. 21KJD520005)
Author information
Authors and Affiliations
Contributions
Danling Lai wrote the main manuscript text. Jianfeng Qu, Yu Sang and Xi Chen participated in model design and technical discussion. All contributing authors reviewed the manuscript.
Corresponding authors
Ethics declarations
Competing interests
The authors declared no potential conflicts of interest with respect to the research, authorship, or publication of this article.
Ethical approval
Not applicable.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Lai, D., Qu, J., Sang, Y. et al. Transfer-learning-based representation learning for trajectory similarity search. Geoinformatica (2024). https://doi.org/10.1007/s10707-024-00515-x
Received:
Revised:
Accepted:
Published:
DOI: https://doi.org/10.1007/s10707-024-00515-x