active nearest n eighbor queries for moving objects

113
24.11.2002 The Fourth WIM Meeting 1 Active Nearest Neighbor Queries for Moving Objects Jan Kolar, Igor Timko

Upload: oakley

Post on 23-Jan-2016

50 views

Category:

Documents


0 download

DESCRIPTION

Active Nearest N eighbor Queries for Moving Objects. Jan Kolar, Igor Timko. Outline. Problem Statement System Architecture Data Model Tracking Moving Objects NNC Search & Active Result Distance between Moving Points Conclusions Proposals for Bachelor Projects. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 1

Active Nearest Neighbor Queries

for Moving Objects

Jan Kolar, Igor Timko

Page 2: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 2

Outline

Problem StatementSystem Architecture Data ModelTracking Moving Objects NNC Search & Active Result Distance between Moving Points Conclusions Proposals for Bachelor Projects

Page 3: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 3

Problem Statement Road Network

Copenhagen Moving Data Points

Cars, pedestrians, cyclists, ... Distance along the roads Query Point

A shop assistant Active K-Nearest Neighbor

Query

Monitor 2 nearest shoppers

that need

a nice and cheap dress Active Query Result

T1 : <A, B>

T2 : <B, C>

Page 4: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 4

Problem Statement Road Network

Copenhagen Moving Data Points

Cars, pedestrians, cyclists, ... Distance along the roads Query Point

A shop assistant Active K-Nearest Neighbor

Query

Monitor 2 nearest shoppers

that need

a nice and cheap dress Active Query Result

T1 : <A, B>

T2 : <B, C>

Page 5: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 5

Problem Statement Road Network

Copenhagen Moving Data Points

Cars, pedestrians, cyclists, ... Distance along the roads Query Point

A shop assistant Active K-Nearest Neighbor

Query

Monitor 2 nearest shoppers

that need

a nice and cheap dress Active Query Result

T1 : <A, B>

T2 : <B, C>

Page 6: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 6

Problem Statement Road Network

Copenhagen Moving Data Points

Cars, pedestrians, cyclists, ... Distance along the roads Query Point

A shop assistant Active K-Nearest Neighbor

Query

Monitor 2 nearest shoppers

that need

a nice and cheap dress Active Query Result

T1 : <A, B>

T2 : <B, C>

Page 7: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 7

Problem Statement Road Network

Copenhagen Moving Data Points

Cars, pedestrians, cyclists, ...

Query Point

A shop assistant Active K-Nearest Neighbor

Query

Monitor 2 nearest shoppers

that need

a nice and cheap dress Active Query Result

T1 : <A, B>

T2 : <B, C>

Distance along the roads

Page 8: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 8

Problem Statement Road Network

Copenhagen Moving Data Points

Cars, pedestrians, cyclists, ... Distance along the roads Query Point

A shop assistant Active K-Nearest Neighbor

Query

Monitor 2 nearest shoppers

that need

a nice and cheap dress Active Query Result

T1 : <A, B>

T2 : <B, C>

?

A

B

C

Page 9: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 9

Problem Statement Road Network

Copenhagen Moving Data Points

Cars, pedestrians, cyclists, ... Distance along the roads Query Point

A shop assistant Active K-Nearest Neighbor

Query

Monitor 2 nearest shoppers

that need

a nice and cheap dress Active Query Result

T1 : <A, B>

T2 : <B, C>

?

Time T1

A

B

C

Page 10: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 10

Problem Statement Road Network

Copenhagen Moving Data Points

Cars, pedestrians, cyclists, ... Distance along the roads Query Point

A shop assistant Active K-Nearest Neighbor

Query

Monitor 2 nearest shoppers

that need

a nice and cheap dress Active Query Result

T1 : <A, B>

T2 : <B, C>

?

Time T1

A

B

C

Page 11: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 11

Problem Statement Road Network

Copenhagen Moving Data Points

Cars, pedestrians, cyclists, ... Distance along the roads Query Point

A shop assistant Active K-Nearest Neighbor

Query

Monitor 2 nearest shoppers

that need

a nice and cheap dress Active Query Result

T1 : <A, B>

T2 : <B, C>

?

Time T1

A

B

C

Page 12: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 12

Problem Statement Road Network

Copenhagen Moving Data Points

Cars, pedestrians, cyclists, ... Distance along the roads Query Point

