ATLAS NOVA My AtlasVelocer ↗

Technology · Machine learning

Convolutional neural network

Deep learning neural network

A convolutional neural network (often shortened to CNN or ConvNet) is a kind of artificial neural network built to find patterns in data that has a spatial or sequential order, such as the pixels of an image or the samples of a recording.

It belongs to the family of deep learning methods, meaning it is made of many stacked layers of simple computational units, and it is trained rather than programmed: instead of a person writing rules for what to look for, the network adjusts its own internal numbers until its outputs match the right answers on a large set of examples.⁠[1] What sets it apart from an ordinary neural network is the convolution, an operation that slides a small filter across the input and records how strongly the local pattern matches at every position. Because the same filter is reused at every position, the network gains some invariance to where a pattern appears.⁠[2]

Key facts
15.3%AlexNet top-5 test error, beating 26.2% runner-up (Krizhevsky et al. 2017)⁠[3]
84.0%Deep ConvNet mean EEG decoding accuracy versus FBCSP's 82.1% (Schirrmeister et al. 2017)⁠[4]
99.95%Accuracy of CNNs identifying hospital system from radiographs (Zech et al. 2018)⁠[5]
0.81Fine-tuned GoogLeNet true positives per three false positives, versus 0.61 from scratch (Shin et al. 2016)⁠[6]

Overview

What a convolutional neural network is

A concrete case makes the idea clearer. Suppose the task is to decide whether a photograph contains a face. The raw input is a grid of numbers, one per pixel per colour channel. Early layers of the network respond to small, local things: a patch of light against dark, a short edge at a particular slant. Later layers combine those responses into larger structures, a curve, a corner, then an eye or a nose, and the final layers combine those into a decision about the whole picture. This is the sense in which a CNN learns a hierarchy of features: simple patterns at the bottom, increasingly complex and abstract ones at the top, with each level built from the level below.⁠[7] The same principle applies to a one-dimensional signal such as a sound recording or a heartbeat trace, where the filter slides along time instead of across a picture.

A colour-coded 4 × 4 matrix leads through four maximum calculations to a 2 × 2 matrix containing 4, 5, 3 and 7, with four numbered explanation boxes below.
Max pooling keeps the largest response in each non-overlapping 2 × 2 region. With stride 2, this 4 × 4 feature map becomes a 2 × 2 map while preserving the regions' spatial order. View full-size image.Max Pooling Shrinks Feature Maps by Atlas Nova. Illustration generated with AI for this article and checked against its text.

The architecture that carries this out has three recurring parts. Convolutional layers hold the filters and produce feature maps, which are grids recording where each filter fired strongly. Pooling layers shrink those maps, typically by keeping only the strongest response in each small neighbourhood, which reduces the amount of computation and makes the result less sensitive to tiny shifts in position. Fully connected layers at the end take the condensed representation and turn it into a final answer, such as a category label or a probability. Training proceeds by backpropagation, an algorithm that compares the network's output with the correct label, computes how wrong it was, and works backwards through the layers to adjust every filter slightly in the direction that reduces the error.⁠[7] Repeated over many examples, this process tunes the filters into detectors of whatever patterns actually distinguish the categories in the data.

The appeal of the approach is that the features are learned from the raw input rather than designed by hand. In older pipelines, an engineer chose which measurements to compute from an image, and the classifier worked only from those; the choice was field-specific and often required substantial human effort, and a poor choice limited what any later stage could achieve. A CNN absorbs that step into the model itself, so the same general recipe can be applied across many different application domains. This capacity to work directly from raw data, sometimes called end-to-end learning, is the property most often cited as the method's central advantage.⁠[1]

That advantage comes with costs and open questions. A CNN has many adjustable values and many design choices, such as how many layers to use and what kind of nonlinearity to apply at each unit, and its performance is sensitive to those choices.⁠[1] It generally needs a large amount of labelled training data, can take a long time to train, and is difficult to interpret.⁠[4] The method's standing in any particular field is therefore an empirical question rather than a settled one, and the sections that follow take up where the idea came from, how the pieces work in detail, how the networks are trained, and where they succeed and fail.

A convolutional neural network learns its own features from raw data by sliding reusable filters across the input, stacking the results into a hierarchy from simple patterns to complex ones.

History

From early vision models to deep learning

The idea of building a machine that sees by stacking layers of simple pattern detectors is older than the deep networks that made it famous. In 1980 Kunihiko Fukushima developed an artificial neural network called the neocognitron, a multilayered design that could help a computer learn to recognise visual patterns, and he went on to develop the first convolutional neural network, modelled on the organisation of the visual cortex found in animals. The design was based on the visual cortex organization found in animals.⁠[8]

A grid of numbers in a 6x6 single-channel image is divided into 2x2 blocks, with the maximum value of each block highlighted in red and collected into a smaller 3x3 max-pooled output on the right.
A grid of numbers in a 6x6 single-channel image is divided into 2x2 blocks, with the maximum value of each block highlighted in red and collected into a smaller 3x3 max-pooled output on the right. View full-size image.Convolutional neural network, maxpooling by Daniel Voigt Godoy. CC BY 4.0, via Wikimedia Commons. Scaled to 960 pixels wide; no crop or other changes by Atlas Nova.
Figure 1. ImageNet contest error rates for two entries. Top-5 test error rate in the ILSVRC-2012 competition for the winning convolutional network and the second-best entry. The source states: “achieved a winning top-5 test error rate of 15.3%, compared to 26.2% achieved by the second-best entry.” (Krizhevsky et al. (2017)).⁠[3]

For a long time, however, the approach stayed on the margins.

The turning point came in 2012, when a variant of a deep convolutional network was entered in the ImageNet ILSVRC-2012 challenge, achieving a winning top-5 test error rate of 15.3 percent compared with 26.2 percent for the second-best entry.⁠[3] The details of that network and its successors belong to a later section; what matters here is the pattern the episode established. Progress in this area has come not from a single clever idea but from the alignment of a model class, a large labelled dataset, and hardware capable of exploiting both.

The shift also changed what counts as a feature. In the older style of machine learning, an engineer constructed measurements from the raw data, and the classifier worked from those; the construction was field-specific and often required sizable human effort, and once a feature was found to work well it became a research direction pursued for years. Deep networks absorb that step into the model, extracting discriminative features with as little human input as possible, with the first layers picking up low-level structure and the last layers high-level structure.⁠[1]

That is the sense in which the history matters for understanding the method. A convolutional network is not a fixed recipe handed down from biology; it is a flexible arrangement of layers whose power depends on being trained on enough data with enough computation behind it. The biological inspiration supplied the shape of the architecture, and the engineering advances of the 2000s supplied the conditions under which that shape could finally be put to work.

The convolutional idea dates to models of the visual cortex, but it became dominant only when large labelled datasets and fast hardware made deep training practical.

How it works

The building blocks: convolution, pooling and fully connected layers

The convolution

Four coloured numerical grids show an input, a filter, a feature map and a pooled output, with arrows and a worked sum.
A shared filter transforms a numerical input into a feature map, followed by max pooling. The worked example uses stride one and no padding. View full-size image.Convolution and Max Pooling Worked Example by Atlas Nova. Illustration generated with AI for this article and checked against its text.

A convolution is the operation that gives the network its name, and it is easiest to grasp as a small window moving across a grid of numbers. The window holds a set of weights called a filter (or kernel), typically a small square such as three by three pixels. At each position, the filter's weights are multiplied by the input values underneath it and the products are summed, producing a single number that records how strongly the local patch resembles the pattern the filter encodes. Sweeping the whole input this way produces a new grid, the feature map, whose entries say where in the input the filter's pattern occurred and how strongly.⁠[7]

Two properties follow from reusing one filter at every position. The first is economy: a fully connected layer linking every input pixel to every output unit would need a separate weight for each pair, whereas a convolutional layer needs only the handful of numbers in the filter, no matter how large the image. The second is translation invariance, the property that a pattern is recognised wherever it appears. A filter tuned to a vertical edge fires on that edge whether it sits in the top-left corner or the bottom-right, because the same weights are applied everywhere.⁠[7] For a photograph of a cat, this matters: the animal's ear may fall anywhere in the frame, and the network should not have to relearn ears for every possible position.

In practice a convolutional layer holds many filters at once, not one. Each produces its own feature map, so the layer's output is a stack of maps, one per filter, and the stack is what passes to the next stage. A filter that responds to horizontal edges, another to diagonal ones, another to patches of a particular colour: the layer as a whole reports many different local properties of the input simultaneously. The number of filters is a design choice, and it is one of the settings that determines how much the network can represent.

Pooling

