SlideShare a Scribd company logo
1 of 28
UPPAAL SMC:
  Statistical Model Checking
for Stochastic Hybrid Systems

                          Alexandre David
                                 Dehui Du
                             Kim G. Larsen
                                Axel Legay
                        Marius Mikucionis
                    Danny Bøgsted Poulsen
                           Sean Sedwards
                                Arne Skou
Outline
•   Overview of UPPAAL flavors
•   Modeling language
•   Model-checking technology
•   Properties and results
•   Some case studies




                                 2
Engineering Processes
                         UPPAAL/SMC
       Abstract Model                    Query
                         UPPAAL TIGA

       UPPAAL ECDAR


       Detailed Model    UPPAAL/SMC      Query


       UPPAAL TRON



Does       System           satisfy    property   ?
        Implementation
                                                  3
UPPAAL flavors
• “Classical” UPPAAL – model-checking:
  – M ⊨ φ ⇒ true/false, counterexample trace
• UPPAAL SMC – statistical model-checking:
  – M ⊨ Prt≤T φ ⇒ probability estimate, distribution

• UPPAAL TIGA – controller synthesis:
  – S(P ∥ C) ⊨ φ    ⇒ control strategy: state → action
• UPPAAL ECDAR – refinement checking:
  – C ≤ A ⇒ true/false, counterexample trace
• UPPAAL TRON – conformance testing:
  – T(IUT) ⊆ T(M) ⇒ pass/fail/inconc., diagnostics       4
UPPAAL-SMC – Architecture

Graphical Interface      Stochastic Engine          Server
      Editor          Hypothesis     Probability
                       Testing       Evaluation    Execution
                                                    Engine
    Simulator                    Data
                              processing            Compiler
      Verifier                  engine

                      Probability    Simulation     Virtual
  Plot composer       Comparison       Engine       Machine




                                                             5
Stochastic Semantics of UPPAAL TA
                Uniform Distribution




                                       6
Stochastic Semantics of UPPAAL TA
     Exponential Distribution




                                Composition =
  Input enabled                 Repeated races between components
broadcast channels
                                                                    7
Statistical Model-Checking
1. Generate random runs
  – According to a stochastic semantics
2. Monitor the runs       accept/reject
  – LTL/MITL formula, monitor
3. Use statistical methods to derive results
  – Guaranteed with specified confidence
  – Probabilities, distributions, hypothesis testing


                                                       8
Queries: Syntax
• Hypothesis testing
  Pr[<=100](<> expr)>=0.1
 x<=100 #<=50 [] expr <=0.5
• Evaluation
  Pr[<=100](<> expr)
• Comparison
  Pr[<=20](<> e1)>=Pr[<=20](<> e2)
• Expected value
  E[<=10;1000](min: expr)
 Explicit number of runs. Min or max.
• Simulations
  simulate 10 [<=100]{expr1,expr2}
                                        9
Queries: Syntax
• Hypothesis testing
  Pr[<=100](<> expr)>=0.1
 x<=100 #<=50 [] expr <=0.5
• Evaluation
  Pr[<=100](<> expr)
• Comparison
  Pr[<=20](<> e1)>=Pr[<=20](<> e2)
• Expected value
  E[<=10;1000](min: expr)
 Explicit number of runs. Min or max.
• Simulations
  simulate 10 [<=100]{expr1,expr2}
                                        10
Queries in UPPAAL SMC
Pr[ <= 200](<> Train(5).Cross)




                                 ++precision




                                               11
Queries: Syntax
• Hypothesis testing
  Pr[<=100](<> expr)>=0.1
 x<=100 #<=50 [] expr <=0.5
• Evaluation
  Pr[<=100](<> expr)
• Comparison
  Pr[<=20](<> e1) >= Pr[<=20](<> e2)
• Expected value
  E[<=10;1000](min: expr)
 Explicit number of runs. Min or max.
• Simulations
  simulate 10 [<=100]{expr1,expr2}
                                        12
Distribution for Comparisons




                               13
Queries: Syntax
• Hypothesis testing
  Pr[<=100](<> expr)>=0.1
 x<=100 #<=50 [] expr <=0.5
• Evaluation
  Pr[<=100](<> expr)
• Comparison
  Pr[<=20](<> e1)>=Pr[<=20](<> e2)
• Expected value
  E[<=10;1000](min: expr)
 Explicit number of runs. Min or max.
