A MovingObject Index for Efficient Query Processing with Peer-Wise Location Privacy

Dan Lin, Christian S. Jensen, Rui Zhang, Lu Xiao, Jiaheng Lu

TL;DR

Existing location-based services protect location privacy from service providers, but offering peer-wise privacy—restricting which fellow users can see where you are—typically relies on naive post-query filtering that incurs massive disk I/O. The Policy-Embedded $B^x$-tree (PEB-tree) integrates spatio-temporal location proximity and privacy policy compatibility directly into a $B^+$-tree index key. By prioritizing policy compatibility over spatial coordinates in the index layout, the PEB-tree reduces query I/O by up to an order of magnitude.

What Problem Does This Paper Address?

Most location privacy research addresses provider-wise privacy (e.g., spatial cloaking, cryptographic PIR) to prevent a central service provider from knowing a user's exact coordinates. However, in applications like friend-finders or enterprise tracking, users need peer-wise privacy: controlling which peers can see their location based on context (e.g., "coworkers can only see my location when I am at the office during work hours").

The state-of-the-art solution simply executed a traditional spatial query (retrieving everyone inside a query range) and filtered out unauthorized users afterward. When the querying user has access to only a small subset of nearby peers, this spatial-first filtering strategy wastes considerable I/O reading records that are immediately discarded.

Methods

The authors propose the PEB-tree, built on top of the moving-object $B^x$-tree (which uses standard $B^+$-trees):

  1. Policy Encoding into Sequence Values (SV):
  2. Compares user policy pairs $(u_1, u_2)$ based on spatial and temporal overlap to compute a policy compatibility score $C(u_1, u_2) \in [0, 1]$.
  3. Generates a 1D sequence value ($SV$) such that users with compatible policies receive closely clustered numerical values, separated by a buffer $\delta > 1$ across disconnected user groups.
  4. Composite PEB Key: The index key concatenates: $$\text{PEB\_key} = [\text{TID}]_2 \oplus [\text{SV}]_2 \oplus [\text{ZV}]_2$$ where $\text{TID}$ is the temporal partition, $\text{SV}$ encodes policy compatibility, and $\text{ZV}$ is the spatial Z-order curve value. Placing $\text{SV}$ before $\text{ZV}$ clusters authorized peers into contiguous disk blocks.

  5. Query Processing:

  6. Privacy-Aware Range Query (PRQ): Translates the query into non-overlapping interval lookups over $[\text{StartPnt}; \text{EndPnt}]$, skipping ranges belonging to users already processed.
  7. Privacy-Aware $k\text{NN}$ (PkNN): Organizes potential candidate searches into a 2D matrix of $(\text{SV}, \text{ZV})$ ranges and traverses it using a triangular search order, alternating between checking closer spatial rings and moving to slightly less compatible peers until $k$ verified neighbors are found.
  8. Analytical Cost Model: A closed-form cost model captures query I/O as a function of the user grouping factor $\theta$, policy count $N_p$, and total users $N$.

Datasets

The authors evaluated the method using synthetic moving-object workloads across a $1000 \times 1000$ space:

  • Uniform Datasets: User positions distributed uniformly at random, moving in random directions with speeds from 0 to 3 units/min.
  • Network-Based Datasets: Generated via the standard Brinkhoff/Saltenis benchmark generator, simulating vehicles traveling on bidirectional road networks connecting 25 to 500 destination hubs with varying speeds (0.75, 1.5, and 3 units/min).
  • Workload Scale: 10K to 100K moving users (default: 60K), with 10 to 100 privacy policies per user (default: 50) and varying grouping factors ($\theta \in [0, 1]$).

Key Insights and Ideas

  • Social Sparsity Trumps Spatial Proximity: In real life, a user typically shares location data with dozens or hundreds of peers—a fraction of the thousands of physical strangers nearby. Placing sequence values before spatial Z-values in the key ensures queries only touch disk pages containing relevant peers.
  • Triangular Matrix Search for $k\text{NN}$: Rather than expanding concentric spatial circles blindly, evaluating candidates along the diagonal trade-off between spatial closeness and policy compatibility reaches $k$ verified results much faster.
  • Database-Friendly Implementation: By leveraging 1D linearization, the PEB-tree requires no custom spatial storage engines and can be directly implemented on commercial $B^+$-tree storage engines.

Key Results

  • 10× Lower I/O: At 100K users, the PEB-tree required roughly one-tenth the disk I/O of the spatial-filtering baseline for both range and $k\text{NN}$ queries.
  • Insensitivity to Query Window Size: As the range query window expanded from 100 to 1,000 units, the baseline spatial index I/O rose sharply, while PEB-tree I/O remained almost constant because candidate lookups were bounded by the user's friend list.
  • Negligible Preprocessing: Policy encoding completed in under 10 seconds for 100,000 users on commodity hardware.
  • Break-Even Limit: The cost model revealed that the PEB-tree outperforms spatial indexing as long as users are related to less than ~5% of the total population (e.g., $<5,000$ connections in a 100K population).

Limitations and Future Work

  • Dense Social Graphs: If users grant location access to a large fraction ($>5\%$) of the population, the PEB-tree loses its advantage over simple spatial indices.
  • Multiple Policy Resolution: The compatibility metric assumes a single primary policy between user pairs; handling multi-condition overlapping policies remains future work.
  • Broader Query Types: The paper addresses range and $k\text{NN}$ queries, leaving continuous queries, aggregate spatial queries, and trajectory queries for future exploration.

Summary updated

BibTeX
@article{lin2011movingobject,
  author = {Dan Lin and Christian S. Jensen and Rui Zhang and Lu Xiao and Jiaheng Lu},
  title = {{A MovingObject Index for Efficient Query Processing with Peer-Wise Location Privacy}},
  journal = {Proc. VLDB Endow.},
  year = {2011},
  url = {https://openreview.net/forum?id=gv637a8ic48},
}
Figure