Speed Partitioning for Indexing Moving Objects

Xiaofeng Xu, Li Xiong, Vaidy Sunderam, Jinfei Liu, Jun Luo

TL;DR

This paper introduces a novel Speed Partitioning (SP) technique that optimizes how moving objects (like vehicles or pedestrians) are indexed in databases. By mathematically analyzing how fast index bounding boxes grow over time and using dynamic programming to find optimal speed boundaries, the proposed method significantly reduces unnecessary data access and dramatically improves query performance over existing heuristic methods.

What Problem Does This Paper Address?

Moving Object Databases (MODs) are crucial for location-based services like ride-sharing (e.g., Uber) and crowd-sourced traffic monitoring (e.g., Waze). To handle high update rates and support predictive queries (e.g., "Where will this vehicle be in 5 minutes?"), these databases use motion functions to represent object trajectories within tree-based indexes.

However, a major challenge is search space expansion. Over time, the spatial area (Minimum Bounding Rectangle, or MBR) of an index node grows. If a high-speed vehicle and a slow pedestrian are grouped into the same index node, the bounding box expands at the rate of the fast vehicle. This forces the system to scan this bloated node even for queries targeting slow-moving objects, severely degrading query performance.

While previous works attempted to partition objects by velocity or direction, they relied on simple heuristics. This paper addresses the lack of a formal, analytical approach to finding mathematically optimal partitioning boundaries.

Fig. 1: Search space expansion of an index node

Methods

The authors propose a formal framework to minimize search space expansion, treating it as a geometric optimization problem:

  1. Cost Metric Formulation: The expansion of an index node over time is modeled as a trapezoid prism (where the top base is the initial area and the bottom base is the future expanded area). The volume of this prism represents the search space expansion.
  2. Handling Non-Uniform Distribution: Real-world data is rarely uniform. The authors use a Quad-tree-based merging algorithm to divide the spatial domain into subregions where object distributions are statistically uniform, ensuring accurate cost estimations.
  3. Dynamic Programming Optimization: The problem of finding the optimal speed ranges to split the index is formulated and solved using Dynamic Programming (DP). The algorithm automatically determines both the optimal number of partitions ($k$) and the exact speed boundaries.
  4. Two-Level Partitioning: Within each optimal speed partition, the system can optionally apply a second-level direction-based split (into 4 quadrants) if it further reduces the expansion metric.

The resulting architecture utilizes a centralized index controller that duplicates incoming queries and processes them across the optimized index partitions (such as partitioned $B^x$-trees or $TPR^*$-trees).

Datasets

The authors evaluated their approach using both simulated and real-world datasets:

  • Simulated Traffic Data: Generated using Brinkhoff’s network-based moving object generator on real road networks from Seoul (SEO), London (LD), and Boston (BOS) downloaded from OpenStreetMap. Objects were assigned speeds based on road categories (freeways, primary roads, residential streets).
  • Real-World GPS Tracking Data: The Shenzhen (SZ) dataset, containing 100K taxi trajectories within the urban area of Shenzhen, China, sampled at minimum intervals of 15 seconds.

Key Insights and Ideas

  • The "Fast-Spoils-Slow" Effect: Grouping objects with highly divergent speeds is inherently inefficient. Isolating high-speed objects prevents them from artificially inflating the search space of slower objects.
  • Direction Matters More at High Speeds: The authors observed that direction-based quadrant partitioning yields the highest benefits within high-speed partitions, as direction has a more pronounced impact on how fast a high-speed bounding box expands.
  • Low Overhead, High Reward: Finding the global optimum via DP sounds computationally expensive, but because the speed domain can be discretized into a small number of distinct values ($q$), the algorithm runs in $O(N + q^2)$ time, making periodic re-partitioning highly practical.

Key Results

  • Performance Boost: The Speed Partitioning approach consistently outperformed baseline indexes ($B^x$-tree and $TPR^*$-tree) as well as state-of-the-art velocity and direction-based partitioning methods (VMBR and DVA) across all datasets.
  • Throughput and Latency: SP significantly increased query throughput and reduced response times for both predictive range queries and $k$-Nearest Neighbor ($k\text{NN}$) queries.
  • Efficiency: The execution time for the optimal partitioning algorithm was under 2 seconds in all experimental settings, proving that the system can easily handle hourly partition updates to adapt to changing traffic patterns (e.g., rush hours vs. regular hours).

Limitations and Future Work

While highly effective, the authors note a few areas for improvement:

  • Refining Estimations: The current model assumes empirical speed distributions; incorporating analytical methods like Kernel Density Estimation (KDE) could yield even tighter optimization boundaries.
  • Highly Dynamic Scenarios: More sophisticated, adaptive partition update routines could be developed for environments where location and velocity distributions fluctuate rapidly.
  • Index Variety: The current work focuses strictly on tree-based indexes; the authors plan to extend this speed-partitioning philosophy to grid-based indexing structures in the future.

Summary updated

BibTeX
@inproceedings{xu2015speed,
  author = {Xiaofeng Xu and Li Xiong and Vaidy Sunderam and Jinfei Liu and Jun Luo},
  title = {{Speed Partitioning for Indexing Moving Objects}},
  booktitle = {SSTD},
  year = {2015},
  doi = {10.1007/978-3-319-22363-6\_12},
}
Figure