Formal verification of complex systems: model-based and data-driven methods. Alessandro Abate

Size: px
Start display at page:

Download "Formal verification of complex systems: model-based and data-driven methods. Alessandro Abate"

Transcription

1 Formal verification of complex systems: model-based and data-driven methods Alessandro Abate Department of Computer Science, University of Oxford MEMOCODE - Sept 30, 2017 Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 1 /32

2 Automated formal verification: successes and frontiers automated, sound, formal Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 2 /32

3 Automated formal verification: successes and frontiers automated, sound, formal industrial impact in verification of protocols, hardware circuits, and software Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 2 /32

4 Automated formal verification: successes and frontiers automated, sound, formal industrial impact in verification of protocols, hardware circuits, and software asserts properties over given model of a system scalable and useful on unsophisticated models Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 2 /32

5 Automated formal verification: pushing the envelope 1 verification of physical systems (cyber-physical systems) bridging the gap between data and models principled integration of learning and verification 2 verification of complex models dynamical models with uncertainty, noise (for CPS) via formal abstractions Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 3 /32

6 Building automation systems: an exemplar of CPS cyber-physical systems: integration of physical/analogue with cyber/digital building automation systems as a CPS exemplar Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 4 /32

7 Building automation systems: an exemplar of CPS cyber-physical systems: integration of physical/analogue with cyber/digital building automation systems as a CPS exemplar smart energy initiatives at Oxford CS Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 4 /32

8 Building automation systems - a CPS exemplar Building automation system setup in rooms 478/9 at Oxford CS advanced modelling for smart buildings applications: certifiable energy management control of temperature, humidity, CO2 model-based predictive maintenance of devices fault-tolerant certified control demand-response over smart grids Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 5 /32

9 Building automation systems - a CPS exemplar Building automation system setup in rooms 478/9 at Oxford CS advanced modelling for smart buildings applications: certifiable energy management 1 control of temperature, humidity, CO 2 2 model-based predictive maintenance of devices 3 fault-tolerant certified control 4 demand-response over smart grids Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 5 /32

10 Building automation systems - a CPS exemplar Building automation system setup in rooms 478/9 at Oxford CS advanced modelling for smart buildings applications: certifiable energy management 1 control of temperature, humidity, CO 2 2 model-based predictive maintenance of devices 3 fault-tolerant certified control 4 demand-response over smart grids Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 5 /32

11 Building automation systems - problem setup model CO 2 dynamics, under the effect of 1 occupants: room full (F)/empty (E) 2 window: open (O)/closed (C) 3 air circulation: ON/OFF x k+1 = x k + V ( ) 1 ON mx k + µ {O,C} (C out x k ) + 1 F C occ (F,C) (E,C) (F,O) (E,O) x - zone CO 2 level - sampling time V - zone volume m - air inflow (when ON) µ O - air exchange with outside (when O) µ C - air leakage with outside (when C) C out - outside CO 2 level C occ - CO 2 by occupants (when F) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 6 /32

12 Building automation systems - problem setup model CO 2 dynamics, under the effect of 1 occupants: room full (F)/empty (E) 2 window: open (O)/closed (C) 3 air circulation: ON/OFF x k+1 = x k + V ( ) 1 ON mx k + µ {O,C} (C out x k ) + 1 F C occ (F,C) (E,C) (F,O) (E,O) Parameter Value 15 min V 288 m 3 m 0.25 m 3 /min µ O m 3 /min µ C 0.01 m 3 /min C out 375 ppm 0.4 ppm/min C occ Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 6 /32

13 Building automation systems - problem setup model CO 2 dynamics, under the effect of 1 occupants: room empty E 2 window: closed C 3 air circulation: ON x k+1 = x k + V ( mx k + µ C (C out x k )) + 0 C occ (F,C) (F,O) CO 2 levels 1 Fan (on, off) (E,C) (E,O) Occupancy (occupied, empty) Windows (open, closed) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 6 /32

14 Building automation systems - problem setup model CO 2 dynamics, under the effect of 1 occupants: room full F 2 window: closed C 3 air circulation: ON x k+1 = x k + V ( mx k + µ C (C out x k )) + C occ (F,C) (F,O) CO 2 levels 1 Fan (on, off) (E,C) (E,O) Occupancy (occupied, empty) Windows (open, closed) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 6 /32

15 Building automation systems - problem setup model CO 2 dynamics, under the effect of 1 occupants: room full F 2 window: open O 3 air circulation: ON x k+1 = x k + V ( mx k + µ O (C out x k )) + C occ (F,C) (F,O) CO 2 levels 1 Fan (on, off) (E,C) (E,O) Occupancy (occupied, empty) Windows (open, closed) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 6 /32

16 Building automation systems - problem setup model CO 2 dynamics, under the effect of 1 occupants: room empty E 2 window: closed C 3 air circulation: ON x k+1 = x k + V ( mx k + µ O (C out x k )) (F,C) (F,O) CO 2 levels 1 Fan (on, off) (E,C) (E,O) Occupancy (occupied, empty) Windows (open, closed) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 6 /32

17 Building automation systems - problem setup model CO 2 dynamics, under the effect of 1 occupants: room full (F)/empty (E) 2 window: open (O)/closed (C) 3 air circulation: ON model with hybrid dynamics (F,C) (F,O) CO 2 levels Fan (on, off) (E,C) (E,O) 1 Occupancy (occupied, empty) 1 Windows (open, closed) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 6 /32

18 Building automation systems - problem setup model CO 2 dynamics, under the effect of 1 occupants: room full (F)/empty (E) 2 window: open (O)/closed (C) 3 air circulation: OFF model with hybrid dynamics 1,400 CO 2 levels 1 Fan (on, off) (F,C) (F,O) 1,200 1, (E,C) (E,O) 1 Occupancy (occupied, empty) 1 Windows (open, closed) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 6 /32

19 Outline 1 Verification of physical systems: Integration of learning and verification 2 Verification of complex models with formal abstractions Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 7 /32

20 Outline 1 Verification of physical systems: Integration of learning and verification 2 Verification of complex models with formal abstractions Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 7 /32

21 Learning and verification: state of art and objective noise noise data inputs system outputs data-driven analysis Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 8 /32

22 Learning and verification: state of art and objective noise noise data inputs system outputs model data-driven analysis model learning (with data), and model-based verification Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 8 /32

23 Learning and verification: state of art and objective noise noise data inputs system outputs model disconnect between data-driven learning and model-based verification Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 8 /32

24 Learning and verification: state of art and objective noise noise data inputs system outputs model disconnect between data-driven learning and model-based verification principled integration of learning and verification Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 8 /32

25 Overview of method property φ model pmc data from system S D parameter synthesis Θ φ p(θ D) Bayesian inference over parameters C = P(S = φ) confidence computation Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 9 /32

26 Parametric Markov chains property φ model pmc data from system S D parameter synthesis Θ φ p(θ D) Bayesian inference over parameters C = P(S = φ) confidence computation Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 10 /32

27 Parametric Markov chains G = (Θ, S, T θ,, AP, L) S set of states T θ mapping S S [0, 1] expressed in terms of θ Θ Θ set of all possible valuations of θ, vector of parameters starting states θ θ 1 (F,C) 0.75 (F,O) 0.25 θ 2 θ 1 θ 2 θ 1 (E,C) (E,O) 1 θ 2 1 θ 2 Θ = [0, 0.25] [0, 1] Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 10 /32

28 Parametric Markov chains G = (Θ, S, T θ,, AP, L) S set of states T θ mapping S S [0, 1] expressed in terms of θ Θ Θ set of all possible valuations of θ, vector of parameters starting states L labelling function, mapping states into 2 AP, AP alphabet denote by M(θ) G a model parameterised by θ Θ Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 10 /32

29 property φ model pmc data from system S D parameter synthesis Θ φ p(θ D) Bayesian inference over parameters C = P(S = φ) confidence computation Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 11 /32

30 property φ specified in PCTL, e.g. φ = P 0.99 ( 20 safe), φ = P >0.5 (safe U reach), safe, reach AP probabilistic model checking PCTL properties over Markov chains input: Markov chain (S, T), PCTL formula φ output: Sat(φ) = {z S : z = φ} tools: PRISM, STORM,... Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 11 /32

