- Introduced by
- Long, J.; Shelhamer, E.; Darrell, T.
- Year
- 2015
- Type
- Dense pixel-wise prediction convolutional network
What does it do?
The Fully Convolutional Network (FCN), introduced by Long, Shelhamer, and Darrell at CVPR 2015, is an early end-to-end deep network trained to produce dense, pixel-wise semantic segmentation maps from images of arbitrary size.
It replaces the fully connected layers of a classification CNN with convolutional layers and adds learned upsampling through transposed convolutions and skip connections, so that a class label can be predicted for every pixel in a single forward pass. Its design became a common template for many later segmentation architectures.
The intuition behind the method
Image classifiers usually produce one label per image by flattening spatial information into a fixed-length vector through fully connected layers. FCN removes that bottleneck: the fully connected layers are replaced by convolutions, so the network accepts inputs of different sizes and outputs a spatial score map laid out like the input image. The network first contracts the image through pooling layers to gather context, then expands the coarse map back toward full resolution with learned transposed convolutions. Because fine spatial detail is lost during contraction, FCN adds skip connections that bring shallower, higher-resolution feature maps into the expanding path, which helps recover boundaries at the pixel level.
History
Before FCN, semantic segmentation relied on conditional random fields, superpixel-based pipelines, and sliding-window classifiers applied patch by patch, which were computationally costly and not optimised jointly. Long, Shelhamer, and Darrell (CVPR 2015) showed that standard image-classification CNNs such as AlexNet, VGG, and GoogLeNet could be converted into fully convolutional networks that predict a dense label map in a single forward pass, trained end-to-end. A journal version by Shelhamer, Long, and Darrell appeared in IEEE TPAMI. Subsequent segmentation architectures adopted and modified the same overall approach.
When to use it
FCN is suited to tasks that require a class label for every pixel of an image, such as road-scene parsing, biomedical tissue segmentation, satellite land-cover mapping, or industrial inspection. It is appropriate when pixel-level annotations are available, when the problem can be framed as assigning one of C mutually exclusive classes to each pixel, and when a GPU with enough memory is available for training. It assumes that the label of a pixel depends on its surrounding spatial context and that this dependence can be captured by a convolutional hierarchy. It is less suitable when only image-level labels exist, when the task requires separating individual object instances rather than classes, or when very high-resolution imagery demands tiling or memory-efficient variants.
Limitations and considerations
- The receptive field of deep layers is set by the kernel sizes and strides of the backbone, so very large objects may not be seen in full and very small objects may be lost at stride 32.
- Transposed convolutions can produce checkerboard artefacts in the predicted maps if they are not carefully initialised or regularised.
- The skip fusion in FCN adds feature maps rather than concatenating them, which discards some channel-level information that concatenation keeps. Concatenation, used in some later encoder-decoder designs, retains that information.
- The FCN-32s, FCN-16s, and FCN-8s variants are commonly trained in sequential stages, and joint training of all skip levels requires careful learning-rate scheduling.
- Long-range context is limited because standard convolutions and pooling model only local dependencies; later work has proposed other mechanisms to capture wider context.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Trains a deep network end-to-end for pixel-wise semantic segmentation, replacing the separate hand-designed stages used by earlier pipelines.
- Accepts inputs of arbitrary spatial size at inference time, because no fully connected layer fixes the input dimensions.
- Initialising the backbone from an ImageNet-pretrained classifier reduces the amount of labelled segmentation data needed in practice.
- Skip connections from several pooling scales recover spatial detail lost during downsampling, which improves boundary localisation relative to the stride-32 output alone.
- The combination of a convolutional encoder, learned upsampling, and skip connections is a design pattern that many later segmentation architectures build on.
Applications
- Autonomous driving: road, lane, pedestrian, and vehicle segmentation in camera images.
- Biomedical imaging: cell, organelle, and tissue segmentation in histology and microscopy data.
- Remote sensing: land-cover classification and change detection in satellite and aerial imagery.
- Industrial inspection: defect localisation and region labelling in manufacturing quality control.
- Scene understanding: full-image semantic parsing in robotics and augmented reality pipelines.
How it works
How it works
A pretrained image classifier such as VGG-16 is converted into a fully convolutional model by replacing each fully connected layer with a convolutional layer that computes the same function over a spatial region. The kernel of each replacement covers the spatial extent of the feature map that the fully connected layer previously consumed: a layer that took a k×k×C block becomes a k×k convolution, and a layer that operated on a single position becomes a 1×1 convolution. The learned weights are retained, while the network can now take spatial inputs of any width and height and produce a spatial score map instead of a fixed-length vector.
Formula
f_{\text{conv}}(\mathbf{x}) = W * \mathbf{x} + bSuccessive convolution, ReLU, and pooling blocks reduce spatial resolution, with each pooling step halving the feature map. After five pooling stages the spatial stride is 32, so each cell of the coarsest map corresponds to a 32×32 region of the input. This contraction gathers semantic context at the cost of spatial detail.
Formula
h_l = \text{Pool}(\text{ReLU}(W_l * h_{l-1} + b_l))A transposed convolution (sometimes called deconvolution) expands the coarse score map back toward the input resolution. Its weights are learned during training, and bilinear upsampling weights are used as the initial values to give a stable starting point. FCN-32s upsamples the stride-32 map directly by 32×; FCN-16s first upsamples by 2× and fuses pool4 features before a final 16× upsample; FCN-8s additionally fuses pool3 features for the finest output.
Formula
\hat{h}_l = W_{\text{up}} *^T h_lSkip connections add feature maps from shallower, higher-resolution pooling layers into the upsampling path. The shallower maps retain finer spatial detail that the deep, stride-32 map has lost. Before addition, the shallower map is cropped to match the spatial size of the coarser map. The fusion lets the network combine global semantic information from deep layers with local boundary information from shallow layers.
Formula
\hat{h}_{\text{fused}} = \hat{h}_{\text{deep}} + \text{crop}(h_{\text{shallow}})The network outputs a C-channel score map, one channel per semantic class, which is brought to the original image resolution. A pixel-wise cross-entropy loss is computed over all N spatial positions against the ground-truth label map, and the network is trained end-to-end with stochastic gradient descent. Each pixel therefore contributes its own term to the loss, so one forward pass on an image yields N supervised terms at once.
Formula
\mathcal{L} = -\frac{1}{N} \sum_{i=1}^{N} \sum_{c=1}^{C} y_{i,c} \log \hat{p}_{i,c}Common pitfalls
- Random initialisation of the transposed convolution, instead of bilinear initialisation, is a common cause of slow or unstable training.
- Pixel-wise loss without class weighting lets background pixels dominate when they are frequent, so the model may predict background almost everywhere.
- Reporting pixel accuracy alone when mean Intersection-over-Union (mIoU) is the usual segmentation metric hides poor performance on small or rare classes.
- Training FCN from scratch on a small segmentation dataset without pretrained backbone weights usually gives poor results; the backbone is normally pretrained on a classification task.
- The word 'fully' refers to the network being built only from convolutional layers, not to fully connected layers, so the architecture still contains pooling and nonlinear layers.
Frequently asked questions
What is the difference between FCN-32s, FCN-16s, and FCN-8s?
All three variants share the same convolutional backbone. FCN-32s upsamples the stride-32 deep feature map directly back to the image resolution in a single step, giving coarse predictions. FCN-16s first upsamples by 2× and adds the stride-16 (pool4) feature map before a final 16× upsample, recovering some spatial detail. FCN-8s additionally incorporates the stride-8 (pool3) feature map for the finest resolution. Each step improves boundary sharpness at the cost of an additional training stage.
How does FCN differ from U-Net?
U-Net is a later encoder-decoder architecture built on the same general principle. It merges skip connections by concatenation rather than addition, which retains more channel information in the expanding path, and it uses a symmetric decoder that mirrors the encoder. U-Net was designed for biomedical images, where labelled training data are often scarce. FCN is the earlier architecture; U-Net is widely used in medical imaging.
What evaluation metric should I use for semantic segmentation?
Mean Intersection-over-Union (mIoU), averaged across all classes, is the standard metric in semantic segmentation benchmarks, including the PASCAL VOC results reported in the original FCN work. Pixel accuracy is a secondary metric and can be misleading when classes are imbalanced, because a model can score high accuracy by predicting only the dominant background class.
Do I need a large labelled dataset to train an FCN?
Training from scratch needs a large set of pixel-labelled images. In practice the usual approach is to initialise the convolutional backbone from an ImageNet-pretrained classifier, such as VGG-16, and fine-tune on the target segmentation dataset. This transfer-learning strategy is what makes FCN practical on datasets that are much smaller than the classification data used for pretraining, and more labelled data generally improves results.
Related methods
Sources
Long, J., Shelhamer, E., & Darrell, T. (2015). Fully Convolutional Networks for Semantic Segmentation. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 3431–3440.
Open DOI referenceShelhamer, E., Long, J., & Darrell, T. (2017). Fully Convolutional Networks for Semantic Segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(4), 640–651.
Open DOI referenceGoodfellow, I., Bengio, Y., & Courville, A. (2016). Deep Learning (Ch. 9). MIT Press.
ISBN: 978-0-262-03561-3