What Did an AI Image Classifier Actually Recognize?

Use a difficult photograph to distinguish an image label from an object location and to test what a change of setting does to accuracy.

A researcher compares a bird photograph with an enlarged view on a light table.
Changing the crop can remove the background cues that accompanied an object in the original photograph.

A bird is partly hidden behind a feeder. An image-recognition AI model assigns one label to the photograph. Did it recognize the bird’s markings, or did the feeder make the answer easier? Start by naming the task. A single image label, a box around each bird and the identity of an individual bird are different outputs.

Which photograph and which label count?

For species classification, decide how to handle an obscured bird, multiple species and an unfamiliar species outside the reference list. Preserve the reference observer’s uncertainty. For detection, also compare the number and location of boxes against independently marked objects. A correct image label alone reveals little about which region supported the prediction.

A vehicle windshield frames a street scene.
Counting localized objects requires reference locations as well as names.

Why a challenging set can be informative

Hendrycks and colleagues assembled ImageNet-A from unmodified natural images selected for their difficulty for image classifiers. One evaluated DenseNet-121 achieved around 2% accuracy on that set. The selection procedure makes this a test of difficult cases. It cannot estimate the average failure rate of a particular wildlife camera in ordinary use. The ImageNet-A natural image evaluation

A city street scene is overlaid with colored lines.
Test performance on the population of images the classifier will actually see.

Can the result travel to a new camera?

Hold out sites or recording sessions, so almost identical bursts from one bird stay on the same side of a train/test split. Check typical photographs and a planned difficult subset. Record species, light, angle and visibility for misses. If the intended task is to locate other photographs of this individual object, evaluate retrieval separately. How AI Finds Another Photograph of the Same Place When Human Labelers Disagree With Each Other and the AI

A person stands in a shop holding an object.
A correct label does not reveal which region of the image supplied the cue.

Try it with the evidence

Compare a typical set with a deliberately hard one

Source notes. Fictional camera study. On 80 clear views the AI labels 72 correctly. On 20 obscured views it labels 8 correctly. In a separate representative field count, 25% of views are obscured. Assume each group’s observed accuracy transfers.

Prompt. Compute each group’s accuracy, the accuracy on these 100 test images, and the expected accuracy at the field mix. Which assumption needs a field test?

Check your reading

Clear views are 90% correct and obscured views 40%. The test total is 80/100, or 80%. At the specified field mix the weighted estimate is 0.75 × 90% + 0.25 × 40% = 77.5%. The transfer of both group-specific rates to field images needs checking.

Illustrated field notes

Objects, regions and visual evidence
Trees and a figure beside a path in muted light.
The surrounding scene can influence a prediction about the object.
A face is outlined in blue light.
An identity claim needs a different reference from an object category.
Circular forms are arranged in a bank of equipment.
A specialist category may need a reference expert to resolve ambiguous cases.
A moving subject appears against a colorful background.
Adjacent video frames can be near-duplicates of the same event.
Testing estimates in a new setting
Two versions of a portrait sit side by side.
An enhanced view can alter details used by the classifier.
A phone screen shows an outdoor scene.
A search tag can be useful even if it is too broad for precise identification.
A figure stands amid an illuminated overlay.
A useful field display should distinguish uncertainty from a confirmed observation.