The Mutex Watershed: Efficient, Parameter-Free Image Partitioning

Steffen Wolf, Constantin Pape, Alberto Bailoni, Nasim Rahaman, Anna Kreshuk, Ullrich Köthe, Fred A. Hamprecht

Abstract

The Mutex Watershed (MWS) is an efficient, parameter-free algorithm for image partitioning. By generalizing the classical watershed transform to include both attractive and repulsive cues, MWS achieves the performance of complex, NP-hard correlation clustering (Multicut) formulations while maintaining the linearithmic complexity of Kruskal’s algorithm. MWS requires no seeds or manual thresholds, making it highly scalable and robust for large-scale volumetric data, such as neuron segmentation in electron microscopy.

Introduction

Image partitioning is a core task in computer vision, aimed at dividing an image into meaningful segments without prior semantic labels. Traditional approaches generally fall into two categories: simple, fast algorithms like the standard Watershed or Single Linkage Clustering, which often require manual seeds or thresholds to prevent over-segmentation; and powerful but computationally expensive "Multicut" formulations. Multicut methods can find a natural number of segments by balancing attractive and repulsive forces, but solving them is NP-hard.

The Mutex Watershed bridges this gap, providing a greedy algorithm that is as fast as a watershed but as parameter-free as a multicut.

Methodology

The Mutex Watershed operates on a graph $G = (V, E)$ where pixels are nodes and edges represent interactions. Edges are categorized into two types:

  1. Attractive edges ($E^+$): Typically short-range connections suggesting pixels belong to the same segment.
  2. Repulsive edges ($E^-$): Long-range "mutex" (mutual exclusion) connections suggesting pixels belong to different segments.
Conceptual graph representation of attractive (green) and repulsive (red) edges in the Mutex Watershed algorithm.

The algorithm follows a greedy, Kruskal-like approach:

  1. All edges (attractive and repulsive) are sorted by weight in descending order.
  2. The algorithm iterates through the sorted list:
  3. For an attractive edge: Merge the two clusters unless they are already connected or a mutex constraint exists between them.
  4. For a repulsive edge: Establish a mutex constraint between the two clusters unless they are already connected in the same segment.

This priority-based processing ensures that high-certainty decisions are made first, and dynamic mutex constraints prevent segments from merging across boundaries without needing explicit seeds.

Experimental Results

The MWS was evaluated on the ISBI 2012 EM Segmentation Challenge and the BSDS500 natural image dataset.

Application of MWS to neuron segmentation in EM images, showing edge maps and final partitioning with mutex constraints.

Performance and Efficiency

On the ISBI 2012 benchmark, MWS achieved state-of-the-art results, holding the top entry on the leaderboard at the time of submission. Crucially, MWS demonstrated massive speedups over NP-hard alternatives. While a full Multicut (MC-FULL) took over 2.5 hours (9415.8 seconds) to process the benchmark, MWS completed the task in just 43.32 seconds with higher accuracy.

Robustness

Ablation studies on BSDS500 showed that the algorithm is remarkably robust to noise. It maintained high segmentation quality even when 60% of the input affinities were replaced with random noise, highlighting the strength of the greedy priority-based approach.

Discussion and Conclusion

The Mutex Watershed offers a "best of both worlds" solution for image partitioning. It provides the natural partitioning of a multicut with the $O(E \log E)$ complexity of a watershed. While the algorithm's performance depends on the quality of edge weights provided by a neural network, its deterministic and greedy nature makes it less sensitive to certain modeling errors compared to exact solvers.

Future work includes extending MWS to semantic instance segmentation, where the algorithm would not only partition the image but also classify the resulting segments.

Summary updated

BibTeX
@inproceedings{wolf2018mutex,
  author = {Steffen Wolf and Constantin Pape and Alberto Bailoni and Nasim Rahaman and Anna Kreshuk and Ullrich Köthe and Fred A. Hamprecht},
  title = {{The Mutex Watershed: Efficient, Parameter-Free Image Partitioning}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01225-0\_34},
}
Figure