A pooling layer follows a convolution and shrinks its feature maps. A common form, max pooling, divides a map into small tiles and keeps only the largest value in each tile, discarding the rest. The map's dimensions fall as the tiles are summarised, so pooling reduces both its height and its width. The effect is to summarise the strongest response in each neighbourhood rather than its exact location, which makes the representation tolerant of small shifts: if an edge moves by a pixel, the pooled output barely changes.⁠[7]

Pooling also controls cost. Each subsequent layer operates on a smaller grid, so the arithmetic required falls sharply as the data moves deeper into the network. The trade-off is resolution: fine spatial detail is thrown away, and a network that pools aggressively may lose the ability to distinguish small or closely spaced objects. The balance between pooling and retaining detail is one of the recurring tensions in network design.

From edges to objects

Stacking convolutional and pooling layers produces the hierarchy of features that defines the method. The first layer sees raw pixels and can only respond to the simplest local structure: a boundary between light and dark, a short edge at a given angle, a spot of colour. Its feature maps are then the input to the second layer, whose filters combine those edge detectors into longer contours and simple shapes. Deeper layers respond to increasingly complex, higher-level features.⁠[7] Each level is built entirely from the level below, and nothing in the design specifies in advance what the levels should detect; the filters at every level are adjusted during training until the hierarchy as a whole does the job.

This is why the same architecture can be pointed at such different material.

The decision layer

After several rounds of convolution and pooling, the representation is compact: a small grid of feature maps in which the spatial arrangement has been largely summarised. The final stage, one or more fully connected layers, takes that representation and turns it into an answer. Every unit in a fully connected layer is linked to every unit of the preceding one, each link with its own weight, so the layer can weigh evidence from anywhere in the representation.

The division of labour is worth stating plainly. Convolution and pooling do the seeing: they transform a raw grid of numbers into a description of what is present. The fully connected layers do the deciding: they map that description onto the categories the network was trained to distinguish. Because the whole arrangement is trained as a unit, the filters are shaped by the demands of the final decision, and the decision layer is shaped by what the filters make available.

Convolution finds local patterns anywhere in the input, pooling compresses and stabilises them, and fully connected layers turn the resulting description into a decision.

Training the network: backpropagation and weight updates

A network whose filters are set to random numbers produces nonsense. The whole point of training is to turn those random numbers into useful detectors, and the mechanism that does it is backpropagation, an algorithm that works backwards from the network's output to assign each adjustable value a share of the blame for the error, then nudges it in the direction that reduces that error.⁠[7] The idea is easier to follow as a sequence of concrete steps than as a formula.

Training proceeds one labelled example at a time, or in small batches. The input is fed forward through the layers, each convolution and pooling stage transforming it, until the final layer produces an output, typically a set of scores, one per category. A loss function then compares those scores with the correct label and returns a single number measuring how wrong the prediction was. A network that confidently assigns a photograph of a cat to the category "dog" incurs a large loss; one that assigns it to "cat" incurs a small one. The loss is the quantity training exists to shrink.

The backward pass is where the name comes from. Because every layer's output was computed from the layer below it, the loss can be differentiated with respect to each weight in turn, starting at the output and applying the chain rule layer by layer until the earliest filters are reached. Each weight receives a gradient, a number saying how much the loss would change if that weight were increased slightly, and in which direction. The weights are then adjusted by a small step opposite to the gradient, so that the loss falls. The size of that step is the learning rate, and it matters: too large and the adjustments overshoot and the network never settles; too small and training crawls.

What makes this more than bookkeeping is that the gradient for an early filter depends on every layer above it. A filter in the first layer is adjusted not because anyone told it what to detect, but because the final decision was wrong and the chain of blame reaches back to it. Repeated over many examples, the effect is that the earliest filters come to detect whatever low-level structure most helps the layers above them make correct decisions. The hierarchy described earlier is not designed; it is the residue of thousands of small corrections.

A worked case shows the scale involved. Adjusting 60 million values by gradient descent is only feasible because the gradient for each one can be computed efficiently in a single backward sweep, and because the arithmetic was moved onto graphics processors, whose parallel structure suits the operation. The same network's designers also employed dropout, a regularization method, to reduce overfitting in the fully connected layers.⁠[3]

Two further ingredients shape what the backward pass can achieve. The first is the activation function, a nonlinear transformation applied to each unit's output. Without it, a stack of layers would collapse into a single linear transformation, no matter how deep, and the network could only ever draw straight boundaries between categories; the nonlinearity is what gives the stack its representational power.⁠[2] The second is that the loss surface is not a smooth bowl. Training can stall in a region where the gradient is nearly zero, and the choice of learning rate, initial weights and activation function all influence whether it escapes.

The practical consequence is that training a convolutional network is an iterative, somewhat delicate process rather than a single calculation. The network is shown examples repeatedly, in passes called epochs, and its performance on a held-out set is checked along the way. If that held-out performance stops improving while performance on the training examples keeps rising, the network has begun to memorise rather than generalise, a condition called overfitting. Recognising that point and stopping there is part of the craft, and the techniques that make the process more stable and less prone to memorisation are the subject of the next section.

Backpropagation assigns each weight a share of the error and steps it downhill; the hierarchy of filters emerges from many such small corrections, not from design.

caption: Each training step runs a forward pass, computes a loss, and updates weights backwards.

Making training work: normalization, dropout and data augmentation

Making training work

A diagram of an input photo of cracked rock, with arrows leading to a flipped copy and a randomly cropped copy, with labels 'Input Image', 'Flip', and 'Random Crop'.
A diagram of an input photo of cracked rock, with arrows leading to a flipped copy and a randomly cropped copy, with labels 'Input Image', 'Flip', and 'Random Crop'. View full-size image.Data Augmentation of rock images by TseKiChun. CC BY-SA 4.0, via Wikimedia Commons. Scaled to 960 pixels wide; no crop or other changes by Atlas Nova.

A network with millions of adjustable values has a temptation problem. Given enough passes over the same examples, it can drive the training loss almost to zero by memorising the particular images it has seen, including their incidental details, while getting worse on anything new. The techniques in this section all attack that gap between fitting the training set and generalising beyond it, and they do so from different angles: one rescales the signals flowing through the network, one deliberately removes information during training, and one manufactures extra training examples from the data already at hand.

Batch normalization addresses a practical instability in deep stacks. As the weights of early layers change during training, the distribution of inputs arriving at later layers shifts with them, so each layer is chasing a moving target. Batch normalization rescales the outputs of a layer, using the mean and spread of the current batch of examples, so that they arrive at the next layer with a stable distribution. This allows larger learning-rate steps and speeds convergence. A related ingredient is the choice of activation function, the nonlinearity applied at each unit. The exponential linear unit (ELU) is a variant that, unlike the older rectified linear unit, does not flatten to exactly zero for negative inputs, which keeps gradients flowing in units that would otherwise fall silent.

Dropout takes the opposite approach: instead of stabilising the signal, it removes some of it on purpose. During each training pass, a random fraction of units is switched off, so the network cannot rely on any single pathway being present and must spread its reliance across many redundant ones. At test time all units are switched back on. The effect is a kind of ensemble in disguise, and it was one of the techniques used to curb overfitting in the network that won the 2012 ImageNet challenge.⁠[3] Dropout is widely used as a regularization technique for fully connected layers, though it is often less effective for convolutional layers. In convolutional layers the activation units are spatially correlated, so information can still flow through the network despite dropout; a structured form of dropout that drops units in a contiguous region of a feature map together has been proposed to address this.⁠[9]

Data augmentation enlarges the training set without collecting anything new. If a photograph of a cat still shows a cat when shifted a few pixels, rotated slightly, or brightened, then transformed copies of the training images are legitimate new examples, and they teach the network that those variations do not change the answer. The same logic applies to recordings: a short window cut from a longer trial is still a window of that trial.

That last idea was tested directly in brain-signal decoding, where labelled data is scarce by the standards of computer vision. The question was whether a convolutional network trained on whole EEG trials would do better if trained instead on many overlapping crops of each trial, a strategy that multiplies the number of training examples several-fold. It did: cropped training increased decoding accuracy, and the increase was drastic on the 4–fendHz data, consistent with the network being able to overfit in that setting where band power features are likely dominant. The same study found that batch normalization and exponential linear units were crucial for reaching high decoding accuracies, and that there seemed to be some further gains when combining batch normalization with dropout, though with variation across architectures and frequency bands.⁠[4]

The lesson generalises beyond any one dataset. These are not independent tricks but responses to a single underlying difficulty: a network with great flexibility will use that flexibility to memorise unless something constrains it. Normalisation keeps the optimisation well behaved so that training reaches a good solution at all; dropout and augmentation constrain what that solution can depend on. Which combination helps, and by how much, depends on the data and the architecture, and the interactions between them are not fully understood.⁠[4]

