You are on page 1of 27

JOMO KENYATTA UNIVERSITY

OF
AGRICULTURE & TECHNOLOGY
JKUAT SODeL

SCHOOL OF OPEN, DISTANCE AND eLEARNING


P.O. Box 62000, 00200
©2015

Nairobi, Kenya
E-mail: elearning@jkuat.ac.ke

ICS 2405 Knowledge Based Systems

JJ II LAST REVISION ON January 14, 2015


J I
J DocDoc I
Back Close
ICS 2405 Knowledge Based Systems
This presentation is intended to covered within one week.
The notes, examples and exercises should be supple-
mented with a good textbook. Most of the exercises have
solutions/answers appearing elsewhere and accessible by
JKUAT SODeL

clicking the green Exercise tag. To move back to the same


page click the same tag appearing at the end of the solu-
tion/answer.
©2015

Errors and omissions in these notes are entirely the re-


sponsibility of the author who should only be contacted
through the Department of Curricula & Delivery
(SODeL) and suggested corrections may be e-mailed to
elearning@jkuat.ac.ke.
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 0
ICS 2405 Knowledge Based Systems
LESSON 1
Knowledge based systems

Learning outcomes
JKUAT SODeL

Upon completing this topic, you should be able to:


• Identify and explain knowledge based systems and artifi-
cial intelligence
©2015

JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 1
ICS 2405 Knowledge Based Systems
1.1. Introduction
1.1.1. AI Concepts
• Intelligence and types of intelligence
• Understanding AI
JKUAT SODeL

• History of AI
• Characteristics of AI
©2015

• Modeling and AI System


• Main branches of AI
• Applications of AI:
– Application areas
JJ II – Application domains
J I • Problem solving techniques
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 2
ICS 2405 Knowledge Based Systems
1.2. Intelligence
1.2.1. Dictionary definition
• The ability to learn or understand or to deal with new
situations
JKUAT SODeL

• The ability to apply knowledge to manipulate one’s envi-


ronment or to think abstractly as measured by objective
©2015

criteria (as tests)

1.2.2. Types of Intelligence


According to Howard Gardner’s multiple intelligence theory, there
are various types of intelligence viz:

JJ II • General intelligence: - Abilities that allow us to be flex-


J I ible and adaptive thinkers, not necessarily tied to acquired
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 3
ICS 2405 Knowledge Based Systems
knowledge.
• Linguistic-verbal intelligence: - Use words and lan-
guage in various forms / Ability to manipulate language
to express oneself poetically
JKUAT SODeL

• Logical-Mathematical intelligence: - Ability to detect


patterns / Approach problems logically / Reason deduc-
tively
©2015

• Musical intelligence: - Recognize nonverbal sounds: pitch,


rhythm, and tonal patterns
• Spatial intelligence: - Typically thinks in images and
pictures / Used in both arts and sciences
JJ II • Intrapersonal intelligence: - Ability to understand one-
J I self, including feelings and motivations / Can discipline
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 4
ICS 2405 Knowledge Based Systems
themselves to accomplish a wide variety of tasks
• Interpersonal intelligence: - Ability to ”read people”—discrim
among other individuals especially their moods, intentions,
motivations; / Adept at group work, typically assume a
JKUAT SODeL

leadership role.
• Naturalist intelligence: - Ability to recognize and clas-
sify living things like plants, animals
©2015

• Bodily-Kinesthetic intelligence: - Use one’s mental


abilities to coordinate one’s own bodily movements
Note: Understanding the various types of intelligence
provides theoretical foundations for recognizing differ-
ent talents and abilities in people
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 5
ICS 2405 Knowledge Based Systems
1.3. What is AI?
There is no agreed definition of the term artificial intelligence.
However, there are various definitions that have been proposed.
These are considered below.
JKUAT SODeL

• AI is a study in which computer systems are made that


think like human beings. Haugeland, 1985 & Bellman,
1978.
©2015

• AI is a study in which computer systems are made that


act like people. AI is the art of creating computers that
perform functions that require intelligence when performed
by people. Kurzweil, 1990.

JJ II • AI is the study of how to make computers do things, which


J I at the moment people are better at. Rich & Knight .AI
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 6
ICS 2405 Knowledge Based Systems
is the study of computations that make it possible to per-
ceive, reason and act. Winston, 1992
• AI is considered to be a study that seeks to explain and
emulate intelligent behaviour in terms of computational
JKUAT SODeL

processes. Schalkeoff, 1990.


• AI is considered to be a branch of computer science that
is concerned with the automation of intelligent behavior.
©2015