• Simulations
  simulate 10 [<=100]{expr1,expr2}
                                        14
Queries in UPPAAL SMC
simulate 1 [<=100]{ Gate.len }


simulate 10 [<=100]{ Gate.len }




Pr[<=100](<> t > 5 && Gate.len < 3)    [0.58,0.69]


Pr[<=100](<> t > 14 && Gate.len < 3)   [0.08,0.19]

                                                     15
Invariants:
SMC in UPPAAL                             x’==0 && y’==function() &&
                                          z’==2*x+cos(y)

• Stochastic hybrid automata
  – Clocks may have different slopes in different locations,
    integer/float or expressions involving clocks ODEs.
  – Branching edges with discrete probabilities (weights).
  – Beyond DTMC, beyond CTMC.
• All features of UPPAAL supported
  – User defined functions and types
  – Expressions in guards, invariants, clock-rates, delay-
    rates (rationals), and weights.
• New GUI for plot-composing and exporting.
                                                                17
SMC in UPPAAL
• Stochastic hybrid automata
  – Clocks may have different slopes in different locations,
    integer/float or expressions involving clocks ODEs.
  – Branching edges with discrete probabilities (weights).
  – Beyond DTMC, beyond CTMC.
• All features of UPPAAL supported
  – User defined functions and types
  – Expressions in guards, invariants, clock-rates, delay-
    rates (rationals), and weights.
• New GUI for plot-composing and exporting.
                                                             18
SMC in UPPAAL
• Stochastic hybrid automata
  – Clocks may have different slopes in different locations,
    integer/float or expressions involving clocks ODEs.
  – Branching edges with discrete probabilities (weights).
  – Beyond DTMC, beyond CTMC.
• All features of UPPAAL supported
  – User defined functions and types
  – Expressions in guards, invariants, clock-rates, delay-
    rates (rationals), and weights.
• New GUI for plot-composing and exporting.
                                                             19
SMC in UPPAAL
• Stochastic hybrid automata
  – Clocks may have different slopes in different locations,
    integer/float or expressions involving clocks ODEs.
  – Branching edges with discrete probabilities (weights).
  – Beyond DTMC, beyond CTMC.
• All features of UPPAAL supported
  – User defined functions and types
  – Expressions in guards, invariants, clock-rates, delay-
    rates (rationals), and weights.
• New GUI for plot-composing and exporting.
                                                             20
Estimating Energy Consumption




                                  Monitor


Pr[energy1<=1000](<> time==100)   energy1' ==
                                   (sum(i:id_t) power1[i])
                                  &&
                                  energy2' ==
                                   sum(i:id_t) power2[i]



                                                       21
A Biological Oscillator
• Circadian rhythm oscillator.
  N. Barkai and S. Leibler. Biological rhythms: Circadian clocks
  limited by noise. Nature, 403:267–268, 2000
• Two ways to model:
  1. Stochastic model that follow the reactions.
  2. Dynamical model solving the ODEs.
• Analysis:
  – Evaluate time between peaks.
  – The continuous model is the limit behavior of the
    stochastic model.
  – Use frequency analysis for comparison.
                                                              22
Stochastic Model




                   23
Continuous Model




                   24
Results of Simulations




                         25
Time Between Peaks
• MITL formula for peak:
  true U[<=1000] (A>1100 &   1100

  true U[<=5] A<=1000).
                                        1000
• Generate monitors.                5

• Run SMC.




                                               27
Energy Aware Buildings

• Rooms to be heated.
  – Only one heater available.
  – Matrix of coefficients for heat transfer between
    rooms.


  – Local and central controllers
  – Environment temperature weather model.
  – User profiles

                                                       28
Other Case Studies




  FIREWIRE                          BLUETOOTH




LMAC for Wireless Sensor Networks          Herschel-Planck Satellite
                                            schedulability analysis
                                                                       31
Conclusions
• Symbolic MC proves hard properties: true/false
• Statistical MC measures performance: Pr over time/cost
• SMC ingredients:
   –   Stochastic modeling extensions
   –   Compatible stochastic semantics
   –   Support for dynamical equations
   –   Statistical methods for confidence intervals
• Case-studies:
   –   Biology.
   –   Communication protocols.
   –   Temperature controllers.
   –   Disproving schedulability
  Extend the application domains of MC/SMC.

                                                           32

More Related Content

What's hot

