Proceedings

SAM-GPT: Hilbert Curve Enhanced Mamba for Brain Lesion Segmentation and VLM-based Analysis

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. AI and Health. Pages 6931-6939.

https://doi.org/10.24963/ijcai.2026/771

Abstract

Recent breakthroughs in Vision-Language Models (VLMs) have shown strong potential in medical analysis, but they remain limited in the brain lesion image domain, especially when pathological regions occupy a small portion of the image. This is because VLMs tend to put excessive attention on background regions that are visually similar to target regions. Based on the findings, we propose SAM-GPT, a novel framework that leverages segmentation-derived spatial priors to support VLM-based lesion classification. It first uses an enhanced segmentation model to localize pathological regions for diagnostic tasks, and then converts lesion attributes (e.g., size, pixel range, lesion location) into linguistic guidance for a vision–language model. To improve small lesion recognition, we incorporate a new Hilbert scanning method into Mamba that improves both local spatial continuity and global spatial modeling. Experiments on benchmark datasets show that our model achieves an average Dice coefficient of 72.80% on the brain lesion segmentation task and an accuracy of 80.56% on the brain disease classification task, demonstrating the effectiveness of the proposed framework. The code is available at https://github.com/1JF-Wang/sam-gpt.

  1. [Awadalla et al., 2023] Anas Awadalla, Irena Gao, Josh Gardner, Jack Hessel, Yusuf Hanafy, Wanrong Zhu, Kalyani Marathe, Yonatan Bitton, Samir Gadre, Shiori Sagawa, Jenia Jitsev, Simon Kornblith, Pang Wei Koh, Gabriel Ilharco, Mitchell Wortsman, and Ludwig Schmidt. OpenFlamingo: An open-source framework for training large autoregressive vision-language models. https://arxiv. org/abs/2308.01390, 2023. Link
  2. [Bai et al., 2024] Yunhao Bai, Qinji Yu, Boxiang Yun, Dakai Jin, Yingda Xia, and Yan Wang. FS-MedSAM2: Explor- ing the potential of SAM 2 for few-shot medical image segmentation without fine-tuning. https://arxiv.org/abs/ 2409.04298, 2024. Link
  3. [Bai et al., 2025] Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, et al. Qwen2.5-VL technical report. https://arxiv. org/abs/2502.13923, 2025. Link
  4. [Baid et al., 2021] Ujjwal Baid, Satyam Ghodasara, Suyash Mohan, Michel Bilello, et al. The RSNA-ASNR-MICCAI BraTS 2021 benchmark on brain tumor segmentation and radiogenomic classification. https://arxiv.org/abs/2107. 02314, 2021. Link
  5. [Chen et al., 2020] Zhihong Chen, Yan Song, Tsung-Hui Chang, and Xiang Wan. Generating radiology reports via memory-driven transformer. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, pages 1439-1449, Online, November 2020. Association for Computational Linguistics.
  6. [Chen, 1984] Chi-Tsong Chen. Linear system theory and de- sign. Holt, Rinehart and Winston, New York, USA, 1984.
  7. [Cheng et al., 2023] Junlong Cheng, Jin Ye, Zhongying Deng, Jianpin Chen, et al. SAM-Med2D. https://arxiv. org/abs/2308.16184, 2023. Link
  8. [Gu and Dao, 2024] Albert Gu and Tri Dao. Mamba: Linear- time sequence modeling with selective state spaces. https: //arxiv.org/abs/2312.00752, 2024. Link
  9. [Gu et al., 2022] Albert Gu, Karan Goel, and Christopher Ré. Efficiently modeling long sequences with structured state spaces. In International Conference on Learning Representations, pages 1-25, Online, April 2022.
  10. [Hatamizadeh et al., 2022a] Ali Hatamizadeh, Vishwesh Nath, Yucheng Tang, Dong Yang, Holger R. Roth, and Daguang Xu. Swin UNETR: Swin transformers for semantic segmentation of brain tumors in MRI images. In Brainlesion: Glioma, Multiple Sclerosis, Stroke and Trau- matic Brain Injuries, pages 272-284, Cham, Switzerland, September 2022. Springer International Publishing.
  11. [Hatamizadeh et al., 2022b] Ali Hatamizadeh, Yucheng Tang, Vishwesh Nath, Dong Yang, Andriy Myronenko, Bennett Landman, Holger R. Roth, and Daguang Xu. UNETR: Transformers for 3D medical image segmenta- tion. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 574-584, Waikoloa, Hawaii, USA, January 2022. IEEE.
  12. [Hu et al., 2020] Xiaojun Hu, Weijian Luo, Jiliang Hu, Sheng Guo, Weilin Huang, Matthew R. Scott, Roland Wiest, Michael Dahlweid, and Mauricio Reyes. Brain Seg- Net: 3D local refinement network for brain lesion segmen- tation. BMC Medical Imaging, 20(1):17, Feb 2020.
  13. [Huang et al., 2023] Ziyan Huang, Haoyu Wang, Zhongying Deng, Jin Ye, et al. STU-Net: Scalable and transferable medical image segmentation models empowered by large- scale supervised pre-training. https://arxiv.org/abs/2304. 06716, 2023. Link
  14. [Hurst et al., 2024] Aaron Hurst, Adam Lerer, Adam P. Goucher, et al. GPT-4o system card. https://arxiv.org/abs/ 2410.21276, 2024. Link
  15. [Jagadish, 1997] H. V. Jagadish. Analysis of the hilbert curve for representing two-dimensional space. Information Pro- cessing Letters, 62(1):17-22, April 1997.
  16. [Kirillov et al., 2023] Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, et al. Segment anything. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4015-4026, Paris, France, October 2023. IEEE.
  17. [Liu et al., 2021] Fenglin Liu, Chenyu You, Xian Wu, Shen Ge, et al. Auto-encoding knowledge graph for unsuper- vised medical report generation. In Advances in Neural Information Processing Systems, pages 16266-16279, On- line, December 2021.
  18. [Curran Associates, Inc. Liu et al., 2024] Yue Liu, Yunjie Tian, Yuzhong Zhao, Hongtian Yu, Lingxi Xie, Yaowei Wang, Qixiang Ye, Jian- bin Jiao, and Yunfan Liu. VMamba: Visual state space model. In Advances in Neural Information Processing Systems, pages 103031-103063.
  19. Curran Associates, Inc., December 2024.
  20. [Lu and Du, 2025] Xiaoyong Lu and Songlin Du. JamMa: Ultra-lightweight local feature matching with joint mamba. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14934- 14943, Nashville, Tennessee, USA, June 2025. IEEE.
  21. [Ma et al., 2024] Jun Ma, Yuting He, Feifei Li, Lin Han, Chenyu You, and Bo Wang. Segment anything in medical images. Nature Communications, 15:654, January 2024.
  22. [Moon et al., 2001] Bongki Moon, H. V. Jagadish, Christos Faloutsos, and Joel H. Saltz. Analysis of the clustering properties of the Hilbert space-filling curve. IEEE Trans- actions on Knowledge and Data Engineering, 13(1):124- 141, January-February 2001.
  23. [OpenMedLab, 2024] OpenMedLab. XrayPULSE. https:// github.com/openmedlab/XrayPULSE, 2024. Link
  24. [Pei et al., 2025] Xiaohuan Pei, Tao Huang, and Chang Xu. EfficientVMamba: Atrous selective scan for light weight visual mamba. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 6443-6451, Philadelphia, Pennsylvania, USA, February 2025. AAA Press.
  25. [Petzsche et al., 2022] Moritz R. Hernandez Petzsche, Eze- quiel de la Rosa, Uta Hanning, Roland Wiest, et al. ISLES 2022: A multi-center magnetic resonance imaging stroke lesion segmentation dataset. Scientific Data, 9(1):762, De- cember 2022.
  26. [Radford et al., 2021] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agar- wal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervi- sion. In Proceedings of the 38th International Conference on Machine Learning, pages 8748-8763. PMLR, 18-24 Jul 2021.
  27. [Ravi et al., 2025] Nikhila Ravi, Valentin Gabeur, Yuan- Ting Hu, Ronghang Hu, Chaitanya Ryali, Tengyu Ma, Haitham Khedr, Roman Rädle, Chloe Rolland, Laura Gustafson, Eric Mintun, Junting Pan, Kalyan Vasudev Al- wala, Nicolas Carion, Chao-Yuan Wu, Ross Girshick, Pi- otr Dollar, and Christoph Feichtenhofer. SAM 2: Segment anything in images and videos. In Proceedings of the Inter- national Conference on Learning Representations, pages 28085-28128, April 2025.
  28. [Schuch et al., 2023] Fabiane Schuch, Lennart Walger, Matthias Schmitz, Bastian David, et al. An open presurgery MRI dataset of people with epilepsy and focal cortical dysplasia type II. Scientific Data, 10(1):475, July 2023.
  29. [Shen et al., 2025] Quanyou Shen, Bowen Zheng, Wenhao Li, Xiaoran Shi, et al. MixUNETR: A U-shaped network based on W-MSA and depth-wise convolution with chan- nel and spatial interactions for zonal prostate segmentation in MRI. Neural Networks, 181:106782, January 2025.
  30. [Thawakar et al., 2024] Omkar Chakradhar Thawakar, Ab- delrahman M. Shaker, Sahal Shaji Mullappilly, Hisham Cholakkal, et al. XrayGPT: Chest radiographs summa- rization using large medical vision-language models. In Proceedings of the 23rd Workshop on Biomedical Natu- ral Language Processing, pages 440-448, Bangkok, Thai- land, August 2024. Association for Computational Lin- guistics.
  31. [Tu et al., 2024] Tao Tu, Shekoofeh Azizi, Danny Driess, Mike Schaekermann, et al. Towards generalist biomedi- cal AI. NEJM AI, 1:AIoa2300138, March 2024.
  32. [Wang et al., 2023] Zhanyu Wang, Lingqiao Liu, Lei Wang, and Luping Zhou. R2GenGPT: Radiology report gen- eration with frozen LLMs. Meta-Radiology, 1:100033, September 2023.
  33. [Wang et al., 2025] Haoyu Wang, Sizheng Guo, Jin Ye, Zhongying Deng, et al. SAM-Med3D: A vision founda- tion model for general-purpose segmentation on volumet- ric medical images. IEEE Transactions on Neural Net- works and Learning Systems, 36:17599-17612, October 2025.
  34. [Wu et al., 2024] Hongtao Wu, Yijun Yang, Huihui Xu, Weiming Wang, Jinni Zhou, and Lei Zhu. RainMamba: Enhanced locality learning with state space models for video deraining. In Proceedings of the 32nd ACM In- ternational Conference on Multimedia, pages 7881-7890, Melbourne, VIC, Australia, October 2024. Association for Computing Machinery.
  35. [Xing et al., 2024] Zhaohu Xing, Tian Ye, Yijun Yang, Guang Liu, and Lei Zhu. SegMamba: Long-range se- quential modeling mamba for 3D medical image segmen- tation. In Proceedings of the Medical Image Computing and Computer Assisted Intervention, pages 578-588, Mar- rakesh, Morocco, October 2024. Springer Nature Switzer- land.
  36. [Zhou et al., 2023] Hong-Yu Zhou, Jiansen Guo, Yinghao Zhang, Xiaoguang Han, Lequan Yu, Liansheng Wang, and Yizhou Yu. nnFormer: Volumetric medical image segmen- tation via a 3D transformer. IEEE Transactions on Image Processing, 32:4036-4045, July 2023.
  37. [Zhu et al., 2024a] Deyao Zhu, Jun Chen, Xiaoqian Shen, Xiang Li, and Mohamed Elhoseiny. MiniGPT-4: Enhanc- ing vision-language understanding with advanced large language models. In International Conference on Learn- ing Representations, pages 18378-18394, Vienna, Austria, May 2024.
  38. [Zhu et al., 2024b] Jiayuan Zhu, Abdullah Hamdi, Yunli Qi, Yueming Jin, and Junde Wu. Medical SAM 2: Segment medical images as video via Segment Anything Model 2. https://arxiv.org/abs/2408.00874, 2024. Link

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards