PH PROMPTHACKER.AI

Build a Teachable Machine Image Classifier With Your Kid

Kids create a hands-on AI project: Build a Teachable Machine Image Classifier With Your Kid. A parent or educator helps them build, test, and explain what the AI tool gets right and wrong.

January 31, 2024 5 min read
Quick Scan

What matters today

Kids create a hands-on AI project: Build a Teachable Machine Image Classifier With Your Kid. A parent or educator helps them build, test, and explain what the AI tool gets right and wrong.

Format KIDS GUIDE
Audience Executives using AI at work
Time 5 min read

Key points

  • What You'll Learn
  • Getting Started with Teachable Machine
  • Step 1: Defining the Classes and Gathering Data
  • Step 2: Training the Model
  • Step 3: Testing and Iterating

Introduce your child to the fundamentals of machine learning by building a custom, real-time image recognition model using a free web tool and a standard webcam.

Article roadmap

What you will learn

  1. How to access and navigate Google's free Teachable Machine platform.

  2. The step-by-step process of training a custom image classification model.

  3. How to gather, label, and clean visual training data with your child.

  4. Core machine learning concepts like training, testing, and algorithmic bias.

Children today are surrounded by artificial intelligence, from video game recommendation engines to voice-activated home assistants. However, most children interact with AI purely as passive consumers, viewing the technology as a form of digital magic. To prepare the next generation of leaders for an AI-driven economy, it is essential to demystify how these systems actually work. You do not need a computer science degree, expensive hardware, or paid software subscriptions to teach your child the core mechanics of machine learning. Using a standard laptop, a webcam, and a free web tool, you can guide your child through building a fully functional image classifier in less than thirty minutes. This hands-on project is designed for children aged 8 to 16, transforming abstract concepts into a tangible, engaging experience that builds critical thinking and technological confidence.

Getting Started with Teachable Machine

The project utilizes Google's Teachable Machine, a web-based tool that makes creating machine learning models fast, easy, and accessible to everyone. To begin, open a web browser on a computer equipped with a webcam and navigate directly to the platform at https://teachablemachine.withgoogle.com/ . Click on the 'Get Started' button and select 'Image Project' followed by 'Standard Image Model'. This interface is entirely visual, making it perfect for young learners. It breaks down the machine learning pipeline into three clear steps: Gather, Train, and Export.

Step 1: Defining the Classes and Gathering Data

A machine learning model learns by example. In this project, your child will teach the computer to distinguish between two or three different categories, known as 'classes'. A highly engaging theme for children is creating a 'Rock, Paper, Scissors' game or a 'Happy Face, Sad Face' detector. For this guide, the classifier will distinguish between a 'Pencil' and a 'Coffee Mug'.

First, rename 'Class 1' to 'Pencil' and 'Class 2' to 'Mug'.

Second, click the webcam button under the 'Pencil' class. Hold a pencil up to the camera and click and hold the 'Record' button. Instruct your child to slowly rotate the pencil, move it closer and further from the screen, and tilt it at various angles. Capture at least one hundred images. This variety is crucial because it teaches the model what a pencil looks like from different perspectives.

Third, repeat this exact process for the 'Mug' class, capturing at least one hundred images of a coffee mug. Explain to your child that they are acting as the teacher, providing the computer with the raw data it needs to learn.

Step 2: Training the Model

Once the data is gathered, click the 'Train Model' button in the middle column. This process takes place entirely within the web browser and requires no backend coding. During training, the computer analyzes the pixels in the images, looking for patterns, colors, and shapes that consistently appear in the pencil photos but not in the mug photos.

Instruct your child to keep the browser tab open and active during this process. It should take less than one minute. As the progress bar fills, explain that the computer is building a neural network, a digital web of connections inspired by the human brain, to map visual inputs to the correct labels.

Step 3: Testing and Iterating

Once training is complete, the 'Preview' panel on the right side of the screen will activate, turning on the webcam. This is the most exciting phase for children. Hold a pencil up to the camera and watch the real-time confidence bars at the bottom of the screen. The model should show a high confidence percentage (such as ninety-nine percent) for 'Pencil'. Now, hold up the coffee mug and watch the bar shift instantly to 'Mug'.

To deepen the learning experience, encourage your child to try and 'break' the model. What happens if they hold up a pen instead of a pencil? What happens if they hold the pencil behind their head? What happens if they cover half of the mug with their hand? When the model makes a mistake, explain that this is not a failure, but an illustration of how AI is limited by the data it was trained on. If the model has never seen a pen, or a pencil held in a specific way, it cannot accurately classify it.

Parent and Educator Sidebar: Core AI Concepts

To help guide the conversation during and after the project, use this structured framework to reinforce the educational value of the activity.

Core Concept: Supervised Learning. This project demonstrates supervised learning, where an algorithm learns from labeled training data (the images labeled 'Pencil' or 'Mug'). The AI does not actually 'know' what a pencil is; it simply recognizes mathematical patterns in the pixel arrangements.

  • Conversation Starter 1: "How do you think a self-driving car uses this exact same technology when it is driving down a busy street?" (Target answer: It classifies objects as stop signs, pedestrians, or other cars).
  • Conversation Starter 2: "If we only trained our pencil class using yellow pencils, what do you think would happen if we held up a red pencil?" (Target answer: The model might fail because its training data was too narrow, which introduces the concept of algorithmic bias).

Action Steps Summary

  • Open Teachable Machine: Open a web browser and navigate to https://teachablemachine.withgoogle.com/ to start a standard image project.
  • Define Classes: Create two distinct classes, such as 'Pencil' and 'Mug', and use the webcam to record at least one hundred diverse images for each.
  • Train Model: Click 'Train Model' and observe the browser-based training process with your child.
  • Test Real-Time: Test the trained model in the preview panel using real-time webcam inputs.
  • Iterate and Discuss: Experiment with new objects to test the limits of the model and discuss the core concepts of supervised learning and training bias.

Introduce your child to the future of technology today.

Open Teachable Machine this weekend and build your first custom image classifier together.

Bottom line

The point of Build a Teachable Machine Image Classifier With Your Kid is not a perfect final project. It is helping kids see how examples, labels, and feedback shape an AI system, then asking better questions about the tools around them.

About the author

Pierre Bradshaw Founder, PromptHacker.ai

Pierre has spent 25+ years building practical learning and growth systems, with machine-learning work dating back to 2012. PromptHacker kids projects focus on real creation, safety, and AI literacy.

Email us
Free weekly briefing

Three deep dives. Four useful moves. One email worth opening.

PromptHacker turns the AI firehose into practical next steps for work, health, family, and everything time keeps trying to steal.