SlideShare a Scribd company logo
1 of 41
Chapter 2: Intelligent Agents
Intelligent Agents (IA) - Concept
IA Types
Environment types
IA Behaviour
IA Structure
1
Mission
 To design/create computer programs that
have some intelligence, can do some
intelligent tasks or can do tasks that require
some intelligence.
2
What is an (Intelligent) Agent?
 An over-used, over-loaded, and misused term.
 Anything that can be viewed as perceiving its environment
through sensors and acting upon that environment through
its effectors to maximize progress towards its goals.
 PAGE (Percepts, Actions, Goals, Environment)
 Task-specific & specialized: well-defined goals and environment
 Human agent: eyes, ears, and other organs for sensors; hands,
legs, mouth, and other body parts for actuators
 Robotic agent: cameras and infrared rangefinders for sensors;
3
Intelligent Agents
 Agents interact with environments through
sensors and effectors
4
Intelligent Agents and Artificial
Intelligence
 Human mind as network of thousands or millions of agents all
working in parallel. To produce real artificial intelligence, this
school holds, we should build computer systems that also
contain many agents and systems for arbitrating among the
agents' competing results.
 Distributed decision-making
and control
 Challenges:
 Action selection: What next action
to choose
 Conflict resolution
sensors
effectors
Agency
5
Agent Research Areas
We can split agent research into two main strands:
 Distributed Artificial Intelligence (DAI) –
Multi-Agent Systems (MAS) (1980 – 1990)
 Much broader notion of "agent" (1990’s – present)
 interface, reactive, mobile, information
6
A Windscreen Agent
How do we design a agent that can wipe the windscreens when
needed?
 Goals?
 Percepts ?
 Sensors?
 Effectors ?
 Actions ?
 Environment ?
7
A Windshield Wiper Agent
(Cont’d)
 Goals: To keep windscreens clean and maintain
good visibility
 Percepts: Raining, Dirty, Clear
 Sensors: Camera (moist sensor)
 Effectors: Wipers (left, right, back)
 Actions: Off, Slow, Medium, Fast
 Environment: Nairobi city, pot-holed roads, highways,
etc
8
Interacting Agents
Collision Avoidance Agent (CAA)
 Goals: Avoid running into obstacles
 Percepts ?
 Sensors?
 Effectors ?
 Actions ?
 Environment: Highway
Lane Keeping Agent (LKA)
• Goals: Stay in current lane
• Percepts ?
• Sensors?
• Effectors ?
• Actions ?
• Environment: Freeway
9
Interacting Agents
Collision Avoidance Agent (CAA)
 Goals: Avoid running into obstacles
 Percepts: Obstacle distance, velocity, trajectory
 Sensors: Vision, proximity sensing
 Effectors: Steering Wheel, Accelerator, Brakes, Horn, Headlights
 Actions: Steer, speed up, brake, blow horn, signal (headlights)
 Environment: Highway
Lane Keeping Agent (LKA)
• Goals: Stay in current lane
• Percepts: Lane center, lane boundaries
• Sensors: Vision
• Effectors: Steering Wheel, Accelerator, Brakes
• Actions: Steer, speed up, brake
• Environment: Freeway
10
The Right Thing = The
Rational Action
 Rational Action: The action that maximizes the
expected value of the performance measure given the
percept sequence to date
 Rational = Best Yes, to the best of its knowledge
 Rational = Optimal Yes, to the best of its abilities
(including its constraints)
 Rational # omniscience
11
Rationality
 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 env.
 The actions the agent can perform
 The agent’s percept sequence to date.
12
Rational agents
 An agent should strive to "do the right thing“,
based on what it can perceive and the actions it
can perform. The right action is the one that will
cause the agent to be most successful
 Performance measure: An objective criterion for
success of an agent's behavior
 E.g., performance measure of a vacuum-cleaner
agent could be amount of dirt cleaned up, amount
of time taken, amount of electricity consumed,
amount of noise generated, etc.
13
Rational agents
 Rational Agent: For each possible percept sequence, a
rational agent should select an action that is expected to
maximize its performance measure, given the evidence
provided by the percept sequence and whatever built-in
knowledge the agent has.
 Rationality is distinct from omniscience (all-knowing with
infinite knowledge)
 Agents can perform actions in order to modify future
