End-To-End Learned Random Walker for Seeded Image Segmentation.

Lorenzo Cerrone, Alexander Zeilmann, Fred A. Hamprecht

Abstract

We present an end-to-end learned algorithm for seeded segmentation. Our method is based on the Random Walker algorithm, where we predict the edge weights of the underlying graph using a convolutional neural network. This can be interpreted as learning context-dependent diffusivities for a linear diffusion process. After calculating the exact gradient for optimizing these diffusivities, we propose simplifications that sparsely sample the gradient while still maintaining competitive results. The proposed method achieves the currently best results on the seeded CREMI neuron segmentation challenge.

Introduction

Image segmentation—partitioning an image into meaningful regions—is a cornerstone of computer vision. In "seeded" segmentation, a user or an automated "oracle" provides a few starting points (seeds) for different objects, and the algorithm must determine the precise boundaries. Traditionally, this is a two-step process: a CNN predicts boundaries, and then a graph-based algorithm (like Watershed or Random Walker) uses those edges and the seeds to fill in the regions.

The "gap" in traditional methods is that these two steps are usually disconnected. The CNN is trained to find any edge, without knowing how the subsequent inference algorithm will use that information. This paper introduces the Learned Random Walker (LRW), an end-to-end trainable pipeline that allows the CNN to learn "context-dependent diffusivities"—essentially learning which edges matter most for the specific logic of the Random Walker.

Methods

The authors use the Random Walker (RW) algorithm as their inference engine. RW treats the image as a graph where pixels are nodes and edge weights represent how easily a "walker" can move between them. It solves a large system of linear equations to determine the probability of a pixel belonging to a specific seed.

Overview of the Learned Random Walker pipeline showing the integration of CNN-predicted diffusivities with the Random Walker algorithm during training and test time.

The core technical contribution is making this process differentiable. To train the CNN via backpropagation, the authors calculate the gradient of the Random Walker's output with respect to the edge weights predicted by the CNN. Because calculating the exact gradient for millions of pixels is computationally staggering, they introduced two clever approximations:

  • Sparse Gradient: Instead of calculating the gradient for every edge, they randomly sample a small subset (e.g., 1024 edges).
  • Gradient Pruning: They only compute contributions for the most likely label at each pixel.

These simplifications resulted in a 15-fold speedup with negligible loss in accuracy, making end-to-end training feasible on standard hardware.

Key Results and Insights

The primary evaluation was performed on the CREMI (MICCAI Challenge) dataset of Electron Microscopy images and Arabidopsis Thaliana Ovules. The LRW significantly outperformed the standard, non-jointly trained version.

  • Quantitative Performance: On the CREMI dataset, LRW achieved a Total Variation of Information (VOI) of 0.162, compared to 0.320 for the standard Random Walker. It also outperformed "Learned Watershed" on two out of three CREMI volumes.
  • Overcoming "Shrinkage Bias": Standard Random Walker often struggles with narrow corridors, tending to "shrink" the segment prematurely. By training end-to-end, the CNN learns to predict much higher diffusivity (lower edge weights) inside these narrow regions, effectively teaching the algorithm a "shape prior."
  • Robustness: Unlike the Watershed algorithm, which is sensitive to noise because it relies on the single "cheapest" path, the Random Walker is more robust because it effectively averages over all possible paths.
Visual results of the LRW method on neuron segmentation, including predicted segmentation from seeds, error map, and uncertainty estimation.

Limitations and Future Work

While the method achieves state-of-the-art results, the authors noted a tendency for the structured training to sometimes "hallucinate" boundaries (false positives) in complex textures. Additionally, the method currently assumes an oracle provides exactly one seed per segment. Future directions include exploring training from sparse ground truth, which would make the algorithm even more practical for researchers who cannot provide dense labels for every pixel in their training data.

Summary updated

BibTeX
@inproceedings{cerrone2019end,
  author = {Lorenzo Cerrone and Alexander Zeilmann and Fred A. Hamprecht},
  title = {{End-To-End Learned Random Walker for Seeded Image Segmentation.}},
  booktitle = {CVPR},
  year = {2019},
  url = {https://openreview.net/forum?id=SjWINeXeOpS},
}
Figure