Parametric Statistical model checking of UAV flight plan 1 Ran Bao 12 - - PowerPoint PPT Presentation

parametric statistical model checking of uav flight
SMART_READER_LITE
LIVE PREVIEW

Parametric Statistical model checking of UAV flight plan 1 Ran Bao 12 - - PowerPoint PPT Presentation

Parametric Statistical model checking of UAV flight plan 1 Ran Bao 12 e 2 t Delahaye 2 Christian Attiogb Beno 1 PIXIEL GROUP, Nantes, France 2 Universit e de Nantes - LS2N, UMR 6004 - Nantes, France SynCoP 2019 1 Thanks to Didier Lime


slide-1
SLIDE 1

Parametric Statistical model checking of UAV flight plan1

Ran Bao12 Christian Attiogb´ e2 Benoˆ ıt Delahaye2

1PIXIEL GROUP, Nantes, France 2Universit´

e de Nantes - LS2N, UMR 6004 - Nantes, France

SynCoP 2019

1Thanks to Didier Lime and Paulin Fournier Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 1 / 29

slide-2
SLIDE 2

Introduction

Motivation

UAVs flying above a crowd (Entertainment)

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 2 / 29

slide-3
SLIDE 3

Introduction

Motivation

UAVs flying above a crowd (Entertainment) ⇒ How to ensure that the flight is safe?

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 2 / 29

slide-4
SLIDE 4

Introduction

Contribution

We propose a model of the UAV system ◮ In the context of a flight plan ◮ Parametric: takes into account

◮ Sensor precision and failure ◮ Wind force

◮ Allows to predict the trajectory We propose and use parametric statistical model checking techniques ◮ Computes an approximation of the probability of satisfying a property

◮ as a parametric function ◮ polynomial ◮ with parametric confidence intervals

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 3 / 29

slide-5
SLIDE 5

Introduction

Outline

Introduction Parametric Markov Chains and Properties Background - Properties Parametric Markov Chains Monte Carlo and pMCs UAV flight model Safety zones Drone components Formal model Experimental results Prototype implementation Drone model Results Discussion

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 4 / 29

slide-6
SLIDE 6

Parametric Markov Chains and Properties

Outline

Introduction Parametric Markov Chains and Properties Background - Properties Parametric Markov Chains Monte Carlo and pMCs UAV flight model Safety zones Drone components Formal model Experimental results Prototype implementation Drone model Results Discussion

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 5 / 29

slide-7
SLIDE 7

Parametric Markov Chains and Properties Background - Properties

Markov Chains

Definition (Markov chain)

A Markov chain (MC, for short) is a tuple M = (S, s0, P) where S is a denumerable set of states, s0 ∈ S is the initial state and P : S × S → [0, 1] is the transition probability function. ◮ Finite run: ρ = s0s1 . . . sn s.t. P(si, si+1) > 0 ◮ Γ(l): set of all runs of length l in M ◮ Probability of a finite run: PM(ρ) = Πn

i=1P(si−1, si)

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 6 / 29

slide-8
SLIDE 8

Parametric Markov Chains and Properties Background - Properties

Properties

In the context of SMC, we only consider properties on bounded runs. Let r : Γ(l) → R be a reward function. Reachability PM(♦≤ls). ρ | = ♦≤ls, if there exists i ≤ l such that si = s. Safety PM(=lE). ρ | = =lE, if for all i ≤ l, si ∈ E. Expected reward El

M(r). El M(r) = ρ∈Γ(l) PM(ρ)r(ρ) is the expected

value of r on the runs of length l.

Remark

For any property ϕ ⊆ Γ(l), PM(ϕ) = El

M(✶ϕ)

⇒ we focus on properties of the form El

M(r).

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 7 / 29

slide-9
SLIDE 9

Parametric Markov Chains and Properties Parametric Markov Chains

Outline

Introduction Parametric Markov Chains and Properties Background - Properties Parametric Markov Chains Monte Carlo and pMCs UAV flight model Safety zones Drone components Formal model Experimental results Prototype implementation Drone model Results Discussion

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 8 / 29

slide-10
SLIDE 10

Parametric Markov Chains and Properties Parametric Markov Chains

Parametric Markov Chains (pMCs)

