parametric statistical model checking of uav flight plan

22
Introduction Foundations of model and tool Experiments and Summary Parametric Statistical Model Checking of UAV Flight Plan Ran BAO 1 , Christian Attiogbé 2 , Paulin Fournier 2 and Didier Lime 3 1 PIXIEL Group / LS2N UMR CNRS 6004, Nantes, France 2 Université de Nantes / LS2N UMR CNRS 6004, Nantes, France 3 Central Nantes / LS2N UMR CNRS 6004, Nantes, France MSR 2019 Ran BAO , Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 1 / 22

Upload: others

Post on 10-Dec-2021

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

Parametric Statistical Model Checking of UAV Flight Plan

Ran BAO1, Christian Attiogbé2, Paulin Fournier2 and Didier Lime3

1PIXIEL Group / LS2N UMR CNRS 6004, Nantes, France

2Université de Nantes / LS2N UMR CNRS 6004, Nantes, France

3Central Nantes / LS2N UMR CNRS 6004, Nantes, France

MSR 2019

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 1 / 22

Page 2: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

Summary

1 IntroductionMotivation and ContributionUAV flight model

2 Foundations of model and toolParametric Markov ChainsMonte Carlo

3 Experiments and SummaryExperimental resultsSummary and future work

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 2 / 22

Page 3: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

Outline

1 IntroductionMotivation and ContributionUAV flight model

2 Foundations of model and toolParametric Markov ChainsMonte Carlo

3 Experiments and SummaryExperimental resultsSummary and future work

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 3 / 22

Page 4: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

Motivation and Contribution

Motivation

UAVs flying above a crowd (Entertainment)

⇒ How to ensure that the flight is secure?

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 4 / 22

Page 5: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

Motivation and Contribution

Contributions

We propose a model of the UAV system

In the context of a flight plan

Parametric : takes into account

Sensor/Filter precision and failure

Wind force

Allows to predict the trajectory

We propose and use parametric statisticalmodel checking techniques

Computes an approximation of theprobability of satisfying a property

as a parametric function

polynomial

with parametric confidence intervals

Experimentations with industrial casestudy

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 5 / 22

Page 6: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

UAV flight model

Position of drone security concerns

Bad position Good position

calculate probability of being in the good/bad position

⇒What is the good position?

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 6 / 22

Page 7: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

UAV flight model

Safety zone

5 zones inline with avioniccertification(DO-178C)

Take account flight plan andcomponents

Fixed size : dependedapplication

critical zones : 4 , 5

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 7 / 22

Page 8: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

UAV flight model

Main components of an UAV

Physical components + Software

Position estimation = Sensors + filter

Stabilize computation = PID

Parameter = Precision of (sensors + filter)

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 8 / 22

Page 9: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

UAV flight model

The proposed approach

A method to build and verify UAV model

Filter capacity in parameters

Computation filter effect

Add rotate effect (angles in the trajectory)

Add wind effect (additional parameter of themodel)

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 9 / 22

Page 10: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

UAV flight model

Resulting model

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 10 / 22

Page 11: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

UAV flight model

Importance of time on the deviation

The estimated position (A’)impacts on the target.The time impact (Tanswer )

Sn = sinα ∗ Sanswer (1)

sinα =AA′

A′B=

AA′√AA′2 + AB2

(2)

Sanswer = V ∗ Tanswer (3)

(V : UAV’s velocity)

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 11 / 22

Page 12: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

Outline

1 IntroductionMotivation and ContributionUAV flight model

2 Foundations of model and toolParametric Markov ChainsMonte Carlo

3 Experiments and SummaryExperimental resultsSummary and future work

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 12 / 22

Page 13: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

Parametric Markov Chains

Building the model : Markov Chains (MC)

A Markov Chain is a purely probabilistic modelM = (S, s0,P), whereS is a set of states,s0 ∈ S is the initial state,andP : S × S 7→ [0, 1] is a probabilistic transition function that,given a pair of states (s1, s2), yields the probability of moving from s1 to s2.

Definitions :

Finite run : ρ = s0s1 . . . sn s.t. P(si , si+1) > 0

Γ(l) : set of all runs of length l inMProbability of finite run : ρ = s0s1 . . . sn,PM(ρ) =

∏ni=1 P(si−1, si )

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 13 / 22

Page 14: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

Parametric Markov Chains

Building the model : Parametric Markov Chain (pMC)

A pMC is a tupleM = (S, s0,P,X) such thatS is a finite set of states,s0 ∈ S is the initial state,X is a finite set of parameters, andP : S × S 7→ Poly(X) is a parametric transition probability function, expressed as apolynomial on X.

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

Our formal model of the UAV is built using a parametric Markov chain.Now, we need to check our model.

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 14 / 22

Page 15: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

Monte Carlo

Basis for statistic model checking : Monte Carlo for MCs

0

1

2

3

4

0.5

0.5

0.6

0.10.4

0.9

1

1

1 ρ1 = 0→ 2→ 4 R(ρ1) = 0