31 Parameter synthesis property φ specified in PCTL, e.g. φ = P 0.99 ( 20 safe), φ = P >0.5 (safe U reach), safe, reach AP classify models in Θ according to property of interest φ, that is synthesise parameters θ Θ s.t. M(θ) satisfies φ: Θ φ = {θ Θ : M(θ) = φ} Θ 1 set Θ φ 0 1 parameter set Θ Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 11 /32

32 property φ model pmc data from system S D parameter synthesis Θ φ p(θ D) Bayesian inference over parameters C = P(S = φ) confidence computation Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 12 /32

33 Bayesian inference p(θ j D) = P(D θ j)p(θ j ) P(D) = s S T θ (s j, s ) Ds s j p(θ j ) P(D sj ) D overall data gathered (traces) D sj traces crossing state s j, where θ j = θ sj p(θ j ) prior distribution s S T θ (s j, s ) Ds s j likelihood, multinomial distribution at state s j Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 12 /32

34 Bayesian inference p(θ j D) = P(D θ j)p(θ j ) P(D) = s S T θ (s j, s ) Ds s j p(θ j ) P(D sj ) D overall data gathered (traces) D sj traces crossing state s j, where θ j = θ sj select as conjugate prior the Dirichlet distribution p(θ j ) = Dir(θ j α) θ α 1 1 j (1 θ j ) α 2 1 for pair (θ j, 1 θ j ), with α = (α 1, α 2 ) hyperparameters Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 12 /32

35 Bayesian inference p(θ j D) = P(D θ j)p(θ j ) P(D) = s S T θ (s j, s ) Ds s j p(θ j ) P(D sj ) D overall data gathered (traces) D sj traces crossing state s j, where θ j = θ sj under Dirichlet prior, posterior update is analytic p(θ j D) θ Ds 1 sj j (1 θ j ) D s 2 s j θ α 1 1 j (1 θ j ) α 2 1 and obtained updating hyperparameters of Dirichlet distribution, as p(θ j D) = Dir(θ j D sj + α) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 12 /32

36 property φ model pmc data from system S D parameter synthesis Θ φ p(θ D) Bayesian inference over parameters C = P(S = φ) confidence computation Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 13 /32

37 Confidence computation Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 13 /32

38 Confidence computation Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 13 /32

39 Confidence computation compute confidence C on whether system S satisfies property φ as C = P(S = φ D) = p(θ D)dθ Θ φ x x x x x x x x x x x x x x x x x x x 0 1 Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 13 /32

40 Case study: setup goal: benchmark against statistical model checking (SMC) pmc model: θ θ 1 (F,C) 0.75 (F,O) 0.25 θ 2 θ 1 θ 2 θ 1 (E,C) (E,O) 1 θ 2 1 θ 2 specification: φ = P >0.3 ( 20 (E, O)) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 14 /32

41 Case study: setup goal: benchmark against statistical model checking (SMC) pmc model: θ θ 1 (F,C) 0.75 (F,O) θ 2 θ 1 θ 2 θ 1 θ (E,C) (E,O) θ1 1 θ 2 1 θ 2 specification: φ = P >0.3 ( 20 (E, O)) for selected pmc and property, synthesis yields Θ φ (yellow set) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 14 /32

42 Case study: experiments data: state trajectories of different length SMC this work attains confidence closer to true value than SMC extracts information from data more efficiently is more robust with limited data Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 14 /32

43 Parametric Markov decision processes G = (Θ, S, A, T θ,, AP, L) Θ, S,, L as before A set of actions T θ mapping S A S [0, 1] expressed in terms of θ Θ fon (F, C) 0.75 foff fon (F, O) foff ( θ1) θ1 ( θ1) θ1 θ2 (E, C) θ2 (E, O) 1 θ2 1 θ2 Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 15 /32

44 Dual role of actions in pmdp actions can be employed to shape set Θ φ shape set Θ φ actions can be chosen to affect confidence level C x x x x x x x x x x x x x x x x x x x 0 1 integral = confidence level Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 16 /32

45 Dual role of actions in pmdp actions can be employed to shape set Θ φ shape set Θ φ actions can be chosen to affect confidence level C x x x x x x x x x x x x x x x x x x x 0 1 integral = confidence level Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 16 /32

46 Dual role of actions in pmdp actions can be employed to shape set Θ φ shape set Θ φ actions can be chosen to affect confidence level C 0 1 integral confidence level Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 16 /32

47 Dual role of actions in pmdp actions can be employed to shape set Θ φ shape set Θ φ actions can be chosen to affect confidence level C 0 1 integral confidence level reminiscent of exploration/exploitation tradeoff in RL Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 16 /32

48 Overview of method property φ model pmc data from system S D parameter synthesis Θ φ p(θ D) Bayesian inference over parameters C = P(S = φ) confidence computation Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 17 /32

49 Overview of method property φ parameter synthesis model pmdp Θ φ strategy synthesis π generate data from system S p(θ D) D Bayesian inference over parameters C = P(S = φ) confidence computation p(θ D) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 17 /32

50 Strategy synthesis for experiment design design experiments to affect confidence calculation max {P(S = φ D), P(S = φ D)} Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 18 /32

51 Strategy synthesis for experiment design design experiments to affect confidence calculation max {P(S = φ D), P(S = φ D)} expected confidence gain at state-action (s, α) (and corresp. parameter) C s,α = Θ φ θ i θ p(θ i E s,α (D i ))dθ Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 18 /32

52 Strategy synthesis for experiment design design experiments to affect confidence calculation max {P(S = φ D), P(S = φ D)} expected confidence gain at state-action (s, α) (and corresp. parameter) C s,α = use C s,α as a reward for (s, α) Θ φ θ i θ p(θ i E s,α (D i ))dθ synthesise optimal strategy π for experiment design Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 18 /32

53 Case study: setup goal: compare optimally synthesised policies vs. random/deterministic ones pmdp model: fon 0.35 (F, C) 0.75 foff fon (F, O) foff ( θ1) θ1 ( θ1) θ1 θ2 (E, C) θ2 (E, O) 1 θ2 1 θ2 specification: φ = P >0.3 ( 20 (E, O)) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 19 /32

54 Case study: setup goal: compare optimally synthesised policies vs. random/deterministic ones pmdp model: fon (F, C) foff ( θ1 θ1) θ2 (E, C) fon (F, O) 0.75 foff ( θ1 θ1) θ2 (E, O) θ θ1 1 θ2 1 θ2 specification: φ = P >0.3 ( 20 (E, O)) for selected pmdp and given φ, Θ φ is shown in yellow Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 19 /32

55 Case study: experiments Confidence Confidence System Parameter System Parameter Synthesised strategy π Fully random strategy Confidence Confidence Number of Traces Number of Traces Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 19 /32

56 Case study: experiments Confidence Confidence System Parameter System Parameter Synthesised strategy π Deterministic strategy Confidence Confidence Number of Traces Number of Traces Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 19 /32

57 property φ parameter synthesis model plti Θ φ strategy synthesis π generate data from system S p(θ D) D Bayesian inference over parameters C = P(S = φ) confidence computation p(θ D) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 20 /32

