Bayesian statistical model checking with application to Stateflow/Simulink verification

We address the problem of model checking stochastic systems, i.e.~checking whether a stochastic system satisfies a certain temporal property with a probability greater (or smaller) than a fixed threshold. In particular, we present a novel Statistical Model Checking (SMC) approach based on Bayesian statistics. We show that our approach is feasible for hybrid systems with stochastic transitions, a generalization of Simulink/Stateflow models. Standard approaches to stochastic (discrete) systems require numerical solutions for large optimization problems and quickly become infeasible with larger state spaces. Generalizations of these techniques to hybrid systems with stochastic effects are even more challenging. The SMC approach was pioneered by Younes and Simmons in the discrete and non-Bayesian case. It solves the verification problem by combining randomized sampling of system traces (which is very efficient for Simulink/Stateflow) with hypothesis testing or estimation. We believe SMC is essential for scaling up to large Stateflow/Simulink models. While the answer to the verification problem is not guaranteed to be correct, we prove that Bayesian SMC can make the probability of giving a wrong answer arbitrarily small. The advantage is that answers can usually be obtained much faster than with standard, exhaustive model checking techniques. We apply our Bayesian SMC approach to a representative example of stochastic discrete-time hybrid system models in Stateflow/Simulink: a fuel control system featuring hybrid behavior and fault tolerance. We show that our technique enables faster verification than state-of-the-art statistical techniques, while retaining the same error bounds. We emphasize that Bayesian SMC is by no means restricted to Stateflow/Simulink models: we have in fact successfully applied it to very large stochastic models from Systems Biology.

[1]  Håkan L. S. Younes,et al.  Probabilistic Verification of Discrete Event Systems Using Acceptance Sampling , 2002, CAV.

[2]  Håkan L. S. Younes,et al.  Numerical vs. statistical probabilistic model checking , 2006, International Journal on Software Tools for Technology Transfer.

[3]  Andrew Hinton,et al.  PRISM: A Tool for Automatic Verification of Probabilistic Systems , 2006, TACAS.

[4]  Lijun Zhang,et al.  INFAMY: An Infinite-State Markov Model Checker , 2009, CAV.

[5]  L. McCandless Bayesian methods for data analysis (3rd edn). Bradley P. Carlin and Thomas A. Louis, Chapman & Hall/CRC, Boca Raton, 2008. No. of pages: 552. Price: $69.95. ISBN 9781584886976 , 2009 .

[6]  B. K. Ghosh,et al.  Handbook of sequential analysis , 1991 .

[7]  Philip S. Yu,et al.  Optimal Design and Sequential Analysis of VLSI Testing Strategy , 1988, IEEE Trans. Computers.

[8]  Joël Ouaknine,et al.  Some Recent Results in Metric Temporal Logic , 2008, FORMATS.

[9]  H. Robbins,et al.  ON THE ASYMPTOTIC THEORY OF FIXED-WIDTH SEQUENTIAL CONFIDENCE INTERVALS FOR THE MEAN. , 1965 .

[10]  Edmund M. Clarke,et al.  Analog circuit verification by statistical model checking , 2011, 16th Asia and South Pacific Design Automation Conference (ASP-DAC 2011).

[11]  José Meseguer,et al.  Specification and Analysis of Distributed Object-Based Stochastic Hybrid Systems , 2006, HSCC.

[12]  J. K. Hunter,et al.  Measure Theory , 2007 .

[13]  Ashish Tiwari,et al.  Abstractions for hybrid systems , 2008, Formal Methods Syst. Des..

[14]  Mahesh Viswanathan,et al.  Statistical Model Checking of Black-Box Probabilistic Systems , 2004, CAV.

[15]  Frank Ciesinski,et al.  On Probabilistic Computation Tree Logic , 2004, Validation of Stochastic Systems.

[16]  David J. Musliner,et al.  Probabilistic Plan Verification through Acceptance Sampling , 2002 .

[17]  M. K. Ghosh,et al.  Ergodic Control of Switching Diffusions , 1997 .

[18]  R. Khan,et al.  Sequential Tests of Statistical Hypotheses. , 1972 .

[19]  Marta Z. Kwiatkowska,et al.  PRISM 4.0: Verification of Probabilistic Real-Time Systems , 2011, CAV.

[20]  Fred Kröger,et al.  Temporal Logic of Programs , 1987, EATCS Monographs on Theoretical Computer Science.