A shop assistant Active K-Nearest Neighbor

Query

Monitor 2 nearest shoppers

that need

a nice and cheap dress Active Query Result

T1 : <A, B>

T2 : <B, C>

?

Time T1

A

B

C

Page 13: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 13

Problem Statement Road Network

Copenhagen Moving Data Points

Cars, pedestrians, cyclists, ... Distance along the roads Query Point

A shop assistant Active K-Nearest Neighbor

Query

Monitor 2 nearest shoppers

that need

a nice and cheap dress Active Query Result

T1 : <A, B>

T2 : <B, C>

?

Time T2

AB

C

Page 14: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 14

Problem Statement Road Network

Copenhagen Moving Data Points

Cars, pedestrians, cyclists, ... Distance along the roads Query Point

A shop assistant Active K-Nearest Neighbor

Query

Monitor 2 nearest shoppers

that need

a nice and cheap dress Active Query Result

T1 : <A, B>

T2 : <B, C>

?

Time T2

AB

C

Page 15: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 15

Problem Statement Road Network

Copenhagen Moving Data Points

Cars, pedestrians, cyclists, ... Distance along the roads Query Point

A shop assistant Active K-Nearest Neighbor

Query

Monitor 2 nearest shoppers

that need

a nice and cheap dress Active Query Result

T1 : <A, B>

T2 : <B, C>

?

Time T2

AB

C

Page 16: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 16

Problem Statement Road Network

Copenhagen Moving Data Points

Cars, pedestrians, cyclists, ... Distance along the roads Query Point

A shop assistant Active K-Nearest Neighbor

Query

Monitor 2 nearest shoppers

that need

a nice and cheap dress Active Query Result

T1 : <A, B>

T2 : <B, C>

?

Time T2

AB

C

Page 17: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 17

System Architecture

Active Result

Positioning Unit

Client Position

Visualization

DB of Distances

Road Network

User Query

Result

NNC Search

DB of Moving Points

Road Network

NNC Request

NNC ReplyNNC Refresh

RN Input

Position Update

RN Update

SERVER CLIENT

Page 18: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 18

System Architecture

Active Result

Positioning Unit

Client Position

Visualization

DB of Distances

Road Network

User Query

Result

NNC Search

DB of Moving Points

Road Network

NNC Request

NNC ReplyNNC Refresh

RN Input

Position Update

RN Update

SERVER CLIENT

Page 19: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 19

System Architecture

Active Result

Positioning Unit

Client Position

Visualization

DB of Distances

Road Network

User Query

Result

NNC Search

DB of Moving Points

Road Network

NNC Request

NNC ReplyNNC Refresh

RN Input

Position Update

RN Update

SERVER CLIENT

Page 20: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 20

System Architecture

Active Result

Positioning Unit

Client Position

Visualization

DB of Distances

Road Network

User Query

Result

NNC Search

DB of Moving Points

Road Network

NNC Request

NNC ReplyNNC Refresh

RN Input

Position Update

RN Update

SERVER CLIENT

Page 21: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 21

Outline

Problem StatementSystem Architecture Data ModelTracking Moving Objects NNC Search & Active Result Distance between Moving Points Conclusions Proposals for Bachelor Projects

Page 22: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 22

Data Model : Overview

Problem Data Road Network (RN) Data Points (DPs)

2D Representation Captures data in native form Supports positioning and visualization Source for graph representation

Graph Representation Captures data in simpler and more ”compact” form Supports algorithms for NN search

Page 23: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 23

Data Model : Overview

Problem Data Road Network (RN) Data Points (DPs)

2D Representation Captures data in native form Supports positioning and visualization Source for graph representation

Graph Representation Captures data in simpler and more ”compact” form Supports algorithms for NN search

Page 24: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 24

Data Model : Overview

Problem Data Road Network (RN) Data Points (DPs)

2D Representation Captures data in native form Supports positioning and visualization Source for graph representation

Graph Representation Captures data in simpler and more ”compact” form Supports algorithms for NN search

Page 25: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 25

Data Model : Overview

Problem Data Road Network (RN) Data Points (DPs)

2D Representation Captures data in native form Supports positioning and visualization Source for graph representation

Graph Representation Captures data in simpler and more ”compact” form Supports algorithms for NN search

Page 26: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 26

Data Model : Road Network

2D

Graph

Real-World RN Road segments

