Lecture 2-Understanding Knowledge Based Systems
Lecture 2-Understanding Knowledge Based Systems
LECTURE 2
Understanding kbs
Recall, typical problem solving (and hence many AI) tasks can be
commonly re- duced to:
• Modeling natural phenomena, and
• Search
– deduction,
– hypothetical reasoning,
– model based reasoning,
– analogical reasoning,
• learning etc. Knowledge based systems are developed for a specific task do-
main.
2
CCS 3400 Knowledge Based Systems Kaje David Murithi
2.3. KBS-Tasks
Typical tasks for which knowledge based systems can be built include:
• Diagnosis
• Scheduling
• Design
• Planning
• Configuration
• In general, an expert is a skilful person who can do things other people cannot.
• Criteria 1
• Priori Knowledge
• Posteriori Knowledge
knowledge can be denied based on new knowledge without the need for
contradictions.
4
CCS 3400 Knowledge Based Systems Kaje David Murithi
• Criteria 2
• Procedural (Compiled) Knowledge
– Considers the manner in which things work under different sets of cir-
cumstances. Includes step-by-step sequences and how-to types of in-
structions; it may also include explanations.
• Declarative Knowledge
• Tacit Knowledge
• Meta Knowledge
* Working memory
6
CCS 3400 Knowledge Based Systems Kaje David Murithi
Diagram-Conceptual Schema
• An inference engine
• A user interface
• Explanation facilities
• Learning facilities
The knowledge base contains the domain knowledge useful for problem
solving. In a rule-based expert system, the knowledge is represented as a
set of rules. Each rule specifies a relation, recommendation, directive,
strategy or heuristic and has the IF (condition) THEN (action) structure.
When the condition part of a rule is satisfied, the rule is said to fire and
the action part is executed.
7
CCS 3400 Knowledge Based Systems Kaje David Murithi
•.1. The database/working memory includes a set of facts used to match against
the IF (condition) parts of rules stored in the knowledge base.
8
CCS 3400 Knowledge Based Systems Kaje David Murithi
The inference engine carries out the reasoning whereby the KBS reaches
a solu- tion. It links the rules given in the knowledge base with the facts
provided in the database.
The explanation facilities enable the user to ask the KBS how a
particular conclu- sion is reached and why a specific fact is needed. A KBS
(specifically an expert system) must be able to explain its reasoning and
justify its advice, analysis or conclusion.
•.2. The user interface is the means of communication between a user seeking a
solution to the problem and a KBS.
9
CCS 3400 Knowledge Based Systems Kaje David Murithi
• Should not encompass problems which take too short (i.e. less than half an
hour) or too long (larger than say one week) a time to solve.
10
CCS 3400 Knowledge Based Systems Kaje David Murithi
•.6. No matter how fast the system can solve a problem, the user will not be
satisfied if the result is wrong!
•.7. On the other hand, the speed of reaching a solution is very important.
Even the most accurate decision or diagnosis may not be useful if it is too
late to apply, for instance, in an emergency, when a patient dies or a
nuclear power plant explodes.
•.8. KBSs apply heuristics to guide the reasoning and thus reduce the
search area for a solution.
11
CCS 3400 Knowledge Based Systems Kaje David Murithi
•.11. We should be aware that an expert is only a human and thus can
make mis- takes, and therefore, a KBS built to perform at a human expert
level also should be "allowed" to make mistakes.
12
CCS 3400 Knowledge Based Systems Kaje David Murithi
13
CCS 3400 Knowledge Based Systems Kaje David Murithi
• qualifications,
14
CCS 3400 Knowledge Based Systems Kaje David Murithi
• personality, and
• attributes.
• Knowledge acquisition
• Knowledge Validation
• Knowledge Representation
• Inferencing and
• Explanation.
•.17. Expert Systems: They model the higher order cognitive functions
of the human mind They are used to mimic the decision making process
of the human mind.
15
CCS 3400 Knowledge Based Systems Kaje David Murithi
•.18. Neural Networks: They model the brain at the biological level They
are adept at pattern recognition and introduce the concept of learning into
computing.
16
CCS 3400 Knowledge Based Systems Kaje David Murithi
•.19. Case Based Reasoning: Models the human ability to learn from
past expe- rience They borrow from the legal system where past cases are
used as a basis for making decisions in the present cases.
•.20. Fuzzy Logic systems: Provide mechanisms for handling uncertain knowl-
edge
•.24. There are certain domains where all these properties are found and
some where there are only a few.
•.25. The lack of documentation and the fact that experts carry a lot of
information in their heads, makes it difficult to gain access to their
knowledge for developing information systems in general and expert
systems in particular.
19
CCS 3400 Knowledge Based Systems Kaje David Murithi
• Sources of Knowledge
• The Knowledge Engineer acquires knowledge from a number of
sources:
• Written sources, such as books, manuals, standard procedures- An important
source of knowledge at the start, when the knowledge engineer learns the
vocabularies and general topics of the domain.
• Experts
• Experts make decisions based on an abstract and intellectual process that even
experts themselves have difficulty understanding and verbalizing. The knowl-
edge engineer should elicit knowledge from the expert by helping the expert
to discover and communicate this process, using a host of knowledge acqui-
sition methods.
from sources such as books, journals, articles, magazines, mass media mate-
rials.
21
CCS 3400 Knowledge Based Systems Kaje David Murithi
• Many participants are involved and they have varied backgrounds causing
communication challenges
• Mismatch between the way experts hold their knowledge and the way com-
puters represent knowledge.
• Currently knowledge bases for knowledge based systems are crafted by hand,
this is a severe limitation on the rapid deployment of such systems.
• the programmer
• the end-user.
22
CCS 3400 Knowledge Based Systems Kaje David Murithi
The success of their KBS entirely depends on how well the members work together.
23
CCS 3400 Knowledge Based Systems Kaje David Murithi
• The domain expert is the most important player in the KBS development
team.
• interviews the domain expert to find out how a particular problem is solved.
• establishes what reasoning methods the expert uses to handle facts and rules
and decides how to represent them in the expert system.
• responsible for testing, revising and integrating the expert system into the
workplace.
24
CCS 3400 Knowledge Based Systems Kaje David Murithi
2.8.3. Programmer
25
CCS 3400 Knowledge Based Systems Kaje David Murithi
•.6. The project manager is the leader of the KBS development team,
responsible for keeping the project on track.
•.7. The project manager makes sure that all deliverable and milestones
are met, interacts with the expert, knowledge engineer, programmer and
end-user.
2.8.5. End-User
•.8. The end-user, often called just the user, is a person who uses the
KBS when it is developed.
•.9. The user must not only be confident in the KBS performance but
also feel comfortable using it.
•.10. Therefore, the design of the user interface of the KBS is also
vital for the project’s success; the end-user’s contribution here can be
crucial.
26
CCS 3400 Knowledge Based Systems Kaje David Murithi
Solution:
Knowledge acquisition is the process of extracting knowledge (facts,
procedures, rules) from human experts, books, documents, sensors or
computer files and con- verting it into a form that can be stored and
manipulated by the computer for pur- poses of problem solving.
Learning Activities/assignments
27