SlideShare a Scribd company logo
CSE 3311-Artificial Intelligence
2
Agents
 An agent is anything that can be viewed as
perceiving its environment through sensors and
acting upon that environment through actuators
 Human agent:
 Sensors: eyes, ears, and other organs
 Actuators: hands, legs, mouth, and other body parts
 Robotic agent:
 Sensors: cameras and infrared range finders
 Actuators: various motors
3
Agents
 The agent function maps from percept histories to
actions:
 [f: P*  A]
 Percept history is also known as percept sequence.
4
Agents
Agent
?
Sensors
Actuators
Environment
Percepts
Actions
5
Vacuum-cleaner world
 Percepts: location and contents, e.g.,
[A,Dirty]
 Actions: Left, Right, Suck, NoOp
A vacuum-cleaner agent
6
Rational agents
 An agent should strive to "do the right thing", based on
 what it can perceive and
 the actions it can perform
 The right action is the one that will cause the agent to be most
successful
 Performance measure: An objective criterion for success of an
agent's behavior
 E.g., performance measure of a vacuum-cleaner agent could be
 amount of dirt cleaned up,
 amount of time taken,
 amount of electricity consumed,
 amount of noise generated, etc.
7
Rational agents
 Rational Agent:
 Given:
 Possible percept sequence,
 The evidence provided by the percept sequence and
 Whatever built-in knowledge the agent has.
 Aim: For each possible percept sequence a rational
agent should select an action
 Subject to: maximize its performance measure.
8
Rational and Omniscience Agent
 Omniscience agent knows the actual outcome of its
actions, and can act accordingly.
 Omniscience agent is impossible.
 Aim: For each possible percept sequence a rational
agent should select an action
 In summary, rational at any time depends on 4
things
 The performance measure (degree of success)
 Percept sequence (perception history)
 Knowledge about the environment
 The performed actions
9
Ideal Rational agents
 For each possible percept sequence, an ideal
rational agent should do whatever action is
expected to maximize its performance
measure, on the basis of the evidence
provided by the percept sequence and
whatever built-in knowledge the agent has.
10
Mapping (Percept seq to actions )
 A rule transfer percept sequences to action.
 Very long list.
 Mapping describe agents then ideal mapping
describe ideal agents
 Square root problem (Program and mapping
table e.g).
11
Autonomy
 Agent actions are completely based on the
built-in knowledge (mapping table) then the
agent called lacks autonomy. (e.g. clock)
 Behavior can be based on both
 Its own experience
 Built-in-knowledge
 Truly autonomous intelligent agent should be
avoid unsuccessful result (e.g. dung beetle).
12
Rational agents
 Rationality is distinct from omniscience (all-
knowing with infinite knowledge)
 Agents can perform actions in order to modify
future percepts so as to obtain useful
information (information gathering,
exploration)
 An agent is autonomous if its behavior is
determined by its own experience (with ability
to learn and adapt)
13
PEAS
 Task environment – are essentially the ‘problems’ to
which rational agents are ‘solutions’.
 Task environment specified by PEAS:
 Performance measure
 Environment
 Actuators
 Sensors
 Must first specify the setting for intelligent agent
design
14
PEAS: Example 1
 Agent: 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
15
PEAS : Example 2
 Agent: Medical diagnosis system
 Performance measure: Healthy patient,
