# Convolutional neural network (CNN)

> Canonical: https://skillalmanac.com/glossary/convolutional-neural-network | Last verified: 2026-11-24 | Index status: index-eligible

A convolutional neural network (CNN) is a neural network that uses convolution in at least one layer. Its convolutional layers apply learned filters across the input to produce feature maps. CNNs are widely used for images and other grid-structured data.

Also called: CNN, CNNs, ConvNet, convolutional neural networks, cnn neural network, conv neural network, what is a CNN.

## In plain language

A convolutional neural network is a kind of neural network commonly used for images. A small filter moves across the image and checks whether a feature is present. Earlier layers focus on simple features such as colors and edges, and later layers recognize larger elements or shapes. The filter weights are adjusted during training.

## Technical definition

Classic image-classification CNNs often combine convolutional, pooling and fully connected layers; pooling and fully connected layers are not requirements for every CNN. In a convolutional layer, a filter, also called a kernel, moves across the input and a dot product is calculated at each position; the outputs form a feature map. The filter weights stay fixed as it moves, which is called parameter sharing. Pooling downsamples activation maps, reducing their spatial size; a standard max-pooling operation has no learned weights. For classification, output scores may be converted into class probabilities with softmax. The number of filters, the stride and the zero-padding are hyperparameters set before training begins.

## How it shows up when you use agents

This entry is background for reading about image models. The examples below are catalog skills that handle image files and datasets. See also [neural networks](/glossary/neural-network), [deep learning](/glossary/deep-learning) and [supervised learning](/glossary/supervised-learning).

IBM says neural networks are a subset of machine learning and are at the heart of deep learning algorithms. The [computer vision](/glossary/computer-vision) and [image classification](/glossary/image-classification) entries cover the tasks CNNs are used for.

## Common confusions

- **CNN versus other neural networks.** IBM describes CNNs as one of various types of neural nets, and says recurrent neural networks are commonly used for natural language processing and speech recognition. Stanford's CS231n notes say CNNs are very similar to ordinary neural networks, made up of neurons that have learnable weights and biases. For the transformer design, see [Transformer](/glossary/transformer).
- **Myth: CNNs only work on photos.** IBM says CNNs are distinguished by their performance with image, speech or audio signal inputs. Nature's review says deep convolutional nets have brought breakthroughs in processing images, video, speech and audio.
- **Filters versus hand-written rules.** IBM says the weight values adjust during training through backpropagation and gradient descent.

## Worked examples in this catalogue

### [image-spec-check](https://skillalmanac.com/skills/skill-almanac/image-spec-check)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Checks exported images against your own spec table and says exactly what to resize, crop, re-export or replace.

Why it exercises the concept: A skill that works on image files.

### [huggingface-datasets](https://skillalmanac.com/skills/huggingface/huggingface-datasets)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Reads Hugging Face datasets through the Dataset Viewer API: metadata, rows, search and filters.

Why it exercises the concept: A skill that reads datasets.

## Related terms

- [Neural network](https://skillalmanac.com/glossary/neural-network.md)
- [Deep learning](https://skillalmanac.com/glossary/deep-learning.md)
- [Machine learning (ML)](https://skillalmanac.com/glossary/machine-learning.md)
- [Supervised learning](https://skillalmanac.com/glossary/supervised-learning.md)
- [Transformer](https://skillalmanac.com/glossary/transformer.md)
- [Computer vision](https://skillalmanac.com/glossary/computer-vision.md)
- [Image classification](https://skillalmanac.com/glossary/image-classification.md)

## Sources

- [Deep Learning, chapter 9: Convolutional Networks](https://www.deeplearningbook.org/contents/convnets.html), Goodfellow, Bengio and Courville (accessed 2026-11-24)
- [What are convolutional neural networks?](https://www.ibm.com/think/topics/convolutional-neural-networks), IBM (accessed 2026-11-24)
- [Deep learning](https://www.nature.com/articles/nature14539), Nature (LeCun, Bengio and Hinton, 2015) (accessed 2026-11-24)
- [Convolutional Neural Networks (CNNs / ConvNets)](https://cs231n.github.io/convolutional-networks/), Stanford CS231n course notes (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
