Theme 2 (old): Qualitative Functional Reasoning |
|||||||||||||||||||||
AbstractA goal of this research is developing methods for learning function of devices from a qualitative description of their structure and behavior using functional reasoning. Qualitative Function Formation (QFF) technique is introduced. In QFF, a function concept is defined as an interpretation of a persistence or an order in the sequence of qualitative states, using trace of qualitative state vector derived by simulation on a qualitative model of a device. Examples of application of QFF in categorization and learning function of components in engineering design are given.
1. INTRODUCTIONFunctional Reasoning (FR), in its common sense use, enables people to reason about the presence and function of objects in a containing system, derive the purpose of the system and explain how it can be achieved. Functional reasoning is used to explain goal directed behavior of objects [MURAKAMI88], [KIRIYAMA92]. Such explanation includes two components: causal and functional explanations [NAGEL77], [NAGEL77B]. Functional explanation accounts for:
(1) refers to an explanation of the presence of some component in the system in terms of its contributions or certain effects that the component produces in the system [NAGEL77B], or in terms of some capacity that the component has and contributes to the capacity of the containing system [CUMMINS74]. (2) addresses the traditional teleological process of means and end [ALLAN52]. Function of a system is usually mentioned along with its behavior, goal and purpose, with respect to system's inner and outer environments [SIMON69]. Also it has strong connections with the notion of making efforts to obtain a certain result (mainly in man-made objects), or a certain future event [BIGELOW87]. In the representational viewpoint of function, which is central in AI, function of a system is addressed with reference to intention of humans. The focus of this research is on developing Functional Reasoning (FR) techniques for deriving and explaining function of a device from a qualitative description of its structure and behavior through systematic generation and reasoning with such a model at various level of abstraction; and applying FR techniques to real world engineering problems such as functional design and diagnosis. Qualitative Function Formation (QFF) technique is developed and implemented to verify the ideas. Specifically, we address the following engineering design problems.
2. QUALITATIVE FUNCTION FORMATION TECHNIQUEHere we briefly introduce the Qualitative Function Formation (QFF) technique, its underlying assumptions and model.
2.1 Assumptions
2.2 ModelThe qualitative model that we use in QFF is composed of a set of expressions involving three primitives: qualitative variables, ordinary- and coordinative- qualitative operations. Qualitative variables are counterpart of physical quantities, such as temperature and pressure, representing characteristics of the system's inner environment. Relation between the qualitative variables is defined by qualitative operations. Ordinary operations are monotonic increase (M+), monotonic decrease (M-), positive influence (I+) and negative influence (I-). Coordinative operations account for interactive or protocol-based interactions, such as when, until, set, reset, and default. The qualitative model is a set of expressions of either of the following forms:
[Y] = O[X] D [LiN]
[Y], [X], [Z] and [N] are qualitative variables. O= { M+, M-, I+, I- } D is a coordinative operation (at this moment there are only 5 such operation, namely, when, until, set, reset and default).
The coordinative operations show a kind of data dependencies and can be processed in a different way than the ordinary simulation. Such dependencies can have only 4 possible types:
An algebra in which these 4 values can be represented by mod-3 integers is defined [BENVENISTE90]. Every qualitative variable, denoted by upper case characters such as wCV1, has a pseudo- counterpart, denoted by lower case characters such as wCV1, in this algebra. Each expression can be encoded in this algebra using temporal- and dependency- constraints. A temporal constraint assigns the value (-1, 0, +1, +/-1) to a pseudo-qualitative variable, depending on being false, absent, true, or present, respectively. A dependency constraint, on the other hand, derives the value for the related pseudo- qualitative variables as described in the model. Table 1 depicts the temporal and dependency constraints for the coordinative operations. We will see later that only those operations that have their dependency constraint evaluated to (+1) can take part in the simulation [FAR92].
[X], [Y], [Z] and [N] are qualitative variables. Qualitative Flow Graph (QFG) is defined as a digraph embodying the qualitative model and temporal and dependency constraints. In QFG, nodes are qualitative variables and arcs are conditional ordinary qualitative operations, whose antecedents are dependency constraints. QFG shows indirect influences of qualitative variables. QFG is represented by 4 sets: QFG= {V, A, O, C}
All the arcs of the QFG are conditional. A conditional arc is: A : {C --> O}
For each arc, A, if for C, E(C)= +1, then O is enabled. Qualitative Processes (QPs) are defined as finite, connected, unidirectional string of arcs of the QFG, relating an input node to an output one. An input node is the one with an in-degree zero. Similarly, an output node is the one with an out-degree zero. A key point is distinguishing the effects of an input node on the network of the overlapping processes. Using the conventional notion of process in qualitative reasoning, for each process a number of possible behaviors can be generated and removing the ambiguity is not trivial. In QFF processes are extracted from the QFG by decomposition, i.e., the merging nodes and the succeeding shared nodes and arcs between two processes are assigned to both. This is a requirement in QFF because the direct consequences of a certain process and its effect on the behavior of the whole system should be distinguished first, and then combined behavior of the process derived. This is where QFF departs from the main stream of the other qualitative techniques. Behavioral Fragment (BF) is the characteristic behavior of a qualitative process and is defined as the record of landmark values for the displayed qualitative variables belonging to that process. Behavioral fragment BFPj of a process Pj, is a finite sequence of landmark values (LkV), of the form:
![]() LkV is the kth landmark value of the qualitative variable [V], BFs are derived by qualitative simulation in two steps:
First, the simulator looks for the antecedents of the conditional arcs that can satisfy the given situation. Through temporal and dependency analysis one can verify which of the arcs of the processes are activated, i.e., the mod-3 value of its dependency constraint is (+1), and can take part in simulation. Then processes whose enabling conditions of their arcs are not yet satisfied are deleted and a conventional simulation program derives landmark values for each variable of the remaining processes. BFs are sequences leading to a function concept.
2.3 FunctionA Function concept can be derived if a repetition cycle or an order (e.g., persistence, etc.) is detected on BF sequences. A function F has two attributes:
![]()
F is a function concept. The repetition cycle or persistence can be derived for each of the variables, therefore different cycles can possibly be detected and each cycle may represent a function concept from a different viewpoint. The function derived by QFF is a direct consequence of the user interacting with the network representation of the underlying physical model of the device and physical constraints. This is a very useful characteristic of the technique and can be used directly in functional design. Particularly, by recording the goal(s) of the user on each step and comparing it with the derived function, one can easily verify whether the arrangement can satisfy the intended goal(s) of the user.
3. FUNCTIONAL DESIGN USING QFFHere is an illustrative example of a pressure tank system in an oil refinery, parts of which shown in Figure 1. We use QFF to identify function of the components (i.e., identification problem) and explaining why a component is used in the design (i.e., explanation problem). In this system, there are 4 tanks used to separate materials in a mixture of supplied material to T2 through CV6. For the sake of easier understanding let's consider a portion of the system composed of tanks T1 and T2. The core idea of the design in narrative form is:
Pressure in T2 is controlled by the settings of CV4 and CV5. The overall amount of the two phase material (material A and B) in T2 is controlled by CV1 and CV2. The pressure in T1 is controlled by CV4. The level of material in T1 is controlled by CV1 and CV3.
![]() Figure 1: The pressure tank system.
3.1 Example 1: Identification of functionsThis is a brief example showing how function of a pair of components can be derived from their qualitative model. Let's consider a portion of the system, composed of the object pair CV1 and T1. The relation between them is constrained by rules of flow and conservation besides the set points given by the designer, [F1] = [G1] = M+[wCV1] set ( wCV1 > 0) [Fin/T1] = M+[G1] set ( wCV1 > 0) [FT1] = M+[Fin/T1] [HT1] = I+[FT1]
[F1] and [G1] stand for the flow-in and flow-out for the valve CV1. Temporal constraints are given below and dependency constraints are shown in Figure 2.
![]() Figure 2: Dependency constraints for Example 1.
<2> : g22(-wCV1 -w2CV1) <3> : f2in/T1 <4> : h2T1
f21 = g21 = w2CV1(-wCV1- w2CV1) Qualitative process for this system is shown in Figure 2. Behavior of the component pairs can be derived, for the set point (wCV1 > 0). In temporal constraint terms this means that: wCV1= 1 By inserting its value in temporal constraints, one can derive that: hT12 = fT12 = fin/T12 = f21= g21= 1 This means that conditions for the arcs of this process are evaluated to 1, implying that all the arcs are active and can take part in the simulation. Simulation results are:
BFP1 : { (wCV1>0) --> (FT1>0) -->
(HoT1 <
This implies that the level of material in the tank will increase up to
the maximum allowable level. The function of the pair (CV1, T1)
can be derived using the cycle detection algorithm. Clearly the
persistence in the level of material in the tank is detectable, therefore,
the function of this pair is to maintain the level at the H(T1)max,
that may be called FULL . Note that the term FULL is just a
reference term, whose functionally relevant meaning is described by the
landmark value H(T1)max for the pair.
FULL : HT1=H(T1)max
Similarly for the pair (CV3, T1) and for the set point
(wCV3 > 0), one can derive that the level of material in the
tank will decreases till the minimum level and the function of this pair
is to make the tank EMPTY, described by,
EMPTY : HT1=H(T1)min
The reason for a component being selected to be a part of the designed
system is explained in terms of its contribution to the desired function
of the system. Again simulated behavior of the processes exhibits the way
the components contribute to the functionality of the system.
Let's consider the system of Figure 1 and explain the why a given
control valve, such as CV2, is used in this design. The model
embodying the valve CV2 is:
[U1] = M+[wCV2] set (wCV2 > 0)
[U1] and [K1] are the flow-in and flow-out for CV2
whose state variable is [wCV2].
The temporal constraints are:
u21 = w2CV2(-wCV2 - wCV2)
CV2 appears in three processes P2, P3 and P4.
Dependency constraints in this case are given in Figure 3.
Again for the set point (wCV2 > 0), or in temporal constraint
terms (wCV1 = 1), all the arcs are active and behavior of the
processes are:
<2'> : u21(-wCV2 -w2CV2)
<3'> : h2T2
<4'> : f2out/T2
BFP2 = { (wCV2 > 0) --> (U1 > 0) -->
(0
BFP3 = { (wCV2 > 0) --> (U1 > 0) -->
(H(T2)min =< HT2
BFP4 = { (wCV2 > 0) --> (U1 > 0) -->
(K1 > 0) }
When CV2 is opened, BFP2 indicates that the flow of
material out of T2 (Fout/T2) can increase to its
maximum level, and BFP3 indicates that level of material
in T2 decreases to minimum. BFP4 indicates that it helps
material transfer to the reservoir tank. In qualitative terms, the
effects of CV2 in the system are:
CV2 : { (Fout/T2 = F(out/T2)max) and
(H(T2)min = HT2) and (K1 > 0) }
The reason of using CV2 in the system can be explained in terms
of these three:
CV2 can ease the flow of material out of
T2, reduce the level of material in this tank and transfer material
to the reservoir tank.
Yet another goal of the designer is maintaining the level of
material in tank T2, for safety purposes. An arrangement of
the components that can contribute to this is to be derived. The design
specification in qualitative terms is given below.
GA = (H(T2)Fix =< HT2)
[U1], [K1], [S1] and [E1] stand for the flow-in and
flow-out for CV2 and CV6.
This model is examined for validity. The temporal constraints are given below:
f21 = g21 =
w2CV1(- wCV1- w2CV1)
Dependency constraints are shown in Figure 4.
In this case some of the arcs in Figure 4 are not active due
to the settings. Let's assume that there is no other design preference
and verify which of the components are crucial to this arrangement.
Deleting CV6 and the process P7 implies that the no process
will be active when (ga =-1). Even if (ga =1), P5 and
P6 become active and simulation and cycle detection verify that
they both lead to the EMPTY function.
On the other hand, it can easily be shown that deletion of CV1 or
CV2 (P5 or P6), but not both, can lead to the proper
functioning. Therefore CV1 and CV2 are redundant for the
given function. Let's add another preference that the level of
B-liquid should not exceed a given level (in order to ensure that
A-liquid cannot leak to the next tank). This adds the following
expressions to the model.
TH = (HB/T2 =< H(B/T2)lim)
[HB/T2] = { I-[U1] when GA } until TH
Additional temporal and dependency constraints are:
hB/T22 = u21(- ga - ga2)(- th )
u21(- ga - ga2)(- th ) :
[U1] --> I- --> [HB/T2]
Here when GA is true (ga =1), the process P6 becomes
active and P7 is inactive. This ensures the level will be maintained.
But P5 can be active only when TH is false (th =-1).
Only in such case, it can help P6 to regulate the level of material
in T2. Now the valves CV1 and CV2 contribute to the
functionality of the system in different ways and cannot be deleted from
the design. This example clearly shows that how additional goals of the
designer can be incorporated in the model and how they affect the decisions.
QFF is implemented in the experimental design system, QFF2, focusing
on automating design verification by shifting the decisions and modifications
to the higher design levels.
QFF2 is composed of:
This report places functional reasoning (FR) in the context of other
common sense theories by putting together the results of diverse FR
researches in a variety of disciplines.
Qualitative Function Formation
(QFF), a technique for deriving a function from a qualitative model is
introduced. This puts together the viewpoints on qualitative model,
behavior and function, allowing systematic derivation of function from
structure and behavior. QFF has been successfully tested and used in
engineering design, tool utilization [FAR92]
and fault diagnosis[FAR93].
|
Additional DocumentsFurther information on the system is presented here. PostScriptAand PDF version of related documents are also available. Please click on a button to download one.
|