TL;DR
This paper introduces De-LightSAM, a lightweight and efficient framework for medical image segmentation that overcomes the computational and prompt-dependency limitations of the original Segment Anything Model (SAM). De-LightSAM achieves superior generalization across diverse medical modalities by decoupling modality-specific processing and using an automated prompt generation method, making it more practical for clinical use.
What Problem Does This Paper Address?
Medical image segmentation is crucial for diagnosis and treatment planning, but existing deep learning models struggle to generalize across different imaging modalities (like X-rays, MRIs, CT scans, etc.) and unseen domains. The recent Segment Anything Model (SAM) shows promise for general segmentation but is computationally expensive, requires manual prompts (like points or boxes) which are laborious and can be unreliable in medical contexts, and its unified decoding process can lead to interference between different modalities. This paper aims to create a medical-specific segmentation model that is lightweight, doesn't require manual prompts, and can generalize well across various medical imaging types.
Methods
De-LightSAM is an end-to-end framework built on three core components:
- Domain-Controllable Image Encoder (DC-Encoder): This lightweight encoder is designed to extract discriminative visual features that are specific to different medical modalities. It incorporates a "modality controller" that adapts the feature extraction process based on the input modality, preventing interference. This encoder is trained using a novel Multi-Modal Decoupled Knowledge Distillation (MDKD) strategy.
- Self-Patch Prompt Generator (SP-Generator): To eliminate the need for manual prompts, this module automatically generates high-quality "patch prompts" directly from the image embeddings. These prompts provide dense, spatially relevant information to guide the segmentation process, making it fully automated.
- Query-Decoupled Modality Decoder (QM-Decoder): Unlike SAM's single decoder, the QM-Decoder uses a one-to-one strategy, assigning a dedicated decoding channel for each modality. This prevents "mutual knowledge interference" between different modalities, improving accuracy and generalization.
The Multi-Modal Decoupled Knowledge Distillation (MDKD) strategy is key to training the lightweight DC-Encoder. It leverages a "teacher" model that combines a large natural image encoder (from SAM) for common knowledge and a medical-specific SAM encoder for domain-specific knowledge. This distillation process helps the student model learn robust representations without the high computational cost of the original SAM.
Datasets
The paper uses several datasets for training and evaluation, categorized into source and unseen domains:
Source Domains: * Dermoscopy: ISIC-2018 * X-ray: PCXA * Fundus: DRIVE * Colonoscopy: CVC-ClinicDB * Ultrasound: UDIAT * Microscopy: DSB-2018
Unseen Domains (for generalization testing): * Dermoscopy: PH2 * X-ray: NIHCXR * Fundus: STARE * Colonoscopy: CVC-ColonDB * Ultrasound: BUSI * Microscopy: TNBC
Additionally, 1% of the SA-1B dataset (natural images) is used for the MDKD distillation process.
Key Insights and Ideas
- Modality Decoupling is Crucial for Medical Generalization: The inherent heterogeneity of medical imaging modalities means a one-size-fits-all approach (like SAM's unified decoder) is suboptimal. De-LightSAM's modality-specific decoding channels are essential for preventing interference and improving accuracy.
- Automated Prompts are Viable and Beneficial: Relying on manual prompts is a significant bottleneck for clinical adoption. The SP-Generator demonstrates that automatically generated "patch prompts" can effectively guide segmentation, even outperforming manual point prompts in some aspects.
- Knowledge Distillation Needs to be Modality-Aware: Standard knowledge distillation might struggle with the diverse features of medical images. MDKD's approach of distilling both common (natural image) and domain-specific (medical image) knowledge is key to building a lightweight yet powerful medical segmentation model.
- Lightweight Architectures Can Achieve High Performance: By carefully designing the encoder and decoder and using effective distillation, De-LightSAM achieves competitive results with a fraction of the parameters of the original SAM.
Key Results
- Parameter Efficiency: De-LightSAM uses only 2.0% of the parameters of SAM-H.
- Performance on Source Domains: De-LightSAM outperforms state-of-the-art task-specific models and lightweight SAMs on various medical segmentation tasks, achieving an average Dice score of 88.52% and a lower Hausdorff Distance (HD) compared to many baselines.
- Generalization to Unseen Domains: The framework shows significant improvements in domain generalization, outperforming other methods by substantial margins (e.g., up to 21.64% higher Dice score over MADGNet on one unseen domain).
- Computational Efficiency: De-LightSAM offers a strong trade-off between computation cost and inference speed, achieving high FPS and low latency compared to other methods.
- Ablation Studies: Each proposed module (DC-Encoder, SP-Generator, QM-Decoder) contributes significantly to the overall performance, with the full De-LightSAM framework achieving the best results.
Limitations and Future Work
- Manual Prompt Comparison: While the paper shows De-LightSAM's automated prompts are effective, the comparison in Figure 6 uses ground truth as input for manual prompts, which might not fully reflect real-world manual annotation scenarios.
- Further Modality Exploration: While the paper covers six modalities, future work could explore an even wider range of medical imaging types.
- Real-time Applications: While efficient, further optimization for real-time clinical applications could be explored.
The authors suggest that their De-LightSAM framework provides a practical pathway for deploying advanced segmentation models in clinical environments with limited computational resources, paving the way for more accessible and efficient medical image analysis.
Summary updated