Artificial Intelligence
Artificial Intelligence
Search engines
Science
Medicine/
Diagnosis
Labor
Appliances What else?
What is artificial intelligence?
• There is no clear consensus on the definition of AI
• John McCarthy coined the phrase AI in 1956
http://www.formal.stanford.edu/jmc/whatisai/whatisai.html
Q. What is artificial intelligence?
A. It is the science and engineering of making intelligent machines, especially
intelligent computer programs. It is related to the similar task of using
computers to understand human or other intelligence, but AI does not have to
confine itself to methods that are biologically observable.
Q. Yes, but what is intelligence?
A. Intelligence is the computational part of the ability to achieve goals in the world.
Varying kinds and degrees of intelligence occur in people, many animals and
some machines.
What is AI? (Cont’d)
Other possible AI definitions
• AI is a collection of hard problems which can be solved by humans
and other living things, but for which we don’t have good
algorithms for solving.
– e. g., understanding spoken natural language, medical
diagnosis, circuit design, learning, self-adaptation, reasoning,
chess playing, proving math theories, etc.
• Russsell & Norvig: a program that
– Acts like human (Turing test)
– Thinks like human (human-like patterns of thinking steps)
– Acts or thinks rationally (logically, correctly)
• Some problems used to be thought of as AI but are now
considered not
– e. g., compiling Fortran in 1955, symbolic mathematics in 1965,
pattern recognition in 1970, what for the future?
• AI will cause
– social ills, unemployment
– End of humanity
Thinking Humanly: Cognitive Science
• 1960 “Cognitive Revolution”: information-processing
psychology replaced behaviorism
• Problems:
1) Uncertainty: Not all facts are certain (e.g., the flight might be delayed).
2) Resource limitations: There is a difference between solving a problem in principle and
solving it in practice under various resource limitations such as time, computation,
accuracy etc. (e.g., purchasing a car)
ArtificialIntelligence
Intelligent Agents
Outline
• Agents and environments
• Rationality
• Intelligence Agent
• PEAS(Performance measure, Environment,
Actuators, Sensors)
• Environment types
• Agent types
Agents
• An agent is anything that can be viewed as perceiving
its environment through sensors and acting upon
that environment through actuators
– Operates in an environment
– Perceive its environment through sensors
– Acts upon its environment through actuators/effectors
– Has Goals
Agents andenvironments
• Extremes
– No autonomy – ignores environment/data
– Complete autonomy – must act randomly/no program
• Example: baby learning to crawl
• Ideal: design agents to have some autonomy
– Possibly good to become more autonomous in time
IntelligenceAgent
• Must sense
• Must act
• Must autonomous (to someextend)
• Must rational
PEAS
• PEAS: Performance measure, Environment,
Actuators, Sensors
• Must first specify the setting forintelligent agent
design
• Consider, e.g., the task of designing an automated
taxi driver:
– Performance measure
– Environment
– Actuators
– Sensors
PEAS
• The task ofdesigning an automated taxi driver:
23
Environments –
Deterministic vs. non-deterministic
• A deterministic environment is one in which the next
state of the environment is completely determined by
the current state and the action executed by theagent.
24
Environments –
Episodic vs. non-episodic
• In an episodic environment, the performance of an
agent is dependent on a number of discrete episodes,
with no link between the performance of an agent in
different scenarios
• Episodic environments are simpler from the agent
developer’s perspective because the agent can
decide what action to perform based only on the
current episode —it need not reason about the
interactions between this and future episodes
25
Environments –
Static vs. dynamic
• A static environment is unchanged while an agent is
reflecting.
• A dynamic environment is one that has other
processes operating on it, and which hence changesin
ways beyond the agent’s control
• Other processes can interfere with the agent’sactions
(as in concurrent systems theory)
• The physical world is a highly dynamic environment
26
Environments –
Discrete vs. continuous
• An environment is discrete if there are a fixed,finite
number of actions and percepts in it
– Ex: chess game
• Continuous environments have a certain level of
mismatch with computer systems
– Ex: taxi driving
• Discrete environments could in principle be handled
by a kind of “lookup table”
27
?
Agent types
Four basic types in order of increasing
generality:
Simple reflex agents
Model-based reflex agents
Goal-based agents
Utility-based agents
23
Simple reflex agents
24
function Reflex-Vacuum-Agent( [location,status]) re-
turns an action
if status = Dirty then return Suck
else if location = A then return Right
else if location = B then return Left
State<- UPDATE-STATE(state,action,percept,model)
Rule<-RULE-MATCH(state, rules)
Action<-(rule,ACTION)
return action
Model-based reflex agents
25
function MODEL-BASED-REFLEX-AGENT (percept) returns an action
Persistent: state, the agent’s current conception of the world state
Model, a description of how the next state depends on current state and action
Rules, a set of condition-action rules
Action, the most recent action, initially none
State<- UPDATE-STATE(state,action,percept,model)
Rule<-RULE-MATCH(state, rules)
Action<-(rule,ACTION)
return action
Goal-based agents
26
Utility-based agents
27
Learning agents
28
Summary
Agents interact with environments through actuators and sensors
The agent function describes what the agent does in all
circumstances
The performance measure evaluates the environment sequence
A perfectly rational agent maximizes expected performance
Agent programs implement (some) agent functions
PEAS descriptions define task environments
Environments are categorized along several dimensions:
observable? deterministic? episodic? static? discrete? single-
agent?
Several basic agent architectures exist:
reflex, model-based, goal-based, utility-based
29
?
Discussion
ReviewQuestion
• Define in your own words the followingterms:
– agent, agent function, agent program, rationality,autonomy,
• For each of the following agents, develop aPEAS
description of the taskenvironment
– Part-picking robot, TaxiDriver
• Describe the following types of theenvironment
– Static vs. Dynamic
– Deterministic vs. non-deterministic
• List 4 most complex environments in which constructing
agent is very difficult.
• What is Omniscience?