Luger & Stubblefield, 1993.


Artificial Intelligence is the development of systems that exhibit
the characteristics we associate with intelligence in human be-
havior:
• perception,
JJ II
J I • natural language processing,
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 7
ICS 2405 Knowledge Based Systems
• reasoning, planning,
• problem solving,
• learning and adaptation, etc.
Development of AI: History
JKUAT SODeL

1943 McCulloch & Pitts: Boolean circuit model of brain


1950 Turing’s “Computing Machinery and Intelligence”
1950s Early AI programs, including Samuel’s checkers (draughts)
©2015

program Newell & Simon’s Logic Theorist, Gelernter’s Geome-


try Engine
1956 Dartmouth meeting: “Artificial Intelligence” adopted
1966–74 AI discovers computational complexity, Neural net-
work research almost disappears
JJ II 1969–79 Early development of knowledge-based systems
J I 1980–88 Expert systems industry booms
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 8
ICS 2405 Knowledge Based Systems
1988–93 Expert systems industry busts: “AI Winter”
1985–95 Neural networks return to popularity(Return of ANN)
1988– Resurgence of probabilistic and decision-theoretic meth-
ods Rapid increase in technical depth of mainstream AI, “Nou-
JKUAT SODeL

velle AI”: ALife, GAs, soft computing

Turing Test for Intelligence Tests the ability of a computer


©2015

system to act humanly


The aim is to determine if the human interrogator thinks
he/she is communicating with a human.
To pass Turing Test the computer must:
• Process natural language;
JJ II • Represent knowledge;
J I • Reason;
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 9
ICS 2405 Knowledge Based Systems
• Learn and adapt to the new situations.
Total Turing test included vision & robotics.

Characteristics of AI
JKUAT SODeL

• Symbolic Processing: AI emphasizes manipulation of


symbols rather than numbers. The manner in which sym-
bols are processed is non-algorithmic since most human
©2015

reasoning process do not necessarily follow a step by step


approach (algorithmic approach).
• Heuristics: Are similar to rules of thumb where you need
not rethink completely what to do every time a similar
problem is encountered.
JJ II • Inferencing: This is a form of reasoning with facts and
J I rules using heuristics or some search strategies.
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 10
ICS 2405 Knowledge Based Systems
• Pattern matching A process of describing objects, events
or processes in terms of their qualitative features and log-
ical and computational relationships.
• Knowledge Processing Knowledge consists of facts, con-
JKUAT SODeL

cepts, theories, heuristics methods, procedures and rela-


tionships.
• Knowledge bases. Collection of knowledge related to a
©2015

problem or an opportunity used in problem. Reasoning


occurs based on this knowledge base.

JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 11
ICS 2405 Knowledge Based Systems
JKUAT SODeL
©2015

JJ II Contrasting AI with Natural Intelligence


J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 12
ICS 2405 Knowledge Based Systems
Important commercial advantages of AI are:-
1. AI is permanent as long as computer system and programs
remain unchanged
2. AI offers ease of duplications and dissemination as com-
JKUAT SODeL

pared to long apprenticeship for natural intelligence.


3. AI can be less expensive than natural intelligence.
©2015

4. AI being a computer system is consistent and thorough;


natural intelligence may be erratic since people are erratic,
they don’t perform consistently.
5. AI can execute certain tasks much faster than humans can.
6. AI can perform certain tasks better than many or even
JJ II most people.
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 13
ICS 2405 Knowledge Based Systems
Natural Intelligence has the following advantages
1. Natural intelligence is creative, AI is uninspired- human
always determine knowledge.
2. Natural intelligence enables people to benefit from use of
JKUAT SODeL

sensory experience directly, while most AI systems must


work with symbolic knowledge.
©2015

Modelling an AI System A typical AI system consists of


three subsystems, i.e.,
1. Perception Subsystem
2. Reasoning Subsystem

JJ II 3. Action Subsystem(made of actuators/effectors)


J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 14
ICS 2405 Knowledge Based Systems
Main Branches of AI AI research and application can be
categorized into field’s along different dimensions.
• By the scope of cognitive/Intelligent capacities under re-
search - the fields include: Core cognitive facilities e.g.
JKUAT SODeL

searching, reasoning, learning, planning categorizing and


recognizing. Input/output facilities e.g. sensors.
• By the type of major techniques - the fields include: Rule –
©2015

Based system Case based system Neural networks Genetic


