Top Banner
Dynamic routing versus Dynamic routing versus static routing static routing Prof. drs. Dr. Leon Rothkrantz http://www.mmi.tudelft. nl http://www.kbs.twi.tude lft.nl
99
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Dynamic routing versus static Dynamic routing versus static routingrouting

Prof. drs. Dr. Leon Rothkrantz

http://www.mmi.tudelft.nl

http://www.kbs.twi.tudelft.nl

Page 2: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Outline presentationOutline presentation

• Problem definition• Static routing Dijkstra shortest path algorithm• Dynamic traffic data (historical data, real time data)• Dynamic routing using 3D-Dijkstra algorithm• Travel speed prediction using ANN• Personal intelligent traveling assistant (PITA)• PITA in cars and in trains

Page 3: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

IntroductionIntroduction

Problem definition• Find the shortest/fastest route from A to B

using dynamic route information.• Research if dynamic routing results in shorter

traveling time compared to shortest path• Is it possible to route a traveler on his route in

dynamically changing environments ?

Page 4: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

(Non-) congested road(Non-) congested road

Page 5: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

TrafficTraffic

Page 6: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Testbed: graph of highwaysTestbed: graph of highways

Page 7: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

MONICA networkMONICA networkMany sensors/wires along the road to Many sensors/wires along the road to

measure the speed of the carsmeasure the speed of the cars

Page 8: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Smart RoadSmart Road

Many sensors (smart sensors) along a road Sensor devices set up a wireless ad-hoc network Sensor in the car is able to communicate with the road Congestion, icy roads can be detected by the sensors

and communicated along the network, to inform drivers remote in place and time

GPS, GSM can be included in the sensornetworks Wireless communication by wired

lamppost/streetlights

Page 9: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .
Page 10: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Real speed on a road segment Real speed on a road segment during peak hourduring peak hour

Page 11: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

3 dimensional graph3 dimensional graphUse 3D DijkstraUse 3D Dijkstra

Page 12: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Why not search in this 3 dim. Why not search in this 3 dim. graph ?graph ?

This will become a giant graph:

- constructing such a 3 dimensional graph (estimating travel times) would take too

much time

- performance of shortest path algorithm for such a graph will be very poor

Page 13: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Shortest path via dynamic routingShortest path via dynamic routing

Page 14: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Expert systemExpert systemBased on knowledege/experience of daily cardriverBased on knowledege/experience of daily cardriver

(entrance kleinpolderplein ypenburg)

(route ypenburg prins_claus)(file prins_claus badhoevedorp)(route badhoevedorp nieuwe_meer)(exit nieuwe_meer coenplein)

Translate routes to trajectories between junctions and assign labels entrance, route, file and exit to each trajectory

Page 15: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Design (1)Design (1)

Page 16: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Schematic overview of a P+R route.

Page 17: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Design (2)Design (2)

Page 18: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Static car and public transport Static car and public transport routesroutes

Page 19: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Dynamic car routeDynamic car route

Page 20: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

P+R routeP+R route

Page 21: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Expert systemExpert system

(entrance kleinpolderplein ypenburg)

(route ypenburg prins_claus)

(file prins_claus badhoevedorp)

(route badhoevedorp nieuwe_meer)

(exit nieuwe_meer coenplein)

Translate routes to trajectories between junctions and assign labels entrance, route, file and exit to each trajectory

Page 22: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Example alternative routesExample alternative routesusing expert knowledgeusing expert knowledge

Page 23: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Implementation in CLIPSImplementation in CLIPS

Page 24: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Results of dynamic routingResults of dynamic routing

Based on historical traffic speed data dynamic routing is able to save approximately 15% of travel time

During special incidents (accidents, road work,…) savings in travel time increases

During peak hours savings decreases

Page 25: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

User preferencesUser preferences

Shortest travel timePreference routing via highways, secondary

roads minimizedPreferred routing (not) via toll routesFastest route or shortest routeRoute with minimal of traffic jams

Page 26: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

TrafficTraffic

Current systems developed at TUDelft

• Prediction of travel time using ANN (trained on historical data)

• Model of speed as function of time average over road segments/trajectories

• Static routing using Dijkstra algorithm• Dynamic routing using 3D Dijkstra• Dynamic routing using Ant Based Control algorithm• Personal Traveling Assistant online end of 2008

Page 27: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

NN ClassifiersNN Classifiers

Feed-Forward BP Network– single-frame input– two hidden layers– logistic output function in

hidden and output layers– full connections between layers– single output neuron

Page 28: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

NN ClassifiersNN Classifiers

Time Delayed Neural Network– multiple frames input– coupled weights in first hidden layer for time-

dependency learning– logistic output

function in hidden and output layers

(continued)

Page 29: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

NN ClassifiersNN Classifiers

Jordan RecursiveNeural Network– single frame input– one hidden layer– logistic output function

in hidden and output layer– context neuron for time-dependency learning

(continued)

