Docsity

AI Agent Design: Environment, Perception, and Action, Slides of Artificial Intelligence

Partial preview of the text

Download AI Agent Design: Environment, Perception, and Action and more Slides Artificial Intelligence in PDF only on Docsity!

ARTIFICIAL

INTELLIGENCE

Lecture 02

Focus of this course

AGENTS AND

ENVIRONMENT

An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators. Agent Sensor Actuator Human Eyes Arms/Legs Robot Camera Motors Software Keystokes File Receiving Receive Packets Screen Display File Writing Sending Packets

AGENTS AND

ENVIRONMENT

We use the term percept to refer to the agent’s perceptual inputs at any given instant. Agent’s percept sequence is the complete history of everything the agent has ever perceived. percept Percepts/ Percept Sequence Agent Function Action Actions/ Action Sequence

function Refl ex-Vacuum-Agent( [ location, status]) returns an action if status = Dirty then return Suck else if location = A then return Right else if location = B then return Left

PERFORMANCE

ENVIRONMENT VS AGENT STATE

We might propose to measure performance by the amount of dirt cleaned up in a single eight-hour shift.  (^) A rational agent can maximize this performance measure by cleaning up the dirt, then dumping it all on the floor, then cleaning it up again, and so on. A more suitable performance measure would reward the agent for having a clean floor.  (^) For example, one point could be awarded for each clean square at each time step. As a general rule, it is better to design performance measures according to what one actually wants in the environment, rather than according to how one thinks the agent should behave.

DESIGNING AN AGENT

Designing an agent requires understanding of three things

Agents

Description

  • (^) PEAS

Agent’s Type

  • (^) Reflex, Planning

Environment

Type

  • (^) Stochastic,

Continuous

PEAS (PERFORMANCE,

ENVIRONMENT,

ACTUATORS, SENSORS)

CHAPTER 2 1 0

INTERNET SHOPPING

AGENT

Performance measure?? Environment?? Actuators?? Sensors??

INTERNET SHOPPING

AGENT

Performance measure?? price, quality, appropriateness, effi ciency Environment?? current and future websites, vendors, shippers Actuators?? display to user, follow URL, fill in form Sensors?? HTML pages (text, graphics, scripts) 1 2

AGENT DESIGN – ROLE

OF ENVIORNMENT

The environment largely determines the agent design.

FULLY OBSERVABLE

VS. PARTIALLY

OBSERVABLE

If an agent’s sensors give it access to the complete state of the environment at each point in time, then we say that the task environment is fully observable. An environment might be partially observable because of noisy and inaccurate sensors or because parts of the state are simply missing from the sensor data.  (^) For example, a vacuum agent with only a local dirt sensor cannot tell whether there is dirt in other squares, and an automated taxi cannot see what other drivers are thinking.

SINGLE VS MULTI

AGENT

An agent solving a crossword puzzle by itself is clearly in a single-agent environment, whereas an agent playing chess is in a two agent environment. For example, in chess, the opponent entity B is trying to maximize its performance measure, which, by the rules of chess, minimizes agent A’s performance measure. Thus, chess is a competitive multiagent environment. In the taxi-driving environment, on the other hand, avoiding collisions maximizes the performance measure of all agents, so it is a partially cooperative multiagent environment.