Holistic Semantic Representation for Navigational Trajectory Generation

Ji Cao, Tongya Zheng, Qinghong Guo, Yu Wang, Junshu Dai, Shunyu Liu, Jie Yang, Jie Song, Mingli Song

Abstract

Generating realistic human mobility trajectories is a critical task for urban planning and traffic management, yet existing models often fail to bridge the "semantic gap" between local road connectivity and high-level navigational intent. This paper introduces HOSER (HOlistic SEmantic Representation), a novel framework that integrates hierarchical road network encoding with a destination-aware navigator. By modeling movement as a goal-oriented process rather than a series of random transitions, HOSER produces synthetic trajectories that closely mirror real-world human behavior. Experimental results across three major cities demonstrate that HOSER outperforms state-of-the-art models in spatial precision and downstream utility, even showing remarkable zero-shot transferability across different urban environments.

Introduction

As urban environments become increasingly data-driven, the demand for high-fidelity trajectory data has grown. However, privacy concerns and data scarcity often limit the availability of real-world GPS datasets. While generative models offer a potential solution, they frequently struggle with two conflicting scales of movement: local road-to-road transitions and high-level navigational patterns.

Most existing models overlook the fundamental nature of human mobility: navigational intent. Drivers do not move randomly; they optimize their paths toward specific destinations. Without accounting for this destination-oriented guidance, generated trajectories often appear aimless or inefficient. HOSER addresses this by treating trajectory generation as a holistic process that balances local constraints with global goals.

The HOSER Framework

The HOSER framework employs a multi-layered approach to capture the complex semantics of urban movement through four primary components:

1. Hierarchical Road Network Encoder

Rather than treating a city as a flat graph, HOSER utilizes a hierarchical structure to understand spatial relationships. It employs GATv2 (Graph Attention Networks) to model immediate road-level intersections and GCN (Graph Convolutional Networks) to capture "zone-level" semantics. This dual-layer approach allows the model to recognize functional similarities between non-connected road segments, such as two distinct streets within the same residential district.

2. Multi-Granularity Trajectory Encoder

To represent the historical path of a vehicle, HOSER uses a Decoder-Only Transformer. This encoder incorporates Fourier-based encoding for temporal features and a specialized relative position encoding. Unlike standard sequence models, this encoding accounts for actual spatio-temporal distances between points, ensuring the model understands the physical scale of the movement.

3. Destination-Oriented Navigator

The "brain" of the generation process is the Navigator module. Using an additive attention mechanism, it weighs the current partial trajectory against the ultimate destination. By considering geometric features—such as the distance and angle to the goal—the model mimics how human drivers use landmarks and directional sense to navigate toward a target.

4. Search-Based Generation

Instead of simple step-by-step autoregressive prediction, which can lead to compounding errors, HOSER utilizes a search-based paradigm. It employs a min-heap to identify the path with the highest cumulative probability between an origin and destination pair, ensuring the final output is both probable and logically consistent.

Experimental Evaluation

Datasets and Setup

HOSER was evaluated using three large-scale, real-world trajectory datasets: Beijing (899,115 trajectories), Porto (687,656 trajectories), and San Francisco (293,023 trajectories). Raw GPS data was map-matched to road networks from OpenStreetMap to ensure that all generated paths strictly adhere to legal road topologies.

Key Results and Insights

HOSER significantly outperformed state-of-the-art baselines, including DiffTraj and TS-TrajGen, across several critical dimensions:

  • Global Similarity: HOSER achieved the lowest Jensen-Shannon Divergence (JSD) for trajectory distance, duration, and radius of gyration. This indicates that the synthetic data matches the "big picture" statistical distributions of real-world traffic.
  • Local Precision: In the Beijing dataset, HOSER achieved a Hausdorff distance of 0.5503, a marked improvement over the next best deep learning baseline (DiffTraj at 0.6483).
  • Downstream Utility: To validate the practical value of the synthetic data, the authors trained a location prediction model (DeepMove) using HOSER-generated trajectories. The model achieved 77.6% accuracy, remarkably close to the 80.4% accuracy achieved when training on real-world data.

The Importance of Intent

Ablation studies highlighted that the Navigator module was the most critical component of the framework. Removing destination guidance resulted in the largest performance drop, confirming that modeling human intent is more vital for realism than simply mimicking movement patterns. Furthermore, HOSER demonstrated impressive zero-shot transferability; a model trained on Beijing data could generate plausible trajectories for Porto, suggesting it learns universal "human mobility policies" rather than city-specific maps.

Conclusion and Future Work

HOSER represents a significant step forward in generating high-fidelity synthetic mobility data. By bridging the gap between local road constraints and high-level navigational intent, it provides a robust substitute for sensitive real-world data.

While highly effective, the framework's computational complexity remains a challenge for real-time applications. Future research will focus on incorporating "activity sequences"—such as distinguishing between a commute and a leisure trip—to better capture the multi-modal nature of urban life and further refine the semantic representation of human movement.

Summary updated

BibTeX
@inproceedings{cao2025holistic,
  author = {Ji Cao and Tongya Zheng and Qinghong Guo and Yu Wang and Junshu Dai and Shunyu Liu and Jie Yang and Jie Song and Mingli Song},
  title = {{Holistic Semantic Representation for Navigational Trajectory Generation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i1.31978},
}
Figure