SlideShare a Scribd company logo
1 of 58
Intelligent Agents
1AI, Subash Chandra Pakhrin
Instructional Objective
• Define an agent
• Define an intelligent agent
• Define a Rational agent
• Explain Bounded rationality
• Discuss different types of environment
• Explain different agent architectures
2AI, Subash Chandra Pakhrin
Instructional Objective
On completion of this lesson the student will be able to
• Understand what an agent is and how an agent
interacts with the environment.
• Given a problem situation, the student should be able
to
– Identify the percepts available to the agent and
– the actions that the agent can execute.
• Understand the performance measures used to
evaluate an agent
• Understand the definition of a rational agent
• Understand the concept of bounded rationality
3AI, Subash Chandra Pakhrin
Instructional Objective
• On completion of this lesson the student will
– Be familiar with
• Different agent architectures
• Stimulus response agents
• State based agents
• Deliberative / goal – directed agents
• Utility based agents
• Learning agents
– Be able to analyze a problem situation and be able to
• Identify the characteristics of the environment
• Recommend the architecture of the desired agent
4AI, Subash Chandra Pakhrin
Agent and Environment
Percepts: Hear, see / inputs
Actions: actuators / effectors
5AI, Subash Chandra Pakhrin
Agents
• Operate in an environment
• Perceives its environment through sensors
• Acts upon its environment through
actuators/effectors
• Have goals
6AI, Subash Chandra Pakhrin
Sensors and effectors
• An agent perceives its environment through
sensors
– The complete set of inputs at a given time is called a
percept
– The current percept, or a sequence of percepts can
influence the actions of an agent
• It can change the environment through effectors
– An operation involving an actuator is called an action
– Actions can be grouped into action sequences
7AI, Subash Chandra Pakhrin
Agents
• Have sensors, actuators
• Have goals
• Implement mapping from
percept sequence to
actions
• Performance measure to
evaluate agents
• Autonomous agent decide
autonomously which
action to take in the
current situation to
maximize progress towards
its goals.
8AI, Subash Chandra Pakhrin
Performance
• Behavior and performance of IAs in terms of
agent function
– Perception history (sequence) to Action Mapping
– Ideal Mapping: specifies which actions an agent to
take at any point in time
• Performance measure: a subjective measure
to characterize how successful an agent is
(e.g., speed, power usage, accuracy, money,
etc)
9AI, Subash Chandra Pakhrin
Examples of Agent
• Humans
– Eyes, ears, skin, taste buds, etc. for sensors
• Robots
– Camera, infrared, bumper, etc. for sensors
– Grippers, wheels, lights, speakers, etc. for
actuators
• Software agent (soft bots)
– Functions as sensors
– Functions as actuators
10AI, Subash Chandra Pakhrin
Types of Agents: Robots
http://www.ai.mit.edu/projects/humanoid-robotics-group/cog/overview.html
Cog (MIT) 11AI, Subash Chandra Pakhrin
Types of Agents: Robots
https://www.youtube.com/watch?v=8t8fyiiQVZ0
The AIBO Entertainment
Robot is a totally new
kind of robot-
autonomous, sensitive to
his environment, and able
to learn and mature like a
living creature. Since each
AIBO experiences his
world differently, each
develops his own unique
personality – different
from any other AIBO in
the world!
Aibo (SONY)
12AI, Subash Chandra Pakhrin
Types of Agents
• Soft bots
– Askjeeves.com
• Expert System
– Cardiologist
• Autonomous spacecraft
• Intelligent buildings
13AI, Subash Chandra Pakhrin
Agents
• Fundamental faculties of intelligence
– Acting
– Sensing
– Understanding, reasoning, learning
• In order to act you must sense. Blind actions is
not a characterization of intelligence.
• Robotics: sensing and acting, understanding
not necessary.
• Sensing needs understanding to be useful.
14AI, Subash Chandra Pakhrin
Intelligent Agents
• Intelligent Agents
– Must sense
– Must act
– Must be autonomous (to some extent),
– Must be rational.
15AI, Subash Chandra Pakhrin
Rational Agent
• AI is about building rational agents
• An agent is something that perceives and acts.
• A rational agent always does the right thing.
– What are the functionalities (goals) ?
– What are the components ?
– How do we build them ?
16AI, Subash Chandra Pakhrin
Rationality
• Perfect Rationality
– Assumes that the rational agent knows all and will
take the action that maximizes his/her utility.
– Equivalent to demanding that the agent is Omniscient.
– Human beings do not satisfy this definition of
rationality.
• Bounded Rationality Herbert Simon, 1972 (CMU)
– Because of the limitations of the human kind, humans
must use approximate methods to handle many tasks.
17AI, Subash Chandra Pakhrin
Rationality
• 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
• And its constraints
18AI, Subash Chandra Pakhrin
Omniscience
• A rational agent is not omniscient
– It doesn’t know the actual outcome of its actions
– It may not know certain aspects of its
environment.
• Rationality must take into account the
limitations of the agent
– Percept sequence, background knowledge,
feasible actions
– Deal with the expected outcome of actions
19AI, Subash Chandra Pakhrin
Bounded Rationality
• Evolution did not give rise to optimal agents,
but to agents which are in some senses locally
optimal at best.
• In 1957, Simon proposed the notion of
Bounded Rationality:
that property of an agent that behaves in a
manner that is nearly optimal with respect to
its goals as its resources will allow.
20AI, Subash Chandra Pakhrin
Agent Environment
• Environments in which agents operate can be
defined in different ways.
It is helpful to view the following definitions as
referring to the way the environment appears
from the point of view of the agent itself.
21AI, Subash Chandra Pakhrin
Environment: Observability
• Fully observable
– All of the environment relevant to the action being
considered is observable
– Such environments are convenient, since the agent is
freed from the task of keeping track of the change in
the environment.
• Partially observable
– The relevant features of the environment are only
partially observable
• Example:
– Fully obs: Chess; Partially obs: Poker
22AI, Subash Chandra Pakhrin
Environment: Determinism
• Deterministic: The next state of the environment
is completely described by the current state and
the agent’s action. Image analysis
• Stochastic: If an element of interference or
uncertainty occurs then the environment is
stochastic. Note that a deterministic yet partially
observable environment will appear to be
stochastic to the agent. Ludo
• Strategic: environment state wholly determined
by the preceding state and the actions of multiple
agents is called strategic. Chess
23AI, Subash Chandra Pakhrin
Environment: Episodicity
• Episodic / Sequential
– An episodic environment means that subsequent
episodes do not depend on what actions occurred
in pervious episodes.
– In a sequential environment, the agent engages in
a series of connected episodes.
24AI, Subash Chandra Pakhrin
Environment: Dynamism
• Static Environment: does not change from one
state to the next while the agent is considering its
course of action. The only changes to the
environment as those caused by the agent itself
• Dynamic Environment: Changes over time
independent of the actions of the agent – and
thus if an agent does not respond in a timely
manner, this counts as a choice to do nothing
– Interactive tutor
25AI, Subash Chandra Pakhrin
Environments: Continuity
• Discrete / Continuous
– If the number of distinct percepts and actions is
limited, the environment is discrete, otherwise it
is continuous.
26AI, Subash Chandra Pakhrin
Environments: other agents
• Single agent/ Multi-agent
– If the environment contains other intelligent
agents, the agent needs to be concerned about
strategic, game – theoretic aspects of the
environment (for either cooperative or
competitive agents)
– Most engineering environments don’t have multi-
agent properties, whereas most social and
economic systems get their complexity from the
interactions of (more or less) rational agents.
27AI, Subash Chandra Pakhrin
Complex Environments
• Complexity of the environment includes
– Knowledge rich: enormous amount of information that the
environment contains and
– Input rich: the enormous amount of input the
environment can send to an agent. T
• The agent must have a way of manage this complexity.
Often such considerations lead to the development of
– Sensing strategies and
– Attentional mechanisms
• So that the agent may more readily focus its efforts in
such rich environments.
28AI, Subash Chandra Pakhrin
Table based agent
• Information comes from sensors – percepts
• Look it up !
• Triggers actions through the effectors
• In table based agent the mapping from percepts to
actions is stored in the form of table
Reactive agents
No notion of history, the current state is the sensors see it
right now.
Percepts Actions
29AI, Subash Chandra Pakhrin
Table based agent
• a table is simple way to specify a mapping from
percepts to actions
– Tables may become very large
– All work done by the designer
– No autonomy, all actions are predetermined
– Learning might take a very long time
• Mapping is implicitly defined by a program
– Rule based
– Neural networks
– algorithms
30AI, Subash Chandra Pakhrin
AI, Subash Chandra Pakhrin 31
Percept based agent
• Information comes from sensors – percepts
• Changes the agents current state of the world
• Triggers action through the effectors
Reactive agents / Stimulus – response agents
Agent takes some action without any deliberation
No notion of history, the current state is as the
sensors see it right now.
32AI, Subash Chandra Pakhrin
Subsumption Architecture
• Rodney Brooks, 1986
• Sensory inputs – action (lower animals)
• Brooks – follow the evolutionary path and build
simple agents for complex worlds.
• Features
– No explicit knowledge representation
– Distributed behavior (not centralized)
– Response to stimuli is reflexive
– Bottom up design – complex behaviors fashioned from
the combination of simpler underlying ones.
– Inexpensive individual agents
33AI, Subash Chandra Pakhrin
Subsumption Architecture
• Subsumption Architecture built in layers.
• Time scale of evolution – 5 billion years (cells)
– First humans – 2.5 million years
– Symbols – 5000 years
• Different layers of behavior
• Higher layers can override lower layers.
• Each activity consists of a Finite State Machine
(FSM).
34AI, Subash Chandra Pakhrin
Mobile Robot Example
• Layer 0: Avoid Obstacles
– Sonar: generate sonar scan
– Collide: send HALT message
to forward
– Feel force: signal sent to
run-away, turn
• Layer 1: Wander Behavior
– Generates a random
heading
– Avoid reads repulsive force,
generates new heading,
feeds to turn and forward
35AI, Subash Chandra Pakhrin
Mobile Robot Example
• Layer 2: Exploration
behavior
– Whenlook notices idle
time and looks for an
interesting place.
– Pathplan sends new
direction to avoid.
– Integrate monitors
path and sends them
to the path plan.
36AI, Subash Chandra Pakhrin
Percept based Agent
• Efficient
• No internal representation for reasoning,
interference.
• No strategic planning, learning.
• Percept-based agents are not good for
multiple, opposing, goals.
37AI, Subash Chandra Pakhrin
AI, Subash Chandra Pakhrin 38
Simple Reflex Agent (E.g. Chess)
• They choose actions only based on the current
percept.
• Their environment is completely observable.
• Condition-Action Rule – It is a rule that maps a
state (condition) to an action
Vacuum cleaner: Condition
if dirty then clean
if it is clean then stop
AI, Subash Chandra Pakhrin 39
AI, Subash Chandra Pakhrin 40
Model Based Reflex Agents
• It doesn’t know about the whole world
• It has the knowledge of the partial world
• It keeps a small model in which the agent can
predict and control the world / perform the
action.
• There is a predefined model which we keep on
the basis of history and we predict what
action we should take now.
AI, Subash Chandra Pakhrin 41
Updating the state requires the
information about -
• How the world evolves.
• How the agent’s actions affect the world.
AI, Subash Chandra Pakhrin 42
State based Agent
• Information comes from sensors-percepts
• Changes the agents current state of the world
• Based on state of the world and knowledge
(memory), it triggers actions through the
effectors
• In order to this the agent does some
deliberation
43AI, Subash Chandra Pakhrin
Goal-based Agent
• Information comes from sensors-percepts
• Changes the agents current state of the world
• Based on state of the world and knowledge (memory)
and goals/intentions, it chooses actions and does them
through the effectors.
• Agent’s actions will depend upon its goal.
• Goal formulation based on the current situation is a
way of solving many problems and search is a universal
problem solving mechanism in AI.
• The sequence of steps required to solve a problem is
not known a priori and must be determined by a
systematic exploration of the alternatives.
44AI, Subash Chandra Pakhrin
Goal-based Agent
• Knowing something about current state of
environment is not enough to decide what to
do
• Agent also needs some sort of goal
information
AI, Subash Chandra Pakhrin 45
Goal-based Agent
AI, Subash Chandra Pakhrin 46
Utility based agent
• A more general framework
• Different preferences for different goals
• A utility function maps a state or a sequence
of states to a real valued utility.
• The agent acts so as to maximize expected
utility.
47AI, Subash Chandra Pakhrin
AI, Subash Chandra Pakhrin 48
Learning Agent
• Learning allows an agent to operate in initially
unknown environments
• The learning element modifies the
performance element
• Learning is required for true autonomy
49AI, Subash Chandra Pakhrin
Learning Agent
AI, Subash Chandra Pakhrin 50
PEAS Representation
• Task Environment
– Problems to which rational agent are solutions
– In task environment there are problems and they
are solved by rational agent
AI, Subash Chandra Pakhrin 51
To specify Task environment, we need
• P – Performance measures (what output are
you expecting from an agent)
• E – Environment
• A – Actuators
• S - Sensors
AI, Subash Chandra Pakhrin 52
Automated Taxi Driver Agent
• Performance Measures:
– Getting to correct
Destination
– Less cost
– High safety
• Environment:
– Variety of roads
– Traffic
– Different Types of passenger
AI, Subash Chandra Pakhrin 53
• Actuators:
– Accelerators
– Steering & Brakes
• Sensors:
– Camera
– GPS
– IR Sensors
Medical Diagnoses System
• Performance measures
– Healthy patients
– Minimize cost
• Environment
– Patients
– Hospital
– Staff
AI, Subash Chandra Pakhrin 54
• Actuators:
• Screen Display
(Question test,
treatment)
• Sensors
• Keyboard
(Entry of Symptoms)
Summary
• An agent perceives and acts in an
environment, has an architecture, and is
implemented by an agent program.
• An ideal agent always chooses the action
which maximizes its expected performance,
given its percepts sequence so far.
• An autonomous agent uses its own experience
rather than built-in knowledge of the
environment by the designer.
55AI, Subash Chandra Pakhrin
Summary
• An agent program maps from percept to action and
updates its internal state.
– Reflex agents respond immediately to percepts.
– Goal-based agents act in order to achieve their goal(s).
– Utility-based agents maximize their own utility function.
• Representing Knowledge is important for successful
agent design.
• The most challenging environments are partially
observable, stochastic, sequential, dynamic, and
continuous, and contain multiple intelligent agents.
56AI, Subash Chandra Pakhrin
Questions
1. Define an agent.
2. What is a rational agent ?
3. What is bounded rationality ?
4. What is an autonomous agent ?
5. Describe the salient features of an agent.
57AI, Subash Chandra Pakhrin
Questions
6. Find out about the Mars rover.
a. What are the percepts for this agent ?
b. Characterize the operating environment.
c. What are the actions the agent an take ?
d. How can one evaluate the performance of the agent
?
e. What sort of agent architecture do you think is most
suitable for this agent ?
7. Answer the same questions as above for an
Internet shopping agent.
58AI, Subash Chandra Pakhrin

