SlideShare a Scribd company logo
1 of 38
C H A P T E R 2
O l i v e r S c h u l t e
S u m m e r 2 0 1 1
Intelligent Agents
Outline
Artificial Intelligence a modern approach
2
 Agents and environments
 Rationality
 PEAS (Performance measure, Environment,
Actuators, Sensors)
 Environment types
 Agent types
Agents
Artificial Intelligence a modern approach
3
• An agent is anything that can be viewed as
perceiving its environment through sensors and
acting upon that environment through actuators
• Human agent:
– eyes, ears, and other organs for sensors;
– hands, legs, mouth, and other body parts for actuators
• Robotic agent:
– cameras and infrared range finders for sensors
– various motors for actuators
Agents and environments
Artificial Intelligence a modern approach
4
• The agent function maps from percept histories to
actions:
[f: P*  A]
• The agent program runs on the physical architecture to
produce f
• agent = architecture + program
Vacuum-cleaner world
Artificial Intelligence a modern approach
5
 Percepts: location and contents, e.g., [A,Dirty]
 Actions: Left, Right, Suck, NoOp
 Agent’s function  look-up table
 For many agents this is a very large table
Demo:
http://www.ai.sri.com/~oreilly/aima3ejava/aima3ejavademos.h
tml
Rational agents
Artificial Intelligence a modern approach
6
• Rationality
– Performance measuring success
– Agents prior knowledge of environment
– Actions that agent can perform
– Agent’s percept sequence to date
• Rational Agent: For each possible percept sequence, a
rational agent should select an action that is expected to
maximize its performance measure, given the evidence
provided by the percept sequence and whatever built-in
knowledge the agent has.
•
Examples of Rational Choice
 See File: intro-choice.doc
Artificial Intelligence a modern approach
7
Rationality
Artificial Intelligence a modern approach
8
 Rational is different from omniscience
 Percepts may not supply all relevant information
 E.g., in card game, don’t know cards of others.
 Rational is different from being perfect
 Rationality maximizes expected outcome while perfection
maximizes actual outcome.
Autonomy in Agents
 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 become more autonomous with experience
The autonomy of an agent is the extent to which its
behaviour is determined by its own experience,
rather than knowledge of designer.
PEAS
Artificial Intelligence a modern approach
10
• PEAS: Performance measure, Environment,
Actuators, Sensors
• Must first specify the setting for intelligent agent
design
• Consider, e.g., the task of designing an automated
taxi driver:
– Performance measure: Safe, fast, legal, comfortable trip,
maximize profits
– Environment: Roads, other traffic, pedestrians, customers
– Actuators: Steering wheel, accelerator, brake, signal, horn
– Sensors: Cameras, sonar, speedometer, GPS, odometer,
engine sensors, keyboard
PEAS
Artificial Intelligence a modern approach
11
 Agent: Part-picking robot
 Performance measure: Percentage of parts in correct
bins
 Environment: Conveyor belt with parts, bins
 Actuators: Jointed arm and hand
 Sensors: Camera, joint angle sensors
PEAS
Artificial Intelligence a modern approach
12
 Agent: Interactive English tutor
 Performance measure: Maximize student's score on
test
 Environment: Set of students
 Actuators: Screen display (exercises, suggestions,
corrections)
 Sensors: Keyboard
Environment types
Artificial Intelligence a modern approach
13
• Fully observable (vs. partially observable)
• Deterministic (vs. stochastic)
• Episodic (vs. sequential)
• Static (vs. dynamic)
• Discrete (vs. continuous)
• Single agent (vs. multiagent):
Fully observable (vs. partially observable)
Artificial Intelligence a modern approach
14
 Is everything an agent requires to choose its actions
available to it via its sensors? Perfect or Full
information.
 If so, the environment is fully accessible
 If not, parts of the environment are inaccessible
 Agent must make informed guesses about world.
 In decision theory: perfect information vs. imperfect
