Spatio-temporal Databases Time Parameterized Queries.

Slides:



Advertisements
Similar presentations
Spatio-temporal Databases
Advertisements

Spatial and Temporal Data Mining V. Megalooikonomou Spatial Access Methods (SAMs) II (some slides are based on notes by C. Faloutsos)
Spatial Join Queries. Spatial Queries Given a collection of geometric objects (points, lines, polygons,...) organize them on disk, to answer point queries.
1 Top-k Spatial Joins
Nearest Neighbor Queries using R-trees
Indexing and Range Queries in Spatio-Temporal Databases
School of Computer Science and Engineering Finding Top k Most Influential Spatial Facilities over Uncertain Objects Liming Zhan Ying Zhang Wenjie Zhang.
Searching on Multi-Dimensional Data
Nearest Neighbor Queries using R-trees Based on notes from G. Kollios.
Progressive Computation of The Min-Dist Optimal-Location Query Donghui Zhang, Yang Du, Tian Xia, Yufei Tao* Northeastern University * Chinese University.
1 NNH: Improving Performance of Nearest- Neighbor Searches Using Histograms Liang Jin (UC Irvine) Nick Koudas (AT&T Labs Research) Chen Li (UC Irvine)
Efficient Reverse k-Nearest Neighbors Retrieval with Local kNN-Distance Estimation Mike Lin.
Nearest Neighbor. Predicting Bankruptcy Nearest Neighbor Remember all your data When someone asks a question –Find the nearest old data point –Return.
Nearest Neighbor Search in Spatial and Spatiotemporal Databases
2-dimensional indexing structure
Quantile-Based KNN over Multi- Valued Objects Wenjie Zhang Xuemin Lin, Muhammad Aamir Cheema, Ying Zhang, Wei Wang The University of New South Wales, Australia.
Liang Jin (UC Irvine) Nick Koudas (AT&T) Chen Li (UC Irvine)
Spatial Indexing for NN retrieval
Spatial Indexing SAMs. Spatial Access Methods PAMs Grid File kd-tree based (LSD-, hB- trees) Z-ordering + B+-tree R-tree Variations: R*-tree, Hilbert.
Spatio-Temporal Databases
1 Efficient Method for Maximizing Bichromatic Reverse Nearest Neighbor Raymond Chi-Wing Wong (Hong Kong University of Science and Technology) M. Tamer.
Spatio-Temporal Databases. Outline Spatial Databases Temporal Databases Spatio-temporal Databases Multimedia Databases …..
Spatial Queries Nearest Neighbor and Join Queries.
Spatial Queries Nearest Neighbor Queries.
Euripides G.M. PetrakisIR'2001 Oulu, Sept Indexing Images with Multiple Regions Euripides G.M. Petrakis Dept.
Handling Location Imprecision in Moving Object Database Xinfa Hu March 2007.
R-Trees 2-dimensional indexing structure. R-trees 2-dimensional version of the B-tree: B-tree of maximum degree 8; degree between 3 and 8 Internal nodes.
Nearest Neighbor and Reverse Nearest Neighbor Queries for Moving Objects Simonas Šaltenis with Rimantas Benetis, Christian S. Jensen, Gytis Karčiauskas.
Indexing Spatio-Temporal Data Warehouses Dimitris Papadias, Yufei Tao, Panos Kalnis, Jun Zhang Department of Computer Science Hong Kong University of Science.
Computational Data Modeling and Query Processing in Road Networks Irina Aleksandrova, Augustas Kligys, Laurynas Speičys 4-th WIM meeting, Aalborg 2002.
Trip Planning Queries F. Li, D. Cheng, M. Hadjieleftheriou, G. Kollios, S.-H. Teng Boston University.
Spatio-Temporal Databases. Outline Spatial Databases Temporal Databases Spatio-temporal Databases Multimedia Databases …..
Join-Queries between two Spatial Datasets Indexed by a Single R*-tree Join-Queries between two Spatial Datasets Indexed by a Single R*-tree Michael Vassilakopoulos.
SEMILARITY JOIN COP6731 Advanced Database Systems.
Clustering Moving Objects in Spatial Networks Jidong Chen, Caifeng Lai, Xiaofeng Meng, Renmin University of China Jianliang Xu, and Haibo Hu Hong Kong.
Computer Science and Engineering Efficiently Monitoring Top-k Pairs over Sliding Windows Presented By: Zhitao Shen 1 Joint work with Muhammad Aamir Cheema.
Efficient Instant-Fuzzy Search with Proximity Ranking Authors: Inci Centidil, Jamshid Esmaelnezhad, Taewoo Kim, and Chen Li IDCE Conference 2014 Presented.
Nearest Neighbor Queries Chris Buzzerd, Dave Boerner, and Kevin Stewart.
Efficient Processing of Top-k Spatial Preference Queries
Spatio-temporal Pattern Queries M. Hadjieleftheriou G. Kollios P. Bakalov V. J. Tsotras.
On Computing Top-t Influential Spatial Sites Authors: T. Xia, D. Zhang, E. Kanoulas, Y.Du Northeastern University, USA Appeared in: VLDB 2005 Presenter:
August 30, 2004STDBM 2004 at Toronto Extracting Mobility Statistics from Indexed Spatio-Temporal Datasets Yoshiharu Ishikawa Yuichi Tsukamoto Hiroyuki.
Euripides G.M. PetrakisIR'2001 Oulu, Sept Indexing Images with Multiple Regions Euripides G.M. Petrakis Dept. of Electronic.
Information Technology Selecting Representative Objects Considering Coverage and Diversity Shenlu Wang 1, Muhammad Aamir Cheema 2, Ying Zhang 3, Xuemin.
Trajectory Data Mining Dr. Yu Zheng Lead Researcher, Microsoft Research Chair Professor at Shanghai Jiao Tong University Editor-in-Chief of ACM Trans.
Spatial Indexing Techniques Introduction to Spatial Computing CSE 5ISC Some slides adapted from Spatial Databases: A Tour by Shashi Shekhar Prentice Hall.
R-Trees: A Dynamic Index Structure For Spatial Searching Antonin Guttman.
Efficient OLAP Operations in Spatial Data Warehouses Dimitris Papadias, Panos Kalnis, Jun Zhang and Yufei Tao Department of Computer Science Hong Kong.
1 CSIS 7101: CSIS 7101: Spatial Data (Part 1) The R*-tree : An Efficient and Robust Access Method for Points and Rectangles Rollo Chan Chu Chung Man Mak.
1 Complex Spatio-Temporal Pattern Queries Cahide Sen University of Minnesota.
Location-based Spatial Queries AGM SIGMOD 2003 Jun Zhang §, Manli Zhu §, Dimitris Papadias §, Yufei Tao †, Dik Lun Lee § Department of Computer Science.
1 Reverse Nearest Neighbor Queries for Dynamic Databases SHOU Yu Tao Jan. 10 th, 2003 SIGMOD 2000.
Presenters: Amool Gupta Amit Sharma. MOTIVATION Basic problem that it addresses?(Why) Other techniques to solve same problem and how this one is step.
Spatio-Temporal Databases. Term Project Groups of 2 students You can take a look on some project ideas from here:
Spatial Queries Nearest Neighbor and Join Queries Most slides are based on slides provided By Prof. Christos Faloutsos (CMU) and Prof. Dimitris Papadias.
1 Spatial Query Processing using the R-tree Donghui Zhang CCIS, Northeastern University Feb 8, 2005.
Strategies for Spatial Joins
Spatial Queries Nearest Neighbor and Join Queries.
Spatio-Temporal Databases
KD Tree A binary search tree where every node is a
Nearest Neighbor Queries using R-trees
Spatio-temporal Pattern Queries
K Nearest Neighbor Classification
Spatio-temporal Databases
Spatio-Temporal Databases
Time Relaxed Spatiotemporal Trajectory Joins
Spatio-temporal Databases
Continuous Density Queries for Moving Objects
Efficient Processing of Top-k Spatial Preference Queries
Liang Jin (UC Irvine) Nick Koudas (AT&T Labs Research)
Presentation transcript:

