SlideShare a Scribd company logo
Dr. Mustafa Jarrar [email_address]   University of Birzeit Chapter 2 Intelligent Agents Advanced Artificial Intelligence  (SCOM7341) Lecture Notes,  Advanced Artificial Intelligence (SCOM7341)  University of Birzeit 2 nd  Semester, 2011
Outline Agents and environments Rationality 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 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 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 Percepts: location and contents, e.g., [A,Dirty] Actions:  Left ,  Right ,  Suck ,  DoNothing
A vacuum-cleaner Agent Tabulation of an agent function of the vacuum-cleaner
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.
Rational Agents 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.
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)
PEAS When designing a rational/intelligent  agent, we keep in mind PEAS PEAS:  P erformance measure,  E nvironment,  A ctuators,  S ensors Consider, e.g., the task of designing an automated taxi driver: Performance measure Actuators Sensors Environment
PEAS Agent: automated taxi driver Performance measure:  Safe, fast, legal, comfortable trip, maximize profits Environment:  Roads, other traffic, people and objects in/around the street Actuators:  Steering wheel, accelerator, brake, signal, horn Sensors:  Cameras, sonar, speedometer, GPS, odometer, engine sensors, keyboard
PEAS 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)
PEAS 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 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 Fully observable  (vs. partially observable): An agent's sensors can measure all relevant aspects 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.  Vacuum is deterministic? Taxi driver is stochastic?  (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.  Chess and taxi driver are sequential because the current action affect the next action.
Environment Types Static  (vs. dynamic): The environment is unchanged while an agent is deliberating. (The environment is  semidynamic  if the environment itself does not change with the passage of time but the agent's performance score does).  Taxi driver is dynamic, chess is static, chess with clock I semidynamic. Discrete  (vs. continuous): A limited number of distinct, clearly defined percepts and actions.  Chess has a finite number of distinct states, thus it is discrete; however the Taxi-driving is not. Single agent  (vs. multiagent): An agent operating by itself in an environment.  Crossword is Single, while Chess is a two-player environment.
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
Agent Functions & Programs An agent is completely specified by the  agent function  mapping percept sequences to actions One agent function (or a small equivalence class) is  rational Aim: find a way to implement the rational agent function concisely
Agent Types Four basic types in order of increasing generality: Simple reflex agents Model-based reflex agents Goal-based agents Utility-based agents
Simple Reflex Agents The agent selects an action(s) based on the current precept, ignoring the rest of the precept history.
Model-based Reflex Agents The agent decides its action(s) based on a predefined set of condition-action rules. A telephone operator/answering machine.
Goal-based Agents The agent decides its action(s) based on a known goal. For example, a GPS system finding a path to certain destination.
Utility-based Agents The agent decides its action(s) based on utilities/preferences. a GPS system finding a shortest/fastest/safer path to certain destination.
Learning Agents The agent adapts its action(s) based on feedback (not only sensors).
Discussion Panel Summarize the new knowledge you have really learned about agents? Do you really agree that it is possible to realize such agents, or it is only another name for programs? What is the difference between an agent and a program? When an agent is not a program? When the program is not an agent.

More Related Content

PPT
Artificial Intelligence Chapter two agents
PPTX
Intelligence Agent - Artificial Intelligent (AI)
PPTX
Artificial Intelligence PEAS
ZIP
Ai Slides
PDF
Lec 2 agents
PPTX
Artificial Intelligence
PPT
PPTX
Chapter 2 intelligent agents
Artificial Intelligence Chapter two agents
Intelligence Agent - Artificial Intelligent (AI)
Artificial Intelligence PEAS
Ai Slides
Lec 2 agents
Artificial Intelligence
Chapter 2 intelligent agents

What's hot (13)

PPTX
Intelligent agents (bsc csit) lec 2
PPT
Lecture 2
PPTX
Robotics and agents
PPT
M2 agents
PPT
Agents_AI.ppt
PDF
Ai 02 intelligent_agents(1)
PPTX
Intelligent Agents
PPTX
AI - Intelligent Agents
PPTX
Agents and environments
PPT
Artificial intelligence introduction
PPTX
Introduction To Artificial Intelligence
PPT
Artificial Intelligent Agents
PPT
Lec 2-agents
Intelligent agents (bsc csit) lec 2
Lecture 2
Robotics and agents
M2 agents
Agents_AI.ppt
Ai 02 intelligent_agents(1)
Intelligent Agents
AI - Intelligent Agents
Agents and environments
Artificial intelligence introduction
Introduction To Artificial Intelligence
Artificial Intelligent Agents
Lec 2-agents
Ad

Viewers also liked (7)

PPT
Jarrar.lecture notes.aai.2011s.descriptionlogic
PPTX
Richardson Eyres - Three Peaks Challenge Competition
PPT
Jarrar.lecture notes.aai.2011s.ch4.informedsearch
PPT
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearch
PPT
Jarrar.lecture notes.aai.2011s.ch8.fol.introduction
PPTX
Jarrar.lecture notes.aai.2011s.ontology part5_egovernmentcasestudy
DOCX
De cuong báo cáo thuc tap khoá luận tot nghiep
Jarrar.lecture notes.aai.2011s.descriptionlogic
Richardson Eyres - Three Peaks Challenge Competition
Jarrar.lecture notes.aai.2011s.ch4.informedsearch
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearch
Jarrar.lecture notes.aai.2011s.ch8.fol.introduction
Jarrar.lecture notes.aai.2011s.ontology part5_egovernmentcasestudy
De cuong báo cáo thuc tap khoá luận tot nghiep
Ad

Similar to Jarrar.lecture notes.aai.2011s.ch2.intelligentagents (20)

PPT
m2-agents.ppt
PPT
introduction to inteligent IntelligentAgent.ppt
PPTX
AI_Lec1.pptx ist step to enter in AI field
PDF
ai-slides-1233566181695672-2 (1).pdf
PDF
Understanding Intelligent Agents: Concepts, Structure, and Applications
PPT
agents in ai ppt
PPT
Slide01 - Intelligent Agents.ppt
PPTX
Intelligent agents
PPTX
AI: Artificial Agents on the Go and its types
PDF
Artificial Intelligence chapter 1 and 2(1).pdf
PDF
Week 2.pdf
PPTX
2. Intelligent_Agents_ShgfutydtfxcfdxdfL.pptx
PPTX
AI_Ch2.pptx
PPT
Artificial intelligence and machine learning
PPT
901470_Ch2.ppt901470_Ch2.ppt901470_Ch2.ppt901470_Ch2.ppt
PPT
901470_Ch Intelligent agent introduction2.ppt
PPT
Unit 1.ppt
PPTX
m2-agents.pptx
PPSX
Week 1 b - Agents.ppsx used in AI for be
m2-agents.ppt
introduction to inteligent IntelligentAgent.ppt
AI_Lec1.pptx ist step to enter in AI field
ai-slides-1233566181695672-2 (1).pdf
Understanding Intelligent Agents: Concepts, Structure, and Applications
agents in ai ppt
Slide01 - Intelligent Agents.ppt
Intelligent agents
AI: Artificial Agents on the Go and its types
Artificial Intelligence chapter 1 and 2(1).pdf
Week 2.pdf
2. Intelligent_Agents_ShgfutydtfxcfdxdfL.pptx
AI_Ch2.pptx
Artificial intelligence and machine learning
901470_Ch2.ppt901470_Ch2.ppt901470_Ch2.ppt901470_Ch2.ppt
901470_Ch Intelligent agent introduction2.ppt
Unit 1.ppt
m2-agents.pptx
Week 1 b - Agents.ppsx used in AI for be

More from PalGov (9)

PPT
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
PPT
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
PPTX
Jarrar.lecture notes.aai.2011s.ontology part4_methodologies
PPTX
Jarrar.lecture notes.aai.2011s.ontology part3_double-articulation
PPTX
Jarrar.lecture notes.aai.2011s.ontology part2_whatisontology
PPTX
Jarrar.lecture notes.aai.2011s.ontology part1_introduction
PPT
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
PPT
Jarrar.lecture notes.aai.2011s.ch7.p logic
PPT
Jarrar.lecture notes.aai.2011s.ch6.games
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ontology part4_methodologies
Jarrar.lecture notes.aai.2011s.ontology part3_double-articulation
Jarrar.lecture notes.aai.2011s.ontology part2_whatisontology
Jarrar.lecture notes.aai.2011s.ontology part1_introduction
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
Jarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch6.games

Recently uploaded (20)

PDF
Empowerment Technology for Senior High School Guide
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
What if we spent less time fighting change, and more time building what’s rig...
PPTX
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
advance database management system book.pdf
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
1_English_Language_Set_2.pdf probationary
PPTX
Introduction to Building Materials
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Cell Types and Its function , kingdom of life
PDF
Indian roads congress 037 - 2012 Flexible pavement
PPTX
Unit 4 Skeletal System.ppt.pptxopresentatiom
Empowerment Technology for Senior High School Guide
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
What if we spent less time fighting change, and more time building what’s rig...
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Complications of Minimal Access Surgery at WLH
Orientation - ARALprogram of Deped to the Parents.pptx
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
Supply Chain Operations Speaking Notes -ICLT Program
advance database management system book.pdf
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Classroom Observation Tools for Teachers
History, Philosophy and sociology of education (1).pptx
1_English_Language_Set_2.pdf probationary
Introduction to Building Materials
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Cell Types and Its function , kingdom of life
Indian roads congress 037 - 2012 Flexible pavement
Unit 4 Skeletal System.ppt.pptxopresentatiom

Jarrar.lecture notes.aai.2011s.ch2.intelligentagents

  • 1. Dr. Mustafa Jarrar [email_address] University of Birzeit Chapter 2 Intelligent Agents Advanced Artificial Intelligence (SCOM7341) Lecture Notes, Advanced Artificial Intelligence (SCOM7341) University of Birzeit 2 nd Semester, 2011
  • 2. Outline Agents and environments Rationality PEAS (Performance measure, Environment, Actuators, Sensors) Environment types Agent types
  • 3. Agents 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 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 Percepts: location and contents, e.g., [A,Dirty] Actions: Left , Right , Suck , DoNothing
  • 6. A vacuum-cleaner Agent Tabulation of an agent function of the vacuum-cleaner
  • 7. 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.
  • 8. Rational Agents 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.
  • 9. 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)
  • 10. PEAS When designing a rational/intelligent agent, we keep in mind PEAS PEAS: P erformance measure, E nvironment, A ctuators, S ensors Consider, e.g., the task of designing an automated taxi driver: Performance measure Actuators Sensors Environment
  • 11. PEAS Agent: automated taxi driver Performance measure: Safe, fast, legal, comfortable trip, maximize profits Environment: Roads, other traffic, people and objects in/around the street Actuators: Steering wheel, accelerator, brake, signal, horn Sensors: Cameras, sonar, speedometer, GPS, odometer, engine sensors, keyboard
  • 12. PEAS 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)
  • 13. PEAS 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
  • 14. PEAS Agent: Interactive English tutor Performance measure: Maximize student's score on test Environment: Set of students Actuators: Screen display (exercises, suggestions, corrections) Sensors: Keyboard
  • 15. Environment Types Fully observable (vs. partially observable): An agent's sensors can measure all relevant aspects 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. Vacuum is deterministic? Taxi driver is stochastic? (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. Chess and taxi driver are sequential because the current action affect the next action.
  • 16. Environment Types Static (vs. dynamic): The environment is unchanged while an agent is deliberating. (The environment is semidynamic if the environment itself does not change with the passage of time but the agent's performance score does). Taxi driver is dynamic, chess is static, chess with clock I semidynamic. Discrete (vs. continuous): A limited number of distinct, clearly defined percepts and actions. Chess has a finite number of distinct states, thus it is discrete; however the Taxi-driving is not. Single agent (vs. multiagent): An agent operating by itself in an environment. Crossword is Single, while Chess is a two-player environment.
  • 17. 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
  • 18. Agent Functions & Programs An agent is completely specified by the agent function mapping percept sequences to actions One agent function (or a small equivalence class) is rational Aim: find a way to implement the rational agent function concisely
  • 19. Agent Types Four basic types in order of increasing generality: Simple reflex agents Model-based reflex agents Goal-based agents Utility-based agents
  • 20. Simple Reflex Agents The agent selects an action(s) based on the current precept, ignoring the rest of the precept history.
  • 21. Model-based Reflex Agents The agent decides its action(s) based on a predefined set of condition-action rules. A telephone operator/answering machine.
  • 22. Goal-based Agents The agent decides its action(s) based on a known goal. For example, a GPS system finding a path to certain destination.
  • 23. Utility-based Agents The agent decides its action(s) based on utilities/preferences. a GPS system finding a shortest/fastest/safer path to certain destination.
  • 24. Learning Agents The agent adapts its action(s) based on feedback (not only sensors).
  • 25. Discussion Panel Summarize the new knowledge you have really learned about agents? Do you really agree that it is possible to realize such agents, or it is only another name for programs? What is the difference between an agent and a program? When an agent is not a program? When the program is not an agent.