Definition (Parametric Markov chain)

A Parametric Markov chain is a tuple M = (S, s0, P, X) such that S is a finite set of states, s0 ∈ S is the initial state, X is a finite set of parameters, and P : S × S → Poly(X) is a parametric transition probability function. If v ∈ RX is a valuation of the parameters, ◮ Pv: transition probabilities under v : Pv(s, s′) = P(s, s′)(v) ◮ v is valid if (S, s0, Pv) is a MC ◮ Mv = (S, s0, Pv) ◮ Runs and probabilities are similar to MC, but parametric

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 9 / 29

slide-11
SLIDE 11

Parametric Markov Chains and Properties Parametric Markov Chains

Example 1

1 2 3 4 0.5 0.5 q r p 1 r q p 1

pMC M1

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 10 / 29

slide-12
SLIDE 12

Parametric Markov Chains and Properties Parametric Markov Chains

Example 1

1 2 3 4 0.5 0.5 q r p 1 r q p 1

pMC M1

1 2 3 4 0.5 0.5 0.5 0.5 1 0.5 0.5 1

MC Mv

1 for parameter valuation v

such that v(p) = v(q) = 0.5 and v(r) = 0

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 10 / 29

slide-13
SLIDE 13

Monte Carlo and pMCs

Outline

Introduction Parametric Markov Chains and Properties Background - Properties Parametric Markov Chains Monte Carlo and pMCs UAV flight model Safety zones Drone components Formal model Experimental results Prototype implementation Drone model Results Discussion

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 11 / 29

slide-14
SLIDE 14

Monte Carlo and pMCs

Monte Carlo for MCs

1 2 3 4 0.5 0.5 0.5 0.5 1 0.5 0.5 1

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 12 / 29

slide-15
SLIDE 15

Monte Carlo and pMCs

Monte Carlo for MCs

1 2 3 4 0.5 0.5 0.5 0.5 1 0.5 0.5 1

◮ Run n simulations ρi of length l

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 12 / 29

slide-16
SLIDE 16

Monte Carlo and pMCs

Monte Carlo for MCs

1 2 3 4 0.5 0.5 0.5 0.5 1 0.5 0.5 1

ρ1 = 0 · 1 · 1 · 1 · 1 · 1 ρ2 = 0 · 1 · 0 · 3 · 4 · 4 ρ3 = 0 · 3 · 2 · 2 · 2 · 2 ρ4 = 0 · 1 · 0 · 1 · 0 · 3 ρ5 = 0 · 3 · 4 · 4 · 4 · 1 ρ6 = 0 · 3 · 2 · 2 · 2 · 2 ρ7 = 0 · 1 · 0 · 3 · 2 · 2 ρ8 = 0 · 1 · 0 · 3 · 4 · 4

◮ Run n simulations ρi of length l

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 12 / 29

slide-17
SLIDE 17

Monte Carlo and pMCs

Monte Carlo for MCs

1 2 3 4 0.5 0.5 0.5 0.5 1 0.5 0.5 1

ρ1 = 0 · 1 · 1 · 1 · 1 · 1 ρ2 = 0 · 1 · 0 · 3 · 4 · 4 ρ3 = 0 · 3 · 2 · 2 · 2 · 2 ρ4 = 0 · 1 · 0 · 1 · 0 · 3 ρ5 = 0 · 3 · 4 · 4 · 4 · 1 ρ6 = 0 · 3 · 2 · 2 · 2 · 2 ρ7 = 0 · 1 · 0 · 3 · 2 · 2 ρ8 = 0 · 1 · 0 · 3 · 4 · 4

◮ Run n simulations ρi of length l ◮ r(ρi) = 1 if ρi reaches 4

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 12 / 29

slide-18
SLIDE 18

Monte Carlo and pMCs

Monte Carlo for MCs

1 2 3 4 0.5 0.5 0.5 0.5 1 0.5 0.5 1

