DenoiSeg: Joint Denoising and Segmentation

Tim-Oliver Buchholz, Mangal Prakash, Alexander Krull, Florian Jug

TL;DR

DenoiSeg is a novel training framework that solves the data-scarcity problem in microscopy image segmentation by jointly learning to denoise and segment within a single U-Net. By leveraging abundant, unlabeled noisy images via self-supervised denoising, the network learns robust structural features that enable accurate, dense semantic segmentation using only a handful of annotated ground-truth images.

What Problem Does This Paper Address?

Deep learning has revolutionized object segmentation in microscopy, but its success heavily relies on massive amounts of pixel-level annotated ground truth (GT) data. Generating these annotations is incredibly tedious, time-consuming, and requires domain expertise.

While self-supervised denoising methods like Noise2Void can train directly on noisy raw images without any labels, previous attempts to pair denoising with segmentation relied on sequential, two-step pipelines (i.e., denoise the image first, then pass it to a separate segmentation network). These cascaded architectures are computationally expensive and fail to exploit the potential synergy of learning both tasks simultaneously. DenoiSeg addresses this gap by introducing a single unified network that co-learns denoising and segmentation, drastically reducing the amount of annotated data required for high-quality segmentation.

Methods

The authors propose a joint training scheme utilizing a standard U-Net architecture modified to output four channels: three channels predict pixel probabilities for a 3-class segmentation task (foreground, background, and border), while the fourth channel outputs the denoised image.

Fig. 1. The proposed DenoiSeg training scheme. A U-Net is trained with a joint self-supervised denoising loss (Ld) and a classical segmentation loss (Ls). Both losses are weighted with respect to each other by a hyperparameter α. In this example, Ld can be computed on all 3800 training patches, while Ls can only be computed on the 10 available annotated ground truth patches that are available for segmentation.

The network is trained using a joint loss function: $$L = \frac{1}{m} \sum_{i=1}^{m} \left[ \alpha \cdot L_d(x_i, f(x_i)) + (1 - \alpha) \cdot L_s(y_i, f(x_i)) \right]$$

Where:

  • $L_d$ is the self-supervised Noise2Void denoising loss (Mean Squared Error calculated over a randomly selected subset of masked blind-spot pixels). This can be computed for all available raw images.
  • $L_s$ is the standard cross-entropy segmentation loss, which is only computed for the small subset of images that have ground-truth annotations (and set to 0 otherwise).
  • $\alpha$ is a tunable hyperparameter balancing the two tasks.

Datasets

The method was evaluated on three distinct biological datasets, augmented with synthetic pixel-wise independent Gaussian noise at different standard deviations (denoted as $n0$ for no added noise, $n10$, and $n20$):

  • DSB (Kaggle 2018 Data Science Bowl): 3,800 training/validation patches and 50 test images of nuclei.
  • Fly Wing: 1,428 training/validation patches and 50 test images depicting membrane-labeled fly wing tissues.
  • Mouse Nuclei: A challenging dataset of 908 training/validation patches and 67 test images showing diverse, non-uniformly clustered nuclei in a mouse skull.

Key Insights and Ideas

  • The Co-Learning Synergy: Denoising acts as a powerful regularizer for the segmentation task. Because the network sees all available raw data to become a "denoising expert," it naturally learns meaningful feature representations (like edges and boundaries) that directly bootstrap its ability to segment, even when segmentation labels are extremely scarce.
  • The Paradox of Noise: Counter-intuitively, the authors discovered that DenoiSeg performs better on high-quality, low-noise data when moderate amounts of synthetic noise are intentionally added. If the input data is perfectly clean, the denoising task becomes a trivial identity mapping ($f(x) = x$), which prevents the network from learning useful structural features. Introducing noise forces the network to learn, unleashing the co-learning effect.
  • Hyperparameter Robustness: The system is remarkably robust to the choice of $\alpha$. Testing across a broad range (from 0.3 to 0.7) showed consistently strong performance improvements over pure segmentation baselines.

Key Results

DenoiSeg consistently outperformed both a pure segmentation baseline and sequential denoising-then-segmentation pipelines in few-shot scenarios:

  • On the DSB dataset, using only 10 annotated patches out of 3,800 (less than 0.27% of the data), DenoiSeg achieved significantly higher Average Precision (AP) and SEG-scores than the baselines.
  • For the Fly Wing and Mouse Nuclei datasets, DenoiSeg delivered acceptable segmentation results using just 2 annotated patches.
Fig. 2. Qualitative results on DSB n10 (first row), Fly Wing n10 (second row) and Mouse Nuclei n10 (third row). The first column shows an example test image. Numbers indicate how many noisy input and annotated ground truth (GT) patches were used for training. Note that segmentation GT was only available for at most 10 images, accounting for less than 0.27% of the available raw data. Other columns show depicted inset regions, from left to right showing: raw input, segmentation GT, results of two baseline methods, and our DenoiSeg segmentation and denoising results.
  • Denoising Quality Preservation: Co-learning segmentation does not meaningfully degrade denoising capabilities. As shown in Table 1, DenoiSeg's Peak Signal-to-Noise Ratio (PSNR) values were only marginally lower than a dedicated, standalone Noise2Void network.

Limitations and Future Work

  • Noise-Free Dependency: The performance advantage of DenoiSeg is partially compromised on clean, noise-free data unless users manually inject synthetic noise to stimulate the co-learning mechanism.
  • Pixel-Independent Noise Assumption: Because DenoiSeg builds on Noise2Void, it inherits the assumption that image noise is pixel-wise independent. It may struggle with complex, spatially correlated noise patterns (e.g., structural camera artifacts) without further modifications to the masking scheme.
  • Future Directions: Future work could explore extending this joint-learning framework to other self-supervised tasks beyond denoising, or adapting it to handle 3D microscopy stacks.

Summary updated

BibTeX
@inproceedings{buchholz2020denoiseg,
  author = {Tim-Oliver Buchholz and Mangal Prakash and Alexander Krull and Florian Jug},
  title = {{DenoiSeg: Joint Denoising and Segmentation}},
  booktitle = {Workshops @ ECCV},
  year = {2020},
  doi = {10.1007/978-3-030-66415-2\_21},
}
Figure