Indexing the Present and Future Positions of Moving Objects Simonas Šaltenis Aalborg University Nykredit Center for Database Research Department of Computer.

Slides:



Advertisements
Similar presentations
The A-tree: An Index Structure for High-dimensional Spaces Using Relative Approximation Yasushi Sakurai (NTT Cyber Space Laboratories) Masatoshi Yoshikawa.
Advertisements

Spatial Indexing SAMs. Spatial Indexing Point Access Methods can index only points. What about regions? Z-ordering and quadtrees Use the transformation.
Fast Algorithms For Hierarchical Range Histogram Constructions
Dynamic Planar Convex Hull Operations in Near- Logarithmic Amortized Time TIMOTHY M. CHAN.
Indexing and Range Queries in Spatio-Temporal Databases
On Map-Matching Vehicle Tracking Data
©Silberschatz, Korth and Sudarshan12.1Database System Concepts Chapter 12: Part C Part A:  Index Definition in SQL  Ordered Indices  Index Sequential.
Quick Review of Apr 10 material B+-Tree File Organization –similar to B+-tree index –leaf nodes store records, not pointers to records stored in an original.
©Silberschatz, Korth and Sudarshan12.1Database System Concepts Chapter 12: Indexing and Hashing Basic Concepts Ordered Indices B+-Tree Index Files B-Tree.
Generated Waypoint Efficiency: The efficiency considered here is defined as follows: As can be seen from the graph, for the obstruction radius values (200,
Continuous Intersection Joins Over Moving Objects Rui Zhang University of Melbourne Dan Lin Purdue University Kotagiri Ramamohanarao University of Melbourne.
Effectively Indexing Uncertain Moving Objects for Predictive Queries School of Computing National University of Singapore Department of Computer Science.
A Generic Framework for Handling Uncertain Data with Local Correlations Xiang Lian and Lei Chen Department of Computer Science and Engineering The Hong.
Indexing the Positions of Continuously Moving Objects Saltenis, Jensen, Leutenegger and Lopez.
2-dimensional indexing structure
--Presented By Sudheer Chelluboina. Professor: Dr.Maggie Dunham.
Spatio-temporal Databases Time Parameterized Queries.
Spatial Indexing SAMs. Spatial Indexing Point Access Methods can index only points. What about regions? Z-ordering and quadtrees Use the transformation.
Accessing Spatial Data
Spatio-Temporal Databases
Project Proposals Simonas Šaltenis Aalborg University Nykredit Center for Database Research Department of Computer Science, Aalborg University.
Computer Science Spatio-Temporal Aggregation Using Sketches Yufei Tao, George Kollios, Jeffrey Considine, Feifei Li, Dimitris Papadias Department of Computer.
Temporal Indexing MVBT. Temporal Indexing Transaction time databases : update the last version, query all versions Queries: “Find all employees that worked.
Spatio-Temporal Databases. Introduction Spatiotemporal Databases: manage spatial data whose geometry changes over time Geometry: position and/or extent.
Indexing of Network Constrained Moving Objects Dieter Pfoser Christian S. Jensen Chia-Yu Chang.
Lars Arge1, Mark de Berg2, Herman Haverkort3 and Ke Yi1
Dieter Pfoser, LBS Workshop1 Issues in the Management of Moving Point Objects Dieter Pfoser Nykredit Center for Database Research Aalborg University, Denmark.
© Christian S. Jensen - CAMM workshop, Providence, RI, January 24-25, 2002 Data Representation and Indexing in Location-Enabled M-Services Christian S.
An Incremental Refining Spatial Join Algorithm for Estimating Query Results in GIS Wan D. Bae, Shayma Alkobaisi, Scott T. Leutenegger Department of Computer.
1 Indexing the Positions of Continuously Moving Objects Speaker: Chia-Hsiang Hsu Date: 2006/10/16.
Spatio-Temporal Databases. Introduction Spatiotemporal Databases: manage spatial data whose geometry changes over time Geometry: position and/or extent.
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 …..
Moving Objects Databases Nilanshu Dharma Shalva Singh.
Fast Subsequence Matching in Time-Series Databases Christos Faloutsos M. Ranganathan Yannis Manolopoulos Department of Computer Science and ISR University.
Roger ZimmermannCOMPSAC 2004, September 30 Spatial Data Query Support in Peer-to-Peer Systems Roger Zimmermann, Wei-Shinn Ku, and Haojun Wang Computer.
Improving Min/Max Aggregation over Spatial Objects Donghui Zhang, Vassilis J. Tsotras University of California, Riverside ACM GIS’01.
Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University.
AAU A Trajectory Splitting Model for Efficient Spatio-Temporal Indexing Presented by YuQing Zhang  Slobodan Rasetic Jorg Sander James Elding Mario A.
The X-Tree An Index Structure for High Dimensional Data Stefan Berchtold, Daniel A Keim, Hans Peter Kriegel Institute of Computer Science Munich, Germany.
Shape-based Similarity Query for Trajectory of Mobile Object NTT Communication Science Laboratories, NTT Corporation, JAPAN. Yutaka Yanagisawa Jun-ichi.
CSIS7101 – Advanced Database Technologies Spatio-Temporal Data (Part 1) On Indexing Mobile Objects Kwong Chi Ho Leo Wong Chi Kwong Simon Lui, Tak Sing.
Fast Subsequence Matching in Time-Series Databases Author: Christos Faloutsos etc. Speaker: Weijun He.
Spatio-temporal Pattern Queries M. Hadjieleftheriou G. Kollios P. Bakalov V. J. Tsotras.
Bin Yao (Slides made available by Feifei Li) R-tree: Indexing Structure for Data in Multi- dimensional Space.
August 30, 2004STDBM 2004 at Toronto Extracting Mobility Statistics from Indexed Spatio-Temporal Datasets Yoshiharu Ishikawa Yuichi Tsukamoto Hiroyuki.
R-Trees: A Dynamic Index Structure For Spatial Searching Antonin Guttman.
February 4, Location Based M-Services Soon there will be more on-line personal mobile devices than on-line stationary PCs. Location based mobile-services.
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.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Module D: Hashing.
Spatio-Temporal Databases
Spatio-Temporal Databases. Term Project Groups of 2 students You can take a look on some project ideas from here:
Jeremy Iverson & Zhang Yun 1.  Chapter 6 Key Concepts ◦ Structures and access methods ◦ R-Tree  R*-Tree  Mobile Object Indexing  Questions 2.
Indexing the Past, Present, and Anticipated Future Positions of Moving Objects Mindaugas Pelanis, Simonas Saltenis, and Christian S. Jensen
Spatio-Temporal Databases
Spatial Indexing I Point Access Methods.
Temporal Indexing MVBT.
Spatio-Temporal Databases
Indexing and Hashing Basic Concepts Ordered Indices
Indexing the Positions of Continuously Moving Objects
Continuous Density Queries for Moving Objects
Donghui Zhang, Tian Xia Northeastern University
Efficient Aggregation over Objects with Extent
Presentation transcript:

Indexing the Present and Future Positions of Moving Objects Simonas Šaltenis Aalborg University Nykredit Center for Database Research Department of Computer Science, Aalborg University

LBS workshop, Aalborg, June 7-8, Motivation – Background Position-aware, online, moving objects are enabled by the following trends. Miniaturization of electronics Advances in positioning systems (e.g., GPS, assisted GPS,...) Advances in wireless communications Examples of position-aware online moving objects WAP-enabled mobile-phones, as well as diverse types of personal digital assistants (online “cameras,” “wrist watches,” etc.)  By 2005, there wil be 500 million users of mobile phones with GPS. Vehicles, including cars, public transportation, recreational vehicles, sea vessels, etc. The coming years will witness very large quantities of these.

LBS workshop, Aalborg, June 7-8, Motivation – Sample E-Services Traffic coordination and management Identification of impending traffic jams and expected fastest routes between positions Location-aware advertising Consumers may receive sales information for locations close to them. Here, the positional data is used together with an accumulated user profile to provide a better service. Integrated tourist services For example, this covers booking (hotels, concerts, ferries, etc.) and payment, and provision of transportation or travel directions. Safety-related services It is possible to monitor tourists traveling in dangerous environments, and then react to emergencies.

LBS workshop, Aalborg, June 7-8, Motivation – Problem Statement We address the problem of indexing the ever-changing current and predicted future positions of point objects moving in one, two, and three-dimensional space. This also includes continuous variables in process monitoring, e.g., temperature, pressure (1D, nD).

LBS workshop, Aalborg, June 7-8, Outline Data and queries The TPR-tree Bounding rectangles and insertion The inner workings of the tree Performance experiments Nothing is eternal......neither is positional information Conclusions

LBS workshop, Aalborg, June 7-8, Spatial Indexing With the R-Tree The R-tree supports updates, but not continuous movement. Example Query R1 R2 R1R2 R3R4R5 p6p7 p5 p1p2 Pointers to data tuples p8 p3p4 p9p10 p11 p12p13 R6R7 R3 R4 R5 R6 R7 p1 p7 p6 p8 p2 p3 p4 p5 p9 p10 p11 p12 p13

LBS workshop, Aalborg, June 7-8, Modeling Continuous Movement In conventional databases, data is assumed constant unless explicitly modified. With continuous movement, this is problematic. Too frequent updates Outdated, inacurate data

LBS workshop, Aalborg, June 7-8, Modeling Continuous Movement In conventional databases, data is assumed constant unless explicitly modified. With continuous movement, this is problematic. Too frequent updates Outdated, inacurate data Instead of storing position values, we store positions as functions of time, yielding time-parameterized positions. We use linear functions to capture the present and future positions. Updates are necessary only when the parameters of the functions change. For example, given, the current and anticiapted, future position of a two- dimensional point can be described by four parameters.

LBS workshop, Aalborg, June 7-8, Modeling Continuous Movement Three ways to think about continuously moving points in d-dimensional space: Lines in (d+1)-dimensional space  d spatial dimensions and 1 time dimension Points in 2d-dimensional space  d spatial and d velocity dimensions (function parameters: ) Time-parameterized points in d-dimensional space – our approach x t o1o o2o2 o3o3 v x(t 0 ) -0.5 o1o1 o2o2 o3o3

LBS workshop, Aalborg, June 7-8, Queries Type 1: objects that intersect a given rectangle at Type 2: objects that intersect a given rectangle sometime from to Type 3: objects that intersect a given moving rectangle sometime between and x t o1o1 o1o1 o2o2 o3o3 o4o4

LBS workshop, Aalborg, June 7-8, Time-Parameterized Rectangles The TPR-tree is based on the R-tree. Moving points are bounded with time-parameterized rectangles. Are bounding from now on. The R-tree allows overlap. Ideally, bounding rectangles should be always minimal. Excessive storage cost The tree employs conservative bounding rectangles. These are ”tightened” during modifications.

LBS workshop, Aalborg, June 7-8, Insertion: Grouping Points How to group moving points? The R-tree’s algorithms minimize characteristics of MBRs such as area, overlap, and margin. How does that work for moving points?

LBS workshop, Aalborg, June 7-8, Insertion in the TPR-Tree The bounding rectangle characteristics (area, overlap, and margin) are functions of time. The goal is to minimize these for all time points from now to now+H. Minimizing the characteristics for time now + H/2 does not work (e.g., the area of a conservative bounding rectangle is not linear). where A(t) is, e.g., the area of an MBR We use the regular R*-tree algorithms, but all bounding rectangle characteristics are replaced by their integrals. What H to use? H depends on the update rate, and on how far queries may reach into the future (W).

LBS workshop, Aalborg, June 7-8, Example I We illustrate the working of the TPR-tree by means of an example. The subsequent figures are generated automatically, by the index code used for performance experiments. Data 20 one-dimensional points are used. Index Parameters Page size = 64 (5 entries in leaf nodes and 3 in non-leaf nodes). H = 8.

LBS workshop, Aalborg, June 7-8, Example II CT = 0 At CT=1, the point at x = 20, v = 0 is updated to have x = 18.5, v = -0.5.

LBS workshop, Aalborg, June 7-8, Example III CT = 1 Inserting a moving point at position 14 with v = –0.5.

LBS workshop, Aalborg, June 7-8, Example IV After insertion

LBS workshop, Aalborg, June 7-8, Performance Experiments I Simulation-based performance study A GIST-based implementation of the TPR-tree is used. Trees are initially bulk loaded, then subjected to workloads intermixing modifications and queries for 600 minutes x 1000 km space and from 100,000 to 900,000 point objects. The speeds of the objects range from 0 to 180 km/h. On average, each object sends an update each 60 minutes (yielding a total of from 1,666 to 15,000 updates per minute). 2D and 3D uniform data is used, as well as 2D data generated according to a scenario, where objects move on a fully connected graph of two-way roads. Indices compared Straigthforward R-tree TPR-tree TPR-tree with load-time bounding rectangles

LBS workshop, Aalborg, June 7-8, Performance Experiments III Search performance for 2D data with varying skew (the number of destinations). The more objects move similarly, the easier it is to index them. Tightening of bounding rectangles on updates results in a significant decrease in the search I/O. Not possible with the dual transformation.

LBS workshop, Aalborg, June 7-8, Performance Experiments IV Degradation of search performance across time for 2D data, with W = 40. Due to the constant influx of updates, the performance of the TPR-tree does not degrade after reaching a certain level.

LBS workshop, Aalborg, June 7-8, Performance Experiments V Search performance for 2D data with varying numbers of moving objects (average # of returned objects per query is not changed). As expected, the TPR-tree shows almost no decrease in performance (as long as the number of tree levels does not change).

LBS workshop, Aalborg, June 7-8, Improving the TPR-tree Coping with out-dated data In the highly dynamic environment of moving objects data becomes inaccurate and obsolete very fast. Unreliable communication channels lead to no guaranties of objects updating or deleting themselves. Solution – expiration time t exp associated with each object Expiration times depend on (or can be derived from):  Desired uncertainty threshold and speeds of objects  Underlying infrastructure (e.g., road network) restricting movement Expiration times may be a good idea even if objects always update and delete themselves on time. Indexing segments of future trajectories instead of infinite lines should be easier.

LBS workshop, Aalborg, June 7-8, Expiration Times Two issues related to expiration times Purging expired entries from the index Filtering expired entries from query answers and taking advantage of having finite line segments instead of infinite lines x t o1o o2o2 o3o3

LBS workshop, Aalborg, June 7-8, Purging Expired Entries I Purging done in a lazy fashion – expired entries are ignored in all index algorithms and they are physically removed when a node is written to the disk. Insertion and deletion algorithms are modified to account for under-full nodes at any stage of the algorithm.

LBS workshop, Aalborg, June 7-8, Purging Expired Entries II

LBS workshop, Aalborg, June 7-8, Improving Bounding Rectangles The obvious and simple solution (reduce velocity extents of BRs as much as possible) does not work! x t o1o o2o2 o3o3 CT = 0 x t o1o o2o2 o3o3 CT = 1.5

LBS workshop, Aalborg, June 7-8, Optimal BRs (1-dimensional) We need to find a time-parameterized bounding interval that minimizes the integral of its length from CT to CT+H. Equivalently – find a minimum area (up to CT+H) trapezoid enclosing a set of given intervals. Such a trapezoid has the upper and the lower sides that support two edges of the convex hull of intervals. The edges are those that cross the vertical line CT + H/2. x t H/2H = 6 Such a minimum trapezoid can be found by computing the convex hull (O(n log h), where h – the number of c.h. vertices). We need only two vertices. This can be done in worst-case linear time or with simplified algorithm in ~ 3.2n expected time (O(n 2 ) worst-case).

LBS workshop, Aalborg, June 7-8, Conclusions The TPR-tree indexes the current and predicted future positions of moving objects. The TPR-tree is based on the proven, widely used R-tree technology The tree extends the R*-tree by introducing conservative, time- parameterized bounding rectangles, which are tightened regularly. The tree’s algorithms use integrals of area, overlap, etc. The tree can be tuned to take advantage of a specific update rate and querying window length. Out-dated data can be automatically purged from the index Other types of queries that are supported by the R-tree can be supported by the TPR-tree, e.g., nearest-neighbor queries.

LBS workshop, Aalborg, June 7-8, Related Work The current and future positions (mostly 1D) Tayeb et al. use PMR Quadtrees to index lines in (x,t)-space.  Index has to be periodically rebuilt  Storage overhead Kollios et al. use a duality transformation.  Several schemes are proposed to index the resulting static points. Agarwal et al. apply the techniques of kinetic data structures and persistance to external range trees and partition trees.  Show good worst-case bounds. Indexing of past positions Pfoser et al. The representation of moving points has been explored. E.g., Wolfson et al., Moreira et al., Pfoser et al. Capture uncertainty

LBS workshop, Aalborg, June 7-8, Performance Experiments II Search performance for 2D data, average update interval 120, and varying H. Update interval 120 implies that, on average, each 120 time units, a leaf-node will have new entries and a new BR. The best choice of H correlates strongly with the ”life time” of tree-nodes, which, in turn, is related to the update rate.

LBS workshop, Aalborg, June 7-8, TPR-Tree Bulk Loading I Regular R-tree bulk loading aims at dividing the space into roughly equal, square MBRs (e.g., STR). It is a straightforward approach to use STR, interpreting the d-dimensional moving points as 2d-dimensional points. The ratio between the spatial and velocity extents of BRs is important. We introduce a parameter that expresses how many times the velocity extents of BRs are longer than their spatial extents. Given a fixed number of BRs to produce, we can  make them large in the spatial dimensions, but small in the velocity dimensions (i.e., growing slowly). This corresponds to a small.  make them small in the spatial dimensions, but large in the velocity dimensions (i.e., fast growing). This corresponds to a large.

LBS workshop, Aalborg, June 7-8, TPR-Tree Bulk Loading II Example: Using either initially large, but slow-growing, or initially small, but fast-growing, time-parameterized BRs. S V s v x(t 0 ) v x(t 0 ) t x 3456 t x 3456 (good for a large H) (good for a small H) Goal: find an ”optimal” as a function of H.

LBS workshop, Aalborg, June 7-8, TPR-Tree Bulk Loading III One-dimensional uniform data Let k be the number of nodes and the space-time ratio For 2D data,, and for 3D data, gets smaller with increasing dimensionality Intuitive as hyper-volumes grow faster in more dimensions

LBS workshop, Aalborg, June 7-8, TPR-Tree Bulk Loading IV A modified STR is used that achieves the desired -ratio. Example: 2000 points, 20 points per leaf-node.