Skip to main content
QUICK REVIEW

[Paper Review] Efficient Spatial Keyword Search in Trajectory Databases

Gao Cong, Hua Lu|arXiv (Cornell University)|May 13, 2012
Data Management and AlgorithmsComputer Science34 references24 citations
TL;DR

This paper proposes an efficient top-k spatial keyword query (TkSK) method for trajectory databases that combines text relevance and spatial proximity using a novel hybrid index called the cell-keyword conscious B+-tree (Bck-tree). The approach enables fast, scalable retrieval of k trajectories with the shortest match distance—defined as the sum of sub-trajectory length covering query keywords and distance from the query location to the sub-trajectory's start—demonstrating superior performance over baselines in empirical evaluations on BerkeleyDB.

ABSTRACT

An increasing amount of trajectory data is being annotated with text descriptions to better capture the semantics associated with locations. The fusion of spatial locations and text descriptions in trajectories engenders a new type of top-$k$ queries that take into account both aspects. Each trajectory in consideration consists of a sequence of geo-spatial locations associated with text descriptions. Given a user location $λ$ and a keyword set $ψ$, a top-$k$ query returns $k$ trajectories whose text descriptions cover the keywords $ψ$ and that have the shortest match distance. To the best of our knowledge, previous research on querying trajectory databases has focused on trajectory data without any text description, and no existing work has studied such kind of top-$k$ queries on trajectories. This paper proposes one novel method for efficiently computing top-$k$ trajectories. The method is developed based on a new hybrid index, cell-keyword conscious B$^+$-tree, denoted by \cellbtree, which enables us to exploit both text relevance and location proximity to facilitate efficient and effective query processing. The results of our extensive empirical studies with an implementation of the proposed algorithms on BerkeleyDB demonstrate that our proposed methods are capable of achieving excellent performance and good scalability.

Motivation & Objective

  • To address the lack of support for top-k spatial keyword queries on trajectory databases that integrate both textual descriptions and spatial locations.
  • To enable efficient and scalable processing of queries that retrieve k trajectories with the shortest match distance, combining keyword coverage and spatial proximity.
  • To design a hybrid index structure that simultaneously prunes search space using both text relevance and spatial distance.
  • To support real-world applications such as route sharing, social network check-ins, and user-generated travel itineraries where users seek relevant, short-distance travel paths.
  • To provide a solution compatible with mainstream DBMSs, unlike prior hybrid indexing approaches that lack database integration.

Proposed method

  • Proposes the cell-keyword conscious B+-tree (Bck-tree), a novel hybrid index that integrates spatial partitioning with keyword-aware B+-tree structures to enable joint pruning of search space using text and location.
  • Designs a match distance computation algorithm (Match) that calculates the shortest sub-trajectory covering all query keywords and the distance from the query location to the sub-trajectory's start point.
  • Employs a two-phase query processing strategy: first, use the Bck-tree to identify candidate trajectories based on spatial proximity and keyword relevance; second, compute exact match distances for top-k ranking.
  • Uses cell-based spatial partitioning to group trajectories and associate each cell with keyword postings, enabling efficient pruning during query evaluation.
  • Leverages the fanout independence of B+-trees to reduce tree height and improve I/O efficiency, while incorporating keyword signatures for fast filtering.
  • Implements the solution on BerkeleyDB to ensure compatibility with standard DBMSs and evaluate performance under realistic workloads.

Experimental results

Research questions

  • RQ1Can a hybrid index structure effectively combine spatial and textual indexing to accelerate top-k spatial keyword queries on trajectory data?
  • RQ2How does the proposed Bck-tree index compare to existing spatial and keyword indexes in terms of query processing performance and scalability?
  • RQ3To what extent can joint pruning of spatial and textual search space reduce I/O and CPU overhead in trajectory database queries?
  • RQ4Is the proposed method scalable and efficient enough for real-world trajectory databases with large volumes of geo-tagged, text-annotated data?
  • RQ5Can the solution be efficiently deployed on standard DBMS platforms, unlike prior hybrid indexing solutions?

Key findings

  • The proposed Bck-tree index significantly outperforms baseline methods in query processing time, achieving superior performance on trajectory databases with text-annotated locations.
  • The Match algorithm efficiently computes the match distance by identifying the shortest sub-trajectory covering all query keywords, reducing computational overhead.
  • Empirical evaluation on BerkeleyDB shows the proposed method scales well with increasing data size and query complexity.
  • The hybrid Bck-tree structure enables effective pruning using both spatial proximity and keyword relevance, reducing the number of candidate trajectories examined.
  • The solution is compatible with mainstream DBMSs, unlike prior hybrid indexing approaches that require custom storage engines.
  • The method demonstrates excellent scalability and efficiency, making it suitable for real-world applications such as GPS trajectory sharing and location-based social networks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.