Starting and learning

Machine learning for kids: free tools by age

Machine Learning for Kids (machinelearningforkids.co.uk) is a free website by Dale Lane where children train a computer to recognise text, pictures, numbers or sounds, then use it in Scratch or Python projects. This guide helps parents and teachers choose it or another free tool by age, start without an account and run a first project together.

Where to start

Choose by age: sorting games and Quick, Draw! for young children, AI for Oceans and Teachable Machine from about age 8, Machine Learning for Kids once a child can use Scratch, and Python for teenagers. Use your own drawings, objects or public examples, never personal photos or private information.

Free machine learning tools for kids, by age

Preschool to age 7: sorting games and drawing guesses

Young children need no special equipment. Sort toys or pictures by a rule you invent together, then ask how you would teach a robot to do it. Play a drawing game where the computer guesses, reading the prompts aloud, and talk about why it was right or wrong.

Real example: Quick, Draw!. Google's Quick, Draw! asks a neural network to recognise your doodle and adds drawings to a large doodle dataset shared publicly for machine learning research.

From about 8: train a model in a game

Children label examples, watch a model learn from them and see how their own choices change what it does. It needs no coding and works well as a first classroom lesson.

Real example: AI for Oceans. Code.org lists AI for Oceans for grades 3 to 12 as a one-hour lesson: you train a real machine learning model to identify sea creatures and trash in the ocean.

From about 8, with an adult: teach the computer your own examples

Children show the webcam a few examples of each thing, such as a thumbs up and a wave, and the computer learns to tell them apart. Then they test it and find where it fails, for example in different lighting.

Real example: Teachable Machine. Google's Teachable Machine trains on images, sounds or poses with no coding or account. Its FAQ says training happens in your browser tab, and samples are not sent to any server unless you save the project to Google Drive.

Scratch users, about 8 to 14: build games that learn

Once a child is comfortable in Scratch, they can collect examples, train a model and use it in a game or chatbot they build themselves. Beginner worksheets supply most of the code, so the focus stays on the machine learning.

Real example: Machine Learning for Kids. Dale Lane's free site has been available since 2017 and is used by schools, code clubs and families. His book of the same name (No Starch Press, 2021) is a paid companion with Scratch projects for ages 12 and up.

Teenagers: structured lessons, then Python

Teenagers can follow lessons that explain how models are trained and where they go wrong, then train their own models in Python on public datasets such as Palmer Penguins.

Real example: Experience AI. Developed by the Raspberry Pi Foundation and Google DeepMind, Experience AI offers free lessons for secondary school classrooms, with lesson plans, slide decks, worksheets and videos that also work in coding clubs.

How to start with Machine Learning for Kids

Yes, kids can learn machine learning, and you need only a web browser to start. Machine Learning for Kids runs entirely online with nothing to install, and its Try it now option needs no sign-up. These steps take a child from a first model to a Scratch game.

  1. Open the site and click Try it now. Go to machinelearningforkids.co.uk, click Get started, then Try it now. Every feature works without registering; you can keep one project at a time, and it is deleted after at least four hours.
  2. Teachers: set up a class account. Sign up as a teacher or code club leader to manage students from an admin page. An unmanaged class account uses API keys from your own free IBM Cloud account; for a managed one, you email Dale Lane to set it up.
  3. Pick a beginner worksheet. Open Worksheets and filter by difficulty. Beginner worksheets include most of the Scratch code already, and each project is written to last a single lesson.
  4. Train, test, then make. In Train, add examples for each label. In Learn & Test, train the model and try new examples. In Make, open Scratch 3 or Python and build the project, then add examples wherever the model gets things wrong.
  5. Move to Python. Teenagers ready for typed code can repeat the same ideas in Python with real datasets. Taught in the Python track of Foundations of AI

Machine learning tips for parents and teachers

If you're a parent or teacher

Parents and teachers do not need to know machine learning. Keep sessions short and hands-on, let the child choose what to teach the computer, and ask three questions each time: what did it learn from, what did it get wrong, and how could we fix it? Use your own drawings, objects or public examples, never photos of other people, and supervise webcam and microphone use.

