GoalDescribe an AI system as input, process and output, and choose a sensor for a job.
New words
input · the data that goes into a system, from a person or a sensorprocess · what the system does with the data to make a decisionoutput · the result that the system sends out, such as a sound, a light or a movementsensor · a device that collects data from its surroundings, such as heat, light or touch
Explanation
Designers of an AI system think about three questions. How does data get in? That is the input. What does the system do with the data? That is the process. How does the result reach the user? That is the output. Input can come from a keyboard, a microphone, a camera or a sensor. A sensor measures something in the surroundings. A temperature sensor measures heat, a proximity sensor finds out whether something is near, a humidity sensor measures water in the air, and an infrared sensor measures the heat given off by an object. A touch sensor measures how hard something is pressed. The process is the AI program, and the output may be a screen, a speaker or a motor.
INPUT: sensor, microphone, camera→PROCESS: AI program decides→OUTPUT: screen, speaker, motor
Worked examples
INPUT
PROCESS
OUTPUT
proximity sensor detects a person near
program decides: open the door
motor slides the door open
A shop’s automatic door uses a proximity sensor. The sensor detects a person near the door, the program decides to open it and a motor slides it open.
INPUT
PROCESS
OUTPUT
humidity sensor measures water in the air
compare with the best level
fan switched on or off
A greenhouse uses a humidity sensor. When the air is too wet for the plants, the system switches on a fan. The AI can learn the best level over many weeks.
Sensor
What it measures
Possible use
temperature
heat in the surroundings
a classroom heater that switches on when it is cold
proximity
how close something is
a cupboard light that comes on when a hand is near
infrared
heat given off by an object
a tap that starts when warm hands are under it
humidity
water in the air
a greenhouse fan
touch
how hard something presses
a toothbrush that beeps if you press too hard
A smart toothbrush has a touch sensor. The touch sensor tells the AI how hard you are pressing, so it can beep when you brush too hard and hurt your gums. The table shows five sensors and what each one is used for.
Class activity
Sensor spotting (no computer): walk round your home, classroom or street with an adult and find five machines that react to something, such as an automatic door, a street light, a lift or a hand dryer. For each one, write the INPUT, PROCESS and OUTPUT in a table and name the likely sensor. Keep away from sockets and plugs; you only look. Swap lists with a partner and check that every row has all three parts. If you have a computer or tablet, an adult can help you turn your table into a neat document.
Practice
1
A tablet turns its picture round when you tip it. Complete the input-process-output table.
INPUT
PROCESS
OUTPUT
?
?
?
INPUT: a tilt sensor measures how far the tablet is turned. PROCESS: the program decides which way is up. OUTPUT: the screen picture turns.
2
Match each job to the best sensor: (a) a lamp that switches on at dusk, (b) a greenhouse fan that switches on when the air is too damp, (c) a toothbrush that beeps when you press too hard. Choose from light, touch, humidity.
(a) light sensor, (b) humidity sensor, (c) touch sensor. Each sensor measures the thing that the job depends on.
3
A talking toy robot answers when a child speaks to it. Name its input and its output, and say how an input is different from an output.
Input: the child’s voice, collected by the microphone. Output: the toy’s spoken answer from the speaker. Data goes into the system as input and the result comes out as output.
4
A school tap has an infrared sensor and starts the water when warm hands are under it. What does the sensor measure, and why is this better than a button that everyone must touch?
It measures the heat given off by the hands. Nobody has to touch anything, so fewer germs are passed on, and the water is not left running.