Chapter 2 AI
Chapter 2 AI
Computer Science
CHAPTER 2
Intelligent Agents
1. Sensing layer
2. Network layer
3. Data processing layer and
4. Application layers.
Architecture of IoT
Architecture of IoT
(2)
1. Sensing Layer− The main purpose of the sensing layer
is to identify any phenomena in the devices’ peripheral and
obtain data from the real world.
► This layer consists of several sensors.
►Using multiple sensors for applications is one of the primary
features of IoT devices.
►Sensors in IoT devices are usually integrated through
sensor hubs.
►A sensor hub is a common connection point for multiple sensors that
accumulate and forward sensor data to the processing unit of a
device.
Architecture of IoT (3)
• Human agent:
– eyes, ears, and other organs for sensors;
– hands, legs, mouth, and other body parts for actuators
• Robotic agent:
– cameras and infrared range finders for sensors
– various motors for actuators
iRobot Corporation
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
• A more suitable measure would reward the agent for having a clean floor
Rational Agent
• In summary what is rational at any given point depends on four
things.
I. Perception:
Everything that the agent has perceived so far concerning the
current scenario in the environment.
II. Prior Knowledge:
What an agent already knows about the environment
III. Action:
The actions that the agent can perform back to the
environment
IV. Performance measure:
The performance measure degrees of success of the agent.
Designing an intelligent agent, one has to remember
PEAS (Performance, Environment, Actuators, Sensors) framework.
10
Back to Vacuum-Agent
• Percepts:
Location and status,
e.g., [A,Dirty]
• Actions:
Left, Right, Suck, NoOp
Rational agents
• PEAS:
– Performance measure,
– Environment,
– Actuators,
– Sensors
• In designing an agent, the first step must always
be to specify the task environment (PEAS) as fully
as possible
15
• Performance measure
– Safe, fast, legal, comfortable trip, maximize
profits
• Environment
– Roads, other traffic, pedestrians, customers
• Actuators
– Steering wheel, accelerator, brake, signal, horn
• Sensors
– Cameras, LIDAR, speedometer, GPS,
odometer, engine sensors, keyboard
17
• Performance measure
– Minimizing false positives, false negatives
• Environment
– A user’s email account, email server
• Actuators
– Mark as spam, delete, etc.
• Sensors
– Incoming messages, other information about
user’s account
19
• Sensors: Keyboard
Classes of Environments
Actions are done by the agent on the environment.
Environments provide percepts to an agent.
Agent perceives and acts in an environment.
Hence in order to design a successful agent , the
designer of the agent has to understand the type of the
environment it interacts with.
Properties of Environments:
Fully Observable vs. Partially Observable
Deterministic vs. Stochastic
Discrete vs. Continuous
Static vs. Dynamic
Single agent vs. multiagent:
Fully Observable vs. Partially Observable
Does the agent’s sensory see the complete state of the
environment?
If an agent has access to the complete state of the environment,
then the environment is accessible or fully observable.
27
Discrete vs. Continuous
Agent types
Goal-based agents
• Knowing about the current state of the environment is not
always enough to decide what to do (e.g. decision at a road
junction)
• The agent needs some sort of goal information that
describes situations that are desirable
• The agent program can combine this with information
about the results of possible actions in order to choose
actions that achieve the goal
• Usually requires search and planning
45
Goal-based agents
46
Utility-based agents
Learning agents
Learning agents
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 a new and informative experiences
51
THANK YOU