Learning to Segment: Training Hierarchical Segmentation under a Topological Loss

Jan Funke, Fred A. Hamprecht, Chong ZhangMICCAI 2015

Introduction

Accurately segmenting numerous similar objects in crowded images, such as touching or overlapping cells in microscopy, remains a significant challenge in computer vision. Local image measurements are often ambiguous due to noise or imaging artifacts, necessitating strong "priors" about valid object structures. Traditional approaches have relied on hand-designed cost functions or manually tuned parameters. While recent methods attempt to learn these costs from data, they often employ simple binary classifiers that ignore structural constraints or use loss functions (like Hamming distance) that fail to capture the topological severity of errors. For instance, splitting a single cell is a fundamentally different error than hallucinating a cell in the background, yet standard metrics often treat them as equivalent.

This research introduces a machine learning framework that selects optimal non-overlapping regions from a hierarchical "merge tree" of candidate segments. By training a structured Support Vector Machine (SVM) with a novel topological loss function—which explicitly penalizes splits, merges, false positives, and false negatives—the method achieves state-of-the-art accuracy on challenging cell segmentation tasks without requiring tedious manual tuning.

Methods: Hierarchical Selection and Topological Loss

The proposed pipeline frames segmentation as selecting a cost-minimal, non-overlapping subset of candidate regions from a hierarchy.

  1. Candidate Extraction (The Merge Tree): The image is first over-segmented into superpixels using boundary predictions. These superpixels are iteratively merged based on boundary strength to form a binary "merge tree," where every node represents a candidate segment.
  2. Inference: Finding the optimal segmentation involves selecting a set of nodes from this tree such that no two selected nodes overlap (i.e., a parent and its child cannot both be selected). This is formulated as a Linear Program (LP).
  3. Structured Learning: The cost of selecting each candidate is a linear combination of its features (intensity, shape, texture). A structured SVM learns the optimal weights for these features.
  4. The Topological Loss: During training, the SVM utilizes a loss function that explicitly counts topological errors. The framework first identifies a "best-effort" segmentation in the tree that most closely matches the ground truth. Penalties are then propagated: selecting children of a best-effort node incurs a "split" penalty, while selecting a parent incurs a "merge" penalty.
Schematic representation of the four topological error types—split, merge, false negative (FN), and false positive (FP)—as defined within the hierarchical merge tree.

Key Insights: Error Propagation and Linearity

A core innovation of this work is the systematic propagation of errors within the tree structure. Because candidate segments are hierarchical, a split error can be efficiently tracked down to children, and a merge error can bubble up to parents.

  • Linearity for Efficiency: The proposed topological loss function is linear with respect to the indicator variables (whether a segment is chosen). This linearity allows the structured SVM's maximization step to be solved rapidly using standard Linear Programming, avoiding computationally expensive combinatorial searches.
  • Best-Effort Ground Truth: By mapping human-annotated ground truth to a "best-effort" set of nodes in the merge tree before training, the framework becomes tolerant to minor human imprecisions in boundary delineation.

Experimental Results

The method was validated on three diverse 2D microscopy datasets: Hela cancer cells (phase contrast), and two types of yeast cells (bright field). These datasets are characterized by densely packed cells, weak boundaries, and out-of-focus artifacts.

The topological loss method robustly outperformed baselines, including Correlation Clustering variants and structured learning models using simpler loss functions (Hamming, Cover). On the Hela dataset, the method achieved a Variation of Information (VOI) of 0.77, the lowest Tolerant Edit Distance (TED) of 98 topological errors, and a Dice coefficient of 0.84. Qualitatively, the model successfully learned to identify background regions based on concavity and texture, resulting in significantly fewer false negatives and split errors compared to models trained with standard Hamming loss.

Conclusion and Future Directions

While highly effective, the approach is currently limited by the initial merge tree; if a boundary is missed during candidate extraction, the inference step cannot recover it. Future work aims to address this by constructing multiple overlapping trees during testing to provide a richer candidate pool. Additionally, while demonstrated on biological data, the framework could be adapted for other domains by using pixel-level classifiers to delineate borders where region cues are primary.

Summary updated

BibTeX
@inproceedings{funke2015learning,
  author = {Jan Funke and Fred A. Hamprecht and Chong Zhang},
  title = {{Learning to Segment: Training Hierarchical Segmentation under a Topological Loss}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2015},
  doi = {10.1007/978-3-319-24574-4\_32},
}
Figure