23
Qualitative Qualitative Reasoning Reasoning and and Qualitative Process Qualitative Process Theory Theory MY RESEARCH @ MALAYA UNIVERSITY

Qualitative Reasoning and Qualitative Process Theory

  • Upload
    aricin

  • View
    83

  • Download
    0

Embed Size (px)

DESCRIPTION

MY RESEARCH @ MALAYA UNIVERSITY. Qualitative Reasoning and Qualitative Process Theory. CONTENTS. Motivation for Qualitative Reasoning (QR)? What is QR? What is an ontology? Qualitative Process Theory (the QPT) - PowerPoint PPT Presentation

Citation preview

Page 1: Qualitative Reasoning and  Qualitative Process Theory

Qualitative ReasoningQualitative Reasoningand and

Qualitative Process TheoryQualitative Process Theory

MY RESEARCH @ MALAYA UNIVERSITY

Page 2: Qualitative Reasoning and  Qualitative Process Theory

CONTENTSCONTENTS

Motivation for Qualitative Reasoning Motivation for Qualitative Reasoning (QR)?(QR)?

What is QR?What is QR? What is an ontology?What is an ontology? Qualitative Process Theory (the QPT)Qualitative Process Theory (the QPT) An application of QP theoryAn application of QP theory in the in the

modeling of the modeling of the equilibrium equilibrium phenomenaphenomena in inorganic chemistry in inorganic chemistry that demonstrates how the that demonstrates how the construction of construction of

a model using the theorya model using the theory can help the can help the learner to learner to acquire good conceptacquire good concept about the about the subject and the subject and the articulation of ideasarticulation of ideas. .

Page 3: Qualitative Reasoning and  Qualitative Process Theory

Motivation Motivation Tight couplingTight coupling between between concepts concepts and and their their

embodimentembodiment in software is crucial in in software is crucial in building building smart educational softwaresmart educational software that that can can explain its reasoning. explain its reasoning.

This This is desirableis desirable since conceptual since conceptual understanding and the ability to provide understanding and the ability to provide explanation are important requirements for explanation are important requirements for effective learningeffective learning and it serves as an and it serves as an important means to important means to induce learninginduce learning..

However, However, this spirit is not found in this spirit is not found in traditional software development. traditional software development.

The understanding of The understanding of commonsense commonsense reasoningreasoning would entail the study of how would entail the study of how to to reason reason qualitatively qualitatively about processes, about processes, namely, namely, the kinds of changesthe kinds of changes that occur that occur and and their effectstheir effects. .

Page 4: Qualitative Reasoning and  Qualitative Process Theory

Qualitative reasoning (I)Qualitative reasoning (I)

Qualitative Reasoning (QR) attempts to give Qualitative Reasoning (QR) attempts to give distinctiondistinction betweenbetween reasoning with reasoning with actual actual numerical valuesnumerical values and and equationsequations and and reasoning with reasoning with less precise representations less precise representations (qualitatively)(qualitatively). .

How good? Why?How good? Why? Such qualitative description of physical processes Such qualitative description of physical processes

provides grounds for generating provides grounds for generating causal explanationcausal explanation and and cognitive diagnosiscognitive diagnosis. .

With these With these dynamic mechanismsdynamic mechanisms, educational , educational software can incorporate software can incorporate instructional goalsinstructional goals rather than merely a rather than merely a static content-driven toolstatic content-driven tool. .

Page 5: Qualitative Reasoning and  Qualitative Process Theory

Qualitative reasoning (II)Qualitative reasoning (II)

One of the goals of QR research is to One of the goals of QR research is to understand human-like commonsenseunderstand human-like commonsense reasoning, and reasoning, and education is one of the most important education is one of the most important

areasareas of practical application of qualitative of practical application of qualitative reasoning reasoning

one such system is one such system is CyclePadCyclePad developed developed by by Kenneth ForbusKenneth Forbus of Northwestern of Northwestern University that teaches analysis and University that teaches analysis and design of thermal cyclesdesign of thermal cycles

Other popular application domains are Other popular application domains are electronics, chemical engineering and electronics, chemical engineering and teaching computer programming. teaching computer programming.

Page 6: Qualitative Reasoning and  Qualitative Process Theory

A qualitative description..A qualitative description..

A A qualitativequalitative description of the tub- description of the tub-filling process will read as: ‘filling process will read as: ‘The level The level of water will keep increasing and will of water will keep increasing and will eventually reach the top, which will eventually reach the top, which will causecause overflow and the floor will get overflow and the floor will get wetwet’. ’.

The statement gives a useful The statement gives a useful summary of a possibly summary of a possibly large amount large amount of quantitative informationof quantitative information (such as (such as exact exact amount and levelamount and level of the water of the water in the tub) which is in the tub) which is not needednot needed to to comprehend the situation. comprehend the situation.

How to describe this in computer

language? Ontology needed

How to derive natural

description from a

software

Page 7: Qualitative Reasoning and  Qualitative Process Theory

OntologyOntology

In AI, one can regard ontology as a In AI, one can regard ontology as a specification of a conceptualizationspecification of a conceptualization. . Or, simply as ‘conceptual knowledge’Or, simply as ‘conceptual knowledge’

It has the It has the knowledge and deduction knowledge and deduction in one frameworkin one framework. .

Several ontology for qualitative Several ontology for qualitative reasoning have been introduced. reasoning have been introduced. Among the well-known are Among the well-known are component-component-

centeredcentered, , constraint-basedconstraint-based and and process-process-centeredcentered (the QPT). The following (the QPT). The following section introduces QPT.section introduces QPT.

Page 8: Qualitative Reasoning and  Qualitative Process Theory

QPTQPT

The theory serves as The theory serves as a languagea language to write to write dynamical theories. This ontology dynamical theories. This ontology defines notion defines notion of physical processof physical process, hence it is called a process-, hence it is called a process-based approach. based approach.

In In numerical simulationnumerical simulation, much of the processes , much of the processes are characterized by are characterized by differential equationsdifferential equations that that describe how the parameters of objects are describe how the parameters of objects are changed over time.changed over time.

However, the notion of ‘However, the notion of ‘processprocess’ is believed to ’ is believed to be richer and more structured than this. be richer and more structured than this.

The theory serves as The theory serves as a languagea language to write to write dynamical theories. This ontology dynamical theories. This ontology defines notion defines notion of physical processof physical process, hence it is called a process-, hence it is called a process-based approach. based approach.

In In numerical simulationnumerical simulation, much of the processes , much of the processes are characterized by are characterized by differential equationsdifferential equations that that describe how the parameters of objects are describe how the parameters of objects are changed over time.changed over time.

However, the notion of ‘However, the notion of ‘processprocess’ is believed to ’ is believed to be richer and more structured than this. be richer and more structured than this.

Page 9: Qualitative Reasoning and  Qualitative Process Theory

The primitives used in QPT(I)The primitives used in QPT(I)

Main primitives of this process-based ontology are Main primitives of this process-based ontology are ViewsViews and and ProcessesProcesses. An . An individual viewindividual view is to is to describe both the contingent existence of objects describe both the contingent existence of objects and and object propertiesobject properties that change drastically with that change drastically with time. While a time. While a process process is described by five parts: is described by five parts: individualsindividuals, , preconditionspreconditions, , quantity conditionsquantity conditions, , relationsrelations and and influencesinfluences. .

The slot The slot individual individual contains lists of objects or contains lists of objects or entities upon which the process is applicable (such entities upon which the process is applicable (such as as SS2-2- and and HH++ in our later example). in our later example). Preconditions Preconditions contain statements referring to external conditions. contain statements referring to external conditions.

Main primitives of this process-based ontology are Main primitives of this process-based ontology are ViewsViews and and ProcessesProcesses. An . An individual viewindividual view is to is to describe both the contingent existence of objects describe both the contingent existence of objects and and object propertiesobject properties that change drastically with that change drastically with time. While a time. While a process process is described by five parts: is described by five parts: individualsindividuals, , preconditionspreconditions, , quantity conditionsquantity conditions, , relationsrelations and and influencesinfluences. .

The slot The slot individual individual contains lists of objects or contains lists of objects or entities upon which the process is applicable (such entities upon which the process is applicable (such as as SS2-2- and and HH++ in our later example). in our later example). Preconditions Preconditions contain statements referring to external conditions. contain statements referring to external conditions.

Page 10: Qualitative Reasoning and  Qualitative Process Theory

The primitives used in QPT(II)The primitives used in QPT(II)

Quantity conditionsQuantity conditions are statements about are statements about inequalities inequalities involving quantities of the objectsinvolving quantities of the objects, which can be used to , which can be used to determine whether or not a process is active. determine whether or not a process is active.

Relations Relations are statements about relationships between are statements about relationships between variables. Two primitives that are very important in variables. Two primitives that are very important in describing the relationships between quantities are the describing the relationships between quantities are the correspondencescorrespondences and and qualitative proportionalitiesqualitative proportionalities..

CorrespondencesCorrespondences can be used in can be used in mapping values from the mapping values from the quantity space of one variable to values in the quantity space quantity space of one variable to values in the quantity space of another variableof another variable. .

In this ontology dynamic aspects are expressed by the In this ontology dynamic aspects are expressed by the notion of direct influence. Direct influences can only appear notion of direct influence. Direct influences can only appear in processes and are presented in the slot in processes and are presented in the slot InfluencesInfluences..

Page 11: Qualitative Reasoning and  Qualitative Process Theory