Regularisation is not one technique but a set of pressures that stop a flexible network from memorising its training examples.

Architectures: from AlexNet to EfficientNet

The first deep network that worked

A schematic 3D diagram of stacked rectangular blocks of decreasing and then uniform size, labeled in French with 'Données d'entrée', C1 to C5, 'couches convolutives', FC1, FC2, softmax, and 'couches entièrement connectées'.
A schematic 3D diagram of stacked rectangular blocks of decreasing and then uniform size, labeled in French with 'Données d'entrée', C1 to C5, 'couches convolutives', FC1, FC2, softmax, and 'couches entièrement connectées'. View full-size image.Alexnet-fr by Trebol6. CC BY-SA 4.0, via Wikimedia Commons. Scaled to 960 pixels wide; no crop or other changes by Atlas Nova.

The network that made the field take notice was built for a single contest. The ImageNet challenge asked entrants to assign each of 1.2 million high-resolution photographs to one of 1000 categories, and in 2012 a deep convolutional network entered by Alex Krizhevsky, Ilya Sutskever and Geoffrey Hinton beat the field by a wide margin, cutting the top-5 error rate to 15.3 percent against 26.2 percent for the runner-up.⁠[3] The design, later called AlexNet, set the template that most of the architectures in this section would refine: five convolutional layers, some followed by max pooling, then three fully connected layers ending in a 1000-way softmax. Its 60 million parameters and 650,000 neurons made it large for its time, and training it depended on graphics processors and on dropout to keep the fully connected layers from memorising the training images.⁠[3]

What AlexNet demonstrated was not just that a deep network could win, but that depth itself was the source of the gain. The architecture was a proof of concept, and the years that followed were largely a search for better ways to arrange the same ingredients.

Depth, and the problem depth creates

The next step was to go deeper, on the reasoning that more layers allow more levels of abstraction.

This is the vanishing gradient problem, and it is why naive depth failed.

More importantly for training, the shortcut gives the gradient a direct route backwards that bypasses the multiplicative chain, so signals reach the earliest layers intact. Residual connections were later combined with other designs, where they were found to accelerate training significantly.⁠[10]

Widening the block: GoogLeNet and Inception

A parallel line of work asked a different question: within a single layer, what size should a filter be?

Later work combined the Inception module with residual connections and found that the shortcuts sped training and gave a thin margin of improvement over similarly expensive Inception networks without them.⁠[10]

Trading accuracy for cost: MobileNets and EfficientNet

As networks grew more accurate they also grew more expensive, and a separate line of design turned to the question of what accuracy is achievable at a fixed budget of computation and memory.

EfficientNet approached the same trade-off from the other direction, asking how a network should be scaled up when more resources are available. ConvNets are commonly developed at a fixed resource budget and then scaled up for better accuracy if more resources are available; carefully balancing network depth, width, and resolution can lead to better performance. The proposed method scales all three by a single compound coefficient, and a network designed this way reached 84.3 percent top-1 accuracy on ImageNet while being 8.4 times smaller and 6.1 times faster at inference than the best existing network of the time.⁠[11]

What the sequence shows

Read as a series, these architectures are not a list of unrelated inventions but a record of problems met and solved. AlexNet showed that depth trained on enough data works. VGG pushed depth and revealed the optimisation barrier. ResNet removed that barrier with a structural change to how information flows backwards. Inception made the choice of filter size something the network decides rather than the designer. MobileNets and EfficientNet treated computation itself as a design constraint rather than an afterthought. Each idea outlived the particular network that introduced it, and most appear in combination in the models in use today.

Architectural progress came from removing obstacles to training deep networks and from treating computation as a resource to be spent carefully.

Uses

Learning from images: classification, detection and segmentation

The tasks a convolutional network is asked to perform on images differ in what counts as an answer. In image classification the answer is a single label for the whole picture: this photograph contains a cat. In object detection the answer is a list of objects, each with a label and a box drawn around it: two cats here, one dog there, with their positions. In semantic segmentation the answer is a label for every pixel, so the picture is carved into regions marked cat, dog, grass, sky. The same convolutional machinery underlies all three, and the differences lie in what is attached to the end of it and what the network is trained to produce.

The network reduces the image through successive convolutions and poolings until the representation is a compact description of what is present, and a final set of fully connected layers maps that description onto a category. AlexNet, the network that won the ImageNet challenge in 2012, was built exactly this way, and it achieved a top-5 test error rate of 15.3 percent compared with 26.2 percent for the second-best entry, considerably better than the previous state-of-the-art. The categories in that contest numbered a thousand, and the images numbered 1.2 million.⁠[3]

Detection adds a question of location, and state-of-the-art detection networks depend on region proposal algorithms to hypothesize object locations. That works, but region proposal computation was exposed as a bottleneck. A Region Proposal Network (RPN) shares full-image convolutional features with the detection network, thus enabling nearly cost-free region proposals. The Region Proposal Network does this: it is a fully convolutional network that, at each position, simultaneously predicts object bounds and objectness scores, so that proposals cost almost nothing extra. The resulting system, Faster R-CNN, ran at five frames per second on a graphics processor while reaching state-of-the-art detection accuracy on standard benchmarks, using only 300 proposals per image.⁠[12]

Segmentation is harder still, because the answer has the same resolution as the input. A classification network deliberately shrinks its representation, pooling away spatial detail as it goes deeper, which is precisely what segmentation cannot afford to lose. The solution is an encoder-decoder arrangement: the encoder is a conventional convolutional stack that reduces the image to a coarse, high-level description, and the decoder reverses the process, expanding that description back to full resolution so that every pixel receives a label. SegNet is a clear example, and its distinctive choice concerns how the expansion is done. Rather than learning a separate upsampling operation, the decoder reuses the pooling indices recorded during the encoder's max-pooling steps, placing each value back at the position it came from. This removes the need to learn how to upsample, and the resulting network is efficient in memory and computation while remaining competitive with other segmentation architectures.⁠[13]

Face recognition illustrates a different demand: not naming a category but telling individuals apart. A network for this purpose must produce a representation in which images of the same person cluster together and images of different people separate, even when expression, pose and lighting vary. An early system combined a convolutional network with a self-organising map, which quantised image samples into a topological space where nearby inputs stayed nearby, giving some invariance to minor changes, while the convolutional part supplied partial invariance to translation, rotation, scale and deformation by extracting successively larger features in a hierarchy of layers. The combination was tested on a database of 400 images of 40 individuals with substantial variation in expression, pose and facial detail, and it compared favourably with other methods of the time.⁠[14]

What changes is the head placed on top and the loss used to train it. A classifier needs one label per image; a detector needs labels and coordinates for many objects; a segmenter needs a label per pixel. The flexibility of the underlying representation is what allows one family of architectures to serve all three.

Classification names what is in an image, detection says where each thing is, and segmentation labels every pixel; the convolutional features are shared, and the task lives in what is attached to them.

caption: The three image tasks differ in what counts as an answer.

Medical imaging: diagnosis and screening

Why medicine became a natural home for the method

Figure 2. Lymph node detection with random versus transfer-learned initialization. True positive rate at three false positives per patient for GoogLeNet models in the mediastinum and abdomen. The source states: “GoogLeNet-TL-H significantly improves upon GoogLeNet-RI-H (0.81 versus 0.61 TPR/3FP in mediastinum; 0.70 versus 0.48 TPR/3FP in abdomen).” (Shin et al. (2016)).⁠[6]

A chest radiograph, a CT slice and a pathology slide are all grids of numbers, and the thing a radiologist or pathologist looks for is a local pattern: a shadow, a nodule, a cluster of oddly shaped cells. That is the kind of problem a convolutional network is built for, and the field of computer-aided detection had long wanted exactly this. The older approach relied on feature engineering, constructing features from raw data by hand; this was extremely field-specific and frequently required sizable human effort.⁠[1] A network that learns its own filters from labelled examples removes that step, and radiology, with its enormous archives of stored images and diagnostic labels, supplies the examples.

The practical obstacle is data. The networks that made their name on photographs were trained on more than a million labelled images spanning a thousand categories, and no medical archive matches that scale, because acquiring images is difficult and expert annotation is costly.⁠[6] Three strategies grew up around the shortage: train a network from scratch on whatever medical data exists, take a network already trained on ordinary photographs and use its internal features without retraining, or fine-tune such a pretrained network on the medical task. The third, transfer learning, means starting from filters that already detect edges, textures and shapes and adjusting them to the new problem, which gives the optimisation a far better starting point than random numbers.

What the networks achieve

