SlideShare a Scribd company logo
1 of 48
Intelligent Agents
Amar Jukuntla, Assistant Professor, CSE
VFSTR Deemed To be University
Objectives
• Define an Agent
• Define an Intelligent Agent
• Define a Rational Agent
• Explain different types of environments
• Explain different Agent Architectures
2Intelligent Agents |Amar Jukuntla
Index
• Introduction to Agent
• Agent and Environment
• Sensors and effectors
• Autonomy in Agents
• Rationality
• Nature of Environment
• The structure of Agents
• Intelligent Agent types
• Table Driven Agent
• Simple Reflex Agents
• Model Based reflex Agents
• Goal Based Agents
• Utility Based Agents
• Learning Agents
• Scenario
• References
3Intelligent Agents |Amar Jukuntla
Introduction to Agent
• An agent is anything that can be viewed as perceiving its
environment through sensors and acting upon that
environment through actuators
• Operates in an environment
• Perceive its environment through sensors
• Acts upon its environment through actuators/ effectors
• Has Goals
4Intelligent Agents |Amar Jukuntla
Agents and environment
• An agent “perceives its environment
through sensors and acts upon that environment
through actuators.”
• An agent's choice of action can depend on the
entire history of percepts observed
previously, but not on anything it has not
perceived.
• Agents include Humans, Robotic and Software
5Intelligent Agents |Amar Jukuntla
Continue…
• An agent can be seen as a mapping between percept sequences and
actions.
Agent : Percept ∗  Action ∗
• The less an agents relies on its built-in knowledge, as opposed to the
current percept sequence, the more autonomous it is.
• The agent program runs on the physical architecture to produce
function agent = architecture + program
• A rational agent is an agent whose acts try to maximize some
performance measure.
6Intelligent Agents |Amar Jukuntla
• An agent perceives its environment through sensors
The complete set of inputs at a given time is called a percept
The current percept or Sequence of percepts can influence the action of an agent
• It can change the environment through actuators/ effectors
 An operation involving an actuator is called an action
 Action can be grouped into action sequences
