Skip to content
Mechna Academy
  • How does it decide?
DecisionSignalsLearningMistakesTry itCheck itOlder readersQuestionsSourcesRelated
How does it decide? / Photo tagging

How does photo tagging decide what is in a picture?

Answer first

Photo tagging decides which word tags fit a picture, such as "dog", "beach" or "cake". It learns from many example photos that people have already labeled, and finds the patterns that go with each tag. Then it tags new photos. Things that look alike can fool it, like a fox in a photo of dogs.

In one line: A program that looks at a picture and adds word tags to it, such as "dog" or "beach".

Last reviewed: 25 October 2026 | 3 min read

What decision does it make?

For each tag it knows, the tagger asks: does this picture show it? One photo can get several tags at once, like "dog" and "beach".

DecisionPossible answers
Does this picture show a dog?Yes: add the tag "dog". No: leave it off. The same question is asked for every tag.

What does it look at?

  • Colors. Every picture is made of tiny dots of color, and that is all the machine gets.
  • Shapes and edges. Patterns in the dots, starting with simple outlines, are combined into bigger shapes that become clues.
  • Examples it learned from. It can only spot things that were in the labeled photos it learned from.

How does it learn the rule?

  1. Collect labeled examples. People gather many photos and label what is in each one, for example "dog" or "no dog".
  2. Learn the patterns. The program uses the labeled photos to learn which patterns go with each tag.
  3. Tag new photos. For a new photo, it adds the tags whose patterns match best.
  4. Test on new photos. People check it on photos it has never seen, to find the mistakes.

Where can it go wrong?

  • Look-alikes. A fox, a wolf or a fluffy toy can share the clues of a dog.
  • Wrong labels in the examples. If a photo of a small dog was labeled "muffin", the tagger learns the wrong thing.
  • Things it never saw. If the examples had no photos of a thing, it cannot tag that thing well.

Try it

Pick the rule that puts every dog photo in the Dog tag bin. Then test your rule on new photos. Toy example: a real tagger learns its patterns from many photos; here you pick the rule.

Toy example: photos described in words, the clues each one has, and whether it really shows a dog.

ItemValuesRight move or bin
Photo 1: a dog running on a beachFour legs: true; Fur: true; Long nose (snout): trueDog tag
Photo 2: a dog catching a ballFour legs: true; Fur: true; Long nose (snout): trueDog tag
Photo 3: a wooden kitchen tableFour legs: true; Fur: false; Long nose (snout): falseNo dog tag
Photo 4: a fluffy wool blanketFour legs: false; Fur: true; Long nose (snout): falseNo dog tag
Photo 5: a cat on a sofaFour legs: true; Fur: true; Long nose (snout): falseNo dog tag
Photo 6: a parrot on a branchFour legs: false; Fur: false; Long nose (snout): falseNo dog tag

Test cases

ItemValuesRight move or bin
Photo 7: a puppy in a basketFour legs: true; Fur: true; Long nose (snout): trueDog tag
Photo 8: a fox in the snowFour legs: true; Fur: true; Long nose (snout): trueNo dog tag
Photo 9: a teddy bear on a bedFour legs: true; Fur: true; Long nose (snout): falseNo dog tag

Check it

How does a photo tagger learn what a dog looks like?

Answer: From many photos people labeled. It learns patterns from labeled example photos.

Your rule tagged the fox as a dog. Why?

Answer: The fox has the same clues as the dogs. Four legs, fur and a long nose fit dogs and foxes, so the rule cannot tell them apart.

What happens if many example photos have wrong labels?

Answer: It learns the wrong patterns. Wrong labels teach it wrong patterns, so its tags get worse.

For older readers

Photo tagging is supervised learning: the model learns from photos labeled with the things they show. Because one photo can have several tags, it is a multi-label classification problem. A common kind of tagger is a convolutional neural network, whose early layers learn simple patterns such as edges and whose later layers learn filters that look more like objects. Wrong labels in the training data lower the quality of the model.

Questions

A photo tagger may have added the tag "dog" to pictures whose patterns match what it learned. A tag is a word attached to a picture.

No. It has learned patterns of color and shape that often go with the word "dog". It does not know what a dog is like.

The toy shared the clues the tagger learned, such as fur and a face shape. Look-alikes are a common mistake.

Sources

  1. University of Massachusetts Amherst: Introduction to Supervised Learning (opens another website)
  2. UMBC machine learning course: multi-class vs. multi-label classification (opens another website)
  3. IEEE Transactions on Neural Networks and Learning Systems: Learning from Noisy Labels (survey) (opens another website)
  4. University robotics course: learning-based perception (lecture notes) (opens another website)

Related machines

  • How does face unlock decide it is you?↗
  • How does search autocomplete decide what to suggest?↗

On this page

What decision does it make?What does it look at?How does it learn the rule?Where can it go wrong?Try itCheck itFor older readersQuestionsSourcesRelated machines

Nothing you do on these pages is sent anywhere. There are no cookies and no ads.

Mechna Academy teaches how machines like this decide.

For grown-ups: privacy For grown-ups: how Mechna Academy works