SlideShare a Scribd company logo
LECTURE 2
Intelligent Agents
Instructor : Yousef Aburawi
Cs411 -Artificial Intelligence
Misurata University
Faculty of Information Technology
Spring 2022/2023
Intelligent Agents
Outline
I. Agents and rational behavior
II. The nature of environments
III. The structure of agents
AI Systems as Intelligent Agents
 An agent is something that can
 perceive its "environment" through sensors (percepts)
 act upon that environment through actuators (or effectors)
 An agent is defined by its internal agent function
 A percept sequence is the complete history of everything the agent has
ever perceived
 The agent function maps all possible percept sequences onto actions
 We implement an agent by writing an agent program
I. Agents
 Perception (sensors)
 Action (actuators)
 Reasoning / cognition
Percept: perceptual inputs at any given instant.
Agent function (behavior):
Percept sequence: complete history of everything the agent has ever perceived.
a percept sequence ↦ an action
reasoning
Construction of the Agent Function
Tabulation?
 Very large, if not infinite table!
 Instead, implement the function internally by an agent program.
 The program runs on the agent’s architecture to produce the function.
Agent = program + architecture
 Abstract description vs concrete implementation!
The Vacuum-Cleaner World
 Environment: squares 𝐴 & 𝐵
 Percepts: [𝐴, Dirty]
square the vacuum
cleaner is in
state of
the square
 Actions: left, right, suck, nothing
Agent Function
 Many ways to fill in the right column
 What is the right way?
Good/bad, intelligent/stupid?
Rational Behavior?
if status == Dirty then return Suck
else if location == A then return Right
else if location == B then return Left
No, needless oscillation once all the dirt is cleaned up!
Do nothing when all the squares are clean.
improve
Is this agent rational?
Rationality
What is rational depends on four things:
 performance measure defining the criterion of success
 prior knowledge of the environment
 performable actions by the agent
 perceptual sequence to date
A rational agent should select an action expected to maximize its
performance measure.
Performance Measure
Meanwhile, assume
 Awards one point for each clean square at each time step.
 known environment
 unknown dirt distribution and agent’s initial location
 Left and Right having no effect if they would take the agent outside
 only available actions: Left, Right, and Suck
 perfect sensing of location and dirt existence there
This agent is rational.
Omniscience vs Rationality
Rationality ≠ omniscience ≠ perfection
 An omniscient agent knows the actual outcome of its
actions.
Impossible in reality!
 Rationality maximizes the expected performance.
 Learn as much as it perceives.
 Does not require omniscience.
 Perfection maximizes actual performance.
II. Task Environment
 performance measure
 environment of the agent
 agent’s actuators and sensors
To design a rational agent, we must specify its task environment:
PEAS
Automated Taxi Driver
Its task environment in the PEAS description:
PEAS for Other Agents
Universal Robots
ActiNav autonomous
bin picking kit
Environment Properties
 Categorize task environments according to properties.
appropriate families of techniques
for agent implementation
Environment Property 1
 Fully observable
vs. partially observable
if the sensors can detect all aspects that are
relevant to the choice of action.
Environment Property 2
 Single-agent vs. multiagent
competitive
cooperative
Environment Property 3
 Deterministic
vs. stochastic
if the next state of the environment is completely
determined by the current
state and the action executed by the agent.
unable to keep track of all the
cards in opponents’hands; must be
treated as nondeterministic
Environment Property 4
 Episodic
vs. sequential
if the agent’s experience is divided into atomic episodes, among which one does not
depend on the actions taken in previous ones.
if the current decision could affect all future decisions.
instantaneous actions
can have long-term
consequences.
Environment Property 5
 Dynamic
vs. semidynamic
vs. static
if the environment can change while the agent is choosing an
action.
if the environment does not change but the agent’s performance
score does.
Environment Property 6
 Discrete
vs. continuous
The distinction applies to
the environment’s state
the way time is handled
the agent’s percepts and actions
III. The Structure of Agents
The job of AI is to design an agent program that implements
percepts ⟼ action
agent = architecture + program
All agent programs have the same skeleton:
 input: current percept
 output: action
 program: manipulates inputs to produce output