SENSOR AND EFFECTORS
7Intelligent Agents |Amar Jukuntla
Agent types
•Human Agent
• Perception: Eyes, Ears, Nose, etc..
• Actuators: Hands, Legs
•Robotic Agents
• Perception: Sensors
• Actuators: Motors
•Software Agents
• Perceptions: Keystrokes, i/p
• Actuators : Output (display)
8Intelligent Agents |Amar Jukuntla
EXAMPLES OF AGENTS
Humans Programs Robots
senses keyboard, mouse,dataset cameras, pads
body parts monitor, speakers, files motors,limbs
9
INTELLIGENT AGENTS |AMAR
JUKUNTLA
Example: Vacuum-Cleaner
• Percepts: location and contents,
e.g., [A,Dirty]
• Actions: Left, Right, Suck, NoOp
10Intelligent Agents |Amar Jukuntla
11Intelligent Agents |Amar Jukuntla
Autonomy in Agents
The autonomy of an agent is the extent to which its behaviour is
determined by its own experience (with ability to learn and adapt)
• Extremes
– No autonomy – ignores environment/data
– Complete autonomy – must act randomly/no program
• Example: baby learning to crawl
• Ideal: design agents to have some autonomy
– Possibly good to become more autonomous in time
12Intelligent Agents |Amar Jukuntla
Autonomy in Agents
• The autonomyof an agent is the extent to which its behavior is
determined by its own experience (with ability to learn and
adapt).
• Extremes
– No autonomy – ignores environment/data
– Complete autonomy – must act randomly/no program
• Example: baby learning to crawl
• Ideal: design agents to have some autonomy
– Possibly good to become more autonomous in time
13Intelligent Agents |Amar Jukuntla
Rationality
• A rational agent is one that does the right thing.
• Every entry in the table is filled out correctly.
• What is the right thing?
• Approximation: the most successful agent
• Measure of success?
• Performance measure should be objective
• E.g. the amount of dirt cleaned within a certain time.
• E.g. how clean the floor is.
• Performance measure according to what is wanted in the
environment instead of how the agents should behave.14Intelligent Agents |Amar Jukuntla
Continue…
• What is rational at any given time depends on
four things:
– The performance measure that defines
the criterion of success.
– The agent's prior knowledge of the
environment.
– The actions that the agent can perform.
– The agent's percept sequence to date.
15Intelligent Agents |Amar Jukuntla
Continue…
• But, which action to choose? A rational agent is one that does the
"right thing", which depends on the performance measure.
• The performance measure should be designed to reflect what one
actually wants in the environment, rather than how one suspects the
agent should behave. Define it in terms of effects of actions on the
environment, rather than in terms of the agent's program.
• Rational behavior is not perfect, because an agent cannot know
everything about the environment, including past, present, and future.
We focus on maximizing expected performance, given what we know
about probabilities of things happening in the environment.
16Intelligent Agents |Amar Jukuntla
Nature of
Environments
• Specify the task environment (PEAS):
• P: performance measure
• E: environment
• A: agent's actuators
• S: agent's sensors
• Must first specify the setting for intelligent
agent design
• Consider, e.g., the task of designing an
automated taxi driver:
–PEAS 17Intelligent Agents |Amar Jukuntla
Continue…
• The task of designing an automated taxi driver:
– Performance measure: Safe, fast, legal,
comfortable trip, maximize profits
– Environment: Roads, other traffic,
pedestrians, customers
– Actuators: Steering wheel,
accelerator, brake, signal, horn
– Sensors: Cameras, sonar,
speedometer, GPS, odometer,
engine sensors, keyboard
18Intelligent Agents |Amar Jukuntla
Examples of Agents
19Intelligent Agents |Amar Jukuntla
Environments –
Accessible vs. inaccessible
• An accessible environment is one in which the agent can obtain
complete, accurate, up-to-date information about the environment’s
state
• Most moderately complex environments (for example, the everyday
physical world and the Internet) are inaccessible
• The more accessible an environment is, the simpler it is to build
agents to operate in it
20Intelligent Agents |Amar Jukuntla
Environments –
Deterministic vs. non-deterministic
• A deterministic environment is one in which the next state of the
environment is completely determined by the current state and the action
executed by the agent.
• The physical world can to all intents and purposes be regarded as non-
deterministic
• Non-deterministic environments present greater problems for the
agent designer
21Intelligent Agents |Amar Jukuntla
Environments –
Episodic vs. non-episodic
• In an episodic environment, the performance of an agent is dependent on a
number of discrete episodes, with no link between the performance of an
agent in different scenarios
• Episodic environments are simpler from the agent developer’s perspective
because the agent can decide what action to perform based only on the
current episode — it need not reason about the interactions between this
and future episodes
22Intelligent Agents |Amar Jukuntla
Environments–
Static vs. dynamic
• A static environment is unchanged while an agent is reflecting.
• A dynamic environment is one that has other processes operating on it,
and which hence changes in ways beyond the agent’s control
• Other processes can interfere with the agent’s actions (as in concurrent
systems theory)
• The physical world is a highly dynamic environment
23Intelligent Agents |Amar Jukuntla
Environments –
Discrete vs. continuous
• An environment is discrete if there are a fixed, finite
number of actions and percepts in it
– Ex: chess game
• Continuous environments have a certain level of
mismatch with computer systems
– Ex: taxi driving
• Discrete environments could in principle be handled
by a kind of “lookup table”
24Intelligent Agents |Amar Jukuntla
THE
STRUCTURE
OF AGENTS
• The job of AI is to design an agent program that implements the agent
function, the mapping from percepts to actions.
• We assume this program will run on some sort of computing device with
physical sensors and actuators—we call this the architecture:
agent = architecture + program
• In general, the architecture makes the percepts from the sensors available
to the program, runs the program, and feeds the program’s action choices
to the actuators as they are generated.
25Intelligent Agents |Amar Jukuntla
Intelligent Agents
• Must sense
• Must act
• Must autonomous (to some extend)
• Must rational
26Intelligent Agents |Amar Jukuntla
Agent types
• Agents are divided into 5 types
• Table Driven agents
• Simple reflex agent
• Model based agent
• Goal based agent
• Utility based agent
27Intelligent Agents |Amar Jukuntla
Table driven agent
• Agents have same skeleton: accepting percepts from an
environment and generating actions. Each uses some
internal data structures that are updated as new
percepts arrive.
• These data structures are operated on by the agent's
decision-making procedures to generate an action
choice, which is then passed to the architecture to be
executed.
• Table driven agents use a lookup table to
associate perceptions from the environment with
possible actions. 28Intelligent Agents |Amar Jukuntla
Continue…
• There are several drawbacks in this technique:
• Need to keep in memory entire percept sequence
• Long time to build the table
• Agent has no autonomy
• Other alternatives to map percepts to actions are:
• Simple Reflex agents
• Agents that keep track of world
• Goal-based agents
• Utility-based agents
29Intelligent Agents |Amar Jukuntla
30Intelligent Agents |Amar Jukuntla
Simple Reflex Agents
• Simple reflex agents ignore the rest of the percept history and act
only on the basis of the current percept.
• Percept history is the history of all that an agent has perceived till date.
The agent function is based on the condition-action rule.
• A condition-action rule is a rule that maps a state i.e, condition to an
action. If the condition is true, then the action is taken, else not.
• This agent function only succeeds when the environment is fully
observable. For simple reflex agents operating in partially observable
environments, infinite loops are often unavoidable.
31Intelligent Agents |Amar Jukuntla
Continue…
• It may be possible to escape from infinite loops if the
agent can randomize its actions. Problems with Simple reflex
agents are :
• Very limited intelligence.
• No knowledge of non-perceptual parts of state.
• Usually too big to generate and store.
• If there occurs any change in the environment, then the
collection of rules need to be updated.
32Intelligent Agents |Amar Jukuntla
33Intelligent Agents |Amar Jukuntla
Model Based reflex Agents
• The most effective way to handle partial observability is for the agent
to keep track of the part of the world it can’t see now.
• Agent should maintain some sort of internal state that depends on the
percept history and thereby reflects at least some of the unobserved
aspects of the current state.
• The agent has to keep track of internal state which is adjusted by each
percept and that depends on the percept history.
34Intelligent Agents |Amar Jukuntla
Continue…
• The current state is stored inside the agent which maintains
some kind of structure describing the part of the world which
cannot be seen.
• Updating the state requires the information about
• How the world evolves independently from the agent
• How the agent’s own actions affect the world
• This knowledge about “how the world works”—whether implemented in
simple Boolean circuits or in complete scientific theories—is
called a model of the world.
35Intelligent Agents |Amar Jukuntla
36Intelligent Agents |Amar Jukuntla
Goal Based Agents
•Knowing something about the current state of the
environment is not always enough to decide what to do.
• For example, at a road junction, the taxi can turn left, turn right, or go
straight on. The correct decision depends on where the taxi is trying to
get to.
• In other words, as well as a current state description, the agent needs
some sort of goal information that describes situations that are
desirable.
37Intelligent Agents |Amar Jukuntla
Continue…
• The agent program can combine this with the model to choose
actions that achieve the goal.
• The knowledge that supports its decisions is represented explicitly and
can be modified, which makes these agents more flexible.
• They usually require search and planning. The goal based agent’s
behavior can easily be changed.
38Intelligent Agents |Amar Jukuntla
39Intelligent Agents |Amar Jukuntla
Utility Based Agents
• Goals alone are not enough to generate high-quality behavior in
most environments.
• For example, many action sequences will get the taxi to its destination
(thereby achieving the goal) but some are quicker, safer,
more reliable, or cheaper than others.
• Goals just provide a crude binary distinction between “happy” and
“unhappy” states.
40Intelligent Agents |Amar Jukuntla
Continue…
• Goals are not enough – need to know value of goal
• Is this a minor accomplishment, or a major one?
• Affects decision making – will take greater risks for more major goals
• Utility: numerical measurement of importance of a goal
• A utility-based agent will attempt to make the appropriate tradeoff
• 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.
41Intelligent Agents |Amar Jukuntla
42Intelligent Agents |Amar Jukuntla
Learning Agent
• Learning allows an agent to operate in initially unknown
environments.
• Learning is required for true autonomy.
• A learning agent can be divided into four conceptual components.
• The most important distinction is between the learning element,
which is responsible for making improvements, and the
performance element, which is responsible for selecting
external actions.
• The learning element modifies the performance element. 43Intelligent Agents |Amar Jukuntla
44Intelligent Agents |Amar Jukuntla
Continue…
• The performance element is considered to be the entire agent: it takes
in percepts and decides on actions.
• The learning element uses feedback from the critic on how the
agent is doing and determines, how the performance element
should be modified to do better in the future.
• Problem generator is responsible for suggesting actions that will
lead to new and informative experiences.
45Intelligent Agents |Amar Jukuntla
SCENARIO Taxi
• The taxi goes out on the road and drives, using this performance
element. The critic observes the world and passes information
along to the learning element.
• For example, after the taxi makes a quick left turn across three lanes of
traffic, the critic observes the shocking language used by other drivers.
• From this experience, the learning element is able to formulate a
rule saying this was a bad action, and the performance element
is modified by installation of the new rule.
46Intelligent Agents |Amar Jukuntla
Continue..
• The problem generator might identify certain areas of
behavior in need of improvement and suggest
experiments, such as trying out the brakes on different road
surfaces under different conditions.
47Intelligent Agents |Amar Jukuntla
References
• Stuart Russell and Peter Norvig, “Artificial Intelligence”, 2nd edition,
Pearson Education, 2003.
• NPTEL
• Google
48Intelligent Agents |Amar Jukuntla

