Abstract
PatchPerPix (PPP) is a novel, proposal-free instance segmentation method designed for complex biological structures. By predicting local shape patches for every pixel and assembling them through a consensus-voting mechanism, PPP effectively disentangles overlapping and non-convex objects like worms and neurons, achieving state-of-the-art results on multiple biomedical benchmarks.
Introduction: The Challenge of Biological Instance Segmentation
Instance segmentation—the task of detecting and delineating every individual object in an image—is notoriously difficult in the biomedical domain. While popular "proposal-based" methods like Mask R-CNN work well for objects that fit neatly into bounding boxes (like cars or people), they struggle with biological structures.
Consider a cluster of C. elegans worms or a network of neurons: these objects are often long, thin, and frequently overlap or cross over one another. In these cases, multiple distinct individuals might share nearly identical bounding boxes, causing proposal-based methods to fail. Conversely, "proposal-free" methods (like watershed or metric learning) often predict pixel-level properties but fail to explicitly capture the global shape of the objects, making it nearly impossible to disentangle instances that physically overlap in 2D or 3D space.
Methods: Puzzling Together Local Shapes
The authors introduce PatchPerPix (PPP), which treats instance segmentation as a jigsaw puzzle. Instead of predicting a single label for a pixel, the network predicts a local shape patch for every foreground pixel.
The pipeline follows three main steps:
- Dense Prediction: A U-Net-based architecture predicts a local binary mask (a "patch") for every pixel, representing the local shape of the instance that pixel belongs to.
- Consensus Voting: Since every pixel in an instance predicts its own version of the local neighborhood, the method calculates a "consensus affinity." It looks at all overlapping predicted patches to determine how much they agree that two pixels belong to the same object.
- Patch Selection & Assembly: High-quality patches (those that agree most with the consensus) are selected using a greedy set-cover algorithm. Finally, these patches are linked into a graph, and the final instances are extracted using graph partitioning (like Connected Components or Mutex Watershed).
Architecture and Compression
To optimize performance, the authors explored several architectures. The most effective variant, ppp+dec, uses a U-Net to predict a compressed "code" for each pixel. This code is then decoded into a patch by a jointly trained decoder, offering a superior balance of accuracy and memory efficiency compared to static autoencoders.
Key Insights
- Shape over Affinities: Traditional affinity-based methods only ask, "Are these two pixels related?" PPP asks, "What does the local shape look like?" This explicit shape information is the key to disentangling objects that occupy the same space (crossovers).
- The Power of Consensus: By requiring patches to agree with one another, the method becomes robust to individual noisy predictions. The "consensus score" effectively acts as a quality filter for the predicted geometry.
- Handling Overlap: To deal with pixels where multiple objects truly overlap, the network learns to predict an "overlap" class, masking out these regions during initial assembly to prevent confusion.
Results and Benchmarks
PatchPerPix defined a new state-of-the-art (SOTA) across four major benchmarks:
- ISBI 2012 (Neurons): At the time of publication, it held the #1 spot on the leaderboard for segmenting neuronal structures in EM stacks.
- BBBC010 (Worms): Achieved an $AP_{COCO}$ of 0.775, significantly outperforming the previous best of 0.724 on brightfield images of overlapping worms.
- dsb2018 & nuclei3d (Cell Nuclei): On the
dsb2018dataset, it reached an average precision of 0.693, beating StarDist (0.584) and Mask R-CNN (0.594). - 3D Complexity (Drosophila): The method successfully segmented thin, intertwined neurons in 3D volumes, proving its "puzzle piece" approach scales to high-dimensional, non-convex shapes.
Limitations and Future Work
The primary bottleneck is computational, particularly in 3D. To keep processing times manageable, 3D patch sizes were limited to $9 \times 9 \times 9$ pixels, which may lack sufficient geometric context for very large 3D objects. Additionally, if an overlapping region is larger than the patch size, the method may struggle to bridge the gap. Future work aims to optimize the assembly pipeline for larger patches and more efficient 3D processing.
Summary updated