More Related Content

Similar to Intelligent Agents Guide

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.pptxSuvamvlogs
 
Artificial Intelligence and Machine Learning.pptx
Artificial Intelligence and Machine Learning.pptxArtificial Intelligence and Machine Learning.pptx
Artificial Intelligence and Machine Learning.pptxMANIPRADEEPS1
 
Detail about agent with it's types in AI
Detail about agent with it's types in AI Detail about agent with it's types in AI
Detail about agent with it's types in AI bhubohara
 
Artificial intelligence(03)
Artificial intelligence(03)Artificial intelligence(03)
Artificial intelligence(03)Nazir Ahmed
 
2.IntelligentAgents.ppt
2.IntelligentAgents.ppt2.IntelligentAgents.ppt
2.IntelligentAgents.pptGopiSuresh8
 
SANG AI 1.pptx
SANG AI 1.pptxSANG AI 1.pptx
SANG AI 1.pptxSanGeet25
 
Lecture 2 agent and environment
Lecture 2   agent and environmentLecture 2   agent and environment
Lecture 2 agent and environmentVajira Thambawita
 
Intelligent Agents
Intelligent AgentsIntelligent Agents
Intelligent Agentsmarada0033
 
Agents and environment.pptx
Agents and environment.pptxAgents and environment.pptx
Agents and environment.pptxssusere16bd9
 