Common-sense question & Common-sense question & answeranswer

Figure 1 illustrates some Figure 1 illustrates some conclusions about a conclusions about a physical physical situationsituation that portrays a that portrays a brickbrick and an and an elastic stringelastic string tied up at tied up at one end. Noticed that one end. Noticed that commonsense conclusions can commonsense conclusions can be drawn without having to be drawn without having to engender any mathematical engender any mathematical expression such as expression such as F=maF=ma..

Page 12: Qualitative Reasoning and  Qualitative Process Theory

Fig. 1 Some conclusions QP theory can be used to conclude

Q: What happens if we release the block? A: Assuming the spring does not collapse, the block will oscillate back and forth. If there is friction it will eventually stop. Q: What if it gets pumped? A: If there is no friction the spring will eventually break. If there is friction and the pumping energy is constant then there will be a stable oscillation.

Page 13: Qualitative Reasoning and  Qualitative Process Theory

F=maF=ma

The above equation can be converted to QPT as 2 qualitative proportionalities (qprop), as shown here:

1) force Q+ mass

2) acceleration Q- mass

Will mass be seen on the left-side? Why or why not?

An increase in mass will cause the force to increase (in the same direction), orForce increases as mass increases.

to mean

to mean

An increase in mass will cause the acceleration to decrease (inverse qprop), orAcceleration decreases as mass increases.

Page 14: Qualitative Reasoning and  Qualitative Process Theory

An application:applying QPT to model chemical

equilibrium Every testing method in qualitative Every testing method in qualitative

analysis involves a reaction between analysis involves a reaction between the the reagent reagent and an and an unknown sampleunknown sample (the cation). (the cation).

Fe2+ + H2S (reagent) FeS + 2H+ (Eq. 1) H2S (reagent) 2H+ + S2- (Eq. 2)

Unknown sample

Page 15: Qualitative Reasoning and  Qualitative Process Theory

Consider the example iron (II) sulphide above. Given an Consider the example iron (II) sulphide above. Given an unknown sample which contains unknown sample which contains ferrous ionsferrous ions, reaction of , reaction of ferrous ions and sulphide ions (reagent) will result in the ferrous ions and sulphide ions (reagent) will result in the formation of a formation of a black precipitateblack precipitate of iron (II) sulphide of iron (II) sulphide (Eq.1). (Eq.1).

Equation 2 shows an equilibrium state between Equation 2 shows an equilibrium state between HH22SS and and

both ionsboth ions. . In a reaction, equilibrium is achieved at the point where In a reaction, equilibrium is achieved at the point where

the rates of the forward reactionthe rates of the forward reaction and the and the backward backward reaction are equal. reaction are equal.

A test scheme is devised to allow the user to choose one A test scheme is devised to allow the user to choose one reagent at a time to determine the unknown sample. reagent at a time to determine the unknown sample.

For the above example, only HFor the above example, only H2S gives positive result S gives positive result

which is the black precipitation (FeS). which is the black precipitation (FeS).

Fe2+ + H2S (reagent) FeS + 2H+ (Eq. 1) H2S (reagent) 2H+ + S2- (Eq. 2)

Page 16: Qualitative Reasoning and  Qualitative Process Theory

Next section shows that reasoning about chemical equilibrium would require would require

only common sense only common sense knowledgeknowledge rather than

complex formula or quantitative data.

Page 17: Qualitative Reasoning and  Qualitative Process Theory

Modeling chemical reactions using Modeling chemical reactions using QPTQPT

In this section, In this section, chemical reactionschemical reactions are qualitatively expressed as are qualitatively expressed as two two QPT processesQPT processes, namely the , namely the dissociationdissociation (Fig. 2) and the (Fig. 2) and the precipitation precipitation (Fig. 3). (Fig. 3).

In In equation 2equation 2, when , when either of the ions either of the ions reaches saturation pointreaches saturation point, there will , there will be be no more dissociation of Hno more dissociation of H22SS to to form ions H+ and Sform ions H+ and S2- 2-

see see quantity conditionsquantity conditions and and relationsrelations in in fig. 2. fig. 2.

Page 18: Qualitative Reasoning and  Qualitative Process Theory

Process Dissociation of H2S Individuals H dissolved ion S dissolved ion liq fluid that dissolve ion Preconditions Ds[amount-of(liq)] = 0 Quantity Conditions Am[amount-of(H2S)] > ZERO ~ saturated(H) ;process will stop when this becomes false ~ saturated(S) ;process will stop when this becomes false Relations dissociation-rate Q-concentration-of(H) ;it says that dissociation will decrease dissociation-rate Q-concentration-of(S) ;when H and S are high in their concentration Correspondence((dissociation-rate(H2S), ZERO), ;not to dissociate when H gets saturated

concentration-of(H), saturated(H))) Correspondence((dissociation-rate(H2S), ZERO),;not to dissociate when S gets saturated

concentration-of(S), saturated(S))) Influences I+(concentration-of(H), Am[dissociation-rate]) ;the higher the dissociation rate

