Artificial Intelligence - Agents & Environments



An AI system is composed of an agent and its environment. The agents act in their environment. The environment may contain different agents.

What are Agent and Environment?

An agent is anything whatever can see its environment through sensors and follows up that environment through effectors.

  • human agent has sensory organs such as eyes, ears, nose, tongue and skin parallel to the sensors, and different organs such as hands, legs, mouth, for effectors.

  • robotic agent replaces cameras and infrared range finders for the sensors, and different motors and actuators for effectors.

  • software agent has encoded bit strings as its programs and actions.

agents-in-ai

Agent Terminology

  • Performance Measure of Agent − It is the criteria, which decides how successful an agent is.

  • Behavior of Agent − It is the action that agent performs after any given sequence of percepts.

  • Percept − It is agent’s perceptual inputs at a given instance.

  • Percept Sequence − It is the history of all that an agent has perceived till date.

  • Agent Function − It is a map from the precept sequence to an activity.

Rationality

Rationality is nothing but status of being reasonable, sensible, and having great sense of judgment.

Rationality is concerned with expected actions and results depending upon what the agent has perceived. Performing actions with the aim of getting useful information is an significant part of rationality.

What is Ideal Rational Agent?

An ideal rational agent is the one, which is capable of doing expected actions to maximize its performance measure, on the basis of −

  • Its percept sequence
  • Its built-in knowledge base

Rationality of an agent depends on the following −

  • The performance measures, which decide the degree of success.

  • Agent’s Percept Sequence till now.

  • The agent’s earlier knowledge about the environment.

  • The actions that the agent can carry out.

A rational agent consistently performs right action, where the right action means the action that causes the agent to be most successful in the given percept sequence. The issue the agent solves is characterized by Performance Measure, Environment, Actuators, and Sensors (PEAS).

The Structure of Intelligent Agents

Agent’s structure can be viewed as −

  • Agent = Architecture + Agent Program
  • Architecture = the machinery that an agent executes on.
  • Agent Program = an implementation of an agent function.

Simple Reflex Agents

  • They pick actions only based on the current percept.
  • They are rational only if a right choice is made only on the basis of current precept.
  • Their environment is completely observable.

Condition-Action Rule − It is a rule that maps a state (condition) to an action.

simple-reflex-agent

Model Based Reflex Agents

They utilize a model of the world to choose their actions. They maintain an internal state.

Model − knowledge about “how the things happen on the planet”.

Internal State − It is a representation of unobserved aspects of current state depending on percept history.

Updating the state requires the information about −

  • How the world evolves.
  • How the agent’s actions affect the world.

model-based-reflex-agent

Goal Based Agents

They choose their actions in order to achieve goals. Goal-based approach is more flexible than reflex agent since the knowledge supporting a decision is explicitly modeled, thereby allowing for modifications.

Goal − It is the description of desirable situations.

goal-based-agent

Utility Based Agents

They choose actions based on a preference (utility) for each state.

Goals are insufficient when −

  • There are conflicting goals, out of which only few can be achieved.

  • Goals have some uncertainty of being achieved and you need to weigh likelihood of success against the significance of a goal.

utility-based-agent

The Nature of Environments

Some programs operate in the entirely artificial environment confined to keyboard input, database, computer file systems and character output on a screen.

In contrast, some software agents (software robots or softbots) exist in rich, unlimited softbots domains. The simulator has a very detailed, complex environment. The software agent needs to choose from a long array of actions in real time. A softbot designed to examine the online preferences of the customer and show interesting items to the customer works in the real as well as an artificial environment.

The most celebrated fake condition is the Turing Test condition, in which one genuine and other fake specialists are tried on equivalent ground. This is an exceptionally testing condition as it is profoundly hard for a product specialist to proceed just as a human.

Turing Test

The success of an intelligent behavior of a system can be estimated with Turing Test.

Two persons and a machine to be evaluated participate in the test. Out of the two persons, one plays the role of the tester. Each of them sits in various rooms. The tester is unaware of who is machine and who is a human. He interrogates the questions by typing and sending them to both intelligences, to which he receives typed responses.

This test aims at fooling the tester. If the tester fails to determine machine’s response from the human response, then the machine is said to be intelligent.

Properties of Environment

The environment has multifold properties −

  • Discrete / Continuous − If there are a limited number of distinct, clearly defined, states of the environment, the environment is discrete (For example, chess); otherwise it is continuous (For example, driving).

  • Observable / Partially Observable − If it is conceivable to decide the total state of the environment at each time point from the percepts it is observable; otherwise it is only partially observable.

  • Static / Dynamic − If the environment does not change while an agent is acting, then it is static; else it is dynamic.

  • Single agent / Multiple agents − The environment may contain other agents which may be of the same or different kind as that of the agent.

  • Accessible / Inaccessible − If the agent’s sensory apparatus can have access to the complete state of the environment, then the environment is open or accessible to that agent.

  • 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; else it is non-deterministic.

  • Episodic / Non-episodic − In an episodic environment, each episode consists of the agent perceiving and then acting. The quality of its action depends just on the episode itself. Subsequent episodes don't rely upon the actions in the previous episodes. Episodic environments are much easier because the agent doesn't need to think ahead.





Input your Topic Name and press Enter.