information.
Cross Word Backgammon Taxi driver Part picking robot
Poker Image analysis
Fully Fully Fully
Partially
Partially Partially
Deterministic (vs. stochastic)
Artificial Intelligence a modern approach
15
 Does the change in world state
 Depend only on current state and agent’s action?
 Non-deterministic environments
 Have aspects beyond the control of the agent
 Utility functions have to guess at changes in world
Cross Word Backgammon Taxi driver Part picking robot
Poker Image analysis
Cross Word Backgammon Taxi driver Part
Poker Image analysis
Deterministic Deterministic
Stochastic
Stochastic
Stochastic Stochastic
Episodic (vs. sequential):
Artificial Intelligence a modern approach
16
 Is the choice of current action
 Dependent on previous actions?
 If not, then the environment is episodic
 In non-episodic environments:
 Agent has to plan ahead:
 Current choice will affect future actions
Cross Word Backgammon Taxi driver Part picking robot
Poker Image analysis
Sequential
Sequential
Sequential
Sequential Episodic Episodic
Static (vs. dynamic):
Artificial Intelligence a modern approach
17
 Static environments don’t change
 While the agent is deliberating over what to do
 Dynamic environments do change
 So agent should/could consult the world when choosing actions
 Alternatively: anticipate the change during deliberation OR make
decision very fast
 Semidynamic: If the environment itself does not change
with the passage of time but the agent's performance
score does.
Cross Word Backgammon Taxi driver Part picking robot
Poker Image analysis
Static Static Static Dynamic Dynamic Semi
Another example: off-line route planning vs. on-board navigation system
Discrete (vs. continuous)
Artificial Intelligence a modern approach
18
 A limited number of distinct, clearly defined percepts and
actions vs. a range of values (continuous)
Cross Word Backgammon Taxi driver Part picking robot
Poker Image analysis
Discrete Discrete Discrete Conti Conti Conti
Single agent (vs. multiagent):
Artificial Intelligence a modern approach
19
 An agent operating by itself in an environment or there are
many agents working together
Cross Word Backgammon Taxi driver Part picking robot
Poker Image analysis
Single Single Single
Multi
Multi
Multi
Artificial Intelligence a modern approach
Observable Deterministic Static
Episodic Agents
Discrete
Cross Word
Backgammon
Taxi driver
Part picking robot
Poker
Image analysis
Deterministic
Stochastic
Deterministic
Stochastic
Stochastic
Stochastic
Sequential
Sequential
Sequential
Sequential
Episodic
Episodic
Static
Static
Static
Dynamic
Dynamic
Semi
Discrete
Discrete
Discrete
Conti
Conti
Conti
Single
Single
Single
Multi
Multi
Multi
Summary.
Fully
Fully
Fully
Partially
Partially
Partially
Choice under (Un)certainty
Artificial Intelligence a modern approach
21
Fully
Observable
Deterministic
Certainty:
Search
Uncertainty
no
yes
yes
no
Agent types
Artificial Intelligence a modern approach
22
 Four basic types in order of increasing generality:
 Simple reflex agents
 Reflex agents with state/model
 Goal-based agents
 Utility-based agents
 All these can be turned into learning agents
 http://www.ai.sri.com/~oreilly/aima3ejava/aima3ejavad
emos.html
Simple reflex agents
Artificial Intelligence a modern approach
23
Simple reflex agents
Artificial Intelligence a modern approach
24
 Simple but very limited intelligence.
 Action does not depend on percept history, only on current
percept.
 Therefore no memory requirements.
 Infinite loops
 Suppose vacuum cleaner does not observe location. What do you do
given location = clean? Left of A or right on B -> infinite loop.
 Fly buzzing around window or light.
 Possible Solution: Randomize action.
 Thermostat.
 Chess – openings, endings
 Lookup table (not a good idea in general)
 35100 entries required for the entire game
States: Beyond Reflexes
• Recall the agent function that maps from percept histories
to actions:
[f: P*  A]
 An agent program can implement an agent function by
maintaining an internal state.
 The internal state can contain information about the state
of the external environment.
 The state depends on the history of percepts and on the
