SlideShare a Scribd company logo
1 of 31
Download to read offline
Mansoura University
Faculty of Computers and Information
Department of Computer Science
First Semester: 2020-2021
[CS324P ] Artificial Intelligence - 1 : INTELLIGENT AGENTS
Grade: Third Year (Computer Science)
Ass. Prof. Taher Hamza
Dr. Sara El-Metwally
Faculty of Computers and Information,
Mansoura University,
Egypt.
Contents
Intelligent Agents
1
2
3
4
2
Agent design
Environment Properties
Agents Types
Intelligent Agents
 An agent is anything that can be viewed as perceiving its
environment through sensors and acting upon that
environment through actuators
3
Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2003.
4
Intelligent Agents
Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2010.
Intelligent Agents, examples
5
Human Agent
Eyes, ears, nose, skin,..
Sensors
Hands, legs, mouth,..
Actuators
Robotic Agent
Cameras, infrared ,…
Sensors
Various motors, wheels,..
Actuators
A software Agent
Keystrokes, file contents, received network
packages…
Sensors
displaying on the screen, writing files,
sending network packets,…
Actuators
Intelligent Agents
6
An agent’s behavior is described by the agent function which maps
from percept histories to actions:
f: P*  A
Agent function will be implemented by an agent program which runs
on the physical architecture to produce f
agent = architecture + program
Intelligent Agents, example
 Percepts: location and contents, e.g: [A,Dirty]
 Actions: Left, Right, Suck
7
Vacuum-cleaner agent
Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2003.
Intelligent Agents
8
Agent function as look up Table:
Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2003.
Intelligent Agents
9
 An agent actions is completely specified by the
lookup table
 Drawbacks:
 Huge table
 Take a long time to build the table
 No autonomy
Agent function as look up Table:
Intelligent Agents
Rational Agent:
 For each possible percept sequence, Ideal rational
agent should do whatever action expected to maximize
performance measure, on the basis of built-in
knowledge agent has
10
Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2003.
Intelligent Agents
Rational Vs. Perfection !
 Omniscience is the unlimited knowledge
 An omniscient agent knows the actual outcome of its
actions, and can act accordingly
 Omniscience is impossible in reality
11
Agent design
 Performance: How agent be assessed?
 Environment: What elements exists around agent?
 Actuators: How agent change the environment?
 Sensors: How agent sense the environment?
12
Agent Design (PEAS)
Agent design
 Performance: Safe, fast, legal, comfortable trip, profits
13
Agent Design (PEAS)
Automated taxi driver
 Sensors: Cameras, speedometer, GPS, engine sensors, keyboard
 Environment: Roads, other traffic, pedestrians, customers
 Actuators: Steering wheel, accelerator, brake, signal, horn
Agent design
 Performance: Percentage of parts in correct bins, speed
 Environment: Conveyor belt with parts, bins
 Actuators: Jointed arm and hand
 Sensors: Camera, joint angle sensors
