Artificial Intelligence · Unit 1
Foundations of Artificial Intelligence
Exam-focused notes for Foundations of Artificial Intelligence (Artificial Intelligence, BIT252): what the TU syllabus asks and how it has actually been tested, with 9 solved past questions from this unit.
Foundations of Artificial Intelligence in short
Artificial intelligence is the study of making machines do tasks that need human intelligence. This chapter explains what AI is, how we test it, and how intelligent agents are described and built.
What this unit covers
- Definition and scope of artificial intelligence
- Turing test and machine intelligence
- Intelligent agents and rational agents
- PEAS framework for agent description
- Agent types and architectures
- Applications of artificial intelligence
Turing test and machine intelligence
2082 · 5 marks
What is artificial intelligence? State Turing Test. [5]
2080 · 10 marks
List the properties that a machine must have to pass the Turing Test.Describe the ambiguities in each step in Natural Language Processing.[4+6]
0 · 5 marks
Does Turing test is sufficient to test the intelligence of machine? Justify your opinion. [5]
PEAS framework for agent description
2082 · 5 marks
What is intelligent agent? Construct PEAS framework a particle picking robot. [1+4]
Show solved answerHide answer
Intelligent Agent and PEAS Framework for a Particle Picking Robot
What is an Intelligent Agent? [1 mark]
An intelligent agent is anything that can perceive its environment through sensors and act upon that environment through actuators in order to achieve its goals. An intelligent agent takes the best possible action based on its percepts, built-in knowledge, and past experience to maximize its performance measure.
PEAS Framework [4 marks]
PEAS stands for:
- P - Performance Measure
- E - Environment
- A - Actuators
- S - Sensors
PEAS is used to describe the task environment of an intelligent agent.
PEAS Framework for a Particle Picking Robot
| PEAS Component | Description |
|---|---|
| Performance Measure | Number of particles picked per unit time, cleanliness of the surface, energy consumed, time taken to complete the task, area covered, no damage to the surface |
| Environment | Factory floor / surface area, particles of various sizes and types scattered on the surface, obstacles (machinery, walls), lighting conditions, possibly other robots working simultaneously |
| Actuators | Robotic arm / gripper to pick particles, wheels or legs for movement, suction mechanism, deposit bin/container, display panel for status |
| Sensors | Camera / vision sensor to detect particles, infrared or proximity sensors to detect obstacles, touch/pressure sensors on gripper, position/GPS sensor to track location, dust/particle sensors |
Summary Table
Agent: Particle Picking Robot
+------------------+------------------------------------------+
| P (Performance) | Particles picked, surface cleanliness, |
| | energy efficiency, time efficiency |
+------------------+------------------------------------------+
| E (Environment) | Factory floor, scattered particles, |
| | obstacles, varying lighting |
+------------------+------------------------------------------+
| A (Actuators) | Robotic arm, gripper, wheels, suction, |
| | deposit container |
+------------------+------------------------------------------+
| S (Sensors) | Camera, proximity sensor, touch sensor, |
| | position sensor, particle detector |
+------------------+------------------------------------------+
Key Points to Remember
- The Performance Measure evaluates how well the agent is doing its job.
- The Environment defines where the agent operates.
- Actuators are the means by which the agent affects the environment.
- Sensors are the means by which the agent perceives the environment.
2080 · 10 marks
Define agent. How do you describe PEAS for an agent? Describe the different types of environment with example.[10]
Show solved answerHide answer
Agent, PEAS, and Types of Environment
1. Definition of Agent (2 marks)
An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators.
"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:
| Letter | Stands For | Meaning |
|---|---|---|
| P | Performance Measure | Criterion that evaluates the agent's success |
| E | Environment | The external world the agent interacts with |
| A | Actuators | The mechanisms the agent uses to act |
| S | Sensors | The 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 Component | Description |
|---|---|
| Performance | Safe trip, fast, legal, comfortable, maximize profit |
| Environment | Roads, traffic, pedestrians, customers, weather |
| Actuators | Steering wheel, accelerator, brake, horn, display |
| Sensors | Cameras, GPS, speedometer, sonar, keyboard input |
Example 2: Medical Diagnosis System
| PEAS Component | Description |
|---|---|
| Performance | Correct diagnosis, minimize cost, patient health |
| Environment | Patient, hospital, medical staff |
| Actuators | Display diagnosis, order tests, prescribe treatment |
| Sensors | Keyboard 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
| Dimension | Type 1 | Type 2 | Example |
|---|---|---|---|
| Observability | Fully Observable | Partially Observable | Chess vs. Poker |
| Agents | Single Agent | Multi-Agent | Puzzle vs. Chess |
| Outcome | Deterministic | Stochastic | Chess vs. Taxi |
| Time | Episodic | Sequential | Spam filter vs. Chess |
| Change | Static | Dynamic | Crossword vs. Taxi |
| State | Discrete | Continuous | Chess vs. Self-driving car |
| Knowledge | Known | Unknown | Chess 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.
0 · 10 marks
List the PEAS description for autonomous taxi driving system. Describe the different types of environments for agent with example.[10]
Agent types and architectures
2079 · 5 marks
Differentiate between goal based agent and utility based agent. [5]
2080.2 · 5 marks
Distinguish between simple reflex agent and model based agent. [5]
Intelligent agents and rational agents
2080.2 · 5 marks
What is rational agent? List some applications of AI. [5]
Make Unit 1 stick
Practice BIT252 with flashcards & quizzes