ρ1 = 0 · 1 · 1 · 1 · 1 · 1 r(ρ1) = 0 ρ2 = 0 · 1 · 0 · 3 · 4 · 4 r(ρ2) = 1 ρ3 = 0 · 3 · 2 · 2 · 2 · 2 r(ρ3) = 0 ρ4 = 0 · 1 · 0 · 1 · 0 · 3 r(ρ4) = 0 ρ5 = 0 · 3 · 4 · 4 · 4 · 1 r(ρ5) = 1 ρ6 = 0 · 3 · 2 · 2 · 2 · 2 r(ρ6) = 0 ρ7 = 0 · 1 · 0 · 3 · 2 · 2 r(ρ7) = 0 ρ8 = 0 · 1 · 0 · 3 · 4 · 4 r(ρ8) = 1

◮ Run n simulations ρi of length l ◮ r(ρi) = 1 if ρi reaches 4

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 12 / 29

slide-19
SLIDE 19

Monte Carlo and pMCs

Monte Carlo for MCs

1 2 3 4 0.5 0.5 0.5 0.5 1 0.5 0.5 1

ρ1 = 0 · 1 · 1 · 1 · 1 · 1 r(ρ1) = 0 ρ2 = 0 · 1 · 0 · 3 · 4 · 4 r(ρ2) = 1 ρ3 = 0 · 3 · 2 · 2 · 2 · 2 r(ρ3) = 0 ρ4 = 0 · 1 · 0 · 1 · 0 · 3 r(ρ4) = 0 ρ5 = 0 · 3 · 4 · 4 · 4 · 1 r(ρ5) = 1 ρ6 = 0 · 3 · 2 · 2 · 2 · 2 r(ρ6) = 0 ρ7 = 0 · 1 · 0 · 3 · 2 · 2 r(ρ7) = 0 ρ8 = 0 · 1 · 0 · 3 · 4 · 4 r(ρ8) = 1

◮ Run n simulations ρi of length l ◮ r(ρi) = 1 if ρi reaches 4 ◮ El

M(r) ∼ r(ρi) n

⇒ Here, E5

M(r) ∼ 0.375 (exact: 0.3125)

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 12 / 29

slide-20
SLIDE 20

Monte Carlo and pMCs

Intuition for pMCs

1 2 3 4 0.5 0.5 q r p 1 r q p 1

◮ How to run simulations?

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 13 / 29

slide-21
SLIDE 21

Monte Carlo and pMCs

Intuition for pMCs

1 2 3 4 0.5 0.5 0.33 — q 0.33 — r 0.33 — p 1 0.33 — r 0.33 — q 0.33 — p 1

◮ How to run simulations? Use a normalization function f (uniform?) → Mf

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 13 / 29

slide-22
SLIDE 22

Monte Carlo and pMCs

Intuition for pMCs

1 2 3 4 0.5 0.5 0.33 — q 0.33 — r 0.33 — p 1 0.33 — r 0.33 — q 0.33 — p 1

ρ1 = 0 · 1 · 1 · 2 · 2 · 2 ρ2 = 0 · 1 · 0 · 3 · 3 · 4 ρ3 = 0 · 3 · 2 · 2 · 2 · 2 ρ4 = 0 · 1 · 0 · 1 · 1 · 0 ρ5 = 0 · 3 · 4 · 4 · 4 · 4 ρ6 = 0 · 3 · 3 · 3 · 4 · 4 ρ7 = 0 · 1 · 0 · 3 · 2 · 2 ρ8 = 0 · 1 · 2 · 2 · 2 · 2

◮ How to run simulations? Use a normalization function f (uniform?) → Mf

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 13 / 29

slide-23
SLIDE 23

Monte Carlo and pMCs

Intuition for pMCs

1 2 3 4 0.5 0.5 0.33 — q 0.33 — r 0.33 — p 1 0.33 — r 0.33 — q 0.33 — p 1

ρ1 = 0 · 1 · 1 · 2 · 2 · 2 ρ2 = 0 · 1 · 0 · 3 · 3 · 4 ρ3 = 0 · 3 · 2 · 2 · 2 · 2 ρ4 = 0 · 1 · 0 · 1 · 1 · 0 ρ5 = 0 · 3 · 4 · 4 · 4 · 4 ρ6 = 0 · 3 · 3 · 3 · 4 · 4 ρ7 = 0 · 1 · 0 · 3 · 2 · 2 ρ8 = 0 · 1 · 2 · 2 · 2 · 2

◮ How to run simulations? Use a normalization function f (uniform?) → Mf ◮ R(ρi) = PM(ρ) if ρi reaches 4, 0 otherwise

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 13 / 29