history of actions taken:
[f: P*, A* S A] where S is the set of states.
 If each internal state includes all information relevant to
information making, the state space is Markovian.
Artificial Intelligence a modern approach
25
States and Memory: Game Theory
 If each state includes the information about the
percepts and actions that led to it, the state space has
perfect recall.
 Perfect Information = Perfect Recall + Full
Observability + Deterministic Actions.
Artificial Intelligence a modern approach
26
Model-based reflex agents
Artificial Intelligence a modern approach
27
 Know how world evolves
 Overtaking car gets closer from
behind
 How agents actions affect the
world
 Wheel turned clockwise takes you
right
 Model base agents update their
state
Goal-based agents
Artificial Intelligence a modern approach
28
• knowing state and environment? Enough?
– Taxi can go left, right, straight
• Have a goal
 A destination to get to
 Uses knowledge about a goal to guide its actions
 E.g., Search, planning
Goal-based agents
Artificial Intelligence a modern approach
29
• Reflex agent breaks when it sees brake lights. Goal based agent
reasons
– Brake light -> car in front is stopping -> I should stop -> I should use brake
Utility-based agents
Artificial Intelligence a modern approach
30
 Goals are not always enough
 Many action sequences get taxi to destination
 Consider other things. How fast, how safe…..
 A utility function maps a state onto a real number
which describes the associated degree of
“happiness”, “goodness”, “success”.
 Where does the utility measure come from?
 Economics: money.
 Biology: number of offspring.
 Your life?
Utility-based agents
Artificial Intelligence a modern approach
31
Learning agents
Artificial Intelligence a modern approach
32
 Performance element is
what was previously the
whole agent
 Input sensor
 Output action
 Learning element
 Modifies performance
element.
Learning agents
Artificial Intelligence a modern approach
33
 Critic: how the agent is
doing
 Input: checkmate?
 Fixed
 Problem generator
 Tries to solve the problem
differently instead of
optimizing.
 Suggests exploring new
actions -> new problems.
Learning agents(Taxi driver)
 Performance element
 How it currently drives
 Taxi driver Makes quick left turn across 3 lanes
 Critics observe shocking language by passenger and other drivers
and informs bad action
 Learning element tries to modify performance elements for future
 Problem generator suggests experiment out something called
Brakes on different Road conditions
 Exploration vs. Exploitation
 Learning experience can be costly in the short run
 shocking language from other drivers
 Less tip
 Fewer passengers
Artificial Intelligence a modern approach
34
The Big Picture: AI for Model-Based Agents
Artificial Intelligence a modern approach
35
Action
Learning
Knowledge
Logic
Probability
Heuristics
Inference
Planning
Decision Theory
Game Theory
Reinforcement
Learning
Machine Learning
Statistics
The Picture for Reflex-Based Agents
Artificial Intelligence a modern approach
36
Action
Learning
Reinforcement
Learning
• Studied in AI, Cybernetics, Control Theory, Biology,
Psychology.
Discussion Question
 Model-based behaviour has a large overhead.
 Our large brains are very expensive from an
evolutionary point of view.
 Why would it be worthwhile to base behaviour on a
model rather than “hard-code” it?
 For what types of organisms in what type of
environments?
Artificial Intelligence a modern approach
37
Summary
 Agents can be described by their PEAS.
 Environments can be described by several key properties:
64 Environment Types.
 A rational agent maximizes the performance measure for
their PEAS.
 The performance measure depends on the agent
function.
 The agent program implements the agent function.
 3 main architectures for agent programs.
 In this course we will look at some of the common and
useful combinations of environment/agent architecture.
Artificial Intelligence a modern approach
38

More Related Content

Similar to chapter2.ppt

Introduction To Artificial Intelligence
Introduction To Artificial IntelligenceIntroduction To Artificial Intelligence
Introduction To Artificial IntelligenceNeHal VeRma
 
Introduction To Artificial Intelligence
Introduction To Artificial IntelligenceIntroduction To Artificial Intelligence
Introduction To Artificial IntelligenceNeHal VeRma
 
