SlideShare a Scribd company logo
Mansoura University
Faculty of Computers and Information
Course Name: Artificial Intelligence
Lecturer: Amir EL-Ghamry
Topic: Intelligent Agents
Outline
Artificial Intelligence a modern approach
2
— Agents and environments
— Rationality
— PEAS (Performance measure, Environment,
Actuators, Sensors)
Agent
Artificial Intelligence a modern approach
3
CS 561, Lecture 2
Agent
Environment
Agent
percepts
actions
?
Sensors
Actuators
How to design this?
Agent Examples
Artificial Intelligence a modern approach
6
CS 561, Lecture 2
How is an Agent different from other
software?
— Agents are autonomous, that is, they act on behalf of
the user
— Agents contain some level of intelligence, from fixed
rules to learning engines that allow them to adapt to
changes in the environment
— Agents have social ability, that is, they communicate
with the user, the system, and other agents as required
— Agents may also cooperate with other agents to carry
out more complex tasks than they themselves can handle
CS 561, Lecture 2
How is an Agent different from other
software?
— Agents may migrate from one system to another to
access remote resources or even to meet other agents
Agent and Environment
Artificial Intelligence a modern approach
9
CS 561, Lecture 2
Structure of Intelligent Agents
— Agent program: the implementation of f : P* ® A, the
agent’s perception-action mapping
function Skeleton-Agent(Percept) returns Action
memory ¬ UpdateMemory(memory, Percept)
Action ¬ ChooseBestAction(memory)
memory ¬ UpdateMemory(memory, Action)
return Action
— Architecture: a device that can execute the agent
program (e.g., general-purpose computer, specialized
device, etc.)
Vacuum-cleaner world
Artificial Intelligence a modern approach
12
— Percepts: location (A or B) and contents (dirt or not),
e.g., [A,Dirty]
— Actions: Left, Right, Suck, NoOp
— Agent’s function à look-up table
¡ For many agents this is a very large table
Vacuum-cleaner world
Artificial Intelligence a modern approach
13
Agent function – Lookup table
Artificial Intelligence a modern approach
14
Rational Agent
Artificial Intelligence a modern approach
15
Rational agents
Artificial Intelligence a modern approach
16
• Rationality – Good behavior
1. Performance measuring success
2. Agents prior knowledge of environment
3. Actions that agent can perform
4. 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.
Back to vacuum cleaner agent
Artificial Intelligence a modern approach
17
Back to vacuum cleaner agent
Artificial Intelligence a modern approach
18
Vacuum cleaner agent - irrational
Artificial Intelligence a modern approach
19
Rationality
Artificial Intelligence a modern approach
21
— Rational is different from omniscience (all knowing
with infinite knowledge)
¡ 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
¡ Perfection (omniscience) maximizes actual outcome.
The Right Thing = The Rational Action
— Rational Action: The action that maximizes the expected
value of the performance measure given the percept sequence
to date
¡ Rational = Best Yes, to the best of its knowledge
¡ Rational = Optimal Yes, to the best of its abilities (constraints).
¡ Rational ¹ Omniscience
¡ Rational ¹ Successful
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.
Specifying the task environment (PEAS)
Artificial Intelligence a modern approach
24
Specifying the task environment (PEAS)
Artificial Intelligence a modern approach
25
PEAS – vacuum cleaner
Artificial Intelligence a modern approach
26
PEAS – Windshield Wiper Agent
PEAS – Windshield Wiper Agent
— Goals: Keep windshields clean & maintain visibility
— Percepts: Raining, Dirty
— Sensors: Camera (moist sensor)
— Actuators: Wipers (left, right, back)
— Actions: Off, Slow, Medium, Fast
— Environment: Inner city, freeways, highways, weather …
PEAS – self driving car
Artificial Intelligence a modern approach
29
PEAS - automated taxi driver
Artificial Intelligence a modern approach
30
PEAS - automated taxi driver
Artificial Intelligence a modern approach
31
• The task of designing an automated taxi driver:
– Performance measure: Safe, fast, legal, comfortable
trip, maximize profits
– Environment: Roads, other traffic, pedestrians,
customers , weather
– Actuators: Steering wheel, accelerator, brake, signal,
horn
– Sensors: Cameras, sonar, speedometer, GPS, odometer,
engine sensors, keyboard
Interacting Agents
Collision Avoidance Agent (CAA)
— Goals: Avoid running into obstacles
— Percepts: Obstacle distance, velocity, trajectory
— Sensors: Vision, proximity sensing
— Actuators: Steering Wheel, Accelerator, Brakes, Horn, Headlights
— Actions: Steer, speed up, brake, blow horn, signal (headlights)
— Environment: Freeway
Lane Keeping Agent (LKA)
• Goals: Stay in current lane
• Percepts: Lane center, lane boundaries
• Sensors: Vision
• Effectors: Steering Wheel, Accelerator, Brakes
• Actions: Steer, speed up, brake
• Environment: Freeway
Conflict Resolution by Action Selection Agents
• Arbitrate: if Obstacle is Close then CAA
else LKA
• Challenges: Doing the right thing
PEAS – medical diagnosis system
Artificial Intelligence a modern approach
34
PEAS – medical diagnosis system
Artificial Intelligence a modern approach
35
PEAS – spam filter
Artificial Intelligence a modern approach
36
PEAS – spam filter
Artificial Intelligence a modern approach
37
PEAS – satellite image analysis system
Artificial Intelligence a modern approach
38
PEAS – satellite image analysis system
Artificial Intelligence a modern approach
39
PEAS - Part-picking robot
Artificial Intelligence a modern approach
40
PEAS - Part-picking robot
Artificial Intelligence a modern approach
41
— 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 - Interactive English tutor
Artificial Intelligence a modern approach
42
PEAS - Interactive English tutor
Artificial Intelligence a modern approach
43
— Performance measure: Maximize student's score on
test
— Environment: Set of students
— Actuators: Screen display (exercises, suggestions,
corrections)
— Sensors: Keyboard
Questions
Artificial Intelligence a modern approach
44