ARTIFICIAL INTELLIGENCE - SHORT NOTES
ARTIFICIAL INTELLIGENCE - SHORT NOTESARTIFICIAL INTELLIGENCE - SHORT NOTES
ARTIFICIAL INTELLIGENCE - SHORT NOTESsuthi
 
W2_Lec03_Lec04_Agents.pptx
W2_Lec03_Lec04_Agents.pptxW2_Lec03_Lec04_Agents.pptx
W2_Lec03_Lec04_Agents.pptxJavaid Iqbal
 

Similar to Intelligent Agents Guide (20)

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
 
Artificial Intelligence and Machine Learning.pptx
Artificial Intelligence and Machine Learning.pptxArtificial Intelligence and Machine Learning.pptx
Artificial Intelligence and Machine Learning.pptx
 
Detail about agent with it's types in AI
Detail about agent with it's types in AI Detail about agent with it's types in AI
Detail about agent with it's types in AI
 
AI Lesson 02
AI Lesson 02AI Lesson 02
AI Lesson 02
 
Artificial intelligence(03)
Artificial intelligence(03)Artificial intelligence(03)
Artificial intelligence(03)
 
2.IntelligentAgents.ppt
2.IntelligentAgents.ppt2.IntelligentAgents.ppt
2.IntelligentAgents.ppt
 
