2080 2

BIT252 ยท 2080 ยท 10 marks

Define agent. How do you describe PEAS for an agent? Describe the different types of environment with example.

Define agent. How do you describe PEAS for an agent? Describe the different types of environment with example.[10]

Artificial IntelligenceChapter 1: Foundations of Artificial IntelligencePEAS framework for agent description

Quick answer

An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators.

Agent, PEAS, and Types of Environment


1. Definition of Agent (2 marks)

"An agent is an entity that perceives its environment through sensors and acts upon that environment through actuators." -- Russell & Norvig

  • A human agent has eyes, ears (sensors) and hands, legs, mouth (actuators).
  • A software agent (robot, game-playing program) has file inputs, network packets (sensors) and screen output, motors (actuators).

The agent's behavior is described by an agent function that maps any given percept sequence to an action:

f : P* --> A

where P* is the set of all possible percept sequences and A is the set of actions.


2. PEAS Description (3 marks)

PEAS stands for:

LetterStands ForMeaning
PPerformance MeasureCriterion that evaluates the agent's success
EEnvironmentThe external world the agent interacts with
AActuatorsThe mechanisms the agent uses to act
SSensorsThe mechanisms the agent uses to perceive

PEAS is used to specify the task environment of an agent before designing it.

Example 1: Automated Taxi Driver

PEAS ComponentDescription
PerformanceSafe trip, fast, legal, comfortable, maximize profit
EnvironmentRoads, traffic, pedestrians, customers, weather
ActuatorsSteering wheel, accelerator, brake, horn, display
SensorsCameras, GPS, speedometer, sonar, keyboard input

Example 2: Medical Diagnosis System

PEAS ComponentDescription
PerformanceCorrect diagnosis, minimize cost, patient health
EnvironmentPatient, hospital, medical staff
ActuatorsDisplay diagnosis, order tests, prescribe treatment
SensorsKeyboard input (symptoms), lab reports

3. Types of Environment (5 marks)

The environment in which an agent operates can be classified along several dimensions:


3.1 Fully Observable vs. Partially Observable

  • Fully Observable: The agent's sensors give access to the complete state of the environment at each point in time.
    • Example: Chess game (entire board is visible)
  • Partially Observable: The agent cannot observe the full state due to noisy or limited sensors.
    • Example: Poker game (opponent's cards are hidden), self-driving car (blind spots)

3.2 Single Agent vs. Multi-Agent

  • Single Agent: Only one agent operates in the environment.
    • Example: Crossword puzzle solver
  • Multi-Agent: Multiple agents interact in the same environment.
    • Competitive: Agents compete (e.g., Chess -- one agent wins, other loses)
    • Cooperative: Agents work together (e.g., multi-robot warehouse system)

3.3 Deterministic vs. Stochastic

  • Deterministic: The next state of the environment is completely determined by the current state and the agent's action. No uncertainty.
    • Example: Chess
  • Stochastic: The next state is not fully determined; there is uncertainty.
    • Example: Taxi driving (uncertain traffic), card games

Note: If the environment is deterministic except for the actions of other agents, it is called strategic.


3.4 Episodic vs. Sequential

  • Episodic: The agent's experience is divided into independent episodes. Each episode consists of perceiving and acting; the next episode does not depend on previous ones.
    • Example: Spam email classifier (each email is independent)
  • Sequential: The current decision affects future decisions. Past actions matter.
    • Example: Chess, taxi driving

3.5 Static vs. Dynamic

  • Static: The environment does not change while the agent is deliberating.
    • Example: Crossword puzzle
  • Dynamic: The environment can change while the agent is thinking.
    • Example: Taxi driving, stock market
  • Semi-dynamic: The environment does not change but the agent's performance score changes with time.
    • Example: Chess with a clock

3.6 Discrete vs. Continuous

  • Discrete: A finite number of distinct states, percepts, and actions.
    • Example: Chess (finite board positions)
  • Continuous: States, time, and actions are continuous.
    • Example: Self-driving car (continuous speed, position)

3.7 Known vs. Unknown

  • Known: The agent knows the rules/outcomes of all actions.
    • Example: Chess (rules are known)
  • Unknown: The agent does not know how the environment works and must learn.
    • Example: A new video game with unknown rules

Summary Table

DimensionType 1Type 2Example
ObservabilityFully ObservablePartially ObservableChess vs. Poker
AgentsSingle AgentMulti-AgentPuzzle vs. Chess
OutcomeDeterministicStochasticChess vs. Taxi
TimeEpisodicSequentialSpam filter vs. Chess
ChangeStaticDynamicCrossword vs. Taxi
StateDiscreteContinuousChess vs. Self-driving car
KnowledgeKnownUnknownChess vs. New game

Note: The real world is generally partially observable, stochastic, sequential, dynamic, continuous, and multi-agent -- making it the most challenging type of environment for an AI agent.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.