Introduction
Volumetric medical imaging, such as Magnetic Resonance Imaging (MRI) and Computed Tomography (CT), provides a three-dimensional view of human anatomy. However, segmenting these volumes presents a persistent trade-off in computer vision. Standard 2D Convolutional Neural Networks (CNNs) are computationally efficient and memory-friendly but process each slice in isolation, often leading to inconsistent or "jagged" segmentations across the Z-axis. Conversely, 3D CNNs capture spatial context effectively but are characterized by massive parameter counts and high computational costs, making them difficult to deploy on standard hardware.
This paper introduces the Contextual Embedding (CE) block, a lightweight, "plug-and-play" module designed to bridge this gap. By enabling 2D networks to leverage inter-slice correlations through a matching mechanism in a high-dimensional embedding space, the CE block provides 2D architectures with the spatial awareness of 3D networks without the associated overhead.
The Contextual Embedding (CE) Block
The CE block functions by providing a "soft cue" from neighboring slices to guide the segmentation of the current slice. The process is divided into three distinct stages:
1. Embedding Space Mapping
The block first projects features extracted by a 2D backbone (such as a U-Net or DeepLabV3) into a high-dimensional embedding space. In this space, the network learns to group pixels belonging to the same anatomical structure together, ensuring that mathematical proximity correlates with biological identity, regardless of raw pixel intensity variations.
2. Slice-wisely Neighboring Matching
To segment a target slice ($S_n$), the module references the segmentation results of a neighboring slice ($S_{n-l}$). It calculates a distance map by comparing the embeddings of the current slice to the known organ pixels in the neighbor. This map effectively informs the network where the organ is likely to be located based on the previous slice's geometry, acting as a spatial prior.
3. Attention Merge Module (AMM)
The final stage involves fusing the independent 2D prediction with the context-aware prediction derived from the neighbor. The AMM utilizes global average pooling and a gating mechanism to intelligently weight these two inputs. This ensures that the model relies on contextual cues when the 2D features are ambiguous, while maintaining the precision of the 2D backbone.
Experimental Evaluation
The authors validated the CE block across two challenging benchmarks representing different modalities and anatomical structures:
- PROMISE12 (Prostate MRI): This dataset includes 50 volumes with significant variation in contrast and shape, making prostate boundaries difficult to define.
- CHAOS (Abdominal CT): Focused on liver segmentation across 40 volumes, this benchmark tests the model's ability to distinguish between the liver and adjacent organs with similar intensities.
To demonstrate the module's versatility, it was integrated into three diverse architectures: a standard U-Net, a dilated convolution-based DeepLabV3+, and a transformer-based Missformer.
Results and Analysis
The integration of the CE block yielded significant performance gains across all metrics while maintaining a minimal computational footprint.
Accuracy and Boundary Precision
On the PROMISE12 dataset, the addition of the CE block to a 2D U-Net improved the Dice Similarity Coefficient (DSC) from 85.67% to 87.38%, notably outperforming the 3D U-Net (86.03%). In the CHAOS liver segmentation task, the improvement was even more pronounced in terms of boundary accuracy; the Average Symmetric Surface Distance (ASSD) dropped from 1.84mm to 0.50mm, indicating a much smoother and more anatomically correct 3D reconstruction.
Efficiency and Scalability
The CE block adds only approximately 0.2 million parameters. For instance, the DeepLabV3+CE model utilizes 25.63M parameters, a stark contrast to the 74.72M required by a full 3D DeepLabV3. Furthermore, the CE-enhanced U-Net achieved its superior performance using only 6.62G FLOPs, compared to the 61.97G FLOPs required by the 3D U-Net. This demonstrates that explicit 3D convolutions are not always necessary for volumetric tasks if inter-slice information is shared effectively.
Conclusion
The Contextual Embedding block offers a robust solution for enhancing 2D networks in medical imaging. By treating neighboring slice information as a contextual guide rather than a rigid constraint, it achieves 3D-level accuracy with 2D-level efficiency. Future work will focus on extending this method to multi-organ segmentation and exploring adaptive slice intervals to better accommodate complex anatomical variations.
Summary updated