Multiple-level Point Embedding for Solving Human Trajectory Imputation with Prediction

Kyle Kai Qin, Yongli Ren, Wei Shao, Brennan Lake, Filippo Privitera, Flora D. Salim

TL;DR

The INGRAIN framework tackles the dual challenge of filling in missing gaps (imputation) and forecasting future movements (prediction) in human mobility data. By combining a self-attention mechanism to capture global patterns with a recurrent unit for sequential forecasting, the model demonstrates that these two tasks can mutually reinforce each other to achieve state-of-the-art accuracy.

What Problem Does This Paper Address?

Human trajectory data—the digital breadcrumbs left by our GPS-enabled devices—is notoriously "messy." Due to battery-saving modes, poor signal in urban canyons, or limited bandwidth, datasets often contain significant gaps.

The authors identify two major hurdles in current research:

  1. Task Isolation: Most researchers treat imputation and prediction as separate problems. However, a better understanding of where a person was (imputation) should logically help predict where they are going (prediction).
  2. Sequential Limitations: Traditional models like Recurrent Neural Networks (RNNs) process data step-by-step. When large chunks of data are missing, these models struggle to maintain context, leading to "compounding errors" where one wrong guess ruins the rest of the sequence.

Methods

The authors propose INGRAIN (multIple-level poiNt embeddinG for solving tRajectory imputAtion wIth predictioN). Its architecture is a hybrid of two popular deep learning approaches:

  • The Imputation Component (Non-Autoregressive): This uses a Transformer-based self-attention mechanism. Unlike an RNN, it looks at the entire trajectory at once to find "coexistence patterns" between observed points and missing ones. It doesn't care about the order; it cares about the spatial-temporal relationships across the whole window.
  • The Prediction Component (Autoregressive): Once the gaps are filled, the sequence is passed to a Gated Recurrent Unit (GRU). This part of the model focuses on the "flow" of movement to predict the next coordinate.
  • The Imputation Cycle: This is the "secret sauce." Instead of filling all gaps at once, the model can be configured to fill $n$ points at a time. This gradual, multi-level refinement allows the model to converge faster and more accurately.
  • Velocity Constraint: The model doesn't just look at coordinates; it includes a specific loss function ($L_{vel}$) that penalizes "impossible" jumps, ensuring the imputed movement speeds match realistic human mobility patterns.

Datasets

The model was evaluated on three large-scale, real-world GPS datasets:

  • Geolife: Outdoor trajectories of 182 users in Beijing, China, collected over five years.
  • Cuebiq-US: Diverse mobility data from New York City.
  • Cuebiq-AU: Mobility data from various cities across Australia.

The authors tested these datasets with varying trajectory lengths ($L=20, 50, 100$) and high missing data rates (up to 80%).

Key Insights and Ideas

  • Mutual Benefit: The most significant "aha moment" is that optimizing for prediction actually helps the imputation task. By forcing the model to think about the future, it creates more realistic "middle" points.
  • Attention vs. Sequence: While RNNs are great for "what's next," self-attention is superior for "what's missing." By using attention for imputation, the model avoids the vanishing gradient problems that plague RNNs when dealing with long-range dependencies.
  • The Power of Physics: Incorporating a velocity constraint ($L_{vel}$) acts as a regularizer. It prevents the deep learning model from hallucinating "teleportation" events, which are common in purely coordinate-based models.

Key Results

INGRAIN consistently outperformed state-of-the-art baselines like NAOMI and GAIN:

  • Imputation Accuracy: On the Geolife dataset ($L=50$), INGRAIN achieved an L2 loss of 0.0075, significantly lower than NAOMI (0.1613) and SingleRes (0.0405).
  • Prediction Accuracy: In forecasting tasks, INGRAIN maintained a lower error rate (L2 loss of 0.0464 on Geolife) compared to standard LSTMs and GRUs, which often hovered above 2.0.
  • Stability: The model remained stable even as the "missingness" rate increased from 20% to 80%, whereas competitor models saw their error rates spike dramatically.

Limitations and Future Work

  • Computational Complexity: The self-attention mechanism has a quadratic complexity ($O(L^2)$) relative to trajectory length. While the authors suggest using "neighbor locations" to mitigate this for very long sequences, it remains a hurdle for real-time applications on mobile devices.
  • Semantic Context: The current model focuses purely on coordinates (latitude/longitude). The authors note that future work could incorporate "Points of Interest" (POIs) to understand why a person is moving to a specific location (e.g., going to a park vs. a grocery store).
  • Diverse Mobility: While tested on city-wide data, the authors aim to test the model on even more diverse datasets, such as grid-based or indoor WiFi-based trajectories, in future iterations.

Summary updated

BibTeX
@article{qin2023multiple,
  author = {Kyle Kai Qin and Yongli Ren and Wei Shao and Brennan Lake and Filippo Privitera and Flora D. Salim},
  title = {{Multiple-level Point Embedding for Solving Human Trajectory Imputation with Prediction}},
  journal = {ACM Trans. Spatial Algorithms Syst.},
  year = {2023},
  url = {https://openreview.net/forum?id=SxrSI79Dgy},
}
Figure