{"base":{"id":"cs9-31","subject":"Systems","title":"Machine learning and smart factories","scene":"sys9","steps":[{"mode":"ml","eyebrow":"Learning from examples","title":"Good part or faulty?","body":"A machine learning system learns from labelled examples instead of fixed rules. Add training examples, then move a new part and see what the system predicts.","controls":[{"id":"s","label":"New part's scratch length","min":0,"max":10,"step":0.5,"value":5}],"actions":[{"id":"train","label":"Add more examples"}]},{"mode":"uses","eyebrow":"Where ML is used","title":"Input → prediction","body":"Machine learning is used for speech, fraud detection and quality control. For each, look at the input data, what it learns from and what it predicts.","actions":[{"id":"u0","label":"Speech"},{"id":"u1","label":"Fraud"},{"id":"u2","label":"Defects"}]},{"mode":"factory","eyebrow":"Computerised industry","title":"Benefits and risks","body":"Sensors and automated systems check every product on a production line. Switch the ML check on and off, and weigh up the benefits and the risks.","actions":[{"id":"ml","label":"Turn off the check"}]},{"mode":"quiz","eyebrow":"Check yourself","title":"Input and prediction","body":"A bank's system looks at each card payment and flags unusual ones.","question":"What is the system's prediction?","options":["The customer's name","The bank's opening hours","Whether a payment is probably fraud"],"answer":2,"right":"Correct. It uses payment data as input and predicts whether each payment is fraudulent.","wrong":"Not quite. What does it decide about each payment?","look":"uses"}],"more":[{"type":"cards","id":"ideas","eyebrow":"Popular idea vs science","title":"Common mix-ups","items":[{"tag":"Popular idea","title":"\"Machine learning systems think like people.\"","body":"They find patterns in data; they don't understand like humans do."},{"tag":"Popular idea","title":"\"ML predictions are always right.\"","body":"They can be wrong, especially with poor or biased training data."},{"tag":"Popular idea","title":"\"Automation only has benefits.\"","body":"Breakdowns, cyber-attacks and job changes are real risks."}]},{"type":"cards","id":"compare","eyebrow":"Compare","title":"Rules vs learning","items":[{"tag":"Programmed rules","title":"Written by people","body":"IF scratch > 5 THEN faulty. Clear, but misses cases the programmer didn't think of."},{"tag":"Machine learning","title":"Learned from examples","body":"Finds patterns from thousands of labelled images. Handles complex cases, but needs good data."}]},{"type":"activities","id":"try","eyebrow":"Try it at home","title":"Train a friend","items":[{"title":"Human classifier","time":"20 minutes","need":["10 small objects (e.g. leaves or buttons)","A partner"],"steps":["Secretly sort the objects into two groups using a rule (e.g. size).","Show your partner 6 labelled examples.","Give them the other 4 to label without telling the rule.","How many did they get right? Would more examples help?"],"why":"This is how supervised machine learning works: labelled examples, then predictions.","safety":"No safety risks."}]},{"type":"quiz","id":"quiz","eyebrow":"Quiz","title":"Six more questions","questions":[{"question":"What does a machine learning system learn from?","options":["Only fixed rules","Its user's feelings","Examples (data)"],"answer":2,"right":"Correct. Labelled data.","wrong":"Not quite. Training data."},{"question":"Speech recognition's input is…","options":["a photo","a payment","sound"],"answer":2,"right":"Correct. Microphone audio.","wrong":"Not quite. What do you give it?"},{"question":"A benefit of computerised manufacturing is…","options":["more breakdowns","consistent quality","higher error rates"],"answer":1,"right":"Correct. Every product checked the same way.","wrong":"Not quite. Think of quality."},{"question":"A risk of automation is…","options":["products being checked","a system failure stopping production","less waste"],"answer":1,"right":"Correct. Outages.","wrong":"Not quite. What if it breaks?"},{"question":"Poor training data usually leads to…","options":["worse predictions","perfect predictions","faster computers"],"answer":0,"right":"Correct. Garbage in, garbage out.","wrong":"Not quite. Quality of examples."},{"question":"Sensors on a production line…","options":["measure things so the system can respond","decide company policy","replace all workers"],"answer":0,"right":"Correct. Input devices.","wrong":"Not quite. What do sensors do?"}]},{"type":"checklist","id":"check","eyebrow":"Self-check","title":"I can explain…","items":["how machine learning learns from labelled examples","examples of ML with their inputs and predictions","how sensors and automation improve production","the benefits and risks of computerised industry"]},{"type":"keywords","id":"words","eyebrow":"Key words","title":"Words to know","items":[{"word":"machine learning","meaning":"Computers finding patterns in data to make predictions."},{"word":"training data","meaning":"Labelled examples used to teach a system."},{"word":"prediction","meaning":"The system's output for new data."},{"word":"automation","meaning":"Machines doing tasks without people."},{"word":"sensor","meaning":"A device that measures something in the real world."}]},{"type":"sources","id":"sources","title":"Sources","items":["BBC Bitesize KS3 Computer Science","Raspberry Pi Foundation, Computing curriculum resources"]}]},"overlay":null}