slide-24
SLIDE 24

Monte Carlo and pMCs

Intuition for pMCs

1 2 3 4 0.5 0.5 0.33 — q 0.33 — r 0.33 — p 1 0.33 — r 0.33 — q 0.33 — p 1

ρ1 = 0 · 1 · 1 · 2 · 2 · 2 R(ρ1) = 0 ρ2 = 0 · 1 · 0 · 3 · 3 · 4 R(ρ2) = 0.25pqr ρ3 = 0 · 3 · 2 · 2 · 2 · 2 R(ρ3) = 0 ρ4 = 0 · 1 · 0 · 1 · 1 · 0 R(ρ4) = 0 ρ5 = 0 · 3 · 4 · 4 · 4 · 4 R(ρ5) = 0.5q ρ6 = 0 · 3 · 3 · 3 · 4 · 4 R(ρ6) = 0.5qr2 ρ7 = 0 · 1 · 0 · 3 · 2 · 2 R(ρ7) = 0 ρ8 = 0 · 1 · 2 · 2 · 2 · 2 R(ρ8) = 0

◮ How to run simulations? Use a normalization function f (uniform?) → Mf ◮ R(ρi) = PM(ρ) if ρi reaches 4, 0 otherwise

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 13 / 29

slide-25
SLIDE 25

Monte Carlo and pMCs

Intuition for pMCs

1 2 3 4 0.5 0.5 0.33 — q 0.33 — r 0.33 — p 1 0.33 — r 0.33 — q 0.33 — p 1

ρ1 = 0 · 1 · 1 · 2 · 2 · 2 R(ρ1) = 0 ρ2 = 0 · 1 · 0 · 3 · 3 · 4 R(ρ2) = 0.25pqr ρ3 = 0 · 3 · 2 · 2 · 2 · 2 R(ρ3) = 0 ρ4 = 0 · 1 · 0 · 1 · 1 · 0 R(ρ4) = 0 ρ5 = 0 · 3 · 4 · 4 · 4 · 4 R(ρ5) = 0.5q ρ6 = 0 · 3 · 3 · 3 · 4 · 4 R(ρ6) = 0.5qr2 ρ7 = 0 · 1 · 0 · 3 · 2 · 2 R(ρ7) = 0 ρ8 = 0 · 1 · 2 · 2 · 2 · 2 R(ρ8) = 0

◮ How to run simulations? Use a normalization function f (uniform?) → Mf ◮ R(ρi) = PM(ρ) if ρi reaches 4, 0 otherwise ◮ El

M(R) ??

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 13 / 29

slide-26
SLIDE 26

Monte Carlo and pMCs

Results

Let r′(ρ) =

R(ρ) PMf (ρ)r(ρ). Due to the central limit theorem:

◮ El

M(r′)(v) = El Mv (r) for all valid parameter valuation v

◮ Condition: Under v, M must conserve the same structure as under f

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 14 / 29

slide-27
SLIDE 27

Monte Carlo and pMCs

Results

Let r′(ρ) =

R(ρ) PMf (ρ)r(ρ). Due to the central limit theorem:

◮ El

M(r′)(v) = El Mv (r) for all valid parameter valuation v

◮ Condition: Under v, M must conserve the same structure as under f ◮ Moreover, the confidence interval can be expressed as a polynomial function of the parameters. For n large enough and an error rate of 5%, its size is 3.92 σ/√n where

  • σ2 =

1 (n − 1)

n

  • i=1

(r′(ρi))2 − (n

i=1 r′(ρi))2

n(n − 1) .

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 14 / 29

slide-28
SLIDE 28

Monte Carlo and pMCs

Results

Let r′(ρ) =

R(ρ) PMf (ρ)r(ρ). Due to the central limit theorem:

◮ El

M(r′)(v) = El Mv (r) for all valid parameter valuation v

◮ Condition: Under v, M must conserve the same structure as under f ◮ Moreover, the confidence interval can be expressed as a polynomial function of the parameters. For n large enough and an error rate of 5%, its size is 3.92 σ/√n where

  • σ2 =

1 (n − 1)

n

  • i=1

(r′(ρi))2 − (n

i=1 r′(ρi))2