percepts so as to obtain useful information (information
gathering, exploration)
 An agent is autonomous if its behavior is determined by
its own experience (with ability to learn and adapt)
14
Behavior and performance of
IAs
 Perception (sequence) to Action Mapping: f : P*  A
 Ideal mapping: specifies which actions an agent ought
to take at any point in time
 Description: Look-Up-Table,..
 Performance measure: a subjective measure to
characterize how successful an agent is (e.g., speed, power
usage, accuracy, money, etc.)
 (degree of) Autonomy: to what extent is the agent able to
make decisions and actions on its own?
15
How is an Agent different
from other software?
 Agents are autonomous, that is they act on behalf of the user
 Agents contain some level of intelligence, from fixed rules to
learning engines that allow them to adapt to changes in the
environment
 Agents don't only act reactively, but sometimes also
proactively
 Agents have social ability, that is they communicate with the
user, the system, and other agents as required
 Agents may also cooperate with other agents to carry out more
complex tasks than they themselves can handle
 Agents may migrate from one system to another to access
remote resources or even to meet other agents
16
Specifying the task environment
 The acronym PEAS can be used, which
means:
 Performance measure
 Environment
 Actuators
 Sensors
17
PEAS
 Must first specify the setting for intelligent agent design
 Consider, e.g., 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
18
Agent: Medical diagnosis system
 Performance measure: Healthy patient,