The results across several imaging tasks have been strong. A network trained on 129,450 clinical photographs of skin lesions, spanning 2,032 diseases, was tested against 21 board-certified dermatologists on biopsy-proven images in two binary decisions: keratinocyte carcinomas against benign seborrheic keratoses, and malignant melanomas against benign nevi. It performed on par with all the tested experts on both.⁠[15] In retinal fundus photography, a network trained on 128,175 images graded by a panel of 54 ophthalmologists and residents was then validated on two separate sets. For referable diabetic retinopathy it reached an area under the curve of 0.991 on one set and 0.990 on the other; at a high-specificity operating point, sensitivity was 90.3 percent with specificity 98.1 percent on the first set, and 87.0 percent with 98.5 percent on the second.⁠[16]

Pathology and radiology show the same pattern. A network classifying whole-slide images of lung tissue into adenocarcinoma, squamous cell carcinoma or normal reached an average area under the curve of 0.97, comparable to pathologists, and was validated on independent sets of frozen tissue, fixed tissue and biopsies; the same network was also trained to predict the ten most commonly mutated genes in adenocarcinoma, and six of them could be predicted from the images alone, with areas under the curve from 0.733 to 0.856.⁠[17] On chest radiographs for tuberculosis, an ensemble of two networks reached an area under the curve of 0.99, and pretrained networks outperformed untrained ones.⁠[18] For COVID-19 detection from X-rays, a transfer-learning approach reported a best accuracy of 96.78 percent, with sensitivity 98.66 percent and specificity 96.46 percent.⁠[19]

The gap between one hospital and the next

Those numbers describe performance on data drawn from the same source as the training data, and a network can be accurate there for the wrong reason. The clearest demonstration comes from a pneumonia-screening study that gathered 158,323 chest radiographs from three institutions and trained models on one or two of them, then tested on the others. Pneumonia-screening CNNs achieved better internal than external performance in 3 out of 5 natural comparisons. The reason was not ordinary overfitting: the network had learned to recognise which hospital a radiograph came from, and it did so almost perfectly, identifying the source for 99.95 percent of one institution's images and 99.98 percent of another's.⁠[5] Because disease prevalence differed sharply between sites, that shortcut was useful on pooled data and useless elsewhere. When the researchers deliberately made the two training sites differ tenfold in pneumonia rate, internal test performance improved compared to the balanced model, but this outperformance failed to generalize to the external hospital.⁠[5]

The lesson is that a network will use whatever separates the classes in its training data, and in medical images much of what separates them is the acquisition pipeline rather than the disease. Different scanners, different image processing, different labelling conventions all leave traces. A model can therefore look excellent in the institution that built it and degrade quietly when moved, which is why external testing on data from other hospitals is the number that matters for deployment.

A medical network's accuracy on its own hospital's data says little about how it will behave elsewhere; the images carry the fingerprints of where they were made.

Working with small datasets

Where labelled data is genuinely scarce, transfer learning does much of the work. In a study of lymph node detection and interstitial lung disease classification, networks trained from scratch or fine-tuned from an ImageNet-trained model consistently outperformed networks that merely used off-the-shelf pretrained features, and for the 22-layer GoogLeNet the benefit of fine-tuning was large: trained from random initialisation it reached 0.61 true positives per three false positives on mediastinal lymph nodes, while fine-tuned it reached 0.81. The authors also found that the amount of spatial context shown around a candidate mattered, with wider fields of view improving detection.⁠[6]

None of this removes the need for judgement about what a model has learned. A network that flags pneumonia may be keying on a portable scanner or a text marker rather than the pathology, and such a model can generalise well and still be clinically misleading.⁠[5] The techniques for opening the black box and checking are taken up later, as are the broader questions of when these models fail and how they compare with other methods.

Beyond images: signals, sequences and text

Why one dimension is often enough

An astronaut in a blue shirt and a blue patterned cap with wires attached to the head and arm works inside a spacecraft interior filled with cables, equipment and stowage bags.
An astronaut in a blue shirt and a blue patterned cap with wires attached to the head and arm works inside a spacecraft interior filled with cables, equipment and stowage bags. View full-size image.Iss030e116908 by NASA. Public domain, via Wikimedia Commons. Scaled to 960 pixels wide; no crop or other changes by Atlas Nova.

The convolution described earlier slides a small filter across a grid of pixels, but nothing in the operation requires two dimensions. A one-dimensional convolution slides its filter along a single axis, usually time, and sums the products of its weights with the samples underneath it. A filter of a few dozen samples therefore becomes a detector for a short motif in a waveform: a sudden rise, a dip, a repeating oscillation at a particular rate. Stacking such layers builds the same hierarchy as before, with short motifs at the bottom and longer, more abstract structures above them, and the whole network is still trained end to end from raw samples.⁠[20]

The practical argument for the one-dimensional form is size. Deep two-dimensional networks carry millions of parameters and need correspondingly large labelled datasets, which many engineering problems cannot supply; a compact one-dimensional network performs only scalar multiplications and additions, so it can be trained on modest data and run cheaply on small hardware. That combination has made it a strong option for personalised biomedical signals, machine fault detection and structural monitoring, especially where training data is scarce or application specific.⁠[20] The same reasoning carries over to any ordered sequence, including text, where the axis is the order of words or characters rather than time.

Reading brain signals

An electroencephalogram, or EEG, records the summed electrical activity of the brain from electrodes on the scalp, and decoding it means deciding from that recording what a person is imagining or doing. The signal differs from a photograph in ways that matter for a convolutional network. It is a dynamic time series rather than a static image, it is measured on the curved three-dimensional surface of the head, and its signal-to-noise ratio is low, so sources irrelevant to the task often affect it more strongly than the task-relevant ones.⁠[4] A network built for photographs therefore has to be adapted rather than simply applied.

The adaptation keeps the convolutional core and changes the shape of the input. Electrodes are treated as channels, time as the axis along which filters slide, and the network learns to detect short rhythmic motifs in the raw trace. In a systematic study of such designs, networks with two, five and thirty-one convolutional layers were trained on raw EEG to decode imagined or executed movements, with only minimal preprocessing so that the comparison with a conventional method would be fair.⁠[4] The filters were not told in advance what to look for; the network discovered whatever distinguished the conditions. Visualisation methods then showed that the learned features did use power in the alpha, beta and high gamma frequency bands, the rhythms long known to carry movement-related information, and mapped where on the scalp those contributions came from.⁠[4] The network had arrived at the same kind of evidence a specialist would have looked for, without being pointed at it.

Finding earthquakes in noise

Seismology poses a sharper version of the same problem. A seismogram is a continuous recording, most of it noise, in which an earthquake appears as a brief transient that may be fainter than the background. Traditional detection methods are built for moderate and large events and miss many of the small ones buried in noise, while the most reliable alternative, matching each candidate against a library of known waveforms, is computationally intensive and scales poorly with the length of the record.⁠[21]

ConvNetQuake reframed detection as a supervised classification problem: the network is trained on a large set of labelled raw waveforms and learns a compact representation that separates seismic noise from earthquake signals, so that waveforms are judged by learned nonlinear filters rather than by similarity to stored templates. Applied to induced seismicity in Oklahoma, it detected more than seventeen times as many earthquakes as the state geological survey had catalogued, and it ran orders of magnitude faster than established methods. Because the filters generalise to signals never seen in training, the approach does not need a perpetually growing template library, and it can also output a probabilistic estimate of the earthquake's location from a single station. Its limitation is the mirror image of its strength: it needs a substantial catalogue of located events to train on, which makes it well suited to seismically active, well-instrumented regions and ill suited to quiet ones.⁠[21]

Sequences of letters and molecules

Not every sequence is a physical measurement. Oxford Nanopore sequencing works by drawing a single strand of DNA through a pore and measuring how the pore's electrical resistance changes as bases pass through; the raw output is a noisy current trace, and basecalling is the process of translating that trace into a sequence of nucleotide letters. The difficulty is that the resistance at any moment depends on the several bases sitting in the narrowest part of the pore, so the number of possible signal states is large and the mapping from signal to letters is far from one to one. Modern basecallers are neural networks trained on real recordings, and their accuracy depends heavily on what was in the training data: a model trained on data from the same species, and on DNA carrying the same chemical modifications, called bases far more accurately than a general model, and a larger network improved accuracy further at a cost in speed.⁠[22]