n(n − 1) . ◮ Here, E5

M(r′) ∼ 3.48pqr + 0.38q + 3.47qr2.

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 14 / 29

slide-29
SLIDE 29

Monte Carlo and pMCs

Results

Let r′(ρ) =

R(ρ) PMf (ρ)r(ρ). Due to the central limit theorem:

◮ El

M(r′)(v) = El Mv (r) for all valid parameter valuation v

◮ Condition: Under v, M must conserve the same structure as under f ◮ Moreover, the confidence interval can be expressed as a polynomial function of the parameters. For n large enough and an error rate of 5%, its size is 3.92 σ/√n where

  • σ2 =

1 (n − 1)

n

  • i=1

(r′(ρi))2 − (n

i=1 r′(ρi))2

n(n − 1) . ◮ Here, E5

M(r′) ∼ 3.48pqr + 0.38q + 3.47qr2.

◮ For v(p) = v(q) = 0.25, v(r) = 0.5: E5

M(r′)(v) ∼ 0.42 (exact:

0.261..)

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 14 / 29

slide-30
SLIDE 30

Monte Carlo and pMCs

Application to Example 1

For 1000 runs, we get

E5

M(r′) ∼0.189 ∗ p ∗ q2 + 0.405 ∗ p ∗ q ∗ r + 0.252 ∗ p ∗ q + 0.729 ∗ q ∗ r3

+ 0.567 ∗ q ∗ r2 + 0.54 ∗ q ∗ r + 0.492 ∗ q

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 15 / 29

slide-31
SLIDE 31

Monte Carlo and pMCs

Application to Example 1

For 1000 runs, we get

E5

M(r′) ∼0.189 ∗ p ∗ q2 + 0.405 ∗ p ∗ q ∗ r + 0.252 ∗ p ∗ q + 0.729 ∗ q ∗ r3

+ 0.567 ∗ q ∗ r2 + 0.54 ∗ q ∗ r + 0.492 ∗ q ∼ 0.2801

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 15 / 29

slide-32
SLIDE 32

Monte Carlo and pMCs

Application to Example 1

For 1000 runs, we get

E5

M(r′) ∼0.189 ∗ p ∗ q2 + 0.405 ∗ p ∗ q ∗ r + 0.252 ∗ p ∗ q + 0.729 ∗ q ∗ r3

+ 0.567 ∗ q ∗ r2 + 0.54 ∗ q ∗ r + 0.492 ∗ q ∼ 0.2801

and the size of the CI is

(0.062 ∗ (5.108 ∗ p2 ∗ q4 + 10.946 ∗ p2 ∗ q2 ∗ r2 + 2.27 ∗ p2 ∗ q2 + 59.108 ∗ q2 ∗ r6 + 15.324 ∗ q2 ∗ r4 + 4.865 ∗ q2 ∗ r2 + 1.478 ∗ q2 − 1.0 ∗ (0.189 ∗ p ∗ q2 + 0.405 ∗ p ∗ q ∗ r + 0.252 ∗ p ∗ q + 0.729 ∗ q ∗ r3 + 0.567 ∗ q ∗ r2 + 0.54 ∗ q ∗ r + 0.492 ∗ q)2))

1 2

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 15 / 29

slide-33
SLIDE 33

Monte Carlo and pMCs

Application to Example 1

For 1000 runs, we get

E5

M(r′) ∼0.189 ∗ p ∗ q2 + 0.405 ∗ p ∗ q ∗ r + 0.252 ∗ p ∗ q + 0.729 ∗ q ∗ r3

+ 0.567 ∗ q ∗ r2 + 0.54 ∗ q ∗ r + 0.492 ∗ q ∼ 0.2801

and the size of the CI is

(0.062 ∗ (5.108 ∗ p2 ∗ q4 + 10.946 ∗ p2 ∗ q2 ∗ r2 + 2.27 ∗ p2 ∗ q2 + 59.108 ∗ q2 ∗ r6 + 15.324 ∗ q2 ∗ r4 + 4.865 ∗ q2 ∗ r2 + 1.478 ∗ q2 − 1.0 ∗ (0.189 ∗ p ∗ q2 + 0.405 ∗ p ∗ q ∗ r + 0.252 ∗ p ∗ q + 0.729 ∗ q ∗ r3 + 0.567 ∗ q ∗ r2 + 0.54 ∗ q ∗ r + 0.492 ∗ q)2))

