Mobility Inference on Long-Tailed Sparse Trajectory

Lei Shi, Yuankai Luo, Shuai Ma, Hanghang Tong, Zhetao Li, Xiatian Zhang, Zhiguang Shan

Abstract

Analyzing the urban trajectory in cities has become an important topic in data mining. How can we model the human mobility consisting of stay and travel from the raw trajectory data? How can we infer such a mobility model from the single trajectory information? How can we further generalize the mobility inference to accommodate the real-world trajectory data that is sparsely sampled over time? In this paper, based on formal and rigid definitions of the stay/travel mobility, we propose a single trajectory inference algorithm that utilizes a generic long-tailed sparsity pattern in the large-scale trajectory data. The algorithm guarantees a 100% precision in the stay/travel inference with a provable lower-bound in the recall. Furthermore, we introduce an encoder-decoder learning architecture that admits multiple trajectories as inputs. The architecture is optimized for the mobility inference problem through customized embedding and learning mechanism. Evaluations with three trajectory data sets of 40 million urban users validate the performance guarantees of the proposed inference algorithm and demonstrate the superiority of our deep learning model, in comparison to well-known sequence learning methods. On extremely sparse trajectories, the deep learning model achieves a 2x overall accuracy improvement from the single trajectory inference algorithm, through proven scalability and generalizability to large-scale versatile training data.

Introduction

Human mobility modeling—the task of distinguishing between "stays" (stationary periods) and "travels" (movement between locations)—is fundamental to urban planning and location-based services. While dense GPS data (pings every few seconds) makes this task straightforward, real-world metropolitan-scale data is often extremely sparse due to battery constraints and privacy settings. In many large-scale datasets, the average interval between records can be several hours, rendering traditional velocity-based algorithms ineffective. This paper addresses the challenge of inferring mobility from such "long-tailed" sparse trajectories.

The Slice & Doubly Sliding (SDS) Algorithm

To handle single-trajectory inference with high reliability, the researchers developed the Slice & Doubly Sliding (SDS) algorithm. The method first "slices" trajectories at any time gap exceeding a threshold $\Delta T$. Within these slices, it employs a sliding window to identify "dense stay segments."

Conceptual framework for identifying stay and travel segments in continuous and discrete (dense/sparse) trajectories.

The core innovation of SDS is a mathematical proof that, under specific spatial and temporal constraints, the algorithm can guarantee 100% precision. This means any segment labeled as a "stay" is guaranteed to be one, providing a high-confidence "silver standard" dataset that can be used to train more complex models.

Data Characteristics and the Long-Tail Pattern

The study utilizes a massive dataset of 40 million users across three major Chinese cities: Beijing, Tianjin, and Tangshan. A key discovery is that sparsity in this data is not uniform; it follows a "long-tailed" distribution.

The long-tailed distribution of between-record time intervals across three major cities.

As shown in the distribution of between-record time intervals, while the average gap is large, many records are actually clustered close together in time. These "islands" of dense data are the "secret sauce" that allows the SDS algorithm to function effectively even in a globally sparse environment.

Deep Learning for Population Regularity

While SDS provides perfect precision, its recall is limited on very sparse data. To fill these gaps, the authors propose an Optimized Encoder-Decoder architecture (Bi-LSTM with Attention). This model learns "population regularity"—the highly predictable nature of human movement patterns across a city.

The model uses custom embeddings for spatial grids and temporal features (both absolute hours and relative minutes). Crucially, it employs a "decoder mask" during training. This mask ensures the model only calculates loss on the 100% certain labels provided by the SDS algorithm, while still allowing the network to learn from the full contextual sequence of the trajectory.

Results and Performance

The proposed deep learning model significantly outperforms traditional sequence learning methods like HMMs and Decision Trees. On trajectories re-sampled to 10% of their original density, the encoder-decoder model achieved a 2x improvement in overall accuracy compared to the single-trajectory SDS algorithm. The model also demonstrated excellent scalability and transferability, maintaining high performance even when trained on a small subset of users and tested on a much larger population.

Conclusion

By combining a mathematically rigorous single-trajectory inference (SDS) with a deep learning model that captures collective human behavior, this work provides a robust framework for mobility inference. The approach successfully bridges the gap between discrete, sparse records and the continuous nature of human movement in modern urban environments.

Summary updated

BibTeX
@article{shi2020mobility,
  author = {Lei Shi and Yuankai Luo and Shuai Ma and Hanghang Tong and Zhetao Li and Xiatian Zhang and Zhiguang Shan},
  title = {{Mobility Inference on Long-Tailed Sparse Trajectory}},
  journal = {ACM Trans. Intell. Syst. Technol.},
  year = {2020},
  url = {https://openreview.net/forum?id=6mZH_E13s9k},
}
Figure