Monitoring the Top-m Aggregation in a Sliding Window of Spatial Queries

Farhana Murtaza Choudhury, Zhifeng Bao, J. Shane Culpepper, Timos SellisarXiv 2016

TL;DR

This paper tackles the challenge of identifying the most "popular" spatial objects in real-time as a stream of location-based queries (like "find nearby restaurants") arrives. They introduce a novel approach that efficiently monitors these top objects by cleverly bounding their potential ranks and using an index called an Inverted Rank File (IRF), significantly outperforming a naive baseline.

What Problem Does This Paper Address?

Imagine you're building a system that needs to constantly know which real estate listings, restaurants, or points of interest are currently the most "popular" based on user queries. These queries are spatial (e.g., "show me houses near this location") and arrive in a continuous stream. Furthermore, the definition of "popularity" changes as new queries arrive and older ones become less relevant (a sliding window of queries). This problem is tricky because:

  1. Spatial Queries: The "rank" of an object depends on its distance to the query location, which is unknown beforehand for future queries.
  2. Streaming Data: Queries arrive continuously, and we need to update our results efficiently without re-processing everything.
  3. Sliding Window: Only the most recent queries matter, meaning older queries and their influence on object popularity must eventually be discarded.
  4. Top-m Aggregation: We're not just interested in one object, but the top 'm' most popular ones.

Existing work in rank aggregation, continuous queries, or spatial databases individually doesn't fully address this combined challenge.

Methods

The authors propose a two-pronged approach: an exact solution and a more efficient approximate solution.

  • Exact Solution: This involves computing the exact popularity of objects for every query in the current window and then sorting to find the top-m. While accurate, it's computationally expensive.
  • Approximate Solution (Core Contribution): This is where the innovation lies.
  • Rank Bounds: They first develop methods to calculate lower and upper bounds on an object's rank for any unseen query within a spatial region. This is crucial for predicting how an object might rank without knowing the exact query location.
  • Inverted Rank File (IRF): An index is built by partitioning space (using a quadtree) and pre-computing these rank bounds for objects within each spatial cell. This allows for quick estimation of ranks for incoming queries.
  • Safe Ranking: Concepts like "block-level safe rank" (BSR) and "object-level safe rank" (OSR) are introduced. These act as thresholds to determine if the current top-m results are still valid without needing to re-evaluate all objects.
  • Validation Objects: To further optimize updates, they identify a set of "validation objects." If the current top-m objects are "safer" than these validation objects, no update is needed.
  • Efficient Updates: The system is designed to only re-compute popularity for objects that are likely to affect the top-m results, leveraging computations from previous windows where possible.

Datasets

  • Aus Dataset: Real estate property sales data from a major Australian city (52,913 properties). Queries were generated from the locations of 987 facilities (schools, stations, etc.).
  • Foursq Dataset: Points of Interest (POI) data from Foursquare (304,133 POIs) across 34 US cities. Queries were generated from user check-ins.

The paper notes that the Aus dataset is better suited for effectiveness studies due to its city-scale nature and real facility locations, while Foursq is better for scalability due to its country-wide spread.

Key Insights and Ideas

  • Bounding is Key: The core insight is that you don't need exact ranks for all objects for all queries to maintain a good approximation of the top-m. Bounding potential ranks is sufficient for efficient decision-making.
  • Spatial Partitioning for Efficiency: Using a quadtree to partition space and pre-computing rank bounds within these partitions is critical for the IRF index's effectiveness. The partitioning strategy degrades granularity gracefully with rank, focusing precision where it matters most (higher ranks).
  • "Safe" Results Reduce Updates: The concepts of safe ranking and validation objects are ingenious. They allow the system to confidently declare that the current top-m results are still valid, avoiding costly re-computations when the sliding window shifts.
  • Bridging Domains: The paper successfully merges concepts from rank aggregation, continuous spatial queries, and streaming data processing, a combination not previously explored.

Key Results

  • Efficiency: The approximate solution (AP) was found to be approximately 3 orders of magnitude more efficient than the baseline exact solution (BS) in terms of popularity computations.
  • Runtime: This efficiency translates directly to significantly lower runtime. For example, varying the window size |W| showed AP consistently outperforming BS.
  • Effectiveness: The approximate results showed high similarity to the exact results. For the Aus dataset, the percentage of result overlap between the approximate and exact top-m lists reached over 90% for m=50 and m=100 when comparing against the top-50 exact results.
  • Scalability: The approximate approach scales better with increasing query radius, as the baseline's performance degrades rapidly when more objects fall within a query range.

Limitations and Future Work

  • Approximation Ratio: While the approximate solution is highly efficient, it does have an approximation ratio (bounded by 1 - ε/2N). The paper acknowledges that the approximate popularity might not perfectly match the exact one, though the overlap in the set of top-m objects is very high.
  • Query Types: The current work focuses primarily on range queries, though the authors state their solutions can be generalized to other spatial query types like kNN.
  • Future Work: The authors suggest exploring other spatial query constraints and rank aggregation functions, and further investigating how the interplay between these domains can be leveraged. They also mention the potential for exploring time-based sliding windows in addition to count-based ones.

Summary updated

Abstract

In this paper, we propose and study the problem of top-m rank aggregation of spatial objects in streaming queries, where, given a set of objects O, a stream of spatial queries (kNN or range), the goal is to report m objects with the highest aggregate rank. The rank of an object w.r.t. an individual query is computed based on its distance from the query location, and the aggregate rank is computed from all of the individual rank orderings. Solutions to this fundamental problem can be used to monitor the popularity of spatial objects, which in turn can provide new analytical tools for spatial data. Our work draws inspiration from three different domains: rank aggregation, continuous queries and spatial databases. To the best of our knowledge, there is no prior work that considers all three problem domains in a single context. Our problem is different from the classical rank aggregation problem in the way that the rank of spatial objects are dependent on streaming queries whose locations are not known a priori, and is different from the problem of continuous spatial queries because new query locations can arrive in any region, but do not move. In order to solve this problem, we show how to upper and lower bound the rank of an object for any unseen query. Then we propose an approximation solution to continuously monitor the top-m objects efficiently, for which we design an Inverted Rank File (IRF) index to guarantee the error bound of the solution. In particular, we propose the notion of safe ranking to determine whether the current result is still valid or not when new queries arrive, and propose the notion of validation objects to limit the number of objects to update in the top-m results. We also propose an exact solution for applications where an approximate solution is not sufficient. Last, we conduct extensive experiments to verify the efficiency and effectiveness of our solutions.
BibTeX
@misc{choudhury2016monitoring,
  author = {Farhana Murtaza Choudhury and Zhifeng Bao and J. Shane Culpepper and Timos Sellis},
  title = {{Monitoring the Top-m Aggregation in a Sliding Window of Spatial Queries}},
  year = {2016},
  eprint = {1610.03579},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1610.03579},
}

Loading related content...

Figure