Dept. of Electrical Engineering and Computer Science, Northwestern University Context-Aware Optimization of Continuous Query Maintenance for Trajectories.

Slides:



Advertisements
Similar presentations
1 Top-K Algorithms: Concepts and Applications by Demetris Zeinalipour Visiting Lecturer Department of Computer Science University of Cyprus Department.
Advertisements

Efficient Evaluation of k-Range Nearest Neighbor Queries in Road Networks Jie BaoChi-Yin ChowMohamed F. Mokbel Department of Computer Science and Engineering.
1 DynaMat A Dynamic View Management System for Data Warehouses Vicky :: Cao Hui Ping Sherman :: Chow Sze Ming CTH :: Chong Tsz Ho Ronald :: Woo Lok Yan.
Phillip Dickens, Department of Computer Science, University of Maine. In collaboration with Jeremy Logan, Postdoctoral Research Associate, ORNL. Improving.
Danzhou Liu Ee-Peng Lim Wee-Keong Ng
On Map-Matching Vehicle Tracking Data
GrooveSim: A Topography- Accurate Simulator for Geographic Routing in Vehicular Networks 簡緯民 P
Department of Computer Science Spatio-Temporal Histograms Hicham G. Elmongui*Mohamed F. Mokbel + Walid G. Aref* *Purdue University, Department of Computer.
A Novel Scheme for Video Similarity Detection Chu-Hong Hoi, Steven March 5, 2003.
Opportunistic Resource Exchange in Inter-vehicle Ad-hoc Networks Δημόκας Νικόλαος Data Engineering Laboratory, Aristotle University of Thessaloniki.
University of Minnesota 1 / 9 May 2011 Energy-Efficient Location-based Services Mohamed F. Mokbel Department of Computer Science and Engineering University.
Spatio-Temporal Databases
Computer Science Spatio-Temporal Aggregation Using Sketches Yufei Tao, George Kollios, Jeffrey Considine, Feifei Li, Dimitris Papadias Department of Computer.
Spatio-Temporal Databases. Outline Spatial Databases Temporal Databases Spatio-temporal Databases Multimedia Databases …..
Chapter 5. Database Aspects of Location-Based Services Lee Myong Soo Mobile Data Engineering Lab. Dept. of.
1 SINA: Scalable Incremental Processing of Continuous Queries in Spatio-temporal Databases Mohamed F. Mokbel, Xiaopeng Xiong, Walid G. Aref Presented by.
Approximate querying about the Past, the Present, and the Future in Spatio-Temporal Databases Jimeng Sun, Dimitris Papadias, Yufei Tao, Bin Liu.
1 Location Information Management and Moving Object Databases “Moving Object Databases: Issues and Solutions” Ouri, Bo, Sam and Liqin.
Spatio-Temporal Databases. Introduction Spatiotemporal Databases: manage spatial data whose geometry changes over time Geometry: position and/or extent.
1 SINA: Scalable Incremental Processing of Continuous Queries in Spatio-temporal Databases Mohamed F. Mokbel, Xiaopeng Xiong, Walid G. Aref Presented by.
Euripides G.M. PetrakisIR'2001 Oulu, Sept Indexing Images with Multiple Regions Euripides G.M. Petrakis Dept.
Indexing Spatio-Temporal Data Warehouses Dimitris Papadias, Yufei Tao, Panos Kalnis, Jun Zhang Department of Computer Science Hong Kong University of Science.
Spatio-Temporal Databases. Outline Spatial Databases Temporal Databases Spatio-temporal Databases Multimedia Databases …..
A fuzzy video content representation for video summarization and content-based retrieval Anastasios D. Doulamis, Nikolaos D. Doulamis, Stefanos D. Kollias.
Moving Objects Databases Nilanshu Dharma Shalva Singh.
Distance Indexing on Road Networks A summary Andrew Chiang CS 4440.
Roger ZimmermannCOMPSAC 2004, September 30 Spatial Data Query Support in Peer-to-Peer Systems Roger Zimmermann, Wei-Shinn Ku, and Haojun Wang Computer.
GeoPKDD Geographic Privacy-aware Knowledge Discovery and Delivery Kick-off meeting Pisa, March 14, 2005.
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.
Multimedia Information Retrieval and Multimedia Data Mining Chengcui Zhang Assistant Professor Dept. of Computer and Information Science University of.
Active Monitoring in GRID environments using Mobile Agent technology Orazio Tomarchio Andrea Calvagna Dipartimento di Ingegneria Informatica e delle Telecomunicazioni.
DBSQL 14-1 Copyright © Genetic Computer School 2009 Chapter 14 Microsoft SQL Server.
Energy-Aware Scheduling with Quality of Surveillance Guarantee in Wireless Sensor Networks Jaehoon Jeong, Sarah Sharafkandi and David H.C. Du Dept. of.
February 3, Location Based M-Services The numbers of on-line mobile personal devices increase. New types of context-aware e-services become possible.
ICDL 2004 Improving Federated Service for Non-cooperating Digital Libraries R. Shi, K. Maly, M. Zubair Department of Computer Science Old Dominion University.
MySQL spatial indexing for GIS data in a web 2.0 internet application Brian Toone Samford University
Reporter : Yu Shing Li 1.  Introduction  Querying and update in the cloud  Multi-dimensional index R-Tree and KD-tree Basic Structure Pruning Irrelevant.
Efficient Processing of Top-k Spatial Preference Queries
Spatial Issues in DBGlobe Dieter Pfoser. Location Parameter in Services Entering the harbor (x,y position)… …triggers information request.
Spatio-temporal Pattern Queries M. Hadjieleftheriou G. Kollios P. Bakalov V. J. Tsotras.
Building a Distributed Full-Text Index for the Web by Sergey Melnik, Sriram Raghavan, Beverly Yang and Hector Garcia-Molina from Stanford University Presented.
Monitoring k-NN Queries over Moving Objects Xiaohui Yu University of Toronto Joint work with Ken Pu and Nick Koudas.
Euripides G.M. PetrakisIR'2001 Oulu, Sept Indexing Images with Multiple Regions Euripides G.M. Petrakis Dept. of Electronic.
Intelligent Database Systems Lab N.Y.U.S.T. I. M. Mining massive document collections by the WEBSOM method Presenter : Yu-hui Huang Authors :Krista Lagus,
Big traffic data processing framework for intelligent monitoring and recording systems 學生 : 賴弘偉 教授 : 許毅然 作者 : Yingjie Xia a, JinlongChen a,b,n, XindaiLu.
Making Friends with Your Public Works Department Using GIS Sherry Coatney Intergraph Corporation
Feb 24-27, 2004ICDL 2004, New Dehli Improving Federated Service for Non-cooperating Digital Libraries R. Shi, K. Maly, M. Zubair Department of Computer.
Efficient OLAP Operations in Spatial Data Warehouses Dimitris Papadias, Panos Kalnis, Jun Zhang and Yufei Tao Department of Computer Science Hong Kong.
Ohio State University Department of Computer Science and Engineering Servicing Range Queries on Multidimensional Datasets with Partial Replicas Li Weng,
Indexing Time Series. Outline Spatial Databases Temporal Databases Spatio-temporal Databases Multimedia Databases Time Series databases Text databases.
ICDE-2006 Subramanian Arumugam Christopher Jermaine Department of Computer Science University of Florida 22nd International Conference on Data Engineering.
AegisDB: Integrated realtime geo-stream processing and monitoring system Chengyang Zhang Computer Science Department University of North Texas.
Similarity Measurement and Detection of Video Sequences Chu-Hong HOI Supervisor: Prof. Michael R. LYU Marker: Prof. Yiu Sang MOON 25 April, 2003 Dept.
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.
1 Introduction to Spatial Databases Donghui Zhang CCIS Northeastern University.
Managing Massive Trajectories on the Cloud
Spatial Data Management
Spatio-Temporal Databases
CAT: Correct Answers of Continuous Queries using Triggers
Spatio-temporal Pattern Queries
Spatial Online Sampling and Aggregation
Spatio-Temporal Databases
Efficient Evaluation of k-NN Queries Using Spatial Mashups
Similarity Search: A Matching Based Approach
Continuous Density Queries for Moving Objects
Spatial Databases: Spatio-Temporal Databases
Spatio-Temporal Histograms
Efficient Processing of Top-k Spatial Preference Queries
Presentation transcript:

Dept. of Electrical Engineering and Computer Science, Northwestern University Context-Aware Optimization of Continuous Query Maintenance for Trajectories For the Degree Master of Science Hui Ding December, 2005

Dept. of Electrical Engineering and Computer Science, Northwestern University Outline 1. Motivation 2. System Architecture 3. Context-Aware Optimization 4. Experimental Evaluation 3. Conclusion

Dept. of Electrical Engineering and Computer Science, Northwestern University Motivation Location-Based Services has become an enabling technology for many novel classes of applications –Transportation planning –Context-Aware Tourist Information Provider –Digital Battlefield The key problem is the efficient management of: –Transient (location, time) information of the moving objects –Various types of spatio-temporal queries pertaining to the objects Location update Database Server Moving Objects Spatial Queries Business Rules Location update

Dept. of Electrical Engineering and Computer Science, Northwestern University Motivation: Continuous Query Reevaluation Moving Object Database (MOD) differs from traditional database in that the data stored changes over time, due to the dynamic nature of moving objects Accordingly, the queries on such database may be instantaneous as well as continuous Consider the following query: Andi: Give me the 4-star hotels within 5 miles on my way I-90 north

Dept. of Electrical Engineering and Computer Science, Northwestern University Motivation: Modeling Moving Objects in the Database Moving objects can be modeled as follows: sequence of (location,time) updates (e.g., GPS-based) Electronic maps + traffic distribution patterns + set of (to be visited) points => => full trajectory (location,time, Velocity Vector ) updates now ->  A trajectory is a piece-wise linear function f: T -> (x, y) represented as a sequence of points (x1, y1, t1), (x2, y2, t2), …, (xn, yn, tn)  Realistic description: transportation vehicles, patrol cars, delivery trucks, individuals travel between home and work… Continuous Queries are Maintained on the trajectories!

