Machine learning is teaching a computer to find patterns from a large number of examples by itself, instead of writing a fixed rule for every case. In class I explain it to children by teaching a computer to recognise a cat's face.
What is machine learning, explained for kids?
An ordinary program a child writes at first — a game or a website — follows rules the child writes for every line. Machine learning flips that around: instead of telling the computer the rule, we give it lots of examples and let it work the rule out itself. It is like teaching a young child to recognise animals without defining them — just showing pictures again and again until they recognise it on their own.
How do you teach a computer to recognise a cat?
The steps a child can follow are simple: show the computer hundreds of pictures of cats and dogs, each labelled with what it is. The computer gradually works out which patterns show up often in cat pictures, so that when it sees a new picture it has never seen before, it can guess whether it is a cat or a dog. When it guesses wrong, we tell it, and it adjusts itself to get more accurate. This is the same principle behind the face-recognition apps on a phone.
What does a child's first machine learning project actually involve?
The first project I give a child is not about writing complicated maths — it is practising a four-step process.
- Collect examples — photograph or gather the data that will teach the machine.
- Train the model — feed the examples into a program so it can find the pattern.
- Test it — try it on new data it has never seen.
- See where it fails — for instance, if it was only trained on white cats, it may fail to recognise a black cat at all. This is a simple, hands-on example of bias in data, a concept worth introducing early.
Does my child need to be good at maths?
The maths behind machine learning is advanced, but that is the work of people building the tools, not children learning the concept. Today's tools for children let them train a computer without writing a single equation. What actually matters is observation — asking "why did it guess wrong?" — which connects to the same thinking skills covered in our article on coding and maths.
How is machine learning different from the AI my child already uses?
The AI your child chats with every day — a chatbot answering questions — is the result of machine learning already trained on an enormous amount of data. What a child practises in a small project is the same underlying idea, just far smaller and easier to see clearly. Understanding that small version helps a child see the chatbot they use daily with real understanding, rather than believing it is as clever as an actual person.
Machine learning is not magic. It is a guess that keeps getting more accurate from examples.
Children from around six can start grasping the concept, and from nine can start hands-on projects. Read more in our article on whether a six-year-old can learn AI. When your child is ready to build something real, the Machine Learning course teaches from zero, and the AI for Kids course lays the groundwork first. A child with some Python already will move faster with the Python course. If you are not sure which course to start with, see our course advisor page.
Frequently asked questions
How is machine learning different from ordinary programming?
Ordinary programs follow every rule a person writes. Machine learning lets the computer work out the rule itself from many examples, without a person writing every rule in advance.
Can a 9-year-old start learning machine learning?
Yes. That age is old enough for a simple hands-on project like teaching a computer to tell cats from dogs. Younger children are better suited to grasping the concept through games and activities rather than writing real code.
Is machine learning related to the AI my child uses every day?
Directly. The chatbots and face-recognition apps your child already uses were all built on machine learning principles — just trained on far more data than a child could ever train alone.