Theses
Thesis/Dissertation Collections
1989
Intelligent knowledge acquisition system
Bong-Soo Youn
Follow this and additional works at:
http://scholarworks.rit.edu/theses
This Thesis is brought to you for free and open access by the Thesis/Dissertation Collections at RIT Scholar Works. It has been accepted for inclusion
in Theses by an authorized administrator of RIT Scholar Works. For more information, please contact
.
Recommended Citation
Intelligent Knowledge Acquisition System
by
Bong-Soo Youn
A thesis, submitted to
The Faculty of the School of Computer Science,
in partial fulfillment of the requirements for the degree of
Master of Science in Computer Science.
Approved
by:
Professor John A. Biles
Dr. Stanislaw Radziszowski
Dr. Peter G. Anderson
March 8, 1989
Chapter 2. Human Comprehension
3
Human Comprehension
asaTheme
4
Schema
Theory
5
Conclusion
7
Chapter 3.
Learning
Approach
using Conceptual
Dependency
Frame
8
Conceptual
Analysis
8
Modeling
oflearning
Process
10
Program's Initial Stage
11
Response
Inferring
Rule
13
Program Run
15
Conclusion
16
Chapter 4. Inductive
Learning
17
Types
ofInductive
Learning
17
Applications
ofInductive
Learning
System
18
Inductive Inference Paradigm
20
Generalization
Rules
20
Conclusion
25
Chapter
5.
IKAS
27
Overview
ofIKAS
27
Knowledge
Representation
in
IKAS
27
Conflict
Checker Control
Strategy
.35
Generalization Control
Strategy
43
Conclusion
53
Chapter
6.
IKAS The Expert System Shell
54
KB File
Handling
Unit
54
System
Performance
65
Chapter 7 Conclusion
67
Issues
67
Future
Work
Remaining
70
Appendix
A.
IKAS
ARL
Instructions
72
PREMISE
72
ACTION
76
Appendix B.
Example
IKAS
Knowledge
Base
78
Animal
78
Solid
Food
Advisor
83
Computer
Diagnosis
Help
Desk
88
IKAS (Intelligent Knowledge
Acquisition
System)
is
an expert systembuilding
shell with a machine-assisted concept checker
for easy integrated
rule-entry.Unlike
most expert system shells
currently
available,IKAS
notonly
performs rule syntaxchecking,
but
also maintains semanticintegration
of theknowledge
base
by
using
aConcept Base. The Concept Base is
incrementally
grownduring
the cycle of expertsystem application
development
and safeguards thewholedomain
from conceptually
conflicting
rulesby finding
possibleinconsistencies
orduplications
of concepts andgiving
recommendationsfor
possible solutions.Also
automatic generalized conceptforming
using
theInductive Extension Generalization
method givesIKAS
acapability
Chapter
1
.Introduction
The
boundary
between
current expert systemtechnology
andfuture
Artificial
Intelligence
solutionsis
composed of twovery
difficult
factors. First is
ahardware
limitation..
Secondly,
many
real applications require thatinformation
be constantly
reevaluatedto take environmental changes
into
account[Harm85]. Such
systems willhave
tobe
able tolearn
from
their own experience andconstantly
update their ownrules about the
domain
area as time goesby.
There
is
need,
then, for
anintelligent
expert system shell with a
learning
capability
tofacilitate
a more structuredway
oftransferring
domain knowledge
from
ahuman
experttoamachine,
a moreintelligent
way
toconstruct thederived knowledge from
theexisting
knowledge. When
equippedwith a
way
todiscover
newfacts
and theoriesfrom
observations,
the computer then canbe left running every
night to analyzedata
anddiscover
usefulinformation
[Kamr87].
With
thefast
growthofcomputerusage and expert systemapplications,
thefield
willcertainly
welcomethepossibility
oftheselearning
shells.In
this thesisI
wouldlike
toimplement
a small expert systemshell,
with acapability
to acquireknowledge
intelligently,
calledIKAS
-Intelligent Knowledge
Acquisition
System.
Most
ofthecurrently
available expert system shellsdo
not allowdomain knowledge
tobe
changed onceit is delivered for
use.Preservation
of theexpert's
knowledge from
accidental changeby
notallowing knowledge
updatejustifies
the
current predominanttechnology
for
expert systemshells,
but
if
we consider theconsistency
oftheknowledge
ofthesystem,
even after years ofusing
it,
there shouldbe
an advancedmechanismtoupdate theold andlearn
newknowledge
ofthedomain
to
keep
up
with thechanging
environment.To
keep
theknowledge
accurate andintegrated,
the systemshould,
ofcourse,
have
a method todetect
inconsistency,
Chapter
2
through4
of this thesisdiscuss
the current conceptsin
the areas ofhuman
and machinelearning
andhow
they
apply
tomy
own needsfor
IKAS
practically.
Chapter
2
addresses theissue
ofhuman
learning
to motivate a moreplausible approach to machine
learning.
Particular
attention willbe
paid tohow
human knowledge
canbe
represented,
stored andretrieved.In
Chapter
3
Conceptual
Dependency
Frames
willbe
discussed
for
slot-filling,
top-down andbottom-up
processing theory,
whichI
intend
to usein
IKAS
for preserving consistency
oftheconceptual
knowledge.
In Chapter
4,
inductive
learning
methods and generalizationalgorithms are
discussed.
Several
ways to generalizefrom
specificinstances
are alsogiven,
whichmay
be
neededfor
learning
from instances.
Chapter
5 discusses
theimplementation
ofIKAS,
withits
overallknowledge
representation scheme and theway
todetect
and solve conflict orduplication
ofIKAS
knowledge base.
Chapter
6
explains
briefly
thebasic
functionalities
ofIKAS
as an expert system shell.Finally
Chapter 7
concludes this thesis withdiscussion
offuture
work remained.Appendix A
gives an explanation of the
IKAS
version ofARL(Abbreviated
Rule
Language).
Chapter
2.
Human
Comprehension
Let's
examinehuman
information
processing.Figure 2-1
gives a view ofhumans
asinformation-processing
devices based
onAtkinson
andShiffrin
[Thom85].
Sensory
input
consists of environmentalinput
such as a"voice"
we
hear,
"colors" wesee,
etc.The
processes ofattention and pattern recognitionhelp
in
theidentification
and selection ofinformation
for
further
processing.To
do
this attention andpatternrecognition we need to
draw
onbackground knowledge from
long-term
memory.These
processes willbe
discussed
in detail
in
the next section underhuman
comprehension.
Sensory
Sensory Memory
Decay
Input
!
Long-Term
Memory
Attention
Pattern Recognition
Short-Term
Memory
^^
T
1
1
Encoding
RetrievalRehea,Sal
Information
in
short-termmemory
consists of a representation ofthe externalenvironment
from sensory
information,
andpreviously
learned information
retrievedfrom long-term
memory.This information
existsonly for
avery
short time(some
experiments suggest
15
to30 seconds)
[Thom85].
If
we wantto remembersomething
for
thefuture,
we encode short-termmemory
tolong-term
memory.If
it is
notencoded
properly
and wedo
not continue to processi.e.
reherseit
in
short-termmemory,
it
willbe
decayed.
The
most obviousfactor
in
decaying
is
the passage of time.The
longer
the timeinterval
between
learning
and recall ofinformation,
themore
likely
it
willhave
been decayed.
More
importantly,
however,
it
seems thathow
welltheinformation
waslearned
and encodedoriginally is
afactor
in its
preservation.In
otherwords,
how
comprehension about an event was managed willbe
anotherfactor in
determining
how
wellsomething is
remembered[Darl84].
2.1.
Human Comprehension
as aTheme
Human
comprehensionis
guidedby
theconceptually driven
processing
ofhypotheses based
onexpectation.Many
psychological studies revealthatanindividual
may
receive severaldifferent
pieces ofinformation,
but
all of those with the same theme willbe
integrated into
a singlememory
representationduring
thecomprehension processes.
Later it
is
difficult
torememberthe exactinput
sentencesin
subsequent
memory
tasks.After
themeaning
is
comprehended, the exteriorstructureandexact words are
forgotten.
(1)
The housewasinthevalley. The housewaslittle.Thehousewas yellow.
(2)
The littleyellowhousewasinthevalley.For
example,
apersonoriginally
may
have heard
the sentences of(1)
in Figure
2-2,
but he
remembersit
as(2). The
mostimportant
conceptually
driven force
in
comprehension
is
the theme of the material.A
comprehender'sknowledge
aboutwhatthepassage pertains to can guide the
understanding
ofthe materialandit is
very
difficult
tounderstand a passagethatseemstohave
nothemeat all.One's
priorknowledge
of the general semanticdomain
of the theme of thematerial can also affect the comprehension of
information.
For
example,knowledge
engineerswith a
high degree
ofknowledge
about adomain
area, understandmore andperform
better
than those withlittle domain knowledge.
These
"high-knowledge"engineers are
better
able tointegrate
the newinformation
with the goal structurein
theirstoredknowledge
aboutthedomain.
Prior knowledge
also can comein
theform
ofapoint ofview, which canhelp
organize
information
thematically
asit is
comprehended.Here is
an example:PichertandAndersongavesubjectsastorytoreadabouttwoboys playing inahouse. One groupwas toldtoreadthestory fromthepoint of view of aburglarconsidering robbingtheplace;thesesubjectstended torememberdetailsaboutvaluableobjects,isolation fromsurrounding
houses,
and other suchdetailsof relevancetoa potentialburglar. Theothergroupof subjects rememberedfromthepoint of view ofareal estateagent;thesesubjectsremembereddetailssuch as size and number ofrooms,condition ofthehouse,
andqualityoftheyard[Thom85].22.
Schema
Theory
An important development in
cognitivepsychology
is
theschematheory
(Alba
&
Hasher,
1983).
The
assumption ofthisapproachis
that spoken or writtentextdoes
words,
the goal of schematheory
is
to provide theinterface
between
thecomprehender and the context.
Schema
theory
goesback
to the philosopherImmanuel
Kant(1781),
who noted that conceptsonly had
meaning
insofar
asthey
could relate to
knowledge
theindividual
already
possessed.The definition
of aschema
is "a
unit of organizedknowledge
aboutevents,
situations, orobjects",
ortechnically
"a data
structurefor
representing
agenericconceptin
memory"
(Moates
&
Schumacher,
1980).
Schema
affecthow
we process newinformation
andhow
weretrieve old
information
from
memory,
by
following
these threebasic
principles:Selection
From
all theinformation
in
a given event or message,only
some willbecome
incorporated into
thememory
representation.The
pre-existence of an appropriateschema
in memory
willinfluence
the selection process greatly.If
no such schemaexists,
thenboth
comprehension andencoding
willbe
poor.By identifying
thetheme,
more
important
and pertinentinformation
of the context canbe
selected, processedmore
deeply
andbetter
remembered.Interpretation
The basic
structure of schemata consists of slots where particularinformation is
"filled
in" when a schemais instantiated. These
slots are usedfor information
acceptance or retrieval of
inferences. The
inferences drawn
during
comprehension perform two generalfunctions. First
they
make connectionsbetween
information in
new materialand
knowledge already in long-term
memory.Secondly,
they
fill in
empty
slots
implicitly. For
example,if
youheard "Frank hit
the nail,"you
may infer
"Frank
used a
hammer."
In
otherwords,if
astrongly implied instrument
ofsomeactionis
notexplicitly
mentioned,it
may
be inferred
and added to thememory
representation.In
addition,
if
no valueis
providedfor
a given variablein
the certaininstance,
then adefault
inference
is
used tofill in
the most typical value whichis
reservedin
theselected schema.
For
example,if
youheard "the
hungry
snake caught theknowledge
of snake andhunger
enable youtoinfer
that the snakeatethe mouse.Such
information
was not statedin
the stimulusinput
(sensory
input),
ratherit
wasfilled
in
by
using
default
inferences
andinferring
thatcatching is followed
by
eating,
whichmay
be
inaccurate.
If
youheard
that"the
little
girl caught themouse,"
a whole
different
schema and
inference
willbe
usedandinterpreted
quitedifferently.
Integration
Schemata
are embeddedwithineach otherandform
ahierarchical
structureofschematic
information.
For
example,
wemay have
a schemafor
"face",
whichcontainsnose,
mouth and ears.We may
alsohave
subschematafor
noses,
mouthsandears,
allsubsumedundertheglobalschema"face."
23.
Conclusion
In human
comprehension,
phonemes and syllables areperceived,
recognizedand combined to words.
To
construct a whole sequence of the words, thehuman
retrieves the
knowledge
schematafrom
memory
anddraw
inferences based
on thisknowledge. We humans
typically
have
top-down(conceptually-driven)
andbottom-up
(data-driven)
processing going
on simultaneously.Such
processing involves
expectation about
how
tointerpret
thedata based
on our previous experience orknowledge in
long-term
memory.Such
expectations control ourinterpretation
ofthatdata
and prevent usfrom
doing
purely data-driven
processing.The
mostimportant
subjects
in
this chapterdealt
with"filling
slots"
in
schematheory
and top-down andbottom-up
processing.These
arevery important
aspects of"Conceptual
Dependency
Frames"
Chapter
3.
Learning
Approach using Conceptual
Dependency
Frame
Automatic
conceptlearning
from
alarge
amount of complexinput
data is
adifficult
process.This
chapterdiscusses
the conceptualdependency
frame
for
comparing human information processing
to that of a machine.Conceptual
Dependecny (CD)
is
frequently
usedfor
naturallanguage
processing
techniques.But
theideas
ofusing
slots with expectations andcombining
top-down andbottom-up
processing
techniques
for comprehending
the new concepts areprecious toolbehind
conflict/duplication checkerin IKAS. We
willlook
at aninteresting
experimentdone
by
Mallory Selfridge(1980) involving
amachinelearning
programdeveloped
tomodel oneyoung
child,
Joshua,
ashe learned
to understand simplelanguage
at alevel
between
one and twoyearsofage.The
program startswiththelevel
ofknowledge
thatJoshua had
at age one andit
succeedsin
demonstrating
theunderstanding
andcomprehension abilitiesof achild at age two.
3.1.
Conceptual Analysis
Let's
considerthefollowing
sentence:JohnwenttoBuffalo.
The
analyzer goes through the sentencefrom
left
toright,
wordby
word.First,
it finds
the wordJOHN
andlooks
it
up in
a specialdictionary
whichreturns theCD
structure.
It
returnsaCD for
JOHN
as:(PERSON
FIRSTNAME(JOHN))
JOHN
is
savedin
someplace,
and the analyzer goes toWENT.
The
dictionary
saysWENT
is
the past tenseform
of the verb"to
go"and returns the
(PTRANS
ACTOR(nil)
FROM(nil)
TO
(nil)
TIME
(past))
ACTOR,
FROM
andTO
areempty
slotstobe filled later. TIME
is
a slot thatis filled
with value"past".
Now
the analyzer makes thisCD form
ofPTRANS
tobe
the
backbone
ofthe entire sentence tobe
understood anddecides
that themeaning
ofthe sentence
is
aPhysical Transfer
of a person namedJohn.
Notice
thatbefore
this point
it
was abottom-up
process,
which tried to understandby
scanning
on aword
by
wordbasis.
After
the analyzerfigures
out thebackbone
of the sentence,top-down
processing
thentakes place.The
expectations associatedwiththe slots ofthePTRANS CD form
are used tointerpret
the rest of the sentence.The
next wordis
TO.
By
satisfying
one of the syntactic expectationsfor
thePTRANS
slotsit is
implied
that the possiblefilling
for
theTO
slotis
coming, whichin
this caseis
BUFFALO. BUFFALO is
a suitable candidatefor
both
theFROM
andTO
slots,
but
since
it is
following
TO
in
the sentence,by
syntactic expectation,TO
is
theright
slotfor
BUFFALO. As
aresult,
thefollowing
CD
form is
constructed:(PTRANSACTOR(PERSON
FIRSTNAME(JOHN))
FROM
(nil)
TO
(BUFFALO)
TIME
(past))
The
significantfindings
ofthisCD
analysis are:1)
Conceptual
analysisis
expectationdriven.
All
empty
slotsin
theCD
frame
have
expectations about possiblefillers.
In human
comprehension, as explainedin
Chapter
1,
schematahave
slotsfor interpretation.
For
example,
the concept aboutCalifornia has
a slotfor life-style in California.
If
youhear
that some oneis from
beach
oris
easy-going,
simply from
thefact
that youheard
the personis from
California. This is because
subconsciously,
the slotfor
life-style
in California already
has
an expectationfor
aneasy-going life
style.2)
Conceptual
analysisis
dictionary
based.
The
dictionary
entry
of a wordcontains a great
deal
ofinformation
aboutmeaning
and proper usage ofthe words.The knowledge is
storedusing
special routinesthatgenerateconceptualframes.
3)
Conceptual
analysisis
done
by
using both
bottom-up
and top-downprocessing.
Also both
syntactic and semanticprocessing
aredone
simultaneously,
withthe semantic
taking
precedence over syntactic.Since
the goalis
to understand themeaning
of thesentence,
syntaxis only
used whenit helps in
semantic analysis.In
human
comprehension,
bottom-up
and top-downprocessing
is
done in
parallel.Pattern
recognitionis
avery
general phenomenon ofhuman information
processing
and
it deals
withhow
we recognize environmentalstimuli(bottom-up)
as exemplars ofconcepts(top-down)
wealready
have
in
ourlong-term
memory.In
additionto patternrecognition,
humans
have
thecapability
ofgeneralizing
conceptsfrom
positive andnegative
instances.
Using
aConceptual
Dependency
Frame
with slotsfilled
withexpectations,
generalizationscan
be
achieved.The
following
sectiondiscusses
a computermodeling
of one child's
learning
process.3.2.
Modeling
oflearning
Process
Before
proceeding, we should note the assumptions the experimentis based
upon.
First,
a childlearns language
by
using
a considerable repertoire ofpreviously
acquired concepts and world
knowledge.
This is
very
similar to the aspects ofSchema
in
certain situations that enables them toinfer
meaning
(selection in
Schema
theory).Third,
to
achieve more specificbehavior
of theprogram,
the modelis based
onobservation of a single child.
It is
important
todescribe
whatkind
ofknowledge
Joshua(Human)
had
atage one since themodeling
program starts atthatlevel,
here
it
is:
Knowledge
ofObject
Experiment: Joshuatakesa
toy
cup, and pretendstodrink from it.Clearly,
Joshua
knew
that cups arefor
drinking
purpose.He
had
theknowledge
ofthefunctions
and properties ofthe object.Knowledge
ofRelations
Experiment: Joshua is playingwith
toy
nesting barrels. Joshuatakesone ofthebarrel halvesand mouths it. Hemakes alittlestack ofbarrelhalves,
twohigh.Joshua had
theknowledge
of the relations that existamong
objects.In
theexperiment
above,
Joshua
put onebarrel half
onto another.He
seems to understand therelationship "on
top
of.Knowledge
ofActions
Experiment: Joshua is playing catch with his mother and sister.
They
are rolling the ball among themselves.Joshuacatchestheballand"throws"
ittohismother.
Joshua had
theknowledge
of theunderstanding
actions andfunctions
associatedwiththegiven object.
3.3.
Program's
Initial
Stage
We
know
some oftheknowledge Joshua had
at age one.Now
let's
look
at thePeople
Mallory,
Child,
ParentObject
Tablel, Boxl, Balll,
BlocklRelations
(TOPVAL(NIL);
ontop
of(CONTAINED
VAL(NIL));
insideofactions (DISAPPEAR
VAL(NIL));
disapplear(PTRANS
ACTOR(NIL) OBJECT(NIL)
TO(NIL)
;physicaltransfer
Table3-1Program'sIntialKnowledge
The
programbegins
with the similar(not
quite thesame)
knowledge
thatJoshua
began
with,but
with nolanguage knowledge.
The
user gives the program acommand and an optional simulated visual
input.
Then
the programinfers
theresponseto the
input
and executesthatresponseby
printing
it. The
program uses theCD Frame
developed
by
Schank
(1973)
to representJoshua's
conceptualknowledge
and
his
understanding
of words.As
discussed in
Section
3.1,
aCD
frame
consists of a symbolrepresenting
a conceptfollowed
by
labeled
slots, whichcarry
particularinformation
associated with thatinstance
ofthe concept or contain pointers to otherCONCEPT TOP CONCEPT PTRANS
TEMPLATE (TOP VAL
(NIL))
TEMPLATE
(PTRANS
ACTOR(NIL)OBJECT(NTL)
TO(NIL))
MIL
\CTOR
OBJECT NIL
ro
NIL
Figure 3-1 Conceptual
Dependency
FrameIt is
our assumption that the programhas
knowledge
ofobjects,
actions and relations equivalenttoJoshua's
atage one.So
somewherein
theknowledge
base,
theprogram
keeps
the templates of conceptsconsisting
of theobjects,
actions and relationshipsshownin Fig.3-1.
3.4.
Response
Inferring
Rule
The
modelis
based
on thebelief
that the prerequisitefor
learning
themeaning
of a new wordis
anunderstanding
of the utterance.In
order to understand themeaning
ofthe utterance, a childinfers
thedesired
response to that utterance.meaning
of anew word.Later
on,
we will seehow
these responseinferring
rules areused
in
theprogramthatreceives thecommandfrom
the user(parent)
and prints out the response.Here
are some of the responseinferring
rules usedin
the exampleprogramrun
in Section 3.5:
Function
andproperty inference
If
an utteranceis
heard
whileinteracting
with an object, that object on thebasis
offunction
orproperty
becomes
theinference
ofthatutterance.Emphasis-Focus
Attend
to thelouder
wordsin
an utterance.Event-Name Inference
If
an emphasized unknown wordis
usedin
an utterancecontaining
nootherknown
words,
and a response canbe inferred
for
that utterance,infer
that themeaning
ofthe
unknownwordis
the responseto theutterance.Meaning-Refinement Inference
If
part ofthelearned
meaning
of a wordis
notpart oftheinferred
response toan utterance
containing
thatword, thenremove thatpartfrom
themeaning.Event-Naming
Inference
If
a word and an object aresimultaneously drawn
toattention,
infer
that the3.5.
Program
Run
The
following
two sample program runsshowhow
the programlearns
withouthaving
any
previousknowledge
oflanguage. The first
wordthe programlearns is "bye
bye"as shown
below:
Program
Run
1
parent says:bye bye child sees:
(mallory
leaves)
child attendsto"byebye"(ruleused:emphasis-focus)
child
infers
"byebye" means"(disappearobject
(mallory))"
(ruleused:event-name)
Program Run
2
parent says:
byebye
slipperschild sees:
(parent
removesslippers)child attendsto 'slippers"(ruleused:emphasis-focus) child
infers
"slippers"means"(slippersl)"(rule
used:event-name) childgeneralizes"byebye'from
"(disappearobject
(mallory))"
to
"(disappearobject(nil))" (ruleused:meaning-refinement)
Let's stop here
to note whatis
happened.
After
program run1
the systemis
already
equipped with theknowledge
about the word "BYEBYE"meaning
"MALLORY DISAPPEARS".
"BYEBYE"becomes
the concept and templateis
stored as:
BYEBYE- (ACTION
OBJECT)
A
newframe is
generated with slotsACTION
andOBJECT.
"MALLORY"
and "DISAPPEARS"
fill
theOBJECT
andACTION
slots respectively.In human
memory
regardless ofits
truth.Here
in
theprogram,
theframe
about "BYEBYE"is
generated and "MALLORY"is
placedin
theOBJECT
slot and the child associatesonly
"MALLORY"with"BYEBYE".
In
program run2,
"BYEBYE"
is
thekey
wordtorecall the
CD
frame
(schema,
in
humans)
and the program expects "MALLORY"instead
of"SLIPPERS".
So
a conflictexists, and the program generalizes the conceptof "BYEBYE"
from (DISAPPEAR
OBJECT(MALLORY))
to(DISAPPEAR
OBJECT (NIL)).
3.6.
Conclusion
In
thischapterwehave
seen acomputermodel oftheprocess usedby
a childtolearn
a small subsetoflanguage.
This
modelbegan
withonly
non-languageknowledge
gained throughprevious experience
(social
input).
An
interesting
point madehere,
is
thatwhen an uncertain conceptis
given,
theprogram actsin
a similarway
as ahuman
in
terms ofretrieving
frames(schema,
in
humans)
andtrying
tofit
new wordtoexisting
slots.
Also,
if
thereis
aconflictbetween
a newinput
and alearned
conceptvalue, the systemgeneralizesand continueslearning.
In
humans,
one class oftheories of pattern recognitioninvolves feature
analysis.The
sensory input
is
analyzedtoproducea set of specific perceptual attributes calledfeatures.
After
suchanalysis,
the resultantlist
offeatures is
examinedfor
a possible match to apreviously learned
concept.Sometimes
during
or afterfeature
analysis,
the concept matched willbe
restructured to supportnew
feature
lists
or to correctwrong
listing
offeatures
it
already learned. The
next chapterdeals
withhow
we canschematically
representthe structure ofthese conceptsChapter 4.
Inductive
Learning
To
make a more generalized concept about afact(event,situation)
or a moregeneralized meta-level rule
from existing
specificrules,
the mechanism ofinductive
learning
is
essential.When
thereis
a conflictbetween
a newrule and an oldconcept,
an
induction
routinewilltry
toresolve thedifference
orpossibly learn
supplementary
things.There
are atleast
threeoccasions where thiscouldhappen.
First,
the new rulecould
be incorrect
and canbe
correctedaccording
to theold concept.Second,
the oldconcept could
be incorrect
couldbe
changedaccording
to thenewrule.Third,
if
the newruleis
correct as well as the oldconcept,
there shouldbe
a generalization madebased
uponboth
thenewrule and theoldconcept,
andthe old conceptbecomes
moregeneralized
knowledge
about thefacts.
Of
courseduring
thisprocess,
human
interaction may be
required to confirm the changes.In
thefollowing
sections,
inductive
learning
is discussed along
with several methods of generalizationdiscussed
in
Section 4.4.
4.1.
Types
ofInductive
Learning
Inductive
learning
is
a process ofacquiring knowledge
by
forming
newinference
rulesbased
onfacts
gottenfrom
the environment orateacher.This
processinvolves
methodsfor
generalizing, specializing,
transforming
andrefining knowledge
representations.
Inductive
learning
canbe
subcategorizedinto
learning
from
examples and
learning
from
observation.Learning
from
examples canbe
viewed as asearch
for
plausible general conceptdescription (inductive assertion)
which explainsthe given
input
data from
a set of examples and counterexamples,
it is
usefulfor
predicting
newdata.
Learning
from
observation, or unsupervisedlearning,
includes
thetheory
formation
system, classification system and similartaskswithoutthebenefit
In
learning
from
examples(ConceptAcquisition),
theF(Facts)
is
acharacterizationofsome
object(situation)
preclassifiedby
ateacherinto
one or moreclasses(concepts).
The induced hypothesis
canbe
viewedas aconceptrecognition rulesuch that
if
a new object satisfies thisrule,
thenit
is
a member of theinduced
class(concept).
Let's
seefollowing
example aboutlearning
from
example andobservation:
(learning
fromexample) ifshapeis boxandhas_keyboard
isyesand coloriswhiteandhasmonitor isyes then
object
is
computer;(learning
from observation) Mostcomputers arewhitecolor;4.2.
Applications
ofInductive
Learning
System
Before
we gofurther into
inductive
learning,
let's look
at the potentialfor
application of a
learning
system.Probably
the mostimportant
applicationis
theautomatic construction of
knowledge bases
for
expert systems.Currently
afew
commercially
existing
expert system shells are equipped with so called"induction
table",
whichis
used toautomatically
generate the rulebase
from
the specificexamplesofthe table.
VP-Expert
andRule
Master are the examplesofthem.These
shells allow the user to create the table with variables and
attributes,
andthen,
according
to the each rows of thetable,
conjuntive rules areautomatically
created.Neither
of these shellhas
thecapability
ofgenerating
generalizedrules,
still thisexpert's
logic.
A
less
direct but potentially
promising
use ofinductive
learning
systemsis in
the machine assisted refinement of aknowledge
base
during
expert systemdevelopment. In
thiscase,
alearning
system couldbe
used todetect
and correctinconsistencies,
to remove redundancies and tosimplify
theknowledge
base
using
conceptual
analysis,
whichis
mentionedin Chapter 3
ofthisthesis.Observational Statements
(F)
Knowledgeaboutsomeobject,
situations
Backgroud
Knowledge
(B)
Assumptions,
*
Constraint
Figure4-1 Inductive Inference
From
theviewpoint ofthe applicationslearning
system, suchasconstructing
anewrule
(derived rule)
orchecking
consistency
ofaknowledge
base
using
conceptualanalysis, the most
important decision
to makeis
thedescription
space we aredealing
descriptions
expressedin high-level descriptions
typically
applied to real worldobjects,
ratherthanabstract mathematical conceptsor computations.43.
Inductive Inference Paradigm
In
constrast todeduction,
premises ofinduction
are specificfacts
rather thangeneral axioms.
The
goal ofinference
is
toformulate
plausible generalassertions thatexplainthe given
facts
and are able topredict newfacts. In
Another
words,inductive
inference
attempts toderive
a complete and correctdesription
from
specificobservations of phenomenon or parts of
it.
In
figure
4-1,
Observational
statements(facts)
F
representspecificknowledge
about someobjects,
situations,process,
and soon.
Background knowledge
(B)
defines
the assumptions and constraintsimposed
onthe observational statements and generated candidate
inductive
assertions.A,
Inductive
Assertion
(hypothesis)
H
tautologically
implies
fact
F if
F
is
alogical
consequence of
H
such asif
the expressionH
=F
is
true under allinterpretations,
andthe
following
expressionshold.
H
|
>F
(
H
specializes toF)
orF
|
<H
(
F
generalizestoH)
4.4.
Generalization
Rules
In
thefollowing
ruleformat,
"D"
stands
for
some of thearbitrary
expressions(context
descriptions)
that are augmentedby
additional components.Here is
oneexample of
how
ruleformat
canbe
interpreted:
A&B::>K
Which
is
read as"The
conditionA
andB
is
in
classK."
andcan
be
turnedinto
ageneralization rule:
Which is
read as"The
conditionA
andB belongs
to classK,
which canbe
generalized as the condition
A
belongs
to class K."Let's
say A
standsfor
"apple",B
stands
for
"red" andK
standsfor
"fruit" then the generalized rule above says:"a
redapple
is
afruit"canbe
generalizedto"an
appleis
afruit"4.4.1.
Selective
Generalization Rules
If
wehave
thegeneralizationrule:S1::>K |< S2::>K
This
ruleis
called "selective"if S2 has
nodescriptors
otherthan those usedin
SI. If S2
containsdescriptors
that are notin
SI
then the ruleis
called"constructive".
The
generalization ruleslisted
in Section 4.4.1
is
examples of selective generalizationrules.
4.4.1.1.
Condition
Dropping
Rule
D&S::> K|< D::>K
This
ruleimplies
that a conceptdescription
canbe
generalizedby
simply
removing
aconjunction.Please look
atthe example above("an
appleis
afruit").
4.4.1.2.
Alternative
Adding
Rule
D1::>K |< D1VD2::>K
This
ruleimplies
that concept generalization canbe
achievedby
adding
logical
disjunction.
This
canbe easily
explainedby
extending
the scope ofpermissible valuesofonespecific
descriptor. Let's
look
atthefollowing
example:D & [color=
blue]
:: > K|
< D & [color=4.4.13.
Interval
Closing
Rule
D&(L=a)::>K
D&(L=b)::> K
l<
D&(L=a..b)::K
where
L
is
alinear descriptor
and a andb
are some specific value ofdescriptor L. The
twoleft
rules are associated with alogical
conjunction.Let's
consider a machinewith
different
temperatures 'a'and'b\
'K'representsthe normal
state ofthe machine.
The
left
two rules saidthatif
thetemperatureis
'a' or 'b' then the machineis
in
a normal state.The
right side rule generalizes theleft
rulesby
allowing
the temperature tobe
in
theinterval
'a..b'.
4.4.1.4.
Climbing
Generalization
Tree Rule
D&(L=a)::>K
D&(L=b)::>K
D&(L=i)::>K
l<
D&(L=s)::K
where
L
is
a structuraldescriptor
representing
thehighest
parent nodein
thestructural
hierarchy
whosedescendants include
a,b..i.The
following
exampleillustrates
therule:thereexists
P,
D &(shape(P)
=triangle):: > Kthereexists
P,
D &(shape(P)
=rectangle):: > K
can
be
generalizedtothereexists
P,
D &(shape(P)
=4.4.1.5.
Turning
Constants
into Variables
Rule
F[a]
F[b]
F[c]
F[i]
l<ForAllv,F[v]
where
F[v]
standsfor
somedescription dependent
on variablev,and a,b,.. are constantsA
corresponding
ruleforconcept acquisitionis:F[a]
&F[b]
&...::> K |< There Existsv,F[v]
::> KAssume
that 'a','b' and soon,
are parts of classK
thathave
property K. The
generalization rule replaces the constant with a variable and states that
if any
part ofanobject
has property
F
then theobjectbelongs
toclassK.
4.4.1.6.
Turning
Conjunction into Disjunction Rule
F1&F2::> K |< F1VF2::> K
A
conceptdescription
canbe
generalizedby
replacing
a conjunction operatorwitha
disjunction
operator.Let's
seethefollowing
example:Fl:theanimalflies
F2:theanimal
lay
eggsFl & F2:: > Birdcanbegeneralizedto
FlVF2::>Bird.
4.4.1.7.
Inductive
Resolution
Rule
P & Fl::> K
not(P)&F2::> K l<
F1VF2::>K
whereP
is
predicated andFisformular
Assume
thatK
is
thesituationwhere a person goestoa movie.The
personwillgoto themovie
if it is
aweekday
(P)
andthey
have nothing
elsetodo
(Fl),
or apersonwill goto a movie
if it is
aweekend(not(P))
and the moviehas
recieved ahigh rating
(F2). The
generalized rule says a person goesto the movieswhen eitherthepersonhas
nothing
todo
orthemoviehas
been
highly
rated.4.4.1.8.
Extension
Against Rule
D1&(L=R1)::> K D2&(L=R2)::>
not(K) l<
(L=/
=R2)::> Kwhere setsR1,R2are
disjoint
This
ruleis
thebasic
rulefor
learning
discriminant descriptions. From
adescription
ofan objectwhichbelongs
toK(positive
example)
and adescription
of anobject not
belonging
toK(
negativeexample)
the generalizationrules outthe negativeexample.
4.4.2.
Constructive
Generalization
Rules
These
rules generateinductive
assertionsthat usedescriptors
not presentin
theoriginal representation space.
Background
knowledge
remembers relationshipsamong
objects andpreviously learned
concepts.D&F1::> K
Fl => F2
|
<D&F2::> K
This
rule saysif
a conceptdescription
contains a partFl
thatis known
toimply
another concept
F2
(through background
knowledge)
then a more general conceptdescription is
obtainedby
replacing
Fl
withF2.
thereexists
P,
(color(P)
=black)(
width(P)&
length(P)
=large)
:: > Ksupposethesystemalready hada conceptaboutAREAsuch as
for
allP,((width(P)
&length(P)
=large)
=(area(P)
=large)
then thegeneralizationruleisproducedas: thereexist
P,(
color(P) = black)(
area(P) = large)
:: > K4.5.
Conclusion
Inductive
learning
systems canbe
usedfor
the automatic construction of aknowledge base for
expert systemsby
producing
production rules and semanticnetworks.
This
can shorten thelong
process offormalizing
andencoding
an expert'sknowledge.
Also,
inductive
learning
canbe
used to refine aknowledge base
initially
developed
by
ahuman
expertby
detecting
inconsistencies,
removing
redundancies andsimplifying
the expert-derived rules.Machine
Learning
itself is
still abroad
anddifficult
areain
Computer
Science,
especially
for
practical usage.There
shouldbe
facts
wellintegrated.
This
chapter endsmy background
reasearch over thelearning
Chapter 5.
IKAS
IKAS
(Intelligent Knowledge
Acquisition
System)
is
a general purposePC
based
expert systembuilding
shell withlimited
comprehension capabilities.This
chapter
discusses
the theoreticalbackground underlying IKAS
andexplains thedesign
of the
IKAS
implementation.
Of
course,
IKAS
has
otherfunctions
andfeatures
in
addition to comprehension
capabilities;
however,
for
the theme of thisthesis,
emphasiswill
be
placed ontheknowledge
representation andcomprehensionaspects.In
thischapter some ofthe theoreticalbackground from
theresearchdone in
Chapter
2
throughChapter
4
and willbe
modifiedslightly
to meet the requirementfor
thepractical aspects of
IKAS.
5.1.
Overview
ofIKAS
IKAS (Intelligent Knowledge
Acquisition
System)
is
an expert systembuilding
shell with a machine-assisted concept checker
for easy integrated
rule-entry.Unlike
most expert system shells
currently
available,
IKAS
notonly
performs rule syntaxchecking,
but
also maintains semanticintegration
of theknowledge
base
by
using
aConcept
Base. The Concept Base is
incrementally
grownduring
the cycle of expertsystem application
development
and safeguards thewholedomain from conceptually
conflicting
rulesby
finding
possibleinconsistencies
orduplications
of concepts andgiving
recommendationsfor
possible solutions.IKAS's
conceptchecking
unit allowsthe user to see the
hierarchy
ofconceptsgraphically
and edit the rulespertaining
toonly
therelatedtopics.More
functionality
ofIKAS
willbe
discussed
in
Chapter 6.
52.
Knowledge
Representation
in
IKAS
In Chapter
1,
webriefly
discussed human
learning,
focusing
especially
onhow
Section
2.1,
individuals
receive severaldifferent
pieces ofinformation,
but
all ofthosewith the same
theme
willbe
integrated
into
a unifiedmemory
representationduring
comprehension.
Using
a similarmethod,
IKAS
uses thelist
offeatures
toidentify
objects
(facts,
situations,
themes).For
example,
if
we want to represent andcomprehend the sentence
"The little
yellowhouse is in
thevalley,"
separate
facts
suchas:
thetype_of_objectis house
the
locationofobject
isin_the_valley
thesize_of_objectis little
thecolor_of_objectisyellow
would
be
neededfor
IKAS
to understand the situation.In
otherwords,
IKAS
represents
knowledge
in
theform
of symbolicdescriptions. Each
fact
(situation)
is
represented
by
the nameoftheobject,
arelation_operator andavalue.Also,
eachfact
(situation)
may be
representedby
otherspecific sub-facts.For
example,
the
location_of_object
isin_the_valley
could
be
representedby
thefollowing
specific sub-factsif
we assume thatif
thelocation is in
the valley, there willbe
many
mountains,
trees and ariver
around theobject.
thenumberofmountainsaround
is
manytheriver_aroundmaybe yes
the trees_aroundmaybeyes
The
abovefacts
willbecome
expectations wheneverIKAS
encounters thefact
about"the location
of objectis in
the valley."This
is
analogous to theway Conceptual
Rule Base
Rule 123
Domain Concept Base F5
Action
Object Representation Base
Translation
iules To
Try
O0H
Rule
Pointer- 123Figure 5-1 IKASKnowledge Base
To
get a moredetailed understanding
ofknowledge
representationin
IKAS,
it
is necessary
todistinguish
thedifferent
levels
ofknowledge
structuresIKAS
maintains.As
shownin Figure
5-1,
theknowledge base
ofIKAS
is
divided
into
two parts.These
are representation-specific and
domain-specific
meta-levelknowledge.
Representation-specific knowledge
is knowledge
abouthow
to utilize theinternal
knowledge
in
more structured and efficient ways.For
instance,
therepresentation-specific meta-level
knowledge,
IKAS's internal
rulestructure,
theinference
engine, andthe rule translationroutines allowauserto ask"WHY,""HOW" and
"Whatlf,"
to
find
outwhy
a question was asked of theuser,
how
a certainwould affect the
final
goal ofthe system.In Figure
5-1,
theRule Base
and theObject
Representation
Base
contain representation-specificknowledge.
Domain-specific
knowledge
maintains theintegrity
ofdomain
conceptsby
spotting
possible conflicts.Domain-specific
meta-levelknowledge
in
IKAS
is
maintainedin
theDomain Concept
Base
andis
usedfor
preserving knowledge integration
andperforming
conceptualanalysis on
incoming
rules thatinfluence
the parameters(situations).
As
time
goesby
and more rules are
received,
theselearned
concepts about parametersbecome
background knowledge
and areusedlater
as templatesfor
conceptsaboutfacts.
The
possible usefor
thisbackground knowledge is
very
similar toits
human
usage.
When
welearn
a newfact
about some object orsituation,
weusually
compareit
with the studied concept about the objectin
ourlong-term
memory.If
it fits
wellwithour old concept aboutthe
object,
then theold conceptis
notchanged,
but if
there
is
a conflictbetween
the newinstance
and the oldconcept,
thenweask "why" andtry
tocome
up
withanoptimal conceptoftheobject.5.2.1.
Rule Base
The IKAS
rulebase
is
the set of rules thatdescribes
certainfacts,
situations orphenomena
by
Premise
(Condition)
andAction
(Determination)
rules.For
example,
if
we wantto enterknowledge
about"The little
yellowhouse is
in
thevalley"
as a
fact,
which we will call
here
House_fact_l,
weprovidethefollowing
conditions:is(type_object,house)
is(location_object,in_the_valley)
is(size_object,little)
is(color_object,yellow)
House_fact_l has
slots with the attributes given above.Each
slot consists of anotherfact
with anobject,
operator and value.Here location_object becomes
object,
"is"operator
defined. This
condition,
"is(location_object,in_the_valley)",
also canbe
afact
defined
by
sub-conditions such as:is(number_of_mountains_around,many)
is(river_around,yes)
is(trees_around,yes)
By
these twofacts
we can enter thefollowing
rulestoimplement House_fact_l:
rule1: iftype_objectis
house
andlocation_object
isin_the_valley
andsize_of_objectis littleand
color_of_objectisyellow
then
house_fact_l isyes;
rule2:ifnumber_of_mountains_aroundis manyand
river_around
isyes andtreesaroundisyes
then
locationobject is
in_the_valley;
Let's
look
atanother examplerulebase,whichdetermines
thename of an animal.rule1:ifmammalisyesand carnivore
is
yesandcoloris
tawny
andhas_dark_spots isyes
then
animal
is
cheetah;rule2: ifmammal
is
yes and carnivoreisyes andcoloris
tawny
andblack_stripesisyes
then
rule13:
if bird is
yes anddoes_fly
isnotyesandhas_long_neck
isyesandhas_long_leg
isyesandcoloris black and white
then
animalisostrich;
rule15:if
bird
isyesanddoes_fly
isyesthen
animalisalbatross;
rule8:ifpointed_teethisyes and
has_claw isyes and
has_forward_eyes
isyesthen
carnivoreisyes;
ORB(ANIMAL)
TRANSLATIONANIMAL
UILE-LIST
[1,2,13,5]
VALUE-LIST
CHEEJAH,TIGER,..ALBATROSS]
INFLUENCE
JYPOINTER ' TO POINTER OTLUENCE\
ORB(CARNTVORE)
TRANSLATION CARNIVORE
RIIT.F.-T.IST[S,7]
VALUE-LIST
[YES]
M=LUENCE
?Y POINTER
rule7: ifeat_meat
is
yesthencarnivoreis
yes;This
animalrulebase
willbe
usedfor
examplesthrough thelater
sections andacomplete
listing
oftherulebase
is
listed in
Appendix
B.
522.
Object Representation Bases
An
Object Representation
Base
(ORB)
is
created when a new objectis
introduced.
As
shownin
Figure
5-2
anORB
contains the objectname,
theEnglish
translation
for
theobject(e.g.
the object carnivore'stranslationis
"the
animalbelongs
to the carnivore
group")
and thelist
of rules thatdetermine
the value ofthe object(e.g.
theanimal representationbase has
pointerstorules[1,2,13,15]
andthe carnivorerepresentation
base
has
pointers to rules[8,7],
etc.).The
possible valuesfor
theobjectare also remembered
(e.g.
animal representationbase has
avaluelist:
[cheetah,
tiger,
ostrich,
albatross]).The
main purpose of the anORB
is
to maintain a translationfor
each object and to maintain
lists
ofrules pertinenttoeach object sothatefficientrulechecking
canbe
performed at execution time.Each
objecthas
twokinds
ofpointerstootherobjects.
One is
the"influenced
by"pointer,
whichpoints to theobjectsthataffectthis
object,
and the otheris
the"influence
to"pointer,
whichpoints to theobjects thatare affected
by
this object.For
example,
ORB
(CARNIVORE)
has
an"influence
to pointer"to
ORB(ANIMAL).
These
pointers are usedfor
maintaining
an accurateconcept
hierarchy.
523.
Domain
Concept
Base
The
Domain Concept
Base
(DCB)
is
the set of main-facts and sub-factsrepresented
by
aconcepthierarchy.
The
main-facts constitutethe actionpartof aruleand
the
sub-facts constitute the premise part of a rule.Each
sub-fact canitself be
aDCB
IS(ANIMAL,CHEETAH)
RULE-POINTER
[1]
S(MAMMAL,YES)
:S(CARNlVORE,YES)
S(COLOR,TAWNY)
[S(HAS_DARK_SPOTS,YES)
DCB
IS(MAMMAL,YES)
DCB
IS(MAMMAL,YES)
DCB
IS(CARNTVORE,YES)
Figure 5-3 Domain Concept Base
concept
hierarchy.
Each
fact
consists ofanobject,
operatorandvalue.For
example,
in
the animal
knowledge
base,
"animal
is
cheetah"is
a main-fact."Mammal is
yes,"
"carnivore is
yes,""color
is
tawny"and
"has_dark_spots is
yes"
can
be
sub-facts.The
fact
"carnivore is
yes"also can
be
a main-fact andhas
sub-facts such as"pointed_teeth"and"eat_meat is
yes."Each
fact has
a pointer to therule(s)
thatdescribe
thefact. The
main purpose of
DCB is
to establish a concepthierarchy
so thatit
performsa similarfunction
to thatoflong-term memory in human
comprehension.Whenever
anew ruleor
fact is
entered,
the conflict-checkerunitin IKAS
checksthe newrule orfact
to thelearned
conceptin
theDCB
andfinds any
conflicts and/orduplications
withexisting
knowledge. Figure 5-3
illustrates
the structure oftheDCB,
andmoredetailed
role of5J.
Conflict
Checker
Control
Strategy
53.1.
Conflict
Checker Unit
The
CCU(Conflict Checker
Unit)
in
IKAS
maintains a completelogical-error-free knowledge
hierarchy
and suggests the removal ofany
unnecessary
duplications
offacts among
rules.The CCU
checksfacts
for
conflicts orduplications,
not
only
at the samelevel
as thefact but
also atsub-level(s)
ofit.
By
using
thistechnique,
theknowledge base
in
IKAS
canbe
maintained asconceptually
correctfrom
start toend.Since
each objectin
theORB
(Object
Representation
Base)
canbe
checked
individually
orrecursively,
incremental
knowledge base design
is
possiblewithout tedious
searching
of rulesfor logical
errors.The
CCU
performs a separatelevel
of conceptual analysisaccording
to the type of concept.For simplicity
we willcategorize concept types as single-condition-facts versus multiple-condition-facts.
A
single-condition-fact
is
afact
thatis
described
by
agroup
offacts
chainedby
conjunction
operators,
such thatonly
onegroup
offacts
(sub-facts)
existsfor
determination
of the mainfact.
In
the animalknowledge
base,
each of thefacts
"animal is
cheetah,""animal
is
tiger,"and
"animal
is
ostrich"
is
a single-condition-fact.A
multiple-conditions-fact consists ofgroups offacts
chainedby
disjunctive
operators,
such
that
more than onegroup
offacts
(sub-facts)
existfor
determination.
The
fact
"carnivore is
yes"is
an example of multiple-conditions-factbecause
it is
determined
by
themorethanone
group
offacts.
Let's
imagine
that thefollowing
rules are added to the previous animalknowledge base.
rule5: if has_feather
is
yesthenbirdis
yes;rule6: if
does_fly
is
yes andlay_egg
is
yesbird is
yes;The CCU finds
a conflictbetween
rule13
and rule6
in
terms of"does
fly"and"does
not fly."In
Rule
13,
background knowledge
about animal ostrichhas
theexpectation that an ostrich
is
abird
and an ostrichdoes
notfly. With
a generaldescription
ofbirds in
rule6,
IKAS
realizes thepossibleincorrectness
ofits learned
concept about either "bird" and/or "ostrich."
It does
not makeany
difference
whetherthe concept about
bird is
enteredbefore
the concept of "ostrich."In
this caseIKAS
maintains the
description
aboutbird
in long-term
memory
andfinds
a conflict whenthe special
kind
ofbird,
"ostrich,"is
introduced
withits
feature
"does
notfly."By
thesame
technique
CCU finds duplication
in
terms of"does
fly"in
rule6
and rule15
because
rule6
already implies
thatbirds
fly,
sothereis
no needtomentionit
againin
rule
15.
This
exampleis
only
aone-level-deep
recursive conceptualanalysis;
in
realexpert system applications multiple
levels
ofconcepts arerepresented,
and theCCU
can
be
regarded as avaluabledevice for
complexknowledge base
maintenance.yi! Help n! KuleTranslate IT. Edit Jble
tlack_strips isa*s
oolor is tamy
i hasJorwarJjstj is
ANfr-j
htsjlmsu yes carnivore is jes ORH ' pointed_tetth is sI eatjwat isses ftanMl isyes
Jofsjlsisyes
-alkatross m-\ ...
i has_featheris yes
1 lirais u*s OR-H
I
tmJ '-es1S "
^1 ioesjlsisyes
anmal hasforwardmes
-tijer
532.
Conflict Checker
Unit Algorithm
Before
we getinto
theCCU(Conflict Checker
Unit)
algorithm,
let's
review andstandardize someoftermswe
have
been
using
throughout
this thesis.Concept
Fact
Object
Operator
Value
Feature list
A
Concept has
a more abstractmeaning
and canbe described
by
agroup
offacts
orgroup
ofconcepts that canbe
representedby
thelogical knowledge
hierarchy.
For
examplein
the animalknowledge
base,
the concept"animal
is
tiger" canbe
represented
graphically
as shownin Figure
5-4. Each
fact
consists of anObject,
Operator,
andValue. When
agroup
offacts
represents anotherfact
directly,
it is
called a
feature list.
In
Figure
5-4
thefact
"animal
is
tiger"has
thefeature list
["mammal is
yes",
"color
is tawny", "carnivore is
yes","black_stripes is
yes"].With
thisunderstanding,
let's
proceed with the conflict checker algorithm.The CCU
canbe
invoked
manually
by
the userselecting from
thelist
of concepts.This
way
multiplelevels
of concepts canbe
checked and modifiedindividually. Of
course,
knowledge
integrity
is
not guaranteed unless the checkpointis
at ahigher level
ofthe concepthierarchy. Here
the checkpointdescribes
the root of the concepttree,
whichis
theobject the user selected.
In
the animalknowledge
base,
if
a new conceptis formed
about a
bird
andit is
contradictory
to the animalconcept,
then unless theCCU is
called
from
thehigher level
ofthehierarchy,
here
theanimalnode,
it is hard
todetect
a conflict such as shown
in Section
5.3.1. For
example,
Figure 5-5 is
an e