Dept. of Electrical Engineering and Computer Science, Northwestern University Motivation: Reevaluating Continuous queries on trajectories Traffic disturbances (accident, road work, fire, storm, etc.), insertion/deletion of certain trajectory, modification to the query pattern Q: It’s 12:30pm now, retrieve the public transportation buses within half a mile around NU campus between 2:00pm and 2:30pm, and send me the answer at 1:15pm. => answer set of query invalid, => re-evaluation necessary. For example, a bus is delayed by an accident at 1:40pm and cannot be on campus between 2:00pm and 2:30pm

Dept. of Electrical Engineering and Computer Science, Northwestern University Motivation: Scenario Disturbance zone affects some moving objects’ trajectories in the future Queries need re-evaluation Our goal: optimize the response time it takes for re-evaluation

Dept. of Electrical Engineering and Computer Science, Northwestern University Motivation: Problem Statement -- Optimize the Reactive Maintenance of Continuous Queries Q3 need not be re-evaluated since its answer not affected Tr5 and Tr6 need not be considered when reevaluating Q1 and Q2 (not affected by disturbance!) Tr4 need not be considered since it is not relevant to pending queries

Dept. of Electrical Engineering and Computer Science, Northwestern University System Architecture Stored Procedures Main Memory Cache Table Moving Object Table Answers and Answer Updates Traffic Abnormality Post Query Database Dist. Zone ID... Time Duration Traffic Abnormality Table Database Query Region Query ID... Current Answer Query Table Traj. Shape... Pending Query... Traj ID Databas e Query Optimizer SDO_GEOMETRY type Linear Referencing System Index Engine Query Operators Geometry Engine Triggers Context Parser and Extraction User Interface... Traj. Shape... Pending Query Traj ID Traj. Shape... Pending Query Traj ID

Dept. of Electrical Engineering and Computer Science, Northwestern University System Architecture : Main Components  Database Tables  Database Triggers Query Trigger TR_Q:  ON UPDATE TO MOT  IF A_Q Affected  Update A_Q Queries Table (QT) Moving Objects table (MOT) Traffic Abnormalities Table (TAT)  ON INSERT/UPDATE TO TAT  IF trajectories in MOT affected  UPDATE MOT.traj_shape Traffic monitoring Trigger TR_TAT:

Dept. of Electrical Engineering and Computer Science, Northwestern University System Architecture: Queries Considered in Our System Range Query – Retrieve the moving objects within a given region during a time interval Within Distance Query – Retrieve the moving objects within a given distance to a querying object KNN Query – Retrieve the K nearest neighbors to the querying object

Dept. of Electrical Engineering and Computer Science, Northwestern University Context-Aware Optimization: Guideline Carefully avoid context-switching cost –System level –Intra-query level Intelligently reduce disk access and computation volume –Utilizing spatio-temporal context information embedded in the queries/moving objects

