Capsules for Object Segmentation

Rodney LaLonde, Ulas BagciarXiv 2018

Introduction

Convolutional Neural Networks (CNNs) have long been the gold standard for computer vision tasks. However, they possess a fundamental limitation: the reliance on max-pooling. While pooling layers provide spatial invariance, they do so by discarding precise positional information. This "where" vs. "what" trade-off often results in a loss of spatial relationships between object parts.

Capsule Networks (CapsNets) were introduced to address this by using vectors—capsules—to represent features like orientation and size, preserving the hierarchical relationships between parts and wholes. Despite their promise, original CapsNets were computationally intensive and struggled to scale beyond low-resolution datasets like MNIST. This paper presents SegCaps, the first architecture to successfully adapt Capsule Networks for high-resolution (512x512) medical image segmentation.

Methodology: The SegCaps Architecture

To make Capsule Networks viable for pixel-level segmentation, the authors introduced several architectural innovations. The core of SegCaps is a U-shaped structure that incorporates locally-constrained routing and deconvolutional capsules.

The SegCaps architecture featuring a U-shaped design with locally-constrained dynamic routing and deconvolutional capsules.

Locally-Constrained Dynamic Routing

In standard CapsNets, every capsule in one layer is routed to every capsule in the next, leading to a parameter explosion. SegCaps restricts this routing to a local spatial window, similar to a convolutional kernel. This modification drastically reduces memory consumption and computational overhead, enabling the processing of large medical images.

Deconvolutional Capsules and Weight Sharing

To perform segmentation, the network must upsample features back to the original resolution. The authors developed "deconvolutional capsules"—a capsule-based version of transposed convolutions—to project vector information into high-resolution masks. Additionally, transformation matrices are shared across spatial locations within a capsule type, further optimizing the parameter count.

Masked Reconstruction

As a regularization technique, the network is tasked with reconstructing the original input image from the final capsules. By focusing only on the "positive" class (e.g., lung tissue), the network is forced to learn highly specific features of the target object.

Results and Discussion

The SegCaps model was evaluated on the LUNA16 dataset, which consists of 888 low-dose CT scans. The primary task was to segment lung tissue from the thoracic cavity, a challenging problem due to various pathologies like nodules and fibrosis.

Quantitative comparison of SegCaps against U-Net and Tiramisu, highlighting the significant reduction in parameters and competitive Dice scores.

Efficiency and Performance

The most significant finding is the efficiency of the capsule-based approach. SegCaps achieved state-of-the-art results using only 1.4 million parameters, representing a 95.4% reduction compared to the standard U-Net (31.0 million parameters). Despite this massive reduction in size, SegCaps outperformed both U-Net and Tiramisu in terms of average Dice score, reaching 98.479%.

Qualitative Improvements

Beyond quantitative metrics, SegCaps demonstrated superior boundary definition. Visual analysis showed that SegCaps produced cleaner segmentations with fewer "leakage" errors—instances where the model incorrectly labels adjacent non-target tissue—compared to CNN-based baselines. This suggests that the preservation of part-whole relationships through capsules allows for a more robust understanding of object boundaries.

Conclusion and Future Work

SegCaps demonstrates that Capsule Networks can be scaled for complex, high-resolution tasks. By replacing global routing with local constraints, the authors solved the primary bottleneck of CapsNets. While the iterative nature of dynamic routing currently results in slower forward passes than some CNNs, the dramatic reduction in parameters and improved spatial awareness mark a significant step forward in medical image analysis. Future research will explore multi-class segmentation and further optimizations to routing speed.

Summary updated

BibTeX
@misc{lalonde2018capsules,
  author = {Rodney LaLonde and Ulas Bagci},
  title = {{Capsules for Object Segmentation}},
  year = {2018},
  eprint = {1804.04241},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.04241},
}
Figure