artificial Intelligence unit1 ppt (1).ppt
artificial Intelligence unit1 ppt (1).pptartificial Intelligence unit1 ppt (1).ppt
artificial Intelligence unit1 ppt (1).pptRamya Nellutla
 
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsJarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsPalGov
 
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsJarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsPalGov
 
intelligent agent (1).pptx
intelligent agent (1).pptxintelligent agent (1).pptx
intelligent agent (1).pptxShivareddyGangam
 
CS 3491 Artificial Intelligence and Machine Learning Unit I Problem Solving
CS 3491 Artificial Intelligence and Machine Learning Unit I Problem SolvingCS 3491 Artificial Intelligence and Machine Learning Unit I Problem Solving
CS 3491 Artificial Intelligence and Machine Learning Unit I Problem SolvingBalamuruganV28
 
Artificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agentsArtificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agentsEhsan Nowrouzi
 
Intelligent (Knowledge Based) agent in Artificial Intelligence
Intelligent (Knowledge Based) agent in Artificial IntelligenceIntelligent (Knowledge Based) agent in Artificial Intelligence
Intelligent (Knowledge Based) agent in Artificial IntelligenceKuppusamy P
 
Artificial intelligence introduction
Artificial intelligence introductionArtificial intelligence introduction
Artificial intelligence introductionmelchismel
 

Similar to chapter2.ppt (20)

Artificial Intelligent Agents
Artificial Intelligent AgentsArtificial Intelligent Agents
Artificial Intelligent Agents
 
Introduction To Artificial Intelligence
Introduction To Artificial IntelligenceIntroduction To Artificial Intelligence
Introduction To Artificial Intelligence
 
Introduction To Artificial Intelligence
Introduction To Artificial IntelligenceIntroduction To Artificial Intelligence
Introduction To Artificial Intelligence
 
Unit 1.ppt
Unit 1.pptUnit 1.ppt
Unit 1.ppt
 
artificial Intelligence unit1 ppt (1).ppt
artificial Intelligence unit1 ppt (1).pptartificial Intelligence unit1 ppt (1).ppt
artificial Intelligence unit1 ppt (1).ppt
 
Lecture1
Lecture1Lecture1
Lecture1
 
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsJarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
 
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsJarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
 
Agents_AI.ppt
Agents_AI.pptAgents_AI.ppt
Agents_AI.ppt
 
intelligent agent (1).pptx
intelligent agent (1).pptxintelligent agent (1).pptx
intelligent agent (1).pptx
 
2.pdf
2.pdf2.pdf
2.pdf
 
Lecture 02-agents
Lecture 02-agentsLecture 02-agents
Lecture 02-agents
 
CS 3491 Artificial Intelligence and Machine Learning Unit I Problem Solving
CS 3491 Artificial Intelligence and Machine Learning Unit I Problem SolvingCS 3491 Artificial Intelligence and Machine Learning Unit I Problem Solving
CS 3491 Artificial Intelligence and Machine Learning Unit I Problem Solving
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Artificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agentsArtificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agents
 
AI_Ch2.pptx
AI_Ch2.pptxAI_Ch2.pptx
AI_Ch2.pptx
 
Intelligent (Knowledge Based) agent in Artificial Intelligence
Intelligent (Knowledge Based) agent in Artificial IntelligenceIntelligent (Knowledge Based) agent in Artificial Intelligence
Intelligent (Knowledge Based) agent in Artificial Intelligence
 
Slide01 - Intelligent Agents.ppt
Slide01 - Intelligent Agents.pptSlide01 - Intelligent Agents.ppt
Slide01 - Intelligent Agents.ppt
 
Lec 2-agents
Lec 2-agentsLec 2-agents
Lec 2-agents
 
Artificial intelligence introduction
Artificial intelligence introductionArtificial intelligence introduction
Artificial intelligence introduction
 

More from ShivareddyGangam

Student Voting Application for Election – Using SMS (1).pptx
Student Voting Application for Election – Using SMS (1).pptxStudent Voting Application for Election – Using SMS (1).pptx
Student Voting Application for Election – Using SMS (1).pptxShivareddyGangam
 