14
Agent Design (PEAS)
Part-picking robot
Agent design
15
Agent Design (PEAS)
Medical diagnosis system
 Performance: Healthy patient, minimize costs, lawsuits
 Environment: Patient, hospital, staff
 Actuators: Screen display (questions, tests, diagnoses,
treatments, referrals)
 Sensors: Keyboard (entry of symptoms, patient's answers)
 Performance: Healthy patient, minimize costs, lawsuits
 Environment: Patient, hospital, staff,…..
 Actuators: Screen display (questions, tests, diagnoses,
treatments, referrals)
 Sensors: Keyboard (entry of symptoms, patient's answers)
Agent design
16
Assignment (1)
Design the agent for your projects?
(PEAS)
Environment Properties
17
Environment Properties (ODESDA)
 Observable (or, partially observable)
An agent's sensors give it access to the complete state of
the environment at each point in time
 Deterministic (or, stochastic)
The next state of the environment is completely determined by
the current state and the action executed by the agent
 Episodic (or, sequential)
The agent's experience is divided into episodes, in each episode
the agent receives a percept and then performs a single action
Environment Properties
18
 Static (or, Dynamic)
The environment is unchanged while an agent is deliberating
 Discrete (or, Continuous)
A limited number of distinct, clearly defined percepts and actions.
 Agent (single/ multi) (cooperative /competitive)
Number of agent in the environment
Environment Properties (ODESDA)
Note
19
https://www.fool.com/investing/what-does-the-future-hold-for-self-driving-cars.aspx
https://www.geeksforgeeks.org/8-puzzle-problem-using-branch-and-bound/
Environment Properties
20
Environment Properties (ODESDA)
The environment type largely determines the agent design
The real world is: partially observable, stochastic, sequential,
dynamic, continuous, multi-agent
Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2010.
Environment Properties
21
Assignment (2)
Specify the agent’s environment for your project?
(ODESDA)
Agents Types
Simple reflex agents
Model-based reflex agents
Goal-based agents
Utility-based agents
22
Agent Basic Types:
Agents Types
23
Simple reflex agents
Choose actions only based on the current percept
Ignore the precept history (no memory)
Use condition-action rule
Very simple !
Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2010.
Agents Types
24
Simple reflex agents: (dis-advantage)
The agent will work only if the correct decision can be made on the
basis of the current percept that is only if the environment is fully
observable
Infinite loops are often unavoidable – escape could be possible by
randomizing
Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2003.
Agents Types
25
Model-based reflex agents
Action depend on history or unperceived aspects of the world
Need to maintain internal world model (state)
Without clear goal it is unclear to know what to do!
Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2010.
Agents Types
26
Goal-based agents
Agents of this kind take future events into consideration
Agent has some goal information, choose actions according to goal
Some solutions to goal states are better than others!
What happed if we have conflicting goals!
Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2010.
Agents Types
27
Utility-based agents
Try to Maximize agent expected happiness
Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2010.
Learning agent
28
Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2010.
Agents Types, example
29
Consider a chess playing agent, What sort of
agent would it need to be?
Might consider multiple goals
Simple-reflex agent:
Model-based reflex agent:
Goal-based agent:
Utility-based agent:
If yes? but some actions require some
memory (e.g. castling in chess)
If yes? but needs to reason about
future
If yes? but what about confliction
goals?
Agents Types
30
Assignment (3)
Describe the agent type for your project?
Simple-reflex agent? Why? Why not?
Model-based agent? Why? Why not?
Goal-based agent? Why? Why not?
utility-based agent? Why? Why not?
31

More Related Content

Similar to 2.pdf

Introduction To Artificial Intelligence
Introduction To Artificial IntelligenceIntroduction To Artificial Intelligence
Introduction To Artificial IntelligenceNeHal VeRma
 
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
 
introduction to inteligent IntelligentAgent.ppt
introduction to inteligent IntelligentAgent.pptintroduction to inteligent IntelligentAgent.ppt
introduction to inteligent IntelligentAgent.pptdejene3
 
AI_02_Intelligent Agents.pptx
AI_02_Intelligent Agents.pptxAI_02_Intelligent Agents.pptx
AI_02_Intelligent Agents.pptxYousef Aburawi
 
AI: Introduction to artificial intelligence
AI: Introduction to artificial intelligenceAI: Introduction to artificial intelligence
AI: Introduction to artificial intelligenceDataminingTools Inc
 
AI: Introduction to artificial intelligence
AI: Introduction to artificial intelligenceAI: Introduction to artificial intelligence
AI: Introduction to artificial intelligenceDatamining Tools
 

Similar to 2.pdf (20)

Introduction To Artificial Intelligence
Introduction To Artificial IntelligenceIntroduction To Artificial Intelligence
Introduction To Artificial Intelligence
 
Lecture 4 (1).pptx
Lecture 4 (1).pptxLecture 4 (1).pptx
Lecture 4 (1).pptx
 
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
 
CS4700-Agents_v3.pptx
CS4700-Agents_v3.pptxCS4700-Agents_v3.pptx
CS4700-Agents_v3.pptx
 
introduction to inteligent IntelligentAgent.ppt
introduction to inteligent IntelligentAgent.pptintroduction to inteligent IntelligentAgent.ppt
introduction to inteligent IntelligentAgent.ppt
 
AIES Unit I(2022).pptx
AIES Unit I(2022).pptxAIES Unit I(2022).pptx
AIES Unit I(2022).pptx
 
Lecture1
Lecture1Lecture1
Lecture1
 
AI_02_Intelligent Agents.pptx
AI_02_Intelligent Agents.pptxAI_02_Intelligent Agents.pptx
AI_02_Intelligent Agents.pptx
 
Ai Slides
Ai SlidesAi Slides
Ai Slides
 
Artificial Intelligent Agents
Artificial Intelligent AgentsArtificial Intelligent Agents
Artificial Intelligent Agents
 
Unit 1.ppt
Unit 1.pptUnit 1.ppt
Unit 1.ppt
 
Agents(1).ppt
Agents(1).pptAgents(1).ppt
Agents(1).ppt
 
Agent-based System - Introduction
Agent-based System - IntroductionAgent-based System - Introduction
Agent-based System - Introduction
 
Agent-based System - Introduction
Agent-based System - IntroductionAgent-based System - Introduction
Agent-based System - Introduction
 
AI: Introduction to artificial intelligence
AI: Introduction to artificial intelligenceAI: Introduction to artificial intelligence
AI: Introduction to artificial intelligence
 
AI: Introduction to artificial intelligence
AI: Introduction to artificial intelligenceAI: Introduction to artificial intelligence
AI: Introduction to artificial intelligence
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Lecture 02-agents
Lecture 02-agentsLecture 02-agents
Lecture 02-agents
 
LectureNote2.pdf
LectureNote2.pdfLectureNote2.pdf
LectureNote2.pdf
 

More from AmirMohamedNabilSale (17)

LecccccccccccccProgrammingLecture-09.pdf
LecccccccccccccProgrammingLecture-09.pdfLecccccccccccccProgrammingLecture-09.pdf
LecccccccccccccProgrammingLecture-09.pdf
 
p1.pdf
p1.pdfp1.pdf
p1.pdf
 
9.b-CMPS 403-F20-Session 9-Intro to ML II.pdf
9.b-CMPS 403-F20-Session 9-Intro to ML II.pdf9.b-CMPS 403-F20-Session 9-Intro to ML II.pdf
9.b-CMPS 403-F20-Session 9-Intro to ML II.pdf
 
6.c-CMPS 403-F19-Session 6-Resolution.pdf
6.c-CMPS 403-F19-Session 6-Resolution.pdf6.c-CMPS 403-F19-Session 6-Resolution.pdf
6.c-CMPS 403-F19-Session 6-Resolution.pdf
 
3.b-CMPS 403-F20-Session 3-Solving CSP I.pdf
3.b-CMPS 403-F20-Session 3-Solving CSP I.pdf3.b-CMPS 403-F20-Session 3-Solving CSP I.pdf
3.b-CMPS 403-F20-Session 3-Solving CSP I.pdf
 
2.a-CMPS 403-F20-Session 2-Search Problems.pdf
2.a-CMPS 403-F20-Session 2-Search Problems.pdf2.a-CMPS 403-F20-Session 2-Search Problems.pdf
2.a-CMPS 403-F20-Session 2-Search Problems.pdf
 
Lecture_1_matrix_operations.pdf
Lecture_1_matrix_operations.pdfLecture_1_matrix_operations.pdf
Lecture_1_matrix_operations.pdf
 
ML_1.pdf
ML_1.pdfML_1.pdf
ML_1.pdf
 
232021-211025052822.pdf
232021-211025052822.pdf232021-211025052822.pdf
232021-211025052822.pdf
 
9a52019-211025074532.pdf
9a52019-211025074532.pdf9a52019-211025074532.pdf
9a52019-211025074532.pdf
 
random-211016153637.pdf
random-211016153637.pdfrandom-211016153637.pdf
random-211016153637.pdf
 
Linux.pdf
Linux.pdfLinux.pdf
Linux.pdf
 
Linux_Commands.pdf
Linux_Commands.pdfLinux_Commands.pdf
Linux_Commands.pdf
 
AI in covid 19 (1).pptx
AI in covid 19 (1).pptxAI in covid 19 (1).pptx
AI in covid 19 (1).pptx
 
COVID-19 PowerPoint.pptx
COVID-19 PowerPoint.pptxCOVID-19 PowerPoint.pptx
COVID-19 PowerPoint.pptx
 
Edu week2022.pptx
Edu week2022.pptxEdu week2022.pptx
Edu week2022.pptx
 
ML_DT.pdf
ML_DT.pdfML_DT.pdf
ML_DT.pdf
 

Recently uploaded

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 

Recently uploaded (20)

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 

2.pdf

  • 1. Mansoura University Faculty of Computers and Information Department of Computer Science First Semester: 2020-2021 [CS324P ] Artificial Intelligence - 1 : INTELLIGENT AGENTS Grade: Third Year (Computer Science) Ass. Prof. Taher Hamza Dr. Sara El-Metwally Faculty of Computers and Information, Mansoura University, Egypt.
  • 3. Intelligent Agents  An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators 3 Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2003.
  • 4. 4 Intelligent Agents Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2010.
  • 5. Intelligent Agents, examples 5 Human Agent Eyes, ears, nose, skin,.. Sensors Hands, legs, mouth,.. Actuators Robotic Agent Cameras, infrared ,… Sensors Various motors, wheels,.. Actuators A software Agent Keystrokes, file contents, received network packages… Sensors displaying on the screen, writing files, sending network packets,… Actuators
  • 6. Intelligent Agents 6 An agent’s behavior is described by the agent function which maps from percept histories to actions: f: P*  A Agent function will be implemented by an agent program which runs on the physical architecture to produce f agent = architecture + program
  • 7. Intelligent Agents, example  Percepts: location and contents, e.g: [A,Dirty]  Actions: Left, Right, Suck 7 Vacuum-cleaner agent Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2003.
  • 8. Intelligent Agents 8 Agent function as look up Table: Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2003.
  • 9. Intelligent Agents 9  An agent actions is completely specified by the lookup table  Drawbacks:  Huge table  Take a long time to build the table  No autonomy Agent function as look up Table:
  • 10. Intelligent Agents Rational Agent:  For each possible percept sequence, Ideal rational agent should do whatever action expected to maximize performance measure, on the basis of built-in knowledge agent has 10 Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2003.
  • 11. Intelligent Agents Rational Vs. Perfection !  Omniscience is the unlimited knowledge  An omniscient agent knows the actual outcome of its actions, and can act accordingly  Omniscience is impossible in reality 11
  • 12. Agent design  Performance: How agent be assessed?  Environment: What elements exists around agent?  Actuators: How agent change the environment?  Sensors: How agent sense the environment? 12 Agent Design (PEAS)
  • 13. Agent design  Performance: Safe, fast, legal, comfortable trip, profits 13 Agent Design (PEAS) Automated taxi driver  Sensors: Cameras, speedometer, GPS, engine sensors, keyboard  Environment: Roads, other traffic, pedestrians, customers  Actuators: Steering wheel, accelerator, brake, signal, horn
  • 14. Agent design  Performance: Percentage of parts in correct bins, speed  Environment: Conveyor belt with parts, bins  Actuators: Jointed arm and hand  Sensors: Camera, joint angle sensors 14 Agent Design (PEAS) Part-picking robot
  • 15. Agent design 15 Agent Design (PEAS) Medical diagnosis system  Performance: Healthy patient, minimize costs, lawsuits  Environment: Patient, hospital, staff  Actuators: Screen display (questions, tests, diagnoses, treatments, referrals)  Sensors: Keyboard (entry of symptoms, patient's answers)  Performance: Healthy patient, minimize costs, lawsuits  Environment: Patient, hospital, staff,…..  Actuators: Screen display (questions, tests, diagnoses, treatments, referrals)  Sensors: Keyboard (entry of symptoms, patient's answers)
  • 16. Agent design 16 Assignment (1) Design the agent for your projects? (PEAS)
  • 17. Environment Properties 17 Environment Properties (ODESDA)  Observable (or, partially observable) An agent's sensors give it access to the complete state of the environment at each point in time  Deterministic (or, stochastic) The next state of the environment is completely determined by the current state and the action executed by the agent  Episodic (or, sequential) The agent's experience is divided into episodes, in each episode the agent receives a percept and then performs a single action
  • 18. Environment Properties 18  Static (or, Dynamic) The environment is unchanged while an agent is deliberating  Discrete (or, Continuous) A limited number of distinct, clearly defined percepts and actions.  Agent (single/ multi) (cooperative /competitive) Number of agent in the environment Environment Properties (ODESDA)
  • 20. Environment Properties 20 Environment Properties (ODESDA) The environment type largely determines the agent design The real world is: partially observable, stochastic, sequential, dynamic, continuous, multi-agent Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2010.
  • 21. Environment Properties 21 Assignment (2) Specify the agent’s environment for your project? (ODESDA)
  • 22. Agents Types Simple reflex agents Model-based reflex agents Goal-based agents Utility-based agents 22 Agent Basic Types:
  • 23. Agents Types 23 Simple reflex agents Choose actions only based on the current percept Ignore the precept history (no memory) Use condition-action rule Very simple ! Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2010.
  • 24. Agents Types 24 Simple reflex agents: (dis-advantage) The agent will work only if the correct decision can be made on the basis of the current percept that is only if the environment is fully observable Infinite loops are often unavoidable – escape could be possible by randomizing Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2003.
  • 25. Agents Types 25 Model-based reflex agents Action depend on history or unperceived aspects of the world Need to maintain internal world model (state) Without clear goal it is unclear to know what to do! Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2010.
  • 26. Agents Types 26 Goal-based agents Agents of this kind take future events into consideration Agent has some goal information, choose actions according to goal Some solutions to goal states are better than others! What happed if we have conflicting goals! Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2010.
  • 27. Agents Types 27 Utility-based agents Try to Maximize agent expected happiness Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2010.
  • 28. Learning agent 28 Image Credit: Artificial Intelligence A Modern Approach Second Edition by Stuart J. Russell and Peter Norvig by 2010.
  • 29. Agents Types, example 29 Consider a chess playing agent, What sort of agent would it need to be? Might consider multiple goals Simple-reflex agent: Model-based reflex agent: Goal-based agent: Utility-based agent: If yes? but some actions require some memory (e.g. castling in chess) If yes? but needs to reason about future If yes? but what about confliction goals?
  • 30. Agents Types 30 Assignment (3) Describe the agent type for your project? Simple-reflex agent? Why? Why not? Model-based agent? Why? Why not? Goal-based agent? Why? Why not? utility-based agent? Why? Why not?
  • 31. 31