Image Classification

The task of assigning an image to one or more categories based on what it contains.

Can the same photograph have two correct labels?

A catalogue photograph shows an outdoor market beside a river. Whether “market” and “river” can both be correct depends on the label scheme.

One required category

An archive filing each image under one main subject might choose “market.” Its guideline gives the main activity priority over the setting.

Several allowed tags

A discovery tool can attach both “market” and “river.” Each tag answers its own question about what appears in the photograph.

Decide what a missing label means

If older catalogues recorded just the main subject, the missing river tag does not establish that water is absent. Set the labeling rule before evaluating a model, then inspect false positives and missed examples for each category. Whole-image tags also leave the river’s location unspecified.

What To Keep In Mind

High benchmark accuracy does not automatically mean strong real-world performance. Lighting, blur, domain shift, class imbalance, and weak labels can all hurt reliability. The most useful classification systems are usually the ones that are well-calibrated, monitored, and matched to the right operational setting.

Follow the idea

Object detection locates an item within the image.

Computer vision includes tasks with many other kinds of output.

Examples in the AI guides

More chapter examples (2)
Related Yenra articles (2)

Source · scikit-learn guide to multiclass and multilabel tasks

Return to Image Classification in the A–Z glossary