Paper commentary
U-Net: Convolutional Networks for Biomedical Image Segmentation
- Problem Dense biomedical segmentation needs a class label for every pixel, but annotated images are scarce, and the sliding-window approach that copes with this is slow and trades localization accuracy against context.
- Method Uses a U-shaped network with a contracting path and a symmetric expansive path, trained on single images with elastic-deformation augmentation and a weighted pixel-wise cross entropy loss, and applied to large images with an overlap-tile strategy.
- Results Reached a warping error of 0.0003529 and a Rand error of 0.0382 on the EM segmentation challenge, averaged over 7 rotated inputs with no further pre- or postprocessing.
Why dense labels from few images are hard
Classification networks assign one label to a whole image, while biomedical tasks usually need a label for every pixel, and annotated training sets there are rarely large. Ciresan et al. handled this with a sliding-window network that classifies each pixel from a patch around it, and because each patch counts as a training example, the number of patches far exceeds the number of images.
The approach has two costs: each patch is processed separately, so overlapping patches repeat computation, and patch size sets a trade-off, since large patches need more max pooling that blurs localization while small patches see little context. Later methods combined features from several layers to recover both, but the authors start from a fully convolutional design in which pooling is replaced by upsampling, so the output resolution rises again.
A U-shaped network with two paths
The contracting path repeats two unpadded 3x3 convolutions, each followed by a ReLU, and then a 2x2 max pooling with stride 2, and the number of feature channels doubles at every downsampling step. The expansive path mirrors this: each step upsamples, applies a 2x2 up-convolution that halves the channel count, concatenates the cropped feature map from the contracting path, and applies two 3x3 convolutions, each followed by a ReLU.
Figure 1 shows the resulting U-shape, with channel counts above each box and the copied feature maps drawn in white.
Cropping is needed because every unpadded convolution removes border pixels, so the skip connection must be trimmed to match the upsampled map. Carrying high-resolution features from the contracting path into the expansive path lets the decoder recover precise positions, while the wide channel count in the expansive path passes context to the higher-resolution layers.
Seamless tiling for large images
Because the convolutions are unpadded, the network outputs only the pixels whose full context lies inside the input image. The overlap-tile strategy therefore predicts each tile's valid region from a larger input window that overlaps the neighbouring tiles, so the predicted regions join without seams.
Figure 2 marks the predicted yellow region and the larger blue input region that supplies its context. Border pixels lack part of their context, and this missing context is filled by mirroring the input image. Tiling matters because without it, the image resolution would be bounded by GPU memory; the input tile size is chosen so that every 2x2 max pooling acts on a layer with an even x- and y-size.
Training with a weighted loss
Training uses stochastic gradient descent in Caffe with a batch of one image, because larger input tiles were preferred over larger batches to make use of GPU memory. A momentum of 0.99 is used so that many previously seen samples shape each update.
A pixel-wise soft-max turns the final feature map into class probabilities: for class k at pixel x, p_k(x) = exp(a_k(x)) divided by the sum over k' from 1 to K of exp(a_k'(x)), where a_k(x) is the activation in channel k. In the formula, \( p_k(x)=\frac{\exp(a_k(x))}{\sum_{k'=1}^{K}\exp(a_{k'}(x))} \), so the probabilities at each pixel sum to one across the K classes.
The loss is the weighted sum over pixels, \( E=\sum_{x\in\Omega} w(x)\log p_{\ell(x)}(x) \), where \( \ell(x) \) is the true label of pixel x and w(x) is its weight. As printed, E has no leading minus sign, although the text describes it as penalizing how far p is from 1, so the sign convention should be checked against the authors' implementation.
The weight map is precomputed from each ground truth segmentation, both to compensate for the uneven class frequencies and to make the network learn the thin borders between touching cells. Figure 3 shows this on DIC images of HeLa cells: the raw image, the ground truth overlay, the foreground mask and the pixel-wise loss weight map.
Initial weights are drawn from a Gaussian whose standard deviation depends on N, the number of incoming nodes of one neuron, so that feature maps start at roughly unit variance. For a 3x3 convolution with 64 feature channels in the previous layer, N = 9 · 64 = 576.
Elastic deformation augmentation
With very few annotated images, augmentation has to supply the invariances the task needs, which for microscopy are shift and rotation invariance, robustness to deformations and robustness to gray value variation. Elastic deformations are the main tool for this, because deformation is the most common variation in tissue and can be simulated efficiently.
Random displacement vectors are placed on a coarse 3 by 3 grid and sampled from a Gaussian with a standard deviation of 10 pixels; bicubic interpolation then gives a displacement for every pixel. Dropout layers at the end of the contracting path add further implicit augmentation.
Because the network sees deformed versions of its training images, it learns invariance to those deformations without needing them to appear in the annotated corpus. The authors point to earlier unsupervised feature learning work as evidence that augmentation can teach invariance in general.
EM segmentation of neuronal structures
The test labels are held by the organizers, so predicted membrane probability maps are submitted and scored.
Each map is thresholded at 10 levels and scored by warping error, Rand error and pixel error, where lower values are better. The u-net outputs are averaged over 7 rotated versions of the input, with no further pre- or postprocessing.
The u-net reached a warping error of 0.0003529 and a Rand error of 0.0382. The sliding-window network of Ciresan et al., listed as IDSIA [1] in the ranking, had a warping error of 0.000420 and a Rand error of 0.0504 in its best submission.
On pixel error the u-net reached 0.0611, just below IDSIA's 0.0613. DIVE-SCI, ranked second, has a warping error of 0.000355 and a lower Rand error of 0.0305 and pixel error of 0.0584 than the u-net.
Light microscopy cell segmentation
The same network was trained on transmitted light microscopy images, and two 2D data sets from the ISBI cell tracking challenge 2014 and 2015 were used. PhC-U373 contains phase contrast images of Glioblastoma-astrocytoma U373 cells with 35 partially annotated training images, and DIC-HeLa contains differential interference contrast images of HeLa cells with 20 partially annotated training images.
On PhC-U373 the u-net reached an average IOU of 92%, compared with 83% for the second-best 2015 algorithm. IOU is the intersection over union, so higher values indicate better overlap with the reference masks.
On DIC-HeLa the u-net reached an average IOU of 77.5%, compared with 46% for the second-best algorithm. Table 2 lists older entries as well, for example KTH-SE at 0.7953 on PhC-U373 and 0.4607 on DIC-HeLa.
Several of the strongest rivals apply highly data set specific post-processing to the probability map of Ciresan et al., so the comparison is between the u-net as applied without such steps and pipelines that include them. Using the same network, the u-net won the ISBI cell tracking challenge 2015 in these two 2D transmitted light categories by a large margin.
Limits of the reported evidence
The reported evidence covers three settings: neuronal structures in EM stacks, and two transmitted light cell data sets. No other biomedical data set is evaluated in the paper.
On the EM challenge the lead is not uniform, since DIVE-SCI has a lower Rand error than the u-net, 0.0305 against 0.0382. The u-net's pixel error is only slightly lower than that of IDSIA, 0.0611 against 0.0613.
The EM results use the challenge's warping, Rand and pixel errors, while the cell results use IOU on two data sets with 35 and 20 partially annotated training images, so the two sets of scores are not directly comparable. The cell comparison also includes rivals with dataset-specific post-processing, so the second-best numbers do not isolate the network alone.
The units contain no ablation that removes the weighted loss or the elastic deformation augmentation, so the authors' argument for these components is not backed by a measured comparison in the text.
Paper info
- Authors
- Olaf Ronneberger, Philipp Fischer, Thomas Brox
- Venue
- arXiv · Preprint
- First published
- 2015-5-18
- Added
- 2026-10-20
- Updated
- 2015-5-18
- Version
- v1
- arXiv
- 1505.04597
- Category
- cs.CV
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Olaf Ronneberger, Philipp Fischer, Thomas Brox (2015). U-Net: Convolutional Networks for Biomedical Image Segmentation. arXiv:1505.04597v1. https://arxiv.org/abs/1505.04597v1
BibTeX
@misc{ronneberger2015convolutional,
title = {{U-Net: Convolutional Networks for Biomedical Image Segmentation}},
author = {Olaf Ronneberger and Philipp Fischer and Thomas Brox},
year = {2015},
eprint = {1505.04597},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1505.04597v1}
}