Monitoring k-NN Queries over Moving Objects - PowerPoint PPT Presentation

1 / 39
About This Presentation
Title:

Monitoring k-NN Queries over Moving Objects

Description:

Joint work with Ken Pu and Nick Koudas. k-Nearest Neighbors ... Location-based mixed reality games. Outline. Related work. Object-Indexing. Overhaul algorithm ... – PowerPoint PPT presentation

Number of Views:42
Avg rating:3.0/5.0
Slides: 40
Provided by: xiao68
Category:

less

Transcript and Presenter's Notes

Title: Monitoring k-NN Queries over Moving Objects


1
Monitoring k-NN Queries over Moving Objects
  • Xiaohui Yu
  • University of Toronto
  • xhyu_at_cs.toronto.edu
  • Joint work with Ken Pu and Nick Koudas

2
k-Nearest Neighbors
  • k-NN search Given a set of points, find the k
    points that are closest to the query point.
  • We focus on k-NN for spatio-temporal data

3
Problem
  • A set of moving objects P on a 2D plane
  • Monitoring the nearest neighbors of query points
    (Q) in a specified region over time

2
1
3
4
7
6
5
8
t1
4
Applications
  • Location-based advertising
  • E-flyers distribution identifying the customers
    closest to the store
  • Location-based mixed reality games

5
Outline
  • Related work
  • Object-Indexing
  • Overhaul algorithm
  • Incremental index update/query answering
  • Query-Indexing
  • Hierarchical Object-Indexing
  • Experiments
  • Conclusions

6
Previous Work
  • Most work has focused on predictive queries
  • Who will be my NNs five minutes from now?
  • Assumption the trajectories of the objects are
    fully predictable
  • linear/non-linear/autoregressive functions
  • very frequent updates/re-evaluations when the
    assumption does not hold Sun et al. 2004

7
Previous Work
  • The assumption is often violated in real
    applications where the objects movements are
    non-predictable.

8
Our approach
  • No assumptions on the motion of objects
    arbitrary speeds/directions

receive buffer
updates

9
Grid-based index structures
  • Residing in main memory
  • Partition the space into NN grids
  • Easy to maintain, supporting fast query
    processing

10
Outline
  • Related work
  • Object-Indexing
  • Overhaul algorithm
  • Incremental index update/query answering
  • Query-Indexing
  • Hierarchical Object-Indexing
  • Experiments
  • Conclusions

11
Object Indexing
12
Example Finding 3-NN
5
2
3
4
q
1
6
13
The algorithm
  • Initial computation
  • Progressively enlarge the search region
  • Until k neighbors are found
  • Calculate the critical region Rcrit (guaranteed
    to contain the querys k-NNs)
  • Search in the region for the k-NNs.

The overhaul algorithm
14
Overhaul algorithm Analysis
  • Notation
  • NP - number of objects
  • NQ - number of queries
  • Running time breakdown
  • Tindex a0NP
  • Tquery a1 NQ ( of cells in Rcrit) a2 NQ
    ( of objects in Rcrit)
  • Optimal cell size to minimize Tquery (assuming
    uniformity)
  • Proportional to

15
Analysis non-uniform data
Measure of non-uniformity
  • Reasonably skewed distributions Tquery
  • Highly skewed Tquery

16
Outline
  • Related work
  • Object-Indexing
  • Overhaul algorithm
  • Incremental index update/query answering
  • Query-Indexing
  • Hierarchical Object-Indexing
  • Experiments
  • Conclusions

17
From overhaul to incremental
  • Incremental update of the object-index
  • Check if the new position falls in the same cell
    as in the previous cycle
  • Yes do nothing
  • No remove it from old cell, insert it into the
    new cell
  • Incremental query answering
  • Compute the critical region based its previous
    k-NN
  • Search the critical region for the current k-NN

18
Which one is better?
  • Mobility is the key
  • Index maintenance
  • The probability of exiting the current cell is
    crucial
  • Incremental query answering
  • When mobility is low, the cost of query answering
    is
  • Worst case O(NP )

19
Outline
  • Related work
  • Object-Indexing
  • Overhaul algorithm
  • Incremental index update/query answering
  • Query-Indexing
  • Hierarchical Object-Indexing
  • Experiments
  • Conclusions

20
Query-Indexing
  • Cost of Object-Indexing dominated by indexing
    time when NQ is small
  • Indexing queries instead of objects

21
Query-Index
22
Constructing a Query Index
23
Query answering
24
Query-Indexing algorithm
  • Index-building
  • Compute the critical region
  • Insert a query into cells contained in its
    critical region
  • Query-answering
  • For each object
  • Determine the cell it belongs to
  • For each query registered with the cell, update
    its k-NN if necessary.

25
Analysis
  • indexing time query answering time
  • Theoretically,
  • QI suffers from less localized access to objects
  • QI is preferable when NQ is small

26
Outline
  • Related work
  • Object-Indexing
  • Overhaul algorithm
  • Incremental index update/query answering
  • Query-Indexing
  • Hierarchical Object-Indexing
  • Experiments
  • Conclusions

27
Problem with one-level object indexing
28
Hierarchical Object-Indexing
  • Split the overly crowded cells into smaller cells

29
  • Refined approximation

q
30
Outline
  • Related work
  • Object-Indexing
  • Overhaul algorithm
  • Incremental index update/query answering
  • Query-Indexing
  • Hierarchical Object-Indexing
  • Experiments
  • Conclusions

31
Experiments
  • Verify the analytical results
  • NP, NQ, k, velocity, cell-size
  • Compare the performance of the proposed
    structures with that of R-tree-based methods
  • NP, NQ, k, velocity, skew

32
Highlights
  • Tindex and Tquery of Object-Indexing
  • Optimal cell size
  • Overhaul v.s. incremental computation as
    velocities of objects vary
  • Object-Indexing v.s. Query-Indexing
  • Comparison of grid-based algorithms with
    R-tree-based algorithms

33
Performance of overhaul w.r.t. NP
34
Effect of cell-size on performance
35
Overhaul v.s. incremental index maintenance
36
Object-Indexing v.s. Query Indexing
37
Comparison with R-trees datasets
uniform
hi-skewed
skewed
Simulation using Illinois road network
(600km600km)
38
Comparison with R-trees
NP 100,000, NQ 5,000, k 10
39
Conclusions
  • We proposed two solutions to monitor k-NN
  • Object-Indexing
  • Query-Indexing
  • Extensions to handle skewed data
  • Outperform R-tree-based solutions
Write a Comment
User Comments (0)
About PowerShow.com