[← Blog](https://significanthobbies.com/blog)

Achievement  3 min read  2026-11-08  Updated 2026-11-08

# How to teach a small image classifier to tell two objects apart

Train a small image classifier on two familiar objects, then test it with new views to see whether it learned useful visual differences.

![A train crossing a mountain viaduct](https://significanthobbies.com/experiences/railway-800.webp)

Train a small image classifier on your own objects

Keep the idea in your list, then add your own steps, notes, and updates as it takes shape.

Add to my list [View the experience plan](https://significanthobbies.com/experiences/train-a-small-image-classifier-on-your-own-objects)

## Choose categories with visible differences

A small classifier is easier to interpret when the categories are concrete and visually distinct. Try two household objects, such as a mug and a spoon, or two types of packaged item that are safe to photograph. Avoid categories that differ only by a tiny label or by the place where they are photographed. Keep the project to objects rather than people, documents, or anything private. Google’s Teachable Machine describes image classification as gathering examples into classes, training, and testing new examples. That sequence is useful for a first experiment because each stage gives you a specific decision to inspect rather than a mysterious final score.

## Gather examples without teaching the background

Place the objects on a plain surface and collect photos from several angles, distances, and lighting conditions. Keep the classes reasonably balanced; if one object has many examples and the other only a few, the model may favor the larger set. Change the scene as well as the viewpoint, but do not let the backgrounds become clues. For example, if every mug photo is taken near a window and every spoon photo against a dark desk, the classifier could learn the window or desk instead of object shape. A few dozen deliberately varied examples are a manageable start. Label each class consistently and remove blurry pictures that do not show the object.

## Train, then test on pictures you held back

Use the tool’s training action only after the class examples are ready. Before looking at its preview, reserve a small set of new photos that were never used during training. Test those from a different angle or in a new location. If the model recognizes the same image it was shown but fails on a held-back photo, it has memorized a narrow visual pattern rather than learning a robust distinction. That is not a personal failure; it is the most useful result of the exercise. Record which photos it mislabels and look for a common feature, such as glare or a patterned surface.

## Change one thing at a time

When the classifier struggles, add examples that address the specific failure instead of capturing hundreds more at random. If glare hides one object, photograph both categories under softer light. If a background is acting as a clue, add images of each object against several surfaces. Then train again and repeat the same held-back test. Keep an untouched test set for comparison; if you continually add every failed test image to the training set, the result stops measuring generalization. Treat confidence values as signals to investigate, not as proof that the model understands what the objects are.

## Decide what the experiment can show

A two-class model is a learning activity, not a reliable detector for safety, security, or important decisions. It has only seen the limited examples you provided and may fail on a new camera, room, lighting condition, or object. Teachable Machine says the examples are grouped into categories, trained, and immediately tested; the work remains dependent on those examples. If you want to share the demo, explain the categories and the failure cases alongside it. Your next step is to make one model that distinguishes two objects on a desk, then write down one surprising misclassification and what you will change in the next trial.

## Sources and further reading

- [Teachable Machine v1](https://teachablemachine.withgoogle.com/v1/)

Google Creative Lab · Supports local browser training, varied camera angles and the experimental classifier’s limits in recognizing higher-level concepts.

## Keep exploring

- [Control a Scratch project with a physical object](https://significanthobbies.com/experiences/control-a-scratch-project-with-a-physical-object)

- [Donate spare computing time to a distributed research project](https://significanthobbies.com/experiences/donate-spare-computing-time-to-a-distributed-research-project)

- [Help classify research images with Stall Catchers](https://significanthobbies.com/experiences/help-classify-research-images-with-stall-catchers)

More from the journal

[💻 Achievement How can a Scratch project respond to a physical object? Turn one ordinary object into a Scratch controller by choosing a supported input, mapping one clear action, and testing the response in small steps. 4 min read Read →](https://significanthobbies.com/blog/control-a-scratch-project-with-a-physical-object)

[🖥️ Contribution How to choose a trustworthy volunteer computing project Compare a volunteer computing project’s goals, published results, security practices, and hardware demands before letting it use spare computer time. 3 min read Read →](https://significanthobbies.com/blog/donate-spare-computing-time-to-a-distributed-research-project)

🗺️

## Make room for this experience

Start with a version that fits your time, budget, and curiosity. Keep your own plan in My list.

[Plan the experience →](https://significanthobbies.com/experiences/train-a-small-image-classifier-on-your-own-objects)

[← Back to all articles](https://significanthobbies.com/blog)

> Source: https://significanthobbies.com/blog/train-a-small-image-classifier-on-your-own-objects
