The design of an agent depends on the kind of environment in which it will work. As AI spreads, its effect on society also has to be considered.
Properties of Environments
An environment is fully observable if the sensors give the complete state at every moment, as in chess, and partially observable if not, as in poker or driving in fog. It is deterministic if the next state is fixed by the present state and the action, and stochastic if there is chance, as in dice games. It is static if it does not change while the agent decides, and dynamic if it does, as on a road. It is discrete if there are a limited number of states and actions, and continuous if not. It is episodic if each decision is independent of the last, and sequential if decisions affect later ones. It has a single agent or many agents. The hardest environments are partially observable, stochastic, dynamic, continuous, sequential and multi-agent, such as driving a taxi.
Ethics of AI
AI systems make or support decisions that affect people, so ethical questions arise. Bias appears when a system learns from data that reflects past unfairness, and then treats groups unequally, for example in hiring or lending. Privacy is at risk because AI needs large amounts of personal data, and face recognition and tracking can be used for surveillance. Job displacement is a concern as automation replaces some tasks, although it also creates new work. Accountability is unclear when an autonomous system causes harm, since it is hard to say who is responsible. Transparency is a problem when a model cannot explain its decision. Other issues are safety and security, the spread of misinformation and deepfakes, and the use of AI in weapons. The response includes careful data selection, testing for bias, human oversight, explanation of decisions, laws and professional codes.
Definition: Environment. Everything outside the agent that it perceives through its sensors and changes through its actuators, whose properties decide how the agent must be designed.
Why the Environment Matters
The same agent design does not suit every environment. A simple reflex agent is enough for a fully observable and deterministic environment, such as a thermostat in a room, but it fails when the environment is hidden in part or full of chance. For this reason, the first step in designing an agent is to state its PEAS description: the performance measure, the environment, the actuators and the sensors. For an automatic taxi, the performance measure includes safety, speed, comfort and legality, the environment is roads, traffic and passengers, the actuators are the steering, accelerator, brake and horn, and the sensors are cameras, radar, GPS and the speedometer. Writing this description first makes the requirements clear and shows which type of agent is needed.
Table 1.6: Properties of environments
| Property | One extreme | Other extreme |
|---|---|---|
| Observability | Fully observable | Partially observable |
| Determinism | Deterministic | Stochastic |
| Change | Static | Dynamic |
| Decisions | Episodic | Sequential |
Example 1.6: Describing an environment
Problem: Describe the environment of (a) a chess program, (b) an automatic taxi.
Solution:
- Chess: fully observable, deterministic, static while the player thinks (in turns), discrete, sequential, with two agents.
- Taxi: partially observable, stochastic, dynamic, continuous, sequential, with many agents.
Result: Chess is an easy environment. The taxi has the hard form of every property.
Common mistakes
- Calling an environment static when it changes while the agent is thinking.
- Treating ethics as an extra, instead of designing for fairness and safety from the start.
- Assuming that an AI decision is neutral because it is made by a machine.
Key takeaways
- Environments are described by observability, determinism, change, discreteness, episodes and number of agents.
- Driving a taxi is partially observable, stochastic and dynamic.
- Ethical issues are bias, privacy, job displacement, accountability and transparency.
- Biased data produces a biased system.
Practice questions
- Distinguish a deterministic and a stochastic environment.
- Name three ethical issues of AI.
- Why is bias a problem in AI?
Answers to the practice questions
- In a deterministic environment the next state is fully fixed by the state and action, in a stochastic one there is an element of chance.
- Bias, privacy and job displacement (also accountability and transparency).
- A system trained on data that reflects past unfairness will repeat it and treat groups unequally.
Sources
- Official BCA syllabus Artificial Intelligence and Expert Systems, course code 25BCA405DS02, Unit I