2D RN Lines approximate road segments Lines start and end at vertices Vertices have coordinates

Graph RN Edges are obtained from paths Edges start and end at nodes Nodes have no coordinates

RoadNetwork

Page 27: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 27

Data Model : Road Network

2D

Graph

Real-World RN Road segments

2D RN Lines approximate road segments Lines start and end at vertices Vertices have coordinates

Graph RN Edges are obtained from paths Edges start and end at nodes Nodes have no coordinates

RoadNetwork

Page 28: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 28

Data Model : Road Network

Graph

Real-World RN Road segments

2D RN Lines approximate road segments Lines start and end at vertices Vertices have coordinates

Graph RN Edges are obtained from paths Edges start and end at nodes Nodes have no coordinates

2D

RoadNetwork

Page 29: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 29

Data Model : Road Network

Graph

2D

Real-World RN Road segments

2D RN Lines approximate road segments Lines start and end at vertices Vertices have coordinates

Graph RN Edges are obtained from paths Edges start and end at nodes Nodes have no coordinates

RoadNetwork

Page 30: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 30

Data Model : RN Characteristics

Graph

2D

Real-World RN Road segments have length, maximum

speed, and width

2D RN Lines approximate road segments Lines have length and maximum speed Lines have no width

Graph RN Edges are obtained from paths Edges have edge weight Edge weight is minimal travel time along the

edge – distance in graph Edge weight is calculated by combining line

length and maximum speed

RoadNetwork

Page 31: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 31

Data Model : RN Characteristics Real-World RN

Road segments have length, maximum speed, and width

2D RN Lines approximate road segments Lines have length and maximum speed Lines have no width

Graph RN Edges are obtained from paths Edges have edge weight Edge weight is minimal travel time along the

edge – distance in graph Edge weight is calculated by combining line

length and maximum speed

RoadNetwork

Graph

2D

Page 32: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 32

Data Model : RN Characteristics Real-World RN

Road segments have length, maximum speed, and width

2D RN Lines approximate road segments Lines have length and maximum speed Lines have no width

Graph RN Edges are obtained from paths Edges have edge weight Edge weight is minimal travel time along the

edge – distance in graph Edge weight is calculated by combining line

length and maximum speed

RoadNetwork

Graph

2D

L=10 MS=2

L=12 MS=4

L=10 MS=5

Page 33: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 33

Data Model : RN Characteristics Real-World RN

Road segments have length, maximum speed, and width

2D RN Lines approximate road segments Lines have length and maximum speed Lines have no width

Graph RN Edges are obtained from paths Edges have edge weight Edge weight is minimal travel time along the

edge – distance in graph Edge weight is calculated by combining line

length and maximum speed

RoadNetwork

Graph

2D

W=2+3+5=10

L=10 MS=2

L=12 MS=4

L=10 MS=5

Page 34: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 34

Data Model : Data Points Real-World DPs

Movement of a DP is a continuous function of time

2D Road DPs A DP at a reference time is given by DP

characteristics (DPC): reference timecoordinatespeed

RoadNetwork

2D

Page 35: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 35

Data Model : Data Points Real-World DPs

Movement of a DP is a continuous function of time

2D Road DPs A DP at a reference time is given by DP

characteristics (DPC): reference timecoordinatespeed

RoadNetwork

2D

C(12)=(33,60)

Page 36: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 36

Data Model : Data Points Real-World DPs

Movement of a DP is a continuous function of time

2D Road DPs A DP at a reference time is given by DP

characteristics (DPC): reference timecoordinatespeed

RoadNetwork

C(12)=(33,60)

2D

T=11 C=(34,56) S=3

Page 37: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 37

Data Model : Data Points 2D Road DPs

A DP at the reference time is given by DP characteristics (DPC):

reference timecoordinatespeed

Graph DPs Movement of a DP is a function of time

(positioning function) Positioning function is a combination of DPC:

reference timeedge initial positiongraph speed

2D

T=11 C=(34,56) S=3

Graph

T=11 E=3 IP=3 GS=3

Page 38: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 38

Data Model : Data Points 2D Road DPs

A DP at the reference time is given by DP characteristics (DPC):

reference timecoordinatespeed

Graph DPs Movement of a DP is a function of time

(positioning function) Positioning function is a combination of DPC:

reference timeedge initial positiongraph speed

2D

