From Text to Locations: Repurposing Language Models for Spatial Trajectory Similarity Assessment
The proliferation of electronic devices with geopositioning capabilities has significantly increased trajectory data generation, thus opening up novel opportunities in mobility analysis. Our work considers the problem of assessing spatial similarity between trajectories, and focus on deep learning-based approaches that discretize trajectories using a uniform grid to generate their embeddings. In this context, t2vec is the reference approach. Large Language Models (LLMs) show promise in capturing patterns in mobility data. In this paper, we investigate whether an LLM can be repurposed to generate high-quality trajectory embeddings for the considered task. Using two real-world trajectory datasets, we consider repurposing three language models: Word2Vec, Doc2Vec, and BERT. Our results show that BERT, trained on dense trajectory datasets, can generate high-quality embeddings, thus highlighting the potential of LLMs.
Authors
- Francesco Lettich (ORCID: https://orcid.org/0000-0001-6914-2961)
- Wilken Charles Dantas Melo (ORCID: https://orcid.org/0009-0000-6546-5413)
- Ticiana L. Coelho da Silva
- Régis Pires Magalhães (ORCID: https://orcid.org/0000-0001-6737-4750)
- Lívia Almada Cruz
Institutions
- Istituto di Scienza e Tecnologie dell'Informazione "Alessandro Faedo" (IT)
- Universidade Federal do Ceará (BR)
- Institute of Scientific and Technical Information of China (CN)
Publication Details
- Published
- 2024-10-14
- DOI
- https://doi.org/10.5753/sbbd.2024.240212
- Primary Topic
- Data Management and Algorithms
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- European Commission