USER INTERFACE DESIGN PPT
USER INTERFACE DESIGN PPTUSER INTERFACE DESIGN PPT
USER INTERFACE DESIGN PPTvicci4041
 
Unit-1 OOAD Introduction.pptx
Unit-1 OOAD Introduction.pptxUnit-1 OOAD Introduction.pptx
Unit-1 OOAD Introduction.pptxRavindranath67
 
8 Characteristics of good user requirements
8 Characteristics of good user requirements8 Characteristics of good user requirements
8 Characteristics of good user requirementsguest24d72f
 
Cybersecurity Capability Maturity Model Self-Evaluation Report Jan 27 2023.pdf
Cybersecurity Capability Maturity Model Self-Evaluation Report Jan 27 2023.pdfCybersecurity Capability Maturity Model Self-Evaluation Report Jan 27 2023.pdf
Cybersecurity Capability Maturity Model Self-Evaluation Report Jan 27 2023.pdfssuser7b150d
 
Legal, Ethical, and Professional Issues In Information Security
Legal, Ethical, and Professional Issues In Information SecurityLegal, Ethical, and Professional Issues In Information Security
Legal, Ethical, and Professional Issues In Information SecurityCarl Ceder
 
Model driven architecture
Model driven architectureModel driven architecture
Model driven architectureBiruk Mamo
 
IT Security management and risk assessment
IT Security management and risk assessmentIT Security management and risk assessment
IT Security management and risk assessmentCAS
 
Psychology Human Computer Interaction
Psychology Human Computer InteractionPsychology Human Computer Interaction
Psychology Human Computer InteractionSeta Wicaksana
 
Writing Effective Use Cases
 Writing Effective Use Cases Writing Effective Use Cases
Writing Effective Use CasesHarsh Jegadeesan
 
Shaun The Sheep
Shaun The SheepShaun The Sheep
Shaun The Sheephvtuananh
 
Icons and the Semiotics of Human Computer Interaction
Icons and the Semiotics of Human Computer InteractionIcons and the Semiotics of Human Computer Interaction
Icons and the Semiotics of Human Computer InteractionUTFPR
 
ICDL Presentation
ICDL PresentationICDL Presentation
ICDL PresentationCorrieBall
 
AI in Manufacturing & the Proposed EU Artificial Intelligence Act
AI in Manufacturing & the Proposed EU Artificial Intelligence ActAI in Manufacturing & the Proposed EU Artificial Intelligence Act
AI in Manufacturing & the Proposed EU Artificial Intelligence ActBarry O'Sullivan
 
Model based systems engineering
Model based systems engineeringModel based systems engineering
Model based systems engineeringCapgemini
 
Lecture-1: Introduction to system integration and architecture - course overv...
Lecture-1: Introduction to system integration and architecture - course overv...Lecture-1: Introduction to system integration and architecture - course overv...
Lecture-1: Introduction to system integration and architecture - course overv...Mubashir Ali
 
HCI Models of System
HCI Models of SystemHCI Models of System
HCI Models of SystemTania Sahito
 
Psychology of usable things
Psychology of usable thingsPsychology of usable things
Psychology of usable thingsjunaid54321
 
Chapter 11 laws and ethic information security
Chapter 11   laws and ethic information securityChapter 11   laws and ethic information security
Chapter 11 laws and ethic information securitySyaiful Ahdan
 

What's hot (20)

Presentation on uml
Presentation on umlPresentation on uml
Presentation on uml
 
USER INTERFACE DESIGN PPT
USER INTERFACE DESIGN PPTUSER INTERFACE DESIGN PPT
USER INTERFACE DESIGN PPT
 
Unit-1 OOAD Introduction.pptx
Unit-1 OOAD Introduction.pptxUnit-1 OOAD Introduction.pptx
Unit-1 OOAD Introduction.pptx
 
8 Characteristics of good user requirements
8 Characteristics of good user requirements8 Characteristics of good user requirements
8 Characteristics of good user requirements
 
Cybersecurity Capability Maturity Model Self-Evaluation Report Jan 27 2023.pdf
Cybersecurity Capability Maturity Model Self-Evaluation Report Jan 27 2023.pdfCybersecurity Capability Maturity Model Self-Evaluation Report Jan 27 2023.pdf
Cybersecurity Capability Maturity Model Self-Evaluation Report Jan 27 2023.pdf
 