1 2 ∼ 0.0296

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 15 / 29

slide-34
SLIDE 34

UAV flight model

Outline

Introduction Parametric Markov Chains and Properties Background - Properties Parametric Markov Chains Monte Carlo and pMCs UAV flight model Safety zones Drone components Formal model Experimental results Prototype implementation Drone model Results Discussion

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 16 / 29

slide-35
SLIDE 35

UAV flight model

Context: automated flight close to humans

Potential problems

◮ Physical Failure ⇒ Risk of falling

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 17 / 29

slide-36
SLIDE 36

UAV flight model

Context: automated flight close to humans

Potential problems

◮ Physical Failure ⇒ Risk of falling

Physical Failure

◮ Mitigated through redundancy ◮ Estimated/provided by constructor ◮ Easily analyzed ◮ Not always dramatic

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 17 / 29

slide-37
SLIDE 37

UAV flight model

Context: automated flight close to humans

Potential problems

◮ Physical Failure ⇒ Risk of falling ◮ Software Failure/Inaccuracy ⇒ Erroneous position

Physical Failure

◮ Mitigated through redundancy ◮ Estimated/provided by constructor ◮ Easily analyzed ◮ Not always dramatic

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 17 / 29

slide-38
SLIDE 38

UAV flight model

Context: automated flight close to humans

Potential problems

◮ Physical Failure ⇒ Risk of falling ◮ Software Failure/Inaccuracy ⇒ Erroneous position

Physical Failure

◮ Mitigated through redundancy ◮ Estimated/provided by constructor ◮ Easily analyzed ◮ Not always dramatic

Guaranteeing human safety

◮ Estimating the position relies on several components

◮ GPS ◮ Gyroscope ◮ Filters, etc.

◮ Precise position estimation ensures human safety ⇒ We will model and compute the probability that a UAV stays in a “safe zone”

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 17 / 29

slide-39
SLIDE 39

UAV flight model Safety zones

Safety zones

◮ Defined by distance from intended trajectory ◮ 5 zones

◮ Inline with avionic certification (DO-178C)

◮ Fixed size

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 18 / 29

slide-40
SLIDE 40

UAV flight model Drone components

Main components

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 19 / 29

slide-41
SLIDE 41

UAV flight model Drone components

Main components

◮ Position estimation = Sensors + filter

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 19 / 29

slide-42
SLIDE 42

UAV flight model Drone components

Main components

◮ Position estimation = Sensors + filter ◮ Trajectory computation = PID

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 19 / 29

slide-43
SLIDE 43

UAV flight model Drone components

Main components

◮ Position estimation = Sensors + filter ◮ Trajectory computation = PID ⇒ Parameters = Precision of (sensor + filter)

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 19 / 29

slide-44
SLIDE 44

UAV flight model Formal model

Position computation

Deviation is proportional to precision of position estimation

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 20 / 29

slide-45
SLIDE 45

UAV flight model Formal model

Position computation

Deviation is proportional to precision of position estimation

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 20 / 29

slide-46
SLIDE 46

UAV flight model Formal model

Position computation

Deviation is proportional to precision of position estimation Sn = AA′ T ∗ f T = time to reach B f = filter frequency

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 20 / 29

slide-47
SLIDE 47

UAV flight model Formal model

Position computation

Deviation is proportional to precision of position estimation Sn = AA′ T ∗ f T = time to reach B f = filter frequency

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 20 / 29

slide-48
SLIDE 48

UAV flight model Formal model

Resulting model

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 21 / 29

slide-49
SLIDE 49

Experimental results

Outline

Introduction Parametric Markov Chains and Properties Background - Properties Parametric Markov Chains Monte Carlo and pMCs UAV flight model Safety zones Drone components Formal model Experimental results Prototype implementation Drone model Results Discussion

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 22 / 29

slide-50
SLIDE 50

Experimental results Prototype implementation

Prototype Implementation

MCpMCa

parametric Statistical Model Checking ◮ Written in Python ◮ input: prism model or python class ◮ output: parametric probability function / confidence interval

