Revisiting Mobility Modeling with Graph: A Graph Transformer Model for Next Point-of-Interest Recommendation

Xiaohang Xu, Toyotaro Suzumura, Jiawei Yong, Masatoshi Hanai, Chuang Yang, Hiroki Kanezashi, Renhe Jiang, Shintaro FukushimaSIGSPATIAL/GIS 2023 · DOI

TL;DR

This paper introduces MobGT, a novel graph transformer model for next Point-of-Interest (POI) recommendation. It addresses the challenge of effectively integrating spatial and temporal mobility data by proposing a multi-view global graph approach and a graph transformer for local mobility patterns, achieving significant improvements over state-of-the-art methods.

What Problem Does This Paper Address?

Recommending the next Point-of-Interest (POI) is a crucial task in urban mobility applications, helping users discover places they might want to visit next. Existing methods often struggle to effectively combine the rich spatial and temporal information present in user trajectories. While some models use graph neural networks (GNNs) to capture global relationships, they may overlook fine-grained spatial details or struggle with complex temporal patterns. Temporal information alone isn't always sufficient, as users often visit nearby POIs, making spatial adjacency a key factor. Furthermore, capturing intricate user behaviors like returning to a starting point or repeating mobility patterns is difficult for traditional sequential models. Finally, the "long-tail" nature of POI data, where many locations are rarely visited, poses a challenge for training robust models.

Methods

The proposed Mobility Graph Transformer (MobGT) tackles these challenges with several key innovations:

  • Multi-View Global Graph: MobGT constructs three distinct global graphs to represent POI relationships:
  • Spatial Graph: Connects geographically adjacent POIs (within a threshold distance).
  • Temporal Graph: Captures the frequency of POI transitions over time.
  • Category Graph: Models transitions between POI categories. These graphs are then used with GCNs to learn global POI embeddings that fuse spatial, temporal, and categorical information.

  • Graph Transformer for Local Mobility: For each user's trajectory, MobGT creates a "local mobility graph." This graph is then processed by a specialized graph transformer module. This module is designed to capture high-order dependencies and explicit contextual information within a user's specific movement patterns, going beyond simple sequential modeling.

  • Spatial-Temporal (ST) Graph Attention: A core component of the local graph processing is the ST Graph Attention module. It incorporates structural encodings (node degrees, positional embeddings), location encodings (shortest hop distance, Haversine distance), and a novel "Trending Encoding" to capture complex relationships between POIs in a user's trajectory.
  • Tail Loss Function: To address the long-tail problem in POI data, MobGT introduces a novel "Tail Loss" function. This loss function is designed to give more weight to less frequent POIs, improving the model's ability to recommend them.

Datasets

The paper evaluates MobGT on three datasets:

  • Gowalla-NV: A public Location-Based Social Network (LBSN) dataset.
  • Foursquare-TKY: Another public LBSN dataset.
  • Toyota-TKY: A private dataset collected from Toyota car GPS systems in the Tokyo metropolitan area.

These datasets vary in size and characteristics, providing a comprehensive evaluation. The authors note that the Toyota dataset exhibits more regular mobility patterns compared to the others.

Key Insights and Ideas

  • Spatial-Temporal Synergy: The paper strongly emphasizes that effective POI recommendation requires a deep integration of both spatial and temporal information, and that neither alone is sufficient. Spatial adjacency, in particular, is highlighted as a crucial factor often overlooked by purely temporal models.
  • Global vs. Local Context: MobGT's success stems from its ability to leverage both global POI relationships (learned from all users) and individual user mobility patterns (learned from their specific trajectories). This dual approach provides a more holistic understanding of user behavior.
  • Graph Transformer for Fine-Grained Mobility: Applying transformer-like mechanisms to graph structures for local mobility patterns is a novel way to capture complex, high-order relationships within a user's movement history.
  • Addressing Data Imbalance: The introduction of "Tail Loss" is a practical and important contribution for real-world recommendation systems, which are often plagued by long-tail distributions of popular items.

Key Results

MobGT consistently outperforms state-of-the-art baseline models across all three datasets and evaluation metrics (Acc@k, NDCG@k, MRR). The paper reports an average improvement of 24% across metrics. For instance, on the Toyota dataset, MobGT achieved an Acc@1 of 26.34%, significantly outperforming the previous best model (LSTPM) at 19.18%. Ablation studies confirm that each component of MobGT contributes to its overall performance, with the ST contextual component having the most significant impact.

Limitations and Future Work

  • Dataset Sparsity: The paper acknowledges that performance can be lower on sparser datasets (like Gowalla-NV) due to the larger geographical area and more scattered user trajectories.
  • Future Work: The authors suggest building modules to specifically learn features of long-tail data to further improve recommendations for less popular POIs. They also propose enhancing user embedding by clustering user movement trajectories beforehand to facilitate learning from similar user patterns.

Summary updated

BibTeX
@inproceedings{xu2023revisiting,
  author = {Xiaohang Xu and Toyotaro Suzumura and Jiawei Yong and Masatoshi Hanai and Chuang Yang and Hiroki Kanezashi and Renhe Jiang and Shintaro Fukushima},
  title = {{Revisiting Mobility Modeling with Graph: A Graph Transformer Model for Next Point-of-Interest Recommendation}},
  booktitle = {SIGSPATIAL/GIS},
  year = {2023},
  doi = {10.1145/3589132.3625644},
}
Figure