TL;DR
SelfTrip is a novel self-supervised learning framework designed to suggest personalized sequences of points-of-interest (POIs) for travelers. By employing a two-step contrastive learning mechanism and clever data augmentation strategies, it overcomes the chronic "data sparsity" problem in trip recommendation, significantly outperforming existing deep learning benchmarks.
What Problem Does This Paper Address?
Trip recommendation (or itinerary planning) is far more complex than simple route planning. While a GPS tries to find the shortest path between A and B, a trip recommender must suggest a sequence of POIs that satisfies a user's specific constraints (start/end points, time budget, and number of stops) while capturing the nuances of human travel behavior.
The authors identify three primary hurdles:
- Heterogeneity of User Demands: Every traveler is different, and we only ever see a tiny fraction of possible query-trip combinations.
- Uncertainty in Trips: Even with a fixed query, a user's true preference is hard to pin down from sparse historical data.
- Complex Visiting Patterns: Exploring long-term dependencies and transitional regularities (e.g., why people go from a museum to a specific cafe) is difficult when data is thin.
Traditional heuristic and Markov-based models often fail to capture these high-order relations, while standard RNNs struggle when training data is limited.
Methods
The authors introduce SelfTrip, which breaks the problem into two self-supervised stages followed by a supervised fine-tuning stage:
- Stage I: Self-supervised POI Learning: To learn what makes a POI relevant to a specific query, the authors build an augmented POI graph using both historical transitions and geographical proximity (within 3km). They then use Causal Random Walks to generate a massive set of synthetic trips. A contrastive loss (Noise Contrastive Estimation) is used to ensure that POI embeddings are mathematically close to the queries they are likely to satisfy.
- Stage II: Self-supervised Trip Learning: To make the model robust against "noise" and uncertainty, the authors apply four data augmentation strategies to real trips:
- POI Mask: Randomly hiding stops.
- Shuffling: Changing the order of visits to mimic changing plans.
- Feature Cutoff: Erasing dimensions of the embedding.
-
Dropout: Randomly zeroing out values. By forcing the model to recognize that two different "views" of the same augmented trip are related, the model learns a more resilient representation of human mobility.
-
Formal Training with Destination Constraints: Finally, the model is trained to predict the next POI. A key innovation here is the destination-enabled signal: an auxiliary MLP layer that forces the model to keep the final destination in mind at every step of the sequence generation, preventing the "drift" common in recursive models.
Datasets
The researchers evaluated SelfTrip using four real-world datasets derived from Flickr check-ins, which are standard benchmarks in the field:
- Edinburgh: 33,944 visits, 5,028 trajectories.
- Glasgow: 11,434 visits, 2,227 trajectories.
- Osaka: 7,747 visits, 1,115 trajectories.
- Toronto: 39,419 visits, 6,057 trajectories.
Trajectories with fewer than three POIs were filtered out, and timestamps were normalized into 24-hour intervals.
Key Insights and Ideas
- Causal Random Walks as Data Factories: The most striking idea is using random walks on a POI graph to "hallucinate" training data. This bridges the gap between the limited number of recorded trips and the vast space of possible user queries.
- Contrastive Learning for Sparsity: Instead of just trying to predict the "next stop," the model learns by comparing. By contrasting a "positive" trip (real or augmented) against "negative" trips (randomly sampled), the model learns the underlying structure of a "good" trip even when examples are few.
- The Destination Anchor: Most RNN-based recommenders lose the thread as the sequence grows longer. By explicitly incorporating the destination into the loss function at every step (Equation 13), SelfTrip ensures the suggested itinerary actually ends where the user intended.
Key Results
SelfTrip was compared against seven benchmarks, including traditional Markov models and state-of-the-art deep learning models like DeepTrip and NASR+.
- Overall Accuracy: SelfTrip achieved the best performance across all four datasets. It showed an average improvement of 2.03% in $F_1$ score (measuring POI set accuracy) and 6.85% in pair-$F_1$ score (measuring the accuracy of the visiting order).
- Specific Gains: On the Osaka dataset, the model saw a massive 10% improvement in pair-$F_1$ over the next best benchmark, highlighting its ability to handle smaller, sparser datasets effectively.
- Ablation Success: The authors proved that every component mattered. Removing the contrastive learning or the destination signal led to measurable drops in performance.
Limitations and Future Work
While SelfTrip is powerful, the authors note a few areas for growth:
- Social Context: The current model focuses on geography and transition patterns but doesn't account for social characteristics (e.g., traveling with kids vs. solo, or user demographics).
- Augmentation Efficiency: While the four augmentation strategies helped, the authors observed that "Dropout" and "POI Mask" were the most efficient. They suggest that finding even more sophisticated ways to mimic human behavior could further boost performance.
- Road Network Constraints: The current model treats movement as "point-to-point" in a coordinate space. Integrating actual road network topology could make the recommendations even more practical for real-world navigation.
Summary updated