Drug discovery supplies a case where the sequence is a string of characters standing for a molecule. The SMILES notation writes a chemical structure as a line of text, and a protein is likewise a string of amino acids, so a network can treat both as one-dimensional sequences and slide filters along them. DeepDTA used two separate convolutional blocks, one reading protein sequences and one reading SMILES strings, and combined their outputs to predict binding affinity, the strength with which a drug binds its target, as a continuous value rather than a yes or no. Trained on two public kinase datasets, it performed as well as established methods on the smaller and significantly better on the larger, which is four times the size, and the improvement was attributed to the greater amount of data available for the network to learn from. In this study the advantage over baseline methods was larger on the four-times-larger KIBA dataset than on the smaller Davis dataset.⁠[23]

What the pattern shows

Across these domains the recipe is recognisably the same. Raw ordered data goes in, filters slide along the order, and the network learns its own motifs instead of being handed a set of hand-computed measurements. What changes is the meaning of the axis and the shape of the answer: a category for a brain state, a detection and a location for a tremor, a string of letters for a DNA trace, a number for a binding strength. The recurring cost is data. Each of these applications needed a substantial labelled set to train on, and each became feasible only where such a set existed or could be assembled.

A one-dimensional convolution turns the method loose on anything ordered, from brainwaves to base pairs, provided there is enough labelled data to learn from.

Research

Evidence of effectiveness: benchmarks and comparisons

The idea of a benchmark

A cat photograph leads to a five-class ranked list, with a red connector to the first guess and a green bracket around all five guesses.
The correct class, cat, ranks third in this illustrative prediction. The result is a top-1 error but a correct top-5 prediction. View full-size image.Top-1 Versus Top-5 Classification Error by Atlas Nova. Illustration generated with AI for this article and checked against its text.

A claim that one method is better than another means little on its own. It becomes meaningful only when both methods face the same task, the same data and the same scoring rule, so that the comparison isolates the method rather than the circumstances. This is what a benchmark provides: a fixed dataset, a fixed measure of success, and a published result that others can try to beat. The measure matters as much as the data. In image classification the usual score is the error rate, the fraction of test images assigned the wrong category, and it is often reported two ways: top-1 error counts a prediction wrong unless the correct label is ranked first, while top-5 error counts it wrong only if the correct label is missing from the five highest-scoring guesses.⁠[3] The second is the more forgiving, and the two must not be confused when numbers are compared.

The ImageNet result that set the standard

The benchmark that did most to establish convolutional networks was the ImageNet challenge, in which 1.2 million high-resolution photographs must be sorted into 1000 categories. The deep network entered in 2012, later called AlexNet, reached a top-5 test error of 15.3%, against 26.2% for the second-best entry, and a top-1 error of 37.5%.⁠[3] The margin is the point. A gap of that size on a task with a thousand categories is not a matter of tuning; it indicated that the learned hierarchy of filters was capturing something the earlier approaches did not. The same network's design had five convolutional layers and three fully connected layers.⁠[3]

Progress after that was rapid and is easiest to see as a fall in the same number. Within four years, deep ConvNets reduced error on the ImageNet challenge from above 26% to below 4%.⁠[4] That figure describes the challenge as a whole rather than any single network, and it shows how quickly the benchmark was being pushed once the basic recipe was in place. Later designs continued the trend: EfficientNet-B7 reached 84.3% top-1 accuracy on ImageNet, which corresponds to a top-1 error of 15.7%, while being 8.4 times smaller and 6.1 times faster at inference than the best existing network of its time.⁠[11] Accuracy alone would not make that result interesting; the pairing of higher accuracy with lower cost is what it demonstrates.

Comparisons on non-image tasks

Benchmarks outside photography test whether the advantage is a property of the method or of the particular contest. Brain-signal decoding offers a clean case, because the field had a long-established standard to compare against. Filter bank common spatial patterns, usually shortened to FBCSP, is a conventional method that computes spectral power in several frequency bands and combines the results with a classifier built for that purpose; it is widely used in EEG decoding and has won several EEG decoding competitions such as BCI competition IV datasets 2a and 2b. A study trained deep convolutional networks on raw EEG from four datasets, using only minimal preprocessing to conduct a fair end-to-end comparison of ConvNets and FBCSP, and compared the two. Averaged across the datasets, FBCSP reached 82.1% decoding accuracy and the deep networks 84.0%. The networks reached at least as good performance as the standard, with slightly higher mean accuracy, and they did so without being told which frequency bands to examine, whereas FBCSP is designed around spectral power from the outset.⁠[4]

That last difference is the substantive one. A benchmark score says which method came out ahead on a fixed task; it does not say how much room each method has to improve. A method whose features are fixed in advance can only be tuned within that design, while a method that learns its features can, in principle, exploit structure nobody anticipated. The EEG comparison illustrates the distinction concretely: the networks were found, through visualisation, to rely on power in the alpha, beta and high gamma bands, the same rhythms the conventional method targets, but they arrived there by learning rather than by construction.⁠[4]

Medical diagnosis against expert readers

The most demanding comparisons are those against trained people, because the standard is not a previous algorithm but human judgement. Two studies make the point. In skin lesion classification, a single network trained end to end from images and disease labels, using 129,450 clinical photographs covering 2,032 diseases, was tested against 21 board-certified dermatologists on biopsy-proven images in two binary decisions: keratinocyte carcinomas against benign seborrheic keratoses, and malignant melanomas against benign nevi. The network performed on par with all the tested experts on both tasks.⁠[15] In retinal fundus photography, a network trained on 128,175 images graded by a panel of 54 ophthalmologists and residents was validated on two separate sets graded by at least 7 board-certified ophthalmologists, reaching an area under the curve of 0.991 and 0.990 for referable diabetic retinopathy; at a high-specificity operating point, sensitivity was 90.3% with specificity 98.1% on the first set and 87.0% with 98.5% on the second.⁠[16]

Tuberculosis detection on chest radiographs shows the same pattern in a smaller study. Using 1,007 radiographs split into training, validation and test portions, an ensemble of two networks reached an area under the curve of 0.99, and networks pretrained on ordinary photographs outperformed the same architectures trained from random starting values.⁠[18] The comparison against pretrained versions is instructive in its own right: it isolates the effect of the starting point, holding the architecture fixed, and shows that what the network had already learned from unrelated images was worth carrying over.

What the numbers do and do not establish

Read together, these results support a limited and specific conclusion. On tasks where large labelled datasets exist and the answer is a category, convolutional networks have repeatedly matched or beaten the methods they were compared against, including, in two medical cases, expert human readers. The size of the advantage varies: decisive on ImageNet in 2012, narrow on EEG decoding, and in the medical comparisons a matter of parity rather than superiority. None of these results says the method is better in general, and each was obtained on data drawn from a particular source, which is a separate question taken up later.

Benchmarks show that convolutional networks match or beat the standard methods on many tasks, but the size of the margin varies widely, and a win on one dataset is not a general law.

How CNNs compare with other methods

Against hand-designed features

The most direct comparison is with the methods that came before, in which a person decides what to measure and a classifier works from those measurements. In image analysis these measurements have names: the scale-invariant feature transform (SIFT) and the histogram of oriented gradients (HOG) are hand-built descriptors that summarise the local arrangement of edges and gradients in a patch of an image, and both were widely used for object detection and segmentation long before deep networks were practical.⁠[6] Their strength is that they encode hard-won knowledge about what makes an image patch informative. Their weakness is that the knowledge is fixed: a descriptor designed for one kind of picture does not adapt itself to another, and improving it means going back to the drawing board.

A convolutional network replaces that fixed front end with filters it adjusts itself during training, so the measurements are chosen to suit the task rather than the designer's intuition.⁠[1] The trade-off is not simply that learned beats designed. A hand-built descriptor needs no training data at all, can be computed cheaply, and behaves predictably, whereas a network needs a large labelled set before its filters become useful. Where data is plentiful the learned version tends to pull ahead; where it is scarce, the designed one has a real advantage.

The EEG comparison makes the trade-off concrete. Filter bank common spatial patterns, the established method for decoding movement-related brain signals, is built around spectral power: it computes power in several frequency bands and combines the results with a classifier designed for that purpose, so its features are fixed in advance by the method itself. A deep network trained on the same raw recordings, with minimal preprocessing on either side, reached 84.0 percent mean decoding accuracy against 82.1 percent for the conventional method.⁠[4] The margin is modest, and that is the interesting part. The conventional method was designed by people who knew which rhythms carry the relevant information, and it performs nearly as well as a network that had to discover those rhythms from the data. What the network offers is not a large accuracy gain but the absence of a design decision: it was not told which frequency bands to examine, and visualisation showed it settled on alpha, beta and high gamma power anyway.⁠[4]

Against other kinds of neural network