58 Extensions to alternative model classes parametrised LTI model u(t) input y(t) system output ỹ(t) measured output e(t) measurement noise, e(t) N(0, σ 2 e ) model set G = {M(θ) θ Θ}, where M(θ) : { x(t + 1) = Ax(t) + Bu(t) y(t) = θ T x(t) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 20 /32

59 Outline 1 Verification of physical systems: Integration of learning and verification 2 Verification of complex models with formal abstractions Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 21 /32

60 Outline 1 Verification of physical systems: Integration of learning and verification 2 Verification of complex models with formal abstractions Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 21 /32

61 Building automation systems a complex model model CO 2 dynamics, coupled with temperature evolution x k+1 = x k + ( ) 1 V ON mx k + µ {O,C} (C out x k ) + 1 F C occ + σ x w k y k+1 = y k + ( ) 1 1 C ON m(t set y k ) + µ {O,C} R (T out y k ) + 1 F T occ,k + σ y w k where T occ,k = νx k + ζ x - zone CO 2 level y - zone temperature 0.15 (F,C) (F,O) T set - set temperature (air circulation) T out - outside temperature (window) T occ - generated heat (occupants) σ ( ) - variance of noise w k N(0, 1) (E,C) (E,O) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 22 /32

62 Building automation systems a complex model 600 CO 2 levels 22 Zone Temperature Occupancy (occupied, empty) 1 1 Windows (open, closed) Parameter Value C J/ o C 20 o C 24 o C ν ζ T set T out air circulation: ON Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 22 /32

63 Complex models: from finite to uncountable finite-space Markov chain uncountable-space Markov process (S, T) (S, T) S = (z 1, z 2, z 3, z 4 ) S = R 2 T = p 11 p 14 T(dx s) = e 1 2 (x m(s))t Σ 1 (s)(x m(s)) dx 2π Σ(s) 1/2 p 41 P(z 1, {z 2, z 3 }) = p 12 + p 13 P(s, A) = A T(dx s), A S (F,C) 0.75 (F,O) (E,C) (E,O) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 23 /32

64 Probabilistic model checking of complex models recall PCTL formulae simplest instance: probabilistic safety is the probability that the execution, started at s, stays in safe set A during the time horizon [0, N] P s (A) = P s (s k A, k [0, N]) select p [0, 1]; probabilistic safe set with safety level p is S(p) = {s S : P s (A) p} Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 24 /32

65 Probabilistic model checking of complex models recall PCTL formulae simplest instance: probabilistic safety is the probability that the execution, started at s, stays in safe set A during the time horizon [0, N] P s (A) = P s (s k A, k [0, N]) select p [0, 1]; probabilistic safe set with safety level p is S(p) = {s S : P s (A) p} issues with computation of P s (A) and of S(p) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 24 /32

66 Formal abstractions complex model specification Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 25 /32

67 Formal abstractions ξ-quantitative abstraction complex model specification Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 25 /32

68 Formal abstractions abstract model ξ-specification ξ-quantitative abstraction complex model specification Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 25 /32

69 Formal abstractions abstract model ξ-specification automatic verification ξ-quantitative abstraction complex model specification Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 25 /32

70 Formal abstractions abstract model ξ-specification model checking automatic verification ξ-quantitative abstraction complex model specification Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 25 /32

71 Formal abstractions model checking abstract model ξ-specification automatic verification ξ-spec holds, or ξ-spec does not hold ξ-quantitative abstraction complex model specification Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 25 /32

72 Formal abstractions model checking abstract model ξ-specification automatic verification ξ-spec holds, or ξ-spec does not hold ξ-quantitative abstraction refine back complex model specification Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 25 /32

73 Formal abstractions model checking abstract model ξ-specification automatic verification ξ-spec holds, or ξ-spec does not hold ξ-quantitative abstraction refine back complex model specification spec holds, or spec does not hold Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 25 /32

74 Formal abstractions model checking abstract model ξ-specification automatic verification ξ-spec holds, or ξ-spec does not hold ξ-quantitative abstraction refine back complex model specification if not, tune ξ spec holds, or spec does not hold Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 25 /32

75 Formal abstractions: algorithm approximate stochastic process (S, T) as MC (S, T), where S = {z 1, z 2,..., z p } finite set of abstract states T : S S [0, 1] transition probability matrix Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 26 /32

76 Formal abstractions: algorithm approximate stochastic process (S, T) as MC (S, T), where S = {z 1, z 2,..., z p } finite set of abstract states T : S S [0, 1] transition probability matrix algorithm: input: stochastic process (S, T) output: MC (S, T) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 26 /32

77 Formal abstractions: algorithm approximate stochastic process (S, T) as MC (S, T), where S = {z 1, z 2,..., z p } finite set of abstract states T : S S [0, 1] transition probability matrix algorithm: input: stochastic process (S, T) 1 select finite partition S = p i=1 S i output: MC (S, T) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 26 /32

78 Formal abstractions: algorithm approximate stochastic process (S, T) as MC (S, T), where S = {z 1, z 2,..., z p } finite set of abstract states T : S S [0, 1] transition probability matrix algorithm: input: stochastic process (S, T) 1 select finite partition S = p i=1 S i 2 select representative points z i S i 3 define finite state space S := {z i, i = 1,..., p} output: MC (S, T) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 26 /32

79 Formal abstractions: algorithm approximate stochastic process (S, T) as MC (S, T), where S = {z 1, z 2,..., z p } finite set of abstract states T : S S [0, 1] transition probability matrix algorithm: input: stochastic process (S, T) 1 select finite partition S = p i=1 S i 2 select representative points z i S i 3 define finite state space S := {z i, i = 1,..., p} 4 compute transition probability matrix: T(z i, z j ) = T(S j z i ) output: MC (S, T) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 26 /32

80 Formal abstractions: algorithm approximate stochastic process (S, T) as MC (S, T), where S = {z 1, z 2,..., z p } finite set of abstract states algorithm: T : S S [0, 1] transition probability matrix input: stochastic process (S, T) 1 select finite partition S = p i=1 S i 2 select representative points z i S i 3 define finite state space S := {z i, i = 1,..., p} 4 compute transition probability matrix: T(z i, z j ) = T(S j z i ) output: MC (S, T) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 26 /32

81 Model checking probabilistic safety via formal abstractions safety set A S, time horizon N, safety level p Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 27 /32

82 Model checking probabilistic safety via formal abstractions safety set A S, time horizon N, safety level p δ-abstract (S, T) as MC (S, T), so that A A δ, quantify error ξ(δ, N) probabilistic safe set S(p) = {s S : P s (A) p} = {s S : (1 P s (A)) 1 p} Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 27 /32

83 Model checking probabilistic safety via formal abstractions safety set A S, time horizon N, safety level p δ-abstract (S, T) as MC (S, T), so that A A δ, quantify error ξ(δ, N) probabilistic safe set S(p) = {s S : P s (A) p} = {s S : (1 P s (A)) 1 p} can be computed via Z δ (p+ξ) =. )) Sat (P 1 p ξ (true U N A δ )} = {z S : z = P 1 p ξ (true U N A δ Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 27 /32

84 Formal abstractions: error ξ consider T(d s s) = t( s s)d s; assume t is Lipschitz continuous, namely 0 h s < : t( s s) t( s s ) h s s s, s, s, s S Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 28 /32

85 Formal abstractions: error ξ consider T(d s s) = t( s s)d s; assume t is Lipschitz continuous, namely 0 h s < : t( s s) t( s s ) h s s s, s, s, s S one-step error (related to approximate probabilistic bisimulation) ɛ = h s δl (A) δ max diameter of partition sets L (A) volume of set of interest N-step error (tuneable via δ) ξ(δ, N) = ɛn Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 28 /32

86 Formal abstractions: error ξ consider T(d s s) = t( s s)d s; assume t is Lipschitz continuous, namely 0 h s < : t( s s) t( s s ) h s s s, s, s, s S one-step error (related to approximate probabilistic bisimulation) ɛ = h s δl (A) δ max diameter of partition sets L (A) volume of set of interest N-step error (tuneable via δ) ξ(δ, N) = ɛn improved and generalised error Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 28 /32

87 FAUST 2 : software for formal abstractions Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 29 /32

88 FAUST 2 : software for formal abstractions sequential, adaptive, anytime Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 29 /32

89 FAUST 2 : software for formal abstractions sequential, adaptive, anytime Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 29 /32

90 FAUST 2 : software for formal abstractions sequential, adaptive, anytime Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 29 /32

91 FAUST 2 : software for formal abstractions sequential, adaptive, anytime Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 29 /32

92 FAUST 2 : software for formal abstractions sequential, adaptive, anytime Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 29 /32

93 Building automation systems case study x k+1 = x k + ( ) 1 V ON mx k + µ {O,C} (C out x k ) + 1 F C occ + σ x w k y k+1 = y k + ( ) 1 1 C ON m(t set y k ) + µ {O,C} R (T out y k ) + 1 F T occ,k + σ y w k where T occ,k = νx k + ζ (F,C) (F,O) (E,C) (E,O) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 30 /32

94 Building automation systems case study safe set A = [ ]ppm [19 21] o C air circulation: closed-loop control policy at k + 1 OFF if (x k, y k ) A ON if (x k, y k ) A stay put else specification: ] P =? [ 20 (x, y) A 5 hours, 8:00-13:00 ( = 15 min, N=20), divided into 8:00-8:30 (N=2) - (E,C) 8:30-11:30 (N=12) - (F,C) 11:30-13:00 (N=6) - (F,O) (F,C) (E,C) (F,O) (E,O) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 30 /32

95 Building automation systems case study Probability N=20, σ = CO 2 level (ppm) Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 30 /32

96 Take away message verification of physical systems: Integration of learning and verification models properties data verification of complex models with formal abstractions abstract model ξ-specification ξ-quantitative abstraction model checking automatic verification ξ-spec holds, or ξ-spec does not hold refine back complex model specification if not, tune ξ spec holds, or spec does not hold Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 31 /32

97 Acknowledgments My students: V. Wijesurija, N. Cauchi, E. Polgreen, A. Peruffo, K. Lesser, M. Zamani, S. Haesaert, I. Tkachev, D. Adzkiya, S. Soudjani and collaborators Selected journal references E. Polgreen, V. Wijesuriya, S. Haesaert and A. Abate, Automated Experiment Design for Efficient Verification of Parametric Markov Decision Processes, QEST17, E. Polgreen, V. Wijesuriya, S. Haesert and A. Abate, Data-efficient Bayesian verification of parametric Markov chains, QEST16, LNCS 9826, pp , S. Haesaert, S.E.Z. Soudjani, and A. Abate, Verification of general Markov decision processes by approximate similarity relations and policy refinement, SIAM Journal on Control and Optimisation, vol. 55, nr. 4, pp , I. Tkachev, A. Mereacre, J.-P. Katoen, and A. Abate, Quantitative Model Checking of Controlled Discrete-Time Markov Processes, Information and Computation, vol. 253, nr. 1, pp. 1 35, S. Haesaert, at al., P.M.J. V.d. Hof, and A. Abate, Data-driven and Model-based Verification via Bayesian Identification and Reachability Analysis, Automatica, vol. 79, pp , S.E.Z. Soudjani and A. Abate, Aggregation and Control of Populations of Thermostatically Controlled Loads by Formal Abstractions, IEEE Transactions on Control Systems Technology. vol. 23, nr. 3, pp , S.E.Z. Soudjani and A. Abate, Quantitative Approximation of the Probability Distribution of a Markov Process by Formal Abstractions, Logical Methods in Computer Science, Vol. 11, nr. 3, Oct M. Zamani, P. Mohajerin Esfahani, R. Majumdar, A. Abate, and J. Lygeros, Symbolic control of stochastic systems via approximately bisimilar finite abstractions, IEEE Transactions on Automatic Control, vol. 59 nr. 12, pp , Dec I. Tkachev and A. Abate, Characterization and computation of infinite horizon specifications over Markov processes, Theoretical Computer Science, vol. 515, pp. 1-18, S. Soudjani and A. Abate, Adaptive and Sequential Gridding for Abstraction and Verification of Stochastic Processes, SIAM Journal on Applied Dynamical Systems, vol. 12, nr. 2, pp , A. Abate, et al., Approximate Model Checking of Stochastic Hybrid Systems, European Journal of Control, 16(6), , A. Abate, et al., Probabilistic Reachability and Safety Analysis of Controlled Discrete-Time Stochastic Hybrid Systems, Automatica, 44(11), , Nov Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 32 /32

98 Thank you for your attention For more info: Alessandro Abate, CS, Oxford Model-based and data-driven verification slide 32 /32

Data-efficient Bayesian verification of parametric Markov chains

Data-efficient Bayesian verification of parametric Markov chains Data-efficient Bayesian verification of parametric Markov chains E. Polgreen, V.B. Wijesuriya, S. Haesaert 2, and A. Abate Department of Computer Science, University of Oxford 2 Department of Electrical

More information

Abstraction-based synthesis: Challenges and victories

Abstraction-based synthesis: Challenges and victories Abstraction-based synthesis: Challenges and victories Majid Zamani Hybrid Control Systems Group Electrical Engineering Department Technische Universität München December 14, 2015 Majid Zamani (TU München)

More information

Polynomial-Time Verification of PCTL Properties of MDPs with Convex Uncertainties and its Application to Cyber-Physical Systems

Polynomial-Time Verification of PCTL Properties of MDPs with Convex Uncertainties and its Application to Cyber-Physical Systems Polynomial-Time Verification of PCTL Properties of MDPs with Convex Uncertainties and its Application to Cyber-Physical Systems Alberto Puggelli DREAM Seminar - November 26, 2013 Collaborators and PIs:

More information

ONR MURI AIRFOILS: Animal Inspired Robust Flight with Outer and Inner Loop Strategies. Calin Belta

ONR MURI AIRFOILS: Animal Inspired Robust Flight with Outer and Inner Loop Strategies. Calin Belta ONR MURI AIRFOILS: Animal Inspired Robust Flight with Outer and Inner Loop Strategies Provable safety for animal inspired agile flight Calin Belta Hybrid and Networked Systems (HyNeSs) Lab Department of

More information

Failure Diagnosis of Discrete-Time Stochastic Systems subject to Temporal Logic Correctness Requirements

Failure Diagnosis of Discrete-Time Stochastic Systems subject to Temporal Logic Correctness Requirements Failure Diagnosis of Discrete-Time Stochastic Systems subject to Temporal Logic Correctness Requirements Jun Chen, Student Member, IEEE and Ratnesh Kumar, Fellow, IEEE Dept. of Elec. & Comp. Eng., Iowa

More information

Bayesian Inference and the Symbolic Dynamics of Deterministic Chaos. Christopher C. Strelioff 1,2 Dr. James P. Crutchfield 2

Bayesian Inference and the Symbolic Dynamics of Deterministic Chaos. Christopher C. Strelioff 1,2 Dr. James P. Crutchfield 2 How Random Bayesian Inference and the Symbolic Dynamics of Deterministic Chaos Christopher C. Strelioff 1,2 Dr. James P. Crutchfield 2 1 Center for Complex Systems Research and Department of Physics University

More information

Probabilistic Model Checking and Strategy Synthesis for Robot Navigation

Probabilistic Model Checking and Strategy Synthesis for Robot Navigation Probabilistic Model Checking and Strategy Synthesis for Robot Navigation Dave Parker University of Birmingham (joint work with Bruno Lacerda, Nick Hawes) AIMS CDT, Oxford, May 2015 Overview Probabilistic

More information

An Analytic Solution to Discrete Bayesian Reinforcement Learning

An Analytic Solution to Discrete Bayesian Reinforcement Learning An Analytic Solution to Discrete Bayesian Reinforcement Learning Pascal Poupart (U of Waterloo) Nikos Vlassis (U of Amsterdam) Jesse Hoey (U of Toronto) Kevin Regan (U of Waterloo) 1 Motivation Automated

More information

Approximate dynamic programming for stochastic reachability

Approximate dynamic programming for stochastic reachability Approximate dynamic programming for stochastic reachability Nikolaos Kariotoglou, Sean Summers, Tyler Summers, Maryam Kamgarpour and John Lygeros Abstract In this work we illustrate how approximate dynamic

More information

Scalable Underapproximative Verification of Stochastic LTI Systems using Convexity and Compactness. HSCC 2018 Porto, Portugal

Scalable Underapproximative Verification of Stochastic LTI Systems using Convexity and Compactness. HSCC 2018 Porto, Portugal Scalable Underapproximative Verification of Stochastic LTI Systems using ity and Compactness Abraham Vinod and Meeko Oishi Electrical and Computer Engineering, University of New Mexico April 11, 2018 HSCC

More information

SFM-11:CONNECT Summer School, Bertinoro, June 2011

SFM-11:CONNECT Summer School, Bertinoro, June 2011 SFM-:CONNECT Summer School, Bertinoro, June 20 EU-FP7: CONNECT LSCITS/PSS VERIWARE Part 3 Markov decision processes Overview Lectures and 2: Introduction 2 Discrete-time Markov chains 3 Markov decision

More information

Models for Control and Verification

Models for Control and Verification Outline Models for Control and Verification Ian Mitchell Department of Computer Science The University of British Columbia Classes of models Well-posed models Difference Equations Nonlinear Ordinary Differential

More information

Introduction to Artificial Intelligence (AI)

Introduction to Artificial Intelligence (AI) Introduction to Artificial Intelligence (AI) Computer Science cpsc502, Lecture 10 Oct, 13, 2011 CPSC 502, Lecture 10 Slide 1 Today Oct 13 Inference in HMMs More on Robot Localization CPSC 502, Lecture

More information

CPSC 540: Machine Learning

CPSC 540: Machine Learning CPSC 540: Machine Learning MCMC and Non-Parametric Bayes Mark Schmidt University of British Columbia Winter 2016 Admin I went through project proposals: Some of you got a message on Piazza. No news is

More information

THERE is an ever more ubiquitous embedding of digital. Robust Dynamic Programming for Temporal Logic Control of Stochastic Systems

THERE is an ever more ubiquitous embedding of digital. Robust Dynamic Programming for Temporal Logic Control of Stochastic Systems 1 Robust Dynamic Programming for Temporal Logic Control of Stochastic Systems Sofie Haesaert, Member, IEEE,, Sadegh Soudjani, Member, IEEE arxiv:1811.11445v1 [cs.sy] 28 Nov 2018 Abstract Discrete-time

More information

Partially Observable Markov Decision Processes (POMDPs)

Partially Observable Markov Decision Processes (POMDPs) Partially Observable Markov Decision Processes (POMDPs) Sachin Patil Guest Lecture: CS287 Advanced Robotics Slides adapted from Pieter Abbeel, Alex Lee Outline Introduction to POMDPs Locally Optimal Solutions

More information

Lecture 8 Receding Horizon Temporal Logic Planning & Finite-State Abstraction

Lecture 8 Receding Horizon Temporal Logic Planning & Finite-State Abstraction Lecture 8 Receding Horizon Temporal Logic Planning & Finite-State Abstraction Ufuk Topcu Nok Wongpiromsarn Richard M. Murray AFRL, 26 April 2012 Contents of the lecture: Intro: Incorporating continuous

More information

Approximate model checking of stochastic hybrid systems

Approximate model checking of stochastic hybrid systems Approximate model checking of stochastic hybrid systems A. Abate, J.-P. Katoen, J. Lygeros, and M. Prandini Abstract A method for approximate model checking of stochastic hybrid systems with provable approximation

More information

Non-Parametric Bayes

Non-Parametric Bayes Non-Parametric Bayes Mark Schmidt UBC Machine Learning Reading Group January 2016 Current Hot Topics in Machine Learning Bayesian learning includes: Gaussian processes. Approximate inference. Bayesian

More information

Introduction to Probabilistic Machine Learning

Introduction to Probabilistic Machine Learning Introduction to Probabilistic Machine Learning Piyush Rai Dept. of CSE, IIT Kanpur (Mini-course 1) Nov 03, 2015 Piyush Rai (IIT Kanpur) Introduction to Probabilistic Machine Learning 1 Machine Learning

More information

Introduction Probabilistic Programming ProPPA Inference Results Conclusions. Embedding Machine Learning in Stochastic Process Algebra.

Introduction Probabilistic Programming ProPPA Inference Results Conclusions. Embedding Machine Learning in Stochastic Process Algebra. Embedding Machine Learning in Stochastic Process Algebra Jane Hillston Joint work with Anastasis Georgoulas and Guido Sanguinetti, School of Informatics, University of Edinburgh 16th August 2017 quan col....

More information

Probabilistic Model Checking Michaelmas Term Dr. Dave Parker. Department of Computer Science University of Oxford

Probabilistic Model Checking Michaelmas Term Dr. Dave Parker. Department of Computer Science University of Oxford Probabilistic Model Checking Michaelmas Term 20 Dr. Dave Parker Department of Computer Science University of Oxford Overview PCTL for MDPs syntax, semantics, examples PCTL model checking next, bounded

More information

Introduction to Artificial Intelligence (AI)

Introduction to Artificial Intelligence (AI) Introduction to Artificial Intelligence (AI) Computer Science cpsc502, Lecture 9 Oct, 11, 2011 Slide credit Approx. Inference : S. Thrun, P, Norvig, D. Klein CPSC 502, Lecture 9 Slide 1 Today Oct 11 Bayesian

More information

Adaptive Dual Control

Adaptive Dual Control Adaptive Dual Control Björn Wittenmark Department of Automatic Control, Lund Institute of Technology Box 118, S-221 00 Lund, Sweden email: bjorn@control.lth.se Keywords: Dual control, stochastic control,

More information

Patterns of Scalable Bayesian Inference Background (Session 1)

Patterns of Scalable Bayesian Inference Background (Session 1) Patterns of Scalable Bayesian Inference Background (Session 1) Jerónimo Arenas-García Universidad Carlos III de Madrid jeronimo.arenas@gmail.com June 14, 2017 1 / 15 Motivation. Bayesian Learning principles

More information

Performance Analysis of ARQ Protocols using a Theorem Prover

Performance Analysis of ARQ Protocols using a Theorem Prover Performance Analysis of ARQ Protocols using a Theorem Prover Osman Hasan Sofiene Tahar Hardware Verification Group Concordia University Montreal, Canada ISPASS 2008 Objectives n Probabilistic Theorem Proving

More information

Artificial Intelligence & Sequential Decision Problems

Artificial Intelligence & Sequential Decision Problems Artificial Intelligence & Sequential Decision Problems (CIV6540 - Machine Learning for Civil Engineers) Professor: James-A. Goulet Département des génies civil, géologique et des mines Chapter 15 Goulet

More information

Bayesian Methods for Machine Learning

Bayesian Methods for Machine Learning Bayesian Methods for Machine Learning CS 584: Big Data Analytics Material adapted from Radford Neal s tutorial (http://ftp.cs.utoronto.ca/pub/radford/bayes-tut.pdf), Zoubin Ghahramni (http://hunch.net/~coms-4771/zoubin_ghahramani_bayesian_learning.pdf),

More information

Gradient Sampling for Improved Action Selection and Path Synthesis

Gradient Sampling for Improved Action Selection and Path Synthesis Gradient Sampling for Improved Action Selection and Path Synthesis Ian M. Mitchell Department of Computer Science The University of British Columbia November 2016 mitchell@cs.ubc.ca http://www.cs.ubc.ca/~mitchell

More information

STA 4273H: Statistical Machine Learning

STA 4273H: Statistical Machine Learning STA 4273H: Statistical Machine Learning Russ Salakhutdinov Department of Statistics! rsalakhu@utstat.toronto.edu! http://www.utstat.utoronto.ca/~rsalakhu/ Sidney Smith Hall, Room 6002 Lecture 7 Approximate

More information

Analog Circuit Verification by Statistical Model Checking

Analog Circuit Verification by Statistical Model Checking 16 th Asian Pacific Design Automation ti Conference Analog Circuit Verification by Statistical Model Checking Author Ying-Chih Wang (Presenter) Anvesh Komuravelli Paolo Zuliani Edmund M. Clarke Date 2011/1/26

More information

Probabilistic modeling. The slides are closely adapted from Subhransu Maji s slides

Probabilistic modeling. The slides are closely adapted from Subhransu Maji s slides Probabilistic modeling The slides are closely adapted from Subhransu Maji s slides Overview So far the models and algorithms you have learned about are relatively disconnected Probabilistic modeling framework

More information

Testing System Conformance for Cyber-Physical Systems

Testing System Conformance for Cyber-Physical Systems Testing System Conformance for Cyber-Physical Systems Testing systems by walking the dog Rupak Majumdar Max Planck Institute for Software Systems Joint work with Vinayak Prabhu (MPI-SWS) and Jyo Deshmukh

More information

Density Estimation. Seungjin Choi

Density Estimation. Seungjin Choi Density Estimation Seungjin Choi Department of Computer Science and Engineering Pohang University of Science and Technology 77 Cheongam-ro, Nam-gu, Pohang 37673, Korea seungjin@postech.ac.kr http://mlg.postech.ac.kr/

More information

Bayesian Machine Learning

Bayesian Machine Learning Bayesian Machine Learning Andrew Gordon Wilson ORIE 6741 Lecture 2: Bayesian Basics https://people.orie.cornell.edu/andrew/orie6741 Cornell University August 25, 2016 1 / 17 Canonical Machine Learning

More information

Probability and Time: Hidden Markov Models (HMMs)

Probability and Time: Hidden Markov Models (HMMs) Probability and Time: Hidden Markov Models (HMMs) Computer Science cpsc322, Lecture 32 (Textbook Chpt 6.5.2) Nov, 25, 2013 CPSC 322, Lecture 32 Slide 1 Lecture Overview Recap Markov Models Markov Chain

More information

Towards Co-Engineering Communicating Autonomous Cyber-physical Systems. Bujorianu, M.C. and Bujorianu, M.L. MIMS EPrint:

Towards Co-Engineering Communicating Autonomous Cyber-physical Systems. Bujorianu, M.C. and Bujorianu, M.L. MIMS EPrint: Towards Co-Engineering Communicating Autonomous Cyber-physical Systems Bujorianu M.C. and Bujorianu M.L. 009 MIMS EPrint: 00.53 Manchester Institute for Mathematical Sciences School of Mathematics The

More information

Recent Advances in Bayesian Inference Techniques

Recent Advances in Bayesian Inference Techniques Recent Advances in Bayesian Inference Techniques Christopher M. Bishop Microsoft Research, Cambridge, U.K. research.microsoft.com/~cmbishop SIAM Conference on Data Mining, April 2004 Abstract Bayesian

More information

Reinforcement Learning

Reinforcement Learning Reinforcement Learning Model-Based Reinforcement Learning Model-based, PAC-MDP, sample complexity, exploration/exploitation, RMAX, E3, Bayes-optimal, Bayesian RL, model learning Vien Ngo MLR, University

More information

PRISM An overview. automatic verification of systems with stochastic behaviour e.g. due to unreliability, uncertainty, randomisation,

PRISM An overview. automatic verification of systems with stochastic behaviour e.g. due to unreliability, uncertainty, randomisation, PRISM An overview PRISM is a probabilistic model checker automatic verification of systems with stochastic behaviour e.g. due to unreliability, uncertainty, randomisation, Construction/analysis of probabilistic

More information

Introduction to Systems Analysis and Decision Making Prepared by: Jakub Tomczak

Introduction to Systems Analysis and Decision Making Prepared by: Jakub Tomczak Introduction to Systems Analysis and Decision Making Prepared by: Jakub Tomczak 1 Introduction. Random variables During the course we are interested in reasoning about considered phenomenon. In other words,

More information

Sequential Monte Carlo Samplers for Applications in High Dimensions

Sequential Monte Carlo Samplers for Applications in High Dimensions Sequential Monte Carlo Samplers for Applications in High Dimensions Alexandros Beskos National University of Singapore KAUST, 26th February 2014 Joint work with: Dan Crisan, Ajay Jasra, Nik Kantas, Alex

More information

Recurrent Latent Variable Networks for Session-Based Recommendation

Recurrent Latent Variable Networks for Session-Based Recommendation Recurrent Latent Variable Networks for Session-Based Recommendation Panayiotis Christodoulou Cyprus University of Technology paa.christodoulou@edu.cut.ac.cy 27/8/2017 Panayiotis Christodoulou (C.U.T.)

More information

State-Space Methods for Inferring Spike Trains from Calcium Imaging

State-Space Methods for Inferring Spike Trains from Calcium Imaging State-Space Methods for Inferring Spike Trains from Calcium Imaging Joshua Vogelstein Johns Hopkins April 23, 2009 Joshua Vogelstein (Johns Hopkins) State-Space Calcium Imaging April 23, 2009 1 / 78 Outline

More information

Bayesian Inference and MCMC

Bayesian Inference and MCMC Bayesian Inference and MCMC Aryan Arbabi Partly based on MCMC slides from CSC412 Fall 2018 1 / 18 Bayesian Inference - Motivation Consider we have a data set D = {x 1,..., x n }. E.g each x i can be the

More information

Parametric Models. Dr. Shuang LIANG. School of Software Engineering TongJi University Fall, 2012

Parametric Models. Dr. Shuang LIANG. School of Software Engineering TongJi University Fall, 2012 Parametric Models Dr. Shuang LIANG School of Software Engineering TongJi University Fall, 2012 Today s Topics Maximum Likelihood Estimation Bayesian Density Estimation Today s Topics Maximum Likelihood

More information

STA414/2104. Lecture 11: Gaussian Processes. Department of Statistics

STA414/2104. Lecture 11: Gaussian Processes. Department of Statistics STA414/2104 Lecture 11: Gaussian Processes Department of Statistics www.utstat.utoronto.ca Delivered by Mark Ebden with thanks to Russ Salakhutdinov Outline Gaussian Processes Exam review Course evaluations

More information

Part 1: Expectation Propagation

Part 1: Expectation Propagation Chalmers Machine Learning Summer School Approximate message passing and biomedicine Part 1: Expectation Propagation Tom Heskes Machine Learning Group, Institute for Computing and Information Sciences Radboud

More information

The geometry of Gaussian processes and Bayesian optimization. Contal CMLA, ENS Cachan

The geometry of Gaussian processes and Bayesian optimization. Contal CMLA, ENS Cachan The geometry of Gaussian processes and Bayesian optimization. Contal CMLA, ENS Cachan Background: Global Optimization and Gaussian Processes The Geometry of Gaussian Processes and the Chaining Trick Algorithm

More information

Auxiliary Particle Methods

Auxiliary Particle Methods Auxiliary Particle Methods Perspectives & Applications Adam M. Johansen 1 adam.johansen@bristol.ac.uk Oxford University Man Institute 29th May 2008 1 Collaborators include: Arnaud Doucet, Nick Whiteley

More information

Expectation propagation for signal detection in flat-fading channels

Expectation propagation for signal detection in flat-fading channels Expectation propagation for signal detection in flat-fading channels Yuan Qi MIT Media Lab Cambridge, MA, 02139 USA yuanqi@media.mit.edu Thomas Minka CMU Statistics Department Pittsburgh, PA 15213 USA

More information

COMP3702/7702 Artificial Intelligence Lecture 11: Introduction to Machine Learning and Reinforcement Learning. Hanna Kurniawati

COMP3702/7702 Artificial Intelligence Lecture 11: Introduction to Machine Learning and Reinforcement Learning. Hanna Kurniawati COMP3702/7702 Artificial Intelligence Lecture 11: Introduction to Machine Learning and Reinforcement Learning Hanna Kurniawati Today } What is machine learning? } Where is it used? } Types of machine learning

