Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Artificial Intelligence Lecture 2: Perception & Action

Similar presentations


Presentation on theme: "Introduction to Artificial Intelligence Lecture 2: Perception & Action"— Presentation transcript:

1 Introduction to Artificial Intelligence Lecture 2: Perception & Action
Perception and Action Organisms in the real world have to do two basic things in order to survive: They have to gather information about their environment (perception) and based on this information, they have to manipulate their environment (including themselves) in a way that is advantageous to them (action). The action in turn may cause a change in the organism’s perception, which can lead to a different type of action. We call this the perception-action cycle. September 10, 2012 Introduction to Artificial Intelligence Lecture 2: Perception & Action

2 Introduction to Artificial Intelligence Lecture 2: Perception & Action
Perception and Action Complex organisms do not just perceive and act, but they also have an internal state that changes based on the success of previous perception-action cycles. This is the mechanism of learning. Examples? With or without internal state? What is the difference? September 10, 2012 Introduction to Artificial Intelligence Lecture 2: Perception & Action

3 A Trip (From Real World) to Grid-Space World
Grid-space world is an extremely simple model of our own world. We will first consider a very simple robot that lives in grid-space world and has no internal state. s1 s2 s3 s8 s4 s7 s6 s5

4 Some Rules in Grid-Space World
A robot in grid-space world can sense whether neighboring cells are empty or not. The cells can be empty or contain objects or agents. The agents are confined to the floor and can move from cell to cell. September 10, 2012 Introduction to Artificial Intelligence Lecture 2: Perception & Action

5 Introduction to Artificial Intelligence Lecture 2: Perception & Action
Perception and Action The robot can move to a free adjacent cell in its column or row. Consequently, there are four possible actions that it can take: north: moves the robot one cell up east: moves the robot one cell to the right south: moves the robot one cell down west: moves the robot one cell to the left September 10, 2012 Introduction to Artificial Intelligence Lecture 2: Perception & Action

6 Immediate Perception-Action
Now that we specified the robot’s capabilities, its environment, and its task, we need to give “life” to the robot. In other words, we have to specify a function that maps sensory inputs to movement actions so that the robot will carry out its task. Since we do not want the robot to remember or learn anything, one such function would be sufficient. However, it is useful to decompose it in the following way (next slide): September 10, 2012 Introduction to Artificial Intelligence Lecture 2: Perception & Action

7 Immediate Perception-Action
Feature vector X 1 Sensory input Perceptual processing Action function Action September 10, 2012 Introduction to Artificial Intelligence Lecture 2: Perception & Action

8 Immediate Perception-Action
The functional decomposition has two advantages: Multiple action functions can be added that receive the same feature vector as their input, It is possible to add an internal state to the system to implement memory and learning. September 10, 2012 Introduction to Artificial Intelligence Lecture 2: Perception & Action

9 The Robot’s Perception
For our robot, we define four different features x1, …, x4 that are important to it. Each feature has value 1 if and only if at least one of the shaded cells is not free: s5 s6 s7 s4 s8 s3 s2 s1 x1 s5 s6 s7 s4 s8 s3 s2 s1 x2 s5 s6 s7 s4 s8 s3 s2 s1 x3 s5 s6 s7 s4 s8 s3 s2 s1 x4 September 10, 2012 Introduction to Artificial Intelligence Lecture 2: Perception & Action

10 Introduction to Artificial Intelligence Lecture 2: Perception & Action
The Robot’s Action To execute action, we define an ordered set of rules: if x1 = 0 and x2 = 0 and x3 = 0 and x4 = 0 move north if x1 = 1 and x2 = 0 move east if x2 = 1 and x3 = 0 move south if x3 = 1 and x4 = 0 move west if x4 = 1 and x1 = 0 move north s5 s6 s7 s4 s8 s3 s2 s1 x1 s5 s6 s7 s4 s8 s3 s2 s1 x2 s5 s6 s7 s4 s8 s3 s2 s1 x3 s5 s6 s7 s4 s8 s3 s2 s1 x4 September 10, 2012 Introduction to Artificial Intelligence Lecture 2: Perception & Action

11 Introduction to Artificial Intelligence Lecture 2: Perception & Action
Task Completion Rules 1 2 1 1 3 1 3 2 4 4 4 4 4 4 4 5 1 3 3 5 1 3 2 2 2 3 3 5 2 5 1 3 3 5 3 5 1 4 4 4 3 3 2 1 3 2 2 2 1 3 4 4 4 5 3 5 3 5 4 4 3 September 10, 2012 Introduction to Artificial Intelligence Lecture 2: Perception & Action

12 Introduction to Artificial Intelligence Lecture 2: Perception & Action
Perception and Action The robot is supposed to find a cell next to a boundary or object and then follow that boundary forever. s1 s2 s3 s8 s4 s7 s6 s5 September 10, 2012 Introduction to Artificial Intelligence Lecture 2: Perception & Action

13 Introduction to Artificial Intelligence Lecture 2: Perception & Action
Production Systems Production systems are a standardized way to represent action functions. A production system consists of an ordered list of production rules (productions). Each rule is written in the form condition  action. A production system is therefore written like: c1  a1 c2  a2  cm  am The action of the first rule whose condition evaluates to 1 is executed. September 10, 2012 Introduction to Artificial Intelligence Lecture 2: Perception & Action

14 Introduction to Artificial Intelligence Lecture 2: Perception & Action
Production Systems Using Boolean notation, the production system for our boundary-following robot looks like this: x4x1  north x3x4  west x2x3  south x1x2  east 1 north September 10, 2012 Introduction to Artificial Intelligence Lecture 2: Perception & Action


Download ppt "Introduction to Artificial Intelligence Lecture 2: Perception & Action"

Similar presentations


Ads by Google