minimize costs, lawsuits
 Environment: Patient, hospital, staff
 Actuators: Screen display (questions, tests,
diagnoses, treatments, referrals)
 Sensors: Keyboard (entry of symptoms,
findings, patient's answers)
19
Agent: Part-picking robot
 Performance measure: Percentage of parts in
correct bins
 Environment: Conveyor belt with parts, bins
 Actuators: Jointed arm and hand
 Sensors: Camera, joint angle sensors
20
Agent: Interactive English tutor
 Performance measure: Maximize student's
score on test
 Environment: Set of students
 Actuators: Screen display (exercises,
suggestions, corrections)
 Sensors: Keyboard
21
Environment Types
 Characteristics
 Accessible vs. inaccessible
 An environment is accessible if the sensors detect all aspects that are
relevant to the choice of action.
 Deterministic vs. non-deterministic
 If the next state of the environment is completely determined by the
current state and the actions selected by the agents, then we say the
environment is deterministic.
 Episodic vs. non-episodic
 In an episodic environment, the agent’s experience is divided into
“episodes.” Each episode consists of the agent perceiving and then
acting.
 Static vs. dynamic
 If the environment can change while an agent is deliberating, then we
say the environment is dynamic for that agent; otherwise it is static.
22
Environment Types
 Characteristics
 Discrete vs. continuous
 If there are a limited number of distinct, clearly defined
percepts and actions we say that the environment is discrete.
 Hostile vs. friendly
 This depends on the agent perception.
 Single agent (vs. multiagent): An agent operating by itself
in an environment.
23
Environment Types
24
Structure of Intelligent Agents
 Agent = architecture + program
 Agent program: the implementation of f : P*  A, the
agent’s perception-action mapping
function: Skeleton-Agent(Percept) returns Action
memory  UpdateMemory(memory, Percept)
Action  ChooseBestAction(memory)
memory  UpdateMemory(memory, Action)
return Action
 Architecture: a device that can execute the agent program
(e.g., general-purpose computer, specialized device, specialized,
hardware/software, beobot, etc.)
25
Agent types
 Four basic types in order of increasing generality:
 Table Driven agents
 Simple reflex agents
 Model-based reflex agents
 Goal-based agents
 Utility-based agents
 Other Agents:
 Learning Agents
 Mobile Agents
 Information Agents
26
function TABLE-DRIVEN-AGENT (percept) returns action
static: percepts, a sequence, initially empty
table, a table, indexed by percept sequences, initially fully specified
append percept to the end of percepts
action  LOOKUP(percepts, table)
return action
An agent based on a prespecified lookup table. It keeps track of percept
sequence and just looks up the best action
Table-driven agent
• Problems
– Huge number of possible percepts (consider an automated taxi
with a camera as the sensor) => lookup table would be huge
– Takes long time to build the table
– Not adaptive to changes in the environment; requires entire
table to be updated if changes occur
27
Simple reflex agents
28
function SIMPLE-REFLEX-AGENT(percept) returns action
static: rules, a set of condition-action rules
state  INTERPRET-INPUT (percept)
rule  RULE-MATCH (state,rules)
action  RULE-ACTION [rule]
return action
A simple reflex agent works by finding a rule whose condition
matches the current situation (as defined by the percept) and
then doing the action associated with that rule.
First match.
No further matches sought.
Only one level of deduction.
Simple reflex agents
• Differs from the lookup table based agent is that the
condition (that determines the action) is
already higher-level interpretation of the
percepts
– Percepts could be e.g. the pixels on the camera of the automated taxi
29
Model-based reflex agents (Reflex
agents w/ state)
30
Reflex agent with internal state
…
function REFLEX-AGENT-WITH-STATE (percept) returns action
static: state, a description of the current world state
rules, a set of condition-action rules
state  UPDATE-STATE (state, percept)
rule  RULE-MATCH (state, rules)
action  RULE-ACTION [rule]
state  UPDATE-STATE (state, action)
return action
A reflex agent with internal state works by finding a rule
whose condition matches the current situation (as defined by
the percept and the stored internal state) and then doing
the action associated with that rule.
31
Goal-based agents
32
Agent with explicit goals …
• Choose actions so as to achieve a (given or computed) goal = a
description of desirable situations. e.g. where the taxi wants to go
• Keeping track of the current state is often not enough – need
to add goals to decide which situations are good
• Deliberative instead of reactive
• May have to consider long sequences of possible actions
before deciding if goal is achieved – involves considerations of
the future, “what will happen if I do…?” (search and planning)
• More flexible than reflex agent. (e.g. rain / new destination) In
the reflex agent, the entire database of rules would have to be
rewritten
33
34
Utility-based agent …
• When there are multiple possible alternatives, how to decide
which one is best?
• A goal specifies a crude destination between a happy and
unhappy state, but often need a more general performance
measure that describes “degree of happiness”
• Utility function U: State  Real Number indicating a
measure of success or happiness when at a given state
• Allows decisions comparing choice between conflicting goals,
and choice between likelihood of success and importance of
goal (if achievement is uncertain)
35
36
Learning Agents
• After an agent is programmed, can it work
immediately?
– No, it still need teaching
• In AI,
– Once an agent is done
– We teach it by giving it a set of examples
– Test it by using another set of examples
• We then say the agent learns
– A learning agent
37
Learning Agents
• Four conceptual components
– Learning element
• Making improvement
– Performance element
• Selecting external actions
– Critic
• Tells the Learning element how well the agent is doing
with respect to fixed performance standard.
(Feedback from user or examples, good or not?)
– Problem generator
• Suggest actions that will lead to new and informative
experiences.
38
Mobile agents
 Programs that can migrate from one machine to another.
 Execute in a platform-independent execution environment.
 Require agent execution environment (places).
 Mobility not necessary or sufficient condition for agenthood.
 Practical but non-functional advantages:
 Reduced communication cost (e.g., from PDA)
 Asynchronous computing (when you are not connected)
 Two types:
 One-hop mobile agents (migrate to one other place)
 Multi-hop mobile agents (roam the network from place to place)
 Applications:
 Distributed information retrieval.
 Telecommunication network routing.
39
Information agents
 Manage the explosive growth of information.
 Manipulate or collate information from many distributed
sources.
 Information agents can be mobile or static.
 Challenge: ontologies for annotating Web pages.
40
Discussion Questions
1. For each of the following, develop a PEAS
description of the task environment:
1. Robot soccer player
2. Internet book-shopping agent
3. Autonomous Mars rover
4. Mathematician’s theorem-proving assistant
2. For the above Agents characterize their
environment.
41

More Related Content

What's hot

Agents in Artificial intelligence
Agents in Artificial intelligence Agents in Artificial intelligence
Agents in Artificial intelligence Lalit Birla
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesDr. C.V. Suresh Babu
 
Adversarial search
Adversarial searchAdversarial search
Adversarial searchNilu Desai
 
Lecture 11 Informed Search
Lecture 11 Informed SearchLecture 11 Informed Search
Lecture 11 Informed SearchHema Kashyap
 
Artificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agentsArtificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agentsEhsan Nowrouzi
 
Problem solving agents
Problem solving agentsProblem solving agents
Problem solving agentsMegha Sharma
 
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdfUNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdfJenishaR1
 
Example of iterative deepening search & bidirectional search
Example of iterative deepening search & bidirectional searchExample of iterative deepening search & bidirectional search
Example of iterative deepening search & bidirectional searchAbhijeet Agarwal
 
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...RahulSharma4566
 
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCEIntelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCEKhushboo Pal
 
AI - Local Search - Hill Climbing
AI - Local Search - Hill ClimbingAI - Local Search - Hill Climbing
AI - Local Search - Hill ClimbingAndrew Ferlitsch
 
Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search StrategiesAmey Kerkar
 

What's hot (20)

Agents in Artificial intelligence
Agents in Artificial intelligence Agents in Artificial intelligence
Agents in Artificial intelligence
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching Techniques
 
Adversarial search
Adversarial searchAdversarial search
Adversarial search
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Ai Slides
Ai SlidesAi Slides
Ai Slides
 
Lecture 11 Informed Search
Lecture 11 Informed SearchLecture 11 Informed Search
Lecture 11 Informed Search
 
AI
AIAI
AI
 
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)
 
Artificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agentsArtificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agents
 
Informed search
Informed searchInformed search
Informed search
 
Adversarial search
Adversarial search Adversarial search
Adversarial search
 
Problem solving agents
Problem solving agentsProblem solving agents
Problem solving agents
 
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdfUNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf
 
A* Algorithm
A* AlgorithmA* Algorithm
A* Algorithm
 
Example of iterative deepening search & bidirectional search
Example of iterative deepening search & bidirectional searchExample of iterative deepening search & bidirectional search
Example of iterative deepening search & bidirectional search
 
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
 
search strategies in artificial intelligence
search strategies in artificial intelligencesearch strategies in artificial intelligence
search strategies in artificial intelligence
 
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCEIntelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
 
AI - Local Search - Hill Climbing
AI - Local Search - Hill ClimbingAI - Local Search - Hill Climbing
AI - Local Search - Hill Climbing
 
Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search Strategies
 

Similar to Chapter 2 intelligent agents

Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsJarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsPalGov
 
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsJarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsPalGov
 
ai-slides-1233566181695672-2 (1).pdf
ai-slides-1233566181695672-2 (1).pdfai-slides-1233566181695672-2 (1).pdf
ai-slides-1233566181695672-2 (1).pdfShivareddyGangam
 
chapter2-(Intelligent Agents).ppt
chapter2-(Intelligent Agents).pptchapter2-(Intelligent Agents).ppt
chapter2-(Intelligent Agents).pptssuser99ca78
 
Robotics and agents
Robotics and agentsRobotics and agents
Robotics and agentsritahani
 
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
 

Similar to Chapter 2 intelligent agents (20)

Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsJarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
 
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsJarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
 
ai-slides-1233566181695672-2 (1).pdf
ai-slides-1233566181695672-2 (1).pdfai-slides-1233566181695672-2 (1).pdf
ai-slides-1233566181695672-2 (1).pdf
 
Slide01 - Intelligent Agents.ppt
Slide01 - Intelligent Agents.pptSlide01 - Intelligent Agents.ppt
Slide01 - Intelligent Agents.ppt
 
LectureNote2.pdf
LectureNote2.pdfLectureNote2.pdf
LectureNote2.pdf
 
chapter2-(Intelligent Agents).ppt
chapter2-(Intelligent Agents).pptchapter2-(Intelligent Agents).ppt
chapter2-(Intelligent Agents).ppt
 
m2-agents.ppt
m2-agents.pptm2-agents.ppt
m2-agents.ppt
 
Unit 1.ppt
Unit 1.pptUnit 1.ppt
Unit 1.ppt
 
chapter2.ppt
chapter2.pptchapter2.ppt
chapter2.ppt
 
chapter2.ppt
chapter2.pptchapter2.ppt
chapter2.ppt
 
Agents_AI.ppt
Agents_AI.pptAgents_AI.ppt
Agents_AI.ppt
 