More information

10 Robotic Exploration and Information Gathering

10 Robotic Exploration and Information Gathering NAVARCH/EECS 568, ROB 530 - Winter 2018 10 Robotic Exploration and Information Gathering Maani Ghaffari April 2, 2018 Robotic Information Gathering: Exploration and Monitoring In information gathering

More information

Bayesian Regression Linear and Logistic Regression

Bayesian Regression Linear and Logistic Regression When we want more than point estimates Bayesian Regression Linear and Logistic Regression Nicole Beckage Ordinary Least Squares Regression and Lasso Regression return only point estimates But what if we

More information

VIME: Variational Information Maximizing Exploration

VIME: Variational Information Maximizing Exploration 1 VIME: Variational Information Maximizing Exploration Rein Houthooft, Xi Chen, Yan Duan, John Schulman, Filip De Turck, Pieter Abbeel Reviewed by Zhao Song January 13, 2017 1 Exploration in Reinforcement

More information

Ranking Verification Counterexamples: An Invariant guided approach

Ranking Verification Counterexamples: An Invariant guided approach Ranking Verification Counterexamples: An Invariant guided approach Ansuman Banerjee Indian Statistical Institute Joint work with Pallab Dasgupta, Srobona Mitra and Harish Kumar Complex Systems Everywhere

