{"base":{"id":"cs11-11","subject":"Computer systems","title":"Artificial intelligence","scene":"mix","steps":[{"use":"cs11","mode":"expert","eyebrow":"Expert systems","title":"Rules from experts","body":"An expert system uses a knowledge base of rules and an inference engine to reach conclusions. Answer the questions.","actions":[{"id":"yes","label":"Yes"},{"id":"no","label":"No"},{"id":"reset","label":"Start again"}]},{"use":"ai","mode":"train","eyebrow":"Machine learning","title":"Learn from examples","body":"Instead of rules, machine learning finds patterns in training data. Add examples.","actions":[{"id":"add","label":"Add examples"},{"id":"reset","label":"Reset"}]},{"use":"ai","mode":"bias","eyebrow":"Data matters","title":"Good data, good model","body":"Biased training data produces biased results.","actions":[{"id":"biased","label":"Biased data"},{"id":"fair","label":"Fair data"}]},{"use":"ai","mode":"rules","eyebrow":"Rules vs learning","title":"When rules aren't enough","body":"Some problems are too complex to write rules for.","actions":[{"id":"run","label":"Run"}]},{"use":"cs11","mode":"quiz","look":"expert","eyebrow":"Check yourself","title":"Parts","body":"Which part of an expert system applies the rules to the user's answers?","question":"Choose one.","options":["Knowledge base","Inference engine","User interface"],"answer":1,"right":"Correct.","wrong":"Not quite."}],"more":[{"type":"cards","id":"worked","eyebrow":"Worked examples","title":"Step by step","items":[{"tag":"Expert","title":"Medical diagnosis","body":"IF fever AND rash THEN check for measles","code":true},{"tag":"ML","title":"Spam filter","body":"trained on thousands of labelled emails → predicts spam/not spam for new ones","code":true},{"tag":"Compare","title":"Expert vs ML","body":"expert: rules from humans, explainable\nML: learns patterns, handles complex data, harder to explain","code":true},{"tag":"Bias","title":"Example","body":"face recognition trained mostly on one group performs worse on others","code":true}]},{"type":"cards","id":"detail","eyebrow":"The ideas in detail","title":"AI in detail","items":[{"tag":"AI","title":"Definition","body":"Computer systems performing tasks that normally need human intelligence: reasoning, learning, recognising."},{"tag":"Expert system","title":"Parts","body":"Knowledge base (facts and rules), rule base, inference engine, user interface."},{"tag":"Machine learning","title":"Training","body":"Algorithms improve by finding patterns in data instead of being given explicit rules."},{"tag":"Uses","title":"Everyday AI","body":"Recommendations, spam filters, voice assistants, translation, medical image analysis."},{"tag":"Limits","title":"Not magic","body":"AI can be wrong confidently, reflect bias in data, and lacks real understanding."},{"tag":"Ethics","title":"Responsibility","body":"Fairness, privacy, transparency and accountability when AI makes decisions."}]},{"type":"cards","id":"mistakes","eyebrow":"Common mistakes","title":"Watch out for these","items":[{"tag":"Mistake","title":"Thinking AI understands like people","body":"Most AI recognises patterns without understanding."},{"tag":"Mistake","title":"Ignoring training data quality","body":"Bad data → bad predictions."},{"tag":"Mistake","title":"Treating AI output as always correct","body":"Check important results."}]},{"type":"cards","id":"deeper","eyebrow":"Go deeper","title":"More than the lesson","items":[{"tag":"History","title":"The Turing test","body":"In 1950 Alan Turing proposed testing whether a machine's conversation could be told apart from a human's."},{"tag":"Today","title":"Large language models","body":"Modern chatbots are trained on huge amounts of text to predict likely next words; they can be helpful but also make mistakes."}]},{"type":"cards","id":"challenge","eyebrow":"Challenge yourself","title":"Stretch your brain","intro":"Try each one on paper before opening the card.","items":[{"tag":"Challenge","title":"Explain","body":"Why might an expert system be preferred for diagnosing car faults?\n\nAnswer: its rules are explainable and based on expert knowledge; it can be updated as new faults are known."},{"tag":"Challenge","title":"Evaluate","body":"Give one benefit and one risk of AI in job interviews.\n\nAnswer: faster screening; risk of bias against some groups."}]},{"type":"activities","id":"try","eyebrow":"Try it at home","title":"Try it yourself","items":[{"title":"Build a decision tree","time":"20 minutes","need":["Paper"],"steps":["Choose a topic (e.g. identify an animal).","Write yes/no questions that lead to answers.","Test it on a friend."],"why":"You built a tiny expert system.","safety":"None."}]},{"type":"quiz","id":"quiz","eyebrow":"Quiz","title":"Eight more questions","questions":[{"question":"An expert system contains…","options":["only a camera","random numbers","a knowledge base and inference engine"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"Machine learning…","options":["learns from data","needs no data","only follows fixed rules"],"answer":0,"right":"Correct.","wrong":"Not quite."},{"question":"Biased training data leads to…","options":["perfect results","biased results","faster computers"],"answer":1,"right":"Correct.","wrong":"Not quite."},{"question":"A spam filter is an example of…","options":["a robot","a sensor","machine learning"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"The knowledge base stores…","options":["facts and rules","the user's password","images only"],"answer":0,"right":"Correct.","wrong":"Not quite."},{"question":"Who proposed a famous test of machine intelligence?","options":["Ada Lovelace","Alan Turing","Tim Berners-Lee"],"answer":1,"right":"Correct.","wrong":"Not quite."},{"question":"An AI chatbot's answers are…","options":["always correct","never useful","sometimes wrong"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"Training data is…","options":["examples used to teach a model","the final output","the screen"],"answer":0,"right":"Correct.","wrong":"Not quite."}]},{"type":"checklist","id":"check","eyebrow":"Self-check","title":"I can…","items":["define artificial intelligence","describe the parts of an expert system","explain machine learning and training data","give uses and limitations of AI","discuss ethical issues"]},{"type":"keywords","id":"words","eyebrow":"Key words","title":"Words to know","items":[{"word":"Artificial intelligence","meaning":"Computers doing tasks that need human-like intelligence."},{"word":"Expert system","meaning":"AI using rules from experts."},{"word":"Inference engine","meaning":"Applies rules to reach conclusions."},{"word":"Machine learning","meaning":"AI that learns from data."},{"word":"Bias","meaning":"Systematic unfairness in results."}]},{"type":"sources","id":"sources","title":"Sources","items":["Alan Turing (1950), \"Computing Machinery and Intelligence\", Mind","UNESCO: Recommendation on the Ethics of AI","Raspberry Pi Foundation: Experience AI","BBC Bitesize, GCSE Computer Science: AI"]}]},"overlay":null}