More Related Content

What's hot

Agents in Artificial intelligence
Agents in Artificial intelligence Agents in Artificial intelligence
Agents in Artificial intelligence Lalit Birla
 
Solving problems by searching
Solving problems by searchingSolving problems by searching
Solving problems by searchingLuigi Ceccaroni
 
Artificial Intelligence -- Search Algorithms
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms Syed Ahmed
 
Artificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agentsArtificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agentsEhsan Nowrouzi
 
Goal based and utility based agents
Goal based and utility based agentsGoal based and utility based agents
Goal based and utility based agentsMegha Sharma
 
2-Agents- Artificial Intelligence
2-Agents- Artificial Intelligence2-Agents- Artificial Intelligence
2-Agents- Artificial IntelligenceMhd Sb
 
Ai 03 solving_problems_by_searching
Ai 03 solving_problems_by_searchingAi 03 solving_problems_by_searching
Ai 03 solving_problems_by_searchingMohammed Romi
 
Structure of agents
Structure of agentsStructure of agents
Structure of agentsMANJULA_AP
 
Artificial intelligence- Logic Agents
Artificial intelligence- Logic AgentsArtificial intelligence- Logic Agents
Artificial intelligence- Logic AgentsNuruzzaman Milon
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesDr. C.V. Suresh Babu
 