Legal, Ethical, and Professional Issues In Information Security
Legal, Ethical, and Professional Issues In Information SecurityLegal, Ethical, and Professional Issues In Information Security
Legal, Ethical, and Professional Issues In Information Security
 
Model driven architecture
Model driven architectureModel driven architecture
Model driven architecture
 
IT Security management and risk assessment
IT Security management and risk assessmentIT Security management and risk assessment
IT Security management and risk assessment
 
Psychology Human Computer Interaction
Psychology Human Computer InteractionPsychology Human Computer Interaction
Psychology Human Computer Interaction
 
Writing Effective Use Cases
 Writing Effective Use Cases Writing Effective Use Cases
Writing Effective Use Cases
 
Shaun The Sheep
Shaun The SheepShaun The Sheep
Shaun The Sheep
 
Icons and the Semiotics of Human Computer Interaction
Icons and the Semiotics of Human Computer InteractionIcons and the Semiotics of Human Computer Interaction
Icons and the Semiotics of Human Computer Interaction
 
Hci
HciHci
Hci
 
ICDL Presentation
ICDL PresentationICDL Presentation
ICDL Presentation
 
AI in Manufacturing & the Proposed EU Artificial Intelligence Act
AI in Manufacturing & the Proposed EU Artificial Intelligence ActAI in Manufacturing & the Proposed EU Artificial Intelligence Act
AI in Manufacturing & the Proposed EU Artificial Intelligence Act
 
Model based systems engineering
Model based systems engineeringModel based systems engineering
Model based systems engineering
 
Lecture-1: Introduction to system integration and architecture - course overv...
Lecture-1: Introduction to system integration and architecture - course overv...Lecture-1: Introduction to system integration and architecture - course overv...
Lecture-1: Introduction to system integration and architecture - course overv...
 
HCI Models of System
HCI Models of SystemHCI Models of System
HCI Models of System
 
Psychology of usable things
Psychology of usable thingsPsychology of usable things
Psychology of usable things
 
Chapter 11 laws and ethic information security
Chapter 11   laws and ethic information securityChapter 11   laws and ethic information security
Chapter 11 laws and ethic information security
 

Similar to UPPAAL SMC: Statistical Model Checking for Stochastic Hybrid Systems af Marius Mikučionis, CISS/AAU

Testing of Cyber-Physical Systems: Diversity-driven Strategies
Testing of Cyber-Physical Systems: Diversity-driven StrategiesTesting of Cyber-Physical Systems: Diversity-driven Strategies
Testing of Cyber-Physical Systems: Diversity-driven StrategiesLionel Briand
 
Testing Dynamic Behavior in Executable Software Models - Making Cyber-physica...
Testing Dynamic Behavior in Executable Software Models - Making Cyber-physica...Testing Dynamic Behavior in Executable Software Models - Making Cyber-physica...
Testing Dynamic Behavior in Executable Software Models - Making Cyber-physica...Lionel Briand
 
Nafems15 systeme
Nafems15 systemeNafems15 systeme
Nafems15 systemeSDTools
 
Nafems15 Technical meeting on system modeling
Nafems15 Technical meeting on system modelingNafems15 Technical meeting on system modeling
Nafems15 Technical meeting on system modelingSDTools
 
Effective Test Suites for ! Mixed Discrete-Continuous Stateflow Controllers
Effective Test Suites for ! Mixed Discrete-Continuous Stateflow ControllersEffective Test Suites for ! Mixed Discrete-Continuous Stateflow Controllers
Effective Test Suites for ! Mixed Discrete-Continuous Stateflow ControllersLionel Briand
 
RT15 Berkeley | HYPERSIM - OPAL-RT
RT15 Berkeley | HYPERSIM - OPAL-RTRT15 Berkeley | HYPERSIM - OPAL-RT
RT15 Berkeley | HYPERSIM - OPAL-RTOPAL-RT TECHNOLOGIES
 
OPAL-RT HYPERSIM Features applied for Relay Testing
OPAL-RT HYPERSIM Features applied for Relay TestingOPAL-RT HYPERSIM Features applied for Relay Testing
OPAL-RT HYPERSIM Features applied for Relay TestingOPAL-RT TECHNOLOGIES
 
Optimica Compiler Toolkit - Overview
Optimica Compiler Toolkit - OverviewOptimica Compiler Toolkit - Overview
Optimica Compiler Toolkit - OverviewModelon
 