If you work in machine learning

If you work in machine learning and want to help a school or code club, start from examples rather than code, and treat mistakes and fairness as part of the activity. Offer to run one lesson from an existing worksheet, such as Machine Learning for Kids' Fooled project on models that are trained badly.

Roles that do this work: Parent or carerComputing teacherCode club leaderSTEM outreach volunteer

Tools you will use

ToolWhat you use it for
Machine Learning for KidsDale Lane's free site: children collect examples, train models that recognise text, pictures, numbers or sounds, and use them in Scratch or Python. Try it now needs no account; teachers can create class accounts.
Machine Learning for Kids worksheetsStep-by-step project guides, each written to last one lesson, graded beginner, intermediate and advanced, with teacher's notes.
Teachable MachineGoogle's no-code tool for teaching a computer your own images, sounds or poses from a webcam or microphone, with no account and training in the browser.
AI for OceansCode.org's one-hour activity for grades 3 to 12: label sea creatures and trash and watch a model learn from your choices. Runs on computers, Chromebooks, tablets and phones.
ScratchFree block-based coding from the Scratch Foundation and MIT Media Lab, designed for ages 8 to 16, where children turn a trained model into a game or story.
Experience AIFree lessons from the Raspberry Pi Foundation and Google DeepMind for secondary school classrooms and code clubs, with lesson plans, slides, worksheets and videos.

Public data to practise on

  • Quick, Draw! dataset: Doodles drawn by players of Google's Quick, Draw! game, browsable online by category, for talking about what the computer learned from.
  • Palmer Penguins: Measurements of three penguin species, a friendly table for teenagers to invent a sorting rule and then compare it with a model.

Your first project

With an adult, open Machine Learning for Kids, click Get started, then Try it now: no account is needed, and the project is deleted after at least four hours. Download the beginner Make me happy worksheet from Worksheets, create a text project with one label for kind messages and one for mean ones, and type about ten examples of each. Train the model, test it with sentences it has not seen, then build the Scratch character that smiles or cries. Finish by finding a sentence it gets wrong and adding examples to fix it.

Keep the result, your code and a short note on what didn't work. That record is worth more than the score.

Common questions

What is Machine Learning for Kids?
A free website at machinelearningforkids.co.uk, built by Dale Lane and first released in 2017. Children train models to recognise text, pictures, numbers or sounds and use them in Scratch or Python. Dale Lane's book of the same name (No Starch Press, 2021) is a paid companion for ages 12 and up.
At what age can kids start learning machine learning?
Preschoolers can sort objects by rules and talk about examples. From about 8, children can train models with an adult in AI for Oceans, listed for grades 3 to 12, and Teachable Machine. Machine Learning for Kids suits children who can use Scratch, which is designed for ages 8 to 16. Typed Python suits teenagers.
What equipment do kids need for machine learning?
A computer or Chromebook with a current web browser is enough for every tool on this page, and AI for Oceans also runs on tablets and phones. Picture and sound projects need a webcam and microphone. No special kit, graphics card or paid software is required.
Is it safe for kids to try machine learning tools?
Choose tools from known organisations and read their privacy notes. Machine Learning for Kids' Try it now mode needs no account and deletes projects after at least four hours. Teachable Machine needs no account, and its FAQ says samples stay in the browser unless you save the project to Google Drive. Supervise webcam and microphone use.
Do kids need to know coding to learn machine learning?
No. AI for Oceans and Teachable Machine need no code. Machine Learning for Kids uses Scratch blocks, and Python can come later for teenagers who want typed code.

First Principles, the SchoolWhool newsletter

One machine learning idea, explained properly, every week.

The intuition, the common mistake, and a five-minute way to try it yourself. Written by Gaurav.

Learn the machine learning behind it, from first principles.

Start with Python from zero, free. Every stage after that builds on the last, and a person answers your doubts.