More information

CS 4649/7649 Robot Intelligence: Planning

CS 4649/7649 Robot Intelligence: Planning CS 4649/7649 Robot Intelligence: Planning Probability Primer Sungmoon Joo School of Interactive Computing College of Computing Georgia Institute of Technology S. Joo (sungmoon.joo@cc.gatech.edu) 1 *Slides

More information

Machine Learning and Bayesian Inference. Unsupervised learning. Can we find regularity in data without the aid of labels?

Machine Learning and Bayesian Inference. Unsupervised learning. Can we find regularity in data without the aid of labels? Machine Learning and Bayesian Inference Dr Sean Holden Computer Laboratory, Room FC6 Telephone extension 6372 Email: sbh11@cl.cam.ac.uk www.cl.cam.ac.uk/ sbh11/ Unsupervised learning Can we find regularity

More information

DEPARTMENT OF COMPUTER SCIENCE Autumn Semester MACHINE LEARNING AND ADAPTIVE INTELLIGENCE

DEPARTMENT OF COMPUTER SCIENCE Autumn Semester MACHINE LEARNING AND ADAPTIVE INTELLIGENCE Data Provided: None DEPARTMENT OF COMPUTER SCIENCE Autumn Semester 203 204 MACHINE LEARNING AND ADAPTIVE INTELLIGENCE 2 hours Answer THREE of the four questions. All questions carry equal weight. Figures

