cs.CVOct 29, 2026

Segment Anything Model Based Context Guided Mamba Unet for Medical Image Segmentation

Authors: Chenchen Wang, You Zhou

Organizations: School of Computer Science and Informatics, Cardiff University, Cardiff, UK · Department of Infection and Immunity, School of Medicine, Cardiff University, Cardiff, UK

Abstract

Medical image segmentation is crucial for clinical diagnosis and treatment planning, requiring both global contextual understanding and fine-grained structural precision. While the Segment Anything Model (SAM) demonstrates strong generalization capabilities, its direct application to medical images often lacks domain-specific adaptability. Meanwhile, State Space Models (SSMs)-based methods, such as Mamba, efficiently capture long-range dependencies but may struggle with preserving fine anatomical details. To address these challenges, we propose a segment anything model based context guided mamba unet, SAMBA-UNet, a novel framework that integrates SAM's context knowledge with Mamba's hierarchical feature learning to enhance both global representation and local detail refinement. Specifically, we introduce the Hierarchical Context Enhancement Module (HCEM), an attention-based fusion module that deeply incorporates the multi-level features of SAM and Mamba to improve detail perception and segmentation precision. Additionally, we employ LoRA and Adapter-based fine-tuning to adapt SAM to medical imaging tasks, further enhancing its domain-specific segmentation capability and robustness. We conducted a comprehensive study on several medical segmentation datasets, including Synapse, ISIC17, and ISIC18, evaluating our method across multiple metrics. Experimental results demonstrate that SAMBA-UNet achieves state-of-the-art performance, effectively balancing generalization, segmentation accuracy, and computational efficiency. Our code will be released upon acceptance.

Figures & tables

Explore similar work

CardsList
  1. MedSAM3: Delving into Segment Anything with Medical Concepts

    Nov 24, 2025Anglin Liu, Xu R. Cao, Yifan Shen +4Image SegmentationMedical Imaging Foundation Models

  2. SAM-DCE: Decoupled Context Enhancement for Prompt-Free Medical Image Segmentation

    Sep 21, 2025Yingzhen Hu, Yiheng Zhong, Aijing Yang +2Medical Image SegmentationSegment Anything Models

  3. Decoding Matters: Efficient Mamba-Based Decoder with Distribution-Aware Deep Supervision for Medical Image Segmentation

    Mar 13, 2026Fares Bougourzi, Fadi Dornaika, Abdenour HadidMedical Image SegmentationCross-Modality Medical Image Segmentation