








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









’ QSS Group, NASA Ames Research Center, Moffett Field, CA 94035, U.S.A. tlindseyQptolemy.arc.nasa.gov
pecheur@ptolemy. arc.nasa. gov
Abstract. AI software is often used as a means for providing greater auton- omy to automated systems, capable of coping with harsh and unpredictable environments. Due in part to the enormous space of possible situations that they aim to addrs, autonomous systems pose a serious challenge to tradi- tional test-based verification approaches. Efficient verification approaches need to be perfected before these systems can reliably control critical applications. This publication describes Livingstone PathFinder (LPF), a verification tool
rithms to an instrumented testbed, consisting of the controller embedded in a simulated operating environment. Although LPF has focused on NASA’s Liv- ingstone model-based diagnosis system applications, the architecture is mod- ular and adaptable to other systems. This article presents different facets of LPF and experimental results from applying the software to a Livingstone model of the main propulsion feed subsystem for a prototype space vehicle.
1 Introduction
Complex decision-making capabilities are increasingly embedded into controllers. Robots substitute for humans in hazardous environments such as distant planets, deep waters or battle fields. This trend is perhaps best exemplified by NASA’s need for autonomous spacecrafts, rovers, airplanes and submarines, capable of executing
significant cost saver, even in more accessible regions, by reducing the need for ex-
soning techniques to a high-level model of the system being diagnosed. This is the case for the Livingstone diagnosis system on which the work presented here is based. The idea behind model-based solutions is that the system, in any situation, will be able to infer appropriate actions from the model. While autonomous systems offer promises of improved capabilities at reduced op- erational costs, a serious challenge to traditional test-based verification approaches
dress. Several factors make testing advanced controllers particularly difficult. First, the range of situations to be tested is significantly larger because the controller itself
is more complex and designed to operate over a broad range of unpredictable situ- ations during a prolonged time span. The program implicitly incorporates response scenarios to any combination of events that might occur, instead of relying on human experts to handle off-nominal casks. Second, autonomous systems close the control loops and feature concurrent interacting components. Thus, it becomes more difficult to plug in test harnesses and write test runs that drive the system through a desired behavior. Third, concurrency may introduce hard-bdetect, non-deterministic race conditions.
ing autonomous controllers. The proposed approach applies state space exploration algorithms to an instrumented testbed, consisting of the actual control program be- ing analyzed embedded in a simulated operating environment. This framework forms the foundation of Livingstone PathFinder (LPF), a verification tool for autonomous
script defining the class of commands and faults to be analyzed. The model is used to perform model-based diagnosis and will be used to simulate the system as well.
an error is detected, LPF reports the sequence of events that led to the current state. To avoid confusion in reading what follows, it is important to clearly distinguish two similar-sounding but very different notions, that we refer to as faults and errors:
This article discusses Livingstone PathFinder on three different levels:
A preliminary account of this work was presented in [SI. The remainder of the
to a well-defined range of possible scenarios in order to constrain the state space within tractable bounds. The principle behind simulation-based verification can be traced back to Gode-
explicit stop and choice points, to allow its controlled execution over a range of traces. Verisoft makes no attempt at capturing the state of the verified program; in-
state-Less model checking. The original contribution presented in this paper pertains
experimental results on a real-world application. The same principle can be found in Visser and Havelund’s Java PathFinder 2 [lo] with a twist: a complete Java virtual machine, optimized for verification, has been built rather than merely instrumenting the Java code to be analyzed. The models used in model-based autonomy are typically abstract and concise enough to be amenable to formal analysis. Indeed, the Livingstone-to-SMV transla- tor [9] is another verification tool for Livingstone applications, focusing exclusively on the Livingstone model but allowing true exhaustive analysis through the use of symbolic model checking. Nevertheless, a good model is a necessary but insufficient condition for a suitable model-based controller. Additional factors may compromise proper operation, such as problems in the engine itself or incomplete diagnosis heuris-
designed to scrutinize the behavior of the actual program.
3 Livingstone
system [12]. Generally speaking, diagnosis involves observing the input (commands, actuators) and output (observations, sensors) of a physical system t o estimate its internal state, and in particular detect and identify faulty conditions that may have
Merent components of the physical plant and their interactions, both under nominal
of an efficient inference engine based on propositional logic to perform the diagnosis.
resenting the state of the various components of the physical ~ y s t e m. ~Each attribute
value s ( x ) E D,. The command and observable attributes 0 c X capture the visible interface of the system; the mode attributes M c X , one for each individual com- ponent, denote the hidden state to be inferred. The domain D, of a mode attribute m is partitioned into nominal modes and a (possibly empty) subset of fault modes F, E D,. The model also sets constraints between these attributes, both within a state and across transitions. Nominal transitions result from particular command
p ( f ) estimating its probability (e.g. rank 4 for probability
belong to the controlled system but are relevant to diagnosis.
ponent, extracted from the PITEX model that we used for our experiments (see Section 5). Note that Livingstone is supported by a graphical modeling environment, that generates part of this code automatically.
claas ventBeliefValva ventline T U I ~ L M O I ~ ; thraaholdVduaa pnauuticLineIn; ventline'l~ratpreventLim0ut ; // ... mty attributes private anum Ilodaljpa inorinal. atuckOp.n, stuckQosad3; statavactor b d a ] ;
privata loaeljpa lode; I if (valvaPosition = closad) { ventLina0ut .ambient.upperBound = balodbrashold t vanttinaOut.ubient.lowarBolmd = abovaThreshold k vanttineIn.flow.sign = zaro; 3 // ... more conatraints switch (modal { case nominal: if (pnauraticLineIn = abovaThrashold) valvaPosition = opan; if (pneuuticLinaIn = belod'hrsshold) valvaPosition = closed; ValvaPosition = open; valvePosition = closed;
case stuc)lOp.n: case stuckclosed: 1 3 failure a t u c m ( * , stnckOp.n, 1asaLikely) I 1 failure stuckCloud(8, stuckQosod, likaly) I 1
Livingstone performs diagnosis by receiving observations (that is, values of com- mands and observables) and searching for mode values (possibly including faults) that are consistent with these observations. The result is a list of candidates (c1,. .., c,,),
tion purposes, we will say that a candidate c matches a state s, written c = s , if they have the same mode values, and that c subsumes s, written c 5 s, if faults of c are also faults of s. Formally, c M s if€ Vm E M c ( m ) = s(m), and c 5 s iff V m E M. c ( m ) E F, * c ( m ) = s(m). Livingstone's best-first search algorithm returns more likely, lower ranked candi- dates first ( p ( ~ ) 5 p(c++l)). In particular, when the nominal case is consistent with Livingstone's observations, the empty (Le. fault-free) candidate (of rank 0) is gener-
configurable parameters that limit its search in various ways, such as the maximum
The first generation of Livingstone (in Lisp) flew in space as part of the Remote
has been rewritten in C++ and adds temporal trajectory tracking. A utility program,
ation supporting more general constraint types (hybrid discrete/continuous models) is under development.
then notify event to the Diagnosis else do nothing (Faults are not directly visible to Diagnosis) obs := get updated observations from the Simulator notify obs to the Diagnosis ask Diagnosis to update its candidates This cycle is repeated dong all steps covered by the scenario, according to the cho- sen search strategy. Before each cycle, the current state is saved (using Livingstone’s
of the search trajectory. LPF bears some resemblance to conformance testing, in that it checks whether
specification. The “conformance” relation, however, is quite dif€erent from classical
ification (Simulator). Even if Simulator and Diagnosis are “equivalent”, in the sense that they operate on identical models of the controlled system, Diagnosis may s t i l l fail to “conform”, because the observation it receives or its own computing limitations prevent accurate tracking. This is indeed the situation we consider by using the same model in both the Simulator and the Diagnosis.
4.1 Scenario Scripts
the experiments reported later in this paper, is on the order of states. Although
The scenario script is essentially a non-deterministic program whose elementary
thereof). Scenarios are built from individual commands and faults using sequential, concurrent (interleaved) and choice statements, according to the following syntax: stmt ::= “ewent” ; I { _stmt_* 3 I mix s t m t (and _stmt)_* I choose s t m t (or *s t m t ) **
all commands and faults of a model following this sequence/choice pattern. More configurable ways to generate scenarios from models or other external sources is an interesting direction for further work.
"cornand t e s t. breaker. u n d h = on" ; 44cOTrmbndtest. breaker. cmdIn = off I' ; "cornand t e s t. breaker. cmdIn = on" ;
choose ' I f ault t e s t. bulb .mode = blown" ; or "fault t e s t. bulb .mode = short" ; or "fault test .meter.mode = broken" ;
4.2 Error Conditions
the following error conditions: given a list of candidates (c1, ..., cn) and a simulator state 9,
Simulator state, i.e. c1 M s,
state, i.e. 3k.Q M s, and
state, i.e. 3k.ck E s.
where M and 5 were defined in Section 3. These conditions constitute three suc- cessive refinement steps with the notion that diagnosis should properly track the state of the (simulated) system. Mode comparison only considers the most likely candidate and reports errors even if another reported candidate matches the state, which is overly restrictive in practice since the injected fault may not be the most likely one. Alternatively, candidate matching considers all candidates. Even SO, a fault may often
portion of spurious error reports. In contrast, candidate subsumption only reports cases where none of the diagnosed fault sets are included in the actual fault set. For example, the empty candidate is subsumed by any fault set and thus never produces
harmful faults, it will catch cases where the wrong faults are reported by the diagnosis
4.3 Simulators in LPF The modular design of LPF accommodates the use of different simulators through a generic application programming interface (API). As a first step, we have been
simulation infers outputs from inputs and injected faults, whereas diagnosis infers faults given inputs and outputs). Using the same model for simulation and diagnosis may appear to be circular reasoning but has its own merits. It provides a methodological separation of concerns:
cussed in Section 4 only uses the generic abstractions provided by these interfaces. This provides a flexible, extensible framework for simulation-based verification of di- agnosis applications beyond the purely Livingstone-based setup (both for diagnosis and simulation) shown in Figure 1. Both the Simulator and Diagnosis modules are replaceable by alternative implementations, not necessarily model-based, provided those implementations readily provide the corresponding generic interfaces. Livingstone PathFinder is not available for download but can be obtained free of
5 Experimental Results
The Livingstone diagnosis system is being considered for Integrated Vehicle Health Maintenance (IVHM)to be deployed on NASA’s next-generation space vehicles. In that context, the PITEX experiment has demonstrated the application of Livingstone based diagnosis to the main propulsion feed subsystem of the X-34 space vehicle [l, 81 , and LPF has been successfully applied to the PITEX model of X-34. This particular Livingstone model consists of 535 components and 823 attributes, 250 transitions, compiling to 2022 propositional clauses. Two different scenarios have been used to analyze the X-34 model:
We will first discuss scalability and compare different error conditions using depth- first search, then discuss the benefits of heuristic search and finally illustrate two different errors found during the experiments.
5. 1 Depth-First Search
proceed normally after detecting an error, and reporting any additional errors. We
when searching through all states of the scenario. Table 1 summarizes our depth-fist search statistics. It shows that LPF covered the PITEX baseline and random scenario
When searching for candidate matching, LPF reported an excessive number of errors, most of which were triuid, in the following sense: when a fault produces no immediately observable effect, Livingstone diagnosis does not infer any abnormal behavior and reports the empty candidate. For example, although a valve may be stuck, the fault will stay unnoticed until a command to that valve fail to produce the desired change of position. While these errors are indeed missed diagnoses, experience
Table 2. Comparison of Heuristic vs. depth-&st search
strategy lmax. depthlcondition' 1 time ]stateslstates/min DFS 1 16 I CS 102 : 55 : 38 1 8648 I 49
DFS I 16 I CM 100:00151 17 I 68
See Table 1
5.3 Example Scenario 1 Our first example involves the PITEX baseline scenario, and was performed with an earlier version of L2 in which, as it turns out, the checkpointing functionality used by LPF was flawed. The scenario involves a double fault, where a valve sv31 (on a liquid oxygen venting line) gets stuck and a micro-switch sensing the position of that valve fails at the same time. The sequence of events is as follows:
The microswitch fault remains undetected (Livingstone still reports the empty
4, Livingstone reports the following candidates (the number before the X sign is the
Cmdidata 0 ) Cmdidat. 1) Candidat. 2) Candidat. 3)
5 tta.t .rrOl .rod~TraP.ition=stuckOpon:Z -ttt.rrOl.rod~Truuition=~tuckClod:
- ~ ~ ~ t. ~ v 3 1. m d ~ T r a ~ i t i o n = s t u c k C l o ~ ~ d : 3 -tt.it.rrOl.mod.Truition=.tuc~:Z 3tt~st.rrOl.rod.Trmaition=~tuckClod: 5ttt..t.forsrrdlo2.rpl.v.~d~Tra~.iti~=lmhrounFdt: -east .forsudln2.rplsr.rod.Truuition=unknounFdt: 5 3 tLm.t. forrrardI.02 .rpl.v.lod~Trm.itian=lmhrormfdt** : **5 W t. ~ s t. s v 3 1. r o d ~ T r u u i t i o n = ~ t u c ~ : 5
Candidat. 4) Candidat. 5) Candidate 6 ) Candidat. 7 ) Cmdidat. 8)
Candidat. 9)
At this point, LPF reports a candidate-matching error, indicating that none of the Livingstone candidates match the modes from the simulator. The fault is detected
that candidate 7 subsumes, but does not match, the actual faults). At this point the data seems to suggest that Livingstone is not properly generating all valid candidates.
6 Conclusions and Perspectives
based diagnosis applications across a wide range of scenarios. Livingstone is its current target diagnosis system, however the architecture is modular and adaptable to other systems. LPF has been successfully demonstrated on a real-size example taken from
ment team, Livingstone specialists from the PITEX project have shown great interest
ning a fixed, limited set of test cases, as detailed in [SI. LPF shows great potential for
from the users. Our next stage is to put the tools in the hands of the developers. In this perspective, we have also been adding a graphical user interface and integrating LPF into the Livingstone modeling and simulation tool. LPF is under active development, in close collaboration with Livingstone applica- tion developers at NASA Ames. After considerable efforts resolving technical issues in both LPF and relevant parts of Livingstone, we are now contributing useful results to application specialists, who in turn reciprocate much needed feedback and sug- gestions on further improvements. The candidate subsumption error condition is the latest benefit from this interaction. Directions for further work include new search strategies and heuristics, additional error conditions including capture of application- specific criteria, improved post-treatment and display of the large amount of data
Future work includes support for determining state equivalence, to allow pruning
only about the current step but previous ones as well, cases where equivalent states are reached through Merent executions may be very infrequent. As an alternative, experiments with weaker or approximate equivalences may be performed to reduce
This extends the verification capabilities to involve the remediation actions taken by
evolving towards a versatile system-level verification tool for model-based controllers.
Acknowledgments
Based IVHM Architectures. The authors would like to thank Livingstone application
References
1. A. Bajwa and A. Sweet. The Livingstone Model of a Main Propulsion System. In Pro- ceedings of the IEEE Aerospace Conference, March 2003. 2. E. Brinksma. A Theory for the Derivation of Tests. In: S. Agganval, K. Sabnani, eds., Protocol Specification, Testing and Verification, VIII. North-Holland, Amsterdam, 1988, 3. L. Fleming, T. Hatfield and J. Malin. Simulation-Based Test of Gas Transfer Control Software: CONFIG Model of Product Gas Transfer System. Automation, Robotics and
ter Center, 1998).
4. P. Godefroid. Model Checking for Programming Languages using VeriSoft. In Proceed- ings of the 4 t h ACM Symposium on Principles of Programming Languages, pages 174- 186, Paris, January 1997.
ISBN 0-444-70542-2, 63-74.
5. C. A. R Hoare.Communicating Sequential Processes. Prentice-Hall, 1985. 6. A.E. Lindsey and C. Pecheur, Simulation-Based Verification of Livingstone Applications. Workshop on Model-Checkingfor Dependable Software-Intensive Systems, San fiancisco, June 2003. 7. N. Muscettola, P. Nayak, B. Pel1 and B. Williams. Remote Agent: To Boldly Go Where No AI System Has Gone Before. Artafiial Intelligence, vol. 103, pp. 5-47, 1998.