Fig. 2 Process dissociation of H2S

Page 19: Qualitative Reasoning and  Qualitative Process Theory

Process Precipitate formation of FeS Individuals Fe dissolved ion S dissolved ion liq fluid that dissolve ion Preconditions Ds[amount-of(liq)] = 0 Quantity Conditions Am[amount-of(S)] > ZERO ;process will stop if no more S to react with Fe Am[amount-of(Fe)] > ZERO ;to yield product Relations ; Let K be a quantity K Q+concentration-of(Fe) K Q+concentration-of(S) ;increase concentration of S will also increase K Am[formation-rate] Q+concentration-of(S) ;hence the formation rate FeS ;K = [Fe] * [S]

Correspondence((amount-of(FeS), ZERO), ;no formation of FeS if its Ks is 4.0 * 10-19 moll-1 (K(FeS), ZERO)) ;or less, defined as zero here

Influences I+(amount-of(FeS), Am[formation-rate]) ;the higher the formation rate ;the more precipitation we get for FeS

Fig. 3 Precipitation process for FeS (adapted from [18])

Page 20: Qualitative Reasoning and  Qualitative Process Theory

Instead, the separated ions will combine to Instead, the separated ions will combine to form the initial reagent, hence lack of Sform the initial reagent, hence lack of S2-2- to to yield black precipitation. yield black precipitation.

Saturation is caused by an increase in the Saturation is caused by an increase in the concentration of the Hconcentration of the H+ + and Sand S2-2-. .

To express this phenomenon, we could write To express this phenomenon, we could write the relationships as shown in figure 2. the relationships as shown in figure 2.

Even though ion Fe present

Look at the ‘Corr’ parts

Page 21: Qualitative Reasoning and  Qualitative Process Theory

If we look at equation 1 once more, FeIf we look at equation 1 once more, Fe2+2+ + H + H22S (reagent) S (reagent) FeSFeS + 2H + 2H+ + says that says that FeS FeS might not be formed if might not be formed if HH++ is in is in excess. excess.

When HWhen H++ is saturated it will tend to combine with S is saturated it will tend to combine with S2-2- to to revert the reagent. There is a situation where Hrevert the reagent. There is a situation where H++ could get could get saturated very fast, i.e., the saturated very fast, i.e., the solution used is acidicsolution used is acidic (e.g. HCl (e.g. HCl is added) rather than neutral (e.g. water).is added) rather than neutral (e.g. water).

When this happen a chemical equilibrium is said to be When this happen a chemical equilibrium is said to be reached. Substances such as Hreached. Substances such as H22S that exhibit reverse S that exhibit reverse reaction are stored as chemical facts (domain knowledge) reaction are stored as chemical facts (domain knowledge) to allow the system knows that Hto allow the system knows that H22S will cause reverse S will cause reverse reaction. reaction.

According to the According to the Le Châtelier’sLe Châtelier’s principle, whenever principle, whenever a stress a stress is imposedis imposed at the at the right-hand sideright-hand side of the equation, of the equation, reaction reaction will move to the left-hand sidewill move to the left-hand side to release the stressto release the stress. .

In our case, the reverse reaction will occur to reduce the HIn our case, the reverse reaction will occur to reduce the H+. . When reasoning works on the two processes, equilibrium When reasoning works on the two processes, equilibrium phenomena can be explained.phenomena can be explained.

H combines with S

Page 22: Qualitative Reasoning and  Qualitative Process Theory

Discussion Discussion Qualitative reasoning ontology, take for example Qualitative reasoning ontology, take for example

the QP theory offers the QP theory offers two useful meanstwo useful means of of representations. representations.

First, it represents the First, it represents the right kinds of knowledgeright kinds of knowledge.. Second, it represents the Second, it represents the right level of right level of

knowledgeknowledge. . It is conjectured that students should deeply It is conjectured that students should deeply

understand the qualitative principles that govern a understand the qualitative principles that govern a subject, including the processes and the causal subject, including the processes and the causal relationships before they are immersed in qualitative relationships before they are immersed in qualitative problem solving. problem solving.

Right kinds refer to the implicit causal theories of physical phenomena that the model has

Page 23: Qualitative Reasoning and  Qualitative Process Theory

To avoid pre-coding facts as found in most traditional ES

Need to model behaviors and principles in a flexible way

Modeling + Reasoning = Simulation = Behavior Prediction & Post-diction

Reasoning can then be performed in the conceptual/qualitative model & to answer questions.

Ontology (conceptual knowledge representation)

Example: the QPT

In order to achieve this aim, need to have