Parameter estimation for pedestrian dynamics models Susana Gomes - - PowerPoint PPT Presentation

parameter estimation for pedestrian dynamics models
SMART_READER_LITE
LIVE PREVIEW

Parameter estimation for pedestrian dynamics models Susana Gomes - - PowerPoint PPT Presentation

Parameter estimation for pedestrian dynamics models Susana Gomes Mathematics Institute, University of Warwick Joint work with A.M. Stuart (Caltech) and M.-T. Wolfram (Warwick) Crowds: Models and Control CIRM, Marseille, 5 th of June 2019


slide-1
SLIDE 1

Parameter estimation for pedestrian dynamics models

Susana Gomes

Mathematics Institute, University of Warwick Joint work with A.M. Stuart (Caltech) and M.-T. Wolfram (Warwick)

Crowds: Models and Control CIRM, Marseille, 5th of June 2019

slide-2
SLIDE 2

Motivation

hello world We use a simple model exploring a coupling between

  • a microscopic model for the trajectories of

pedestrians (data from experiments1), and

  • a macroscopic model for the density of

pedestrians to identify and estimate quantities of interest for the dynamics of the crowd.

1BaSiGo experiments (Forschungszentrum Jülich) 2Figure from Chattaraj, Seyfried, Chakroborty, Advances in Complex Systems, 2009. 1 / 17

slide-3
SLIDE 3

Motivation

hello world We use a simple model exploring a coupling between

  • a microscopic model for the trajectories of

pedestrians (data from experiments1), and

  • a macroscopic model for the density of

pedestrians to identify and estimate quantities of interest for the dynamics of the crowd. In particular, we would like to

  • estimate parameters appearing in the fundamental

diagram2, or

  • learn the functional form of the fundamental

diagram, and

  • explore whether we can use the fundamental

diagram for the time dependent evolution of crowds. hello world hello world hello world

1BaSiGo experiments (Forschungszentrum Jülich) 2Figure from Chattaraj, Seyfried, Chakroborty, Advances in Complex Systems, 2009. 1 / 17

slide-4
SLIDE 4

Our model: The microscopic equation

(0, −ℓ) (L, −ℓ) (0, ℓ) (L, ℓ) ΓN ΓN Γin Γout F(ρ(x, t))

Individual trajectories are realizations of a generalized McKean–Vlasov equation dXt = F(ρ(Xt, t)) dt + √ 2Σ dWt.

  • W(·) is a unit Brownian motion
  • Σ is a diffusion tensor
  • ρ is the density of the process
  • F(ρ(x, t)) = vmax
  • 1 − ρ(x,t)

ρmax

  • e1 (from

fundamental diagram). The microscopic equation depends on the density of the process.

2 / 17

slide-5
SLIDE 5

Our model: The macroscopic equation

The corresponding Fokker–Planck equation is ρt = ∇ ·

  • Σ∇ρ − vmax
  • 1 −

ρ ρmax

  • ρ
  • ,

(0, −ℓ) (L, −ℓ) (0, ℓ) (L, ℓ) ΓN ΓN Γin Γout F(ρ(x, t))

with boundary conditions: (−Σ∇ρ + F(ρ)ρ) · n = −a (ρmax − ρ) , for x ∈ Γin, (−Σ∇ρ + F(ρ)ρ) · n = bρ, for x ∈ Γout, (−Σ∇ρ + F(ρ)ρ) · n = 0, for x ∈ ΓN. where n is the unit normal, a is the inflow rate and b the outflow rate.

3 / 17

slide-6
SLIDE 6

The Fokker-Planck equation rescaled

By defining ˜ ρ =

ρ ρmax , we obtain a rescaled SDE-PDE system:

dXt = vmax (1 − ˜ ρ) dt + √ 2Σ dWt, ˜ ρt = ∇ · (Σ∇˜ ρ − vmax˜ ρ(1 − ˜ ρ)) , with the boundary conditions ˜ j · n = −a (1 − ˜ ρ) , for x ∈ Γin, ˜ j · n = b˜ ρ, for x ∈ Γout, ˜ j · n = 0, for x ∈ ΓN. and where ˜ j = (−Σ∇˜ ρ + vmax(1 − ˜ ρ)˜ ρ).

4 / 17

slide-7
SLIDE 7