Power System Simulation: History, State of the Art, and Challenges
Power System Simulation: History, State of the Art, and ChallengesPower System Simulation: History, State of the Art, and Challenges
Power System Simulation: History, State of the Art, and ChallengesLuigi Vanfretti
 
Enabling Model Testing of Cyber Physical Systems
Enabling Model Testing of Cyber Physical SystemsEnabling Model Testing of Cyber Physical Systems
Enabling Model Testing of Cyber Physical SystemsLionel Briand
 
OPAL-RT RT13: Relay testing with HYPERSIM
OPAL-RT RT13: Relay testing with HYPERSIMOPAL-RT RT13: Relay testing with HYPERSIM
OPAL-RT RT13: Relay testing with HYPERSIMOPAL-RT TECHNOLOGIES
 
ch1 introduction to mechatronics.pdf
ch1 introduction to mechatronics.pdfch1 introduction to mechatronics.pdf
ch1 introduction to mechatronics.pdfdjimatrice
 
75. Deputy Engineer Electrical.pdf
75.  Deputy Engineer Electrical.pdf75.  Deputy Engineer Electrical.pdf
75. Deputy Engineer Electrical.pdfhoneymariyambaby
 
Real-time simulator requirement for micro-grid simulation vs large power system
Real-time simulator requirement for micro-grid simulation vs large power systemReal-time simulator requirement for micro-grid simulation vs large power system
Real-time simulator requirement for micro-grid simulation vs large power systemOPAL-RT TECHNOLOGIES
 
REAL-TIME SIMULATION TECHNOLOGIES FOR POWER SYSTEMS DESIGN, TESTING, AND ANAL...
REAL-TIME SIMULATION TECHNOLOGIES FOR POWER SYSTEMS DESIGN, TESTING, AND ANAL...REAL-TIME SIMULATION TECHNOLOGIES FOR POWER SYSTEMS DESIGN, TESTING, AND ANAL...
REAL-TIME SIMULATION TECHNOLOGIES FOR POWER SYSTEMS DESIGN, TESTING, AND ANAL...Jithin T
 

Similar to UPPAAL SMC: Statistical Model Checking for Stochastic Hybrid Systems af Marius Mikučionis, CISS/AAU (20)

Testing of Cyber-Physical Systems: Diversity-driven Strategies
Testing of Cyber-Physical Systems: Diversity-driven StrategiesTesting of Cyber-Physical Systems: Diversity-driven Strategies
Testing of Cyber-Physical Systems: Diversity-driven Strategies
 
Testing Dynamic Behavior in Executable Software Models - Making Cyber-physica...
Testing Dynamic Behavior in Executable Software Models - Making Cyber-physica...Testing Dynamic Behavior in Executable Software Models - Making Cyber-physica...
Testing Dynamic Behavior in Executable Software Models - Making Cyber-physica...
 
Nafems15 systeme
Nafems15 systemeNafems15 systeme
Nafems15 systeme
 
Nafems15 Technical meeting on system modeling
Nafems15 Technical meeting on system modelingNafems15 Technical meeting on system modeling
Nafems15 Technical meeting on system modeling
 
SBU072811_short.ppt
SBU072811_short.pptSBU072811_short.ppt
SBU072811_short.ppt
 
Effective Test Suites for ! Mixed Discrete-Continuous Stateflow Controllers
Effective Test Suites for ! Mixed Discrete-Continuous Stateflow ControllersEffective Test Suites for ! Mixed Discrete-Continuous Stateflow Controllers
Effective Test Suites for ! Mixed Discrete-Continuous Stateflow Controllers
 
RT15 Berkeley | HYPERSIM - OPAL-RT
RT15 Berkeley | HYPERSIM - OPAL-RTRT15 Berkeley | HYPERSIM - OPAL-RT
RT15 Berkeley | HYPERSIM - OPAL-RT
 
OPAL-RT HYPERSIM Features applied for Relay Testing
OPAL-RT HYPERSIM Features applied for Relay TestingOPAL-RT HYPERSIM Features applied for Relay Testing
OPAL-RT HYPERSIM Features applied for Relay Testing
 
Optimica Compiler Toolkit - Overview
Optimica Compiler Toolkit - OverviewOptimica Compiler Toolkit - Overview
Optimica Compiler Toolkit - Overview
 
Power System Simulation: History, State of the Art, and Challenges
Power System Simulation: History, State of the Art, and ChallengesPower System Simulation: History, State of the Art, and Challenges
Power System Simulation: History, State of the Art, and Challenges
 
