NETR-Tree: An Eifficient Framework for Social-Based Time-Aware Spatial Keyword Query

Zhixian Yang, Yuanning Gao, Xiaofeng Gao, Guihai ChenarXiv 2019 · OpenReview

Abstract

The development of global positioning systems stimulates the popularity of location-based social network (LBSN) services. With a large volume of data containing locations, texts, check-in information, and social relationships, spatial keyword queries in LBSNs have become increasingly complex. In this paper, we identify and solve the Social-based Time-aware Spatial Keyword Query (STSKQ) that returns the top-k objects by considering geo-spatial score, keywords similarity, visiting time score, and social relationship effect. To tackle STSKQ, we propose a two-layer hybrid index structure called Network Embedding Time-aware R-tree (NETR-Tree). In the user layer, we exploit the network embedding strategy to measure the relationship effect in users' relationship network. In the location layer, we build a Time-aware R-tree (TR-tree) considered spatial objects' spatiotemporal check-in information, and present a corresponding query processing algorithm. Finally, extensive experiments on two different real-life LBSNs demonstrate the effectiveness and efficiency of our methods, compared with existing state-of-the-art methods.

Introduction

In modern Location-Based Social Networks (LBSNs) like Yelp or Foursquare, users expect recommendations that go beyond simple proximity. A truly relevant result must satisfy four distinct dimensions simultaneously:

  1. Spatial: Physical distance from the user.
  2. Textual: Relevance to specific keywords (e.g., "sushi," "quiet").
  3. Temporal: Popularity or accessibility at a specific time (e.g., a nightclub at 10:00 PM vs. 10:00 AM).
  4. Social: Influence from the user's social circle or people with similar behavioral patterns.

Combining these four dimensions leads to a "curse of dimensionality," making traditional query processing painfully slow. Previous solutions often ignored social influence or relied on inefficient structures like "Routing R-trees," which duplicate data for every hour of the day, leading to massive storage overhead. To address these challenges, we introduce the Social-based Time-aware Spatial Keyword Query (STSKQ) and a novel framework to solve it efficiently.

The NETR-Tree Framework

We propose the Network Embedding Time-aware R-tree (NETR-Tree), a two-layer hybrid index structure designed to handle the multi-dimensional nature of STSKQ.

The two-layer hybrid index structure of NETR-Tree, integrating network embeddings and a time-aware R-tree.

The User Layer (Social)

Traditional social search often relies on explicit friend lists. However, social influence is broader. We utilize Network Representation Learning (NRL), specifically the LINE algorithm, to convert the social graph into mathematical vectors (embeddings). This allows the system to identify "neighbors" based on structural similarity and check-in patterns, even if they are not explicitly connected as friends. These embeddings facilitate rapid calculation of social relationship effects during query time.

The Location Layer (Spatial-Temporal-Textual)

The location layer is managed by a TR-tree (Time-aware R-tree). This structure evolves the standard R-tree by integrating:

  • Temporal Distributions: Each node stores check-in probability distributions for every hour of the day.
  • Category Entropy: A metric measuring the diversity of venues in a specific area. Areas with high category entropy (like commercial districts) are often more attractive to users.
  • Inverted Storage: A user-inverted storage scheme maps users to their check-in histories within the tree, accelerating social-score calculations.

Query Processing and Pruning

The framework employs a "best-first" traversal algorithm. By storing upper bounds for social, temporal, and textual scores within the tree nodes, the algorithm can "prune" (skip) entire branches of the spatial index that cannot possibly contain a top-k result. For instance, if a neighborhood is historically inactive at 3:00 AM, the algorithm skips it entirely without evaluating individual venues.

Experimental Evaluation

We evaluated the NETR-Tree against state-of-the-art baselines, including the standard IR-tree, the Routing R-tree, and the SKB-Inv index, using two real-world datasets:

  • Yelp: A dense dataset with ~100k objects and 15.8 million check-ins.
  • Weeplaces: A dataset with ~100k objects and 7.6 million check-ins, used to test performance with different social densities.

Key Results

As shown in the performance metrics, NETR-Tree offers significant advantages in both construction and query efficiency.

Comparison of construction time and index size across Yelp and Weeplaces datasets.
  • Efficiency: NETR-Tree is significantly more lightweight than the Routing R-tree, which suffers from high space costs due to temporal data duplication.
  • Query Speed: In the Yelp dataset, NETR-Tree consistently outperformed all others in response time and disk I/O.
  • Scalability: Performance remained stable as the number of requested results ($k$) or keywords increased, whereas baselines like the SKB-Inv index saw costs grow exponentially.
  • Social Pruning: Interestingly, increasing the weight of social influence actually improved query speed, as the social data provided a powerful additional signal for pruning irrelevant results.

Discussion and Future Work

While NETR-Tree sets a new standard for STSKQ efficiency, several areas remain for future exploration. The current model assumes a relatively static social graph; future iterations could incorporate high-frequency real-time updates for "trending" locations. Additionally, addressing the "cold start" problem for new users with no check-in history and investigating the privacy implications of deep network embeddings are vital steps toward deploying such systems in production environments.

Summary updated

BibTeX
@misc{yang2019netr,
  author = {Zhixian Yang and Yuanning Gao and Xiaofeng Gao and Guihai Chen},
  title = {{NETR-Tree: An Eifficient Framework for Social-Based Time-Aware Spatial Keyword Query}},
  year = {2019},
  eprint = {1908.09520},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.09520},
}
Figure