2 ρ2 = 0→ 1→ 3 R(ρ2) = 1

3 ρ3 = 0→ 2→ 4 R(ρ3) = 0

4 ρ4 = 0→ 1→ 4 R(ρ4) = 0

5 ρ5 = 0→ 1→ 4 R(ρ5) = 0

6 ρ6 = 0→ 1→ 3 R(ρ6) = 1

7 ρ7 = 0→ 2→ 3 R(ρ7) = 1

8 ρ8 = 0→ 2→ 4 R(ρ8) = 0

Run n simulations ρi of length l . (here n = 8 and l = 2)

r(ρi ) = 1 if ρi reaches 3 in two steps

ElM(r) ∼

∑r(ρi )n ⇒ Here, E2

M(r) ∼ 38 = 0.375 (exact : 0.35)

Expected reward ElM(r) is the expected value

of r on the runs of length l .

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 15 / 22

Page 16: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

Monte Carlo

Basis for statistic model checking : Monte Carlo for pMCs

0

1

2

3

4

a← 0.5

(1− a)←0.5

0.6

0.10.4

0.9

1

1

1 ρ1 = 0→ 2→ 4 R(ρ1) = 0

2 ρ2 = 0→ 1→ 3 R(ρ2) = 0.6a

3 ρ3 = 0→ 2→ 4 R(ρ3) = 0

4 ρ4 = 0→ 1→ 4 R(ρ4) = 0

5 ρ5 = 0→ 1→ 4 R(ρ5) = 0

6 ρ6 = 0→ 1→ 3 R(ρ6) = 0.6a

7 ρ7 = 0→ 2→ 3 R(ρ7) = 0.1(1− a)

8 ρ8 = 0→ 2→ 4 R(ρ8) = 0

Use a normalization function f →Mf

R(ρi ) = PM(ρ) if ρi reaches 3 in two steps, 0 otherwise

ElM(r) = E(

∑ni=1( R(ρi )

PMf (ρi ))/n)(v)

Here, E2M(r ′) ∼ 0.275a + 0.25 (exact : 0.5a+0.1)

For v(a)=0.6 : E2M(r ′) ∼ 0.415 (exact : 0.4)

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 16 / 22

Page 17: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

Monte Carlo

Parametric Statistical Model Checking (IMCpMC) 1

0

1

2

3

4

a

1− a

0.6

0.10.4

0.9

1

1

For 500 runs, we get :E3M(r ′) ∼

0.592 ∗ a + 0.092 ∼ 0.4552

For 5000 runs, we get :E3M(r ′) ∼

0.516 ∗ a + 0.092 ∼ 0.4016

(exact : 0.5a+0.1 ∼ 0.4)(ps : v(a) = 0.6)

PRISM : with filter

PARAM : with filter onparameter

Parametric StatisticalModel Checking(Python) : IMCpMC

1. Available at https ://github.com/Astlo/IMCpMC

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 17 / 22

Page 18: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

Outline

1 IntroductionMotivation and ContributionUAV flight model

2 Foundations of model and toolParametric Markov ChainsMonte Carlo

3 Experiments and SummaryExperimental resultsSummary and future work

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 18 / 22

Page 19: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

Experimental results

Advantage of polynomial

Which probability is more present?

Wind effect

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 19 / 22

Page 20: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

Experimental results

Experimentation

Results interpretation

Model 10k 20k 50kV1 V2 V1 V2 V1 V2

Running time A 28s 51-54s 142-143sScenario 1 A 4.99% 5.09% 4.74% 5.10% 4.91% 4.98%Conf. interv. A ±0.85% ±0.82% ±0.55% ±0.56% ±0.36% ±0.37%

Running time B 28s 53-54s 149-155sScenario 1 B 5.44% 5.31% 5.61% 5.21% 5.59% 5.47%Conf. interv. B ±0.98% ±0.86% ±0.69% ±0.64% ±0.42% ±0.43%

Running time C 185-190s 311-314s 612-621sScenario 1 C 4.95% 5.97% 5.28% 6.62% 4.16% 5.61%Conf. interv. C ±5.22% ±5.71% ±4.71% ±6.25% ±1.86% ±4.38%

model A : Filters as parametersmodel B : Wind as parameter (number) but not present in polynomialmodel C : Parameter filter and wind all in polynomial

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 20 / 22

Page 21: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

Summary and future work

Summary and future work

Summary :

Formal model of UAV flight plan

Parametric safety analysis

Parametric Monte Carlo procedure for pMC

Polynomial parametric confidence interval

Prototype implementation

Future work :

Experimentation and implementation improvements

Change the direction of the wind

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 21 / 22

Page 22: Parametric Statistical Model Checking of UAV Flight Plan

Introduction Foundations of model and tool Experiments and Summary

Summary and future work

Thanks

Thank you for your attention

Any questions?

Ran BAO, Christian Attiogbé, Paulin Fournier and Didier Lime Parametric Statistical Model Checking of UAV Flight Plan MSR 2019 22 / 22