CardioSAM: Topology-Aware Decoder Design for High-Precision Cardiac MRI Segmentation
Organizations: ABV-IIITM Gwalior, India
Abstract
Accurate segmentation of cardiac structures in cardiovascular magnetic resonance (CMR) images is essential for reliable diagnosis and treatment of cardiovascular diseases. However, manual segmentation remains time-consuming and suffers from significant inter-observer variability. Recent advances in deep learning, particularly foundation models such as the Segment Anything Model (SAM), demonstrate strong generalization but often lack the boundary precision required for clinical applications. To address this limitation, we propose CardioSAM, a hybrid architecture that combines the generalized feature extraction capability of a frozen SAM encoder with a lightweight, trainable cardiac-specific decoder. The proposed decoder introduces two key innovations: a Cardiac-Specific Attention module that incorporates anatomical topological priors, and a Boundary Refinement Module designed to improve tissue interface delineation. Experimental evaluation on the ACDC benchmark demonstrates that CardioSAM achieves a Dice coefficient of 93.39%, IoU of 87.61%, pixel accuracy of 99.20%, and HD95 of 4.2 mm. The proposed method surpasses strong baselines such as nnU-Net by +3.89% Dice and exceeds reported inter-expert agreement levels (91.2%), indicating its potential for reliable and clinically applicable cardiac segmentation.
Figures & tables
| Method | Adaptation Strategy | DSC (%) | IoU (%) | HD95 (mm) | Accuracy (%) | Params (M) |
| U-Net | Full Training | 87.20 | 77.30 | 7.1 | 94.10 | 31.2 |
| DeepLab v3+ | Full Training | 84.30 | 72.80 | 8.4 | 91.90 | 59.8 |
| TransUNet | Full Training | 88.90 | 80.10 | 6.2 | 95.70 | 105.0 |
| nnU-Net | Auto-Configured | 89.50 | 81.20 | 5.9 | 96.30 | 45.1 |
| MedSAM | Full Fine-Tuning | 85.10 | 74.20 | 7.8 | 92.80 | 89.1 |
| SAM-2 | Zero-Shot | 86.40 | 76.50 | 7.2 | 93.50 | 92.4 |
| Component | Memory (GB) | Optimization |
| SAM Encoder | 3.6 | Frozen weights |
| Cardiac Decoder | 1.8 | Efficient design |
| Input/Output Buffers | 0.6 | Minimal overhead |
| Intermediate Features | 0.3 | Memory reuse |
| Total | 6.3 | Optimized |
| Benchmark | Dice Score (%) |
| Inter-observer (Expert vs. Expert) | 91.2 |
| Intra-observer (Expert vs. Self) | 93.8 |
| Clinical Threshold | 85.0 |
| CardioSAM | 93.39 |
| Metric | Score | 95% Confidence Interval |
| Dice Coefficient | 93.39% | [92.1, 94.7] |
| Pixel Accuracy | 99.20% | [98.9, 99.5] |
| IoU (Jaccard) | 87.61% | [86.2, 89.0] |
| Hausdorff Distance | 4.2 mm | [3.8, 4.6] |
| Sensitivity | 94.12% | [93.1, 95.1] |
| Specificity | 99.67% | [99.5, 99.8] |
| Configuration | DSC (%) | IoU (%) | HD95 (mm) | EF Error (%) |
| SAM Encoder + Basic Decoder | 85.12 | 74.23 | 8.4 | 4.9 |
| + Multi-Scale Fusion | 89.67 | 81.34 | 6.1 | 3.6 |
| + Cardiac-Specific Attention (CSAM) | 91.89 | 84.78 | 5.2 | 2.8 |
| + Boundary Refinement (BRM) | 92.78 | 86.12 | 4.5 | 1.7 |
| + Composite Loss (Full Pipeline) | 93.39 | 87.61 | 4.2 | 1.4 |
| Loss Configuration | Dice Score (%) | IoU (%) | HD95 (mm) | Precision (%) |
| Only | 91.23 | 84.21 | 6.8 | 87.40 |
| Only | 87.34 | 78.94 | 4.5 | 82.10 |
| Only | 89.12 | 80.56 | 5.9 | 85.60 |
| 92.67 | 86.45 | 5.2 | 89.80 | |
| 92.89 | 86.92 | 4.3 | 90.30 | |
| (Ours) | 93.39 | 87.61 | 4.2 | 91.25 |
| Condition / Structure | N | Dice Score (%) | IoU (%) |
| By Pathology | |||
| Normal Hearts | 30 | 94.12 | 88.89 |
| Dilated Cardiomyopathy | 40 | 92.78 | 86.54 |
| Hypertrophic Cardiomyopathy | 40 | 93.21 | 87.32 |
| Myocardial Infarction | 25 | 91.89 | 85.12 |
| Abnormal RV | 15 | 93.67 | 88.01 |
| Severity | Cases | Dice Score (%) | EF Error (%) | Vol. Error (mL) |
| Mild | 45 | 94.23 | 1.2 | 3.1 |
| Moderate | 67 | 93.12 | 1.8 | 4.7 |
| Severe | 38 | 92.45 | 2.3 | 6.2 |
Medical Image Segmentation
Medical image segmentation delineates organs, lesions, and other structures in scans to support measurement, diagnosis, treatment planning, and research.
See all 788 papers