Computing device, sensors & actuators
Table Lookup Agent
It retains complete percept sequence in memory.
Doomed to failure due to
 daunting table size (e.g., easily over 10150
entries for chess)
 no storage space
 no time for construction
 no way for the agent to learn all the entries
 no guidance on how to fill the table entries
Basic Agent Types
Simple reflex agents
Model-based reflex agents
Four basic types embody the principles underlying almost all
intelligent systems:
Goal-based agents
Utility-based agents
All of them can be converted into
Learning-based agents
Simple Reflex Agent
Rectangles: agent’s current internal state
Ovals: background information used in the process.
 Select actions based on the
current percepts, and ignore
the percept history.
E.g., the vacuum agent
 Implemented through condition-
action rule.
if dirty then suck
if car-in-front-is-braking
then initiate-braking
Vacuum-Cleaner World (Revisited)
if status == Dirty then return Suck
else if location == A then return Right
else if location == B then return Left
Simple Reflex Agent
Limited intelligence It will work only if the correct decision can be
made based on only the current percept, i.e.,
only if the environment is fully observable.
Model-based Reflex Agent
 Partially observable environment.
 Need to maintain some internal state.
 Update it using knowledge.
 How does the world change?
 How do actions affect the
world?
Model of the world
How This Agent Works
 It is rarely possible to describe the exact current state of the environment.
 The maintained “state” does not have to describe the world.
Goal-Based Agent
 Needs also some goal information
describing desirable situations.
 Search and planning
when a long sequence of actions is
required to find the goal.
 Difference in taking the
future into account.
Utility-Based Agent
 Different ways to achieve a goal sometimes.
 Use a utility function that maps a (sequence of
states) to a real number (utility)
internal performance measure
 Maximize expected utility.
 Goal improvements:
 selection among conflicting goals
 selection based on likelihood of success
and goal importance
Learning-Based Agent
 Preferred method for creating
state-of-the-art AI systems:
 Allow operation in initially
unknown environments.
 Adapt to changes in the
environment --- robustness.
 Modifications of the four
components to bring them
in closer agreement with
the available feedback
Better overall performance
Learning-Based Agent
 Learning element introduces
improvements in performance element.
 Critic provides feedback on the agent’s
performance based on fixed performance
standard.
 Performance element selects actions
based on the precepts.
 Problem generator suggests actions
that will lead to new and informative
experiences.
Readings
 Chapters 2 of Textbox.
 https://en.wikipedia.org/wiki/History_of_artificial_intelligence
 https://plato.stanford.edu/entries/artificial-intelligence/
 http://plato.stanford.edu/entries/turing-test/
1-34
The End

More Related Content

Similar to AI_02_Intelligent Agents.pptx

Artificial intelligence introduction
Artificial intelligence introductionArtificial intelligence introduction
Artificial intelligence introduction
melchismel
 
Week 2.pdf
Week 2.pdfWeek 2.pdf
Week 2.pdf
ZamshedForman1
 
introduction to inteligent IntelligentAgent.ppt
introduction to inteligent IntelligentAgent.pptintroduction to inteligent IntelligentAgent.ppt
introduction to inteligent IntelligentAgent.ppt
dejene3
 
AI_Ch2.pptx
AI_Ch2.pptxAI_Ch2.pptx
AI_Ch2.pptx
qwtadhsaber
 
Week 3.pdf
Week 3.pdfWeek 3.pdf
Week 3.pdf
ZamshedForman1
 
Agents_AI.ppt
Agents_AI.pptAgents_AI.ppt
Agents_AI.ppt
sandeep54552
 
AI
AIAI
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
 
Lecture 2 Agents.pptx
Lecture 2 Agents.pptxLecture 2 Agents.pptx
Lecture 2 Agents.pptx
AndrewKuziwakwasheMu
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
Vinod Kumar Meghwar
 
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 - Agents & Environments
AI - Agents & EnvironmentsAI - Agents & Environments
AI - Agents & Environments
Learnbay Datascience
 
