Knowledge-Based Systems: Rozália Lakner University of Veszprém Department of Computer Science
Knowledge-Based Systems: Rozália Lakner University of Veszprém Department of Computer Science
systems
Rozália Lakner
University of Veszprém
Department of Computer Science
An overview
Knowledge-based systems, expert systems
structure, characteristics
main components
advantages, disadvantages
Base techniques of knowledge-based systems
rule-based techniques
inductive techniques
hybrid techniques
symbol-manipulation techniques
case-based techniques
(qualitative techniques, model-based techniques, temporal reasoning
techniques, neural networks)
User
User
interface
Inference
engine
Knowledge
base
Knowledge
Knowledge Developer's
acquisition
engineer interface
subsystem
AI programs
Knowledge-based systems
Expert systems
AI programs:
intelligent problem solving tools
KBSs
AI programs with special program structure
separated knowledge base
ESs
KBSs applied in a specific narrow field
Engineering Application of AI - PhD Course - 12
Expert system shells 1
„empty” ESs, contain all the active elements of an ES
empty KB, powerful knowledge acquicition subsystem
contain services for construction and operation of ES
independently of the field of interest
support the development of rapid prototype and the
incremental construction
examples: CLIPS, GoldWorks, G2, Level5
User
User
interface
Inference
engine
Knowledge
base
Knowledge
Knowledge Developer's
acquisition
engineer interface
subsystem
inductive techniques
hybrid techniques
symbol-manipulation techniques
case-based techniques
f(x)
x h y p o t h e s e s
Country
Germany Japan
yes Colour
red blue
yes no
n Si
S , A) S:Eset
G (where: examples,
( Sof) classified E ( Si ) A: attribute
1 n
S
S , … , S : subsets of iS1according to A
E: entropy
S S S S
E(S ) log 2 log 2
S S S S
Engineering Application of AI - PhD Course - 29
Learning decision trees 3
Author Thread Length Reads
1 known new short true
2 unknown new long true
3 unknown old short false
4 known old short true
5 known new long true
6 known old long true
7 unknown old long false
8 unknown new long true
9 known new short true
10 unknown old long false
11 known new short true
12 known old long true
13 known new long true
better: each one path (root leaf) on the decision tree is a rule
IF (Author = known)
THEN (Reads = true)
IF (Author = unknown) and (Thread = new)
THEN (Reads = true)
IF (Author = unknown) and (Thread = old)
THEN (Reads = false)
Knowledge representation:
The matrix of training examples:
attributes, values
f_name name
Person l_name Subject preconditions
Faster and more independent than rules. A rule is invoked by another rule or in case of
„Reason/action” is connected to the changes in presence of a certain data.
values and the system’ responses. The execution depends on the situation and
They act in autonomous way. cannot be seen in advance.
Less readable than rules. Easy to read.
(daemons are defined on the implementation (symbolic formalism, natural-language like)
language of the given tool)
They handle the pre-defined changes of the The built-in knowledge of the rules steams
given attribute-values. freely to all of the rules.
The range of a deamon is bounded statically in The range of a rule is stand out dynamically in
advance. (more or less flexible) run-time. (flexible, creative problem solving)
executing mechanism have to be defined executing mechanism have to be defined built-in executing mechanism
by the programmer by the programmer (goal-driven reasoning with backtracking
search strategy)
the structure of program and data is the sructure of program and data is the the sructure of program and data is the
different same (can produce, execute other same (can produce, execute other
programs, can modify themselves) programs, can modify themselves)
indexing
retrieving
(case-matching)
similar cases
case-base selecting
proposed solution
adapting
learning checking
solution
Engineering Application of AI - PhD Course - 54
Advantages and disadvantages
advantages:
case-base is more objective and formal than the expert’s interpretation
(knowledge of expert’s)
knowledge are represented in an explicit way
case can be defined for incomplete or badly-defined notions
CBR is suitable for domains for which a proper, theoretical foundations do
not exist
CBR is applicable in default of algorithmic method
easy knowledge acquisition (get well during usage)
disadvantages:
CBR solves only the problems covered by cases
CBR might use a past case blindly without validating it in the new situation
solution is time-demanding (also in case of proper indexing)
References
K. M. Hangos, R. Lakner and M. Gerzson: Intelligent Control Systems. An
Introduction with Examples. Kluwer Academic Publishers, 2001. Chapter 5.
D. Poole, A. Mackworth, R. Goebel: Computational Intelligence. A logical
Approach. Oxford University Press, 1998. Chapter 6.
I. Futó (Ed.): Mesterséges intelligencia. Aula Kiadó, 1999. Chapter 12. (in
hungarian)