Image classification assigns a single label from a predefined set to an entire image. The model outputs a probability over all classes; the highest probability is the prediction. It is the foundational task of computer vision.
Input — Image tensor [H × W × 3] fed into a convolutional neural network.
Feature extraction — Convolutional and pooling layers extract hierarchical visual features — edges, textures, shapes, then semantic patterns.
Classification head — Fully connected layers map extracted features to a probability distribution over all classes (via softmax).
Training — Cross-entropy loss measures how far the predicted probabilities are from the true one-hot label. Gradients flow back to update the model.
AlexNet (2012) — Proved deep CNNs on GPUs dramatically outperform hand-engineered features. Started the deep learning revolution.
VGG (2014) — Showed depth with small 3×3 filters was the key to performance.
ResNet (2015) — Residual (skip) connections enabled 50–150+ layer networks. Still widely used.
EfficientNet (2019) — Compound scaling of width, depth, and resolution. Better accuracy with fewer parameters.
Classification assigns one label per image — not location, not count. It assumes a closed label set: if an image contains a class not in training, the model still outputs its most confident known class. For location or multi-object tasks, use detection or segmentation.
Ask the AI assistant about image classification, how CNNs learn to classify images, or the difference between classification and detection.