CS4700-Agents_v3.pptx
CS4700-Agents_v3.pptxCS4700-Agents_v3.pptx
CS4700-Agents_v3.pptx
0137RajatThakur
 
intelligent agent (1).pptx
intelligent agent (1).pptxintelligent agent (1).pptx
intelligent agent (1).pptx
ShivareddyGangam
 
1.1 What are Agent and Environment.pptx
1.1 What are Agent and Environment.pptx1.1 What are Agent and Environment.pptx
1.1 What are Agent and Environment.pptx
Suvamvlogs
 
Slide01 - Intelligent Agents.ppt
Slide01 - Intelligent Agents.pptSlide01 - Intelligent Agents.ppt
Slide01 - Intelligent Agents.ppt
Abdullahalmamun149493
 
Artificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agentsArtificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agentsEhsan Nowrouzi
 
Lecture 02-agents
Lecture 02-agentsLecture 02-agents
Lecture 02-agents
nisar haider bhatti
 
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCEIntelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
Khushboo Pal
 

Similar to AI_02_Intelligent Agents.pptx (20)

Artificial intelligence introduction
Artificial intelligence introductionArtificial intelligence introduction
Artificial intelligence introduction
 
Week 2.pdf
Week 2.pdfWeek 2.pdf
Week 2.pdf
 
introduction to inteligent IntelligentAgent.ppt
introduction to inteligent IntelligentAgent.pptintroduction to inteligent IntelligentAgent.ppt
introduction to inteligent IntelligentAgent.ppt
 
AI_Ch2.pptx
AI_Ch2.pptxAI_Ch2.pptx
AI_Ch2.pptx
 
Week 3.pdf
Week 3.pdfWeek 3.pdf
Week 3.pdf
 
Agents_AI.ppt
Agents_AI.pptAgents_AI.ppt
Agents_AI.ppt
 
AI
AIAI
AI
 
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
 
Lecture 2 Agents.pptx
Lecture 2 Agents.pptxLecture 2 Agents.pptx
Lecture 2 Agents.pptx
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
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
 
AI - Agents & Environments
AI - Agents & EnvironmentsAI - Agents & Environments
AI - Agents & Environments
 
CS4700-Agents_v3.pptx
CS4700-Agents_v3.pptxCS4700-Agents_v3.pptx
CS4700-Agents_v3.pptx
 
intelligent agent (1).pptx
intelligent agent (1).pptxintelligent agent (1).pptx
intelligent agent (1).pptx
 
1.1 What are Agent and Environment.pptx
1.1 What are Agent and Environment.pptx1.1 What are Agent and Environment.pptx
1.1 What are Agent and Environment.pptx
 
Slide01 - Intelligent Agents.ppt
Slide01 - Intelligent Agents.pptSlide01 - Intelligent Agents.ppt
Slide01 - Intelligent Agents.ppt
 
Artificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agentsArtificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agents
 
Lecture 02-agents
Lecture 02-agentsLecture 02-agents
Lecture 02-agents
 
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCEIntelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
 

More from Yousef Aburawi

AI_07_Deep Learning.pptx
AI_07_Deep Learning.pptxAI_07_Deep Learning.pptx
AI_07_Deep Learning.pptx
Yousef Aburawi
 
AI_06_Machine Learning.pptx
AI_06_Machine Learning.pptxAI_06_Machine Learning.pptx
AI_06_Machine Learning.pptx
Yousef Aburawi
 
AI_05_First Order Logic.pptx
AI_05_First Order Logic.pptxAI_05_First Order Logic.pptx
AI_05_First Order Logic.pptx
Yousef Aburawi
 
AI_04_Logical Agents.pptx
AI_04_Logical Agents.pptxAI_04_Logical Agents.pptx
AI_04_Logical Agents.pptx
Yousef Aburawi
 
AI_03_Solving Problems by Searching.pptx
AI_03_Solving Problems by Searching.pptxAI_03_Solving Problems by Searching.pptx
AI_03_Solving Problems by Searching.pptx
Yousef Aburawi
 
