rebuilding the traffic dynamics from partial traffic data ... faculteit/afdelingen... · 1....

75
Rebuilding The Traffic Dynamics From Partial Traffic Data Using Information Theory/ML A Hybrid Markov Chain/ Neural Network Approach Alexandros Sopasakis Mathematics Lund University, Sweden on going work with Markos Katsoulakis & Luk Ray Bellet, Univ. of Massachusetts, USA

Upload: others

Post on 27-Jul-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Rebuilding The Traffic Dynamics From

Partial Traffic Data Using Information Theory/ML

A Hybrid Markov Chain/ Neural Network Approach

Alexandros Sopasakis

Mathematics

Lund University, Sweden

on going work with

Markos Katsoulakis &

Luk Ray Bellet,

Univ. of Massachusetts, USA

Page 2: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Outline

• Part 1. The lattice-free microscopic dynamics:

Desirable features for specific applications

– Specialized potentials: Look-ahead dynamics

– Conservation

• Part 2. Parameters and Calibration

– Information Theory

– Neural Networks

Simulations & comparisons throughout

Page 3: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Outline

• Part 1. The lattice-free microscopic dynamics:

Desirable features for specific applications

– Specialized potentials: Look-ahead dynamics

– Conservation

• Part 2. Parameters and Calibration

– Information Theory

– Neural Networks

Simulations & comparisons throughout

Page 4: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

We let L denote a lattice of N cells.

and consider the microscopic spin-like variable on L

We denote by s(x) the spin at location x,

While we denote by the complete configuration of the

lattice at time t.

Configuration is an element of the configuration space

and we write

