Guided project · Foundations · AI governance

Train an image recogniser and test it for bias

Train a computer vision model in your browser, then discover how the training data decides who and what it works for.

About 45 minBeginnerNo coding needed
0 of 7 steps done

What you'll build

An image model that recognises 3 objects, and a short bias report showing when it fails.

What you'll learn

  • How training data shapes a model
  • Testing on new conditions
  • Spotting and reducing bias

You'll need

Teachable Machine (free, no sign-up) and a webcam or photos

Create a free account to unlock this project

The step-by-step instructions, copy-ready prompts, progress tracker and portfolio texts are for members. It's free, takes under a minute, and unlocks all guided projects.

Want to try first? These projects are open to everyone: Prompt lab and One idea, five posts.

Before you start

Use any free AI chatbot (ChatGPT, Claude, Gemini or Copilot). Never paste private or confidential information.

Step by step

  1. Start a project

    Open Teachable Machine → Get started → Image project → Standard image model.

    You should see: Two empty classes on screen.

  2. Collect training data

    Rename the classes to your objects and add a third class. For each, hold the object to the webcam and record about 50 images. Use only one background and good light.

    You should see: Three classes, each with about 50 pictures.

  3. Train and test

    Click Train model, then hold each object in front of the camera.

    You should see: High confidence bars for the right object.

  4. Change the conditions

    Test again with a different background, dim light, the object far away, and a similar object of a different colour.

    You should see: Confidence drops or it guesses wrong. The model only learned the conditions it saw.

  5. Write a bias report

    Note in a table: condition, what happened, and why ("no dark images in training").

    You should see: A clear link between missing training data and failures.

  6. Fix the data

    Add 20 images per class in the new conditions and train again.

    You should see: Much better results in the conditions you added. More varied data means a fairer model.

  7. Connect it to the real world

    Write 3 lines on how the same problem affects face recognition or medical images when some groups are missing from the data.

    You should see: You can now explain AI bias with your own example.

Level up

  • Try an audio project: teach it to recognise 3 sounds.
  • Export the model and share the link with a friend to test.

Lessons behind this project

Show it off

Finished? Post about it on LinkedIn. Here's a starting point; add a screenshot and your own words.

Copy this post
I trained an image recogniser in my browser, then broke it with bad lighting! A great hands-on lesson in why diverse training data matters for fair AI. Learned with AI From Zero.
Share on LinkedIn

Add it to your portfolio

Employers love seeing what you've built. Use these ready-made texts, then add your own results and a screenshot.

1. A line for your CV or LinkedIn "Projects" section

Copy for your CV
Train an image recogniser and test it for bias: An image model that recognises 3 objects, and a short bias report showing when it fails. Skills: How training data shapes a model, Testing on new conditions, Spotting and reducing bias. Tools: Teachable Machine (free, no sign-up) and a webcam or photos.

2. A README for GitHub

Create a free GitHub account, make a new repository, add a file called README.md and paste this in along with screenshots of your work.

Copy README.md
# Train an image recogniser and test it for bias

Train a computer vision model in your browser, then discover how the training data decides who and what it works for.

## What I built
An image model that recognises 3 objects, and a short bias report showing when it fails.

## What I learned
- How training data shapes a model
- Testing on new conditions
- Spotting and reducing bias

## Tools
Teachable Machine (free, no sign-up) and a webcam or photos

## How it works
1. Start a project
2. Collect training data
3. Train and test
4. Change the conditions
5. Write a bias report
6. Fix the data
7. Connect it to the real world

## Results
(Add a screenshot and 2–3 sentences about what you found. Never include API keys or personal data.)

## Next steps
- Try an audio project: teach it to recognise 3 sounds.
- Export the model and share the link with a friend to test.

---
Built by following the free guided project at https://learnaifromzero.com/projects/image-classifier-bias.html