cs.CVAug 18, 2026

TEAMS: Text-prompted spatiotEmporal dual-heAd Mamba Snake

Authors: Ruicheng Zhang, Jianhui Lei, Kaiwen Shen, Haowei Guo, Jun Zhou, Bin Chen, Mengtang Li, Shen Zhao, 

Organizations: School of intelligent systems engineering, Sun Yat-sen University, Guangzhou 510006, China · Affiliated Hangzhou First People’s Hospital, Zhejiang University School of Medicine, Zhejiang, China · School of Engineering, Case Western Reserve University, Cleveland, USA

Abstract

Deep snake is a promising family of instance segmentation methods that accurately predicts object-level contours, thereby overcoming common pixel-level misclassification issues such as mask cavities and jagged edges in semantic segmentation approaches. However, existing deep snake methods face challenges in handling complex morphological variations, accurately capturing fine-grained organ details, and correcting base detection errors. To mitigate these limitations, we propose a cohesive Text-prompted spatiotEmporal dual-heAd Mamba Snake (TEAMS), a novel vision-language Mamba snake framework with three key innovations: (1) A Spatiotemporal Snake Evolution Strategy (SSES) is introduced to tackle complex morphological variations by capturing bidirectional spatial dependencies along the snake contour and temporal dynamics across evolution steps in a state space model. (2) A Contour Morphology-Aware Mamba (CMAM) is proposed to quantify local contour morphologies to modulate the structured attention mask in the Mamba2 SSD dual form, which extends Mamba's capability to perceive the relative importance of its input sequence elements for better delineation of fine-grained organ details. (3) A Text-prompted Collaborative Dual-Head Snake (TCDHS) is designed to incorporate cues from textual prompts and transfer the evolved contour information to the base detection head, which enhances the deep snake workflow and mitigates wrong detections. Comprehensive evaluations on five datasets covering different organs and imaging modalities demonstrate that TEAMS outperforms existing semantic and deep snake segmentation methods (e.g., relative mDice/mBF improvements of 6.9%/9.1% in a spinal dataset), underscoring its potential as a reliable tool across diverse medical image segmentation scenarios.

Figures & tables

Explore similar work

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

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

  2. TAMISeg: Text-Aligned Multi-scale Medical Image Segmentation with Semantic Encoder Distillation

    Apr 13, 2026Qiang Gao, Yi Wang, Yong Zhang +4Image SegmentationMedical Image Segmentation

  3. CS-MUNet: A Channel-Spatial Dual-Stream Mamba Network for Multi-Organ Segmentation

    Mar 20, 2026Yuyang Zheng, Mingda Zhang, Jianglong Qin +4Medical Image SegmentationMulti-Organ Segmentation