Convolutional networks are not the only deep architecture, and the choice between them follows from the shape of the data. A recurrent neural network processes a sequence one element at a time while carrying a memory of what came before, which suits material whose meaning depends on order over long stretches. A convolutional network instead applies the same filter at every position and has no such memory, which is a limitation for long sequences and an advantage for short motifs that can occur anywhere. The distinction showed up in drug-target work: a model that used a convolutional block to read protein sequences performed worse than the alternatives, which the authors took as a hint that amino acids have ordered relationships a convolution does not capture well, and they suggested a recurrent architecture with memory blocks as a more suitable route. The same study found that a convolutional block reading the drug's character string worked well, because a molecule's notation is more a collection of local fragments than a long dependent narrative.⁠[23]

A newer alternative is the transformer, which weighs every part of its input against every other part rather than sliding a local filter across it. Comparing the internal representations of vision transformers and convolutional networks on image classification found striking differences: the transformer's representations are more uniform across layers, and its self-attention lets it aggregate global information early, while residual connections strongly propagate features from lower layers to higher ones. The transformer also preserves spatial information about where things are in the input, with noticeable effects from different classification methods.⁠[24] What this means for the comparison is that the two architectures organise their computation differently rather than one simply superseding the other; the convolutional network builds locality in by construction, and the transformer has to learn where to look.

What the comparison comes down to

Three considerations separate these families in practice. The first is the inductive bias, the assumptions about the data built into the architecture before any training happens. A convolution assumes that a pattern useful in one place is useful elsewhere and that nearby inputs belong together, which is true of images and waveforms and false of, say, a set of unrelated measurements. That assumption is why convolutional networks learn well from modest data: the architecture has already ruled out a great deal of what it would otherwise have to learn. A transformer makes fewer such assumptions, which makes it more flexible and more hungry for data.

The second is data scale. The advantage of learning representations from raw input grew as the dataset grew in the drug-target study, where the improvement over established methods was larger on the dataset four times the size of the other.⁠[23] Architectures with weaker built-in assumptions depend even more heavily on having enough examples to discover those assumptions for themselves.

The third is cost, in computation and in the effort of design. A convolutional network has many settings to choose, and its performance is sensitive to them.⁠[1] A hand-designed pipeline has fewer moving parts but cannot improve beyond its design. None of these considerations settles which is better in the abstract; they say what to weigh when choosing.

Learned features tend to win where labelled data is plentiful, hand-designed ones where it is scarce, and the choice among network families follows from what structure the data actually has.

Limits and failure modes

A network that performs well is not the same as a network that works. The distinction runs through every failure described in this section: a convolutional network can score highly on the data it was measured against and still be wrong in ways that matter once it is used. The failures are not random. They follow from the same properties that make the method powerful, namely its flexibility, its appetite for data, and the fact that it learns whatever separates the classes rather than whatever a person intended.

Count cards feed a confusion matrix with entries 95, zero, five and zero, alongside accuracy and positive-recall calculations.
An illustrative classifier predicts negative for all 100 examples. Its accuracy is 95 percent, but its positive recall is zero. View full-size image.Class Imbalance Can Conceal Failure by Atlas Nova. Illustration generated with AI for this article and checked against its text.

Fitting the training set instead of the problem

The first failure is the oldest. A network with millions of adjustable values can drive its error on the training examples close to zero by memorising their particular details, including incidental ones, while getting worse on anything it has not seen. This is overfitting, and it appears most sharply when labelled data is scarce. The medical imaging literature treats the shortage as the central obstacle: no archive of annotated medical images comes close to the scale of the large photograph collections on which the method was developed, because acquiring images is difficult and expert annotation is costly.⁠[6] A network trained on too few examples has little choice but to latch onto whatever distinguishes those examples, and the resulting model may look excellent in testing and fail in use.

The standard defences are the regularisation techniques described earlier, and their effect can be measured. In the lymph node and lung disease study, a 22-layer network trained from random starting values performed poorly, at 0.61 true positives per three false positives on mediastinal lymph nodes, while the same architecture fine-tuned from a model already trained on ordinary photographs reached 0.81. The deeper and wider the network, the more data it needs before its capacity becomes an asset rather than a liability; the authors noted that a network of that depth may require million-image datasets to train properly from scratch.⁠[6] Capacity and data have to be matched, and a mismatch in either direction costs accuracy.

Class imbalance is a related trap. When one category vastly outnumbers another, a network can achieve high overall accuracy by favouring the common class, which is exactly the wrong behaviour when the rare class is the one that matters. A systematic study across three benchmark datasets of increasing complexity found the effect of imbalance on classification performance to be detrimental, and among the remedies compared, oversampling the minority class emerged as dominant in almost all analysed scenarios; applied to the point where the imbalance is eliminated, it did not cause the networks to overfit.⁠[25] The choice of evaluation measure matters here as much as the remedy, since overall accuracy can conceal a model that has simply learned to predict the majority answer.

When the shortcut is easier than the task

A more insidious failure occurs when a network is accurate on its own data for reasons that have nothing to do with the thing being predicted. The pneumonia study described earlier is the clearest case: Because disease prevalence differed between sites, that identification was a useful shortcut during training and worthless elsewhere. Pooling data from sites with different prevalence made models better on new pooled data from those sites but not on external data.⁠[5]

The general lesson is that a network optimises what it is given, and any incidental feature that correlates with the label in the training set will be used. Scanner type, image processing, labelling convention, even a text marker on the film can serve. Such a model can pass every internal test and still be clinically misleading, and the problem is distinct from ordinary overfitting because it persists on properly held-out data drawn from the same source.⁠[5] Detecting it requires testing on data from somewhere else, which is a step that internal validation cannot substitute for.

The cost of computation

Accuracy has a price, and the price is paid in memory, arithmetic and power. The same analysis found power consumption to be independent of batch size and architecture, and the number of operations to be a reliable estimate of inference time.⁠[26] For a system that must run on a phone, a camera or an implanted device, these are not abstract concerns; they determine whether the model can be deployed at all.

The cost also falls on training rather than only on use. Very deep networks carry millions of parameters, which makes storing and running them expensive on resource-limited hardware, and compression methods have been developed precisely because of this.⁠[27] A network that is accurate but too large for its setting is, in practice, a network that cannot be used.

Regularisation that does not quite fit

Even the tools meant to prevent failure carry assumptions that can be wrong for a given architecture. Dropout, which switches off random units during training, works naturally in the fully connected layers at the end of a network, but it is often less effective in convolutional layers, because units there are spatially correlated and information can still flow through neighbouring ones despite the dropout. A structured variant that drops contiguous regions of a feature map together was introduced to address this, and on ImageNet classification a ResNet-50 architecture using it reached 78.13 percent accuracy, more than 1.6 percent above the baseline.⁠[9] The episode illustrates a broader point: a technique that helps in one part of a network may do little in another, and the reasons lie in the structure of the data flowing through it.

What these failures have in common

None of these is a bug to be patched. Each follows from the method's central virtue. The flexibility that lets a network discover features nobody specified also lets it memorise, and lets it seize on a hospital's scanner instead of a patient's lungs. The appetite for data that makes it improve with scale also makes it fragile when data is scarce or skewed. The computation that makes deep hierarchies trainable also makes them costly to run. Recognising this is what separates a working system from a reported result, and it is why the questions of what a network has actually learned, and how it behaves outside the setting that produced it, are not optional extras.

A convolutional network's failures are the shadow of its strengths: the same flexibility that finds real patterns will find spurious ones, and the same capacity that learns from scale will memorise when scale is missing.

Interpretation and visualization

Why opening the box is hard

A trained convolutional network is a long list of numbers. Its filters are arrays of weights, its connections are sums and products, and nothing in that arrangement reads as a sentence about what the network has decided to look for. The difficulty is not incidental to the method; it follows from the way the method works. In an older pipeline a person chose the measurements, so the meaning of each input was known before the classifier ever saw it. A network absorbs that choice into itself, and the features it settles on have no names until someone works out what they respond to.⁠[1]

The scale of the problem is worth stating plainly. A single network used for pneumonia screening on chest radiographs held 6,963,081 parameters, and the methods available for interrogating which of them were driving a prediction remained inexact, with heat maps among the few tools on offer. With that many adjustable values, the traditional statistical habit of reporting model coefficients so that a result can be checked and reproduced does not carry over; the level of transparency that practice assumes is fundamentally incompatible with a model of this size.⁠[5] Interpretation therefore has to proceed by experiment rather than by inspection: perturb the input, watch the output, and infer the relationship.

Why it matters is practical as much as scientific. A network that flags pneumonia may be keying on a portable scanner, a chest tube or a text marker rather than on the lungs, and such a model can score well and still be clinically misleading.⁠[5] Without a way to see what a prediction rests on, that failure is invisible from the outside. The same need arises in reverse for researchers who want to use these models as instruments: a neuroscientist decoding brain signals wants to know which features of the signal the network found discriminating, not merely that it succeeded.