Lec 2 agents
Lec 2 agentsLec 2 agents
Lec 2 agents
 
Ai u1
Ai u1Ai u1
Ai u1
 
M2 agents
M2 agentsM2 agents
M2 agents
 
Robotics and agents
Robotics and agentsRobotics and agents
Robotics and agents
 
Lec 2-agents
Lec 2-agentsLec 2-agents
Lec 2-agents
 
Unit-1.pptx
Unit-1.pptxUnit-1.pptx
Unit-1.pptx
 
Lecture 02-agents
Lecture 02-agentsLecture 02-agents
Lecture 02-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 & .pptx
 
Lecture1
Lecture1Lecture1
Lecture1
 

Recently uploaded

Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 

Recently uploaded (20)

Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 

Chapter 2 intelligent agents

  • 1. Chapter 2: Intelligent Agents Intelligent Agents (IA) - Concept IA Types Environment types IA Behaviour IA Structure 1
  • 2. Mission  To design/create computer programs that have some intelligence, can do some intelligent tasks or can do tasks that require some intelligence. 2
  • 3. What is an (Intelligent) Agent?  An over-used, over-loaded, and misused term.  Anything that can be viewed as perceiving its environment through sensors and acting upon that environment through its effectors to maximize progress towards its goals.  PAGE (Percepts, Actions, Goals, Environment)  Task-specific & specialized: well-defined goals and environment  Human agent: eyes, ears, and other organs for sensors; hands, legs, mouth, and other body parts for actuators  Robotic agent: cameras and infrared rangefinders for sensors; 3
  • 4. Intelligent Agents  Agents interact with environments through sensors and effectors 4
  • 5. Intelligent Agents and Artificial Intelligence  Human mind as network of thousands or millions of agents all working in parallel. To produce real artificial intelligence, this school holds, we should build computer systems that also contain many agents and systems for arbitrating among the agents' competing results.  Distributed decision-making and control  Challenges:  Action selection: What next action to choose  Conflict resolution sensors effectors Agency 5
  • 6. Agent Research Areas We can split agent research into two main strands:  Distributed Artificial Intelligence (DAI) – Multi-Agent Systems (MAS) (1980 – 1990)  Much broader notion of "agent" (1990’s – present)  interface, reactive, mobile, information 6
  • 7. A Windscreen Agent How do we design a agent that can wipe the windscreens when needed?  Goals?  Percepts ?  Sensors?  Effectors ?  Actions ?  Environment ? 7
  • 8. A Windshield Wiper Agent (Cont’d)  Goals: To keep windscreens clean and maintain good visibility  Percepts: Raining, Dirty, Clear  Sensors: Camera (moist sensor)  Effectors: Wipers (left, right, back)  Actions: Off, Slow, Medium, Fast  Environment: Nairobi city, pot-holed roads, highways, etc 8
  • 9. Interacting Agents Collision Avoidance Agent (CAA)  Goals: Avoid running into obstacles  Percepts ?  Sensors?  Effectors ?  Actions ?  Environment: Highway Lane Keeping Agent (LKA) • Goals: Stay in current lane • Percepts ? • Sensors? • Effectors ? • Actions ? • Environment: Freeway 9
  • 10. Interacting Agents Collision Avoidance Agent (CAA)  Goals: Avoid running into obstacles  Percepts: Obstacle distance, velocity, trajectory  Sensors: Vision, proximity sensing  Effectors: Steering Wheel, Accelerator, Brakes, Horn, Headlights  Actions: Steer, speed up, brake, blow horn, signal (headlights)  Environment: Highway Lane Keeping Agent (LKA) • Goals: Stay in current lane • Percepts: Lane center, lane boundaries • Sensors: Vision • Effectors: Steering Wheel, Accelerator, Brakes • Actions: Steer, speed up, brake • Environment: Freeway 10
  • 11. The Right Thing = The Rational Action  Rational Action: The action that maximizes the expected value of the performance measure given the percept sequence to date  Rational = Best Yes, to the best of its knowledge  Rational = Optimal Yes, to the best of its abilities (including its constraints)  Rational # omniscience 11
  • 12. Rationality  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 env.  The actions the agent can perform  The agent’s percept sequence to date. 12
  • 13. Rational agents  An agent should strive to "do the right thing“, based on what it can perceive and the actions it can perform. The right action is the one that will cause the agent to be most successful  Performance measure: An objective criterion for success of an agent's behavior  E.g., performance measure of a vacuum-cleaner agent could be amount of dirt cleaned up, amount of time taken, amount of electricity consumed, amount of noise generated, etc. 13
  • 14. Rational agents  Rational Agent: For each possible percept sequence, a rational agent should select an action that is expected to maximize its performance measure, given the evidence provided by the percept sequence and whatever built-in knowledge the agent has.  Rationality is distinct from omniscience (all-knowing with infinite knowledge)  Agents can perform actions in order to modify future percepts so as to obtain useful information (information gathering, exploration)  An agent is autonomous if its behavior is determined by its own experience (with ability to learn and adapt) 14
  • 15. Behavior and performance of IAs  Perception (sequence) to Action Mapping: f : P*  A  Ideal mapping: specifies which actions an agent ought to take at any point in time  Description: Look-Up-Table,..  Performance measure: a subjective measure to characterize how successful an agent is (e.g., speed, power usage, accuracy, money, etc.)  (degree of) Autonomy: to what extent is the agent able to make decisions and actions on its own? 15
  • 16. How is an Agent different from other software?  Agents are autonomous, that is they act on behalf of the user  Agents contain some level of intelligence, from fixed rules to learning engines that allow them to adapt to changes in the environment  Agents don't only act reactively, but sometimes also proactively  Agents have social ability, that is they communicate with the user, the system, and other agents as required  Agents may also cooperate with other agents to carry out more complex tasks than they themselves can handle  Agents may migrate from one system to another to access remote resources or even to meet other agents 16
  • 17. Specifying the task environment  The acronym PEAS can be used, which means:  Performance measure  Environment  Actuators  Sensors 17
  • 18. PEAS  Must first specify the setting for intelligent agent design  Consider, e.g., 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 18
  • 19. Agent: Medical diagnosis system  Performance measure: Healthy patient, minimize costs, lawsuits  Environment: Patient, hospital, staff  Actuators: Screen display (questions, tests, diagnoses, treatments, referrals)  Sensors: Keyboard (entry of symptoms, findings, patient's answers) 19
  • 20. Agent: Part-picking robot  Performance measure: Percentage of parts in correct bins  Environment: Conveyor belt with parts, bins  Actuators: Jointed arm and hand  Sensors: Camera, joint angle sensors 20
  • 21. Agent: Interactive English tutor  Performance measure: Maximize student's score on test  Environment: Set of students  Actuators: Screen display (exercises, suggestions, corrections)  Sensors: Keyboard 21
  • 22. Environment Types  Characteristics  Accessible vs. inaccessible  An environment is accessible if the sensors detect all aspects that are relevant to the choice of action.  Deterministic vs. non-deterministic  If the next state of the environment is completely determined by the current state and the actions selected by the agents, then we say the environment is deterministic.  Episodic vs. non-episodic  In an episodic environment, the agent’s experience is divided into “episodes.” Each episode consists of the agent perceiving and then acting.  Static vs. dynamic  If the environment can change while an agent is deliberating, then we say the environment is dynamic for that agent; otherwise it is static. 22
  • 23. Environment Types  Characteristics  Discrete vs. continuous  If there are a limited number of distinct, clearly defined percepts and actions we say that the environment is discrete.  Hostile vs. friendly  This depends on the agent perception.  Single agent (vs. multiagent): An agent operating by itself in an environment. 23
  • 25. Structure of Intelligent Agents  Agent = architecture + program  Agent program: the implementation of f : P*  A, the agent’s perception-action mapping function: Skeleton-Agent(Percept) returns Action memory  UpdateMemory(memory, Percept) Action  ChooseBestAction(memory) memory  UpdateMemory(memory, Action) return Action  Architecture: a device that can execute the agent program (e.g., general-purpose computer, specialized device, specialized, hardware/software, beobot, etc.) 25
  • 26. Agent types  Four basic types in order of increasing generality:  Table Driven agents  Simple reflex agents  Model-based reflex agents  Goal-based agents  Utility-based agents  Other Agents:  Learning Agents  Mobile Agents  Information Agents 26
  • 27. function TABLE-DRIVEN-AGENT (percept) returns action static: percepts, a sequence, initially empty table, a table, indexed by percept sequences, initially fully specified append percept to the end of percepts action  LOOKUP(percepts, table) return action An agent based on a prespecified lookup table. It keeps track of percept sequence and just looks up the best action Table-driven agent • Problems – Huge number of possible percepts (consider an automated taxi with a camera as the sensor) => lookup table would be huge – Takes long time to build the table – Not adaptive to changes in the environment; requires entire table to be updated if changes occur 27
  • 29. function SIMPLE-REFLEX-AGENT(percept) returns action static: rules, a set of condition-action rules state  INTERPRET-INPUT (percept) rule  RULE-MATCH (state,rules) action  RULE-ACTION [rule] return action A simple reflex agent works by finding a rule whose condition matches the current situation (as defined by the percept) and then doing the action associated with that rule. First match. No further matches sought. Only one level of deduction. Simple reflex agents • Differs from the lookup table based agent is that the condition (that determines the action) is already higher-level interpretation of the percepts – Percepts could be e.g. the pixels on the camera of the automated taxi 29
  • 30. Model-based reflex agents (Reflex agents w/ state) 30
  • 31. Reflex agent with internal state … function REFLEX-AGENT-WITH-STATE (percept) returns action static: state, a description of the current world state rules, a set of condition-action rules state  UPDATE-STATE (state, percept) rule  RULE-MATCH (state, rules) action  RULE-ACTION [rule] state  UPDATE-STATE (state, action) return action A reflex agent with internal state works by finding a rule whose condition matches the current situation (as defined by the percept and the stored internal state) and then doing the action associated with that rule. 31
  • 33. Agent with explicit goals … • Choose actions so as to achieve a (given or computed) goal = a description of desirable situations. e.g. where the taxi wants to go • Keeping track of the current state is often not enough – need to add goals to decide which situations are good • Deliberative instead of reactive • May have to consider long sequences of possible actions before deciding if goal is achieved – involves considerations of the future, “what will happen if I do…?” (search and planning) • More flexible than reflex agent. (e.g. rain / new destination) In the reflex agent, the entire database of rules would have to be rewritten 33
  • 34. 34
  • 35. Utility-based agent … • When there are multiple possible alternatives, how to decide which one is best? • A goal specifies a crude destination between a happy and unhappy state, but often need a more general performance measure that describes “degree of happiness” • Utility function U: State  Real Number indicating a measure of success or happiness when at a given state • Allows decisions comparing choice between conflicting goals, and choice between likelihood of success and importance of goal (if achievement is uncertain) 35
  • 36. 36
  • 37. Learning Agents • After an agent is programmed, can it work immediately? – No, it still need teaching • In AI, – Once an agent is done – We teach it by giving it a set of examples – Test it by using another set of examples • We then say the agent learns – A learning agent 37
  • 38. Learning Agents • Four conceptual components – Learning element • Making improvement – Performance element • Selecting external actions – Critic • Tells the Learning element how well the agent is doing with respect to fixed performance standard. (Feedback from user or examples, good or not?) – Problem generator • Suggest actions that will lead to new and informative experiences. 38
  • 39. Mobile agents  Programs that can migrate from one machine to another.  Execute in a platform-independent execution environment.  Require agent execution environment (places).  Mobility not necessary or sufficient condition for agenthood.  Practical but non-functional advantages:  Reduced communication cost (e.g., from PDA)  Asynchronous computing (when you are not connected)  Two types:  One-hop mobile agents (migrate to one other place)  Multi-hop mobile agents (roam the network from place to place)  Applications:  Distributed information retrieval.  Telecommunication network routing. 39
  • 40. Information agents  Manage the explosive growth of information.  Manipulate or collate information from many distributed sources.  Information agents can be mobile or static.  Challenge: ontologies for annotating Web pages. 40
  • 41. Discussion Questions 1. For each of the following, develop a PEAS description of the task environment: 1. Robot soccer player 2. Internet book-shopping agent 3. Autonomous Mars rover 4. Mathematician’s theorem-proving assistant 2. For the above Agents characterize their environment. 41

Editor's Notes

  1. Part2:Intelligent Agents