SANG AI 1.pptx
SANG AI 1.pptxSANG AI 1.pptx
SANG AI 1.pptx
 
Agents1
Agents1Agents1
Agents1
 
AI week 2.pdf
AI week 2.pdfAI week 2.pdf
AI week 2.pdf
 
AI Basic.pptx
AI Basic.pptxAI Basic.pptx
AI Basic.pptx
 
Lec 2-agents
Lec 2-agentsLec 2-agents
Lec 2-agents
 
Lecture 2 agent and environment
Lecture 2   agent and environmentLecture 2   agent and environment
Lecture 2 agent and environment
 
agents.pdf
agents.pdfagents.pdf
agents.pdf
 
Unit-1.pptx
Unit-1.pptxUnit-1.pptx
Unit-1.pptx
 
Intelligent Agents
Intelligent AgentsIntelligent Agents
Intelligent Agents
 
Lec 2 agents
Lec 2 agentsLec 2 agents
Lec 2 agents
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Agents and environment.pptx
Agents and environment.pptxAgents and environment.pptx
Agents and environment.pptx
 
ARTIFICIAL INTELLIGENCE - SHORT NOTES
ARTIFICIAL INTELLIGENCE - SHORT NOTESARTIFICIAL INTELLIGENCE - SHORT NOTES
ARTIFICIAL INTELLIGENCE - SHORT NOTES
 