Reading the filters and the feature maps

The most direct approach looks at what individual units respond to. This works because early layers sit close to the raw input, so their filters can be shown in the same terms as the input itself.

Regions whose removal damages the prediction are the ones the network was using.

Testing whether a feature is actually used

A sharper question is whether a feature the network appears to encode actually causes its decisions, as opposed to merely being present somewhere in its internal representation. The two are not the same, and distinguishing them requires a method aimed at causation rather than at information. In the brain-signal work, two visualisation methods were developed for exactly this split: one showed how much information about a chosen feature, such as power in a particular frequency band, was retained at each layer of the network, and the other was designed to test how strongly that feature causally affected the output.⁠[4] Both could be turned into maps over the scalp, showing either where information about a band was held or where it was doing work.

The choice of what to look for shaped the exercise. The researchers concentrated on band power because a large literature on movement-related rhythms gave them clear expectations about which features should discriminate the conditions, so the visualisations had something definite to check against. The methods indicated that the networks did use power in the alpha, beta and high gamma bands, with meaningful spatial distributions, which served both to confirm that real brain signals were being used and to suggest the approach could contribute to mapping brain activity.⁠[4] The same logic transfers to any domain where prior knowledge says what a discriminating feature ought to look like: visualisation becomes a test of whether the network found it.

What visualisation can and cannot settle

These techniques share a limitation. They report on a trained model, and what they reveal is a description of that model's behaviour, not a guarantee about the next one. A map showing that a network attends to the lungs for one dataset says nothing about a network trained at a different hospital, where the shortcut may lie elsewhere. Nor does a convincing visualisation prove the model is right; it shows where the evidence for a decision came from, and that evidence can be spurious. What the methods do provide is a way to catch the specific failure that matters most, a network that is accurate for reasons unrelated to the task, and to check whether a model has landed on the features that domain knowledge says it should. Broader questions about how these models fail, and where the field is heading, are taken up later.

Visualisation turns a trained network from an opaque scorer into something that can be checked against what the task actually requires.

Later developments

Current directions and open problems

Doing more with less computation

A central baseline network branches toward deeper, wider and higher-resolution networks, with a combined scaled network below.
A baseline CNN can grow through more layers, more channels or more input pixels. Balanced scaling combines these dimensions while considering accuracy and resource costs. View full-size image.Balancing Depth Width and Resolution by Atlas Nova. Illustration generated with AI for this article and checked against its text.

The architectures described earlier were built on a simple bargain: more layers, more filters and larger inputs buy accuracy, and the cost is paid in arithmetic and memory. That bargain has been under renegotiation for some years. The question driving current design work is not how accurate a network can be made when resources are unlimited, but how much accuracy can be recovered once a fixed budget of computation, memory or power is imposed. The EfficientNet line of work is the clearest statement of the idea: rather than scaling one dimension of a network and leaving the others alone, it balances depth, width and input resolution together, and the resulting models were reported to reach higher accuracy than earlier networks while being substantially smaller and faster at inference.⁠[11] The point is not any single model but the shift in what counts as progress. A result that improves accuracy at equal cost, or holds accuracy at lower cost, is now treated as an advance in its own right.

A related strand asks how much of a trained network is actually needed. A review of the deep learning field identifies model compression as one of the standing challenges, alongside the closely linked problems of overfitting and of the vanishing and exploding gradients that make very deep stacks hard to train.⁠[1] The direction of travel is toward architectures whose parts are justified by what they contribute, rather than by the assumption that more is better.

Learning without labels

The second broad movement concerns where the training signal comes from. Every method described in this chapter has depended on labelled examples: a photograph marked cat, a radiograph marked pneumonia, a waveform marked earthquake. Labels are expensive, and in many fields they are the binding constraint. The review of the field names the lack of training data as a leading limitation and points to transfer learning as the principal remedy, in particular training a model on large unlabelled image sets and then transferring what it learned to a task where only a small number of labelled examples exist. The same review observes that although machine learning has been moving toward semi-supervised and unsupervised methods that can work with practical data without manual labelling, most current deep learning models still rely on supervised learning.⁠[1] That gap between where the field is heading and where it largely remains is one of the open problems rather than a solved matter.

Convolution and attention together

The third movement is architectural, and it concerns the relationship between the convolutional network and the transformer. The two organise computation differently. A convolution builds locality in by construction, applying the same small filter at every position, which is an assumption about the data baked into the model before training begins. A transformer weighs every part of its input against every other part, making fewer such assumptions and therefore depending more heavily on having enough data to discover the structure for itself. A direct comparison of the internal representations of vision transformers and convolutional networks on image classification found striking differences between them: the transformer's representations are more uniform across layers, its self-attention allows global information to be aggregated early, and its residual connections propagate features strongly from lower layers to higher ones. The transformer was also found to preserve spatial information about the input, with noticeable effects from different classification methods.⁠[24]

What follows from this is not that one family replaces the other. The comparison shows two different ways of organising the same task, and the practical question is which arrangement suits a given problem and a given amount of data. A survey of the convolutional network field frames the situation in similar terms, describing a structure that is becoming more complex and diverse as it gradually displaces older machine learning methods, and setting out open issues and promising directions as guidelines for future work rather than as settled conclusions.⁠[28]

What remains unresolved

Several questions run across all three movements. The first is data. In one drug-target affinity study, deep-learning methods performed notably better than baseline methods when the dataset grew in size.⁠[23] Fields where labelled data is scarce therefore face a persistent tension between the flexibility of a learned model and the evidence available to train it.

As models grow more capable and are deployed in settings where a wrong answer has consequences, the difficulty of establishing why a particular prediction was made becomes more pressing rather than less.

The third is generalisation across settings. A model that performs well on data from the source that produced it may behave differently elsewhere, and the reasons can lie in incidental features of the data rather than in the thing being predicted. One study argues that fully external testing, ideally on data gathered from a varied collection of hospitals, can reveal and account for sampling biases that may limit a model's generalizability.⁠[5]

None of these has a settled answer. What can be said is that the field's direction is set by them: toward architectures that spend computation carefully, toward training signals that do not require a label for every example, and toward a clearer account of what a trained network has actually learned.

The open problems are not peripheral: data, interpretability, generalisation and cost are the terms on which the next round of progress will be judged.

Key studies

YearStudySampleDesignFinding
2016Shin et al.⁠[6]nine convolutional models from 5 thousand to 160 million parameterscomparison of architectures and transfer learning on two medical detection tasksTransfer learning from ImageNet improved GoogLeNet from 0.61 to 0.81 true positive rate at three false positives per patient in the mediastinum.
2016Gulshan et al.⁠[16]development and validation of a deep convolutional networkFor referable diabetic retinopathy the algorithm reached areas under the curve of 0.991 and 0.990, with sensitivity of 90.3% and specificity of 98.1% at a high-specificity operating point.
2017Krizhevsky et al.⁠[3]1.2 million high-resolution images in 1000 classesImageNet contest entry with a deep convolutional networkThe network reached top-1 and top-5 error rates of 37.5% and 17.0%, and a later variant won the 2012 contest with a top-5 error of 15.3% against 26.2% for the second-best entry.
2017Esteva et al.⁠[15]129,450 clinical images covering 2,032 diseases, tested against 21 dermatologistsend-to-end training and comparison with expertsThe network matched all tested dermatologists on two binary classification tasks.
2017Schirrmeister et al.⁠[4]decoding of imagined or executed tasks from raw EEG, with visualization of the features the networks learnedDeep convolutional networks reached mean decoding accuracy of 84.0%, against 82.1% for filter bank common spatial patterns.
2018Coudray et al.⁠[17]1,634 whole-slide images, including 1,176 tumor tissues and 459 normaltraining and validation of Inception v3 on histopathology tilesThe network classified lung tissue with an average area under the curve of 0.97 and predicted six mutated genes with areas under the curve from 0.733 to 0.856.
2018Zech et al.⁠[5]158,323 chest radiographs from three institutionscross-sectional study of model generalization across hospital systemsInternal performance exceeded external performance in 3 out of 5 natural comparisons, and networks identified the source hospital system with 99.95% and 99.98% accuracy.
2018Buda et al.⁠[25]three benchmark datasets: MNIST, CIFAR-10 and ImageNetsystematic study of class imbalance methodsOversampling emerged as the dominant method in almost all scenarios and did not cause overfitting of convolutional networks.
2018Ghiasi et al.⁠[9]ResNet-50 and RetinaNet experiments on ImageNet and COCOcomparison of structured dropout with standard dropoutResNet-50 with DropBlock reached 78.13% accuracy, more than 1.6% above the baseline, and RetinaNet average precision rose from 36.8% to 38.4%.
2018Perol et al.⁠[21]2021 cataloged seismic events near Guthrie, Oklahoma, plus 831,111 noise windowsearthquake detection and location with a convolutional networkThe method detected more than 17 times more earthquakes than had previously been cataloged by the Oklahoma Geological Survey.
2018Öztürk et al.⁠[23]Davis and KIBA drug-target binding datasetscomparison of convolutional models with KronRLS and SimBoostThe combined convolutional model reached a concordance index of 0.863 on KIBA, outperforming KronRLS at 0.782 and SimBoost at 0.836.
2019Tan & Le⁠[11]EfficientNet models scaled from a searched baselinecompound scaling of depth, width and resolutionEfficientNet-B7 reached 84.3% top-1 accuracy on ImageNet while being 8.4 times smaller and 6.1 times faster on inference than the best existing convolutional network.