More Related Content

PPT
Intelligent agents.ppt
PPTX
chapter2.pptx
PPTX
chapter2intelligence (AI) and machine learning (ML) .pptx
PPTX
chapter2 Related to internet how internet works
PPTX
Chapter 2 intelligent agents
PPT
Agents and its types in Arificial Intelgent.ppt
PPT
chapter2.ppt
PPT
chapter2.ppt
Intelligent agents.ppt
chapter2.pptx
chapter2intelligence (AI) and machine learning (ML) .pptx
chapter2 Related to internet how internet works
Chapter 2 intelligent agents
Agents and its types in Arificial Intelgent.ppt
chapter2.ppt
chapter2.ppt

Similar to LectureNote2.pdf (20)

PPT
artificial Intelligence unit1 ppt (1).ppt
PPT
chapter2-(Intelligent Agents).ppt
PPTX
Lecture 1 about the Agents in AI & .pptx
PPT
AI Agents - Basic Concepts and their types
PPT
Intelligent Agents Intelligent Agents - AI
PPT
intelligent agentppt consists of all the necessary info
PPT
AI AGENTS and their type and architecture
PPT
cxssssssssssssssssssssssssssshapter2.ppt
PPT
Lecture1
PPT
Introduction
PPT
2.IntelligentAgents.ppt
PPT
cs480-244444444444444444444444444444.ppt
PPTX
AI INTELLIGENT AGENTS AND ENVIRONMENT.pptx
PPT
cs480-2.pptcs480-2.pptcs480-2.pptcs480-2.pptcs480-2.pptcs480-2.ppt
PPT
cs480-2.pptssssssssssssssssssssssssssssssssssssssss
PPT
Intelligent agent - Artifical Intelligence
PPT
Elective(Intellegent agent )__cha.Two.ppt
PPTX
AI ------------------------------ W1L2.pptx
PDF
artificial Intelligence unit1 ppt (1).ppt
chapter2-(Intelligent Agents).ppt
Lecture 1 about the Agents in AI & .pptx
AI Agents - Basic Concepts and their types
Intelligent Agents Intelligent Agents - AI
intelligent agentppt consists of all the necessary info
AI AGENTS and their type and architecture
cxssssssssssssssssssssssssssshapter2.ppt
Lecture1
Introduction
2.IntelligentAgents.ppt
cs480-244444444444444444444444444444.ppt
AI INTELLIGENT AGENTS AND ENVIRONMENT.pptx
cs480-2.pptcs480-2.pptcs480-2.pptcs480-2.pptcs480-2.pptcs480-2.ppt
cs480-2.pptssssssssssssssssssssssssssssssssssssssss
Intelligent agent - Artifical Intelligence
Elective(Intellegent agent )__cha.Two.ppt
AI ------------------------------ W1L2.pptx
Ad

