Introduction
Accurate segmentation and motion estimation of the myocardium are critical for diagnosing cardiac diseases. While deep learning models like U-Net have achieved high pixel-level accuracy, they often struggle with maintaining global shape integrity, sometimes producing anatomically impossible results like fragmented masks or isolated pixel clusters. Furthermore, standard segmentation masks lack point-to-point correspondence across different frames of a cardiac cycle, which is essential for tracking heart motion.
To address these challenges, we propose the Deep Statistic Shape Model (DSSM), an end-to-end framework that combines the anatomical constraints of traditional statistical models with the predictive power of deep neural networks. Our approach ensures shape integrity and provides inherent boundary correspondence for downstream clinical tasks.
Methodology
Statistical Shape Model (SSM) Prior
We represent myocardium shapes using a fixed number of points. By applying Principal Component Analysis (PCA) to a large set of ground-truth shapes, we extract a "Mean Shape" and identify the primary modes of variation (deformation). This mathematical constraint ensures that any predicted shape is a valid variation of a human heart.
Network Architecture and Differentiable Rendering
The framework utilizes a ResNet-34 backbone to analyze MRI images and predict two sets of parameters: affine transformation (position, scale, and rotation) and deformation coefficients (how the shape deviates from the mean).
A key innovation is the introduction of a differentiable rendering layer. Traditionally, converting point clouds to 2D masks is a non-differentiable operation that prevents gradient flow. Our differentiable renderer allows the network to generate a mask from the predicted points and compare it directly to the ground-truth mask during training. This enables the model to optimize for both point-wise accuracy and pixel-wise overlap (Dice score).
Experimental Results
Shape Integrity and Boundary Accuracy
We evaluated the DSSM on over 15,000 images across 2-chamber, 3-chamber, and 4-chamber views. The model demonstrated superior boundary accuracy compared to standard U-Net and FCN models. In the 4-chamber view, DSSM achieved a Hausdorff Distance (HD) of 1.847mm, significantly better than U-Net's 2.589mm.
Crucially, the DSSM maintained perfect shape integrity, consistently producing exactly 1.0 connected components. In contrast, baseline models frequently produced fragmented masks, with average component counts ranging from 1.2 to 1.9.
Implicit Motion Tracking
Because every predicted shape is a deformation of the same indexed mean point cloud, point correspondence is preserved automatically. Point #N in the first frame of a sequence corresponds to the exact same anatomical location as Point #N in the last frame. This "free" correspondence simplifies downstream tasks like cardiac motion estimation and strain analysis without requiring additional tracking algorithms.
Conclusion
The Deep Statistic Shape Model (DSSM) bridges the gap between geometric priors and deep learning. By enforcing anatomical constraints through a statistical shape model and supervising the output via a differentiable rendering layer, we achieve segmentations that are not only accurate but also physically plausible and motion-ready. Future work will explore extending this framework to 3D dynamic MRI volumes.
Summary updated