More information

BAYESIAN ESTIMATION OF UNKNOWN PARAMETERS OVER NETWORKS

BAYESIAN ESTIMATION OF UNKNOWN PARAMETERS OVER NETWORKS BAYESIAN ESTIMATION OF UNKNOWN PARAMETERS OVER NETWORKS Petar M. Djurić Dept. of Electrical & Computer Engineering Stony Brook University Stony Brook, NY 11794, USA e-mail: petar.djuric@stonybrook.edu

More information

Modeling Options for Demand Side Participation of Thermostatically Controlled Loads

Modeling Options for Demand Side Participation of Thermostatically Controlled Loads 213 IREP Symposium-Bulk Power System Dynamics and Control -IX (IREP), August 25-3, 213, Rethymnon, Greece Modeling Options for Demand Side Participation of Thermostatically Controlled Loads Maryam Kamgarpour,

More information

Gradient Estimation for Attractor Networks

Gradient Estimation for Attractor Networks Gradient Estimation for Attractor Networks Thomas Flynn Department of Computer Science Graduate Center of CUNY July 2017 1 Outline Motivations Deterministic attractor networks Stochastic attractor networks

More information

Marks. bonus points. } Assignment 1: Should be out this weekend. } Mid-term: Before the last lecture. } Mid-term deferred exam:

