- Introduced by
- He, K. et al. (ResNet); Tan, M. & Le, Q.V. (EfficientNet)
- Year
- 2016
- Type
- Deep convolutional neural network (supervised)
What does it do?
CNN image classification uses deep convolutional architectures, such as ResNet (He et al., 2016) and EfficientNet (Tan & Le, 2019), to assign images to categories; VGG is another widely used family of such networks.
Stacked convolutional layers learn a hierarchy of visual features directly from pixels. Residual (skip) connections ease the training of very deep networks, which otherwise suffer from degradation: adding layers can make training less accurate rather than more accurate.
The intuition behind the method
Instead of hand-engineering features, a convolutional network slides small learnable filters across the image, detecting edges and textures in early layers and combining them into shapes and objects in deeper layers. As plain networks become deeper they grow harder to optimise, and adding layers can even increase training error. Residual connections add a shortcut that lets each block learn only the change relative to its input, which makes extra depth easier to exploit.
History
Deep convolutional networks became central to image classification in the 2010s. He et al. (2016) introduced ResNet at CVPR, with residual connections that made it practical to train networks far deeper than earlier plain stacks; the paper reports networks of up to 152 layers on ImageNet. Tan & Le (2019) proposed EfficientNet, which scales network depth, width and input resolution together. VGG, also named on this page, is a widely used reference for stacked convolutional designs.
When to use it
Choose this approach when the input is image data and the goal is to assign images to labelled categories, and when you have a labelled image set (as a rough practitioner heuristic, around 500 images or more) and ideally access to a GPU. Pretrained backbones are the usual route when the labelled set is modest. With small sets a deep CNN is prone to overfitting, so transfer learning must be done with care. With very few labelled images (on the order of 100 or fewer) the filters are unlikely to learn meaningful features, and a classical classifier such as SVM is usually the safer option. Do not choose it for tabular data. It is also a poor fit when a human-readable rule for each decision is a hard requirement. The method places no normality assumption on the input, but augmentation should be applied.
Limitations and considerations
- Data-hungry: deep CNNs generally need substantial labelled data. As a rough heuristic, overfitting becomes a serious risk with fewer than about 500 labelled images, and with around 100 or fewer the filters are unlikely to learn meaningful features.
- Training is computationally heavy; a GPU is strongly recommended, and CPU-only training becomes impractical for realistic datasets.
- Learned filters and stacked residual blocks give no direct, human-readable rule for a decision, so explaining individual predictions requires separate post-hoc tools.
- Pretrained backbones carry the visual statistics of their original training data, which may not match the target images.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Learns visual features directly from pixels, so no separate hand-designed feature extraction step is needed.
- Residual connections allow much deeper networks to be trained than plain stacks, as reported for ResNet on ImageNet.
- Pretrained backbones (ResNet, VGG, EfficientNet) allow transfer learning when the labelled image set is modest.
- No normality assumption is placed on the input data.
- EfficientNet scales network depth, width and input resolution jointly, a design choice described by Tan & Le (2019).
Applications
- Assigning images to categories in natural, medical and remote-sensing domains, where labelled examples exist.
- Transfer learning: fine-tuning a pretrained backbone on a new labelled image task.
- Visual quality control and inspection in engineering settings.
- Prediction tasks in which the input is image data rather than tabular features.
How it works
How it works
Each convolutional layer applies a bank of small learnable filters across the image, producing feature maps that highlight local patterns such as edges, corners and textures. Stacking many such layers builds an increasingly abstract hierarchy of visual features, learned directly from the pixels rather than designed by hand.
Very deep plain stacks show a degradation problem: adding layers can make training less accurate, not more. Residual (skip) connections, central to ResNet, add a block's input back to its output, so the block only has to learn the residual change, as the formula y = F(x) + x expresses. The ResNet paper reports networks up to 152 layers deep on ImageNet and states that residual networks are easier to optimise. VGG uses uniform stacks of small convolutions, while EfficientNet scales depth, width and input resolution together (Tan & Le, 2019).
Formula
y = \mathcal{F}(x, \{W_i\}) + xThe final feature maps are pooled and passed to a classification head that outputs a probability for each category. A common practice is to start from a model pretrained on a large dataset and replace this head with one for the target classes. Data augmentation (flips, crops, rotations and similar transforms) is applied to enlarge the effective training set and reduce overfitting.
Common pitfalls
- Training a deep CNN from scratch on a small dataset instead of fine-tuning a pretrained backbone.
- Skipping data augmentation, so the network memorises the training images rather than learning the categories.
- Fine-tuning every layer of a pretrained backbone at a high learning rate on a small set, which can erase the pretrained features.
- Reporting only overall accuracy on imbalanced categories, where a model can score well by favouring the majority class; per-class metrics are needed.
- Applying it to a few dozen images where a classical model such as SVM would be more reliable.
Frequently asked questions
How many images do I need?
There is no fixed threshold, and more labelled data almost always helps. As a rough practitioner heuristic, around 500 labelled images is a useful minimum. With substantially fewer, deep CNNs overfit easily, so transfer learning from a pretrained backbone or a simpler model is usually preferable. With around 100 images or fewer, the filters are unlikely to learn meaningful features.
Do I need a GPU?
A GPU is strongly recommended. Training deep convolutional networks is computationally heavy, and on a CPU alone training times become impractical for realistic datasets.
Which architecture should I pick: ResNet, VGG or EfficientNet?
ResNet's residual connections make very deep networks trainable, and it is a common default. VGG uses simple uniform stacks of convolutions. EfficientNet scales depth, width and input resolution together (Tan & Le, 2019). Starting from a pretrained version of any of them is usually the most practical route.
Why does data augmentation matter?
Augmentation (flips, crops, rotations and similar transforms) expands the effective training set and exposes the network to more variation, which reduces overfitting. With limited image data it is one of the most important steps for generalisation. It should be applied to the training split only.
How should I evaluate the model?
Hold out a test set that is never used for training or model selection, and report per-class precision, recall and F1 score together with a confusion matrix. Overall accuracy alone can be misleading when some categories are rare.
Can I trust the predicted probabilities?
Not automatically. The softmax outputs of a trained network are often overconfident and do not necessarily match true likelihoods, so calibration should be checked on held-out data before the probabilities are used for decisions. Also check for near-duplicate images across the training, validation and test splits, since such leakage inflates results.
Related methods
Sources
He, K., Zhang, X., Ren, S. & Sun, J. (2016). Deep Residual Learning for Image Recognition. CVPR.
Open DOI referenceTan, M. & Le, Q.V. (2019). EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks. ICML, PMLR 97, 6105–6114. arXiv:1905.11946.
Open publication reference