More from AmirMohamedNabilSale (20)

DOCX
dcu1-distributed-computing-lecture-notes.docx
DOCX
CourseAimsaaaaaaaaaaaaaaaaàaaaaaaaa.docx
PDF
featurers_Machinelearning___________.pdf
PDF
LecccccccccccccProgrammingLecture-09.pdf
PDF
9.b-CMPS 403-F20-Session 9-Intro to ML II.pdf
PDF
6.c-CMPS 403-F19-Session 6-Resolution.pdf
PDF
3.b-CMPS 403-F20-Session 3-Solving CSP I.pdf
PDF
2.a-CMPS 403-F20-Session 2-Search Problems.pdf
PDF
Lecture_1_matrix_operations.pdf
PDF
232021-211025052822.pdf
PDF
9a52019-211025074532.pdf
PDF
random-211016153637.pdf
PDF
PDF
Linux_Commands.pdf
PPTX
AI in covid 19 (1).pptx
PPTX
COVID-19 PowerPoint.pptx
PPTX
Edu week2022.pptx
PDF
dcu1-distributed-computing-lecture-notes.docx
CourseAimsaaaaaaaaaaaaaaaaàaaaaaaaa.docx
featurers_Machinelearning___________.pdf
LecccccccccccccProgrammingLecture-09.pdf
9.b-CMPS 403-F20-Session 9-Intro to ML II.pdf
6.c-CMPS 403-F19-Session 6-Resolution.pdf
3.b-CMPS 403-F20-Session 3-Solving CSP I.pdf
2.a-CMPS 403-F20-Session 2-Search Problems.pdf
Lecture_1_matrix_operations.pdf
232021-211025052822.pdf
9a52019-211025074532.pdf
random-211016153637.pdf
Linux_Commands.pdf
AI in covid 19 (1).pptx
COVID-19 PowerPoint.pptx
Edu week2022.pptx
Ad

Recently uploaded (20)

