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.

July 3, 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
  • Setting Up the Project
  • Step 1: Defining the Classes
  • Step 2: Gathering Training Data
  • Step 3: Training the Model

Demystify computer vision and supervised learning by training a custom AI model together in twenty minutes.

Article roadmap

What you will learn

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

  2. How to guide a child aged 8 to 16 through building a custom computer vision model.

  3. The core concepts of supervised machine learning, training data, and algorithmic bias.

  4. How to test, iterate, and troubleshoot an AI model using everyday household objects.

Most children consume AI through chatbots, image generators, or video recommendations, but few understand how these systems actually work. By building a custom image classifier, you can demystify artificial intelligence for your child and turn them from passive consumers into active creators. Using a free, web-based tool that requires no coding or specialized hardware, you and your child can train a computer vision model in less than twenty minutes. This hands-on project introduces foundational computer science concepts while fostering critical thinking about how machines perceive the physical world.

To prepare the next generation for an AI-driven world, we must move beyond theoretical explanations. Children learn best by building, testing, and breaking things. Google's Teachable Machine is an exceptional, free educational platform that allows anyone to train a machine learning model using a webcam. It provides an immediate, visual feedback loop that makes complex concepts like neural networks and training data intuitive for children aged 8 to 16.

In this project, you and your child will build a "Desk Object Classifier." The goal is to train a computer vision model to recognize three distinct objects commonly found in a home office: a coffee mug, a notebook, and a smartphone.

Setting Up the Project

To begin, you only need a computer with a working webcam and an internet connection. No registration, login, or paid subscription is required.

  • Open your web browser and navigate directly to Google's Teachable Machine .
  • Click the Get Started button on the homepage.
  • Select Image Project from the list of options, then choose Standard Image Model .

You will now see the project workspace. It consists of three main columns: Class Creation on the left, Training in the middle, and Preview on the right.

Step 1: Defining the Classes

Explain to your child that a "class" is a category or a label that the computer will use to group similar images. For this project, you will create four classes:

  • Rename Class 1 to "Mug" by clicking the pencil icon.
  • Rename Class 2 to "Notebook."
  • Click Add a class at the bottom of the column and name it "Phone."
  • Click Add a class again and name it "Empty Desk." This last class is crucial because it teaches the model what your workspace looks like when no objects are present, preventing false positives.

Step 2: Gathering Training Data

This is the most interactive part of the project. Your child will act as the data scientist, capturing the images that the model will use to learn.

  • Select the Mug class and click the Webcam button.
  • Hold your coffee mug in front of the webcam.
  • Have your child press and hold the Record button. Instruct them to rotate the mug and move it closer and further from the camera. Capture 100 images.
  • Repeat this process for the Notebook and Phone classes.
  • For the Empty Desk class, step out of the camera frame and record 100 images of just the empty background.

Tip for Parents: Explain to your child that the computer does not see a mug the way humans do. It sees patterns of pixels, colors, and edges. By rotating the object, you are helping the computer learn the patterns that remain constant regardless of the angle.

Step 3: Training the Model

Once your data is collected, it is time to train your neural network.

  • Click the blue Train Model button in the middle column.
  • Keep the browser tab open and active while the model trains. This process usually takes less than a minute.
  • Explain to your child that the computer is currently analyzing all the captured images, finding common features for each class, and building a mathematical model to distinguish between them.

Step 4: Testing and Iterating

Once training is complete, the Preview column on the right will activate, showing a live feed from your webcam.

  • Hold the mug up to the camera. Look at the output bars at the bottom of the preview column. You should see the "Mug" bar rise to 100% confidence.
  • Try holding up the phone and the notebook. Observe how quickly and accurately the model switches its classification.
  • Now, test the model's limitations. What happens if you hold up a different mug that was not used in the training data? What happens if you cover half of the phone with your hand?
  • If the model misclassifies an object, have your child analyze why. Did you need more training images? Was the lighting different? Have them add more images to the problematic class and click Train Model again to see if the accuracy improves.

Parent and Educator Sidebar

The Core AI Concept: Supervised Learning

Supervised learning is a type of machine learning where the model is trained on labeled data. In this project, you provided the labels (Mug, Phone, Notebook) and the corresponding data (the webcam images). The computer learned by finding patterns in the labeled data so it could make predictions on new, unseen data.

Conversation Starters:

  • On Data Quality: "If we only trained our model with a black phone, why did it struggle to recognize a white phone? How does the variety of our training data affect how smart our AI becomes?"
  • On Algorithmic Bias: "If self-driving cars are only trained on sunny days, what might happen when it starts to snow? How can bias in training data lead to mistakes in real-world AI systems?"
  • On Future Applications: "Now that you know how a computer learns to recognize objects, how do you think a recycling robot sorts plastic bottles from aluminum cans?"

Action Steps Summary

  • Access the Tool: Navigate to Google's Teachable Machine on any computer with a webcam.
  • Create Your Classes: Set up four distinct categories: Mug, Notebook, Phone, and Empty Desk.
  • Capture Diverse Data: Record 100 webcam images for each class, rotating and moving the objects to provide varied angles.
  • Train Your Model: Click the train button and explain how the computer is analyzing pixel patterns to build its neural network.
  • Test and Troubleshoot: Use the live preview to test the model, identify misclassifications, and add more data to improve accuracy.

Empower the next generation with practical, hands-on AI literacy.

© 2024 PromptHacker. All rights reserved.

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.