Enabling Model Testing of Cyber Physical Systems
Enabling Model Testing of Cyber Physical SystemsEnabling Model Testing of Cyber Physical Systems
Enabling Model Testing of Cyber Physical Systems
 
OPAL-RT RT13: Relay testing with HYPERSIM
OPAL-RT RT13: Relay testing with HYPERSIMOPAL-RT RT13: Relay testing with HYPERSIM
OPAL-RT RT13: Relay testing with HYPERSIM
 
OPAL-RT Webinar - HYPERSIM
OPAL-RT Webinar - HYPERSIMOPAL-RT Webinar - HYPERSIM
OPAL-RT Webinar - HYPERSIM
 
ADMET.pptx
ADMET.pptxADMET.pptx
ADMET.pptx
 
Energy saving policies final
Energy saving policies finalEnergy saving policies final
Energy saving policies final
 
ch1 introduction to mechatronics.pdf
ch1 introduction to mechatronics.pdfch1 introduction to mechatronics.pdf
ch1 introduction to mechatronics.pdf
 
75. Deputy Engineer Electrical.pdf
75.  Deputy Engineer Electrical.pdf75.  Deputy Engineer Electrical.pdf
75. Deputy Engineer Electrical.pdf
 
Dldaiii
DldaiiiDldaiii
Dldaiii
 
Real-time simulator requirement for micro-grid simulation vs large power system
Real-time simulator requirement for micro-grid simulation vs large power systemReal-time simulator requirement for micro-grid simulation vs large power system
Real-time simulator requirement for micro-grid simulation vs large power system
 
REAL-TIME SIMULATION TECHNOLOGIES FOR POWER SYSTEMS DESIGN, TESTING, AND ANAL...
REAL-TIME SIMULATION TECHNOLOGIES FOR POWER SYSTEMS DESIGN, TESTING, AND ANAL...REAL-TIME SIMULATION TECHNOLOGIES FOR POWER SYSTEMS DESIGN, TESTING, AND ANAL...
REAL-TIME SIMULATION TECHNOLOGIES FOR POWER SYSTEMS DESIGN, TESTING, AND ANAL...
 

More from InfinIT - Innovationsnetværket for it

More from InfinIT - Innovationsnetværket for it (20)

Erfaringer med-c kurt-noermark
Erfaringer med-c kurt-noermarkErfaringer med-c kurt-noermark
Erfaringer med-c kurt-noermark
 
Object orientering, test driven development og c
Object orientering, test driven development og cObject orientering, test driven development og c
Object orientering, test driven development og c
 
Embedded softwaredevelopment hcs
Embedded softwaredevelopment hcsEmbedded softwaredevelopment hcs
Embedded softwaredevelopment hcs
 
C og c++-jens lund jensen
C og c++-jens lund jensenC og c++-jens lund jensen
C og c++-jens lund jensen
 
201811xx foredrag c_cpp
201811xx foredrag c_cpp201811xx foredrag c_cpp
201811xx foredrag c_cpp
 
C som-programmeringssprog-bt
C som-programmeringssprog-btC som-programmeringssprog-bt
C som-programmeringssprog-bt
 
Infinit seminar 060918
Infinit seminar 060918Infinit seminar 060918
Infinit seminar 060918
 
DCR solutions
DCR solutionsDCR solutions
DCR solutions
 
Not your grandfathers BPM
Not your grandfathers BPMNot your grandfathers BPM
Not your grandfathers BPM
 
Kmd workzone - an evolutionary approach to revolution
Kmd workzone - an evolutionary approach to revolutionKmd workzone - an evolutionary approach to revolution
Kmd workzone - an evolutionary approach to revolution
 
EcoKnow - oplæg
EcoKnow - oplægEcoKnow - oplæg
EcoKnow - oplæg
 
Martin Wickins Chatbots i fronten
Martin Wickins Chatbots i frontenMartin Wickins Chatbots i fronten
Martin Wickins Chatbots i fronten
 
Marie Fenger ai kundeservice
Marie Fenger ai kundeserviceMarie Fenger ai kundeservice
Marie Fenger ai kundeservice
 
Mads Kaysen SupWiz
Mads Kaysen SupWizMads Kaysen SupWiz
Mads Kaysen SupWiz
 