Marks. bonus points. } Assignment 1: Should be out this weekend. } Mid-term: Before the last lecture. } Mid-term deferred exam: Marks } Assignment 1: Should be out this weekend } All are marked, I m trying to tally them and perhaps add bonus points } Mid-term: Before the last lecture } Mid-term deferred exam: } This Saturday, 9am-10.30am,

More information

Reinforcement learning

Reinforcement learning Reinforcement learning Based on [Kaelbling et al., 1996, Bertsekas, 2000] Bert Kappen Reinforcement learning Reinforcement learning is the problem faced by an agent that must learn behavior through trial-and-error

More information

The Monte Carlo Method: Bayesian Networks

The Monte Carlo Method: Bayesian Networks The Method: Bayesian Networks Dieter W. Heermann Methods 2009 Dieter W. Heermann ( Methods)The Method: Bayesian Networks 2009 1 / 18 Outline 1 Bayesian Networks 2 Gene Expression Data 3 Bayesian Networks

More information

On Distribution Based Bisimulations for Probabilistic Automata

On Distribution Based Bisimulations for Probabilistic Automata On Distribution Based Bisimulations for Probabilistic Automata AVACS alumni technical talk Lijun Zhang Institute of Software, Chinese Academy of Sciences Joint work with Holger Hermanns, Lei Song, Christian

More information

Automated Formal Synthesis of Digital Controllers for State-Space Physical Plants CAV 2017

Automated Formal Synthesis of Digital Controllers for State-Space Physical Plants CAV 2017 Automated Formal Synthesis of Digital Controllers for State-Space Physical Plants CAV 2017 Artifact * Alessandro Abate, Iury Bessa, Dario Cattaruzza, Lucas Cordeiro, Cristina David, Pascal Kesseli, Daniel

More information

Approximate Universal Artificial Intelligence

Approximate Universal Artificial Intelligence Approximate Universal Artificial Intelligence A Monte-Carlo AIXI Approximation Joel Veness Kee Siong Ng Marcus Hutter David Silver University of New South Wales National ICT Australia The Australian National

More information

LECTURE 15 Markov chain Monte Carlo

LECTURE 15 Markov chain Monte Carlo LECTURE 15 Markov chain Monte Carlo There are many settings when posterior computation is a challenge in that one does not have a closed form expression for the posterior distribution. Markov chain Monte

More information

Probabilistic Graphical Models

Probabilistic Graphical Models Parameter Estimation December 14, 2015 Overview 1 Motivation 2 3 4 What did we have so far? 1 Representations: how do we model the problem? (directed/undirected). 2 Inference: given a model and partially

More information

Statistical Model Checking Applied on Perception and Decision-making Systems for Autonomous Driving

Statistical Model Checking Applied on Perception and Decision-making Systems for Autonomous Driving Statistical Model Checking Applied on Perception and Decision-making Systems for Autonomous Driving J. Quilbeuf 1 M. Barbier 2,3 L. Rummelhard 3 C. Laugier 2 A. Legay 1 T. Genevois 2 J. Ibañez-Guzmán 3

More information

A Bayesian model for event-based trust

A Bayesian model for event-based trust A Bayesian model for event-based trust Elements of a foundation for computational trust Vladimiro Sassone ECS, University of Southampton joint work K. Krukow and M. Nielsen Oxford, 9 March 2007 V. Sassone

More information

Adaptive and Sequential Gridding Procedures for the Abstraction and the Verification of Stochastic Processes

Adaptive and Sequential Gridding Procedures for the Abstraction and the Verification of Stochastic Processes Vol. xx, pp. x c xxxx Society for Industrial and Applied Mathematics x x Adaptive and Sequential Gridding Procedures for the Abstraction and the Verification of Stochastic Processes Sadegh Esmaeil Zadeh

More information

Formal Verification of Stochastic Max-Plus-Linear Systems

Formal Verification of Stochastic Max-Plus-Linear Systems IEEE TRANSACTIONS ON AUTOMATIC CONTROL, VOL.?, NO.?, OCTOBER 214 1 Formal Verification of Stochastic Max-Plus-Linear Systems Sadegh Esmaeil Zadeh Soudjani, Diey Adziya, and Alessandro Abate Abstract This

More information

Lecture 8: Policy Gradient

Lecture 8: Policy Gradient Lecture 8: Policy Gradient Hado van Hasselt Outline 1 Introduction 2 Finite Difference Policy Gradient 3 Monte-Carlo Policy Gradient 4 Actor-Critic Policy Gradient Introduction Vapnik s rule Never solve

More information

Gaussian processes. Chuong B. Do (updated by Honglak Lee) November 22, 2008

Gaussian processes. Chuong B. Do (updated by Honglak Lee) November 22, 2008 Gaussian processes Chuong B Do (updated by Honglak Lee) November 22, 2008 Many of the classical machine learning algorithms that we talked about during the first half of this course fit the following pattern:

More information

Lecture 2: From Linear Regression to Kalman Filter and Beyond

Lecture 2: From Linear Regression to Kalman Filter and Beyond Lecture 2: From Linear Regression to Kalman Filter and Beyond Department of Biomedical Engineering and Computational Science Aalto University January 26, 2012 Contents 1 Batch and Recursive Estimation

