A Quick Introduction to Artificial Intelligence Environments
Tags: ai, computerscience, machinelearning
Published: 2017-10-04 02:09:39

---
title: "A Quick Introduction to Artificial Intelligence Environments"
published: true
tags: ai,computer-science,machine-learning,artificial-intellige
canonical_url: 
---

Artificial intelligence programs can also be referred to as â€˜ **intelligent agents** ” that interact with different types of environment. Agents interact with environments in two main ways: **perception** and&nbsp; **action**.

In AI, perception is the process of transforming something from the environment into internal representations while action, when performed by the agent, changes the environment. If we use an example of AI in finance, we could say that a trading agent perceives environmental factors of a market such as a stock market or commodities marker through the form of rate news. Rate news in terms of AI is what we call a “ **sensor”**. Sensors are what agents use to get things from their environment to perform their perception. The trading agent may use this information to make trades based on the information they perceive from their sensors to influence the market to their advantage. The trades is what we call an “ **actuator** ” because the trades are the action the agent is making in order to influence the&nbsp;market.

In AI, this cycle is known as the **Perception Action Cycle** (represented below):

![](https://cdn-images-1.medium.com/max/1024/0*V6nsi0Gz1BZ8YiWy.png)

Of course, what we would consider environment would entirely matter of the boundaries of the agent. While knowing where the environment ends and the agent begins is complex sometimes, we can classify environments to predict how difficult the AI task will&nbsp;be.

**_Fully Observable_**

When it is possible to determine the complete state of the environment each time your agent needs to make the optimal decision. For example, a checkers game can be classed as fully observable, because the agent can observe the full state of the game (how many pieces the opponent has, how many pieces we have&nbsp;etc.)

**_Partially Observable_**

Contrast to fully observable environments, Agents may memory of past decision to make the optimal choice within their environment. An example of this could be a Poker game. The Agent may not know what cards the opponent has and will have to make best decision based on what cards the opponent has&nbsp;played.

**_Deterministic_**

Deterministic environments are where your agent’s actions uniquely determine the outcome. So for example, if we had a pawn while playing chess and we moved that piece from A2 to A3, that would always work. There is no uncertainty in the outcome of that&nbsp;move.

**_Stochastic_**

Unlike deterministic environments, there is a certain amount of randomness involved. Using our poker game example, when a card is dealt there is a certain amount of randomness involved in which card will be&nbsp;drawn.

**_Discrete_**

In discrete environments, we have a finite amount of action choices and a finite amount of things that we can sense. Using our checkers example again, there are a finite amount of board positions and a finite amount of things we can do within the checkers environment.

**_Continuous_**

In continuous environments, many actions can be sensed by our agents. To apply this to a medical context, a patient’s temperature and blood pressure are continuous variables, and can be sensed by medical agents designed to capture vital signs from patients and then recommend diagnostic action to healthcare professionals.

**_Benign_**

In benign environments, the environment has no objective by itself that would contradict your own object. For example, when it rains it might ruin your plans to play cricket (great game, I promise) but it doesn’t rain just because Thor (God of Thunder) doesn’t want you to play cricket. It does it through factors unrelated to your objective.

**_Adversarial_**

Adversarial environments on the other hand do get out to get you. This is commonplace in games, such as video games, where bosses and enemies are out to destroy your plans of getting that high score, or in chess where an AI would be out to checkmate you.

This is just a quick and basic overview of what type of environments AI or agents might operate in. I’d recommend that you look around if you want to dive deeper into a specific environment, but hopefully this article has provided you with a good starting point. Maybe when I understand these concepts a bit better, I’ll explain them at greater&nbsp;length.

_This article can also be found on my website_ [_www.williamvelida.com_](http://www.williamvelida.com) _along with other&nbsp;content._

* * *