PPTX
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
PPTX
Introduction to Fisheries Biotechnology_Lesson 1.pptx
PPTX
Protein & Amino Acid Structures Levels of protein structure (primary, seconda...
PPTX
INTRODUCTION TO EVS | Concept of sustainability
PDF
The scientific heritage No 166 (166) (2025)
PDF
Biophysics 2.pdffffffffffffffffffffffffff
PPTX
DRUG THERAPY FOR SHOCK gjjjgfhhhhh.pptx.
PPTX
BIOMOLECULES PPT........................
PDF
HPLC-PPT.docx high performance liquid chromatography
PDF
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
PPTX
ECG_Course_Presentation د.محمد صقران ppt
PDF
bbec55_b34400a7914c42429908233dbd381773.pdf
PPTX
EPIDURAL ANESTHESIA ANATOMY AND PHYSIOLOGY.pptx
PPTX
Derivatives of integument scales, beaks, horns,.pptx
PPTX
Microbiology with diagram medical studies .pptx
PPT
The World of Physical Science, • Labs: Safety Simulation, Measurement Practice
PPT
protein biochemistry.ppt for university classes
PPTX
2. Earth - The Living Planet earth and life
PPTX
Classification Systems_TAXONOMY_SCIENCE8.pptx
PDF
Phytochemical Investigation of Miliusa longipes.pdf
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
Introduction to Fisheries Biotechnology_Lesson 1.pptx
Protein & Amino Acid Structures Levels of protein structure (primary, seconda...
INTRODUCTION TO EVS | Concept of sustainability
The scientific heritage No 166 (166) (2025)
Biophysics 2.pdffffffffffffffffffffffffff
DRUG THERAPY FOR SHOCK gjjjgfhhhhh.pptx.
BIOMOLECULES PPT........................
HPLC-PPT.docx high performance liquid chromatography
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
ECG_Course_Presentation د.محمد صقران ppt
bbec55_b34400a7914c42429908233dbd381773.pdf
EPIDURAL ANESTHESIA ANATOMY AND PHYSIOLOGY.pptx
Derivatives of integument scales, beaks, horns,.pptx
Microbiology with diagram medical studies .pptx
The World of Physical Science, • Labs: Safety Simulation, Measurement Practice
protein biochemistry.ppt for university classes
2. Earth - The Living Planet earth and life
Classification Systems_TAXONOMY_SCIENCE8.pptx
Phytochemical Investigation of Miliusa longipes.pdf

LectureNote2.pdf

  • 1. Mansoura University Faculty of Computers and Information Course Name: Artificial Intelligence Lecturer: Amir EL-Ghamry Topic: Intelligent Agents
  • 2. Outline Artificial Intelligence a modern approach 2 — Agents and environments — Rationality — PEAS (Performance measure, Environment, Actuators, Sensors)
  • 4. CS 561, Lecture 2 Agent Environment Agent percepts actions ? Sensors Actuators How to design this?
  • 6. CS 561, Lecture 2 How is an Agent different from other software? — Agents are autonomous, that is, they act on behalf of the user — Agents contain some level of intelligence, from fixed rules to learning engines that allow them to adapt to changes in the environment — Agents have social ability, that is, they communicate with the user, the system, and other agents as required — Agents may also cooperate with other agents to carry out more complex tasks than they themselves can handle
  • 7. CS 561, Lecture 2 How is an Agent different from other software? — Agents may migrate from one system to another to access remote resources or even to meet other agents
  • 8. Agent and Environment Artificial Intelligence a modern approach 9
  • 9. CS 561, Lecture 2 Structure of Intelligent Agents — Agent program: the implementation of f : P* ® A, the agent’s perception-action mapping function Skeleton-Agent(Percept) returns Action memory ¬ UpdateMemory(memory, Percept) Action ¬ ChooseBestAction(memory) memory ¬ UpdateMemory(memory, Action) return Action — Architecture: a device that can execute the agent program (e.g., general-purpose computer, specialized device, etc.)
  • 10. Vacuum-cleaner world Artificial Intelligence a modern approach 12 — Percepts: location (A or B) and contents (dirt or not), e.g., [A,Dirty] — Actions: Left, Right, Suck, NoOp — Agent’s function à look-up table ¡ For many agents this is a very large table
  • 12. Agent function – Lookup table Artificial Intelligence a modern approach 14
  • 14. Rational agents Artificial Intelligence a modern approach 16 • Rationality – Good behavior 1. Performance measuring success 2. Agents prior knowledge of environment 3. Actions that agent can perform 4. 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.
  • 15. Back to vacuum cleaner agent Artificial Intelligence a modern approach 17
  • 16. Back to vacuum cleaner agent Artificial Intelligence a modern approach 18
  • 17. Vacuum cleaner agent - irrational Artificial Intelligence a modern approach 19
  • 18. Rationality Artificial Intelligence a modern approach 21 — Rational is different from omniscience (all knowing with infinite knowledge) ¡ 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 ¡ Perfection (omniscience) maximizes actual outcome.
  • 19. The Right Thing = The Rational Action — Rational Action: The action that maximizes the expected value of the performance measure given the percept sequence to date ¡ Rational = Best Yes, to the best of its knowledge ¡ Rational = Optimal Yes, to the best of its abilities (constraints). ¡ Rational ¹ Omniscience ¡ Rational ¹ Successful
  • 20. 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.
  • 21. Specifying the task environment (PEAS) Artificial Intelligence a modern approach 24
  • 22. Specifying the task environment (PEAS) Artificial Intelligence a modern approach 25
  • 23. PEAS – vacuum cleaner Artificial Intelligence a modern approach 26
  • 24. PEAS – Windshield Wiper Agent
  • 25. PEAS – Windshield Wiper Agent — Goals: Keep windshields clean & maintain visibility — Percepts: Raining, Dirty — Sensors: Camera (moist sensor) — Actuators: Wipers (left, right, back) — Actions: Off, Slow, Medium, Fast — Environment: Inner city, freeways, highways, weather …
  • 26. PEAS – self driving car Artificial Intelligence a modern approach 29
  • 27. PEAS - automated taxi driver Artificial Intelligence a modern approach 30
  • 28. PEAS - automated taxi driver Artificial Intelligence a modern approach 31 • The task of designing an automated taxi driver: – Performance measure: Safe, fast, legal, comfortable trip, maximize profits – Environment: Roads, other traffic, pedestrians, customers , weather – Actuators: Steering wheel, accelerator, brake, signal, horn – Sensors: Cameras, sonar, speedometer, GPS, odometer, engine sensors, keyboard
  • 29. Interacting Agents Collision Avoidance Agent (CAA) — Goals: Avoid running into obstacles — Percepts: Obstacle distance, velocity, trajectory — Sensors: Vision, proximity sensing — Actuators: Steering Wheel, Accelerator, Brakes, Horn, Headlights — Actions: Steer, speed up, brake, blow horn, signal (headlights) — Environment: Freeway Lane Keeping Agent (LKA) • Goals: Stay in current lane • Percepts: Lane center, lane boundaries • Sensors: Vision • Effectors: Steering Wheel, Accelerator, Brakes • Actions: Steer, speed up, brake • Environment: Freeway
  • 30. Conflict Resolution by Action Selection Agents • Arbitrate: if Obstacle is Close then CAA else LKA • Challenges: Doing the right thing
  • 31. PEAS – medical diagnosis system Artificial Intelligence a modern approach 34
  • 32. PEAS – medical diagnosis system Artificial Intelligence a modern approach 35
  • 33. PEAS – spam filter Artificial Intelligence a modern approach 36
  • 34. PEAS – spam filter Artificial Intelligence a modern approach 37
  • 35. PEAS – satellite image analysis system Artificial Intelligence a modern approach 38
  • 36. PEAS – satellite image analysis system Artificial Intelligence a modern approach 39
  • 37. PEAS - Part-picking robot Artificial Intelligence a modern approach 40
  • 38. PEAS - Part-picking robot Artificial Intelligence a modern approach 41 — Performance measure: Percentage of parts in correct bins — Environment: Conveyor belt with parts, bins — Actuators: Jointed arm and hand — Sensors: Camera, joint angle sensors
  • 39. PEAS - Interactive English tutor Artificial Intelligence a modern approach 42
  • 40. PEAS - Interactive English tutor Artificial Intelligence a modern approach 43 — Performance measure: Maximize student's score on test — Environment: Set of students — Actuators: Screen display (exercises, suggestions, corrections) — Sensors: Keyboard