L }1,0{}:)({ L xxss

0 11 10 )(xs

Main Statistical Mechanics Concepts

Describing the interacting particle system

0}{ tts

1. Katsoulakis, Majda and Vlachos, Comput. Phys. 186(1), 2003.

1

tss :

s

Page 5: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Consider moving away from lattices

Page 6: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Set-theoretic partition. Idealization in 1D

Schematic of disjoint sets comprising L for 1-D example.

Wi's denote unoccupied space and vary in size.

Bi's denote occupied space by a single particle and their size is equal to particle size.

Wk+1 Wk+2 Wk+1 Wk+n-1 Wk+n

Page 7: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Spin – flip rate for particles adsorbing/desorbing from/to the problem

domain.

The rates c are calculated from

where

and |V| = max(Bi) for i in (1,k)

0)( )(

1)( )),(exp(),(

iifiwc

iifiUcic

a

d

s

sss

otherwise

VEifVEiw

ii

0

|||| ||||)(

1. Sopasakis. Lattice-free stochastic dynamics, Comm. in Comput. Phys., 2012

1

Building the continuous time, space Markov ChainMicroscopic Arrhenius Spin-Flip Dynamics

Page 8: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Building the continuous time, space Markov Chain

Following ideas in [ ] we introduce a lattice-free Arrhenius spin-exchange rate c(x,y,s),

where parameter denotes the characteristic time of the process and

U is the interaction potential.0

Microscopic Arrhenius Spin-Exchange Dynamics

1,2

1. T.M. Liggett, Interacting Particle Systems, Lecture Notes from Trieste, Springer 2002.

2. Katsoulakis, Majda and S., Nonlinearity, 19(5), 2006.

),( )( )](1[ )( 1

),,( sss

s xUeywyxyxc

X Y

Page 9: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

We define the interaction potential

where

Here parameter Jo denotes the strength of the interactions,

and parameter L denotes the range of interactions.

This potential enforces:

• Vehicles do not move backwards

• Local effect of the interactions

otherwise ,0

0 if ,)(

0 LrJrJ

Incorporating the Physics and Creating the ASEP

L

zxz

zyxJtxU )( ),( s

Page 10: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Incorporating multi-lane interactions

Let’s look once again

at the rate functional

to move forward

We incorporate lane-changing via an additional anisotropy type potential.

Thus our total interaction potential now consists of:

where

with

)()()( xUxUxU aT ))(1(),()( yyxxUnny

a s

forwardy if

right y if

left y if

),(

f

r

l

k

k

k

yx

),( )( )](1[ )( 1

),,( sss

s xUeywyxyxc

Page 11: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

The Mathematical Model

The mathematical model therefore is

The probability of a vehicle moving from x to y during time [t, t+Dt]

is

L

x

ffcMf )](*)()[()( ssss

)()( ss EMfEfdx

d

*s

The process is a continuous time, continuous space jump

Markov Chain on with generator

where denotes a new lattice configuration and c(s) denotes the

rate of the stochastic process

0}{ tts

),( RL

)(),,( 2tOtyxc DDs

Page 12: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

P2 P3 P4P1 P5Probabilities

Idealization of

Monte Carlo

simulation

Random pick

Monte Carlo moves vehicle 2

)(),,( 2tOtyxc DDs

A move from location x to location y during time [t, t+Dt]

has probability P =

1. Bortz, Kalos and Lebovitz, A new algorithm for Monte Carlo simulations, J. Comp. Phys., 1975

Page 13: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

The model is characterized by a number of parameters some of the most

important of which are:

𝜏0 - how fast vehicles react to traffic conditions ahead

- what is the speed limit of the roadway

- how far ahead can drivers perceive traffic (L= 20, 30 or 40 meters)

...

Free Parameters and Calibration

L0J

Page 14: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Testing – Features

Timely breaking/returded acceleration

Page 15: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Flow-Density Diagram Simulated Data

Testing most important requirement

The Fundamental Diagram

Actual Data

Page 16: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

PDE model

Using the LLN and Taylor expansions we obtain the following

macroscopic transport equation:

where the PDE flux is

with

uJeuucuF )1()( 0

0)( zt uFu

z

dyyuzyVuJ )()(

Sopasakis - Lund University 41

1. Sopasakis and Katsoulakis, Transp. Res. B, 2012.

1

Page 17: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

PDE model

We obtain the following macroscopic transport equation:

where the PDE flux is uJeuucuF )1()( 0

0)( zt uFu

...)()(0

210

zzz uJuJuJdxzxuxVuJ

]1[ 210

zzz

uJuJ uJuJee

0)( zt uFu

Expanding the convolution

and approximating the exponential

the traffic model PDE becomes…

Sopasakis - Lund University 44

Page 18: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

The traffic model PDE, where

Note:

• No interactions (J=0):

Lighhill-Whitham/Burger’s eq.

zzz

uJ

zz

uJ

z

uJ

t ueuuJcueuuJceuucu ])1([])1([])1([ 000

20100

0)]1([0 zt uucu

Sopasakis - Lund University 46

0)( zt uFu ]1[ 210

zzz

uJuJ uJuJee

Page 19: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Lighthill-Whitham /

Burgers flux

Sopasakis - Lund University 47

Page 20: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

The traffic model PDE, where

Note:

• No interactions (J=0):

Lighhill-Whitham/Burger’s eq.

• Long range (L=N) uniform (J=Jo) interactions:

Non-local flux

zzz

uJ

zz

uJ

z

uJ

t ueuuJcueuuJceuucu ])1([])1([])1([ 000

20100

0])1([ 0

0

z

uJ

t euucu

Sopasakis - Lund University 48

0)]1([0 zt uucu

0)( zt uFu ]1[ 210

zzz

uJuJ uJuJee

Page 21: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Sopasakis - Lund University 49

Page 22: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

The traffic model PDE, where

Note:

• No interactions (J=0):

Lighhill-Whitham/Burger’s eq.

• Long range (L=N) uniform (J=Jo) interactions:

Non-local flux

• Including terms up to Jo in the convolution,

Non-convex flux

zzz

uJ

zz

uJ

z

uJ

t ueuuJcueuuJceuucu ])1([])1([])1([ 000

20100

0])1([ 0

0

z

uJ

t euucu

0])1([ 0

0

z

uJ

t euucu

Sopasakis - Lund University 50

0)]1([0 zt uucu

0)( zt uFu ]1[ 210

zzz

uJuJ uJuJee

Page 23: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Non-convex

Sopasakis - Lund University 51

Page 24: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

The traffic model PDE, where

Note:

• No interactions (J=0):

Lighhill-Whitham/Burger’s eq.

• Long range (L=N) uniform (J=Jo) interactions:

Non-local flux

• Including terms up to Jo in the convolution,

Non-convex flux

• Terms up to

Nonlinear diffusive LWR type

• Full model is higher order dispersive (KDV type?)

with nonlinear coefficients

zzz

uJ

zz

uJ

z

uJ

t ueuuJcueuuJceuucu ])1([])1([])1([ 000

20100

0)1(0 uucut

0])1([ 0

0

z

uJ

t euucu

0])1([ 0

0

z

uJ

t euucu

1J

zz

uJ

z

uJ

t ueuuJceuucu ])1([])1([ 00

100

Sopasakis - Lund University 52

0)( zt uFu ]1[ 210

zzz

uJuJ uJuJee

Page 25: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Outline

• Part 1. The lattice-free microscopic dynamics:

Desirable features for specific applications

– Specialized potentials: Look-ahead dynamics

– Conservation

• Part 2. Parameters and Calibration

– Information Theory

– Neural Networks

• Part 3. Simulations & comparisons

Page 26: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Summary of terms ot keep track of:

Local transition rates and probabilities

The process is defined as a continuous time Markov Chain (CTMC) on the (high

dimensional) state space

Mathematically it is defined completely by specifying the local transition rates

where is a vector of the model parameters.

The transition rates determine the updates (jumps) from any current state to a random

new state .

Let us also define the total rate

which is the intensity of the exponential waiting time for a jump from the state

Finally the transition probabilities are simply given by

E

c'

)',()(s

sss

)(

)',()',(

s

ssss

c

p

0tts

||LE

)',( ssckR

