Year: 2020
Type: dissertation
Abstract: This thesis aims to improve the practical effectivity of runtime verification, monitoring with logics. Our main application is the safety monitoring of cyber-physical systems (CPSs), e. g., cars and robots. Our technical gadget is the symbolic analysis with convex polyhedra. The high-level contribution of this thesis is to show that the polyhedra-based symbolic analysis plays an essential role in various advanced runtime verification algorithms. Monitoring is, in general, an activity to observe system behavior. In the development and maintenance of systems, it is essential to monitor the system behavior. For example, in development, engineers have to monitor the system behavior to identify the necessary modification to the system under development. In maintenance, for example, engineers have to monitor the running system so that they can replace the system's worn-out components as soon as possible. Runtime verification (or specification-based monitoring) is an automated monitoring technique using logic. Given a formal specification of an unsafe behavior expressed by some logical formalism, runtime verification observes a system execution and evaluates if the observation satisfies the specification. Although quite a lot of research and engineering efforts have been devoted to runtime verification of CPSs, there are remaining challenges. We identify the following important but often missing features of runtime verification. Generic algorithms that are applicable to a wide class of runtime verification problems rather than one problem setting Flexible runtime verification algorithm that does not require complete knowledge of the specifications or behaviors Informative results such as quantitative satisfaction rather than Boolean satisfaction In this thesis, we present enhanced runtime verification algorithms focusing on the three features above. In our improvements, the use of polyhedra for symbolic analysis plays an essential role. In the symbolic analysis, we utilize discrete abstraction of the continuous value domains represented by polyhedra: each of which stands for infinitely many concrete values; and thus, we can analyze infinitely many values. This is in contrast to the analysis of each value, where only finitely many values can be analyzed in finite time. Such a polyhedra-based analysis is useful, for example, in the runtime verification with an ambiguous specification. Consider the following specification: "whenever the gear of a car becomes low, the gear should remain low for a while," where the definition of "for a while" is unclear. Moreover, the threshold defining "for a while" may depend on the context. When the specification contains such an unspecified threshold, we have to monitor the log considering all the possible thresholds. Since there are infinitely many possibilities, we cannot try each threshold in a one-by-one manner, and we need a polyhedra-based symbolic analysis. This thesis's high-level contribution is to show the usefulness of the polyhedra-based analysis in runtime verification. To show the usefulness, we conducted three concrete improvements. The following summarizes the usages of polyhedra and the enhanced features in this thesis. Firstly, in Chapters 3 and 4, we study runtime verification with ambiguous specifications containing unknown thresholds in the constraints. Such a runtime verification algorithm does not require complete knowledge of the monitored specification and is flexible. We use polyhedra for symbolic analysis of infinitely many possible thresholds. In Chapter 3, we introduce and solve the parametric timed pattern matching problem, where we can use a specification with timing parameters to leave some thresholds in the timing constraints unspecified. For example, in the example above, we can represent the timing constraint "for a while" by "for p seconds" using a timing parameter p. In Chapter 4, we generalize the parametric timed pattern matching problem to allow the parameters also in data values. For example, consider the following specification: "whenever the temperature becomes high, the air conditioner must be turned on within 5 seconds," where the high-temperature threshold is unspecified. In this example, we can represent the condition on high-temperature by "more than T degree," where T is a data parameter representing the high-temperature threshold. Moreover, our algorithm is generic because it allows any data with a suitable data structure for symbolic analysis such as polyhedra for rationals and an ad hoc data structure for strings. Secondly, in Chapter 5, we study quantitative timed pattern matching that is a mathematical formulation of quantitative runtime verification of real-valued signals. Quantitative timed pattern matching returns the degree of unsafety and is more informative than returning Boolean results. We propose an online algorithm for quantitative timed pattern matching that can monitor a running system. Our notion of unsafe degree and our proposed algorithm are based on semiring valued weighted automata. Thanks to the algebraic genericity of semirings, our algorithm works for various quantitative semantics capturing different safety criteria such as the worst deviation from the specification and the accumulated deviation from the threshold over time. We use polyhedra to obtain discrete abstraction of the continuous possibility of switching in a temporal specification. Consider the specification "in the beginning, the acceleration of the car is high, and later, the velocity becomes high." When monitoring such a temporal specification, we have to consider all the possible timing of the switching from the "beginning" to the "later." Since there are continuously many possibilities, we utilize polyhedra-based symbolic analysis to consider all such switching. Thirdly, in Chapter 6, we study runtime verification, where we only have intermittent samples of the signal values. We introduce and solve the model-bounded monitoring problem, where we interpolate the signal values between the samples considering the bounding model. Thanks to the bounding model, model-bounded monitoring is precise even if we reduce the sampling frequency, and thus it is flexible. More precisely, if the bounding model overapproximates the actual system behavior, model-bounded monitoring is guaranteed to detect every unsafe behavior independent of the sampling frequency. Although we may have false alarms, we have fewer false alarms for a more precise bounding model. We use polyhedra to consider all the possible interpolation.
Author: WAGA, Masaki
Language: English
Subfield: Computational Theory and Mathematics
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7144653111
