Context-Aware Attention-Based Data Augmentation for POI Recommendation

Yang Li, Yadan Luo, Zheng Zhang, Shazia W. Sadiq, Peng CuiWorkshops @ ICDE 2019 · DOI

Abstract

With the rapid growth of location-based social networks (LBSNs), Point-Of-Interest (POI) recommendation has been broadly studied. Recently, next POI recommendation has attracted attention, aiming to suggest the next POI in spatial and temporal contexts. However, existing approaches suffer from missing and irregular check-in data. We propose PA-Seq2Seq, an attention-based sequence-to-sequence generative model, to address training set sparsity by making check-in records evenly spaced. Specifically, the encoder summarizes check-in sequences, and the decoder predicts missing check-ins. We employ a local attention mechanism to help the decoder focus on relevant context. Experiments on Gowalla and Brightkite datasets demonstrate the model's effectiveness.

The Challenge of Sparse Check-in Data

In Location-Based Social Networks (LBSNs), predicting a user's next destination is a valuable but difficult task due to "data sparsity." Users rarely check in at every location they visit. A user might visit five locations in an afternoon but only record one check-in. This leaves significant gaps in trajectories.

Filling gaps in sparse check-in data to create evenly-spaced trajectories.

If a model only sees a user at Point A at 8 AM and Point B at 7 PM, it misses the transition patterns. Traditional linear interpolation fails because human movement is constrained by geography and preference. PA-Seq2Seq aims to impute these missing records to create trajectories with consistent time intervals (e.g., every 3 hours), which are more suitable for sequential modeling.

The PA-Seq2Seq Model

The proposed POI-Augmentation Seq2Seq (PA-Seq2Seq) model transforms sparse sequences into evenly spaced ones using a generative approach.

Stacked Encoder

The encoder uses a bi-directional LSTM layer followed by a uni-directional LSTM. It fuses three primary features: the POI representative vector, the time interval ($\Delta t$), and the distance ($\Delta d$). Residual connections are employed between layers to ensure smooth gradient flow during training.

Local Attention Decoder

Standard attention mechanisms look at the entire input history, which can introduce noise. For a missing check-in, the most relevant information is usually the immediate preceding and succeeding context. PA-Seq2Seq implements a local attention mechanism that focuses on a specific window around the target point, using a Gaussian distribution to weight nearby records.

The PA-Seq2Seq decoder architecture featuring a local attention mechanism for context-aware imputation.

Training Strategy

The model undergoes multi-stage training to ensure robust imputation:

  1. Pre-training: Encoder and decoder are trained via Maximum Likelihood Estimation (MLE).
  2. Mask Training: Similar to masked language modeling, the model learns to predict randomly masked check-ins within a sequence.
  3. Regularization: "Zoneout" regularization is used to prevent overfitting and help the model capture unobserved patterns.

Experimental Evaluation

The model was evaluated on two large-scale LBSN datasets: Gowalla (0.012% density) and Brightkite (0.209% density). Both represent extreme sparsity scenarios.

Key Results

Augmenting data with PA-Seq2Seq consistently outperformed original sparse data and linear interpolation across state-of-the-art recommendation models like ST-CLSTM.

  • Gowalla: For the ST-CLSTM model, the Hit Ratio @ 10 (HR@10) improved from 0.179 (original) to 0.207 (PA-Seq2Seq).
  • Brightkite: Similarly, HR@10 improved from 0.522 to 0.543.
  • Comparison: PA-Seq2Seq generally outperformed linear interpolation methods by approximately 4%, proving that the generative approach captures more realistic human behavior than simple geometric math.

Conclusion and Future Directions

While effective, the model faces challenges with long-distance jumps (over 10km) and city-to-city transitions. Future work may involve Generative Adversarial Networks (GANs) for more indistinguishable imputations and automated time-slot determination to handle varying gap durations without manual tuning.

Summary updated

BibTeX
@inproceedings{li2019context,
  author = {Yang Li and Yadan Luo and Zheng Zhang and Shazia W. Sadiq and Peng Cui},
  title = {{Context-Aware Attention-Based Data Augmentation for POI Recommendation}},
  booktitle = {Workshops @ ICDE},
  year = {2019},
  doi = {10.1109/icdew.2019.00-14},
}
Figure