The Fokker-Planck equation rescaled

By defining ˜ ρ =

ρ ρmax , we obtain a rescaled SDE-PDE system:

dXt = vmax (1 − ˜ ρ) dt + √ 2Σ dWt, ˜ ρt = ∇ · (Σ∇˜ ρ − vmax˜ ρ(1 − ˜ ρ)) , with the boundary conditions ˜ j · n = −a (1 − ˜ ρ) , for x ∈ Γin, ˜ j · n = b˜ ρ, for x ∈ Γout, ˜ j · n = 0, for x ∈ ΓN. and where ˜ j = (−Σ∇˜ ρ + vmax(1 − ˜ ρ)˜ ρ). ρmax does not influence the dynamics in the rescaled SDE-PDE system! ⇒ we cannot estimate ρmax using this model.

4 / 17

slide-8
SLIDE 8

Rich behaviour of solutions

Steady solutions of the FP equation are influenced by a and b.3

3Burger and Pietschmann, Nonlinearity, 2016. 5 / 17

slide-9
SLIDE 9

Rich behaviour of solutions

Steady solutions of the FP equation are influenced by a and b.3

Properties of solution Solution in 1D

⋆ Maximal current if min(a, b) ≥ vmax

2 ;

asymptotic density ˜ ρ = 1

2 and boundary

layers at both entrance and exit.

3Burger and Pietschmann, Nonlinearity, 2016. 5 / 17

slide-10
SLIDE 10

Rich behaviour of solutions

Steady solutions of the FP equation are influenced by a and b.3

Properties of solution Solution in 1D

⋆ Maximal current if min(a, b) ≥ vmax

2 ;

asymptotic density ˜ ρ = 1

2 and boundary

layers at both entrance and exit.

⋆ Influx limited if a < b and a < vmax

2 ;

asymptotic low ˜ ρ < 1

2 and boundary layer at

the exit.

3Burger and Pietschmann, Nonlinearity, 2016. 5 / 17

slide-11
SLIDE 11

Rich behaviour of solutions

Steady solutions of the FP equation are influenced by a and b.3

Properties of solution Solution in 1D

⋆ Maximal current if min(a, b) ≥ vmax

2 ;

asymptotic density ˜ ρ = 1

2 and boundary

layers at both entrance and exit.

⋆ Influx limited if a < b and a < vmax

2 ;

asymptotic low ˜ ρ < 1

2 and boundary layer at

the exit.

⋆ Outflux limited if b < a and b < vmax

2 .

asymptotic high ˜ ρ > 1

2 and boundary layer at

the entrance.

3Burger and Pietschmann, Nonlinearity, 2016. 5 / 17

slide-12
SLIDE 12

The time dependent PDE

The Fokker–Planck equation has a gradient flow structure with respect to the entropy E(ρ) =