T=11 C=(34,56) S=3

Graph

T=11 E=3 IP=3 GS=3

P(12)=3+3 = 6

Page 39: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 39

Outline

Problem StatementSystem ArchitectureData ModelTracking Moving Objects NNC Search & Active Result Distance between Moving Points Conclusions Proposals for Bachelor Projects

Page 40: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 40

System Architecture

Active Result

Positioning Unit

Client Position

Visualization

DB of Distances

Road Network

User Query

Result

NNC Search

DB of Moving Points

Road Network

NNC Request

NNC ReplyNNC Refresh

RN Input

Position Update

RN Update

SERVER CLIENT

Page 41: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 41

For a DP, its Client DPC are obtained from the Positioning Unit on the Client

For a DP, its Server DPC reside in the DB of Moving Points on the Server

Update Policy Threshold is a maximum allowed deviation between the positions

given by the Client DPC and by the Server DPC

Start

Node Node

End

Deviation

P(S)

Th Th

P(C)

Tracking Moving Points

P(C)=P(S)

Th Th

P(S)

Th Th

P(C)

Deviation

P(C)=P(S)

Th Th

Page 42: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 43

Outline

Problem Statement Data ModelSystem ArchitectureTracking Moving ObjectsNNC Search & Active Result Distance between Moving Points Conclusions Proposals for Bachelor Projects

Page 43: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 44

System Architecture

Active Result

Positioning Unit

Client Position

Visualization

DB of Distances

Road Network

User Query

Result

NNC Search

DB of Moving Points

Road Network

NNC Request

NNC ReplyNNC Refresh

RN Input

Position Update

RN Update

SERVER CLIENT

Page 44: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 45

NNC Search

Searches for some number of DPs that are nearest to the QP

Application of the Best First Search in graphs Extended with “reading” DPs from edges

During the search, all the DPs are fixed at the time when the search starts

Page 45: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 46

NNC Search

Searches for some number of DPs that are nearest to the QP

Application of the Best First Search in graphs Extended with “reading” DPs from edges

During the search, all the DPs are fixed at the time when the search starts

Page 46: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 47

NNC Search

Searches for some number of DPs that are nearest to the QP

Application of the Best First Search in graphs Extended with “reading” DPs from edges

During the search, all the DPs are fixed at the time when the search starts

Page 47: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 48

NNC Search

Searches for some number of DPs that are nearest to the QP

Application of the Best First Search in graphs Extended with “reading” DPs from edges

During the search, all the DPs are fixed at the time when the search starts

Page 48: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 49

Active Result

Distance between QP and NNCs Sorting NNCs with respect to the distance Estimate of imprecision of NNCs

Expiration Number Distance Limit

Page 49: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 50

Active Result

Distance between QP and NNCs Sorting NNCs with respect to the distance Estimate of imprecision of NNCs

Expiration Number Distance Limit

Page 50: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 51

Active Result

Distance between QP and NNCs Sorting NNCs with respect to the distance Estimate of imprecision of NNCs

Expiration Number Distance Limit

Page 51: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 52

Active Result

Distance between QP and NNCs Sorting NNCs with respect to the distance Estimate of imprecision of NNCs

Expiration Number Distance Limit

Page 52: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 53

Active Result: Procedure

Distance from QP 1 3 5 8 9

Expired DP false false false false false

Distance Limit = 10

Expiration Number = 2

Number of Expired DP = 0

NNC is Valid: YES

1 2 3 4 52 1 4 3 5Time = 1

Number of Expired DP = 1

Time = 2

1371112Distance from QP

falsefalsetruefalsefalseExpired DP

NNC is Valid: NO

15121613Distance from QP

truetruetruefalsefalseExpired DP

Time = 3

Number of Expired DP = 3

2 1 4 3 5

New NNC Request

Page 53: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 54

Outline

Problem StatementSystem Architecture Data ModelTracking Moving Objects NNC Search & Active Result Distance between Moving Points Conclusions Proposals for Bachelor Projects

Page 54: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 55

Definition Distance between two DPs is the shortest path

between the DPs

Difficulty The shortest path between two DPs changes as

the DPs move

Distance between Moving Points

Page 55: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 56

Definition Distance between two DPs is the shortest path

between the DPs

Difficulty The shortest path between two DPs changes as

the DPs move

Distance between Moving Points

Page 56: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 57

