AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

AI in jobs and homes

Week 23 · Unit 7.5: Living with AI · 3 lessons
2

Input, process, output

Computing 7: Unit 7.5, pp. 150–181
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.

Worked examples
INPUTPROCESSOUTPUT
proximity sensor detects a person nearprogram decides: open the doormotor 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.
INPUTPROCESSOUTPUT
humidity sensor measures water in the aircompare with the best levelfan 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.
SensorWhat it measuresPossible use
temperatureheat in the surroundingsa classroom heater that switches on when it is cold
proximityhow close something isa cupboard light that comes on when a hand is near
infraredheat given off by an objecta tap that starts when warm hands are under it
humiditywater in the aira greenhouse fan
touchhow hard something pressesa 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.
INPUTPROCESSOUTPUT
???
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.
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.
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?