(ρ log ρ + (1 − ρ) log(1 − ρ) − ρV dx, withV = x. ❘

6 / 17

slide-13
SLIDE 13

The time dependent PDE

The Fokker–Planck equation has a gradient flow structure with respect to the entropy E(ρ) =

(ρ log ρ + (1 − ρ) log(1 − ρ) − ρV dx, withV = x. Using this gradient structure we can

  • Deduce the necessary a-priori estimates to prove global-in-time

existence of weak solutions.

  • These solutions verify ρ ∈ L2(0, T; H1(Ω)).
  • Using bootstrapping arguments, we can extend the proof to obtain

solutions ρ ∈ C(¯ Ω × [0, T]). ❘

6 / 17

slide-14
SLIDE 14

The time dependent PDE

The Fokker–Planck equation has a gradient flow structure with respect to the entropy E(ρ) =

(ρ log ρ + (1 − ρ) log(1 − ρ) − ρV dx, withV = x. Using this gradient structure we can

  • Deduce the necessary a-priori estimates to prove global-in-time

existence of weak solutions.

  • These solutions verify ρ ∈ L2(0, T; H1(Ω)).
  • Using bootstrapping arguments, we can extend the proof to obtain

solutions ρ ∈ C(¯ Ω × [0, T]). Further extensions on these results would allow us to prove existence and uniqueness of strong solutions for the SDE if it was posed in ❘2.

6 / 17

slide-15
SLIDE 15

Parameter estimation methodology

Goal: Estimate vmax given a set of trajectories.

7 / 17

slide-16
SLIDE 16

Parameter estimation methodology

Goal: Estimate vmax given a set of trajectories. Finding the best value of v given an observation of a trajectory X corresponds to minimizing the function Φ(v; X) = 1 4 T | ˙ X − F (ρ(X(t), t); v) |2

Σ,

  • ver all values of v.

7 / 17

slide-17
SLIDE 17

Parameter estimation methodology

Goal: Estimate vmax given a set of trajectories. Finding the best value of v given an observation of a trajectory X corresponds to minimizing the function Φ(v; X) = 1 4 T | ˙ X − F (ρ(X(t), t); v) |2

Σ,

  • ver all values of v. However, Φ(v; ·) is almost surely infinite.

7 / 17

slide-18
SLIDE 18

Parameter estimation methodology

Goal: Estimate vmax given a set of trajectories. Finding the best value of v given an observation of a trajectory X corresponds to minimizing the function Φ(v; X) = 1 4 T | ˙ X − F (ρ(X(t), t); v) |2

Σ,

  • ver all values of v. However, Φ(v; ·) is almost surely infinite. But we can write

Φ(v; X) = Ψ(v; X) + 1 4 T | ˙ X|2 dt, where the function Ψ is defined as Ψ(v; X) = 1 4 T

  • |F (ρ(X(t), t); v) |2

Σdt − 2F (ρ(X(t), t); v) , dX(t)Σ

  • .

Ψ(v, X) is the log-likelihood function of this process... ... which we can obtain it due to the PDE-SDE coupling in our model.

7 / 17

slide-19
SLIDE 19

Parameter estimation methodology

We will include prior information and consider instead the functional J (v; Xt) = Ψ(v; Xt) + 1 2|v − m|2

c. ✶

P P

8 / 17

slide-20
SLIDE 20

Parameter estimation methodology

We will include prior information and consider instead the functional J (v; Xt) = Ψ(v; Xt) + 1 2|v − m|2

c.

Using Bayes’ and Girsanov’s theorems, we can show that the function e−J (v;Xt )✶(v>0), appropriately normalised, is the posterior distribution P(v|X) of v given the

  • bservation X.

P

8 / 17

slide-21
SLIDE 21

Parameter estimation methodology

We will include prior information and consider instead the functional J (v; Xt) = Ψ(v; Xt) + 1 2|v − m|2

c.

Using Bayes’ and Girsanov’s theorems, we can show that the function e−J (v;Xt )✶(v>0), appropriately normalised, is the posterior distribution P(v|X) of v given the

  • bservation X.

Note that

  • Minimising Ψ gives the maximum likelihood estimator (MLE).
  • Minimising J gives the maximum a posteriori estimator (MAP).
  • Ψ measures the misfit between the data and the model.
  • Sampling from P(v|X) corresponds to the Bayesian methodology.

8 / 17

slide-22
SLIDE 22

Parameter estimation approaches

We cannot take T → ∞ in our observations. Therefore we use N = 20 trajectories

  • Xi

t

i=1,...,20

t∈[0,T]

to compute our estimate of vmax.

Optimisation approach

⋆ Minimise J directly; ⋆ Provides the maximum a posteriori estimator; ⋆ Needs extra computations to quantify uncertainty; ⋆ Use derivative free algorithm: Nelder–Mead algorithm4.

Bayesian approach

⋆ Sample from the probability distribution P(v|Xi

t);

⋆ Provides posterior distribution; ⋆ Enables uncertainty quantification; ⋆ Use derivative free MCMC methodology: pCN algorithm5.

4Nelder and Mead, The Computer Journal, 1965. 5Cotter et al., Statistical Science, 2013. 9 / 17

slide-23
SLIDE 23

Numerical solution of the PDE and SDE

We solve the steady and time-dependent Fokker–Planck equation efficiently using the Netgen/NgSolve interface.6

Time dependent solver:

⋆ 4th order IMEX scheme ⋆ Explicit: nonlinear convective oper- ator – upwind discontinuous Galerkin discretization. ⋆ Implicit: linear diffusion – hybrid dis- continuous Galerkin discretization.

Steady state solver in 1D:

⋆ Damped Newton solver ⋆ H1 conforming finite elements of or- der 1 ⋆ Initial guess depends on the magni- tude and relation between the parame- ters a and b.

6https://ngsolve.org/ 10 / 17

slide-24
SLIDE 24

Numerical methods – SDE solver

To advance the microscopic model in time, we use the Euler–Maruyama scheme and use PDE solution in the SDE drift: Xi

t+∆t = Xi t + F(ρ(Xi t, t))∆t +

√ 2∆tΣξ, ξ ∼ N(0, 1),

7Erban and Chapman, Physical Biology, 2007. 11 / 17

slide-25
SLIDE 25

Numerical methods – SDE solver

To advance the microscopic model in time, we use the Euler–Maruyama scheme and use PDE solution in the SDE drift: Xi

t+∆t = Xi t + F(ρ(Xi t, t))∆t +

√ 2∆tΣξ, ξ ∼ N(0, 1), together with a careful application of the boundary conditions.7

Boundary PDE SDE Implementation ΓN Neumann Reflecting

p = 1

Γin (from outside) Robin Wait to get in

p = Pin p = 1 − Pin

Γin (from inside) Robin Partially reflecting

p = 1 − Pin p = Pin back to Γin

Γout Robin Partially reflecting

p = 1 − Pout p = Pout leave domain 7Erban and Chapman, Physical Biology, 2007. 11 / 17

slide-26
SLIDE 26

Bayesian methodology and Optimization

(maximal current) vmax = 1.5, a = 0.9, b = 0.975 and σ1 = σ2 = 0.05. Left: Influence of the PDE time step on the posterior distribution. Right: Comparison between Bayesian and optimization approach for ∆t = 0.005. MAP estimator obtained by derivative-free optimization coincides with posterior mean for all test cases – suggests posterior distribution is Gaussian.

12 / 17

slide-27
SLIDE 27

The time dependent case

Influence of prior mean and initial guess for outflux limited regime (a = 0.45, b = 0.4). Estimates are independent of

  • prior mean
  • prior variance
  • inital guess
  • parameter β of MCMC methodology

13 / 17

slide-28
SLIDE 28

Steady state regimes

Influence of prior mean and initial guess for (left) outflux limited regime, (middle) influx limited regime and (right) maximal current regime. Outflux limited regimes (left) produce estimates which mimic the prior distribution! Influx limited and maximal current regimes produce reliable and less uncertain esti- mates.

14 / 17

slide-29
SLIDE 29

Amount of information

Influence of number of trajectories for two influx limited regimes Using time dependent solution Using steady state solution

15 / 17

slide-30
SLIDE 30

Conclusions

We presented a parameter estimation framework for SDEs which depend on their density.

  • Comparison between time dependent (realistic) and steady state

(experiments) cases.

  • Comparison between influx and outflux limited regimes.
  • vmax is identifiable while ρmax is not.
  • Steady state regimes do not give reliable estimates for outflux limited

regimes (trajectories get stuck and there is no information).

16 / 17

slide-31
SLIDE 31

Conclusions

We presented a parameter estimation framework for SDEs which depend on their density.

  • Comparison between time dependent (realistic) and steady state

(experiments) cases.

  • Comparison between influx and outflux limited regimes.
  • vmax is identifiable while ρmax is not.
  • Steady state regimes do not give reliable estimates for outflux limited

regimes (trajectories get stuck and there is no information).

  • Methodology is valid for more realistic situations, including obstacles in

the corridor, doors in the entrance and exit boundaries, and corridors with bottlenecks.

16 / 17

slide-32
SLIDE 32

Conclusions

We presented a parameter estimation framework for SDEs which depend on their density.

  • Comparison between time dependent (realistic) and steady state

(experiments) cases.

  • Comparison between influx and outflux limited regimes.
  • vmax is identifiable while ρmax is not.
  • Steady state regimes do not give reliable estimates for outflux limited

regimes (trajectories get stuck and there is no information).

  • Methodology is valid for more realistic situations, including obstacles in

the corridor, doors in the entrance and exit boundaries, and corridors with bottlenecks.

  • Current working on using this framework to estimate vmax using

experimental data.

16 / 17

slide-33
SLIDE 33

Thank you for your attention!

For more details, arXiv:1809.08046v2 susana.gomes@warwick.ac.uk

17 / 17