Abstract
Driving trajectory representation learning is of great significance for various location-based services, such as driving pattern mining and route recommendation. However, previous representation generation approaches tend to rarely address three challenges: 1) how to represent the intricate semantic intentions of mobility inexpensively; 2) complex and weak spatial-temporal dependencies due to the sparsity and heterogeneity of the trajectory data; 3) route selection preferences and their correlation to driving behavior. In this paper, we propose a novel multimodal fusion model, DouFu, for trajectory representation joint learning, which applies multimodal learning and attention fusion module to capture the internal characteristics of trajectories. We first design movement, route, and global features generated from the trajectory data and urban functional zones and then analyze them respectively with the attention encoder or feed forward network. The attention fusion module incorporates route features with movement features to create a better spatial-temporal embedding. With the global semantic feature, DouFu produces a comprehensive embedding for each trajectory. We evaluate representations generated by our method and other baseline models on classification and clustering tasks. Empirical results show that DouFu outperforms other models in most of the learning algorithms like the linear regression and the support vector machine by more than 10%.
Introduction
While GPS devices generate massive amounts of trajectory data, representing this data for machine learning is challenging. Most existing models focus strictly on the "where" and "when" (spatio-temporal coordinates), but they often ignore three critical factors:
- Semantic Intent: Why is the driver traveling? (e.g., going to a workplace vs. a shopping mall).
- Data Sparsity: GPS pings can be irregular or noisy, making it hard to capture long-term dependencies.
- Route Preference: Different drivers choose different paths for the same trip. This "route signature" is a powerful identifier of driving behavior that is often overlooked.
The authors argue that a trajectory isn't just a string of coordinates; it’s a multimodal signal encompassing physical motion, network topology, and land-use context.
Methodology
The core of the paper is the DouFu (Double Fusion) architecture, which processes a trajectory through three distinct "modals" before fusing them.
Feature Modality Decoupling
- Movement: Uses a sliding window to calculate physical statistics like speed, acceleration, and angular velocity.
- Route: Converts the trajectory into a sequence of road segments. These segments are pre-trained using a Variational Graph Auto-Encoder (VGAE) to capture the geometric relationships of the city's road network.
- Global: A fixed-length vector containing "meta" information like departure time and the "Functional Zone of Buffer"—the proportion of land-use types (residential, commercial, etc.) at the trip's origin and destination.
The Double Fusion Strategy
The DouFu architecture featuring the double fusion strategy. Source, p. 4
- Fusion I (Attention Fusion): The Movement and Route sequences are fed into Transformer encoders. An Attention Fusion Decoder then aligns these two sequences. This is crucial because driving behavior (movement) is inherently constrained by the specific road segment (route) the driver is on.
- Fusion II (Embedding Fusion): The output from the first fusion is combined with the Global semantic embedding via a feed-forward network to produce the final trajectory representation.
The model is trained in a supervised fashion using three independent classifiers to ensure each modality contributes effectively to the final embedding.
Experimental Setup
The researchers used a private dataset from a navigation service company consisting of driving trajectories in Beijing from December 2018.
- Training Set: 10,575 trajectories from 100 unique drivers.
- Testing Set: 2,113 trajectories from 21 different drivers.
- Road Network: A graph with 4,158 vertices and 33,731 edges was constructed for the geometric pre-training phase.
Results and Discussion
The authors evaluated DouFu against several baselines (including single-modality RNNs and simpler fusion models) on two tasks: Trajectory-User Linking (classification) and Clustering.
Key Insights
- Route Choice as a Fingerprint: The paper highlights that route selection is rarely about just the "shortest path." By encoding the road network geometry through VGAE, DouFu captures the personalized "style" of a driver’s navigation.
- The "Why" Matters: Incorporating urban functional zones (land-use data) allows the model to differentiate between a morning commute to an office and a weekend trip to a park, even if the physical movement patterns look similar.
- Attention vs. RNNs: The authors found that the attention mechanism handles the "weak" dependencies of sparse GPS data much better than traditional Recurrent Neural Networks (RNNs), which often struggle with long sequences and gradient vanishing.
Performance Evaluation
Comparison of Adjusted Rand Scores across different model components. Source, p. 8
DouFu achieved an accuracy (ACC) of 43.81% and a Macro-F1 of 42.03% using Linear Regression, outperforming the "RNN Move" baseline (28.67% ACC) by a wide margin. In unsupervised tasks, DouFu showed a lower Davies-Bouldin index and higher Normalized Mutual Information (NMI) scores, indicating that its embeddings naturally group trajectories from the same driver more effectively than other methods. The learned embeddings performed significantly better with differentiable models (like MLPs and Linear Regression) than with non-differentiable ones (like Decision Trees), suggesting the model learns a smooth, uniform feature space.
Conclusion
DouFu demonstrates the power of multimodal fusion for trajectory representation. By jointly learning from physical movement, road-network geometry, and destination semantics, it captures nuanced driving behaviors that single-modality models miss. Future work could incorporate more explicit absolute position correlations and real-time traffic flow data to further refine the context of driving decisions.
Summary updated