Leif Howalt NNIT Service Support Center
Leif Howalt NNIT Service Support CenterLeif Howalt NNIT Service Support Center
Leif Howalt NNIT Service Support Center
 
Jan Neerbek NLP og Chatbots
Jan Neerbek NLP og ChatbotsJan Neerbek NLP og Chatbots
Jan Neerbek NLP og Chatbots
 
Anders Soegaard NLP for Customer Support
Anders Soegaard NLP for Customer SupportAnders Soegaard NLP for Customer Support
Anders Soegaard NLP for Customer Support
 
Stephen Alstrup infinit august 2018
Stephen Alstrup infinit august 2018Stephen Alstrup infinit august 2018
Stephen Alstrup infinit august 2018
 
Innovation og værdiskabelse i it-projekter
Innovation og værdiskabelse i it-projekterInnovation og værdiskabelse i it-projekter
Innovation og værdiskabelse i it-projekter
 
Rokoko infin it presentation
Rokoko infin it presentation Rokoko infin it presentation
Rokoko infin it presentation
 

UPPAAL SMC: Statistical Model Checking for Stochastic Hybrid Systems af Marius Mikučionis, CISS/AAU

  • 1. UPPAAL SMC: Statistical Model Checking for Stochastic Hybrid Systems Alexandre David Dehui Du Kim G. Larsen Axel Legay Marius Mikucionis Danny Bøgsted Poulsen Sean Sedwards Arne Skou
  • 2. Outline • Overview of UPPAAL flavors • Modeling language • Model-checking technology • Properties and results • Some case studies 2
  • 3. Engineering Processes UPPAAL/SMC Abstract Model Query UPPAAL TIGA UPPAAL ECDAR Detailed Model UPPAAL/SMC Query UPPAAL TRON Does System satisfy property ? Implementation 3
  • 4. UPPAAL flavors • “Classical” UPPAAL – model-checking: – M ⊨ φ ⇒ true/false, counterexample trace • UPPAAL SMC – statistical model-checking: – M ⊨ Prt≤T φ ⇒ probability estimate, distribution • UPPAAL TIGA – controller synthesis: – S(P ∥ C) ⊨ φ ⇒ control strategy: state → action • UPPAAL ECDAR – refinement checking: – C ≤ A ⇒ true/false, counterexample trace • UPPAAL TRON – conformance testing: – T(IUT) ⊆ T(M) ⇒ pass/fail/inconc., diagnostics 4
  • 5. UPPAAL-SMC – Architecture Graphical Interface Stochastic Engine Server Editor Hypothesis Probability Testing Evaluation Execution Engine Simulator Data processing Compiler Verifier engine Probability Simulation Virtual Plot composer Comparison Engine Machine 5
  • 6. Stochastic Semantics of UPPAAL TA Uniform Distribution 6
  • 7. Stochastic Semantics of UPPAAL TA Exponential Distribution Composition = Input enabled Repeated races between components broadcast channels 7
  • 8. Statistical Model-Checking 1. Generate random runs – According to a stochastic semantics 2. Monitor the runs accept/reject – LTL/MITL formula, monitor 3. Use statistical methods to derive results – Guaranteed with specified confidence – Probabilities, distributions, hypothesis testing 8
  • 9. Queries: Syntax • Hypothesis testing Pr[<=100](<> expr)>=0.1 x<=100 #<=50 [] expr <=0.5 • Evaluation Pr[<=100](<> expr) • Comparison Pr[<=20](<> e1)>=Pr[<=20](<> e2) • Expected value E[<=10;1000](min: expr) Explicit number of runs. Min or max. • Simulations simulate 10 [<=100]{expr1,expr2} 9
  • 10. Queries: Syntax • Hypothesis testing Pr[<=100](<> expr)>=0.1 x<=100 #<=50 [] expr <=0.5 • Evaluation Pr[<=100](<> expr) • Comparison Pr[<=20](<> e1)>=Pr[<=20](<> e2) • Expected value E[<=10;1000](min: expr) Explicit number of runs. Min or max. • Simulations simulate 10 [<=100]{expr1,expr2} 10
  • 11. Queries in UPPAAL SMC Pr[ <= 200](<> Train(5).Cross) ++precision 11
  • 12. Queries: Syntax • Hypothesis testing Pr[<=100](<> expr)>=0.1 x<=100 #<=50 [] expr <=0.5 • Evaluation Pr[<=100](<> expr) • Comparison Pr[<=20](<> e1) >= Pr[<=20](<> e2) • Expected value E[<=10;1000](min: expr) Explicit number of runs. Min or max. • Simulations simulate 10 [<=100]{expr1,expr2} 12
  • 14. Queries: Syntax • Hypothesis testing Pr[<=100](<> expr)>=0.1 x<=100 #<=50 [] expr <=0.5 • Evaluation Pr[<=100](<> expr) • Comparison Pr[<=20](<> e1)>=Pr[<=20](<> e2) • Expected value E[<=10;1000](min: expr) Explicit number of runs. Min or max. • Simulations simulate 10 [<=100]{expr1,expr2} 14
  • 15. Queries in UPPAAL SMC simulate 1 [<=100]{ Gate.len } simulate 10 [<=100]{ Gate.len } Pr[<=100](<> t > 5 && Gate.len < 3) [0.58,0.69] Pr[<=100](<> t > 14 && Gate.len < 3) [0.08,0.19] 15
  • 16. Invariants: SMC in UPPAAL x’==0 && y’==function() && z’==2*x+cos(y) • Stochastic hybrid automata – Clocks may have different slopes in different locations, integer/float or expressions involving clocks ODEs. – Branching edges with discrete probabilities (weights). – Beyond DTMC, beyond CTMC. • All features of UPPAAL supported – User defined functions and types – Expressions in guards, invariants, clock-rates, delay- rates (rationals), and weights. • New GUI for plot-composing and exporting. 17
  • 17. SMC in UPPAAL • Stochastic hybrid automata – Clocks may have different slopes in different locations, integer/float or expressions involving clocks ODEs. – Branching edges with discrete probabilities (weights). – Beyond DTMC, beyond CTMC. • All features of UPPAAL supported – User defined functions and types – Expressions in guards, invariants, clock-rates, delay- rates (rationals), and weights. • New GUI for plot-composing and exporting. 18
  • 18. SMC in UPPAAL • Stochastic hybrid automata – Clocks may have different slopes in different locations, integer/float or expressions involving clocks ODEs. – Branching edges with discrete probabilities (weights). – Beyond DTMC, beyond CTMC. • All features of UPPAAL supported – User defined functions and types – Expressions in guards, invariants, clock-rates, delay- rates (rationals), and weights. • New GUI for plot-composing and exporting. 19
  • 19. SMC in UPPAAL • Stochastic hybrid automata – Clocks may have different slopes in different locations, integer/float or expressions involving clocks ODEs. – Branching edges with discrete probabilities (weights). – Beyond DTMC, beyond CTMC. • All features of UPPAAL supported – User defined functions and types – Expressions in guards, invariants, clock-rates, delay- rates (rationals), and weights. • New GUI for plot-composing and exporting. 20
  • 20. Estimating Energy Consumption Monitor Pr[energy1<=1000](<> time==100) energy1' == (sum(i:id_t) power1[i]) && energy2' == sum(i:id_t) power2[i] 21
  • 21. A Biological Oscillator • Circadian rhythm oscillator. N. Barkai and S. Leibler. Biological rhythms: Circadian clocks limited by noise. Nature, 403:267–268, 2000 • Two ways to model: 1. Stochastic model that follow the reactions. 2. Dynamical model solving the ODEs. • Analysis: – Evaluate time between peaks. – The continuous model is the limit behavior of the stochastic model. – Use frequency analysis for comparison. 22
  • 25. Time Between Peaks • MITL formula for peak: true U[<=1000] (A>1100 & 1100 true U[<=5] A<=1000). 1000 • Generate monitors. 5 • Run SMC. 27
  • 26. Energy Aware Buildings • Rooms to be heated. – Only one heater available. – Matrix of coefficients for heat transfer between rooms. – Local and central controllers – Environment temperature weather model. – User profiles 28
  • 27. Other Case Studies FIREWIRE BLUETOOTH LMAC for Wireless Sensor Networks Herschel-Planck Satellite schedulability analysis 31
  • 28. Conclusions • Symbolic MC proves hard properties: true/false • Statistical MC measures performance: Pr over time/cost • SMC ingredients: – Stochastic modeling extensions – Compatible stochastic semantics – Support for dynamical equations – Statistical methods for confidence intervals • Case-studies: – Biology. – Communication protocols. – Temperature controllers. – Disproving schedulability Extend the application domains of MC/SMC. 32

Editor's Notes

  1. Thickness reflects average spectra.