W2_Lec03_Lec04_Agents.pptx
W2_Lec03_Lec04_Agents.pptxW2_Lec03_Lec04_Agents.pptx
W2_Lec03_Lec04_Agents.pptx
 

More from Subash Chandra Pakhrin

Torsion Angles, ASA Used for prediction of Non - Enzymatic PTM
Torsion Angles, ASA Used for prediction of Non - Enzymatic PTMTorsion Angles, ASA Used for prediction of Non - Enzymatic PTM
Torsion Angles, ASA Used for prediction of Non - Enzymatic PTMSubash Chandra Pakhrin
 
Characterization and identification of lysine succinylation sites based
Characterization and identification of lysine succinylation sites basedCharacterization and identification of lysine succinylation sites based
Characterization and identification of lysine succinylation sites basedSubash Chandra Pakhrin
 
Deep Learning or Convolutional Neural Network
Deep Learning or Convolutional Neural Network Deep Learning or Convolutional Neural Network
Deep Learning or Convolutional Neural Network Subash Chandra Pakhrin
 
Knnowledge representation and logic lec 11 to lec 15
Knnowledge representation and logic lec 11 to lec 15Knnowledge representation and logic lec 11 to lec 15
Knnowledge representation and logic lec 11 to lec 15Subash Chandra Pakhrin
 

More from Subash Chandra Pakhrin (20)

Prismoid
PrismoidPrismoid
Prismoid
 
Torsion Angles, ASA Used for prediction of Non - Enzymatic PTM
Torsion Angles, ASA Used for prediction of Non - Enzymatic PTMTorsion Angles, ASA Used for prediction of Non - Enzymatic PTM
Torsion Angles, ASA Used for prediction of Non - Enzymatic PTM
 
COVID 19
COVID 19 COVID 19
COVID 19
 
Lstm covid 19 prediction
Lstm covid 19 predictionLstm covid 19 prediction
Lstm covid 19 prediction
 
Rnn & Lstm
Rnn & LstmRnn & Lstm
Rnn & Lstm
 
Characterization and identification of lysine succinylation sites based
Characterization and identification of lysine succinylation sites basedCharacterization and identification of lysine succinylation sites based
Characterization and identification of lysine succinylation sites based
 
Cnn april 8 2020
Cnn april 8 2020Cnn april 8 2020
Cnn april 8 2020
 
Deep Learning or Convolutional Neural Network
Deep Learning or Convolutional Neural Network Deep Learning or Convolutional Neural Network
Deep Learning or Convolutional Neural Network
 
Ncit 1st ai lab
Ncit 1st ai labNcit 1st ai lab
Ncit 1st ai lab
 
Ai lab
Ai labAi lab
Ai lab
 
Constraint satisfaction problem
Constraint satisfaction problem Constraint satisfaction problem
Constraint satisfaction problem
 
Analysis
AnalysisAnalysis
Analysis
 
Planning
PlanningPlanning
Planning
 
Intelligent agents (bsc csit) lec 2
Intelligent agents (bsc csit) lec 2Intelligent agents (bsc csit) lec 2
Intelligent agents (bsc csit) lec 2
 
Final slide4 (bsc csit) chapter 4
Final slide4 (bsc csit) chapter 4Final slide4 (bsc csit) chapter 4
Final slide4 (bsc csit) chapter 4
 
Final slide (bsc csit) chapter 5
Final slide (bsc csit) chapter 5Final slide (bsc csit) chapter 5
Final slide (bsc csit) chapter 5
 
Lec 6 bsc csit
Lec 6 bsc csitLec 6 bsc csit
Lec 6 bsc csit
 
Two player games
Two player gamesTwo player games
Two player games
 
Knnowledge representation and logic lec 11 to lec 15
Knnowledge representation and logic lec 11 to lec 15Knnowledge representation and logic lec 11 to lec 15
Knnowledge representation and logic lec 11 to lec 15
 
Final slide (bsc csit) chapter 3
Final slide (bsc csit) chapter 3Final slide (bsc csit) chapter 3
Final slide (bsc csit) chapter 3
 

Recently uploaded

URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 

Recently uploaded (20)

URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 