AI_01_introduction.pptx
AI_01_introduction.pptxAI_01_introduction.pptx
AI_01_introduction.pptx
Yousef Aburawi
 
AI_08_NLP.pptx
AI_08_NLP.pptxAI_08_NLP.pptx
AI_08_NLP.pptx
Yousef Aburawi
 

More from Yousef Aburawi (7)

AI_07_Deep Learning.pptx
AI_07_Deep Learning.pptxAI_07_Deep Learning.pptx
AI_07_Deep Learning.pptx
 
AI_06_Machine Learning.pptx
AI_06_Machine Learning.pptxAI_06_Machine Learning.pptx
AI_06_Machine Learning.pptx
 
AI_05_First Order Logic.pptx
AI_05_First Order Logic.pptxAI_05_First Order Logic.pptx
AI_05_First Order Logic.pptx
 
AI_04_Logical Agents.pptx
AI_04_Logical Agents.pptxAI_04_Logical Agents.pptx
AI_04_Logical Agents.pptx
 
AI_03_Solving Problems by Searching.pptx
AI_03_Solving Problems by Searching.pptxAI_03_Solving Problems by Searching.pptx
AI_03_Solving Problems by Searching.pptx
 
AI_01_introduction.pptx
AI_01_introduction.pptxAI_01_introduction.pptx
AI_01_introduction.pptx
 
AI_08_NLP.pptx
AI_08_NLP.pptxAI_08_NLP.pptx
AI_08_NLP.pptx
 

Recently uploaded

Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 

Recently uploaded (20)

Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 