Definition Distance between two DPs is the shortest path

between the DPs

Difficulty The shortest path between two DPs changes as

the DPs move

Distance between Moving Points

Page 57: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 58

5

1

13

2

3

6

1

4

6

7

Distance between Moving Points

QD

QD

Q

D

Page 58: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 59

Distance between Moving Points

Requirement Find the shortest path quickly

Idea DB of Distances: pre-compute shortest distances

between each pair of nodes Reduces the distance calculation to several

arithmetic operations

Page 59: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 60

Distance between Moving Points

Requirement Find the shortest path quickly

Idea DB of Distances: pre-compute shortest distances

between each pair of nodes Reduces the distance calculation to several

arithmetic operations

Page 60: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 61

Distance between Moving Points

Requirement Find the shortest path quickly

Idea DB of Distances: pre-compute shortest distances

between each pair of nodes Reduces the distance calculation to several

arithmetic operations

Page 61: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 62

Distance between moving DP: Procedure

5

1

2 1

6

4

6

Q

D

A B

X

Y

|AX|

|AY|

|BX|

|BY|Aq

Aq

Aq

Bq

Bq

Bq

Xd

Xd

Xd

Yd

Yd

Yd

D = min

Page 62: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 63

Outline

Problem StatementSystem Architecture Data ModelTracking Moving ObjectsNNC Search & Active Result Distance between Moving PointsConclusions Proposals for Bachelor Projects

Page 63: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 64

Conclusions

Reusable data model Applicable for other NN, and non-NN problems

Classical algorithm for the NNC search An extension of the Best First Search

Simple idea for maintaining the active result Sort NNCs with respect to the distance to the QP Ask for new NNCs, if the current ones get too far from the QP

Efficient algorithm for the distance calculation Uses the pre-computed shortest distances between each pair of

nodes Reduces the distance calculation to several arithmetic operations

Page 64: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 65

Conclusions

Reusable data model Applicable for other NN, and non-NN problems

Classical algorithm for the NNC search An extension of the Best First Search

Simple idea for maintaining the active result Sort NNCs with respect to the distance to the QP Ask for new NNCs, if the current ones get too far from the QP

Efficient algorithm for the distance calculation Uses the pre-computed shortest distances between each pair of

nodes Reduces the distance calculation to several arithmetic operations

Page 65: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 66

Conclusions

Reusable data model Applicable for other NN, and non-NN problems

Classical algorithm for the NNC search An extension of the Best First Search

Simple idea for maintaining the active result Sort NNCs with respect to the distance to the QP Ask for new NNCs, if the current ones get too far from the QP

Efficient algorithm for the distance calculation Uses the pre-computed shortest distances between each pair of

nodes Reduces the distance calculation to several arithmetic operations

Page 66: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 67

Conclusions

Reusable data model Applicable for other NN, and non-NN problems

Classical algorithm for the NNC search An extension of the Best First Search

Simple idea for maintaining the active result Sort NNCs with respect to the distance to the QP Ask for new NNCs, if the current ones get too far from the QP

Efficient algorithm for the distance calculation Uses the pre-computed shortest distances between each pair of

nodes Reduces the distance calculation to several arithmetic operations

Page 67: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 68

Conclusions

Reusable data model Applicable for other NN, and non-NN problems

Classical algorithm for the NNC search An extension of the Best First Search

Simple idea for maintaining the active result Sort NNCs with respect to the distance to the QP Ask for new NNCs, if the current ones get too far from the QP

Efficient algorithm for the distance calculation Uses the pre-computed shortest distances between each pair of

nodes Reduces the distance calculation to several arithmetic operations

Page 68: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 69

Conclusions

Reasonable system architecture Based on the client-server architecture Distributes the tasks in an efficient way

“Balanced” handling of position updates Updates are not performed continuously Threshold controls precision

Prototype Single-process system that simulates the real application Experiment results show that the solutions are

reasonable

Page 69: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 70

Conclusions

Reasonable system architecture Based on the client-server architecture Distributes the tasks in an efficient way

“Balanced” handling of position updates Updates are not performed continuously Threshold controls precision

Prototype Single-process system that simulates the real application Experiment results show that the solutions are

reasonable

Page 70: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 71

Conclusions

Reasonable system architecture Based on the client-server architecture Distributes the tasks in an efficient way

“Balanced” handling of position updates Updates are not performed continuously Threshold controls precision

