Introduction
Predicting a user's next destination is a fundamental task for location-based services, ranging from personalized marketing to urban planning. While sequential models like Recurrent Neural Networks (RNNs) and Long Short-Term Memory (LSTM) networks have seen success in natural language processing, their application to human mobility is non-trivial. Standard models often treat a sequence of check-ins as a simple ordered list, much like words in a sentence, failing to account for the continuous and irregular nature of time and space.
The Challenge of Spatio-Temporal Context
In human mobility, the "distance" between two events is not just a step in a sequence; it is defined by both the time elapsed ($\Delta t$) and the geographical distance traveled ($\Delta d$). A check-in at a cafe five minutes after leaving a nearby office carries different predictive weight than a check-in at a restaurant five hours later across the city.
Existing approaches, such as ST-RNN, attempted to incorporate these factors using transition matrices. However, these methods often suffer from data sparsity due to the discretization of continuous variables and struggle to distinguish between a user's long-term preferences and their immediate, short-term trajectory.
Methodology: The Spatio-Temporal Gated Network (STGN)
To address these limitations, Zhao et al. (AAAI-19) proposed the Spatio-Temporal Gated Network (STGN). The core innovation lies in the integration of specialized gates within the LSTM architecture that explicitly model spatio-temporal intervals.
Spatio-Temporal Gates
STGN introduces two sets of gates to modulate information flow:
- Short-term Gates ($T1_t, D1_t$): These gates act on the current input. By applying a negative weight constraint, the model ensures that smaller time intervals and shorter distances result in "wider" gate openings, allowing recent behavior to have a stronger influence on the next prediction.
- Long-term Gates ($T2_t, D2_t$): These are incorporated into the cell state update. They allow the model to capture periodic behaviors and long-term interests by considering the broader spatio-temporal context of the user's history.
Efficiency through Coupling (STGCN)
Recognizing the increased parameter count of STGN, the authors also introduced the Spatio-Temporal Gated Coupled Network (STGCN). This variant utilizes coupled input and forget gates, reducing complexity while maintaining high performance and robustness.
Experimental Evaluation
The model was evaluated on four diverse real-world datasets from Location-Based Social Networks (LBSNs): California (CA), Singapore (SIN), Gowalla, and Brightkite. Users with fewer than 10 check-ins were filtered to ensure sufficient historical data for modeling.
Performance Results
STGN and STGCN consistently outperformed state-of-the-art baselines, including vanilla LSTMs and ST-RNN.
- Accuracy: On the CA dataset, STGCN achieved an improvement in Acc@1 ranging from 34.8% to 68.6% over other RNN-based methods.
- Robustness: The model showed superior performance across all metrics (Acc@1, Acc@5, Acc@10, and MAP) on all datasets, demonstrating its effectiveness across different geographic scales.
- Cold Start Handling: Interestingly, the gated mechanism proved particularly effective for users with sparse data, as the physical constraints of time and distance provide a strong inductive bias that generalizes better than pure sequence learning.
Conclusion
The STGN framework represents a significant advancement in POI recommendation by moving beyond simple sequence modeling to a physically-grounded architecture. By treating time and distance as active modulators of memory and input, the model captures the nuances of human mobility more effectively. Future work may involve incorporating semantic data, such as POI categories or social ties, to further enrich the recommendation context.
Summary updated