CSIS7101 Advanced Database Technologies - PowerPoint PPT Presentation

About This Presentation
Title:

CSIS7101 Advanced Database Technologies

Description:

Indexing the Position of Continuously Moving Objects. Kwong Chi Ho Leo ... Recent advances in technology have made available mass amount of spatiotemporal data ... – PowerPoint PPT presentation

Number of Views:69
Avg rating:3.0/5.0
Slides: 41
Provided by: X73
Category:

less

Transcript and Presenter's Notes

Title: CSIS7101 Advanced Database Technologies


1
CSIS7101 Advanced Database Technologies
  • Spatio-Temporal Data (Part 2)
  • Indexing the Position of Continuously Moving
    Objects

Kwong Chi Ho Leo Wong Chi Kwong Simon Lui, Tak
Sing Arthur
2
Why are we interested?
  • Recent advances in technology have made available
    mass amount of spatiotemporal data
  • GPS
  • Mobile phone
  • New possibilities in various applications
  • Location aware services
  • Vehicle navigation, tracking and monitoring

3
Challenges
  • Conventional database systems assume that data
    are static unless explicitly updated
  • Very frequent update needed under this assumption

4
Successful Criteria
  • Mere advance in time does not necessitate
    explicit update
  • A function of time that express the position of
    objects should be stored

5
Possible Approaches
  • Indexing d dimensional space in (d1) dimensional
    space (with time as the added dimension)

6
Possible Approaches
  • Indexing d dimensional space in (d1) dimensional
    space (with time as the added dimension)
  • Map the trajectories to points in higher
    dimensional spaces
  • As in Indexing Mobile Objects

7
Possible Approaches
  • Indexing d dimensional space in (d1) dimensional
    space (with time as the added dimension)
  • Map the trajectories to points in higher
    dimensional spaces
  • Index in d dimensional space but parameterizing
    the index by velocity vectors
  • TPR Tree

8
Problem Description
  • Original problem definition is in d dimension
  • A simplified 1 dimension definition will be given
    here
  • x - position of an object
  • t - time
  • v - velocity of an object
  • x(tref) position of an object at a reference
    time
  • x(t) position of an object at a specific time
    t x(tref) v (t - tref)

9
Query Types
  • More symbols
  • Q query
  • R a range (x? - min x , x? - max x)
  • Timeslice query
  • Q (R, t)
  • Window query
  • Q (R, t?, t?)
  • Moving query
  • Q (R1, R2, t?, t?)

10
Problem Illustration
11
Basic Approach
  • R-tree based (with RTree optimization)
  • Bounding interval (equivalent to bounding
    rectangle in R-tree)
  • Bounding interval as a function of time

12
Bounding Intervals
  • What is the bounding interval from tref to t?

x
O1
O2
t
tref
13
Bounding Intervals
  • What is the bounding interval from tref to t?

14
Bounding Intervals
  • Absolute bounding interval is time-consuming to
    construct and it is cannot be easily expressed as
    a function of time
  • A conservative bounding interval is introduced to
    solve the problem

15
Conservative Bounding intervals
  • Find x? and x?
  • Find v? and v?

16
Conservative Bounding intervals
  • A bounding interval as a function of time

t
17
TPR tree
  • Replacing the Minimum Bounding Rectangle with
    Conservative Bounding interval..

18
Querying
  • Same as R-Tree, only the checking for overlap is
    adapted
  • Timeslice query (a?,a?, tq)
  • Substitute tq into the bounding interval formula
  • Check against a?,a?
  • Window query
  • A special case of Moving query
  • Moving query
  • Q (R1, R2, t?, t?) (a?,a?, a?(t?), a?(t?),
    t?, t?)

19
Moving Query
Query
x
x?
a?(t?)
x?
a?(t?)
a?
a?
t
t?
t?
20
Moving Query
Query
x
x?(t?)
x?(t?)
Substitute t?, t? to bounding interval to get
x?(t?), x?(t?), x?(t?), x?(t?)
x?
x?
x?(t?)
x?(t?)
t
t?
t?
21
Moving Query
Query
x
a?
No intersection only when the query is above the
bounding interval a? gt x?(t?) ? a?(t?) gt x?(t?)
a?(t?)
x?
x?
x?(t?)
x?(t?)
t
t?
t?
22
Moving Query
x
Query
or when the query is below the bounding
interval a? lt x?(t?) ? a?(t?) lt x?(t?)
x?
x?
x?(t?)
x?(t?)
a?
a?(t?)
t
t?
t?
23
Moving Query
Query
For dimension of more than 1, an overlapping
interval tj?, tj? is found for each dimension
j. There is overlapping if there exists an
overlapping interval for all j and their
intersection of is not empty
xj
xj?
xj?
t
t?
t?
tj?
tj?
24
Performance Tuning
  • Indexing updating
  • Tree organization
  • Insertion and deletion

