AI and Machine Learning · Model architecture
Convolutional Neural NetworkCNN
Also known as ConvNet, convolutional network
A convolutional neural network (CNN) is a neural network that slides small learned filters across an image or other grid-structured input, reusing the same weights at every position. This makes it efficient at detecting local patterns and a standard backbone for camera perception.
Explanation
Fully connected layers scale poorly to images: a single neuron connected to a 200 × 200 × 3 image needs 120,000 weights. A convolutional layer instead connects each output to a small spatial region, its receptive field, through the full input depth, and applies the same filter at every position. This parameter sharing cuts the parameter count dramatically and encodes the assumption that a feature useful in one place is useful elsewhere.
Typical CNNs stack convolution and activation layers, use pooling or strided convolution to reduce spatial resolution, and end in task-specific heads: class scores, box regressors for detection, or upsampling layers for segmentation. Stacks of small 3 × 3 filters are preferred over one large filter because they cover the same receptive field with fewer parameters and more non-linearities.
Convolution, batch normalisation and activation sequences are common targets for layer fusion and INT8 quantisation in deployment runtimes. A CNN's receptive field is local, so wider context has to be built up through depth or added with attention layers.
How it works
Each convolutional layer slides K learned filters of size F × F over the input with stride S and zero-padding P, producing K activation maps; for input width W, output width is (W − F + 2P)/S + 1. An activation, usually ReLU, follows, and pooling layers downsample with a fixed function such as max. Training adjusts filter weights by backpropagation.
Automotive applications
- Image classification
- 2D object detection
- Semantic and instance segmentation
- Lane detection
- Backbones for multi-camera BEV networks
Example
A front-camera detector uses a CNN backbone that reduces each frame to feature maps at 1/8, 1/16 and 1/32 of the input resolution. Detection heads on each scale find near and distant vehicles, and non-maximum suppression then removes duplicate boxes.
An illustrative example: any figures in it are worked numbers, not measurements.
References
- CS231n: Convolutional Neural Networks for Visual Recognition (opens in a new tab)
- Graph Optimizations in ONNX Runtime (opens in a new tab)
- Deep learning (LeCun, Bengio and Hinton), Nature 521, 436-444 (2015) (opens in a new tab)
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.