Convolutional Neural Network (CNN)
A convolutional neural network (CNN) is a deep learning model designed for grid-like data, most typically images, and it is the foundation of computer vision. Since AlexNet beat traditional methods by a wide margin in the 2012 ImageNet competition, CNN has dominated image recognition.
Core principles
CNN's core idea is "local receptive field plus weight sharing". A fully connected network on a 224x224 color image already has 150000 input neurons, exploding parameters; CNN brings this into a trainable range with three key designs:
Convolutional layers slide a small window (such as 3x3) over the image and take a weighted sum at each position. The window's weights are shared across the whole image, so a cat in the upper-left or lower-right corner is recognized by the same parameters, which matches the "translation invariance" of images.
Pooling layers take the max or average over a local region and halve the feature map, cutting computation and increasing tolerance to small shifts.
Stacked layers let the network learn features from shallow to deep: shallow layers learn edges, corners, and color patches; middle layers combine them into textures and parts (eyes, wheels); deep layers into objects (faces, cars). This hierarchical extraction is CNN's most essential capability.
Key points
The receptive field grows with depth, and a deep neuron's field can cover the whole image. Batch normalization (BatchNorm) and residual connections (ResNet) solved deep-network training, allowing hundreds of layers. Modern CNNs use 1x1 convolutions for channel compression to cut cost.
Common misconceptions
Many think CNN only handles images, but it is also used for speech recognition (spectrograms as images) and text classification (word vectors as one-dimensional images). Another misconception is that more layers are always better: without residual connections and normalization, deep networks suffer vanishing gradients and get worse.
Application scenarios
Face recognition, medical imaging (lung nodules, pathology slides), autonomous driving perception, industrial defect inspection, satellite image analysis. Though Transformers have risen in vision (ViT), CNNs remain widely used on mobile and edge devices for their computational efficiency.