aAvailable at https://github.com/Astlo/IMCpMC Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 23 / 29

slide-51
SLIDE 51

Experimental results Prototype implementation

Prototype Implementation

MCpMCa

parametric Statistical Model Checking ◮ Written in Python ◮ input: prism model or python class ◮ output: parametric probability function / confidence interval ◮ graphical web interface (ongoing work)

aAvailable at https://github.com/Astlo/IMCpMC Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 23 / 29

slide-52
SLIDE 52

Experimental results Drone model

Drone Model(s)

(a) Precision on y (b) Precision on x, y (c) Complex flight plan (d) Wind disturbance

◮ 4 models of increasing complexity ◮ Position = real-valued variables ◮ Prism (a) and Python (b,c,d) models ◮ Parameters = precision of Position(x,y) + wind force

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 24 / 29

slide-53
SLIDE 53

Experimental results Results

Results

Model 10k 20k 50k V1 V2 V1 V2 V1 V2 Running time (c) 28s 51-54s 142-143s Senario 1 (c) 4.99% 5.09% 4.74% 5.10% 4.91% 4.98% Senario 2 (c) 10.38% 10.04% 9.82% 10.05% 9.95% 9.81% Running time (d)(np) 28s 53-54s 149-155s Senario 1 (d)(np) 5.54% 5.19% 5.63% 5.72% 5.45% 5.51% Senario 2 (d)(np) 10.7% 11.4% 11.0% 10.9% 10.9% 11.1% Running time (d)(p) 185-190s 311-314s 612-621s Senario 1 (d)(p) 5.18% 4.01% 3.54% 7.32% 6.96% 6.17% Senario 2 (d)(p) 10.8% 9.20% 11.4% 8.54% 10.4% 12.2%

Precision parameters PF0/1/2/3/4: 0-2m / 2-4m / 4-6m / 6-8m / 8-10m Zone4: 8m from trajectory. Zone5: 50m from trajectory

Scenario 1

◮ PF0/1/2/3/4 = 0.15/0.3/0.4/0.1/0.05

Scenario 2

◮ PF0/1/2/3/4 = 0.1/0.25/0.35/0.2/0.1

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 25 / 29

slide-54
SLIDE 54

Discussion

Outline

Introduction Parametric Markov Chains and Properties Background - Properties Parametric Markov Chains Monte Carlo and pMCs UAV flight model Safety zones Drone components Formal model Experimental results Prototype implementation Drone model Results Discussion

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 26 / 29

slide-55
SLIDE 55

Discussion

Improvements

pSMC

◮ Choice of normalization function ◮ Structure of the pMC If the structure is different under valuation and normalization, the estimated number of runs may change

UAV model

◮ Filter frequency as a parameter ◮ Complete flight plan

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 27 / 29

slide-56
SLIDE 56

Discussion

Impact of normalization function

init fail win p 1 − p

Impact of the choice of the normalization function f on the size of confidence intervals.

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 28 / 29

slide-57
SLIDE 57

Discussion

◮ Summary:

◮ Parametric Monte Carlo procedure for pMC ◮ Polynomial parametric confidence interval; ◮ Prototype implementation ◮ Formal model of UAV flight plan ◮ Parametric safety analysis

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 29 / 29

slide-58
SLIDE 58

Discussion

◮ Summary:

◮ Parametric Monte Carlo procedure for pMC ◮ Polynomial parametric confidence interval; ◮ Prototype implementation ◮ Formal model of UAV flight plan ◮ Parametric safety analysis

◮ Future work:

◮ Test and implement improvements ◮ Comparison/Integration(?) to existing tools ◮ UAV model improvements

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 29 / 29

slide-59
SLIDE 59

Discussion

◮ Summary:

◮ Parametric Monte Carlo procedure for pMC ◮ Polynomial parametric confidence interval; ◮ Prototype implementation ◮ Formal model of UAV flight plan ◮ Parametric safety analysis

◮ Future work:

◮ Test and implement improvements ◮ Comparison/Integration(?) to existing tools ◮ UAV model improvements

Thank you for your Attention

Benoˆ ıt Delahaye (Univ Nantes/LS2N) Parametric SMC of UAV flight plan 2019-04-06 29 / 29