Qualitative superposition Enrico W Colera Hewlett-Packard Laboratories, Ftlton Road, Stoke Gtfford, Bristol, BS12 6QZ, UK
Received July 1989 Rewsed November 1991
Abstract
Colera, E W , Quahtatlve superposltlOn, Artlfioal Intelhgence 56 (1992) 171-196 Results are presented generahslng superposltlOn to nonlinear systems by using qualitative differential equations These are apphed to allow the composition and decomposmon of qualitative histories Histories record the quahtatlve changes in a system over time, and they can be automatically generated by quahtatwe s~mulatlon The quahtatwe superposmon of such histories is shown to be identical to the qualitative simulation of interactions within linear systems, and many nonlinear systems The result of adding two histories is a partml envlslonment for the system, and the recreation of the interaction history is a path traversal of the envlstonment space The techmque is useful when a reasoning system needs to decompose an interaction history to identify the state of each contributing history, and when examples of a system's behav~ours exist as histories but no model is available Formahslng the hmlts to quahtatwe superposltlon also has implications for other forms of inference such as the resolution of mulhple causal references through a single parameter
1. Introduction Histories record the quahtatlve changes m a system over time They were first p r o p o s e d b y H a y e s [9] as an i m p r o v e m e n t on t h e s i t u a t i o n a l calculus for d e s c n b l n g a c t i o n s a n d c h a n g e A history was " a c o n n e c t e d p i e c e o f s p a c e t~me" w h i c h r e c o r d e d e v e n t s w l t h m a r e s t r i c t e d spatial e x t e n t T h e p a t h a ball t a k e s t h r o u g h t h e air o r t h e r e s p o n s e a p h y s i o l o g i c a l s y s t e m m a k e s to a d i s t u r b a n c e can b e r e c o r d e d with histories H a y e s n o t e d t h a t a h i s t o r y c o u l d b e t h o u g h t o f as t h e e x t e n s i o n o r o c c u r r e n c e o f a p h y s i c a l p r o c e s s This r e l a t i o n s h i p g a m e d fuller e x p r e s s i o n m F o r b u s ' q u a l i t a t i v e p r o c e s s t h e o r y [6], in which physical s y s t e m s w e r e d e s c r i b e d in t e r m s o f t h e p r o c e s s e s t h a t o c c u r r e d within t h e m Q P t h e o r y p r o p o s e d a m e c h a m s m for t h e a u t o m a t i c g e n e r a t i o n o f histories f r o m such p r o c e s s d e s c r l p Correspondence to E W Colera, Hewlett-Packard Laboratones, Fllton Road, Stoke Glfford, Bnstol, BS12 6QZ, UK Telephone (0272) 799910 Fax (0272) 790554 E-mall ewc@hplb hpl hp com
0004-3702/92/$05 00 (~) 1 9 9 2 - Elsevier Science Pubhshers B V All rights reserved
nons Smc~ then the generation ot histories trom system descriptions has bccn mole tormallx tdennfied as quahtan~c slmulanon, ot which Kmpers QSIM [1(t l is a well-known example Hlstolms m QSIM become solutums Io models ~omposed ol quahtatlvc dlttcrentml constraints q h c lelattonshlp between histories and the underlying system model that produces them is leasonably ~vcll undmstood Much less is known about hm~ h~stones r d a t e to one another and how a rt.asonlng system could use such relanonshlps to make useful mlmences In Haves Mamtesto he noted that histories could relate m various ~ays qhc~ could be adlaccnt, both spatmll~ and temporally or thc'~ could bc hybrid m the sense that histories might interact When t~,o alrL~att colhd~ in mid a n , \~e can think o~ each ,is hawng its own history and at tht. moment ol nnpact d ile~ composite hlstOl\ torm~ q he t ~ m c t p h ' o I ~upetpos~tt(m is a well-known mathen~at~cal p~opc~t\ ot hnear s~stems [131 It allows an\ two system states to be added to prodm.t, a ne\~ statc description which ~s qfll conslqent with that system While ~ep~csentm g a pov, ertul tormal techmquc superposmon ~s hm~ted because ~t m general ~s mapphcable to nonhnear sxstems It will bt_ shown below that b~, i c l a \ m g sxstem descriptions through the use ot quahtatwe mathematical representanons superposmon ~.an tn lact be apphed to a ~ ~de range ot nonhnear svsten> Th~s result allox~s quahtatt~ c dcscnptums ot sx stem beha~ours--h~sto!~t.s--to be added quahtan~elx to reproduce behavlomS consistent with the lnlcractton ot thost, hlstont.s Haves [91 saw h~stones as a basl~_ontological p n m m v e but ~ork smt.c then has locussed largely on thc mcchamsms b~, wtnch we can generate, histories H~stones have thus become a bx-produet ol mlerence p~ocedurt.s such as qua]ltat~xc Mnlu]atlOll Quahtat~xc superposltlon allows histories to ont_e ag,un bc considered an nnportant rt.presentatlonal torm m their own ngh~
1 1
Motivation
There ,ire several situations in ~ hJch the superposltlon oI individual tnstoncs to determine interactions is advantageous •
Ouahtatl~e simulation allows th~ merall bchavlour ot a s\,stem ~ t h interacting e~ents to be determined The snnulanon ot mteracnons hovve~er loses m l o r m a n o n We no longer kno~ tht. individual state ol each lndpvldual event within the interaction lust the ettects ot the union through the compound history This becomes a problem when we want to know what individual processes art. up to during the mteracnon Such informanon is necessar~ for example m process monitoring apphcanons If thc task is to monitor and trcat a patient with multiple diseases the state oI each mdwldual disease may need to be tracked within the merall observed behavlour and its mBehattoupal
de~ompO~lttOlt
Quahtattve superposmon
173
dlvldual response to therapy determined [2] Such state information is inaccessible through normal quahtatlve simulation • Behavtoural composttton If we can determine the behavlour of interactions within a system from the participating individual histories, then we only need to generate the individual histories to reason about Interactions Intuitively, this seems to be a simpler method of "naive" reasoning about interactions in physical systems than reasoning from first principles with a model When using histories as the knowledge primitive, a reasoner can also use extra information to constrain the outcome of a situation If, for example, a bird collides wlth an aircraft, we can note that the mass of the aircraft completely dominates that of the bird Of all the potential paths the two might take after the collision, we need only consider the history in which the aircraft's path is unchanged A full qualitative simulation of the interaction system is avoided, all the inference occurring with the individual histories • Reasomng wtthout models One important consequence of using histories as a representational primitive is that in some circumstances one can make strong conclusions about systems that are as yet unmodelled For example, empirical information about typical behaviours of a system may be available, but the system may be insufficiently characterised to have a useful qualitative model Nevertheless quahtatlve superposltlon allows predictions to be made about the interactions of multiple behavlours from empirically identified single behavlours One consequence of the lack of a qualitative model, as will be shown later, is that such predictions may be defeasible
2. Reasoning with histories: an example Consider the monitoring problem posed in the previous section. A physical system has a number of events occurring concurrently within it, and we wish to monitor the behavlour of each lndwldual event along with the overall behavlour The behavlour of fluid flowing within a U-tube wdl serve as an example A quahtatlve model of a U-tube system is shown in Fig 1 The model Is taken from [10] and is composed of a number of qualitative constraints between observable parameters (see Section 3) The U-tube is modelled as two fluid-filled tanks (arm A and B) connected by a pipe We model the fired within the system with parameters for fluid levels, pressures and flows These parameters are related to each other through qualitative mathematical constraints like addition, or statements of functional monotonicity Qualitative simulations using QSIM on the U-tube model following single increments of fired being added to either arm A or B of the U-tube are presented diagrammatically in Fig 2 Prior to the fluid increments, the system
level(A)
presiure(A) Z / ~
level(B)
presiure(B)
4
k~g l ht. QSIM[l-tubLmodaltakenfromkmper~[10] is q m e s c e n t with e q u a l positive fluid levels m each arm r e c o r d e d ~ l t h the l a b e l s a ( 0 ) a n d b ( 0 ) r e s p e c t i v e l y l o l n m a l l s e the s i m u l a t i o n tor an i n c r e m e n t to a r m A we m a k e the fluid lexel in a r m A t a k e a value g r e a t e r t h a n a((}) ( l a b e l l e d a ( l ) m Fig 2) T h e s i m u l a t i o n then d i s c o v e r s t h r e e distract q u a h taUve states as a flow ol fluid occurs betx~een arm A a n d B a n d a new q m e s c e n t state is r e a c h e d with b o t h fluid levels stcad'v at new xalues a ( 2 ) a n d h( 1 ) b o t h h i g h e r t h a n p r i o r to the fluid i n c r e m e n t T h e label a ( 2 ) t o t the level m a r m A lies s o m e w h e r e bctxveen the level b e l o r e a n d a l t e r l m t l a h s a t l o n ~I he s i m u l a t i o n o u t p u t l o r a single i n c r e m e n t to a i m B m i r r o r s that l o r a r m A It Q S I M is m l t l a h s e d to s i m u l a t e the e t t e c t s ot the two fluid i n c r e m e n t s s l m u l t a n e o u s l > t h r e e s e p a r a t e histories are g e n e r a t e d with quite dl~terenl tmal s t a t e d e s c r l p t u m s (see Fig 3) Fhe histories c o r r e s p o n d to the s i t u a t i o n s in w h i c h the a m o u n t ot flmd a d d e d to a r m A is e q u a l to, g r e a t e r t h a n , a n d less t h a n t h a t a d d e d to a r m B T h e relative height ot the initial fluid levels, a n d the d i r e c t i o n ot the net fired flow b e t w e e n the a r m s is d i f f e r e n t in each o! the t h r e e b e h a v l o u r s In the hrst hlstor.x the fluid i n c r e m e n t s are ot e q u a l size, so that no n e t flow oct.urs at this lcxel o! m o d e l r e s o l u t i o n In the s e c o n d history the. flow rate a n d p r e s s u r e d l l f e r e n c e i n d i c a t e that a net shift ot fluid occurs t r o m a r m B to a r m A i n d i c a t i n g that the a m o u n t a d d e d to a r m B was the g r e a t e s t T h e r e v e r s e s c e n a r i o is r e p r e s e n t e d in the third h~stor~ F r o m the p o i n t of w e w ol a r e a s o n i n g p r o g r a m that wishes to t r a c k b o t h c o n t r i b u t i n g e v e n t s , t h e s e t h r e e i n t e r a c t i o n histories are m a d e q u a t t . T h r e e p r o b l e m s are a p p a r e n t