Chapter 1
Chapter 1
2
Course
⚫ T h e purpose of this course is to give students
Description
an understanding of Artifi cial Intelligence
methodologies, techniques, tools and results.
⚫ Students will use py th on pr og r ammi n g
language to demonstrate laboratory
exercises.
⚫ Students will learn the theoretical and
conceptual components
of this discipline and fi rm u p their understanding b y
using AI and Expert System tools in laboratory
sessions, projects and h o m e assignments.
3
Course
At the end o f this course the students will be able
objectives
to:
⚫ Understand reasoning, knowledge representation and
learning
techniques of artifi cial intelligence
⚫ Evaluate the strengths and weaknesses of these
techniques and their applicability to diff erent tasks
⚫ Assess the role of AI in gaining insight into
intelligence and perception
⚫ Kn ow classical examples of artifi cial intelligence
⚫ Kn ow characteristics of programs that can be
considered
"intelligent"
Intelligent Agents Foundation of Agents, Agents and Environments, Acting of Intelligent Agents
(4 hrs) (Rationality), Structure of Intelligent Agents: Agent Types, Simple reflex
agent, Model-based reflex agent, Goal-based agent, Utility-based agent. Multi
agent systems, Learning agent
Searching and Solving Problems by Searching and planning, Constraint Satisfaction Problem,
Planning (6 hrs) Problem Solving Agents, Problem spaces and search, Knowledge and
rationality, Heuristic search strategies, Search and optimization (gradient
descent), Adversarial search, Planning and scheduling, Avoiding Repeated
States, Dynamic game theory
Knowledge Logic and Inference, Logical Agents, Propositional Logic, Predicate (First-
Representation Order) Logic, Inference in First-Order Logic, Knowledge Representation,
and Reasoning (8 Knowledge Reasoning, Bayesian reasoning, Probabilistic reasoning, Temporal
hrs) reasoning, Knowledge-based Systems, Case study: Medical diagnosis
6
Course Outline…
Machine Learning Knowledge in Learning, Learning Probabilistic Models, Supervised learning:
Basics (3 hrs) Linear classification models, Probabilistic models., Unsupervised learning:
Clustering models, Reinforcement learning, Deep Learning: Neural networks and
back- propagation, Convolution neural networks, Recurrent neural networks and
LSTMs
Natural Language Intro to Natural Language Processing, Machine learning Application in NLP,
Processing (NLP) Natural language interaction, Computer vision and Image processing, Case
Basics (3 hrs) study: Sentiment Analysis, speech recognition, Chatbot
Ethical and Legal Privacy, Bias, AI and the future of work, Appropriate uses of AI
Considerations in
AI (2 hrs)
7
Assessment methods
⚫ This course is assessed b y written
exams, lab assignments, reports and
presentations of assignments.
⚫ Assessment Breakdown:
⚫ Assignment/quizzes 10 %
⚫ M id semester examination
⚫
20%
Project ` 20%
Final examination 50%
8
Reading
⚫ Material
Text Books:
⚫ Russell, S. and P. Norvig (1995) Artifi cial
Intelligence: A M ode r n Approach Prentice-Hall
⚫ References:
⚫ Luger, G. (2002) Artifi cial Intelligence, 4th ed.
Addison- Wesley.
⚫ Bratko, Ivan (1990) P R O L O G Programming for
Artifi cial Intelligence, 2nd ed. Addison-Wesley,
1990
⚫ Winston, P.H. (1992) Artifi cial Intelligence Addison-
Wesley. Ginsberg, M.L. (1993) Essentials of Artifi cial
Intelligence. Morgan Kaufman.
9
Topic 1: Introduction to AI
Introduction to Artificial
Intelligence
O v e r v i e w of AI
Objectives/Goals of AI
T y p e s of AI(General and Specifi c AI)
Approaches to AI – making computer:
Think like a human ( Thinking
humanly)
Act like a human (Acting humanly)
Think rationally (Thinking rationally)
Act rationally (Acting rationally)
T h e Foundations of AI
Bits of History and the State of the Art
Proposing and evaluating Application
of AI
11
Overview of
AIWe
⚫ call ourselves H o m o sapiens—m a n the w i s e —
because our
intelligence is so important to us.
13
Intelligence
⚫ Intelligence is the computational part of the ability
to achieve
goals in the world.
20
Objectives/Goals of AI
⚫ T h e central scientifi c goal of AI is to understand the
principles
that make intelligent behavior possible in natural or
artifi cial
systems. This is done by
⚫ the analysis o f natural and artifi cial agents
24
Strong AI vs Weak
AI
⚫ Strong AI argues that it is possible that one day a
computer will be invented which can be called a m i n d in
its fullest sense.
⚫ Strong AI aims to create an agent that can replicate
humans intelligence completely; i.e., it can think, reason,
imagine, etc., & d o all the things that are currently associated
with the h u m a n brain.
⚫ We a k AI, o n the other hand, argue that computers can
only
appear to think & are not actually conscious in the
same w a y as h u m a n brains are.
⚫ T h e weak AI position holds that AI should try to
develop systems which have facets of intelligence, but the
objective is not to build a completely sentient/conscious
25
entity.
Strong AI vs Weak
AI
⚫ A k e y counter o f AI is to achieve a superhuman
level in challenging fi elds through self-learning
without any prior
knowledge.
⚫ T h e followers of strong AI believe that b y giving a computer
b y computers
to solve compl ex problems. This point of view argues that just because a computer behaves
intelligently
does not prove that it is actually intelligent in the way that a human is.
29
Approaches to AI – making computer:
30
Thinking humanly:
The Cognitive
Modeling
Reasons like humans do
⚫
31
Acting humanly: The
Turing Test
Can machines act like h u m a n do? Can machines
behave
intelligently?
⚫ Turing Test: Operational test for intelligent behavior
⚫ do experiments on the ability to achieve
human-level performance,
⚫ Acting like humans requires AI programs to
interact with
people
⚫ Suggested major components of AI include:
knowledge, reasoning, language understanding,
learning
32
Thinking Rationally: The Laws
of Thought
⚫ A system is rational if it thinks/does the right thing
through
correct reasoning.
33
Acting rationally: The rational
agent
⚫ Doing the right thing so as to achieve one’s goal,
given one’s
beliefs.
34
The Foundations of
AIAI is Interdisciplinary
⚫
⚫ AI is generally associated with C o m p u t e r
Science, but it
has m a n y important links with other fi elds such
as:
⚫ Mathematics,
⚫ Biology,
⚫ Economics,
⚫ Cognition,
⚫ Psychology,
⚫ Philosophy and
⚫ Neuroscience.
35
Philosophy
⚫ Can formal rules be used to draw valid conclusions?
⚫ How does the mind arise from a physical brain?
⚫ Where does knowledge come from?
⚫ How does knowledge lead to action?
⚫ Descartes was a proponent o f dualism. He held that
there is a part o f the h u m a n m i n d (or soul or spirit) that is
outside o f nature,
exempt f r o m physical laws. Animals, o n the other hand,
did not possess this dual quality; they could be treated
as machines.
⚫ A n alternative to dualism is materialism, which holds
that the brain’s operation according to the laws o f
physics constitutes the
36
mind. Free will is simply the w a y that the perception o f
Philosophy
⚫ T h e empiricism is characterized b y a dictum o f John
Locke (1632–1704): “Nothing is in the understanding,
which was not first
in the senses.”
42
Psychology
⚫ How do humans and animals think and act?
⚫ Wundt insisted on carefully controlled experiments in
which his
workers would per for m a perceptual or associative task
while introspecting on their thought processes. T h e
behaviorism m o v e m e n t rejected any theory involving
mental processes on the grounds that introspection could
not provide reliable evidence.
⚫ Cognitive psychology views the brain as an information-
processing device. T h r e e k ey steps of a knowledge-based
agent: (1) the stimulus must be translated into an internal
representation, (2) the representation is manipulated b y
cognitive processes to derive new internal representations,
and (3) these are in turn retranslated back
43
into action.
Computer engineering
⚫ How can we build an efficient computer?
44
Control theory and
cybernetics
⚫ How can artifacts operate under their own control?
45
Linguistics
⚫ How does language relate to thought?
46
THE HISTORY OF ARTIFICIAL
INTELLIGENCE
The inception of artificial intelligence (1943-1956)
50
Applications of
AI problems that required thinking b y humans:
Solving
● Playing games (chess, checker, cards, ...)
● Great advances: the AI software De e p Blue beats
h u m a n expert Kasparov.
● Proving theorems (mathematical theorems, laws o f
physics, …)
● Classifi cation o f text (Politics, Economic, Social,
Sports, etc,)
● Information fi ltering and summarization o f text
● Writing story and poems; solving puzzles
● Giving advice in Medical diagnosis, Equipment repair,
Com puter confi guration, Financial planning,
51
How to make computers
act like humans?
T h e following sub-fi elds have emerged
● Natural Language processing (enable computers to
communicate in human language, English, Amharic, ..)
● Knowledge representation (schemes to store information,
both facts and inferences,…)
● Automated reasoning (use stored information to answer
questions and to draw new conclusions)
● Machine learning (adapt to new circumstances and
accumulate knowledge)
● Computer vision (recognize objects based on patterns in
the same
way as the human visual system does)
● Robotics (produce mechanical device capable of controlled
motion with the ability to move, see, hear, and accordingly
52
take actions in the world, possibly responding to new
AI vs.
HI?
T h e following sub-fi elds have emerged
● Artifi cial Intelligence (or AI) is the fi eld that explores to
develop a system that think in the same sense as
humans do.
● Re me mb e r computer based chess program (Deep Blue)
that beats human expert (Gary Kasparov). What do y o u
understand from this?
● Does AI equal h u m a n intelligence?
● Is it possible to create a computer system called mind?
● What is our concern in designing an Intelligent agent?
● Is it to replace h u m a n beings or to support and give
leverage
to th em so that the humans can engage themselves
in expert works?
53
Can we build hardware
as complex as the
brain?
● H o w complicated is our brain?
● a neuron, or nerve cell, is the basic information processing
unit in our brain
● estimated to be o n the order o f 10 p o w 11 neurons in a
h u m a n brain
● m a n y m o r e synapses (10pow14) connecting these neurons
● Conclusion
● POSSIBLY: in the future w e m a y have computers with as
m a n y basic
processing elements as our brain, but with far fewer
54
like a
interconnections (wires or synapses) than the brain and m u c h
Can Computers Talk?
● This is known as “speech synthesis”
● tra nslate text to phonetic for m
●
● e.g., “fi ctitious” -> fi k-tish-es
us e pronunciation rules to m a p p honem es to actual sound
●
e.g., “tish” -> sequence of basic audio sounds
● Diff iculties
●
● sounds m a d e b y this “lookup” approach sound unnatural
so unds are not independent
●
e.g., “act” and “action”
56 ● limited vocabulary
saves millions (area acodes,
of dollars citythe
year for names)
phone companies
Recognizing human speech
(ctd.)
● Recognizing normal speech is m u c h m o r e diff icult
● speech is continuous: where are the boundaries between
words?
● e.g., “John’s car has a fl at tire”
● large vocabularies
● can be m a n y tens of thousands of possible words
we can use context to help fi gure out what s omeone said
●
try telling a waiter in a restaurant:
“I would like s ome cream and sugar in m y coff ee”
59
appropriate way
Can Computers
“see”?
● Recognition v. Understanding (like Speech)
● Recognition and Understanding of Objects in a
scene
● look around this r o o m
● y o u can eff ortlessly recognize objects
62
Risks and Benefits of
AIL E T H A L A U T O N O M O U S
●
WEAPONS
● SURVEILLANCE A N D
PERSUASION
● BIASED D E C I S I O N M A K I N G
● I M PA C T O N E M P L O Y M E N T
● SAFETY-C R I T I C A L
A PP LI C ATI O N S
● C YBE RSECU R ITY
63
The End of Topic 1