AI Chapter 2
AI Chapter 2
ARTIFICIAL INTELLIGENCE
Chapter 2
Intelligent
Agents
By: Melkamu D.
Intelligent agents
2
Before moving forward, we should first know about sensors, effectors, and actuators.
Sensor: Sensor is a device which detects the change in the environment and sends the
information to other electronic devices. An agent observes its environment through sensors.
Actuators: Actuators are the component of machines that converts energy into motion. The
actuators are only responsible for moving and controlling a system. An actuator can be an
electric motor, gears, rails, etc.
Effectors: Effectors are the devices which affect the environment. Effectors can be legs,
wheels, arms, fingers, wings, fins, and display screen.
Intelligent agents
5
An intelligent agent: is a system that perceives its environment, learns from it, and
interacts with it intelligently.
Intelligent agents can be divided into two broad categories: software agents and
physical agents.
software agents
A software agent is a set of programs that are designed to do particular tasks.
For example, a software agent is a search engine used to search the World Wide Web
and find sites that can provide information about a requested subject.
Physical agent
6
Intelligence Description
Linguistic intelligence The ability to speak, recognize, Narrators, Orators
and use mechanisms of
phonology (speech sounds),
syntax (grammar), and
semantics (meaning).
Musical intelligence The ability to create, Musicians, Singers, Composers
communicate with, and
understand meanings made of
sound, understanding of pitch,
rhythm.
Logical-mathematical The ability of use and Mathematicians, Scientists
intelligence understand relationships in the
absence of action or objects.
Understanding complex and
abstract idea
Spatial intelligence The ability to perceive visual or Map readers, Astronauts,
spatial information, change it, Physicists
Cont…
9
Intelligence Description
Bodily-Kinesthetic The ability to use complete
intelligence or part of the body to solve
problems or fashion
Players, Dancers
products, control over fine
and coarse motor skills, and
manipulate the objects.
The ability to distinguish
among one’s own feelings,
Intra-personal intelligence Gautam Buddhha
intentions, and motivations.
[f: p* A]
Terminologies
Behavior of Agent − It is the action that agent
performs after any given sequence of percepts.
The agent program runs on the physical architecture to
produce f.
Agent = architecture + program
Acting of Intelligent Agents (Rationality)
13
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.
Con’t…
14
Performance measure
The performance measure that defines degrees of success of the
agent
Environment:- is the surrounding of an agent at every instant. It
keeps changing with time if the agent is set in motion.
Knowledge: What an agent already knows about the environment
Actuators – generating actions
The actions that the agent can perform back to the environment
Sensors – receiving percepts
Perception: Everything that the agent has perceived so far
Example 1: PEAS
17
opponent’s moves
Driving – the environment is partially observable
Properties of Task Environments
Deterministic (vs. stochastic):
When a uniqueness in the agent’s current
state completely determines the next state of
the agent, the environment is said to be
deterministic.
The stochastic environment is random in
nature which is not unique and cannot be
completely determined by the agent.
Example:
Chess – there would be only a few possible
moves for a coin at the current state and
these moves can be determined.
Self Driving Cars – the actions of a self-
driving car are not unique, it varies time to
Properties of Task Environments
Episodic (vs. sequential):
Episodic is an environment where each state is
independent of each other.
The action on a state has nothing to do with the next state.
of the environment.
Properties of Task Environments
Static (vs. dynamic):
If the environment can change itself while an agent is
deliberating then such environment is called a dynamic
environment else it is called a static environment.
Static environments are easy to deal because an
agent does not need to continue looking at the world
while deciding for an action.
However for dynamic environment, agents need to
keep looking at the world at each action.
Taxi driving is an example of a dynamic environment
whereas Crossword puzzles are an example of a static
Properties of Task
Environments
Static (vs. dynamic)………………………
The Static environment is completely unchanged while
an agent is precepting the environment.
Example: Cleaning a room (Environment) by a dry-cleaner
reboot (Agent ) is an example of a static environment
where the room is static while cleaning.
Dynamic Environment could be changed while an agent
is precepting the environment. So agents keep looking at
the environment while taking action.
Example: Playing soccer is a dynamic environment where
players’ positions keep changing throughout the game. So
Properties of Task
Environments
Discrete (vs. continuous):
Discrete Environment consists of a finite number of
states and agents have a finite number of actions.
Example: Choices of a move (action) in a tic-tac game
are finite on a finite number of boxes on the board
(Environment).
While in a Continuous environment, the environment
can have an infinite number of states. So the possibilities
of taking an action are also infinite.
Example: In a basketball game, the position of players
(Environment) keeps changing continuously and hitting
Properties of Task
Environments
Single agent (vs. multiagent):
Single agent environment where an
environment is explored by a single agent. All
actions are performed by a single agent in the
environment.
Example: Playing tennis against the ball is a
single agent environment where there is only one
player.
If two or more agents are taking actions in the
environment, it is known as a multi-agent
Basic “skeleton” agent designs
Agent = Architecture +
Program
The job of AI is to design the agent program that implements the agent
function mapping percepts to actions.
Same skeleton for agent program: it takes the current percept as input from the
sensors and returns an action to the actuators.
Basic “skeleton” agent designs (Cont’d)
Agent Program vs. Agent
Function
Agent program takes the current percept as input
Nothing is available from the environment
(Current
situation)
Example:
31
Rule:
IF it is dark THEN turn-on light
Assume that environment is your room and your room is dark.
Conclusion
Goal-based agents are less efficient. But more flexible, because
the knowledge that supports its decision is represented explicitly
and can be modified.
Search and planning are two other sub-fields in AI to find out the
action sequences to achieve its goal.
37
4. Utility based agents
These agents are similar with the goal-based agent, but provides an extra
component of utility measurement which makes them different by providing a
measure of success at a given state.
Utility based agent act not only goals but also the best way to achieve the goal.
The utility based agent is useful when there are multiple possible alternatives and
an agent has to choose in order to perform the best action.
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.
38
Structure of a utility-based agent
5. Learning Agents
39
These are:
Learning element: its responsible for making improvements by learning from
environment.
Critic: a 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 actions.
Problem generator: is responsible for suggesting actions that will lead to new
and informative experiences.
Cont.
40
Hence, learning agents are able to learn, analyze performance and look for
new ways to improve the performance.
THANK YOU
Q&A
?