Abstract
High-quality human trajectory data is essential for urban planning and traffic management but faces significant privacy and collection hurdles. Existing generative models often focus on individual movement patterns while overlooking the aggregate city-wide population distribution. This paper introduces the Trajectory Diffusion Model (TDM), a framework that integrates spatial graph embeddings and a population-aware diffusion process. By treating population density as a condition for the diffusion model, TDM generates realistic individual paths that align with real-world density patterns. Experimental results on Geolife and MME datasets show that TDM outperforms state-of-the-art methods by over 54% in statistical fidelity and over 100% in origin-destination similarity.
What Problem Does This Paper Address?
High-quality human trajectory data is a goldmine for urban planning, traffic management, and public health. However, using real-world data is fraught with challenges: it’s expensive to collect, often noisy, and poses significant privacy risks. Even "anonymized" data can often be re-identified.
While generative models like GANs and VAEs have been used to create synthetic trajectories, they typically focus on the "micro" level—capturing how an individual moves from point A to point B. They often ignore the "macro" level: the dynamic population distribution of a city. In the real world, where people go is heavily constrained by where everyone else is (population density). Existing models fail to capture this feedback loop, leading to synthetic datasets that look okay for individuals but don't make sense when aggregated at a city scale.
Methods
The authors propose the Trajectory Diffusion Model (TDM), which consists of two primary innovations:
- Spatial Enhancement Module: To help the model understand geography, the researchers built a spatial graph where nodes are city regions and edges represent Euclidean distances. They used LINE (Large-scale Information Network Embedding) to learn location embeddings. This captures both "first-order proximity" (immediate neighbors) and "second-order proximity" (locations with similar neighborhood structures), helping the model understand that people prefer nearby locations but might also visit distant, similar hubs.
- Population-Aware Diffusion Process: The core is a Denoising Diffusion Probabilistic Model (DDPM).
- Encoder/Decoder: Uses a Transformer-based architecture to handle temporal dependencies.
- Cross-Attention: The model uses a cross-attention mechanism to inject dynamic population distribution data into the denoising process at every step. This ensures the "noise" is removed in a way that pushes the trajectory toward high-density areas.
- Dual Loss Function: The training objective combines an individual mobility loss (to keep paths smooth and realistic) with a population distribution loss (using cross-entropy to ensure the aggregate generated data matches real-world density).
Datasets
The model was evaluated on two diverse, real-world mobility datasets:
- Geolife (Beijing): A high-resolution GPS dataset covering 182 users over five years.
- MME (Nanchang): A massive cellular base station dataset from China Mobile, covering over 6,000 users over one week.
The researchers pre-processed these into 1km x 1km grids with 30-minute time intervals to standardize the generation task.
Key Insights and Ideas
- The Macro-Micro Feedback Loop: Individual trajectories shape population distribution, which in turn guides future individual movements. By treating population density as a condition for the diffusion model, the authors successfully modeled this constraint.
- Diffusion for Continuity: Unlike GANs, which can produce "jumpy" or disconnected paths, diffusion models excel at generating smooth, coherent sequences. By gradually reconstructing data from random noise, the model naturally captures the temporal flow of human movement.
- Solving Graph Sparsity: In mobility graphs, many nodes aren't directly connected. Using second-order proximity in the embedding process allows the model to "understand" the relationship between distant regions that serve similar functions, even if no direct path exists in the training data.
Key Results
The TDM model significantly outperformed six state-of-the-art baselines (including TrajGAIL and MoveSim):
- Statistical Fidelity: On the Geolife dataset, it improved performance across metrics like travel distance and radius of gyration by an average of 54%.
- Aggregate Accuracy: The most striking results were in OD (Origin-Destination) Similarity, where the model showed a 108% to 115% improvement over baselines. This means the synthetic population moves between parts of the city in a way that almost perfectly mirrors the real population.
- Robustness: Sensitivity analysis showed the model remains stable across different spatial granularities and time intervals.
Limitations and Future Work
The authors identify one primary area for improvement: Semantic Information. Currently, the model treats locations as coordinates or grid IDs. It doesn't "know" if a location is a shopping mall, a park, or a residential area (Points of Interest, or POIs).
Future work aims to incorporate these functional semantics into the embeddings to better simulate morning commutes versus weekend leisure trips. Additionally, the authors suggest further exploring how to incorporate more complex social or environmental factors into the diffusion process.
Summary updated