See also

References

  1. Alzubaidi, L., Zhang, J., Humaidi, A. J., Al-Dujaili, A., Duan, Y., Al-Shamma, O., Santamaría, J., Fadhel, M. A., Al-Amidie, M., & Farhan, L. (2021). Review of deep learning: concepts, CNN architectures, challenges, applications, future directions. Journal of Big Data, 8(1). doi:10.1186/s40537-021-00444-8
  2. Khaligh-Razavi, S. M., & Kriegeskorte, N. (2014). Deep Supervised, but Not Unsupervised, Models May Explain IT Cortical Representation. PLoS Computational Biology, 10(11), e1003915. doi:10.1371/journal.pcbi.1003915
  3. Krizhevsky, A., Sutskever, I., & Hinton, G. E. (2017). ImageNet classification with deep convolutional neural networks. Communications of the ACM, 60(6), 84-90. doi:10.1145/3065386
  4. Schirrmeister, R. T., Springenberg, J. T., Fiederer, L. D. J., Glasstetter, M., Eggensperger, K., Tangermann, M., Hutter, F., Burgard, W., & Ball, T. (2017). Deep learning with convolutional neural networks for EEG decoding and visualization. Human Brain Mapping, 38(11), 5391-5420. doi:10.1002/hbm.23730
  5. Zech, J. R., Badgeley, M. A., Liu, M., Costa, A. B., Titano, J. J., & Oermann, E. K. (2018). Variable generalization performance of a deep learning model to detect pneumonia in chest radiographs: A cross-sectional study. PLOS Medicine, 15(11), e1002683. doi:10.1371/journal.pmed.1002683
  6. Shin, H. C., Roth, H. R., Gao, M., Lu, L., Xu, Z., Nogues, I., Yao, J., Mollura, D., & Summers, R. M. (2016). Deep Convolutional Neural Networks for Computer-Aided Detection: CNN Architectures, Dataset Characteristics and Transfer Learning. IEEE Transactions on Medical Imaging, 35(5), 1285-1298. doi:10.1109/tmi.2016.2528162
  7. Yamashita, R., Nishio, M., Do, R. K. G., & Togashi, K. (2018). Convolutional neural networks: an overview and application in radiology. Insights into Imaging, 9(4), 611-629. doi:10.1007/s13244-018-0639-9
  8. Gupta, R., Srivastava, D., Sahu, M., Tiwari, S., Ambasta, R. K., & Kumar, P. (2021). Artificial intelligence to deep learning: machine intelligence approach for drug discovery. Molecular Diversity, 25(3), 1315-1360. doi:10.1007/s11030-021-10217-3
  9. Ghiasi, G., Lin, T. Y., & Le, Q. V. (2018). DropBlock: A regularization method for convolutional networks. arXiv. doi:10.48550/arxiv.1810.12890 Free full text
  10. Szegedy, C., Ioffe, S., Vanhoucke, V., & Alemi, A. (2017). Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learning. Proceedings of the AAAI Conference on Artificial Intelligence, 31(1). doi:10.1609/aaai.v31i1.11231
  11. Tan, M., & Le, Q. V. (2019). EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks. arXiv. doi:10.48550/arxiv.1905.11946 Free full text
  12. Ren, S., He, K., Girshick, R., & Sun, J. (2017). Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(6), 1137-1149. doi:10.1109/tpami.2016.2577031
  13. Badrinarayanan, V., Kendall, A., & Cipolla, R. (2017). SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(12), 2481-2495. doi:10.1109/tpami.2016.2644615
  14. Lawrence, S., Giles, C. L., Ah Chung Tsoi, & Back, A. D. (1997). Face recognition: a convolutional neural-network approach. IEEE Transactions on Neural Networks, 8(1), 98-113. doi:10.1109/72.554195
  15. Esteva, A., Kuprel, B., Novoa, R. A., Ko, J., Swetter, S. M., Blau, H. M., & Thrun, S. (2017). Dermatologist-level classification of skin cancer with deep neural networks. Nature, 542(7639), 115-118. doi:10.1038/nature21056
  16. Gulshan, V., Peng, L., Coram, M., Stumpe, M. C., Wu, D., Narayanaswamy, A., Venugopalan, S., Widner, K., Madams, T., Cuadros, J., Kim, R., Raman, R., Nelson, P. C., Mega, J. L., & Webster, D. R. (2016). Development and Validation of a Deep Learning Algorithm for Detection of Diabetic Retinopathy in Retinal Fundus Photographs. JAMA, 316(22), 2402. doi:10.1001/jama.2016.17216
  17. Coudray, N., Ocampo, P. S., Sakellaropoulos, T., Narula, N., Snuderl, M., Fenyö, D., Moreira, A. L., Razavian, N., & Tsirigos, A. (2018). Classification and mutation prediction from non–small cell lung cancer histopathology images using deep learning. Nature Medicine, 24(10), 1559-1567. doi:10.1038/s41591-018-0177-5
  18. Lakhani, P., & Sundaram, B. (2017). Deep Learning at Chest Radiography: Automated Classification of Pulmonary Tuberculosis by Using Convolutional Neural Networks. Radiology, 284(2), 574-582. doi:10.1148/radiol.2017162326
  19. Apostolopoulos, I. D., & Mpesiana, T. A. (2020). Covid-19: automatic detection from X-ray images utilizing transfer learning with convolutional neural networks. Physical and Engineering Sciences in Medicine, 43(2), 635-640. doi:10.1007/s13246-020-00865-4
  20. Kiranyaz, S., Avci, O., Abdeljaber, O., Ince, T., Gabbouj, M., & Inman, D. J. (2021). 1D convolutional neural networks and applications: A survey. Mechanical Systems and Signal Processing, 151, 107398. doi:10.1016/j.ymssp.2020.107398
  21. Perol, T., Gharbi, M., & Denolle, M. (2018). Convolutional neural network for earthquake detection and location. Science Advances, 4(2). doi:10.1126/sciadv.1700578
  22. Wick, R. R., Judd, L. M., & Holt, K. E. (2019). Performance of neural network basecalling tools for Oxford Nanopore sequencing. Genome Biology, 20(1). doi:10.1186/s13059-019-1727-y
  23. Öztürk, H., Özgür, A., & Ozkirimli, E. (2018). DeepDTA: deep drug–target binding affinity prediction. Bioinformatics, 34(17), i821-i829. doi:10.1093/bioinformatics/bty593
  24. Raghu, M., Unterthiner, T., Kornblith, S., Zhang, C., & Dosovitskiy, A. (2021). Do Vision Transformers See Like Convolutional Neural Networks? arXiv. doi:10.48550/arxiv.2108.08810 Free full text
  25. Buda, M., Maki, A., & Mazurowski, M. A. (2018). A systematic study of the class imbalance problem in convolutional neural networks. Neural Networks, 106, 249-259. doi:10.1016/j.neunet.2018.07.011
  26. Canziani, A., Paszke, A., & Culurciello, E. (2016). An Analysis of Deep Neural Network Models for Practical Applications. arXiv. doi:10.48550/arxiv.1605.07678 Free full text
  27. Gong, Y., Liu, L., Yang, M., & Bourdev, L. D. (2014). Compressing Deep Convolutional Networks using Vector Quantization. arXiv. doi:10.48550/arxiv.1412.6115 Free full text
  28. Li, Z., Liu, F., Yang, W., Peng, S., & Zhou, J. (2022). A Survey of Convolutional Neural Networks: Analysis, Applications, and Prospects. IEEE Transactions on Neural Networks and Learning Systems, 33(12), 6999-7019. doi:10.1109/tnnls.2021.3084827

Cite this page: Atlas Nova editors. (2026). Convolutional neural network. Atlas Nova. https://velocer.io/atlas/convolutional-neural-networks/