Saved in:
Bibliographic Details
Main Authors: Yang, Hao, Yao, Angela, Whalen, Christopher, Mai, Gengchen
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2507.03062
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918082849538048
author Yang, Hao
Yao, Angela
Whalen, Christopher
Mai, Gengchen
author_facet Yang, Hao
Yao, Angela
Whalen, Christopher
Mai, Gengchen
contents Understanding human mobility is essential for applications in public health, transportation, and urban planning. However, mobility data often suffers from sparsity due to limitations in data collection methods, such as infrequent GPS sampling or call detail record (CDR) data that only capture locations during communication events. To address this challenge, we propose BERT4Traj, a transformer based model that reconstructs complete mobility trajectories by predicting hidden visits in sparse movement sequences. Inspired by BERT's masked language modeling objective and self_attention mechanisms, BERT4Traj leverages spatial embeddings, temporal embeddings, and contextual background features such as demographics and anchor points. We evaluate BERT4Traj on real world CDR and GPS datasets collected in Kampala, Uganda, demonstrating that our approach significantly outperforms traditional models such as Markov Chains, KNN, RNNs, and LSTMs. Our results show that BERT4Traj effectively reconstructs detailed and continuous mobility trajectories, enhancing insights into human movement patterns.
format Preprint
id arxiv_https___arxiv_org_abs_2507_03062
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle BERT4Traj: Transformer Based Trajectory Reconstruction for Sparse Mobility Data
Yang, Hao
Yao, Angela
Whalen, Christopher
Mai, Gengchen
Machine Learning
Artificial Intelligence
Understanding human mobility is essential for applications in public health, transportation, and urban planning. However, mobility data often suffers from sparsity due to limitations in data collection methods, such as infrequent GPS sampling or call detail record (CDR) data that only capture locations during communication events. To address this challenge, we propose BERT4Traj, a transformer based model that reconstructs complete mobility trajectories by predicting hidden visits in sparse movement sequences. Inspired by BERT's masked language modeling objective and self_attention mechanisms, BERT4Traj leverages spatial embeddings, temporal embeddings, and contextual background features such as demographics and anchor points. We evaluate BERT4Traj on real world CDR and GPS datasets collected in Kampala, Uganda, demonstrating that our approach significantly outperforms traditional models such as Markov Chains, KNN, RNNs, and LSTMs. Our results show that BERT4Traj effectively reconstructs detailed and continuous mobility trajectories, enhancing insights into human movement patterns.
title BERT4Traj: Transformer Based Trajectory Reconstruction for Sparse Mobility Data
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2507.03062