Prototype Single-process system that simulates the real application Experiment results show that the solutions are

reasonable

Page 71: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 72

Conclusions

Reasonable system architecture Based on the client-server architecture Distributes the tasks in an efficient way

“Balanced” handling of position updates Updates are not performed continuously Threshold controls precision

Prototype Single-process system that simulates the real application Experiment results show that the solutions are

reasonable

Page 72: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 73

Outline

Problem Statement Data ModelNNC Search & Active Result Distance between Moving PointsSystem Architecture Conclusions Proposals for Bachelor Projects

Page 73: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 74

Proposals for Bachelor Projects

Implementation, experiments, and improvements NNC search Active result Distance calculation Complete architecture

Extending the settings: influence on the algorithms,

the architecture, and the data model “Richer” model Uncertainty of Query Results Pre-Defined Routes Dynamic Weights

Page 74: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 75

Proposals for Bachelor Projects

Implementation, experiments, and improvements NNC search Active result Distance calculation Complete architecture

Extending the settings: influence on the algorithms,

the architecture, and the data model “Richer” model Uncertainty of Query Results Pre-Defined Routes Dynamic Weights

Page 75: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 76

Proposals for Bachelor Projects

Implementation, experiments, and improvements NNC search Active result Distance calculation Complete architecture

Extending the settings: influence on the algorithms,

the architecture, and the data model “Richer” model Uncertainty of Query Results Pre-Defined Routes Dynamic Weights

Page 76: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 77

Active Nearest Neighbor Queries

for Moving Objects

Jan Kolar, Igor Timko

Page 77: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 78

Uncertainty in the NN problem

Igor Timko

Page 78: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 79

Outline

UncertaintyHandling Location UncertaintyConclusions

Page 79: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 80

Uncertainty

Sources of the uncertainty Location of DPs NNCs Dynamic weights Partial NNC search Partial DB of distances Communication network

Problem with the uncertainty Imprecise query result

Handling the uncertainty Calculate the probabilistic NN neighbor

Page 80: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 81

Uncertainty

Sources of the uncertainty Location of DPs NNCs Dynamic weights Partial NNC search Partial DB of distances Communication network

Problem with the uncertainty Imprecise query result

Handling the uncertainty Calculate the probabilistic NN neighbor

Page 81: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 82

Uncertainty

Sources of the uncertainty Location of DPs NNCs Dynamic weights Partial NNC search Partial DB of distances Communication network

Problem with the uncertainty Imprecise query result

Handling the uncertainty Calculate the probabilistic NN neighbor

Page 82: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 83

Uncertainty

Sources of the uncertainty Location of DPs NNCs Dynamic weights Partial NNC search Partial DB of distances Communication network

Problem with the uncertainty Imprecise query result

Handling the uncertainty Calculate the probabilistic NN neighbor

Page 83: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 84

Outline

UncertaintyHandling Location UncertaintyConclusions

Page 84: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 85

Handling Location Uncertainty Old active result procedure

Obtain NNCs Calculate distances between the NNCs and the QP Sort the NNCs

Identifying the uncertainty Calculated distances are uncertain, because locations of NNCs are uncertain

Page 85: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 86

Handling Location Uncertainty Old active result procedure

Obtain NNCs Calculate distances between the NNCs and the QP Sort the NNCs

Identifying the uncertainty Calculated distances are uncertain, because locations of NNCs are uncertain

Page 86: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 87

Handling Location Uncertainty Old active result procedure

Obtain NNCs Calculate distances between the NNCs and the QP Sort the NNCs

Identifying the uncertainty Calculated distances are uncertain, because locations of NNCs are uncertain

Page 87: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 88

Measuring the Uncertainty

Bounded normal distribution• Mean is at the distance value• Deviation is the update threshhold

D1 D2 D3

Th Th

Page 88: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 89

New Active Result Procedure New active result procedure

Obtain NNCs For each NNC

• calculate distances between it and the QP• construct the probability distribution• calculate the probability of being NN

Page 89: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 90

New Active Result Procedure New active result procedure

Obtain NNCs For each NNC

• calculate distances between it and the QP• construct the probability distribution• calculate the probability of being NN

Page 90: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 91

Conclusions

There are many sources of the uncertainty in the NN problem

The uncertainty makes the NN query result imprecise

The uncertainty is handled by the probabilistic NN queries

