DiffMove: Group Mobility Tendency Enhanced Trajectory Recovery via Diffusion Model

Qingyue Long, Can Rong, Huandong Wang, Shaw Rajib, Yong LiarXiv 2025 · OpenReview

Abstract

In the real world, trajectory data is often sparse and incomplete due to low collection frequencies or limited device coverage. Trajectory recovery aims to recover these missing trajectory points, making the trajectories denser and more complete. However, this task faces two key challenges: 1) The excessive sparsity of individual trajectories makes it difficult to effectively leverage historical information for recovery; 2) Sparse trajectories make it harder to capture complex individual mobility preferences. To address these challenges, we propose a novel method called DiffMove. Firstly, we harness crowd wisdom for trajectory recovery. Specifically, we construct a group tendency graph using the collective trajectories of all users and then integrate the group mobility trends into the location representations via graph embedding. This solves the challenge of sparse trajectories being unable to rely on individual historical trajectories for recovery. Secondly, we capture individual mobility preferences from both historical and current perspectives. Finally, we integrate group mobility tendencies and individual preferences into the spatiotemporal distribution of the trajectory to recover high-quality trajectories. Extensive experiments on two real-world datasets demonstrate that DiffMove outperforms existing state-of-the-art methods. Further analysis validates the robustness of our method.

Introduction

Trajectory data is a cornerstone for urban planning, traffic management, and epidemic control. However, real-world GPS logs are frequently sparse due to battery constraints, signal loss, or privacy settings. This sparsity creates significant gaps in movement history, making recovery difficult. Existing methods often struggle with extreme sparsity where individual historical data is insufficient, and they fail to capture the interplay between unique individual habits and general group mobility trends (herd behavior).

DiffMove addresses these limitations by introducing "crowd wisdom" into the recovery process. By leveraging the collective behavior of all users, the model provides a robust prior when individual data is missing. Furthermore, it utilizes the generative power of Denoising Diffusion Probabilistic Models (DDPM) to reconstruct realistic, spatially consistent paths.

Methodology

The DiffMove framework consists of three primary modules designed to capture multi-faceted mobility patterns.

Group Tendency Extraction

To overcome the sparsity of individual data, DiffMove constructs a Group Preference Graph. In this graph, nodes represent locations (grid blocks), and edges represent transition frequencies across the entire user population. By applying graph embedding techniques, the model captures both first-order (direct transitions) and second-order (shared neighbor similarity) proximities. This allows the model to understand the functional relationships between locations even when direct individual data is absent.

Individual Preference Extraction

This module processes two streams of information: a History Processor for long-term habits and a Current Processor for immediate context from the target day. An Inter-trajectory Attention mechanism dynamically weighs these streams, determining whether the user is likely following a routine or exhibiting novel behavior.

The overall framework of DiffMove, showing the three main modules: Group Tendency, Individual Preference, and Diffusion.

Mobility Behavior Diffusion Module

At its core, DiffMove treats trajectory recovery as a generative task. It employs a DDPM to iteratively denoise a trajectory starting from Gaussian noise. The denoising process is conditioned on the group and individual features extracted previously. The denoising network $\mathcal{F}_\theta$ utilizes Transformer layers and gated activation units to model complex spatiotemporal dependencies.

The architecture of the denoising network $\mathcal{F}_\theta$, which uses Transformer layers and gated activation units.

To ensure physical plausibility, a distance-aware loss function ($\mathcal{L}_d$) is introduced. This loss penalizes unrealistic spatial jumps, enforcing continuity in the recovered path.

Experimental Evaluation

The model was evaluated on two large-scale datasets in Beijing: Geolife (5 years of data) and Tencent (one month of massive GPS records). The city was discretized into approximately 10,000 grid blocks of 0.265 $km^2$ each.

Performance Results

DiffMove was compared against ten baselines, including rule-based and deep learning models (LSTM, AttnMove, TrajGDM).

  • Accuracy: On the Tencent dataset, DiffMove achieved an improvement of 8.44%–10.61% in Recall and MAP over the best-performing baselines.
  • Spatial Precision: The model reduced distance error by 27.09%, demonstrating superior spatial consistency.
  • Robustness: In stress tests with 80% data missing, DiffMove maintained high performance, outperforming other models even when they had access to significantly more data. This proves the model's ability to "hallucinate" realistic paths from near-zero information.

Conclusion

DiffMove demonstrates that combining group mobility trends with individual preferences via a diffusion-based generative framework significantly improves trajectory recovery. While the model currently relies on location IDs, future work will explore semantic-aware features (e.g., POI categories) to better understand trip purposes. Additionally, optimizing the iterative sampling speed of the diffusion process remains a key area for real-time deployment.

Summary updated

BibTeX
@misc{long2025diffmove,
  author = {Qingyue Long and Can Rong and Huandong Wang and Shaw Rajib and Yong Li},
  title = {{DiffMove: Group Mobility Tendency Enhanced Trajectory Recovery via Diffusion Model}},
  year = {2025},
  eprint = {2503.18302},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.18302},
}
Figure