Chapter 2
Chapter 2
Chapter 2
3rd year
Course Title: Introduction to Artificial Intelligence
Course Code: CoSc3081
1
CHAPTER TWO
INTELLIGENT
AGENTS
2
Introduction
An intelligent agent (IA) is an entity that makes a decision or it
enables artificial intelligence to take action.
action
4
behaviors or responses.
Characteristics of intelligent agents
Intelligent agents have the following distinguishing
characteristics:
They have some level of autonomy that allows them to perform
and systems.
5
Cont’d…
New rules can be accommodated by intelligent agents
incrementally.
They exhibit goal-oriented habits.
6
How intelligent agents work
Intelligent agents work through three main components:
sensors, actuators, and effectors.
8
Agents and Environments
What is an Agent?
An agent can be anything that perceive its environment through
which work for sensors and hand, legs, vocal tract work for
actuators.
9
Cont’d
Robotic Agent: A robotic agent can have cameras, infrared
10
Cont’d…
An AI system is composed of an agent and its environment.
11
Rules for AI agent
Following are the main four rules for an AI agent:
environment.
Rule 2: The observation must be used to make decisions.
action.
12
Agent Terminology
Performance Measure of Agent − It is the criteria, which
action.
13
Environment
An environment is everything in the world which surrounds the
agent is present.
The environment is where agent lives, operate and provide the
14
Properties of Environment
The environment has multifold properties such as:
Discrete / Continuous − If there are a limited number of distinct,
the complete state of the environment at each time point from the
percepts it is observable; otherwise it is only partially observable.
15
Cont’d…
Static / Dynamic − If the environment does not change
16
Cont’d
Deterministic / Non-deterministic − If the next state of the
environment is completely determined by the current state and the
actions of the agent, then the environment is deterministic; otherwise it
is non-deterministic.
Episodic / Non-episodic − In an episodic environment, each episode
episodes.
o Episodic environments are much simpler than non -episodic because the
19
Cont’d…
Rationality of an agent depends on the following four
factors
The performance measures, which determine the degree
of success.
Agent’s Percept Sequence till now.
20
Omniscient Agent
An omniscient (perfect) agent knows the actual outcome of its actions
things possible.
Rationality is NOT the same as perfection.
23
PEAS Representation
E: Environment
A: Actuators
S: Sensors
sonar.
25
Example of Agents with their PEAS
representation
26
Types of AI Agents
Agents can be grouped into five classes based on their degree of
Goal-based agents
Utility-based agent
Learning agent
27
Simple Reflex Agent
The Simple reflex agents are the simplest agents.
These agents take decisions on the basis of the current percepts and
ignore the rest of the percept history.
These agents only succeed in the fully observable environment.
The Simple reflex agent works on Condition-action rule, which
means it maps the current state to action. Example: a Room Cleaner
agent, it works only if there is dirt in the room.
Problems for the simple reflex agent design approach
They have very limited intelligence
They do not have knowledge of non-perceptual parts of the
current state
Mostly too big to generate and to store.
Not adaptive to changes in the environment.
28
Cont’d
29
Model-based reflex agent
The Model-based agent can work in a partially observable
environment, and track the situation.
A model-based agent has two important factors:
o Model: It is knowledge about "how things happen in the world,"
so it is called a Model-based agent.
o Internal State: It is a representation of the current state based on
percept history.
These agents have the model, "which is knowledge of the world"
and based on the model they perform actions.
Updating the agent state requires information about:
How the world evolves
How the agent's action affects the world.
30
Cont’d
31
Goal-based agents
The knowledge of the current state environment is not always sufficient to
These agents may have to consider a long sequence of possible actions before
32
33
Utility-based agents
These agents are similar to the goal-based agent but provide an extra
34
35
Learning Agents
A learning agent in AI is the type of agent which can learn from its
past experiences, or it has learning capabilities.
It starts to act with basic knowledge and then able to act and adapt
automatically through learning.
A learning agent has mainly four conceptual components, which are:
Learning element: It is responsible for making improvements by
learning from environment
Critic: Learning element takes feedback from critic which
describes that how well the agent is doing with respect to a fixed
performance standard.
Performance element: It is responsible for selecting external
action
Problem generator: This component is responsible for suggesting
actions that will lead to new and informative experiences.
36
Cont’d
37
Applications of Intelligent Agents
1. Information search, retrieval, and navigation
Intelligent agents enhance access and navigation of information.
This is achieved through the search of information using search
engines.
The internet consists of many data objects that may take users a lot of
time to search for a specific data object.
Intelligent agents perform this task on behalf of users within a short
time.
2. Repetitive office activities
Some companies have automated certain administrative tasks to
reduce operating costs.
Some of the functional areas that have been automated include
customer support and sales.
Intelligent agents have also been used to enhance office productivity .
38
Cont’d
3. Medical diagnosis
Intelligent agents have also been applied in healthcare services to
course of action.
Medical care is given through actuators such as tests and
39 treatments.
Cont’d
4. Autonomous driving
Intelligent agents enhance the operation of self-driving cars.