Spatio-temporal Databases Time Parameterized Queries

Intro The results of conventional spatial queries are not very useful in dynamic environments because they may be invalidated very soon due to the movements of objects and queries.

The Time Parameterized (TP) Window Query Returns: The current query result R The validity period T of R The change of result C at the end of T R={b} Result:

The TP Window Query Returns: The current query result R The validity period T of R The change of result C at the end of T R={b}, T=1, C={-b} Result:

The TP Nearest Neighbor Query Returns: The current query result R The validity period T of R The change of result C at the end of T R={d} Result:

The TP Nearest Neighbor Query Returns: The current query result R The validity period T of R The change of result C at the end of T R={d}, T=1.5, C={f} Result:

The TP Spatial Join Query R={(A1, B1), (B3, A4)} Result:

The TP Spatial Join Query R={(A1, B1), (B3, A4)} T={1} C={A3, B2} Result:

Point Nearest Neighbor (NN) Queries [Roussopoulos et al SIGMOD95, Hjaltason and Samet TODS 99] Branch and bound algorithms use mindist between the query point q and an R-tree entry E, to prune the search space: mindist(E, q) = The minimum distance between E and q

Nearest Neighbor Search (NN) with R-Trees Depth-first (DF) and Best-first (BF) algorihms:

Reducing TP Window Queries to NN Search Definition: The influence time T INF (o, q) of a data object o indicates the time when o will change the current result of q. The object (C component) invalidating the current query result is the one with the smallest influence time (T component), i.e., a NN query using T INF as the distance metric.

