[Paper Review] MedCLIP-SAMv2: Towards Universal Text-Driven Medical Image Segmentation
MedCLIP-SAMv2 introduces a novel text-driven medical image segmentation framework that integrates fine-tuned BiomedCLIP with Segment-Anything-Model (SAM) for zero-shot and weakly supervised segmentation across CT, MRI, ultrasound, and X-ray. By employing a new Decoupled Hard Negative Noise Contrastive Estimation (DHN-NCE) loss and Multi-modal Information Bottleneck (M2IB) for visual prompt generation, it achieves state-of-the-art performance with minimal annotation, significantly outperforming prior methods in complex tumor segmentation tasks.
Segmentation of anatomical structures and pathological regions in medical images is essential for modern clinical diagnosis, disease research, and treatment planning. While significant advancements have been made in deep learning-based segmentation techniques, many of these methods still suffer from limitations in data efficiency, generalizability, and interactivity. As a result, developing precise segmentation methods that require fewer labeled datasets remains a critical challenge in medical image analysis. Recently, the introduction of foundation models like CLIP and Segment-Anything-Model (SAM), with robust cross-domain representations, has paved the way for interactive and universal image segmentation. However, further exploration of these models for data-efficient segmentation in medical imaging is still needed and highly relevant. In this paper, we introduce MedCLIP-SAMv2, a novel framework that integrates the CLIP and SAM models to perform segmentation on clinical scans using text prompts, in both zero-shot and weakly supervised settings. Our approach includes fine-tuning the BiomedCLIP model with a new Decoupled Hard Negative Noise Contrastive Estimation (DHN-NCE) loss, and leveraging the Multi-modal Information Bottleneck (M2IB) to create visual prompts for generating segmentation masks from SAM in the zero-shot setting. We also investigate using zero-shot segmentation labels within a weakly supervised paradigm to enhance segmentation quality further. Extensive testing across four diverse segmentation tasks and medical imaging modalities (breast tumor ultrasound, brain tumor MRI, lung X-ray, and lung CT) demonstrates the high accuracy of our proposed framework. Our code is available at https://github.com/HealthX-Lab/MedCLIP-SAMv2.
Motivation & Objective
- Address the critical challenge of data scarcity in medical image segmentation by enabling zero-shot and weakly supervised learning with minimal annotated data.
- Improve generalization and robustness of segmentation models across diverse medical imaging modalities (CT, MRI, ultrasound, X-ray) without task-specific retraining.
- Develop a framework that supports interactive, text-driven segmentation using natural language prompts, enhancing clinical usability and interpretability.
- Enhance model reliability through uncertainty estimation in weakly supervised settings, enabling clinicians to identify high-risk prediction regions.
- Overcome limitations of prompt dependency in SAM by generating reliable visual prompts from CLIP-based representations without ground-truth segmentation labels.
Proposed method
- Proposes a new fine-tuning loss, Decoupled Hard Negative Noise Contrastive Estimation (DHN-NCE), to improve BiomedCLIP’s representation learning for medical image-text alignment.
- Introduces Multi-modal Information Bottleneck (M2IB) to generate high-quality visual prompts from text embeddings, enabling zero-shot segmentation via SAM.
- Leverages text prompt engineering with LLM reasoning and ensembling to optimize prompt quality and improve segmentation accuracy in complex anatomical regions.
- Employs pseudo-labeling from zero-shot segmentation to fine-tune nnUNet in a weakly supervised setting, improving performance on challenging datasets like lung CT.
- Incorporates checkpoint ensembling for uncertainty estimation in weakly supervised training, providing confidence scores for segmentation predictions.
- Combines CLIP-based visual prompt generation with SAM’s zero-shot mask head to produce accurate segmentation masks without requiring ground-truth annotations during inference.
Experimental results
Research questions
- RQ1Can a vision-language foundation model like BiomedCLIP be effectively fine-tuned using a novel contrastive loss (DHN-NCE) to improve zero-shot medical image segmentation?
- RQ2To what extent can the Multi-modal Information Bottleneck (M2IB) generate high-quality visual prompts that enable accurate SAM-based segmentation in zero-shot settings?
- RQ3How does text prompt engineering, especially when enhanced by LLM reasoning and ensembling, affect segmentation performance across diverse anatomical structures and imaging modalities?
- RQ4Can pseudo-labels from zero-shot segmentation be effectively used to improve model accuracy in a weakly supervised setting, particularly for complex 3D structures like lung tumors in CT scans?
- RQ5Does uncertainty estimation via checkpoint ensembling on pseudo-labeled data enhance clinical trust and prediction reliability in low-data regimes?
Key findings
- MedCLIP-SAMv2 achieves state-of-the-art performance in zero-shot segmentation across four medical imaging modalities—CT, MRI, ultrasound, and X-ray—surpassing existing SOTA methods.
- The integration of M2IB and DHN-NCE significantly improves zero-shot segmentation accuracy, particularly in detecting small and complex structures like brain and breast tumors.
- Text prompts enhanced by LLM reasoning and ensembling yield superior segmentation results, especially in anatomically complex tasks requiring fine-grained understanding.
- Weakly supervised training using pseudo-labels from zero-shot segmentation leads to notable performance gains, with the largest improvement observed in lung CT segmentation.
- Uncertainty estimation via checkpoint ensembling on pseudo-labeled data provides clinically valuable confidence scores, enabling identification of high-risk prediction regions.
- SAM demonstrates strong robustness to suboptimal visual prompts, maintaining high performance even when coarse or imperfect prompts are used, highlighting its generalization capability in real-world settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.