Introduction to agents and multi-agent systems
Introduction to agents and multi-agent systemsIntroduction to agents and multi-agent systems
Introduction to agents and multi-agent systemsAntonio Moreno
 
Reinforcement Learning
Reinforcement LearningReinforcement Learning
Reinforcement LearningSalem-Kabbani
 
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1Garry D. Lasaga
 
Reinforcement learning 7313
Reinforcement learning 7313Reinforcement learning 7313
Reinforcement learning 7313Slideshare
 
Artificial intelligence agents and environment
Artificial intelligence agents and environmentArtificial intelligence agents and environment
Artificial intelligence agents and environmentMinakshi Atre
 

What's hot (20)

Agents in Artificial intelligence
Agents in Artificial intelligence Agents in Artificial intelligence
Agents in Artificial intelligence
 
Classical Planning
Classical PlanningClassical Planning
Classical Planning
 
Solving problems by searching
Solving problems by searchingSolving problems by searching
Solving problems by searching
 
Artificial Intelligence -- Search Algorithms
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms
 
Artificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agentsArtificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agents
 
Goal based and utility based agents
Goal based and utility based agentsGoal based and utility based agents
Goal based and utility based agents
 
2-Agents- Artificial Intelligence
2-Agents- Artificial Intelligence2-Agents- Artificial Intelligence
2-Agents- Artificial Intelligence
 
Ai 03 solving_problems_by_searching
Ai 03 solving_problems_by_searchingAi 03 solving_problems_by_searching
Ai 03 solving_problems_by_searching
 
Structure of agents
Structure of agentsStructure of agents
Structure of agents
 
Agents_AI.ppt
Agents_AI.pptAgents_AI.ppt
Agents_AI.ppt
 
Artificial intelligence- Logic Agents
Artificial intelligence- Logic AgentsArtificial intelligence- Logic Agents
Artificial intelligence- Logic Agents
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching Techniques
 
Planning
PlanningPlanning
Planning
 
Introduction to agents and multi-agent systems
Introduction to agents and multi-agent systemsIntroduction to agents and multi-agent systems
Introduction to agents and multi-agent systems
 
Unit2: Agents and Environment
Unit2: Agents and EnvironmentUnit2: Agents and Environment
Unit2: Agents and Environment
 
Reinforcement Learning
Reinforcement LearningReinforcement Learning
Reinforcement Learning
 
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
 
Reinforcement learning 7313
Reinforcement learning 7313Reinforcement learning 7313
Reinforcement learning 7313
 
Artificial intelligence agents and environment
Artificial intelligence agents and environmentArtificial intelligence agents and environment
Artificial intelligence agents and environment
 
AI Lecture 4 (informed search and exploration)
AI Lecture 4 (informed search and exploration)AI Lecture 4 (informed search and exploration)
AI Lecture 4 (informed search and exploration)
 

Similar to Intelligent Agents

Lecture 1 about the Agents in AI & .pptx
Lecture 1 about the Agents in AI & .pptxLecture 1 about the Agents in AI & .pptx
Lecture 1 about the Agents in AI & .pptxbk996051
 
INTELLIGENT AGENTS.pptx
INTELLIGENT AGENTS.pptxINTELLIGENT AGENTS.pptx
INTELLIGENT AGENTS.pptxvipulkondekar
 
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
 