Page 30: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Factors which have impact on the Factors which have impact on the speedspeed

Factors• Time• Day of the week• Month• Weather• Special events

Page 31: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Impact on speedImpact on speed

Time

Page 32: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Impact on speedImpact on speed

Day of the week

Page 33: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Impact on speedImpact on speed

Day of the week

Page 34: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Impact on speedImpact on speed

Month

Page 35: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Impact on speedImpact on speed

Month

Page 36: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Impact on speedImpact on speed

Weather

Page 37: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Impact on speedImpact on speed

Special events

Page 38: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Model 1Model 1

Is it possible to predict average speed on a special location and time?

Page 39: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Model 1Model 1

P r e d i c t o r

o x ( t )

t

d ( t )

d a ( t )

w x ( t )

p e ( t )

s e ( t )

e e ( t )

s i e ( t )

h ( t )

Page 40: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Model 2Model 2

Is it possible to predict average time 25 minutes ahead on a special location with an error of less then 10% ?

Page 41: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Model 2Model 2

P r e d i c t o r

t

d ( t )

d a ( t )

w x ( t )

p e ( t )

s e ( t )

e e ( t )

s i e ( t )

h ( t )

o x ( t - t ) … o x ( t - 2 t ) o x ( t - d t )

o x ( t ) … o x ( t + t ) o x ( t + k t )

Page 42: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Model 3Model 3

Predictor

t

d(t)

da(t)

wx(t)

pe(t)

se(t)

ee(t)

sie(t)

h(t)

ox (t) … ox (t + t) ox (t + kt)

ox-ix (t - t) … ox-ix (t - 2t) ox-ix (t - dt)

ox-x (t - t) … ox-x (t - 2t) ox-x (t - dt)

ox(t - t) … ox (t - 2t) ox (t - dt)

Page 43: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Test results Model 1Test results Model 1

• 6 networks tested• Tuesday• A12 in the direction of Gouda• Best results with 5 neurons in hidden layer

Page 44: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Test results Model 1Test results Model 1

Page 45: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Test results Model 2Test results Model 2

• 9 networks tested• Tuesday• A12 in the direction of Gouda• Best results with 9 neurons in the hidden layer

Page 46: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Test results Model 2Test results Model 2

Page 47: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Test resultsTest results

Page 48: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Test resultsTest results

Results of the best performing network:

• 76% of the values with difference of 10% or less

• Average error is more than 20%• Deleting outliers: average error less than 9%

Page 49: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

ConclusionsConclusions

• Existing research• Formula of Fletcher and Goss• Impact• Results

Page 50: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Current systemCurrent system

• Model (based on historical data)• Accidents and work on the road• Travel time (based on Recurrent neural

networks)• Data collection (average speed per segment, per

road)

Page 51: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .
Page 52: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Ant Based Control Ant Based Control Algorithm (ABC)Algorithm (ABC)

Is inspired from the behavior of the real antsIs inspired from the behavior of the real ants

Was designed for routing the data in packet switch networksWas designed for routing the data in packet switch networks

Can be applied to any routing problem which assumes dynamic Can be applied to any routing problem which assumes dynamic data like:data like:

Routing in mobile Ad-Hoc networks Routing in mobile Ad-Hoc networks Dynamic routing of traffic in a cityDynamic routing of traffic in a city Evacuation from a dangerous area ( the routing is done to multiple Evacuation from a dangerous area ( the routing is done to multiple destinations )destinations )

Page 53: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Natural ants find the Natural ants find the shortest routeshortest route

Page 54: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Choosing randomlyChoosing randomly

Page 55: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Laying pheromoneLaying pheromone

Page 56: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Biased choosingBiased choosing

Page 57: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

3 reasons for3 reasons for choosing the shortest choosing the shortest

pathpathEarlier pheromone (trail completed

earlier)More pheromone (higher ant density)Younger pheromone (less diffusion)

Page 58: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

AApppplication of ant lication of ant behaviourbehaviour in network in network

managementmanagement

Mobile agentsProbability tablesDifferent pheromone for every destination

Page 59: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Traffic mTraffic mooddel el inin oneone node node

i j k

1 pi1 pj1 pk1

2 pi2 pj2 pk2

.. ..

N piN pjN PkN

Routing tableRouting table

Local TrafficLocal Traffic StatisticsStatistics

NetworkNetworknodenode

des

tin

atio

ns

des

tin

atio

ns

neighboursneighbours

1 2 .... N

μ1;σ1; W1 μ2; σ2; W2 … μN; σN; WN

Page 60: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Routing tableRouting table

To forward the packets, each node has a routing table

6 8 101 0.4 0.5 0.1

2 0.7 0.2 0.1

…11 0.4 0.1 0.5

All possible destinations

Neighbours

1

4

2

3

7

9

8

10

11

65

Page 61: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Generating virtual ants Generating virtual ants (agents)(agents)

1. ants are launched on regular intervals

- it goes from source to a randomly chosen destination

1

4

2

1 3

7

9

8

