TL;DR
This paper introduces a novel graph embedding method (EDHG) to predict student locations on campus, outperforming existing methods by leveraging a rich, dense dataset of WiFi access logs. The research highlights the importance of modeling student activity beyond recreational check-ins and demonstrates the effectiveness of a tailored negative sampling strategy for graph embeddings.
What Problem Does This Paper Address?
Predicting where a user might go next (Point-of-Interest or POI prediction) is a key task in location-based services, with applications ranging from personalized recommendations to urban planning. Most prior work has relied on voluntary check-in data from social apps like Foursquare or Yelp. While this data captures recreational activities, it often lacks information about more mundane daily routines (e.g., attending classes, studying in libraries, or resting in dorms). This sparsity and focus on recreation can bias models and limit their applicability to richer, more comprehensive datasets. This paper addresses this gap by analyzing a unique, dense dataset of student WiFi access logs from Purdue University, aiming to improve POI prediction by capturing a wider range of student activities and behaviors.
Methods
The core of this paper is the Embedding for Dense Heterogeneous Graphs (EDHG) method. EDHG constructs a heterogeneous graph that represents relationships between users, POIs (buildings), time slots, and activities. Key aspects of the method include:
- Heterogeneous Graph Construction: The graph includes edges for POI-user, POI-time, and POI-activity relationships, with weights derived from co-occurrence counts. Notably, POI-POI transition edges, common in prior work, were found to degrade performance on this dense dataset and were excluded.
- Time Indexing: A 28-slot time indexing scheme is used to capture both daily and weekly temporal patterns in student behavior.
- Improved Negative Sampling: A significant contribution is a novel negative sampling strategy for graph embedding. Unlike traditional methods that rely on vertex degree, EDHG incorporates global graph statistics and POI category information. This is crucial for dense graphs where popularity-based sampling can lead to selecting actual neighbors as negative samples, hindering learning.
- Joint Training: Embeddings for users, POIs, time slots, and activities are learned jointly by iterating through bipartite graphs (POI-user, POI-time, POI-activity) in a round-robin fashion.
- POI Prediction: A scoring function,
S(b|u, t) = zu * zu + zo * zt, is used to rank POIs for a given user and time slot, leveraging learned embeddings. - Friend Suggestion: The learned user embeddings are used to identify potential friends based on their similarity in the embedding space.
Datasets
The paper introduces and utilizes a novel dataset:
- Purdue University WiFi Access Logs: This dataset comprises anonymized WiFi access records for freshmen students over one semester. It includes over 1 billion entries detailing activity time, user ID, MAC address, and building ID. Building profiles provide category and functionality information. The data is significantly denser than traditional LBSN datasets due to passive WiFi logging.
- Comparison Datasets: For evaluation of prior methods (like GE), the paper references their original datasets (Foursquare and Gowalla).
Key Insights and Ideas
- Dense Data Requires Different Strategies: The assumption that POI-POI transition edges are always beneficial is challenged. For dense datasets like student WiFi logs, these edges can actually hurt performance, suggesting that context beyond direct transitions is more important.
- Tailored Negative Sampling is Crucial: The improved negative sampling strategy in EDHG, which considers global graph statistics and POI categories, is key to its success on dense data. This highlights that generic negative sampling methods may not be optimal for all graph structures.
- Beyond Recreation Matters: Capturing a wider range of activities (class, study, dining, exercise) through dense WiFi logs provides a richer understanding of student mobility and leads to more accurate POI predictions compared to models trained solely on recreational check-ins.
- Temporal Granularity is Important: Both daily and weekly temporal patterns significantly impact POI prediction accuracy, with time-of-day effects appearing more dominant for students.
- Embeddings Enable Multiple Tasks: The learned user embeddings are not only effective for POI prediction but also show promise for friend suggestion, demonstrating the versatility of the heterogeneous graph embedding approach.
Key Results
- POI Prediction Accuracy: EDHG significantly outperforms baseline methods (NBC, GE, GE++) and its own variants (EDHG-NS, EDHG-POI) on both visited and unvisited POI prediction tasks. For visited POIs, EDHG achieves an accuracy@1 of 0.6846, compared to 0.3019 for GE++. For unvisited POIs, EDHG achieves 0.0072, a substantial improvement over NBC's 5.4e-05.
- Friend Suggestion Effectiveness: EDHG shows higher relevance for friend suggestions based on co-visitation data compared to GE, suggesting it better captures social behaviors from spatio-temporal data.
- Efficiency: The EDHG model is efficient, taking about 18 minutes to train on a network with 6486 nodes and 315,407 edges on a single machine.
- Parameter Sensitivity: The model's performance is robust to variations in the number of iterations and embedding vector dimensions, converging quickly. A negative sample size of 10 was found to be optimal.
Limitations and Future Work
- Co-visitation Data Integration: The paper acknowledges that co-visitation data was primarily used for evaluation rather than direct integration into the training model. Future work could explore incorporating this data into the training process to see if social interactions impact check-in behavior.
- Dynamic Negative Sampling: The authors suggest further improving negative sampling by dynamically selecting informative samples during each Stochastic Gradient Descent (SGD) update.
- Broader Applications: While the study focuses on student behavior, the insights and methods could be extended to other domains with dense spatio-temporal data for personalized recommendations, retention prediction, and understanding user behavior.
Summary updated