knowledge vs expert systems
TRANSCRIPT
-
7/31/2019 Knowledge vs expert systems
1/57
Chapter 2:
The Representation of
Knowledge
-
7/31/2019 Knowledge vs expert systems
2/57
Expert Systems: Principles and Programming, Fourth Edition 2
What is the study of logic?
Logic is the study of making inferencesgiven a
set of facts, we attempt to reach a true conclusion.
An example of informal logic is a courtroomsetting where lawyers make a series of inferences
hoping to convince a jury / judge .
Formal logic (symbolic logic) is a more rigorous
approach to proving a conclusion to be true /false.
-
7/31/2019 Knowledge vs expert systems
3/57
Expert Systems: Principles and Programming, Fourth Edition 3
Why is Logic Important
We use logic in our everyday livesshould I
buy this car, should I seek medical attention.
People are not very good at reasoning becausethey often fail to separate word meanings with
the reasoning process itself.
Semantics refers to the meanings we give to
symbols.
-
7/31/2019 Knowledge vs expert systems
4/57
Expert Systems: Principles and Programming, Fourth Edition 4
The Goal of Expert Systems
We need to be able to separate the actual
meanings of words with the reasoning process
itself.
We need to make inferences w/o relying on
semantics.
We need to reach valid conclusions based on
facts only.
-
7/31/2019 Knowledge vs expert systems
5/57
Expert Systems: Principles and Programming, Fourth Edition 5
Knowledge vs. Expert Systems
Knowledge representation is key to the success of
expert systems.
Expert systems are designed for knowledgerepresentation based on rules of logic called
inferences.
Knowledge affects the development, efficiency,
speed, and maintenance of the system.
-
7/31/2019 Knowledge vs expert systems
6/57
Expert Systems: Principles and Programming, Fourth Edition 6
Arguments in Logic
An argument refers to the formal way facts and
rules of inferences are used to reach valid
conclusions.
The process of reaching valid conclusions is
referred to as logical reasoning.
-
7/31/2019 Knowledge vs expert systems
7/57Expert Systems: Principles and Programming, Fourth Edition 7
How is Knowledge Used?
Knowledge has many meaningsdata, facts,
information.
How do we use knowledge to reach conclusionsor solve problems?
Heuristics refers to using experience to solve
problemsusing precedents.
Expert systems may have hundreds / thousandsof micro-precedents to refer to.
-
7/31/2019 Knowledge vs expert systems
8/57Fundamentals of Information Systems, Fourth Edition 8
Obtaining, Storing, Sharing, and
Using Knowledge Obtaining, storing, sharing, and using
knowledge is the key to any KMS
Knowledge workers often work in teams to
create or obtain knowledge
Knowledge repositorystores knowledgeincluding documents, reports, files, and
databases
Knowledge workers use collaborative work
software and group support systems to
share knowledge
-
7/31/2019 Knowledge vs expert systems
9/57Fundamentals of Information Systems, Fourth Edition 9
Obtaining, Storing, Sharing, and
Using Knowledge (continued)
Figure 7.3: Knowledge Management System
-
7/31/2019 Knowledge vs expert systems
10/57Expert Systems: Principles and Programming, Fourth Edition 10
Epistemology
Epistemology is the formal study of knowledge .
Concerned with nature, structure, and origins of
knowledge.
-
7/31/2019 Knowledge vs expert systems
11/57Expert Systems: Principles and Programming, Fourth Edition 11
Procedural Knowledge
Knowing how to do something:
Fix a watch Install a window
Brush your teeth
Ride a bicycle
-
7/31/2019 Knowledge vs expert systems
12/57Expert Systems: Principles and Programming, Fourth Edition 12
Declarative Knowledge
Knowledge that something is true or false
Usually associated with declarative statements
E.g., Dont touch that hot wire.
-
7/31/2019 Knowledge vs expert systems
13/57
Expert Systems: Principles and Programming, Fourth Edition 13
Tacit Knowledge
Unconscious knowledge
Cannot be expressed by language
E.g., knowing how to walk, breath, etc.
-
7/31/2019 Knowledge vs expert systems
14/57
Expert Systems: Principles and Programming, Fourth Edition 14
Knowledge in Rule-Based
Systems
Knowledge is part of a hierarchy.
Knowledge refers to rules that are activated by
facts or other rules.
Activated rules produce new facts or conclusions.
Conclusions are the end-product of inferenceswhen done according to formal rules.
-
7/31/2019 Knowledge vs expert systems
15/57
Expert Systems: Principles and Programming, Fourth Edition 15
Expert Systems vs. Humans
Expert systems inferreaching conclusions
as the end product of a chain of steps called
inferencing when done according to formal
rules.
Humans reason
-
7/31/2019 Knowledge vs expert systems
16/57
Expert Systems: Principles and Programming, Fourth Edition 16
Metaknowledge
Metaknowledge is knowledge about knowledge
and expertise.
Most successful expert systems are restricted to
as small a domain as possible.
In an expert system, an ontology is the
metaknowledge that describes everything known
about the problem domain.
Wisdom is the metaknowledge of determining
the best goals of life and how to obtain them.
-
7/31/2019 Knowledge vs expert systems
17/57
Expert Systems: Principles and Programming, Fourth Edition 17
Figure 2.2 The Pyramid
of Knowledge
-
7/31/2019 Knowledge vs expert systems
18/57
Fundamentals of Information Systems, Fourth Edition 18
An Overview of Expert Systems
Like human experts, computerized expert
systems use heuristics, or rules of thumb,
to arrive at conclusions or make
suggestions
Used in many fields for a variety of tasks,
such as:
Designing new products and systems
Developing innovative insurance products
Increasing the quality of healthcare
Determining credit limits for credit cards
-
7/31/2019 Knowledge vs expert systems
19/57
Fundamentals of Information Systems, Fourth Edition 19
An Overview of Expert Systems
(continued) Research conducted in AI during the past
two decades is resulting in expert systems
that:
Explore new business possibilities
Increase overall profitability
Reduce costs
Provide superior service to customers andclients
-
7/31/2019 Knowledge vs expert systems
20/57
Fundamentals of Information Systems, Fourth Edition 20
When to Use Expert Systems
Develop an expert system if it can do any
of the following:
Provide a high potential payoff or significantly
reduce downside risk
Capture and preserve irreplaceable human
expertise
Solve a problem that is not easily solvedusing traditional programming techniques
Develop a system more consistent than
human experts
-
7/31/2019 Knowledge vs expert systems
21/57
Fundamentals of Information Systems, Fourth Edition 21
When to Use Expert Systems
(continued) Develop an expert system if it can do any
of the following (continued):
Provide expertise needed at a number of
locations at the same time or in a hostileenvironment that is dangerous to human
health
Provide expertise that is expensive or rare Develop a solution faster than human experts
can
Provide expertise needed for training and
development to share the wisdom and
-
7/31/2019 Knowledge vs expert systems
22/57
Expert Systems: Principles and Programming, Fourth Edition 22
Productions
A number of knowledge-representation techniques
have been devised:
Rules Semantic nets
Frames
Scripts Logic
Conceptual graphs
-
7/31/2019 Knowledge vs expert systems
23/57
Expert Systems: Principles and Programming, Fourth Edition 23
Figure 2.3 Parse Tree
of a Sentence
-
7/31/2019 Knowledge vs expert systems
24/57
Expert Systems: Principles and Programming, Fourth Edition 24
Semantic Nets
A classic representation technique for
propositional information
Propositionsa form of declarative knowledge,
stating facts (true/false)
Propositions are called atoms cannot be
further subdivided.
Semantic nets consist of nodes (objects, concepts,situations) and arcs (relationships between them).
-
7/31/2019 Knowledge vs expert systems
25/57
Expert Systems: Principles and Programming, Fourth Edition 25
Common Types of Links
IS-Arelates an instance or individual to a
generic class
A-KIND-OFrelates generic nodes to generic
nodes
-
7/31/2019 Knowledge vs expert systems
26/57
Expert Systems: Principles and Programming, Fourth Edition 26
Figure 2.4 Two Types of Nets
-
7/31/2019 Knowledge vs expert systems
27/57
Expert Systems: Principles and Programming, Fourth Edition 27
Figure 2.6: General Organization
of a PROLOG System
-
7/31/2019 Knowledge vs expert systems
28/57
Expert Systems: Principles and Programming, Fourth Edition 28
PROLOG and Semantic Nets
In PROLOG, predicate expressions consist of the
predicate name, followed by zero or more
arguments enclosed in parentheses, separated by
commas.
Example:
mother(becky,heather)
means that becky is the mother of heather
-
7/31/2019 Knowledge vs expert systems
29/57
Expert Systems: Principles and Programming, Fourth Edition 29
PROLOG Continued
Programs consist of facts and rules in thegeneral form of goals.
General form:p:- p1, p2, , pN
p is called the rules head and the pirepresents the subgoals
Example:
spouse(x,y) :- wife(x,y)
x is the spouse ofy ifx is the wife ofy
-
7/31/2019 Knowledge vs expert systems
30/57
Expert Systems: Principles and Programming, Fourth Edition 30
Problems with Semantic Nets
To represent definitive knowledge, the link and
node names must be rigorously defined.
A solution to this is extensible markup language(XML) and ontologies.
Problems also include combinatorial explosion of
searching nodes, inability to define knowledgethe way logic can, and heuristic inadequacy.
-
7/31/2019 Knowledge vs expert systems
31/57
Expert Systems: Principles and Programming, Fourth Edition 31
Schemata
Knowledge Structurean ordered collection of
knowledgenot just data.
Semantic Netsare shallow knowledge
structuresall knowledge is contained in nodes
and links.
Schema is a more complex knowledge structure
than a semantic net. In a schema, a node is like a record which may
contain data, records, and/or pointers to nodes.
-
7/31/2019 Knowledge vs expert systems
32/57
Expert Systems: Principles and Programming, Fourth Edition 32
Frames
One type of schema is a frame (or scripttime-
ordered sequence of frames).
Frames are useful for simulating commonsense
knowledge.
Semantic nets provide 2-dimensional knowledge;
frames provide 3-dimensional.
Frames represent related knowledge aboutnarrow subjects having much default knowledge.
-
7/31/2019 Knowledge vs expert systems
33/57
Expert Systems: Principles and Programming, Fourth Edition 33
Frames Continued
A frame is a group of slots and fillers that defines
a stereotypical object that is used to represent
generic / specific knowledge.
Commonsense knowledge is knowledge that is
generally known.
Prototypes are objects possessing all typical
characteristics of whatever is being modeled. Problems with frames include allowing
unrestrained alteration / cancellation of slots.
-
7/31/2019 Knowledge vs expert systems
34/57
Expert Systems: Principles and Programming, Fourth Edition 34
Logic and Sets
Knowledge can also be represented by symbols
of logic.
Logic is the study of rules of exact reasoning
inferring conclusions from premises.
Automated reasoninglogic programming in the
context of expert systems.
-
7/31/2019 Knowledge vs expert systems
35/57
Expert Systems: Principles and Programming, Fourth Edition 35
Forms of Logic
Earliest form of logic was based on the
syllogismdeveloped by Aristotle.
Syllogismshave two premises that provide
evidence to support a conclusion.
Example:
Premise: All cats are climbers.
Premise: Garfield is a cat. Conclusion: Garfield is a climber.
-
7/31/2019 Knowledge vs expert systems
36/57
Expert Systems: Principles and Programming, Fourth Edition 36
Venn Diagrams
Venn diagrams can be used to represent
knowledge.
Universal set is the topic of discussion.
Subsets, proper subsets, intersection, union ,
contained in, and complement are all familiar
terms related to sets.
An empty set (null set) has no elements.
-
7/31/2019 Knowledge vs expert systems
37/57
Expert Systems: Principles and Programming, Fourth Edition 37
Figure 2.13 Venn Diagrams
-
7/31/2019 Knowledge vs expert systems
38/57
Expert Systems: Principles and Programming, Fourth Edition 38
Syllogism
Premise: All men are mortal
Premise: Socrates is a man
Conclusion: Socrates is mortal
Only the form is important.
Premise: AllXareY
Premise: Zis aX
Conclusion: Zis aY
-
7/31/2019 Knowledge vs expert systems
39/57
Expert Systems: Principles and Programming, Fourth Edition 39
Propositional Logic
Formal logic is concerned with syntax of
statements, not semantics.
Syllogism: All goons are loons.
Zadok is a goon.
Zadok is a loon.
The words may be nonsense, but the form is
correctthis is a valid argument.
-
7/31/2019 Knowledge vs expert systems
40/57
-
7/31/2019 Knowledge vs expert systems
41/57
Expert Systems: Principles and Programming, Fourth Edition 41
Features of Propositional Logic
Concerned with the subset of declarative
sentences that can be classified as true or false.
We call these sentences statements or
propositions.
Paradoxesstatements that cannot be classified
as true or false.
Open sentencesstatements that cannot beanswered absolutely.
-
7/31/2019 Knowledge vs expert systems
42/57
Expert Systems: Principles and Programming, Fourth Edition 42
Features Continued
Compound statementsformed by using logical
connectives (e.g., AND, OR, NOT, conditional,
and biconditional) on individual statements.
Material implicationp q states that ifp is
true, it must follow that q is true.
Biconditionalp q states thatp implies q and
q impliesp.
-
7/31/2019 Knowledge vs expert systems
43/57
Expert Systems: Principles and Programming, Fourth Edition 43
Features Continued
Tautologya statement that is true for all
possible cases.
Contradictiona statement that is false for all
possible cases.
Contingent statementa statement that is neithera tautology nor a contradiction.
-
7/31/2019 Knowledge vs expert systems
44/57
Expert Systems: Principles and Programming, Fourth Edition 44
Truth Tables
-
7/31/2019 Knowledge vs expert systems
45/57
Expert Systems: Principles and Programming, Fourth Edition 45
Rule of Inference
Modus ponens, way assertdirect reasoning, law of detachment
assuming the antecedent
Modus tollens, way denyindirect reasoning, law of contraposition
assuming the antecedent
-
7/31/2019 Knowledge vs expert systems
46/57
Expert Systems: Principles and Programming, Fourth Edition 46
Modus Ponens
If there is power, the computer will workThere is power
------------------------------
The computer will work
A B p, p ->q; q
A
--------------
B
-
7/31/2019 Knowledge vs expert systems
47/57
Expert Systems: Principles and Programming, Fourth Edition 47
Modus tollens
p q conditional p -> q
~q converse q -> p
-------------- inverse ~p -> ~q
~ p contrapositive
~q -> ~p
-
7/31/2019 Knowledge vs expert systems
48/57
Expert Systems: Principles and Programming, Fourth Edition 48
Forward Reasoning
T: A B
B C CONCLUSION?
C D
A
Resolve by modus ponens
-
7/31/2019 Knowledge vs expert systems
49/57
Expert Systems: Principles and Programming, Fourth Edition 49
Backward Reasoning
What if T is very large?
T may support all kinds of inferences
which have nothing to do with
the proof of our goal
Combinational explosion
Use Backward Reasoning
-
7/31/2019 Knowledge vs expert systems
50/57
Expert Systems: Principles and Programming, Fourth Edition 50
Resolution Refutation
To refute something is to prove it false Refutation complete:
Resolution refutation will terminate in
a finite steps if there is a contradiction Example: Given the argument
A B
B C
C D-------------
A D
-
7/31/2019 Knowledge vs expert systems
51/57
Expert Systems: Principles and Programming, Fourth Edition 51
Propositional Logic
Symbolic logic for manipulating proposition
Proposition, Statement, Close sentence:
a sentence whose truth value can be
determined.
Open Sentence: a sentence which containsvariables
Combinational explosion
Can not prove argument with quantifiers
-
7/31/2019 Knowledge vs expert systems
52/57
Expert Systems: Principles and Programming, Fourth Edition 52
Predicate Logic
Predicates with arguments
on-top-of(A, B)
Variables and Quantifiers
Universal ( x)(Rational(x)
Real(x))Existential ( x)(Prime(x))
Functions of Variables( x)(Satellite(x)) ( y)(closest(y, earth)^on(y,x))
( x)(man(x) mortal(x))
^ man(Socrates)
=> mortal(Socrates)
-
7/31/2019 Knowledge vs expert systems
53/57
Expert Systems: Principles and Programming, Fourth Edition 53
Universal Quantifier
The universal quantifier, represented by the
symbol means for every or for all.
( x) (x is a rectangle
x has four sides)
The existential quantifier, represented by the
symbol means there exists.
( x) (x
3 = 5)
Limitations of predicate logicmostquantifier.
-
7/31/2019 Knowledge vs expert systems
54/57
Expert Systems: Principles and Programming, Fourth Edition 54
First Order Predicate Logic
Quantification not over predicate or function
symbols
No MOST quantifier, (counting required)
Can not express things that are sometime true=> Fuzzy Logic
-
7/31/2019 Knowledge vs expert systems
55/57
Expert Systems: Principles and Programming, Fourth Edition 55
Rule of Universal Instantiation
( x)p(x) => p(a) p: any proposition or
propositional function
a: an instance
-
7/31/2019 Knowledge vs expert systems
56/57
Expert Systems: Principles and Programming, Fourth Edition 56
Well-formed Formula
1. An atom is a formula
2. If F and G are formula, then ~(F), (FvG),
(F^G),(F->G), and (FG) are formula
3. If F is a formula, and x is a free variable
in F, then ( x)F and ( x)F are formula
4. Formula are generated only by a finitenumber of applications of 1,2 and 3
-
7/31/2019 Knowledge vs expert systems
57/57
Summary
We have discussed:
Elements of knowledge
Knowledge representation
Some methods of representing knowledge
Fallacies may result from confusion between
form of knowledge and semantics.
It is necessary to specify formal rules for expertsystems to be able to reach valid conclusions.
Different problems require different tools.