Dept. of Electrical Engineering and Computer Science, Northwestern University Context-Aware Optimization: System-level Context-awareness minimize the context-switching among OS processes (semantics of individual trigger execution) Set-level vs. Instance-level query re-evaluation

Dept. of Electrical Engineering and Computer Science, Northwestern University Context-Aware Optimization: System-level Context-awareness “Before” vs. “After” trigger for query re-evaluation

Dept. of Electrical Engineering and Computer Science, Northwestern University Context-Aware Optimization: Intra-query level Context-Awareness Chances of performance tuning: the three steps of reevaluation 1.Between affected moving objects and unaffected queries 2.Between affected queries and unaffected moving objects 3.Between affected moving objects and affected queries Report Traffic Abnormality Moving Object Trajectories Pending Queries Updated Trajectories Affected? Updated Queries Affected? 3 21

Dept. of Electrical Engineering and Computer Science, Northwestern University Context-Aware Optimization: Query Indexing When reevaluating unaffected queries against affected trajectories, index on the pending queries is used to limit search space Construct Minimum Bounding Box on the fly and use it to retrieve queries that need to be reevaluated For Within Distance query and KNN query, index is maintained on the segments of the queries instead of the trajectories to improve selectivity

Dept. of Electrical Engineering and Computer Science, Northwestern University Context-Aware Optimization: Query Ordering When reevaluating affected queries against unaffected trajectories, we use query ordering to take advantage of the operating system cache The space ordering is imposed by using space- filling curve R3 R1 R2 R4

Dept. of Electrical Engineering and Computer Science, Northwestern University Context-Aware Optimization: Join++ -- Spatio-Temporal Peculiarities When reevaluating affected queries against affected trajectories, we proposed a spatio- temporal join algorithm to reduce the amount of computation required

Dept. of Electrical Engineering and Computer Science, Northwestern University Context-Aware Optimization: Spatio-temporal Join Example

Dept. of Electrical Engineering and Computer Science, Northwestern University Experimental Evaluation System-level Context-Awareness Intra-Query level Context-Awareness –Query Indexing –Query Ordering –Spatio-temporal Join Overall performance study

Dept. of Electrical Engineering and Computer Science, Northwestern University Experimental Evaluation: system-level context-awareness “Before “ trigger reduce response time significantly due to the savings in disk access Set-level trigger out performs tuple-level trigger, but this is somewhat diminished by the dominant disk access and computation time

Dept. of Electrical Engineering and Computer Science, Northwestern University Experimental Evaluation: system-level context-awareness Range Query

Dept. of Electrical Engineering and Computer Science, Northwestern University Experimental Evaluation: system-level context-awareness Within Distance Query

Dept. of Electrical Engineering and Computer Science, Northwestern University Experimental Evaluation: system-level context-awareness K-Nearest Neighbor Query

Dept. of Electrical Engineering and Computer Science, Northwestern University Experimental Evaluation: Query Indexing Range Query – 100 Affected Trajectories

Dept. of Electrical Engineering and Computer Science, Northwestern University Experimental Evaluation: Query Indexing Range Query – 200 Affected Trajectories

Dept. of Electrical Engineering and Computer Science, Northwestern University Experimental Evaluation: Query Indexing Within Distance Query – 100 Affected Trajectories

Dept. of Electrical Engineering and Computer Science, Northwestern University Experimental Evaluation: Query Indexing KNN Query – 100 Affected Trajectories

Dept. of Electrical Engineering and Computer Science, Northwestern University Experimental Evaluation: Query Ordering Ordering of A Group of Pending Range Queries

Dept. of Electrical Engineering and Computer Science, Northwestern University Experimental Evaluation: Query ordering Ordering of A Group of Within Distance Queries

Dept. of Electrical Engineering and Computer Science, Northwestern University Experimental Evaluation: Spatio-temporal Join

Dept. of Electrical Engineering and Computer Science, Northwestern University Experimental evaluation: overall performance Context-aware approach can make query reevaluation 3 times faster than the naive approach

Dept. of Electrical Engineering and Computer Science, Northwestern University Conclusion Investigated the impact of various context- dimension on the reevaluation of pending queries Reduced response time to traffic abnormality by utilizing the spatio-temporal correlation between the queries and the (updated) trajectories Implemented a system that maintains correct answers to three types of major continuous queries

Dept. of Electrical Engineering and Computer Science, Northwestern University Ongoing work: OMCAT Demo

Dept. of Electrical Engineering and Computer Science, Northwestern University THANK YOU!