Reducing TP Window Queries to NN Search Definition: The influence time T INF (o, q) of a data object o indicates the time when o will change the current result of q. The object (C component) invalidating the current query result is the one with the smallest influence time (T component), i.e., a NN query using T INF as the distance metric.

o7o7 Nearest Neighbor (NN) Search with R- trees NN query The algorithm is based on the Branched and Bound framework. p1p1 p2p2 p3p3 o1o1 o2o2 o3o3 o4o4 o5o5 o6o6 o7o7 o1o1 p1p1 o2o2 p2p2 o3o3 o4o4 o5o5 o6o6 p3p q We need 2 metrics: (i) dist(o, q), and (ii) mindist(E, q). mindist(p 3, q) mindist(p 2, q) mindist(p 1, q)

Processing TP Queries Treating T INF as the distance function, we may apply the branch and bound paradigm to answer TP queries. Of course we must derive T INF for specific query types. Similar to mindist(E, q) for the NN search, we also need T MININF (E, q), which is the minimum influence time T INF (o, q) among all objects o that can be in the subtree of E.

T INF for TP Window Query If an object intersects query q now, its T INF equals the earliest time it stops intersecting q in the future. If an object does not intersect query q now, its T INF equals the earliest time it starts intersecting q in the future. current time 0 T INF (u, q)=2, T INF (v, q)=1

T MININF for TP Window Query T MININF (E, q) equals the earliest future time E starts to intersect q if, at the current time E does not intersect query q, or E is contained query q T MININF (E, q)=0 if E intersects (but is not contained in) q TMININF(E, q)=0TMININF(E, q)=1

T INF for TP NN Query Assume P NN be the current nearest neighbor of query q; T INF of a data point o equals the time q crosses the perpendicular bisector of line segment P NN o Note that T INF for a TP NN query relies on the current result (i.e., the current NN), while T INF for a TP window query does not. T INF (o, q)=1.5

T MININF for TP NN Query T MININF (E, q) of a non-leaf entry E equals the time mindist(E, q)=dist(q, P NN ). As with T INF, it depends on the current query result.

BaB Algorithms for TP Queries For those queries (e.g., TP window) where T MIN and T MININF do not depend on the current query result, the T and C components can be retrieved together with the R component in a single traversal of the index structure. For other queries (e.g., TP K-NN) where T MIN and T MININF depend on the current query result, the T and C components can be retrieved together with the R component in separate traversals of the index structure.

TP Spatial Join A1A1 A2A2 A3A3 A4A4 A5A5 B1B1 2  B2B2  1  B3B3  42 The TP spatial join is reduced to a closest pair query following the similar idea.

Processing Complex Queries The proposed algorithms apply to other mobility combination of objects and queries as well (i.e., mobile objects and static queries, mobile objects and mobile queries). TP queries are preliminary components for Continuous queries Earliest event queries

Continuous Nearest Neighbor Data: A set of points Query: A line segment q=[s, e] Result: The nearest neighbor (NN) of every point on q. Result representation: {s(.NN=a), s 1 (.NN=c), s 2 (.NN=f), s 3 (.NN=h), e}

One Approach – Time Parameterized Queries Step 1: Find the NN of the start point s, i.e., point a. Step 2: Use the TP technique to find: The first point on the line segment (s c ) where there is a change in the NN (i.e., point c) will become the next NN.

TP NN (cont) From Step 2 we have decided the next NN change is point c at s 1 Step 3: Perform another TP NN to find: Starting from s 1, how far we need to travel for the current NN (i.e., c) to change. Repeat this until we finish the entire segment.

Another Method: Using Split points Find all split points s 1, s 2, s 3 (as well as the corresponding NN for each partition) with a single traversal of the dataset. Term1: The set of split points (including s and e) constitute the split list. Term2: The circle that centers at split point s i with radius dist(s i, s i.NN) is the vicinity circle of s i. Term3: We say a data point u covers a point s if u=s.NN. E.g., points a, c, f, h cover segments [s, s 1 ], [s 1, s 2 ], [s 2, s 3 ], [s 3, e].

Conclusions The time-parameterized query can be integrated with any spatial query type to retrieve predictive information. Processing of TP queries can be reduced to NN search by defining appropriate distance functions. TP queries are preliminary building blocks for more complex queries.