Intelligent (Knowledge Based) agent in Artificial Intelligence
Intelligent (Knowledge Based) agent in Artificial IntelligenceIntelligent (Knowledge Based) agent in Artificial Intelligence
Intelligent (Knowledge Based) agent in Artificial IntelligenceKuppusamy P
 
W2_Lec03_Lec04_Agents.pptx
W2_Lec03_Lec04_Agents.pptxW2_Lec03_Lec04_Agents.pptx
W2_Lec03_Lec04_Agents.pptxJavaid Iqbal
 
2.IntelligentAgents.ppt
2.IntelligentAgents.ppt2.IntelligentAgents.ppt
2.IntelligentAgents.pptGopiSuresh8
 
CS Artificial intelligence chapter 2.pptx
CS Artificial intelligence chapter 2.pptxCS Artificial intelligence chapter 2.pptx
CS Artificial intelligence chapter 2.pptxethiouniverse
 
mosfet3inteliggent ageent preserve2ss.ppt
mosfet3inteliggent ageent preserve2ss.pptmosfet3inteliggent ageent preserve2ss.ppt
mosfet3inteliggent ageent preserve2ss.pptdanymorales34
 

Similar to Intelligent Agents (20)

Lecture 2 Agents.pptx
Lecture 2 Agents.pptxLecture 2 Agents.pptx
Lecture 2 Agents.pptx
 
AI week 2.pdf
AI week 2.pdfAI week 2.pdf
AI week 2.pdf
 
m2-agents.pptx
m2-agents.pptxm2-agents.pptx
m2-agents.pptx
 
Lecture 1 about the Agents in AI & .pptx
Lecture 1 about the Agents in AI & .pptxLecture 1 about the Agents in AI & .pptx
Lecture 1 about the Agents in AI & .pptx
 
INTELLIGENT AGENTS.pptx
INTELLIGENT AGENTS.pptxINTELLIGENT AGENTS.pptx
INTELLIGENT AGENTS.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
 
Intelligent (Knowledge Based) agent in Artificial Intelligence
Intelligent (Knowledge Based) agent in Artificial IntelligenceIntelligent (Knowledge Based) agent in Artificial Intelligence
Intelligent (Knowledge Based) agent in Artificial Intelligence
 
W2_Lec03_Lec04_Agents.pptx
W2_Lec03_Lec04_Agents.pptxW2_Lec03_Lec04_Agents.pptx
W2_Lec03_Lec04_Agents.pptx
 
Unit-1.pptx
Unit-1.pptxUnit-1.pptx
Unit-1.pptx
 
AI Basic.pptx
AI Basic.pptxAI Basic.pptx
AI Basic.pptx
 
M2 agents
M2 agentsM2 agents
M2 agents
 
2.IntelligentAgents.ppt
2.IntelligentAgents.ppt2.IntelligentAgents.ppt
2.IntelligentAgents.ppt
 
Agents1
Agents1Agents1
Agents1
 
Lec 2 agents
Lec 2 agentsLec 2 agents
Lec 2 agents
 
agents.pdf
agents.pdfagents.pdf
agents.pdf
 
Unit 1.ppt
Unit 1.pptUnit 1.ppt
Unit 1.ppt
 
CS Artificial intelligence chapter 2.pptx
CS Artificial intelligence chapter 2.pptxCS Artificial intelligence chapter 2.pptx
CS Artificial intelligence chapter 2.pptx
 
mosfet3inteliggent ageent preserve2ss.ppt
mosfet3inteliggent ageent preserve2ss.pptmosfet3inteliggent ageent preserve2ss.ppt
mosfet3inteliggent ageent preserve2ss.ppt
 
M2 agents
M2 agentsM2 agents
M2 agents
 
Lecture 02-agents
Lecture 02-agentsLecture 02-agents
Lecture 02-agents
 

More from Amar Jukuntla (18)

Singly linked list
Singly linked listSingly linked list
Singly linked list
 
Types of files
Types of filesTypes of files
Types of files
 
Hashing
HashingHashing
Hashing
 
Planning
Planning Planning
Planning
 
Unit 2
Unit 2Unit 2
Unit 2
 
Problem Solving
Problem Solving Problem Solving
Problem Solving
 
Introduction
IntroductionIntroduction
Introduction
 
DFS
DFSDFS
DFS
 
Sorting
SortingSorting
Sorting
 
Sorting
SortingSorting
Sorting
 
Nature of open source
Nature of open sourceNature of open source
Nature of open source
 
