Lesson 2
Lesson 2
OF
AGRICULTURE & TECHNOLOGY
JKUAT SODeL
Nairobi, Kenya
E-mail: [email protected]
Back Close 0
ICS 2405 Knowledge Based Systems
LESSON 2
Understanding kbs
Recall, typical problem solving (and hence many AI) tasks can
be commonly reduced to:
• Modeling natural phenomena, and
©2015
• Search
Techniques that model natural phenomena generally concentrate
on the concept of knowledge representation
In a nutshell, some problems highlight search whilst others
knowledge representation
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 1
ICS 2405 Knowledge Based Systems
2.2. Knowledge Based Systems-Overview
Definition: a knowledge-based system is a software system ca-
pable of supporting explicit representation of knowledge and
of exploiting it through appropriate reasoning mechanism
JKUAT SODeL
Back Close 2
ICS 2405 Knowledge Based Systems
– hypothetical reasoning,
– model based reasoning,
– analogical reasoning,
• learning etc. Knowledge based systems are developed for
JKUAT SODeL
2.3. KBS-Tasks
©2015
JJ II • Design
J I • Planning
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 3
ICS 2405 Knowledge Based Systems
• Configuration
Back Close 4
ICS 2405 Knowledge Based Systems
2.4.1. Classification of Knowledge
• Criteria 1
• Priori Knowledge
– Universally true and cannot be denied without con-
JKUAT SODeL
• Criteria 2
• Procedural (Compiled) Knowledge
JJ II – Considers the manner in which things work under
J I different sets of circumstances. Includes step-by-step
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 5
ICS 2405 Knowledge Based Systems
sequences and how-to types of instructions; it may
also include explanations.
• Declarative Knowledge
– Descriptive representation of knowledge. It tells us
JKUAT SODeL
Back Close 6
ICS 2405 Knowledge Based Systems
• Meta Knowledge
– Knowledge about knowledge.
Back Close 7
ICS 2405 Knowledge Based Systems
• Peripheral Part This provides additional functions nec-
essary for a practical and effective use of the knowledge
based system e.g. user interface, explanation system, learner,
knowledge acquisition facility, etc.
JKUAT SODeL
©2015
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 8
ICS 2405 Knowledge Based Systems
JKUAT SODeL
©2015
Diagram-Conceptual Schema
Back Close 9
ICS 2405 Knowledge Based Systems
• A knowledge base
• An inference engine
• A user interface
• Explanation facilities
JKUAT SODeL
• Learning facilities
The knowledge base contains the domain knowledge useful for
©2015
Back Close 10
ICS 2405 Knowledge Based Systems
•.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.
JKUAT SODeL
Back Close 11
ICS 2405 Knowledge Based Systems
•.2. The user interface is the means of communication be-
tween a user seeking a solution to the problem and a KBS.
JKUAT SODeL
©2015
JJ II
J I •.3. Diagram Depicting components of KBS
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 12
ICS 2405 Knowledge Based Systems
2.4.4. Criteria for choosing to implement a KBS
•.4. Only certain types of applications are suited to knowledge
based implementation. The following criterion is used in identi-
fying suitable domains. The fields under study:
JKUAT SODeL
complex calculations.
• Is well understood so that well-defined knowledge can be
formulated and represented in Computer
• Should not encompass problems which take too short (i.e.
JJ II less than half an hour) or too long (larger than say one
J I week) a time to solve.
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 13
ICS 2405 Knowledge Based Systems
• Should have general agreement among recognized experts
in the domain to be computerized.
• The knowledge within the problem domain should be suf-
ficiently large to warrant the development of a knowledge-
JKUAT SODeL
based system.
• ‘Tame’ experts who are agreeable to involvement.
However, any application that requires access to specialist knowl-
©2015
JJ II •.6. No matter how fast the system can solve a problem, the
J I user will not be satisfied if the result is wrong!
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 14
ICS 2405 Knowledge Based Systems
•.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
JKUAT SODeL
explodes.
Back Close 15
ICS 2405 Knowledge Based Systems
•.10. KBSs employ symbolic reasoning when solving a prob-
lem. Symbols are used to represent different types of knowledge
such as facts, concepts and rules.
takes.
Back Close 16
ICS 2405 Knowledge Based Systems
•.13. When an expert system shell is used, a knowledge en-
gineer or an expert simply enters rules in the knowledge base.
Each new rule adds some new knowledge and makes the KBS
smarter.
JKUAT SODeL
©2015
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 17
ICS 2405 Knowledge Based Systems
2.4.6. KBS Comparison
JKUAT SODeL
©2015
Back Close 18
ICS 2405 Knowledge Based Systems
•.14. Practitioners of Knowledge Engineering are called Knowl-
edge Engineers.
• attributes.
Back Close 19
ICS 2405 Knowledge Based Systems
• Knowledge Representation
• Inferencing and
• Explanation.
JKUAT SODeL
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 20
ICS 2405 Knowledge Based Systems
2.6. Types of knowledge based systems
•.16. In general, knowledge based systems are classified accord-
ing to the human behavior they attempt to mimic. On the basis
of this, we have:
JKUAT SODeL
Back Close 21
ICS 2405 Knowledge Based Systems
•.19. Case Based Reasoning: Models the human ability to
learn from past experience They borrow from the legal system
where past cases are used as a basis for making decisions in the
present cases.
JKUAT SODeL
Back Close 22
ICS 2405 Knowledge Based Systems
•.22. It occurs throughout the entire development process for
a KBS.
•.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
JJ II a lot of information in their heads, makes it difficult to gain
J I access to their knowledge for developing information systems in
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 23
ICS 2405 Knowledge Based Systems
general and expert systems in particular.
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 24
ICS 2405 Knowledge Based Systems
2.7.2. Knowledge Acquisition Process
JKUAT SODeL
©2015
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 25
ICS 2405 Knowledge Based Systems
•.27. Identification: Identify the problem including data, cri-
teria for solutions to meet, available resources, etc.
JJ II
•.31. Testing: Validate and verify.
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 26
ICS 2405 Knowledge Based Systems
2.7.3. Knowledge elicitation
•.32. It implies that knowledge acquisition is accomplished from
a human expert.
JKUAT SODeL
• Sources of Knowledge
JJ II • The Knowledge Engineer acquires knowledge from
J I a number of sources:
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 27
ICS 2405 Knowledge Based Systems
• 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.
JKUAT SODeL
• Experts
• Observations of the actual process
• Expertise of a procedural nature, in which a sequence of
©2015
Back Close 28
ICS 2405 Knowledge Based Systems
pert to discover and communicate this process, using a
host of knowledge acquisition methods.
Back Close 29
ICS 2405 Knowledge Based Systems
magazines, mass media materials.
• Rule induction (computer aided knowledge acquisition) –
rule induction can be viewed as a system that accepts ex-
amples and develops classification rules.
JKUAT SODeL
of knowledge;
• Many participants are involved and they have varied back-
grounds causing communication challenges
• Experts may not express their knowledge.
Back Close 30
ICS 2405 Knowledge Based Systems
2.7.5. Characteristics of Knowledge Acquisition
• Knowledge acquisition is a labour and time intensive pro-
cess.
• Currently knowledge bases for knowledge based systems
JKUAT SODeL
Back Close 31
ICS 2405 Knowledge Based Systems
• the knowledge engineer
• the programmer
• the project manager
• the end-user.
JKUAT SODeL
The success of their KBS entirely depends on how well the mem-
©2015
Back Close 32
ICS 2405 Knowledge Based Systems
• Therefore, the expert must:
– be able to communicate his or her knowledge
– be willing to participate in the expert system devel-
opment
JKUAT SODeL
Back Close 33
ICS 2405 Knowledge Based Systems
• interviews the domain expert to find out how a particular
problem is solved.
• establishes what reasoning methods the expert uses to han-
dle facts and rules and decides how to represent them in
JKUAT SODeL
knowledge.
• responsible for testing, revising and integrating the expert
system into the workplace.
2.8.3. Programmer
JJ II •.3. The programmer is the person responsible for the actual
J I programming, describing the domain knowledge in terms that a
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 34
ICS 2405 Knowledge Based Systems
computer can understand.
Back Close 35
ICS 2405 Knowledge Based Systems
•.7. The project manager makes sure that all deliverable and
milestones are met, interacts with the expert, knowledge engi-
neer, programmer and end-user.
2.8.5. End-User
JKUAT SODeL
•.8. The end-user, often called just the user, is a person who
uses the KBS when it is developed.
©2015
•.9. The user must not only be confident in the KBS perfor-
mance but also feel comfortable using it.
Back Close 36
ICS 2405 Knowledge Based Systems
Example . What is knowledge acquisition?
Solution:
Knowledge acquisition is the process of extracting knowledge
(facts, procedures, rules) from human experts, books, documents,
JKUAT SODeL
Learning Activities/assignments
JJ II
J I • Explain how you may acquire knowledge to build a system
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 37
ICS 2405 Knowledge Based Systems
• Discuss ways of acquiring knowledge.
• Discuss problems associated with knowledge acquisition.
JKUAT SODeL
©2015
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 38
ICS 2405 Knowledge Based Systems
Solutions to Exercises
Exercise 1.
Back Close 39