programming Logical programming (e.g. Prolog) Func-
tional programming(e.g. lisp)
• By the domains of application - the fields include: game
playing theorem proving data mining etc
JJ II • By the design Symbolic AI – Designers explicitly program
J I all of the AI “knowledge.” Connectionist AI – Designers
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 15
ICS 2405 Knowledge Based Systems
“teach” an artificial neural network what the AI needs to
“know.” Evolutionary AI – Designers give the AI the ability
to refine itself
JKUAT SODeL

AI application areas
• Game Playing
– Much of the early research in state space search was
©2015

done using common board games such as checkers,


chess, and the 15-puzzle
– Games can generate extremely large search spaces.
These are large and complex enough to require pow-
erful techniques for determining what alternative to
JJ II explore
J I • Automated reasoning and Theorem Proving
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 16
ICS 2405 Knowledge Based Systems
– Theorem-proving is one of the most fruitful branches
of the field
– Theorem-proving research was responsible in formal-
izing search algorithms and developing formal rep-
JKUAT SODeL

resentation languages such as predicate calculus and


the logic programming language
• Expert System
©2015

– One major insight gained from early work in problem


solving was the importance of domain-specific knowl-
edge
– Expert knowledge is a combination of a theoretical
understanding of the problem and a collection of heuris-
JJ II tic problem-solving rules
J I – Current deficiencies:
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 17
ICS 2405 Knowledge Based Systems
∗ Lack of flexibility; if human cannot answer a
question immediately, he can return to an exam-
ination of first principle and come up with some-
thing
∗ Inability to provide deep explanations
JKUAT SODeL

∗ Little learning from experience


• Natural Language Understanding and Semantics
©2015

– One of the long-standing goals of AI is the creation of


programming that are capable of understanding and
generating human language
• Modeling Human Performance

JJ II – Capture the human mind (knowledge representation)


J I • Robotics
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 18
ICS 2405 Knowledge Based Systems
– A robot that blindly performs a sequence of actions
without responding to changes or being able to detect
and correct errors could hardly be considered intelli-
gent
JKUAT SODeL

– It should have some degree of sensors and algorithms


to guide it
• Machine Learning
©2015

– Learning has remained a challenging area in AI


– An expert system may perform extensive and costly
computation to solve a problem; unlike human, it
usually doesn’t remember the solution
– Examples include:
JJ II ∗ Decision tree learning
J I ∗ Genetic algorithms
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 19
ICS 2405 Knowledge Based Systems
∗ Neural networks

Application Domains of AI
1. Application domain areas include:
JKUAT SODeL

2. Military
3. Medicine
©2015

4. Industry
5. Entertainment
6. Education
7. Business

JJ II Problem Solving Techniques in AI Problems are tackled


J I in AI using two main approaches namely:
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 20
ICS 2405 Knowledge Based Systems
• Search technique
• Modelling natural phenomena (e.g. evolution and neural
networks).
JKUAT SODeL
©2015

JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 21
ICS 2405 Knowledge Based Systems
Revision Questions

Example . What is Artificial Intelligence?


- Describe the Turing Test. .
Solution:
JKUAT SODeL

Artificial intelligence is a study in which computer systems


©2015

are made that act like people. People in this group include
Kurzweil, 1990 who particularly thought that AI is the art of
creating computers that perform functions that require intelli-
gence when performed by people. Rich & Knight were also in
this group and they considered AI as the study of how to make
computers do things which at the moment people are better at.
JJ II
the turing test is whereby The human interrogator thinks
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 22
ICS 2405 Knowledge Based Systems
he/she is communicating with a human.
To pass Turing Test the computer must:
Process natural language;
Represent knowledge;
JKUAT SODeL

Reason;
Learn and adapt to the new situations. 

Exercise 1.  What is intelligence? and Can intelligence be


©2015

mechanized?

References and Additional Reading Materials


1. A. Barr, E. A. Feigenbaum, and P. R. Cohen. The Hand-
book of Artificial Intelligence. William Kaufman. Los Al-
JJ II
tos, CA. 1981 (3 vols.)
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 23
ICS 2405 Knowledge Based Systems
2. B. G. Buchanan and R. O. Duda. Principles of Rule-Based
Expert Systems. Report STAN-CS-82-926. Stanford Uni-
versity, August, 1982.
3. F. Hayes-Roth, D. A. Waterman, and D. B. Lenat, (Eds.).
JKUAT SODeL

Building Expert Systems. Addison-Wesley, Reading, MA..


1983.
4. E. Rich. Artificial Intelligence. McGraw-Hill, New York,
©2015

NY, 1983.

JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 24
ICS 2405 Knowledge Based Systems
Solutions to Exercises
Exercise 1.

. ... Exercise 1
JKUAT SODeL
©2015

JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 25

You might also like