[21]  Edmund M. Clarke,et al.  Analysis and verification of the HMGB1 signaling pathway , 2010, BMC Bioinformatics.

[22]  John Lygeros,et al.  Stochastic hybrid systems: Theory and safety critical applications , 2006 .

[23]  Christel Baier,et al.  Model-Checking Algorithms for Continuous-Time Markov Chains , 2002, IEEE Trans. Software Eng..

[24]  Leon M. Hall,et al.  Special Functions , 1998 .

[25]  Axel Legay,et al.  A Bayesian Approach to Model Checking Biological Systems , 2009, CMSB.

[26]  Mihalis Yannakakis,et al.  The complexity of probabilistic verification , 1995, JACM.

[27]  Aarnout Brombacher,et al.  Probability... , 2009, Qual. Reliab. Eng. Int..

[28]  Christian P. Robert,et al.  The Bayesian choice , 1994 .

[29]  R. Bechhofer A Note on the Limiting Relative Efficiency of the Wald Sequential Probability Ratio Test , 1960 .

[30]  Dejan Nickovic,et al.  Monitoring Temporal Properties of Continuous Signals , 2004, FORMATS/FTRTFT.

[31]  Bengt Jonsson,et al.  A logic for reasoning about time and reliability , 1990, Formal Aspects of Computing.

[32]  Christel Baier,et al.  Symbolic Model Checking for Probabilistic Processes , 1997, ICALP.

[33]  D. Gillespie A General Method for Numerically Simulating the Stochastic Time Evolution of Coupled Chemical Reactions , 1976 .

[34]  Bernd Finkbeiner,et al.  Checking Finite Traces using Alternating Automata , 2001, Electron. Notes Theor. Comput. Sci..

[35]  Rajeev Alur,et al.  Model-Checking for Probabilistic Real Time Systems , 1991 .

[36]  André Platzer,et al.  Stochastic Differential Dynamic Logic for Stochastic Hybrid Programs , 2011, CADE.

[37]  Rajeev Alur,et al.  Model-Checking for Probabilistic Real-Time Systems (Extended Abstract) , 1991, ICALP.

[38]  Mahesh Viswanathan,et al.  On Statistical Model Checking of Stochastic Systems , 2005, CAV.

[39]  M. Degroot Optimal Statistical Decisions , 1970 .

[40]  L. M. M.-T. Theory of Probability , 1929, Nature.

[41]  Christopher J. Langmead,et al.  Generalized Queries and Bayesian Statistical Model Checking in Dynamic Bayesian Networks: Application to Personalized Medicine , 2009 .

[42]  John K Kruschke,et al.  Bayesian data analysis. , 2010, Wiley interdisciplinary reviews. Cognitive science.

[43]  Radu Grosu,et al.  Monte Carlo Model Checking , 2005, TACAS.

[44]  Michael Hucka,et al.  A Correction to the Review Titled "Rules for Modeling Signal-Transduction Systems" by W. S. Hlavacek et al. , 2006, Science's STKE.

[45]  A. Tiwari Formal Semantics and Analysis Methods for Simulink Stateflow Models , 2001 .

[46]  W. Hoeffding Probability Inequalities for sums of Bounded Random Variables , 1963 .

[47]  Reuven Y. Rubinstein,et al.  Simulation and the Monte Carlo method , 1981, Wiley series in probability and mathematical statistics.

[48]  Thomas Hérault,et al.  Approximate Probabilistic Model Checking , 2004, VMCAI.

[49]  Mahesh Viswanathan,et al.  A counterexample-guided abstraction-refinement framework for markov decision processes , 2008, TOCL.

[50]  Marta Z. Kwiatkowska,et al.  Symmetry Reduction for Probabilistic Model Checking , 2006, CAV.

[51]  Ron Koymans,et al.  Specifying real-time properties with metric temporal logic , 1990, Real-Time Systems.

[52]  Håkan L. S. Younes,et al.  Statistical probabilistic model checking with a focus on time-bounded properties , 2006, Inf. Comput..

[53]  John Lygeros,et al.  Toward a General Theory of Stochastic Hybrid Systems , 2006 .

[54]  Edmund M. Clarke,et al.  Statistical Model Checking for Markov Decision Processes , 2012, 2012 Ninth International Conference on Quantitative Evaluation of Systems.

[55]  Robert E Weiss,et al.  Bayesian methods for data analysis. , 2010, American journal of ophthalmology.