More information

A Tour of Reinforcement Learning The View from Continuous Control. Benjamin Recht University of California, Berkeley

A Tour of Reinforcement Learning The View from Continuous Control. Benjamin Recht University of California, Berkeley A Tour of Reinforcement Learning The View from Continuous Control Benjamin Recht University of California, Berkeley trustable, scalable, predictable Control Theory! Reinforcement Learning is the study

More information

We Live in Exciting Times. CSCI-567: Machine Learning (Spring 2019) Outline. Outline. ACM (an international computing research society) has named

We Live in Exciting Times. CSCI-567: Machine Learning (Spring 2019) Outline. Outline. ACM (an international computing research society) has named We Live in Exciting Times ACM (an international computing research society) has named CSCI-567: Machine Learning (Spring 2019) Prof. Victor Adamchik U of Southern California Apr. 2, 2019 Yoshua Bengio,

More information

ICML Scalable Bayesian Inference on Point processes. with Gaussian Processes. Yves-Laurent Kom Samo & Stephen Roberts

ICML Scalable Bayesian Inference on Point processes. with Gaussian Processes. Yves-Laurent Kom Samo & Stephen Roberts ICML 2015 Scalable Nonparametric Bayesian Inference on Point Processes with Gaussian Processes Machine Learning Research Group and Oxford-Man Institute University of Oxford July 8, 2015 Point Processes

More information

Lecture : Probabilistic Machine Learning

Lecture : Probabilistic Machine Learning Lecture : Probabilistic Machine Learning Riashat Islam Reasoning and Learning Lab McGill University September 11, 2018 ML : Many Methods with Many Links Modelling Views of Machine Learning Machine Learning

More information

Markov chain optimisation for energy systems (MC-ES)

Markov chain optimisation for energy systems (MC-ES) Markov chain optimisation for energy systems (MC-ES) John Moriarty Queen Mary University of London 19th August 2016 Approaches to the stochastic optimisation of power systems are not mature at research

More information

Explorability of a Turbulent Scalar Field

Explorability of a Turbulent Scalar Field 017 American Control Conference Sheraton Seattle Hotel May 4 6, 017, Seattle, USA Explorability of a Turbulent Scalar Field Vivek Mishra and Fumin Zhang Abstract In this paper we extend the concept of

More information

Part IV: Monte Carlo and nonparametric Bayes

Part IV: Monte Carlo and nonparametric Bayes Part IV: Monte Carlo and nonparametric Bayes Outline Monte Carlo methods Nonparametric Bayesian models Outline Monte Carlo methods Nonparametric Bayesian models The Monte Carlo principle The expectation

More information

Bayesian Inference by Density Ratio Estimation

Bayesian Inference by Density Ratio Estimation Bayesian Inference by Density Ratio Estimation Michael Gutmann https://sites.google.com/site/michaelgutmann Institute for Adaptive and Neural Computation School of Informatics, University of Edinburgh

More information

An Introduction to Hybrid Systems Modeling

An Introduction to Hybrid Systems Modeling CS620, IIT BOMBAY An Introduction to Hybrid Systems Modeling Ashutosh Trivedi Department of Computer Science and Engineering, IIT Bombay CS620: New Trends in IT: Modeling and Verification of Cyber-Physical

More information

Probabilistic numerics for deep learning

Probabilistic numerics for deep learning Presenter: Shijia Wang Department of Engineering Science, University of Oxford rning (RLSS) Summer School, Montreal 2017 Outline 1 Introduction Probabilistic Numerics 2 Components Probabilistic modeling

More information

ProbReach: Probabilistic Bounded Reachability for Uncertain Hybrid Systems

ProbReach: Probabilistic Bounded Reachability for Uncertain Hybrid Systems ProbReach: Probabilistic Bounded Reachability for Uncertain Hybrid Systems Fedor Shmarov, Paolo Zuliani School of Computing Science, Newcastle University, UK 1 / 41 Introduction ProbReach tool for probabilistic

More information

Bayesian Machine Learning

Bayesian Machine Learning Bayesian Machine Learning Andrew Gordon Wilson ORIE 6741 Lecture 4 Occam s Razor, Model Construction, and Directed Graphical Models https://people.orie.cornell.edu/andrew/orie6741 Cornell University September

More information

On Prediction and Planning in Partially Observable Markov Decision Processes with Large Observation Sets

On Prediction and Planning in Partially Observable Markov Decision Processes with Large Observation Sets On Prediction and Planning in Partially Observable Markov Decision Processes with Large Observation Sets Pablo Samuel Castro pcastr@cs.mcgill.ca McGill University Joint work with: Doina Precup and Prakash

More information

Introduction to Bayesian inference

Introduction to Bayesian inference Introduction to Bayesian inference Thomas Alexander Brouwer University of Cambridge tab43@cam.ac.uk 17 November 2015 Probabilistic models Describe how data was generated using probability distributions

More information

Nonparametric Bayesian Methods (Gaussian Processes)

Nonparametric Bayesian Methods (Gaussian Processes) [70240413 Statistical Machine Learning, Spring, 2015] Nonparametric Bayesian Methods (Gaussian Processes) Jun Zhu dcszj@mail.tsinghua.edu.cn http://bigml.cs.tsinghua.edu.cn/~jun State Key Lab of Intelligent

More information

Approximate Universal Artificial Intelligence

Approximate Universal Artificial Intelligence Approximate Universal Artificial Intelligence A Monte-Carlo AIXI Approximation Joel Veness Kee Siong Ng Marcus Hutter Dave Silver UNSW / NICTA / ANU / UoA September 8, 2010 General Reinforcement Learning

More information

arxiv: v1 [stat.co] 23 Apr 2018

arxiv: v1 [stat.co] 23 Apr 2018 Bayesian Updating and Uncertainty Quantification using Sequential Tempered MCMC with the Rank-One Modified Metropolis Algorithm Thomas A. Catanach and James L. Beck arxiv:1804.08738v1 [stat.co] 23 Apr

More information

COMP90051 Statistical Machine Learning

COMP90051 Statistical Machine Learning COMP90051 Statistical Machine Learning Semester 2, 2017 Lecturer: Trevor Cohn 2. Statistical Schools Adapted from slides by Ben Rubinstein Statistical Schools of Thought Remainder of lecture is to provide

More information

Systems Verification. Alessandro Abate. Day 1 January 25, 2016

Systems Verification. Alessandro Abate. Day 1 January 25, 2016 Systems Verification Alessandro Abate Day 1 January 25, 2016 Outline Course setup Intro to formal verification Models - labelled transition systems Properties as specifications - modal logics Model checking

More information

Approximate Bayesian Computation

Approximate Bayesian Computation Approximate Bayesian Computation Michael Gutmann https://sites.google.com/site/michaelgutmann University of Helsinki and Aalto University 1st December 2015 Content Two parts: 1. The basics of approximate

More information

Bayesian parameter estimation in predictive engineering

Bayesian parameter estimation in predictive engineering Bayesian parameter estimation in predictive engineering Damon McDougall Institute for Computational Engineering and Sciences, UT Austin 14th August 2014 1/27 Motivation Understand physical phenomena Observations

More information

Safety Verification of Fault Tolerant Goal-based Control Programs with Estimation Uncertainty

Safety Verification of Fault Tolerant Goal-based Control Programs with Estimation Uncertainty 2008 American Control Conference Westin Seattle Hotel, Seattle, Washington, USA June 11-13, 2008 WeAI01.6 Safety Verification of Fault Tolerant Goal-based Control Programs with Estimation Uncertainty Julia

More information

Introduction: MLE, MAP, Bayesian reasoning (28/8/13)

Introduction: MLE, MAP, Bayesian reasoning (28/8/13) STA561: Probabilistic machine learning Introduction: MLE, MAP, Bayesian reasoning (28/8/13) Lecturer: Barbara Engelhardt Scribes: K. Ulrich, J. Subramanian, N. Raval, J. O Hollaren 1 Classifiers In this

More information