Project Management (2).pdf
Project Management (2).pdfProject Management (2).pdf
Project Management (2).pdfShivareddyGangam
 
The Product and Process(1).pdf
The Product and Process(1).pdfThe Product and Process(1).pdf
The Product and Process(1).pdfShivareddyGangam
 
Unit24_TopologicalSort (2).ppt
Unit24_TopologicalSort (2).pptUnit24_TopologicalSort (2).ppt
Unit24_TopologicalSort (2).pptShivareddyGangam
 
artificialintelligencea-200326090832.pdf
artificialintelligencea-200326090832.pdfartificialintelligencea-200326090832.pdf
artificialintelligencea-200326090832.pdfShivareddyGangam
 
Software Project Risks Management (1).pdf
Software Project Risks Management (1).pdfSoftware Project Risks Management (1).pdf
Software Project Risks Management (1).pdfShivareddyGangam
 
OS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptx
OS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptxOS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptx
OS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptxShivareddyGangam
 
machinelearningengineeringslideshare-160909192132 (1).pdf
machinelearningengineeringslideshare-160909192132 (1).pdfmachinelearningengineeringslideshare-160909192132 (1).pdf
machinelearningengineeringslideshare-160909192132 (1).pdfShivareddyGangam
 
ARCHITECTURE OF DBMS (1).ppt
ARCHITECTURE OF DBMS (1).pptARCHITECTURE OF DBMS (1).ppt
ARCHITECTURE OF DBMS (1).pptShivareddyGangam
 

More from ShivareddyGangam (20)

Student Voting Application for Election – Using SMS (1).pptx
Student Voting Application for Election – Using SMS (1).pptxStudent Voting Application for Election – Using SMS (1).pptx
Student Voting Application for Election – Using SMS (1).pptx
 
Project Management (2).pdf
Project Management (2).pdfProject Management (2).pdf
Project Management (2).pdf
 
pca.ppt
pca.pptpca.ppt
pca.ppt
 
The Product and Process(1).pdf
The Product and Process(1).pdfThe Product and Process(1).pdf
The Product and Process(1).pdf
 
Unit24_TopologicalSort (2).ppt
Unit24_TopologicalSort (2).pptUnit24_TopologicalSort (2).ppt
Unit24_TopologicalSort (2).ppt
 
Lecture1_jps (1).ppt
Lecture1_jps (1).pptLecture1_jps (1).ppt
Lecture1_jps (1).ppt
 
2 semai.pptx
2 semai.pptx2 semai.pptx
2 semai.pptx
 
artificialintelligencea-200326090832.pdf
artificialintelligencea-200326090832.pdfartificialintelligencea-200326090832.pdf
artificialintelligencea-200326090832.pdf
 
Software Project Risks Management (1).pdf
Software Project Risks Management (1).pdfSoftware Project Risks Management (1).pdf
Software Project Risks Management (1).pdf
 
Introduction (1).pdf
Introduction (1).pdfIntroduction (1).pdf
Introduction (1).pdf
 
Unit 3 (1) (1).pdf
Unit 3 (1) (1).pdfUnit 3 (1) (1).pdf
Unit 3 (1) (1).pdf
 
Unit 1 (1).pdf
Unit 1 (1).pdfUnit 1 (1).pdf
Unit 1 (1).pdf
 
Strassen.ppt
Strassen.pptStrassen.ppt
Strassen.ppt
 
Notion of Algorithms.pdf
Notion of Algorithms.pdfNotion of Algorithms.pdf
Notion of Algorithms.pdf
 
11_Automated_Testing.ppt
11_Automated_Testing.ppt11_Automated_Testing.ppt
11_Automated_Testing.ppt
 
OS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptx
OS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptxOS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptx
OS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptx
 
Project Management.pdf
Project Management.pdfProject Management.pdf
Project Management.pdf
 
PP
PPPP
PP
 