s

s's

Page 27: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Examples of local transition rates

The Arrhenius spin-exchange rate c(x,y,s),

Microscopic Arrhenius Spin-Exchange Dynamics

1,2

1. T.M. Liggett, Interacting Particle Systems, Lecture Notes from Trieste, Springer 2002.

2. Katsoulakis, Majda and Sopasakis, Nonlinearity, 19(5), 2006.

Similarly, the Arrhenius spin-flip rate c(x,s) at lattice site x and current state

configuration s is given by

with adsorption/desoprion constants, da cc ,

)',( ssc

),( )( )](1[ )( 1

),,( sss

s xUeywyxyxc

0)( )(

1)( )),(exp(),(

iifiwc

iifiUcic

a

d

s

sss

Page 28: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Information theoretic

parametrization approach

We propose two tools which quantify

information loss in time series (path-space):

o The pathwise Relative Entropy Rate (RER)

performs sensitivity analysis by perturbing the parameter space

(identifies the most important parameters to be adjusted)

o The pathwise Fisher Information Matrix (FIM)

identifies the unimportant model parameters (performs model reduction)

Page 29: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

The Relative Entropy

Definition. The relative entropy (or Kullback-Leiber divergence) between

two probability measures P and Q is defined via

The Relative Entropy can be thought as a “distance” or more precisely a

semi-metric between the two measures.

Properties:

The relative entropy is not necessarily symmetric and may not satisfy the

triangle inequality

The relative entropy measures loss/change of information.

dPdQ

dPQPR log)|(

0)|( (i) QPR

a.e. iff 0)|( (ii) QPQPR

Page 30: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

The Relative Entropy Rate

The Relative Entropy Rate (RER) can be thought as the change of information

per unit time

The estimator for RER over time T for a given perturbation vector e

where 𝑐 𝜎𝑖; 𝑝 = σ𝑗=1𝑀 𝑐𝑗 𝜎𝑖; 𝑝 .

method constitutes an inverse dynamics Monte Carlo approach

and reconstructs the Markov chain by performing sensitivity analysis

Infers information regarding path distribution: steady states + transient dynamics

RER is an observable+statistical estimators=> computationally tractable using (fast)

molecular solvers.

D

1

0 1

);();();(

);(log);(

1)(

n

i

ii

M

j ij

ij

ijic ccc

cct

TR ses

es

sse

)()()',(

)',(log)',()|(

'

],0[],0[ ssss

ssss e

e

s

e

c

ccEQQH

E

TT

1. Sopasakis and Katstoulakis, Transp. Res. B, 2016

1

Page 31: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Relative Entropy Rate versus time

Four trajectories are computed and presented above.

Each trajectory is created by separately perturbing

each of the parameters above.

Properties:

• RER works in path-space.

Analyzing perturbations of

trajectories in order to

identify sensitive parameters

• Extract statistical properties from

non-equilibrium dynamics

• Optimization of parameter

vector is possible (note that

RER is quadratic in ).

Page 32: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

The Fisher Information Matrix

Definition. The Fisher Information Matrix, for a

given probability density is defined to be the

Hessian of the Relative Entropy.

The estimator for FIM is

* Spectral analysis of the FIM reveals the

least/most sensitive parameters/directions

E

T

TH cccEQF'

],0[ )',(log)',(log)',()(s

ssssss

