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

Learning machines at work

Week 29 · 4.6 AI and computerisation · 3 lessons
2

Machines that work alone

Computing 9: Topic 4.6, pp. 348–358
GoalDescribe an automated system as sensor, controller and output, say how it differs from machine learning, and explain Industry 4.0.
New words
automated system · hardware and software that do a task with little help from people, following a programsensor · a device that measures something in the surroundings, such as weight, light or movement, and sends the data oncontroller · the program or processor that takes the sensor’s data and decides what the system does nextIndustry 4.0 · the change in which factories become more computerised, automated and connected, using data and machine learning
Explanation

An automated system is hardware and software that does a task with little help from people. It has three parts. Sensors collect data about the surroundings, a controller (a program) decides what to do with the data, and an output device such as a motor, a valve or an arm carries out the decision. The controller follows its program, so the system does the task the same way every time, which suits tasks that repeat often in factories, warehouses and farms. A system that only follows fixed rules does not learn, so it does not use machine learning; with machine learning added, it can adapt too. Industry 4.0 is the name for factories becoming more computerised and connected, with data and machine learning at the centre.

Worked examples
Python
1level = int(input("Fill level in ml: "))
2if level >= 495 and level <= 505:
3    print("Accept")
4else:
5    print("Reject")
Output
Fill level in ml: Reject
A bottling line. A sensor measures how much liquid is in each bottle. The controller accepts a bottle when the level is from 495 to 505 ml, including both ends, and rejects it otherwise. Here the sensor reports 494.
Level in mlResult
500Accept
494Reject
495Accept
505Accept
506Reject
The same controller on more bottles. The values 495 and 505 are the edges of the rule and are accepted. The values 494 and 506 are just outside and are rejected. A system like this repeats the check exactly, for every bottle.
Parcels per hourHours per dayParcels per day
person308240
robot4520900
A warehouse (invented numbers). A person moves 30 parcels an hour for 8 hours. A robot moves 45 parcels an hour for 20 hours, because it stops only to charge. The robot moves more, but an odd-shaped or damaged parcel may stop it, and then a person must help.
Class activity

Be the bottling line (no computer). You need three players, a ruler and 10 paper strips of different lengths that an adult or you cut with safe scissors; include lengths of exactly 8 cm and 10 cm, and 7.9 cm and 10.1 cm. Player 1 is the sensor and measures each strip. Player 2 is the controller with the rule: accept if the length is from 8 cm to 10 cm, including both ends. Player 3 is the output and puts each strip into the accept or reject pile. Change the rule to 9 cm to 11 cm and sort again. Then fold or tear one strip. Can the sensor and controller cope? What would a person do?

Practice
1
In this smoke alarm, name the part marked ? and say what it does.
2
A machine checks bags of rice. Predict what it prints for the inputs 985, 1010 and 1011.
Python
1grams = int(input("Weight in g: "))
2if grams < 990:
3    print("Too light")
4elif grams > 1010:
5    print("Too heavy")
6else:
7    print("Accept")
3
Write automated only or automated with machine learning for each machine.
MachineKind
(a) a cutter that always cuts cloth to 40 cm when a sensor finds the end of the roll?
(b) a camera that learns to spot faulty stitches from thousands of labelled photos, and improves?
(c) a timer that starts a fan at 8 o’clock every morning?
4
A factory has automated lines, but it still employs people. Give two jobs for people there, and say why they are needed.