AI_02_Intelligent Agents.pptx

  • 1. LECTURE 2 Intelligent Agents Instructor : Yousef Aburawi Cs411 -Artificial Intelligence Misurata University Faculty of Information Technology Spring 2022/2023
  • 2. Intelligent Agents Outline I. Agents and rational behavior II. The nature of environments III. The structure of agents
  • 3. AI Systems as Intelligent Agents  An agent is something that can  perceive its "environment" through sensors (percepts)  act upon that environment through actuators (or effectors)  An agent is defined by its internal agent function  A percept sequence is the complete history of everything the agent has ever perceived  The agent function maps all possible percept sequences onto actions  We implement an agent by writing an agent program
  • 4. I. Agents  Perception (sensors)  Action (actuators)  Reasoning / cognition Percept: perceptual inputs at any given instant. Agent function (behavior): Percept sequence: complete history of everything the agent has ever perceived. a percept sequence ↦ an action reasoning
  • 5. Construction of the Agent Function Tabulation?  Very large, if not infinite table!  Instead, implement the function internally by an agent program.  The program runs on the agent’s architecture to produce the function. Agent = program + architecture  Abstract description vs concrete implementation!
  • 6. The Vacuum-Cleaner World  Environment: squares 𝐴 & 𝐵  Percepts: [𝐴, Dirty] square the vacuum cleaner is in state of the square  Actions: left, right, suck, nothing
  • 7. Agent Function  Many ways to fill in the right column  What is the right way? Good/bad, intelligent/stupid?
  • 8. Rational Behavior? if status == Dirty then return Suck else if location == A then return Right else if location == B then return Left No, needless oscillation once all the dirt is cleaned up! Do nothing when all the squares are clean. improve Is this agent rational?
  • 9. Rationality What is rational depends on four things:  performance measure defining the criterion of success  prior knowledge of the environment  performable actions by the agent  perceptual sequence to date A rational agent should select an action expected to maximize its performance measure.
  • 10. Performance Measure Meanwhile, assume  Awards one point for each clean square at each time step.  known environment  unknown dirt distribution and agent’s initial location  Left and Right having no effect if they would take the agent outside  only available actions: Left, Right, and Suck  perfect sensing of location and dirt existence there This agent is rational.
  • 11. Omniscience vs Rationality Rationality ≠ omniscience ≠ perfection  An omniscient agent knows the actual outcome of its actions. Impossible in reality!  Rationality maximizes the expected performance.  Learn as much as it perceives.  Does not require omniscience.  Perfection maximizes actual performance.
  • 12. II. Task Environment  performance measure  environment of the agent  agent’s actuators and sensors To design a rational agent, we must specify its task environment: PEAS
  • 13. Automated Taxi Driver Its task environment in the PEAS description:
  • 14. PEAS for Other Agents Universal Robots ActiNav autonomous bin picking kit
  • 15. Environment Properties  Categorize task environments according to properties. appropriate families of techniques for agent implementation
  • 16. Environment Property 1  Fully observable vs. partially observable if the sensors can detect all aspects that are relevant to the choice of action.
  • 17. Environment Property 2  Single-agent vs. multiagent competitive cooperative
  • 18. Environment Property 3  Deterministic vs. stochastic if the next state of the environment is completely determined by the current state and the action executed by the agent. unable to keep track of all the cards in opponents’hands; must be treated as nondeterministic
  • 19. Environment Property 4  Episodic vs. sequential if the agent’s experience is divided into atomic episodes, among which one does not depend on the actions taken in previous ones. if the current decision could affect all future decisions. instantaneous actions can have long-term consequences.
  • 20. Environment Property 5  Dynamic vs. semidynamic vs. static if the environment can change while the agent is choosing an action. if the environment does not change but the agent’s performance score does.
  • 21. Environment Property 6  Discrete vs. continuous The distinction applies to the environment’s state the way time is handled the agent’s percepts and actions
  • 22. III. The Structure of Agents The job of AI is to design an agent program that implements percepts ⟼ action agent = architecture + program All agent programs have the same skeleton:  input: current percept  output: action  program: manipulates inputs to produce output Computing device, sensors & actuators
  • 23. Table Lookup Agent It retains complete percept sequence in memory. Doomed to failure due to  daunting table size (e.g., easily over 10150 entries for chess)  no storage space  no time for construction  no way for the agent to learn all the entries  no guidance on how to fill the table entries
  • 24. Basic Agent Types Simple reflex agents Model-based reflex agents Four basic types embody the principles underlying almost all intelligent systems: Goal-based agents Utility-based agents All of them can be converted into Learning-based agents
  • 25. Simple Reflex Agent Rectangles: agent’s current internal state Ovals: background information used in the process.  Select actions based on the current percepts, and ignore the percept history. E.g., the vacuum agent  Implemented through condition- action rule. if dirty then suck if car-in-front-is-braking then initiate-braking
  • 26. Vacuum-Cleaner World (Revisited) if status == Dirty then return Suck else if location == A then return Right else if location == B then return Left
  • 27. Simple Reflex Agent Limited intelligence It will work only if the correct decision can be made based on only the current percept, i.e., only if the environment is fully observable.
  • 28. Model-based Reflex Agent  Partially observable environment.  Need to maintain some internal state.  Update it using knowledge.  How does the world change?  How do actions affect the world? Model of the world
  • 29. How This Agent Works  It is rarely possible to describe the exact current state of the environment.  The maintained “state” does not have to describe the world.
  • 30. Goal-Based Agent  Needs also some goal information describing desirable situations.  Search and planning when a long sequence of actions is required to find the goal.  Difference in taking the future into account.
  • 31. Utility-Based Agent  Different ways to achieve a goal sometimes.  Use a utility function that maps a (sequence of states) to a real number (utility) internal performance measure  Maximize expected utility.  Goal improvements:  selection among conflicting goals  selection based on likelihood of success and goal importance
  • 32. Learning-Based Agent  Preferred method for creating state-of-the-art AI systems:  Allow operation in initially unknown environments.  Adapt to changes in the environment --- robustness.  Modifications of the four components to bring them in closer agreement with the available feedback Better overall performance
  • 33. Learning-Based Agent  Learning element introduces improvements in performance element.  Critic provides feedback on the agent’s performance based on fixed performance standard.  Performance element selects actions based on the precepts.  Problem generator suggests actions that will lead to new and informative experiences.
  • 34. Readings  Chapters 2 of Textbox.  https://en.wikipedia.org/wiki/History_of_artificial_intelligence  https://plato.stanford.edu/entries/artificial-intelligence/  http://plato.stanford.edu/entries/turing-test/ 1-34