HF

],0[ TQ

Dn

i

M

j

T

ijjijjijin pcpcpctT

pF0 1

);(log);(log);(1

)( sss

(depends only on analytic derivatives of the propencity functions c – computed in advance)

Page 33: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

The Fisher Information Matrix for 5 parametersGiven synthetic data we computer the FIM for five model parameters in

order to understand which of those are important. According to the

current dynamics only c_0 and J_0 are important for this model. We can

therefore eliminate the parameters c_r, c_l and c_f.

Page 34: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Strategy

• First apply FIM.

this results into a reduced traffic model since we can eliminate the

unimportant (given the current dynamics) model parameters

• Then apply RER.

We now perturb the remaining (reduced) model parameters in order

to obtain better values for them which represent the current

dynamics.

• Optional Step. Optimize.

This step allows us to also, if desired, obtain the best values for those

model parameters (although that may not be necessary).

Page 35: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

The RER for the parameter c_0

The RER is a convex function and therefore its minimum can be

computed. This computation gives an indication as to how to obtain

better values for the parameter c_0.

Page 36: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

The RER for the parameter c_0

However the actual minimum may be outside the range of physical

relevance for the traffic model.

Page 37: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Outline

• Part 1. The lattice-free microscopic dynamics:

Desirable features for specific applications

– Specialized potentials: Look-ahead dynamics

– Conservation

• Part 2. Parameters and Calibration

– Information Theory

– Neural Networks

• Part 3. Simulations & comparisons

I am sorry Dave, I am afraid I cannot do that!

Page 38: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Neural Networks

• Branch of AI (machine learning) imitating how the brain synapses process

information

• Basic components: input layer, hidden layers, output layer each

comprised of nodes and connected by weights

Page 39: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

A typical machine learning task

What is a “2”?

Page 40: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

W1

W2

W3

f(x)

1.4

-2.5

-0.06

Page 41: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

2.7

-8.6

0.002

f(x)

1.4

-2.5

-0.06

x = -0.06×2.7 + 2.5×8.6 + 1.4×0.002 = 21.34

Page 42: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

A dataset

Fields class

1.4 2.7 1.9 0

3.8 3.4 3.2 0

6.4 2.8 1.7 1

4.1 0.1 0.2 0

etc …

Page 43: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Training data

Fields class

1.4 2.7 1.9 0

3.8 3.4 3.2 0

6.4 2.8 1.7 1

4.1 0.1 0.2 0

etc …

Initialise with random weights

Page 44: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Training data

Fields class

1.4 2.7 1.9 0

3.8 3.4 3.2 0

6.4 2.8 1.7 1

4.1 0.1 0.2 0

etc …

Present a training pattern

1.4

2.7

1.9

Page 45: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Training data

Fields class

1.4 2.7 1.9 0

3.8 3.4 3.2 0

6.4 2.8 1.7 1

4.1 0.1 0.2 0

etc …

Feed it through to get output

1.4

2.7 0.8

1.9

Page 46: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Training data

Fields class

1.4 2.7 1.9 0

3.8 3.4 3.2 0

6.4 2.8 1.7 1

4.1 0.1 0.2 0

etc …

Compare with target output

1.4

2.7 0.8

01.9 error 0.8

Page 47: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Training data

Fields class

1.4 2.7 1.9 0

3.8 3.4 3.2 0

6.4 2.8 1.7 1

4.1 0.1 0.2 0

etc …

Adjust weights based on error

1.4

2.7 0.8

0 1.9 error 0.8

Page 48: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Training data

Fields class

1.4 2.7 1.9 0

3.8 3.4 3.2 0

6.4 2.8 1.7 1

4.1 0.1 0.2 0

etc …

Present a training pattern

6.4

2.8

1.7

Page 49: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Training data

Fields class

1.4 2.7 1.9 0

3.8 3.4 3.2 0

6.4 2.8 1.7 1

4.1 0.1 0.2 0

etc …

Feed it through to get output

6.4

2.8 0.9

1.7

Page 50: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Training data

Fields class

1.4 2.7 1.9 0

3.8 3.4 3.2 0

6.4 2.8 1.7 1

4.1 0.1 0.2 0

etc …

Compare with target output

6.4

2.8 0.9

11.7 error 0.1

Page 51: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Training data

Fields class

1.4 2.7 1.9 0

3.8 3.4 3.2 0

6.4 2.8 1.7 1

4.1 0.1 0.2 0

etc …

Adjust weights based on error

6.4

2.8 0.9

11.7 error 0.1

Page 52: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Training data

Fields class

1.4 2.7 1.9 0

3.8 3.4 3.2 0

6.4 2.8 1.7 1

4.1 0.1 0.2 0

etc …

Keep repeating ….

6.4

2.8 0.9

11.7 error 0.1

Use Backpropagation Algorithm

to make

changes that will reduce the error

Page 53: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Backpropagation

• Goal minimize network error:

Each partial derivative of grad E is made up of derivatives of succesive

activation functions and weights

IDEA: iteratively follow in the direction of the negative gradient (steepest

descent direction) until we arrive at the stopping criterion:

To achieve this, at each step, we update the weights based on its

corresponding partial derivative

Thus the updating rule is...

N

n

M

m

mnmn apwxE1 1

2

,,2

1),(

0 Ew

nw

E

T

Nw

E

w

E

w

E

,...,,

21

Page 54: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Gauss - Newton

• Thus the updating rule is :

but it can be computationally slow...

• On the other hand Gauss-Newton is computationally fast but not always

stable (not always invertible H)

• We adapt it using the Levenberg-Marquardt algorithm

m

mmw

EHww

1

1

m

mmw

EIHww

1

1 )(

m

mmw

Eww

1

Page 55: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

CNN for Image Classification

Convolutional Layer

Page 56: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

CNN for Image Classification

Convolutional Layer

Page 57: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

CNN for Image Classification

Convolutional Layer

Page 58: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

CNN for Image Classification

Convolutional Layer

Page 59: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

CNN for Image Classification

Convolutional Layer

Page 60: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

CNN for Image Classification

Max Pooling

Page 61: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

CNN for Image Classification

Max Pooling

Page 62: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

CNN for Image Classification

Max Pooling

Page 63: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

CNN for Image Classification

Max Pooling

Page 64: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

CNN for Image Classification

http://deeplearning.net/tutorial/lenet.html

Potential around this vehicle

Page 65: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Outline

• Part 1. The lattice-free microscopic dynamics:

Desirable features for specific applications

– Specialized potentials: Look-ahead dynamics

– Conservation

• Part 2. Parameters and Calibration

– Information Theory

– Neural Networks

• Part 3. Simulations & comparisons

Page 66: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Test case: a real highway – the NGSIM project

• Highway U.S. 101 near Los Angeles, in California

• 5 lanes with entrances and exits.

• 15 minutes intervals of very detailed data

Page 67: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

A Monte Carlo Multi-Lane, Multi-Class

Vehicle simulation…

carSimulator.html

Simulation

Real Data

Page 68: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Test case: Stoc. Sims + RER vs reality

• Highway U.S. 101, Los Angeles, California

• 5 lanes with entrances and exits.

• 15 minutes intervals of very detailed rush hour data: 8:05am to 8:20am

Page 69: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

US 101

Actual data vs stochastic

Page 70: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

US 101

Actual data vs stochastic + RER

Page 71: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

US 101

Actual data vs stochastic + RER vs stochastic + AI

Page 72: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

US-880

Page 73: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Thank you!

Page 74: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Related Publications

•G. Giacomin, J.L. Lebowitz and E. Presutti, Deterministic and Stochastic

Hydrodynamic Equations Arising from Simple Microscopic Model

Systems

•Katsoulakis, Majda, Sopasakis, Nonlinearity, (2006).

•Katsoulakis, Majda, Sopasakis, AMS Contemporary Math., (2010).

•Katsoulakis, Plechac, Sopasakis, SIAM J. Numerical Analysis, (2006).

•C. Kipnis and C. Landim, Scaling Limits of Interacting Particle Systems,

Springer, 1999.

•N.V.Krylov, Introduction to the Theory of Random Processes, Graduate

Studies in Mathematics, Vol 43, AMS, Providence, Rhode Island, 2002.

•Khouider, Majda, PNAS, (2003).

•I. Palasti, On some random space filling problems, Publ. Math. Inst.

Hungar. Acad. Sci., 5:353-360, 1960.

•A. Renyi, On a one-dimensional problems concerning random space-

filling, Publ. Math. Inst. Hungar. Acad. Sci., 3:109-127, 1958

•Sopasakis, Physica A, (2003).

•Sopasakis and Katsoulakis, SIAM J. Applied Math. (2005).

•T. M. Liggett, Continuous Time Markov Processes: An Introduction,

Graduate Studies in Mathematics, Vol 113, AMS, Providence, Rhode

Island, 2010.

Thank you!

Page 75: Rebuilding The Traffic Dynamics From Partial Traffic Data ... faculteit/Afdelingen... · 1. Sopasakis and Katstoulakis, Transp. Res. B, 2016 1. Relative Entropy Rate versus time Four

Thank you!