machinelearningengineeringslideshare-160909192132 (1).pdf
machinelearningengineeringslideshare-160909192132 (1).pdfmachinelearningengineeringslideshare-160909192132 (1).pdf
machinelearningengineeringslideshare-160909192132 (1).pdf
 
ARCHITECTURE OF DBMS (1).ppt
ARCHITECTURE OF DBMS (1).pptARCHITECTURE OF DBMS (1).ppt
ARCHITECTURE OF DBMS (1).ppt
 

Recently uploaded

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 

Recently uploaded (20)

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 

chapter2.ppt

  • 1. C H A P T E R 2 O l i v e r S c h u l t e S u m m e r 2 0 1 1 Intelligent Agents
  • 2. Outline Artificial Intelligence a modern approach 2  Agents and environments  Rationality  PEAS (Performance measure, Environment, Actuators, Sensors)  Environment types  Agent types
  • 3. Agents Artificial Intelligence a modern approach 3 • An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators • Human agent: – eyes, ears, and other organs for sensors; – hands, legs, mouth, and other body parts for actuators • Robotic agent: – cameras and infrared range finders for sensors – various motors for actuators
  • 4. Agents and environments Artificial Intelligence a modern approach 4 • The agent function maps from percept histories to actions: [f: P*  A] • The agent program runs on the physical architecture to produce f • agent = architecture + program
  • 5. Vacuum-cleaner world Artificial Intelligence a modern approach 5  Percepts: location and contents, e.g., [A,Dirty]  Actions: Left, Right, Suck, NoOp  Agent’s function  look-up table  For many agents this is a very large table Demo: http://www.ai.sri.com/~oreilly/aima3ejava/aima3ejavademos.h tml
  • 6. Rational agents Artificial Intelligence a modern approach 6 • Rationality – Performance measuring success – Agents prior knowledge of environment – Actions that agent can perform – Agent’s percept sequence to date • Rational Agent: For each possible percept sequence, a rational agent should select an action that is expected to maximize its performance measure, given the evidence provided by the percept sequence and whatever built-in knowledge the agent has. •
  • 7. Examples of Rational Choice  See File: intro-choice.doc Artificial Intelligence a modern approach 7
  • 8. Rationality Artificial Intelligence a modern approach 8  Rational is different from omniscience  Percepts may not supply all relevant information  E.g., in card game, don’t know cards of others.  Rational is different from being perfect  Rationality maximizes expected outcome while perfection maximizes actual outcome.
  • 9. Autonomy in Agents  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 become more autonomous with experience The autonomy of an agent is the extent to which its behaviour is determined by its own experience, rather than knowledge of designer.
  • 10. PEAS Artificial Intelligence a modern approach 10 • PEAS: Performance measure, Environment, Actuators, Sensors • Must first specify the setting for intelligent agent design • Consider, e.g., the task of designing an automated taxi driver: – Performance measure: Safe, fast, legal, comfortable trip, maximize profits – Environment: Roads, other traffic, pedestrians, customers – Actuators: Steering wheel, accelerator, brake, signal, horn – Sensors: Cameras, sonar, speedometer, GPS, odometer, engine sensors, keyboard
  • 11. PEAS Artificial Intelligence a modern approach 11  Agent: Part-picking robot  Performance measure: Percentage of parts in correct bins  Environment: Conveyor belt with parts, bins  Actuators: Jointed arm and hand  Sensors: Camera, joint angle sensors
  • 12. PEAS Artificial Intelligence a modern approach 12  Agent: Interactive English tutor  Performance measure: Maximize student's score on test  Environment: Set of students  Actuators: Screen display (exercises, suggestions, corrections)  Sensors: Keyboard
  • 13. Environment types Artificial Intelligence a modern approach 13 • Fully observable (vs. partially observable) • Deterministic (vs. stochastic) • Episodic (vs. sequential) • Static (vs. dynamic) • Discrete (vs. continuous) • Single agent (vs. multiagent):
  • 14. Fully observable (vs. partially observable) Artificial Intelligence a modern approach 14  Is everything an agent requires to choose its actions available to it via its sensors? Perfect or Full information.  If so, the environment is fully accessible  If not, parts of the environment are inaccessible  Agent must make informed guesses about world.  In decision theory: perfect information vs. imperfect information. Cross Word Backgammon Taxi driver Part picking robot Poker Image analysis Fully Fully Fully Partially Partially Partially
  • 15. Deterministic (vs. stochastic) Artificial Intelligence a modern approach 15  Does the change in world state  Depend only on current state and agent’s action?  Non-deterministic environments  Have aspects beyond the control of the agent  Utility functions have to guess at changes in world Cross Word Backgammon Taxi driver Part picking robot Poker Image analysis Cross Word Backgammon Taxi driver Part Poker Image analysis Deterministic Deterministic Stochastic Stochastic Stochastic Stochastic
  • 16. Episodic (vs. sequential): Artificial Intelligence a modern approach 16  Is the choice of current action  Dependent on previous actions?  If not, then the environment is episodic  In non-episodic environments:  Agent has to plan ahead:  Current choice will affect future actions Cross Word Backgammon Taxi driver Part picking robot Poker Image analysis Sequential Sequential Sequential Sequential Episodic Episodic
  • 17. Static (vs. dynamic): Artificial Intelligence a modern approach 17  Static environments don’t change  While the agent is deliberating over what to do  Dynamic environments do change  So agent should/could consult the world when choosing actions  Alternatively: anticipate the change during deliberation OR make decision very fast  Semidynamic: If the environment itself does not change with the passage of time but the agent's performance score does. Cross Word Backgammon Taxi driver Part picking robot Poker Image analysis Static Static Static Dynamic Dynamic Semi Another example: off-line route planning vs. on-board navigation system
  • 18. Discrete (vs. continuous) Artificial Intelligence a modern approach 18  A limited number of distinct, clearly defined percepts and actions vs. a range of values (continuous) Cross Word Backgammon Taxi driver Part picking robot Poker Image analysis Discrete Discrete Discrete Conti Conti Conti
  • 19. Single agent (vs. multiagent): Artificial Intelligence a modern approach 19  An agent operating by itself in an environment or there are many agents working together Cross Word Backgammon Taxi driver Part picking robot Poker Image analysis Single Single Single Multi Multi Multi
  • 20. Artificial Intelligence a modern approach Observable Deterministic Static Episodic Agents Discrete Cross Word Backgammon Taxi driver Part picking robot Poker Image analysis Deterministic Stochastic Deterministic Stochastic Stochastic Stochastic Sequential Sequential Sequential Sequential Episodic Episodic Static Static Static Dynamic Dynamic Semi Discrete Discrete Discrete Conti Conti Conti Single Single Single Multi Multi Multi Summary. Fully Fully Fully Partially Partially Partially
  • 21. Choice under (Un)certainty Artificial Intelligence a modern approach 21 Fully Observable Deterministic Certainty: Search Uncertainty no yes yes no
  • 22. Agent types Artificial Intelligence a modern approach 22  Four basic types in order of increasing generality:  Simple reflex agents  Reflex agents with state/model  Goal-based agents  Utility-based agents  All these can be turned into learning agents  http://www.ai.sri.com/~oreilly/aima3ejava/aima3ejavad emos.html
  • 23. Simple reflex agents Artificial Intelligence a modern approach 23
  • 24. Simple reflex agents Artificial Intelligence a modern approach 24  Simple but very limited intelligence.  Action does not depend on percept history, only on current percept.  Therefore no memory requirements.  Infinite loops  Suppose vacuum cleaner does not observe location. What do you do given location = clean? Left of A or right on B -> infinite loop.  Fly buzzing around window or light.  Possible Solution: Randomize action.  Thermostat.  Chess – openings, endings  Lookup table (not a good idea in general)  35100 entries required for the entire game
  • 25. States: Beyond Reflexes • Recall the agent function that maps from percept histories to actions: [f: P*  A]  An agent program can implement an agent function by maintaining an internal state.  The internal state can contain information about the state of the external environment.  The state depends on the history of percepts and on the history of actions taken: [f: P*, A* S A] where S is the set of states.  If each internal state includes all information relevant to information making, the state space is Markovian. Artificial Intelligence a modern approach 25
  • 26. States and Memory: Game Theory  If each state includes the information about the percepts and actions that led to it, the state space has perfect recall.  Perfect Information = Perfect Recall + Full Observability + Deterministic Actions. Artificial Intelligence a modern approach 26
  • 27. Model-based reflex agents Artificial Intelligence a modern approach 27  Know how world evolves  Overtaking car gets closer from behind  How agents actions affect the world  Wheel turned clockwise takes you right  Model base agents update their state
  • 28. Goal-based agents Artificial Intelligence a modern approach 28 • knowing state and environment? Enough? – Taxi can go left, right, straight • Have a goal  A destination to get to  Uses knowledge about a goal to guide its actions  E.g., Search, planning
  • 29. Goal-based agents Artificial Intelligence a modern approach 29 • Reflex agent breaks when it sees brake lights. Goal based agent reasons – Brake light -> car in front is stopping -> I should stop -> I should use brake
  • 30. Utility-based agents Artificial Intelligence a modern approach 30  Goals are not always enough  Many action sequences get taxi to destination  Consider other things. How fast, how safe…..  A utility function maps a state onto a real number which describes the associated degree of “happiness”, “goodness”, “success”.  Where does the utility measure come from?  Economics: money.  Biology: number of offspring.  Your life?
  • 32. Learning agents Artificial Intelligence a modern approach 32  Performance element is what was previously the whole agent  Input sensor  Output action  Learning element  Modifies performance element.
  • 33. Learning agents Artificial Intelligence a modern approach 33  Critic: how the agent is doing  Input: checkmate?  Fixed  Problem generator  Tries to solve the problem differently instead of optimizing.  Suggests exploring new actions -> new problems.
  • 34. Learning agents(Taxi driver)  Performance element  How it currently drives  Taxi driver Makes quick left turn across 3 lanes  Critics observe shocking language by passenger and other drivers and informs bad action  Learning element tries to modify performance elements for future  Problem generator suggests experiment out something called Brakes on different Road conditions  Exploration vs. Exploitation  Learning experience can be costly in the short run  shocking language from other drivers  Less tip  Fewer passengers Artificial Intelligence a modern approach 34
  • 35. The Big Picture: AI for Model-Based Agents Artificial Intelligence a modern approach 35 Action Learning Knowledge Logic Probability Heuristics Inference Planning Decision Theory Game Theory Reinforcement Learning Machine Learning Statistics
  • 36. The Picture for Reflex-Based Agents Artificial Intelligence a modern approach 36 Action Learning Reinforcement Learning • Studied in AI, Cybernetics, Control Theory, Biology, Psychology.
  • 37. Discussion Question  Model-based behaviour has a large overhead.  Our large brains are very expensive from an evolutionary point of view.  Why would it be worthwhile to base behaviour on a model rather than “hard-code” it?  For what types of organisms in what type of environments? Artificial Intelligence a modern approach 37
  • 38. Summary  Agents can be described by their PEAS.  Environments can be described by several key properties: 64 Environment Types.  A rational agent maximizes the performance measure for their PEAS.  The performance measure depends on the agent function.  The agent program implements the agent function.  3 main architectures for agent programs.  In this course we will look at some of the common and useful combinations of environment/agent architecture. Artificial Intelligence a modern approach 38

Editor's Notes

  1. Only 2 locations
  2. Satellite image analysis. Some categories depend on definition of task.
  3. How many environment types are there in total?
  4. Comparison to game theory. How can you have full observability with nondeterminism? E.g. GPS system: knows its state, but doesn’t know whether driver will follow its instructions. Can argue philosophically that nondeterminism involves partial observability because there must be hidden factors that determine outcome.
  5. Based on sensors
  6. Another example: fly buzzing against window.
  7. Example: why is it important to get a good grade in this course?
  8. Problem generator: acts in new ways, explores.