25
Time Horizon
  • Querying window (W)
  • How far queries can look into the future
  • Index usage time (U)
  • Time interval during which an index will be used
  • Time horizon (H)
  • index usage time querying window

H U W
W
tl
Iss(Q)
t
U
26
Index Updating
  • Bounding intervals tend to enlarge over time

x
O1
Updating half of the objects in index usage time
U is shown to yield good performance
O2
Individual object can be updated without
affecting the integrity of the tree
t
tref
27
Tree Organization
  • Objective functions used in RTree
  • Areas of bounding rectangles
  • Perimeters of bounding rectangles
  • Overlapping of bounding rectangles
  • Distances between center of bounding rectangles
  • Let A(t) one of the above objective functions
  • In TPR tree, the following will be minimized
    instead

28
Insertion and Deletion
  • Original RTree algorithms will be used
  • Except that
  • The integrals of the objective functions will be
    used
  • When splitting a node, sorting along the time
    axis is also considered

29
Conclusions
  • TPR tree is designed to index the current and
    anticipated future locations of moving points
  • TPR tree is based on RTree with bounding
    rectangles replaces by bounding intervals, which
    are functions of time
  • Timeslice query, window query and moving query
    are supported
  • Future work includes performance tuning, apply
    TPR tree framework to index historical data and
    other query types on TPR tree.

30
Reference
  • Saltenis, S., Jensen, C., Leutenegger, S., Lopez,
    M. Indexing the Position of Continuously Moving
    Objects. ACM SIGMOD, 2000.

31
Appendix 1 Query in d dimensional spaces
Query
xj
tj?, tj? can be found by solving the
appropriate simultaneous equations
xj?
xj?
t
t?
t?
tj?
tj?
32
Appendix 1 Query in d dimensional spaces
Note that x and t are variables, the others are
constants
Slope w?
xj
xj?
x a? w? t
xj?
x a? w? t
x x?(tref) v? (t - tref)
x x?(tref) v? (t - tref)
Slope w?
t
t?
t?
tj?
tj?
33
Appendix 1 Query in d dimensional spaces
Query
Solving for tj?
xj
If aj? gt x?(t?) tj? t? (xj?(t?) - aj?) /
(wj? - vj?)
xj?
xj?
t
t?
t?
tj?
tj?
34
Appendix 1 Query in d dimensional spaces
Query
Solving for tj?
xj
If aj? gt x?(t?) tj? t? (xj?(t?) - aj?) /
(wj? - vj?)
xj?
xj?
t
t?
t?
tj?
tj?
35
Appendix 1 Query in d dimensional spaces
Query
Solving for tj?
xj
Otherwise tj? t? Note that the
non-overlapping cases have been eliminated
xj?
xj?
t
t?
t?
tj?
tj?
36
Appendix 1 Query in d dimensional spaces
Query
Solving for tj?
xj
If aj?(t?) gt x?(t?) tj? t? (xj?(t?) - aj?)
/ (wj? - vj?)
xj?
xj?
t
t?
t?
tj?
tj?
37
Appendix 1 Query in d dimensional spaces
Query
Solving for tj?
xj
If aj?(t?) lt x?(t?) tj? t? (xj?(t?) - aj?)
/ (wj? - vj?)
xj?
xj?
t
t?
t?
tj?
tj?
38
Appendix 1 Query in d dimensional spaces
Query
Solving for tj?
xj
Otherwise tj? t? Note that the
non-overlapping cases have been eliminated
xj?
xj?
t
t?
t?
tj?
tj?
39
Appendix 1 Query in d dimensional spaces
  • To summarize


t? (xj?(t?) - aj?) / (wj? - vj?) If
aj? gt x?(t?) t? (xj?(t?) - aj?) / (wj? - vj?)
If aj? gt x?(t?) t?

Otherwise
tj?

t? (xj?(t?) - aj?) / (wj? - vj?) If
aj? gt x?(t?) t? (xj?(t?) - aj?) / (wj? - vj?)
If aj? gt x?(t?) t?

Otherwise
tj ?
40
Appendix 2 Objective function integrals
  • Area of overlapping between 2 bounding interval

xj
Another bounding interval
By solving for the blue lines, the overlapping
area is divided into at most 3 parts. The area
of each part can then be calculated
xj?
xj?
1
2
3
t
t?
t?
tj?
tj?
Write a Comment
User Comments (0)
About PowerShow.com