Linux Directory System: Introduction
Linux Directory System: IntroductionLinux Directory System: Introduction
Linux Directory System: Introduction
 
Introduction to Data Structures
Introduction to Data StructuresIntroduction to Data Structures
Introduction to Data Structures
 
Learning
LearningLearning
Learning
 
First Order Logic resolution
First Order Logic resolutionFirst Order Logic resolution
First Order Logic resolution
 
First Order Logic
First Order LogicFirst Order Logic
First Order Logic
 
A*
A*A*
A*
 
Need of object oriented programming
Need of object oriented programmingNeed of object oriented programming
Need of object oriented programming
 

Recently uploaded

Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 

Recently uploaded (20)

Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 

Intelligent Agents

  • 1. Intelligent Agents Amar Jukuntla, Assistant Professor, CSE VFSTR Deemed To be University
  • 2. Objectives • Define an Agent • Define an Intelligent Agent • Define a Rational Agent • Explain different types of environments • Explain different Agent Architectures 2Intelligent Agents |Amar Jukuntla
  • 3. Index • Introduction to Agent • Agent and Environment • Sensors and effectors • Autonomy in Agents • Rationality • Nature of Environment • The structure of Agents • Intelligent Agent types • Table Driven Agent • Simple Reflex Agents • Model Based reflex Agents • Goal Based Agents • Utility Based Agents • Learning Agents • Scenario • References 3Intelligent Agents |Amar Jukuntla
  • 4. Introduction to Agent • An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators • Operates in an environment • Perceive its environment through sensors • Acts upon its environment through actuators/ effectors • Has Goals 4Intelligent Agents |Amar Jukuntla
  • 5. Agents and environment • An agent “perceives its environment through sensors and acts upon that environment through actuators.” • An agent's choice of action can depend on the entire history of percepts observed previously, but not on anything it has not perceived. • Agents include Humans, Robotic and Software 5Intelligent Agents |Amar Jukuntla
  • 6. Continue… • An agent can be seen as a mapping between percept sequences and actions. Agent : Percept ∗  Action ∗ • The less an agents relies on its built-in knowledge, as opposed to the current percept sequence, the more autonomous it is. • The agent program runs on the physical architecture to produce function agent = architecture + program • A rational agent is an agent whose acts try to maximize some performance measure. 6Intelligent Agents |Amar Jukuntla
  • 7. • An agent perceives its environment through sensors The complete set of inputs at a given time is called a percept The current percept or Sequence of percepts can influence the action of an agent • It can change the environment through actuators/ effectors  An operation involving an actuator is called an action  Action can be grouped into action sequences SENSOR AND EFFECTORS 7Intelligent Agents |Amar Jukuntla
  • 8. Agent types •Human Agent • Perception: Eyes, Ears, Nose, etc.. • Actuators: Hands, Legs •Robotic Agents • Perception: Sensors • Actuators: Motors •Software Agents • Perceptions: Keystrokes, i/p • Actuators : Output (display) 8Intelligent Agents |Amar Jukuntla
  • 9. EXAMPLES OF AGENTS Humans Programs Robots senses keyboard, mouse,dataset cameras, pads body parts monitor, speakers, files motors,limbs 9 INTELLIGENT AGENTS |AMAR JUKUNTLA
  • 10. Example: Vacuum-Cleaner • Percepts: location and contents, e.g., [A,Dirty] • Actions: Left, Right, Suck, NoOp 10Intelligent Agents |Amar Jukuntla
  • 12. Autonomy in Agents The autonomy of an agent is the extent to which its behaviour is determined by its own experience (with ability to learn and adapt) • Extremes – No autonomy – ignores environment/data – Complete autonomy – must act randomly/no program • Example: baby learning to crawl • Ideal: design agents to have some autonomy – Possibly good to become more autonomous in time 12Intelligent Agents |Amar Jukuntla
  • 13. Autonomy in Agents • The autonomyof an agent is the extent to which its behavior is determined by its own experience (with ability to learn and adapt). • Extremes – No autonomy – ignores environment/data – Complete autonomy – must act randomly/no program • Example: baby learning to crawl • Ideal: design agents to have some autonomy – Possibly good to become more autonomous in time 13Intelligent Agents |Amar Jukuntla
  • 14. Rationality • A rational agent is one that does the right thing. • Every entry in the table is filled out correctly. • What is the right thing? • Approximation: the most successful agent • Measure of success? • Performance measure should be objective • E.g. the amount of dirt cleaned within a certain time. • E.g. how clean the floor is. • Performance measure according to what is wanted in the environment instead of how the agents should behave.14Intelligent Agents |Amar Jukuntla
  • 15. Continue… • What is rational at any given time depends on four things: – The performance measure that defines the criterion of success. – The agent's prior knowledge of the environment. – The actions that the agent can perform. – The agent's percept sequence to date. 15Intelligent Agents |Amar Jukuntla
  • 16. Continue… • But, which action to choose? A rational agent is one that does the "right thing", which depends on the performance measure. • The performance measure should be designed to reflect what one actually wants in the environment, rather than how one suspects the agent should behave. Define it in terms of effects of actions on the environment, rather than in terms of the agent's program. • Rational behavior is not perfect, because an agent cannot know everything about the environment, including past, present, and future. We focus on maximizing expected performance, given what we know about probabilities of things happening in the environment. 16Intelligent Agents |Amar Jukuntla
  • 17. Nature of Environments • Specify the task environment (PEAS): • P: performance measure • E: environment • A: agent's actuators • S: agent's sensors • Must first specify the setting for intelligent agent design • Consider, e.g., the task of designing an automated taxi driver: –PEAS 17Intelligent Agents |Amar Jukuntla
  • 18. Continue… • The task of designing an automated taxi driver: – Performance measure: Safe, fast, legal, comfortable trip, maximize profits – Environment: Roads, other traffic, pedestrians, customers – Actuators: Steering wheel, accelerator, brake, signal, horn – Sensors: Cameras, sonar, speedometer, GPS, odometer, engine sensors, keyboard 18Intelligent Agents |Amar Jukuntla
  • 19. Examples of Agents 19Intelligent Agents |Amar Jukuntla
  • 20. Environments – Accessible vs. inaccessible • An accessible environment is one in which the agent can obtain complete, accurate, up-to-date information about the environment’s state • Most moderately complex environments (for example, the everyday physical world and the Internet) are inaccessible • The more accessible an environment is, the simpler it is to build agents to operate in it 20Intelligent Agents |Amar Jukuntla
  • 21. Environments – Deterministic vs. non-deterministic • A deterministic environment is one in which the next state of the environment is completely determined by the current state and the action executed by the agent. • The physical world can to all intents and purposes be regarded as non- deterministic • Non-deterministic environments present greater problems for the agent designer 21Intelligent Agents |Amar Jukuntla
  • 22. Environments – Episodic vs. non-episodic • In an episodic environment, the performance of an agent is dependent on a number of discrete episodes, with no link between the performance of an agent in different scenarios • Episodic environments are simpler from the agent developer’s perspective because the agent can decide what action to perform based only on the current episode — it need not reason about the interactions between this and future episodes 22Intelligent Agents |Amar Jukuntla
  • 23. Environments– Static vs. dynamic • A static environment is unchanged while an agent is reflecting. • A dynamic environment is one that has other processes operating on it, and which hence changes in ways beyond the agent’s control • Other processes can interfere with the agent’s actions (as in concurrent systems theory) • The physical world is a highly dynamic environment 23Intelligent Agents |Amar Jukuntla
  • 24. Environments – Discrete vs. continuous • An environment is discrete if there are a fixed, finite number of actions and percepts in it – Ex: chess game • Continuous environments have a certain level of mismatch with computer systems – Ex: taxi driving • Discrete environments could in principle be handled by a kind of “lookup table” 24Intelligent Agents |Amar Jukuntla
  • 25. THE STRUCTURE OF AGENTS • The job of AI is to design an agent program that implements the agent function, the mapping from percepts to actions. • We assume this program will run on some sort of computing device with physical sensors and actuators—we call this the architecture: agent = architecture + program • In general, the architecture makes the percepts from the sensors available to the program, runs the program, and feeds the program’s action choices to the actuators as they are generated. 25Intelligent Agents |Amar Jukuntla
  • 26. Intelligent Agents • Must sense • Must act • Must autonomous (to some extend) • Must rational 26Intelligent Agents |Amar Jukuntla
  • 27. Agent types • Agents are divided into 5 types • Table Driven agents • Simple reflex agent • Model based agent • Goal based agent • Utility based agent 27Intelligent Agents |Amar Jukuntla
  • 28. Table driven agent • Agents have same skeleton: accepting percepts from an environment and generating actions. Each uses some internal data structures that are updated as new percepts arrive. • These data structures are operated on by the agent's decision-making procedures to generate an action choice, which is then passed to the architecture to be executed. • Table driven agents use a lookup table to associate perceptions from the environment with possible actions. 28Intelligent Agents |Amar Jukuntla
  • 29. Continue… • There are several drawbacks in this technique: • Need to keep in memory entire percept sequence • Long time to build the table • Agent has no autonomy • Other alternatives to map percepts to actions are: • Simple Reflex agents • Agents that keep track of world • Goal-based agents • Utility-based agents 29Intelligent Agents |Amar Jukuntla
  • 31. Simple Reflex Agents • Simple reflex agents ignore the rest of the percept history and act only on the basis of the current percept. • Percept history is the history of all that an agent has perceived till date. The agent function is based on the condition-action rule. • A condition-action rule is a rule that maps a state i.e, condition to an action. If the condition is true, then the action is taken, else not. • This agent function only succeeds when the environment is fully observable. For simple reflex agents operating in partially observable environments, infinite loops are often unavoidable. 31Intelligent Agents |Amar Jukuntla
  • 32. Continue… • It may be possible to escape from infinite loops if the agent can randomize its actions. Problems with Simple reflex agents are : • Very limited intelligence. • No knowledge of non-perceptual parts of state. • Usually too big to generate and store. • If there occurs any change in the environment, then the collection of rules need to be updated. 32Intelligent Agents |Amar Jukuntla
  • 34. Model Based reflex Agents • The most effective way to handle partial observability is for the agent to keep track of the part of the world it can’t see now. • Agent should maintain some sort of internal state that depends on the percept history and thereby reflects at least some of the unobserved aspects of the current state. • The agent has to keep track of internal state which is adjusted by each percept and that depends on the percept history. 34Intelligent Agents |Amar Jukuntla
  • 35. Continue… • The current state is stored inside the agent which maintains some kind of structure describing the part of the world which cannot be seen. • Updating the state requires the information about • How the world evolves independently from the agent • How the agent’s own actions affect the world • This knowledge about “how the world works”—whether implemented in simple Boolean circuits or in complete scientific theories—is called a model of the world. 35Intelligent Agents |Amar Jukuntla
  • 37. Goal Based Agents •Knowing something about the current state of the environment is not always enough to decide what to do. • For example, at a road junction, the taxi can turn left, turn right, or go straight on. The correct decision depends on where the taxi is trying to get to. • In other words, as well as a current state description, the agent needs some sort of goal information that describes situations that are desirable. 37Intelligent Agents |Amar Jukuntla
  • 38. Continue… • The agent program can combine this with the model to choose actions that achieve the goal. • The knowledge that supports its decisions is represented explicitly and can be modified, which makes these agents more flexible. • They usually require search and planning. The goal based agent’s behavior can easily be changed. 38Intelligent Agents |Amar Jukuntla
  • 40. Utility Based Agents • Goals alone are not enough to generate high-quality behavior in most environments. • For example, many action sequences will get the taxi to its destination (thereby achieving the goal) but some are quicker, safer, more reliable, or cheaper than others. • Goals just provide a crude binary distinction between “happy” and “unhappy” states. 40Intelligent Agents |Amar Jukuntla
  • 41. Continue… • Goals are not enough – need to know value of goal • Is this a minor accomplishment, or a major one? • Affects decision making – will take greater risks for more major goals • Utility: numerical measurement of importance of a goal • A utility-based agent will attempt to make the appropriate tradeoff • 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. 41Intelligent Agents |Amar Jukuntla
  • 43. Learning Agent • Learning allows an agent to operate in initially unknown environments. • Learning is required for true autonomy. • A learning agent can be divided into four conceptual components. • The most important distinction is between the learning element, which is responsible for making improvements, and the performance element, which is responsible for selecting external actions. • The learning element modifies the performance element. 43Intelligent Agents |Amar Jukuntla
  • 45. Continue… • The performance element is considered to be the entire agent: it takes in percepts and decides on actions. • The learning element uses feedback from the critic on how the agent is doing and determines, how the performance element should be modified to do better in the future. • Problem generator is responsible for suggesting actions that will lead to new and informative experiences. 45Intelligent Agents |Amar Jukuntla
  • 46. SCENARIO Taxi • The taxi goes out on the road and drives, using this performance element. The critic observes the world and passes information along to the learning element. • For example, after the taxi makes a quick left turn across three lanes of traffic, the critic observes the shocking language used by other drivers. • From this experience, the learning element is able to formulate a rule saying this was a bad action, and the performance element is modified by installation of the new rule. 46Intelligent Agents |Amar Jukuntla
  • 47. Continue.. • The problem generator might identify certain areas of behavior in need of improvement and suggest experiments, such as trying out the brakes on different road surfaces under different conditions. 47Intelligent Agents |Amar Jukuntla
  • 48. References • Stuart Russell and Peter Norvig, “Artificial Intelligence”, 2nd edition, Pearson Education, 2003. • NPTEL • Google 48Intelligent Agents |Amar Jukuntla