liveBook · Manning

Image recognition

As explained in The AI Pocket Book

The task of assigning an image to one of several possible classes based on its visual content.

Image recognition assigns an image to one of several classes by using visual content. A typical example is labeling an image as “strawberry,” “plane,” or “dog.” section 1.31 section 1.27

Recognizing a cat

A cat can be identified through parts such as its tail, eyes, and whiskers, even when their exact positions or orientations differ. Image recognition therefore values the presence of useful parts more than their precise location. section 1.31

A convolutional neural network (CNN) receives an image as a table of pixel values. It applies learned filters that can blur regions, highlight colors, or detect sharp changes such as lines. Several convolutions produce a modified image, which is then downsampled to remove precise spatial detail. Repeating this process lets later filters detect increasingly abstract features built from earlier ones. section 1.31

Training depends on labeled examples and can fail in predictable ways:

  • Supervised learning supplies many images paired with their correct categories; creating those labels can require manually tagging tens of thousands of images. section 1.27
  • Generalization means working on new images rather than only memorizing training examples. section 1.27
  • Overfitting memorizes training examples, while underfitting learns a process too simple to work effectively even on the training data. section 1.27

How The AI Pocket Book covers it

How deep it goes
Explains pixels, learned filters, convolution, downsampling, and abstraction, but stops short of mathematical derivations or implementation details.
Examples
Uses strawberry, plane, dog, and cat images, plus learned filters for blur, color, edges, and directional lines.
What it assumes
Introduces image pixels and labeled examples directly, while assuming only a basic understanding that machine-learning models learn from data.
What you can do after
Evaluate/understand how CNNs classify images and recognize labeling, generalization, overfitting, and underfitting risks.
How it connects
Connects image recognition with convolutional neural networks, supervised learning, generalization, overfitting, and underfitting.

Also explained in

Compare how 2 books explain image recognition →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of The AI Pocket Book. The section links point to the parts of the book it draws on.