Page 91: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 92

Conclusions

There are many sources of the uncertainty in the NN problem

The uncertainty makes the NN query result imprecise

The uncertainty is handled by the probabilistic NN queries

Page 92: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 93

Conclusions

There are many sources of the uncertainty in the NN problem

The uncertainty makes the NN query result imprecise

The uncertainty is handled by the probabilistic NN queries

Page 93: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 94

Conclusions

There are many sources of the uncertainty in the NN problem

The uncertainty makes the NN query result imprecise

The uncertainty is handled by the probabilistic NN queries

Page 94: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 95

Uncertainty in the NN problem

Igor Timko

Page 95: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 96

Outline

UncertaintyHandling Location UncertaintyConclusions

Page 96: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 97

Uncertainty

Sources of the uncertainty Location of DPs NNCs Dynamic weights Partial NNC search Partial DB of distances Communication network

Problem with the uncertainty Imprecise query result

Handling the uncertainty Calculate the probabilistic NN neighbor

Page 97: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 98

Uncertainty

Sources of the uncertainty Location of DPs NNCs Dynamic weights Partial NNC search Partial DB of distances Communication network

Problem with the uncertainty Imprecise query result

Handling the uncertainty Calculate the probabilistic NN neighbor

Page 98: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 99

Uncertainty

Sources of the uncertainty Location of DPs NNCs Dynamic weights Partial NNC search Partial DB of distances Communication network

Problem with the uncertainty Imprecise query result

Handling the uncertainty Calculate the probabilistic NN neighbor

Page 99: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 100

Uncertainty

Sources of the uncertainty Location of DPs NNCs Dynamic weights Partial NNC search Partial DB of distances Communication network

Problem with the uncertainty Imprecise query result

Handling the uncertainty Calculate the probabilistic NN neighbor

Page 100: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 101

Outline

UncertaintyHandling Location UncertaintyConclusions

Page 101: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 102

Handling Location Uncertainty Old active result procedure

Obtain NNCs Calculate distances between the NNCs and the QP Sort the NNCs

Identifying the uncertainty Calculated distances are uncertain, because locations of NNCs are uncertain

Page 102: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 103

Handling Location Uncertainty Old active result procedure

Obtain NNCs Calculate distances between the NNCs and the QP Sort the NNCs

Identifying the uncertainty Calculated distances are uncertain, because locations of NNCs are uncertain

Page 103: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 104

Handling Location Uncertainty Old active result procedure

Obtain NNCs Calculate distances between the NNCs and the QP Sort the NNCs

Identifying the uncertainty Calculated distances are uncertain, because locations of NNCs are uncertain

Page 104: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 105

Measuring the Uncertainty

Bounded normal distribution• Mean is at the distance value• Deviation is the update threshhold

D1 D2 D3

Th Th

Page 105: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 106

Measuring the Uncertainty

Bounded normal distribution• Mean is at the distance value• Deviation is the update threshhold

D1 D2 D3

Th Th

Page 106: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 107

New Active Result Procedure New active result procedure

Obtain NNCs For each NNC

• calculate distances between it and the QP• construct the probability distribution• calculate the probability of being NN

Page 107: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 108

New Active Result Procedure New active result procedure

Obtain NNCs For each NNC

• calculate distances between it and the QP• construct the probability distribution• calculate the probability of being NN

Page 108: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 109

Conclusions

There are many sources of the uncertainty in the NN problem

The uncertainty makes the NN query result imprecise

The uncertainty is handled by the probabilistic NN queries

Page 109: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 110

Outline

UncertaintyHandling Location UncertaintyConclusions

Page 110: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 111

Conclusions

There are many sources of the uncertainty in the NN problem

The uncertainty makes the NN query result imprecise

The uncertainty is handled by the probabilistic NN queries

Page 111: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 112

Conclusions

There are many sources of the uncertainty in the NN problem

The uncertainty makes the NN query result imprecise

The uncertainty is handled by the probabilistic NN queries

Page 112: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 113

Conclusions

There are many sources of the uncertainty in the NN problem

The uncertainty makes the NN query result imprecise

The uncertainty is handled by the probabilistic NN queries

Page 113: Active  Nearest  N eighbor Queries for  Moving  Objects

24.11.2002 The Fourth WIM Meeting 114

Uncertainty in the NN problem

Igor Timko