10

11

65

11

Page 62: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Chosing the next nodeChosing the next node

2

1 5

2. Ant chooses its next node according to a probabilistic rule:

-probabilities in routing table;

-traffic level in the node;

2 5

11 0.4 0.6

neighbours

destination

Page 63: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

2

Sniffing the networkSniffing the networkAnt moves towards its destination

…and it memories its path

2

11 t5

10 t4

9 t3

3 t2

2 t1

1 t0

11

8

4

3

7

9

10

11

65

11

3 9

10

Page 64: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

2

8

The backward antThe backward ant

Ant goes back using the same path

11 t5

10 t4

9 t3

3 t2

2 t1

1 t0

1

10

1

11

10

2

4

3

7

9

65

3 9

Page 65: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Updating the Updating the probability tablesprobability tables

On its way to the source, ant updates

routing tables in all nodestable in 1 before update

table after update 2 511 0.4 0.6

2 511 0.8 0.2

2

8

1

10

1

11

10

2

4

3

7

9

65

3 9

Page 66: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

SimpleSimple formula formulaee

Calculate reinforcement:

Update probabilities:

Page 67: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Complex formulaeComplex formulae

P’jd=Pjd + r(1-Pjd)

P’nd=Pnd - rPnd , n<>j

Page 68: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Map representation for

simulation

Simulation Simulation environmentenvironment

Page 69: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

ResultsResults

Number of timesteps8,0006,0004,0002,0000

Ave

rage

sm

art r

oute

tim

e

160

140

120

100

80

60

40

20

0

Number of timesteps8,0006,0004,0002,0000

Ave

rage

sta

ndar

d ro

ute

time

180

160

140

120

100

80

60

40

20

0

Average trip time for the cars using the routing system

Average trip time for the cars that not use the routing system

Page 70: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Simulation environmentSimulation environment

Architecture

GPS-satellite

Vehicle

Routing system

Simulation

Page 71: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

GPS-satellite

Vehicle

Routing system

• Position determination

• Routing

• Dynamic data

Communication flowCommunication flow

Page 72: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Routing systemRouting system

Routing system

Route finding system

MemoryTimetable updating system

Dynamic data

Routing

Page 73: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

1 2 4 5 …

1 - 12 15 - …

2 11 - - 18 …

4 14 - - 13 …

5 - 18 14 - …

… … … … … …

13

2

4 5

6

7

Routing system (2)Routing system (2)Timetable

Page 74: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

ExperimentExperiment

Page 75: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Personal intelligent Personal intelligent travel assistanttravel assistant

PITA is multimodal, speech, touch, text, picture,GPS,GPRSPITA is able to find shortest route in time using dynamic traffic

dataPITA is able to launch robust agents finding information on

different sites (imitating HCI)PITA computes shortest route using AI techniques (expertsystems,

case based reasoning, ant based routing alg, adaptive Dijkstra alg.)

Page 76: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .
Page 77: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .
Page 78: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

PDAPDA

Page 79: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Digital AssistantDigital Assistant

Digital assistant has characteristics of a human operatorAmbient IntelligentContext awarenessAdaptive to personal characteristicsIndependent, problem solverComputational, transparent solutionsMultimodal input/output

Page 80: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Schematic overview of Schematic overview of the PITA componentsthe PITA components

Page 81: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .
Page 82: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Overview of Overview of communicationcommunication

Wireless network Wireless network layers:layers:

human human communication communication layerlayer

virtual virtual communicationcommunication

virtual virtual coordinating agentcoordinating agent

Page 83: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Actors, Agents and Actors, Agents and ServicesServices

Layers of Layers of communication:communication:

overlapping overlapping clouds of actors clouds of actors ( human sensors, ( human sensors, perception perception devices)devices)

corresponding corresponding clouds of clouds of representative representative agentsagents

clouds of clouds of servicesservices

Page 84: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Mobile Ad-Hoc Mobile Ad-Hoc NetworkNetwork

Page 85: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

PITA system in a trainPITA system in a train

Travelers in train have device able to set up a wireless network in the train or to communicate via e-mail, connected to GPS

Position of traveler corresponds to position of trains

(de-)Centralized systems knows the position of train at every time and is able to reroute and inform travelers in dynamically changing environments

Page 86: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

A technical view of the PITA system

Page 87: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .
Page 88: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

The personal agent

Page 89: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

The handheld interface model

Page 90: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

The handheld application model

Page 91: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

A handheld can be connected to the rest of the system by only an ad-hoc wireless connection

Page 92: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

Sequence diagram of the addition of a new delay

Page 93: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

The distributed agent platform architecture

Page 94: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .
Page 95: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .
Page 96: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .
Page 97: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .
Page 98: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

User profiles

THE MAPPING BETWEEN THE USER PROFILES AND THE SEARCHPARAMETERS

Page 99: Dynamic routing versus static routing Prof. drs. Dr. Leon Rothkrantz  .

The route plan to Groningen Noord

Search times