Intelligent Agents Guide

  • 2. Instructional Objective • Define an agent • Define an intelligent agent • Define a Rational agent • Explain Bounded rationality • Discuss different types of environment • Explain different agent architectures 2AI, Subash Chandra Pakhrin
  • 3. Instructional Objective On completion of this lesson the student will be able to • Understand what an agent is and how an agent interacts with the environment. • Given a problem situation, the student should be able to – Identify the percepts available to the agent and – the actions that the agent can execute. • Understand the performance measures used to evaluate an agent • Understand the definition of a rational agent • Understand the concept of bounded rationality 3AI, Subash Chandra Pakhrin
  • 4. Instructional Objective • On completion of this lesson the student will – Be familiar with • Different agent architectures • Stimulus response agents • State based agents • Deliberative / goal – directed agents • Utility based agents • Learning agents – Be able to analyze a problem situation and be able to • Identify the characteristics of the environment • Recommend the architecture of the desired agent 4AI, Subash Chandra Pakhrin
  • 5. Agent and Environment Percepts: Hear, see / inputs Actions: actuators / effectors 5AI, Subash Chandra Pakhrin
  • 6. Agents • Operate in an environment • Perceives its environment through sensors • Acts upon its environment through actuators/effectors • Have goals 6AI, Subash Chandra Pakhrin
  • 7. Sensors and effectors • An agent perceives its environment through sensors – The complete set of inputs at a given time is called a percept – The current percept, or a sequence of percepts can influence the actions of an agent • It can change the environment through effectors – An operation involving an actuator is called an action – Actions can be grouped into action sequences 7AI, Subash Chandra Pakhrin
  • 8. Agents • Have sensors, actuators • Have goals • Implement mapping from percept sequence to actions • Performance measure to evaluate agents • Autonomous agent decide autonomously which action to take in the current situation to maximize progress towards its goals. 8AI, Subash Chandra Pakhrin
  • 9. Performance • Behavior and performance of IAs in terms of agent function – Perception history (sequence) to Action Mapping – Ideal Mapping: specifies which actions an agent to take at any point in time • Performance measure: a subjective measure to characterize how successful an agent is (e.g., speed, power usage, accuracy, money, etc) 9AI, Subash Chandra Pakhrin
  • 10. Examples of Agent • Humans – Eyes, ears, skin, taste buds, etc. for sensors • Robots – Camera, infrared, bumper, etc. for sensors – Grippers, wheels, lights, speakers, etc. for actuators • Software agent (soft bots) – Functions as sensors – Functions as actuators 10AI, Subash Chandra Pakhrin
  • 11. Types of Agents: Robots http://www.ai.mit.edu/projects/humanoid-robotics-group/cog/overview.html Cog (MIT) 11AI, Subash Chandra Pakhrin
  • 12. Types of Agents: Robots https://www.youtube.com/watch?v=8t8fyiiQVZ0 The AIBO Entertainment Robot is a totally new kind of robot- autonomous, sensitive to his environment, and able to learn and mature like a living creature. Since each AIBO experiences his world differently, each develops his own unique personality – different from any other AIBO in the world! Aibo (SONY) 12AI, Subash Chandra Pakhrin
  • 13. Types of Agents • Soft bots – Askjeeves.com • Expert System – Cardiologist • Autonomous spacecraft • Intelligent buildings 13AI, Subash Chandra Pakhrin
  • 14. Agents • Fundamental faculties of intelligence – Acting – Sensing – Understanding, reasoning, learning • In order to act you must sense. Blind actions is not a characterization of intelligence. • Robotics: sensing and acting, understanding not necessary. • Sensing needs understanding to be useful. 14AI, Subash Chandra Pakhrin
  • 15. Intelligent Agents • Intelligent Agents – Must sense – Must act – Must be autonomous (to some extent), – Must be rational. 15AI, Subash Chandra Pakhrin
  • 16. Rational Agent • AI is about building rational agents • An agent is something that perceives and acts. • A rational agent always does the right thing. – What are the functionalities (goals) ? – What are the components ? – How do we build them ? 16AI, Subash Chandra Pakhrin
  • 17. Rationality • Perfect Rationality – Assumes that the rational agent knows all and will take the action that maximizes his/her utility. – Equivalent to demanding that the agent is Omniscient. – Human beings do not satisfy this definition of rationality. • Bounded Rationality Herbert Simon, 1972 (CMU) – Because of the limitations of the human kind, humans must use approximate methods to handle many tasks. 17AI, Subash Chandra Pakhrin
  • 18. Rationality • 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 • And its constraints 18AI, Subash Chandra Pakhrin
  • 19. Omniscience • A rational agent is not omniscient – It doesn’t know the actual outcome of its actions – It may not know certain aspects of its environment. • Rationality must take into account the limitations of the agent – Percept sequence, background knowledge, feasible actions – Deal with the expected outcome of actions 19AI, Subash Chandra Pakhrin
  • 20. Bounded Rationality • Evolution did not give rise to optimal agents, but to agents which are in some senses locally optimal at best. • In 1957, Simon proposed the notion of Bounded Rationality: that property of an agent that behaves in a manner that is nearly optimal with respect to its goals as its resources will allow. 20AI, Subash Chandra Pakhrin
  • 21. Agent Environment • Environments in which agents operate can be defined in different ways. It is helpful to view the following definitions as referring to the way the environment appears from the point of view of the agent itself. 21AI, Subash Chandra Pakhrin
  • 22. Environment: Observability • Fully observable – All of the environment relevant to the action being considered is observable – Such environments are convenient, since the agent is freed from the task of keeping track of the change in the environment. • Partially observable – The relevant features of the environment are only partially observable • Example: – Fully obs: Chess; Partially obs: Poker 22AI, Subash Chandra Pakhrin
  • 23. Environment: Determinism • Deterministic: The next state of the environment is completely described by the current state and the agent’s action. Image analysis • Stochastic: If an element of interference or uncertainty occurs then the environment is stochastic. Note that a deterministic yet partially observable environment will appear to be stochastic to the agent. Ludo • Strategic: environment state wholly determined by the preceding state and the actions of multiple agents is called strategic. Chess 23AI, Subash Chandra Pakhrin
  • 24. Environment: Episodicity • Episodic / Sequential – An episodic environment means that subsequent episodes do not depend on what actions occurred in pervious episodes. – In a sequential environment, the agent engages in a series of connected episodes. 24AI, Subash Chandra Pakhrin
  • 25. Environment: Dynamism • Static Environment: does not change from one state to the next while the agent is considering its course of action. The only changes to the environment as those caused by the agent itself • Dynamic Environment: Changes over time independent of the actions of the agent – and thus if an agent does not respond in a timely manner, this counts as a choice to do nothing – Interactive tutor 25AI, Subash Chandra Pakhrin
  • 26. Environments: Continuity • Discrete / Continuous – If the number of distinct percepts and actions is limited, the environment is discrete, otherwise it is continuous. 26AI, Subash Chandra Pakhrin
  • 27. Environments: other agents • Single agent/ Multi-agent – If the environment contains other intelligent agents, the agent needs to be concerned about strategic, game – theoretic aspects of the environment (for either cooperative or competitive agents) – Most engineering environments don’t have multi- agent properties, whereas most social and economic systems get their complexity from the interactions of (more or less) rational agents. 27AI, Subash Chandra Pakhrin
  • 28. Complex Environments • Complexity of the environment includes – Knowledge rich: enormous amount of information that the environment contains and – Input rich: the enormous amount of input the environment can send to an agent. T • The agent must have a way of manage this complexity. Often such considerations lead to the development of – Sensing strategies and – Attentional mechanisms • So that the agent may more readily focus its efforts in such rich environments. 28AI, Subash Chandra Pakhrin
  • 29. Table based agent • Information comes from sensors – percepts • Look it up ! • Triggers actions through the effectors • In table based agent the mapping from percepts to actions is stored in the form of table Reactive agents No notion of history, the current state is the sensors see it right now. Percepts Actions 29AI, Subash Chandra Pakhrin
  • 30. Table based agent • a table is simple way to specify a mapping from percepts to actions – Tables may become very large – All work done by the designer – No autonomy, all actions are predetermined – Learning might take a very long time • Mapping is implicitly defined by a program – Rule based – Neural networks – algorithms 30AI, Subash Chandra Pakhrin
  • 31. AI, Subash Chandra Pakhrin 31
  • 32. Percept based agent • Information comes from sensors – percepts • Changes the agents current state of the world • Triggers action through the effectors Reactive agents / Stimulus – response agents Agent takes some action without any deliberation No notion of history, the current state is as the sensors see it right now. 32AI, Subash Chandra Pakhrin
  • 33. Subsumption Architecture • Rodney Brooks, 1986 • Sensory inputs – action (lower animals) • Brooks – follow the evolutionary path and build simple agents for complex worlds. • Features – No explicit knowledge representation – Distributed behavior (not centralized) – Response to stimuli is reflexive – Bottom up design – complex behaviors fashioned from the combination of simpler underlying ones. – Inexpensive individual agents 33AI, Subash Chandra Pakhrin
  • 34. Subsumption Architecture • Subsumption Architecture built in layers. • Time scale of evolution – 5 billion years (cells) – First humans – 2.5 million years – Symbols – 5000 years • Different layers of behavior • Higher layers can override lower layers. • Each activity consists of a Finite State Machine (FSM). 34AI, Subash Chandra Pakhrin
  • 35. Mobile Robot Example • Layer 0: Avoid Obstacles – Sonar: generate sonar scan – Collide: send HALT message to forward – Feel force: signal sent to run-away, turn • Layer 1: Wander Behavior – Generates a random heading – Avoid reads repulsive force, generates new heading, feeds to turn and forward 35AI, Subash Chandra Pakhrin
  • 36. Mobile Robot Example • Layer 2: Exploration behavior – Whenlook notices idle time and looks for an interesting place. – Pathplan sends new direction to avoid. – Integrate monitors path and sends them to the path plan. 36AI, Subash Chandra Pakhrin
  • 37. Percept based Agent • Efficient • No internal representation for reasoning, interference. • No strategic planning, learning. • Percept-based agents are not good for multiple, opposing, goals. 37AI, Subash Chandra Pakhrin
  • 38. AI, Subash Chandra Pakhrin 38
  • 39. Simple Reflex Agent (E.g. Chess) • They choose actions only based on the current percept. • Their environment is completely observable. • Condition-Action Rule – It is a rule that maps a state (condition) to an action Vacuum cleaner: Condition if dirty then clean if it is clean then stop AI, Subash Chandra Pakhrin 39
  • 40. AI, Subash Chandra Pakhrin 40
  • 41. Model Based Reflex Agents • It doesn’t know about the whole world • It has the knowledge of the partial world • It keeps a small model in which the agent can predict and control the world / perform the action. • There is a predefined model which we keep on the basis of history and we predict what action we should take now. AI, Subash Chandra Pakhrin 41
  • 42. Updating the state requires the information about - • How the world evolves. • How the agent’s actions affect the world. AI, Subash Chandra Pakhrin 42
  • 43. State based Agent • Information comes from sensors-percepts • Changes the agents current state of the world • Based on state of the world and knowledge (memory), it triggers actions through the effectors • In order to this the agent does some deliberation 43AI, Subash Chandra Pakhrin
  • 44. Goal-based Agent • Information comes from sensors-percepts • Changes the agents current state of the world • Based on state of the world and knowledge (memory) and goals/intentions, it chooses actions and does them through the effectors. • Agent’s actions will depend upon its goal. • Goal formulation based on the current situation is a way of solving many problems and search is a universal problem solving mechanism in AI. • The sequence of steps required to solve a problem is not known a priori and must be determined by a systematic exploration of the alternatives. 44AI, Subash Chandra Pakhrin
  • 45. Goal-based Agent • Knowing something about current state of environment is not enough to decide what to do • Agent also needs some sort of goal information AI, Subash Chandra Pakhrin 45
  • 46. Goal-based Agent AI, Subash Chandra Pakhrin 46
  • 47. Utility based agent • A more general framework • Different preferences for different goals • A utility function maps a state or a sequence of states to a real valued utility. • The agent acts so as to maximize expected utility. 47AI, Subash Chandra Pakhrin
  • 48. AI, Subash Chandra Pakhrin 48
  • 49. Learning Agent • Learning allows an agent to operate in initially unknown environments • The learning element modifies the performance element • Learning is required for true autonomy 49AI, Subash Chandra Pakhrin
  • 50. Learning Agent AI, Subash Chandra Pakhrin 50
  • 51. PEAS Representation • Task Environment – Problems to which rational agent are solutions – In task environment there are problems and they are solved by rational agent AI, Subash Chandra Pakhrin 51
  • 52. To specify Task environment, we need • P – Performance measures (what output are you expecting from an agent) • E – Environment • A – Actuators • S - Sensors AI, Subash Chandra Pakhrin 52
  • 53. Automated Taxi Driver Agent • Performance Measures: – Getting to correct Destination – Less cost – High safety • Environment: – Variety of roads – Traffic – Different Types of passenger AI, Subash Chandra Pakhrin 53 • Actuators: – Accelerators – Steering & Brakes • Sensors: – Camera – GPS – IR Sensors
  • 54. Medical Diagnoses System • Performance measures – Healthy patients – Minimize cost • Environment – Patients – Hospital – Staff AI, Subash Chandra Pakhrin 54 • Actuators: • Screen Display (Question test, treatment) • Sensors • Keyboard (Entry of Symptoms)
  • 55. Summary • An agent perceives and acts in an environment, has an architecture, and is implemented by an agent program. • An ideal agent always chooses the action which maximizes its expected performance, given its percepts sequence so far. • An autonomous agent uses its own experience rather than built-in knowledge of the environment by the designer. 55AI, Subash Chandra Pakhrin
  • 56. Summary • An agent program maps from percept to action and updates its internal state. – Reflex agents respond immediately to percepts. – Goal-based agents act in order to achieve their goal(s). – Utility-based agents maximize their own utility function. • Representing Knowledge is important for successful agent design. • The most challenging environments are partially observable, stochastic, sequential, dynamic, and continuous, and contain multiple intelligent agents. 56AI, Subash Chandra Pakhrin
  • 57. Questions 1. Define an agent. 2. What is a rational agent ? 3. What is bounded rationality ? 4. What is an autonomous agent ? 5. Describe the salient features of an agent. 57AI, Subash Chandra Pakhrin
  • 58. Questions 6. Find out about the Mars rover. a. What are the percepts for this agent ? b. Characterize the operating environment. c. What are the actions the agent an take ? d. How can one evaluate the performance of the agent ? e. What sort of agent architecture do you think is most suitable for this agent ? 7. Answer the same questions as above for an Internet shopping agent. 58AI, Subash Chandra Pakhrin

Editor's Notes

  1. Subsumption: A statement that is assumed to be true and from which a conclusion can be drawn Rodney Brooks argument was the lower animals behave largely in a reactive manner, they have very little sense of deliberation, so most of the actions are reactive actions. His argument was that in the time scale of evolution reactive behavior came much earlier than deliberative behavior. And he has been able to show that simple reactive behavior, a number of such components having simple reactive behavior can achieve a surprising degree of intelligence.