minimize costs, lawsuits
 Environment: Patient, hospital, staff
 Actuators: Screen display (questions, tests,
diagnoses, treatments, referrals)
 Sensors: Keyboard (entry of symptoms,
findings, patient's answers)
16
PEAS : Example 3
 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
17
PEAS : Example 4
 Agent: Interactive English tutor
 Performance measure: Maximize student's
score on test
 Environment: Set of students
 Actuators: Screen display (exercises,
suggestions, corrections)
 Sensors: Keyboard
18
Environment types
 Fully observable (vs. partially observable): An agent's sensors
give it access to the complete state of the environment at each
point in time.
 Deterministic (vs. stochastic): The next state of the environment
is completely determined by the current state and the action
executed by the agent. (If the environment is deterministic except
for the actions of other agents, then the environment is strategic)
 Episodic (vs. sequential): The agent's experience is divided into
atomic "episodes" (each episode consists of the agent perceiving
and then performing a single action), and the choice of action in
each episode depends only on the episode itself.
19
Environment types
 Static (vs. dynamic): The environment is unchanged
while an agent is deliberating.
 The environment is semi dynamic if the environment itself
does not change with the passage of time but the agent's
performance score does.
 Discrete (vs. continuous): A limited number of
distinct, clearly defined percepts and actions.
 Single agent (vs. multiagent): An agent operating by
itself in an environment.
20
Environment types
Chess with Chess without Taxi driving
a clock a clock
Fully observable Yes Yes No
Deterministic Strategic Strategic No
Episodic No No No
Static Semi Yes No
Discrete Yes Yes No
Single agent No No No
 The environment type largely determines the agent design
 The real world is (of course) partially observable, stochastic, sequential,
dynamic, continuous, multi-agent
21
Agents and Environments
 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
22
Agent functions and programs
 An agent is completely specified by the agent
function mapping percept sequences to
actions
 An agent function (or a small equivalence
class) is rational
 Aim: find a way to implement the rational
agent function concisely
23
Table-lookup agent
 Drawbacks:
 Huge table
 Take a long time to build the table
 No autonomy
 Even with learning, need a long time to learn the table entries
24
Agent types
 Four basic types in order of increasing
generality:
 Simple reflex agents
 Model-based reflex agents
 Goal-based agents
 Utility-based agents
25
Simple reflex agents
 These agents select actions on the basis of current
percept, ignoring the rest of the percept history.
 Agent program for a vacuum-cleaner agent
26
Simple reflex agents
27
Simple reflex agents
 This types of agents are very simple to implement.
 They work properly if the correct decision can be made on the
basis of current percept only i.e. if the environment is fully
observable.
 Example of vacuum cleaning agent with a dirt sensor only
28
Model-based reflex agents
 To handle partial observability it is effective to keep track of the
world it can’t see now.
 i.e. an agent should maintain an internal state representing a
model of the world. The state changes through percepts and
actions.
 Example:
 Changing state by percept: An overtaking car will generally be
closer to behind than it was a moment ago.
 Changing state by action: If the car moves to the right lane there is
a gap in the place before.
29
Model-based reflex agents
30
Model-based reflex agents
31
Goal-based agents
 The state of environment is not always sufficient to decide
what to do.
 Example: At a road junction, the taxi can turn left, turn right,
or go straight. The percept and internal state says it’s a
junction but which way to go depend on the goal (what way
is the passenger’s destination).
32
Goal-based agents
33
Utility-based agents
 Goals sometimes are not enough to generate high quality
behavior.
 For example, out of many possible routes a taxi can follow,
some are quicker, safer, more reliable and cheaper than
others.
 The degree of happiness while achieving a goal is
represented by utility.
 A utility function maps a state (or a sequence of states) onto
a real number which describes the degree of happiness.
34
Utility-based agents
35
Learning agents
 A learning agent has a performance element that
decides which actions to take,
 and a learning element that can change the performance
element to be more efficient as the agents learns.
 A critic component is used to evaluate how well the agent
is doing and provide feedback to the learning component,
 and a problem generator that can deviate from the usual
routine and explore new possibilities.
36
Learning agents

More Related Content

Similar to Slide01 - Intelligent Agents.ppt

m2-agents.ppt
m2-agents.pptm2-agents.ppt
m2-agents.ppt
Tarun710971
 
Artificial Intelligent Agents
Artificial Intelligent AgentsArtificial Intelligent Agents
Artificial Intelligent Agents
Dr. Mazhar Ali Dootio
 
agents.pdf
agents.pdfagents.pdf
agents.pdf
samisamco1
 
Week 2.pdf
Week 2.pdfWeek 2.pdf
Week 2.pdf
ZamshedForman1
 
Lecture 2 Agents.pptx
Lecture 2 Agents.pptxLecture 2 Agents.pptx
Lecture 2 Agents.pptx
AndrewKuziwakwasheMu
 
Agents-and-Problem-Solving-20022024-094442am.pdf
Agents-and-Problem-Solving-20022024-094442am.pdfAgents-and-Problem-Solving-20022024-094442am.pdf
Agents-and-Problem-Solving-20022024-094442am.pdf
syedhasanali293
 
AI_02_Intelligent Agents.pptx
AI_02_Intelligent Agents.pptxAI_02_Intelligent Agents.pptx
AI_02_Intelligent Agents.pptx
Yousef Aburawi
 
Week 3.pdf
Week 3.pdfWeek 3.pdf
Week 3.pdf
ZamshedForman1
 
introduction to inteligent IntelligentAgent.ppt
introduction to inteligent IntelligentAgent.pptintroduction to inteligent IntelligentAgent.ppt
introduction to inteligent IntelligentAgent.ppt
dejene3
 
Agents_AI.ppt
Agents_AI.pptAgents_AI.ppt
Agents_AI.ppt
sandeep54552
 
Unit-1.pptx
Unit-1.pptxUnit-1.pptx
Unit-1.pptx
DharaDarji5
 
Lecture 02-agents
Lecture 02-agentsLecture 02-agents
Lecture 02-agents
nisar haider bhatti
 
Unit 1.ppt
Unit 1.pptUnit 1.ppt
Unit 1.ppt
BaskarChelladurai
 
Artificial intelligence introduction
Artificial intelligence introductionArtificial intelligence introduction
Artificial intelligence introduction
melchismel
 
Lec 2 agents
Lec 2 agentsLec 2 agents
Lec 2 agents
Eyob Sisay
 
Lec 2-agents
Lec 2-agentsLec 2-agents
Lec 2-agents
Taymoor Nazmy
 
AI_Ch2.pptx
AI_Ch2.pptxAI_Ch2.pptx
AI_Ch2.pptx
qwtadhsaber
 
AI Agents, Agents in Artificial Intelligence
AI Agents, Agents in Artificial IntelligenceAI Agents, Agents in Artificial Intelligence
AI Agents, Agents in Artificial Intelligence
Kirti Verma
 
m2-agents.pptx
m2-agents.pptxm2-agents.pptx
m2-agents.pptx
RitwikNayan
 

Similar to Slide01 - Intelligent Agents.ppt (20)

m2-agents.ppt
m2-agents.pptm2-agents.ppt
m2-agents.ppt
 
Artificial Intelligent Agents
Artificial Intelligent AgentsArtificial Intelligent Agents
Artificial Intelligent Agents
 
agents.pdf
agents.pdfagents.pdf
agents.pdf
 
Week 2.pdf
Week 2.pdfWeek 2.pdf
Week 2.pdf
 
Lecture 2 Agents.pptx
Lecture 2 Agents.pptxLecture 2 Agents.pptx
Lecture 2 Agents.pptx
 
Agents-and-Problem-Solving-20022024-094442am.pdf
Agents-and-Problem-Solving-20022024-094442am.pdfAgents-and-Problem-Solving-20022024-094442am.pdf
Agents-and-Problem-Solving-20022024-094442am.pdf
 
Infosec
InfosecInfosec
Infosec
 
AI_02_Intelligent Agents.pptx
AI_02_Intelligent Agents.pptxAI_02_Intelligent Agents.pptx
AI_02_Intelligent Agents.pptx
 
Week 3.pdf
Week 3.pdfWeek 3.pdf
Week 3.pdf
 
introduction to inteligent IntelligentAgent.ppt
introduction to inteligent IntelligentAgent.pptintroduction to inteligent IntelligentAgent.ppt
introduction to inteligent IntelligentAgent.ppt
 
Agents_AI.ppt
Agents_AI.pptAgents_AI.ppt
Agents_AI.ppt
 
Unit-1.pptx
Unit-1.pptxUnit-1.pptx
Unit-1.pptx
 
Lecture 02-agents
Lecture 02-agentsLecture 02-agents
Lecture 02-agents
 
Unit 1.ppt
Unit 1.pptUnit 1.ppt
Unit 1.ppt
 
Artificial intelligence introduction
Artificial intelligence introductionArtificial intelligence introduction
Artificial intelligence introduction
 
Lec 2 agents
Lec 2 agentsLec 2 agents
Lec 2 agents
 
Lec 2-agents
Lec 2-agentsLec 2-agents
Lec 2-agents
 
AI_Ch2.pptx
AI_Ch2.pptxAI_Ch2.pptx
AI_Ch2.pptx
 
AI Agents, Agents in Artificial Intelligence
AI Agents, Agents in Artificial IntelligenceAI Agents, Agents in Artificial Intelligence
AI Agents, Agents in Artificial Intelligence
 
m2-agents.pptx
m2-agents.pptxm2-agents.pptx
m2-agents.pptx
 

Recently uploaded

OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
takuyayamamoto1800
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
AMB-Review
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Globus
 
Enterprise Software Development with No Code Solutions.pptx
Enterprise Software Development with No Code Solutions.pptxEnterprise Software Development with No Code Solutions.pptx
Enterprise Software Development with No Code Solutions.pptx
QuickwayInfoSystems3
 
Top 7 Unique WhatsApp API Benefits | Saudi Arabia
Top 7 Unique WhatsApp API Benefits | Saudi ArabiaTop 7 Unique WhatsApp API Benefits | Saudi Arabia
Top 7 Unique WhatsApp API Benefits | Saudi Arabia
Yara Milbes
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
Roshan Dwivedi
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke
 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
abdulrafaychaudhry
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
wottaspaceseo
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Mind IT Systems
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 

Recently uploaded (20)

OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 
Enterprise Software Development with No Code Solutions.pptx
Enterprise Software Development with No Code Solutions.pptxEnterprise Software Development with No Code Solutions.pptx
Enterprise Software Development with No Code Solutions.pptx
 
Top 7 Unique WhatsApp API Benefits | Saudi Arabia
Top 7 Unique WhatsApp API Benefits | Saudi ArabiaTop 7 Unique WhatsApp API Benefits | Saudi Arabia
Top 7 Unique WhatsApp API Benefits | Saudi Arabia
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 

Slide01 - Intelligent Agents.ppt

  • 2. 2 Agents  An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators  Human agent:  Sensors: eyes, ears, and other organs  Actuators: hands, legs, mouth, and other body parts  Robotic agent:  Sensors: cameras and infrared range finders  Actuators: various motors
  • 3. 3 Agents  The agent function maps from percept histories to actions:  [f: P*  A]  Percept history is also known as percept sequence.
  • 5. 5 Vacuum-cleaner world  Percepts: location and contents, e.g., [A,Dirty]  Actions: Left, Right, Suck, NoOp A vacuum-cleaner agent
  • 6. 6 Rational agents  An agent should strive to "do the right thing", based on  what it can perceive and  the actions it can perform  The right action is the one that will cause the agent to be most successful  Performance measure: An objective criterion for success of an agent's behavior  E.g., performance measure of a vacuum-cleaner agent could be  amount of dirt cleaned up,  amount of time taken,  amount of electricity consumed,  amount of noise generated, etc.
  • 7. 7 Rational agents  Rational Agent:  Given:  Possible percept sequence,  The evidence provided by the percept sequence and  Whatever built-in knowledge the agent has.  Aim: For each possible percept sequence a rational agent should select an action  Subject to: maximize its performance measure.
  • 8. 8 Rational and Omniscience Agent  Omniscience agent knows the actual outcome of its actions, and can act accordingly.  Omniscience agent is impossible.  Aim: For each possible percept sequence a rational agent should select an action  In summary, rational at any time depends on 4 things  The performance measure (degree of success)  Percept sequence (perception history)  Knowledge about the environment  The performed actions
  • 9. 9 Ideal Rational agents  For each possible percept sequence, an ideal rational agent should do whatever action is expected to maximize its performance measure, on the basis of the evidence provided by the percept sequence and whatever built-in knowledge the agent has.
  • 10. 10 Mapping (Percept seq to actions )  A rule transfer percept sequences to action.  Very long list.  Mapping describe agents then ideal mapping describe ideal agents  Square root problem (Program and mapping table e.g).
  • 11. 11 Autonomy  Agent actions are completely based on the built-in knowledge (mapping table) then the agent called lacks autonomy. (e.g. clock)  Behavior can be based on both  Its own experience  Built-in-knowledge  Truly autonomous intelligent agent should be avoid unsuccessful result (e.g. dung beetle).
  • 12. 12 Rational agents  Rationality is distinct from omniscience (all- knowing with infinite knowledge)  Agents can perform actions in order to modify future percepts so as to obtain useful information (information gathering, exploration)  An agent is autonomous if its behavior is determined by its own experience (with ability to learn and adapt)
  • 13. 13 PEAS  Task environment – are essentially the ‘problems’ to which rational agents are ‘solutions’.  Task environment specified by PEAS:  Performance measure  Environment  Actuators  Sensors  Must first specify the setting for intelligent agent design
  • 14. 14 PEAS: Example 1  Agent: 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
  • 15. 15 PEAS : Example 2  Agent: Medical diagnosis system  Performance measure: Healthy patient, minimize costs, lawsuits  Environment: Patient, hospital, staff  Actuators: Screen display (questions, tests, diagnoses, treatments, referrals)  Sensors: Keyboard (entry of symptoms, findings, patient's answers)
  • 16. 16 PEAS : Example 3  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
  • 17. 17 PEAS : Example 4  Agent: Interactive English tutor  Performance measure: Maximize student's score on test  Environment: Set of students  Actuators: Screen display (exercises, suggestions, corrections)  Sensors: Keyboard
  • 18. 18 Environment types  Fully observable (vs. partially observable): An agent's sensors give it access to the complete state of the environment at each point in time.  Deterministic (vs. stochastic): The next state of the environment is completely determined by the current state and the action executed by the agent. (If the environment is deterministic except for the actions of other agents, then the environment is strategic)  Episodic (vs. sequential): The agent's experience is divided into atomic "episodes" (each episode consists of the agent perceiving and then performing a single action), and the choice of action in each episode depends only on the episode itself.
  • 19. 19 Environment types  Static (vs. dynamic): The environment is unchanged while an agent is deliberating.  The environment is semi dynamic if the environment itself does not change with the passage of time but the agent's performance score does.  Discrete (vs. continuous): A limited number of distinct, clearly defined percepts and actions.  Single agent (vs. multiagent): An agent operating by itself in an environment.
  • 20. 20 Environment types Chess with Chess without Taxi driving a clock a clock Fully observable Yes Yes No Deterministic Strategic Strategic No Episodic No No No Static Semi Yes No Discrete Yes Yes No Single agent No No No  The environment type largely determines the agent design  The real world is (of course) partially observable, stochastic, sequential, dynamic, continuous, multi-agent
  • 21. 21 Agents and Environments  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
  • 22. 22 Agent functions and programs  An agent is completely specified by the agent function mapping percept sequences to actions  An agent function (or a small equivalence class) is rational  Aim: find a way to implement the rational agent function concisely
  • 23. 23 Table-lookup agent  Drawbacks:  Huge table  Take a long time to build the table  No autonomy  Even with learning, need a long time to learn the table entries
  • 24. 24 Agent types  Four basic types in order of increasing generality:  Simple reflex agents  Model-based reflex agents  Goal-based agents  Utility-based agents
  • 25. 25 Simple reflex agents  These agents select actions on the basis of current percept, ignoring the rest of the percept history.  Agent program for a vacuum-cleaner agent
  • 27. 27 Simple reflex agents  This types of agents are very simple to implement.  They work properly if the correct decision can be made on the basis of current percept only i.e. if the environment is fully observable.  Example of vacuum cleaning agent with a dirt sensor only
  • 28. 28 Model-based reflex agents  To handle partial observability it is effective to keep track of the world it can’t see now.  i.e. an agent should maintain an internal state representing a model of the world. The state changes through percepts and actions.  Example:  Changing state by percept: An overtaking car will generally be closer to behind than it was a moment ago.  Changing state by action: If the car moves to the right lane there is a gap in the place before.
  • 31. 31 Goal-based agents  The state of environment is not always sufficient to decide what to do.  Example: At a road junction, the taxi can turn left, turn right, or go straight. The percept and internal state says it’s a junction but which way to go depend on the goal (what way is the passenger’s destination).
  • 33. 33 Utility-based agents  Goals sometimes are not enough to generate high quality behavior.  For example, out of many possible routes a taxi can follow, some are quicker, safer, more reliable and cheaper than others.  The degree of happiness while achieving a goal is represented by utility.  A utility function maps a state (or a sequence of states) onto a real number which describes the degree of happiness.
  • 35. 35 Learning agents  A learning agent has a performance element that decides which actions to take,  and a learning element that can change the performance element to be more efficient as the agents learns.  A critic component is used to evaluate how well the agent is doing and provide feedback to the learning component,  and a problem generator that can deviate from the usual routine and explore new possibilities.