Proceedings

Omni-Dimensional State Space Model-driven SAM for Pixel-level Anomaly Detection

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 1152-1160.

https://doi.org/10.24963/ijcai.2025/129

Abstract

Pixel-level anomaly detection is indispensable in industrial defect detection and medical diagnosis. Recently, Segment Anything Model (SAM) has achieved promising results in many vision tasks. However, direct application of the SAM to pixel-level anomaly detection tasks results in unsatisfactory performance, meanwhile SAM needs the manual prompt. Although some automatically prompt-based SAM has been proposed, these automated prompting approaches merely utilize partial image features as prompts and fail to incorporate crucial features such as multi-scale image features to generate more suitable prompts. In this paper, we propose a novel Omni Dimensional State Space Model-driven SAM (ODS-SAM) for pixel-level anomaly detection. Specifically, the proposed method adopts the SAM architecture, ensuring easy implementation and avoiding the need for fine-tuning. A State-Space Model-based residual Omni Dimensional module is designed to automatically generate suitable prompts. This module can effectively leverage multi-scale and global information, facilitating an iterative search for optimal prompts in the prompt space. The identified optimal prompts are then fed into SAM as high-dimensional tensors. Experimental results demonstrate that the proposed ODS-SAM outperforms state-of-the-art models on both industrial and medical image datasets.

  1. [Bae and Yoon, 2015] Seung-Hwan Bae and Kuk-Jin Yoon. Polyp detection via imbalanced learning and discrimina- tive feature learning. IEEE TMI, 34(11):2379-2393, 2015.
  2. [Bergmann et al., 2020] Paul Bergmann, Michael Fauser, David Sattlegger, and Carsten Steger. Uninformed stu- dents: Student-teacher anomaly detection with discrimina- tive latent embeddings. In CVPR, pages 4183-4192, 2020.
  3. [Bernal et al., 2015] Jorge Bernal, F Javier Sánchez, Glo- ria Fernández-Esparrach, Debora Gil, Cristina Rodríguez, and Fernando Vilariño. Wm-dova maps for accurate polyp highlighting in colonoscopy: Validation vs. saliency maps from physicians. Computerized medical imaging and graphics, 43:99-111, 2015.
  4. [Cai et al., 2024] Weichao Cai, Weiliang Huang, Lin Tian, Chao Huang, and Jingwen Yan. Multi-scale global atten- tion for abnormal geological hazard segmentation. IEEE Sensors Journal, 2024.
  5. [Chen et al., 2020] Zhi Chen, Jingjing Li, Yadan Luo, Zi Huang, and Yang Yang. Canzsl: Cycle-consistent ad- versarial networks for zero-shot learning from natural lan- guage. In WACV, pages 874-883, 2020.
  6. [Dosovitskiy, 2020] Alexey Dosovitskiy. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020.
  7. [Fan et al., 2020] Deng-Ping Fan, Ge-Peng Ji, Tao Zhou, Geng Chen, Huazhu Fu, Jianbing Shen, and Ling Shao. Pranet: Parallel reverse attention network for polyp seg- mentation. In MICCAI, pages 263-273. Springer, 2020.
  8. [Fan et al., 2021] Deng-Ping Fan, Ge-Peng Ji, Xuebin Qin, and Ming-Ming Cheng. Cognitive vision inspired object segmentation metric and loss function. Scientia Sinica In- formationis, 6(6):5, 2021.
  9. [Fang et al., 2019] Yuqi Fang, Cheng Chen, Yixuan Yuan, and Kai-yu Tong. Selective feature aggregation network with area-boundary constraints for polyp segmentation. In MICCAI 2019, Shenzhen, China, October 13-17, 2019, Proceedings, Part I 22, pages 302-310. Springer, 2019.
  10. [Gu and Dao, 2023] Albert Gu and Tri Dao. Mamba: Linear- time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752, 2023.
  11. [Huang et al., 2021a] Chao Huang, Zhihao Wu, Jie Wen, Yong Xu, Qiuping Jiang, and Yaowei Wang. Abnormal event detection using deep contrastive learning for intel- ligent video surveillance system. IEEE TII, 18(8):5171- 5179, 2021.
  12. [Huang et al., 2021b] Chao Huang, Zehua Yang, Jie Wen, Yong Xu, Qiuping Jiang, Jian Yang, and Yaowei Wang. Self-supervision-augmented deep autoencoder for un- supervised visual anomaly detection. IEEE TCYB, 52(12):13834-13847, 2021.
  13. [Huang et al., 2021c] Chien-Hsiang Huang, Hung-Yu Wu, and Youn-Long Lin. Hardnet-mseg: A simple encoder- decoder polyp segmentation neural network that achieves over 0.9 mean dice and 86 fps. arXiv preprint arXiv:2101.07172, 2021.
  14. [Huang et al., 2022a] Chao Huang, Chengliang Liu, Jie Wen, Lian Wu, Yong Xu, Qiuping Jiang, and Yaowei Wang. Weakly supervised video anomaly detection via self-guided temporal discriminative transformer. IEEE TCYB, 54(5):3197-3210, 2022.
  15. [Huang et al., 2022b] Chao Huang, Chengliang Liu, Zheng Zhang, Zhihao Wu, Jie Wen, Qiuping Jiang, and Yong Xu. Pixel-level anomaly detection via uncertainty-aware pro- totypical transformer. In ACM MM, pages 521-530, 2022.
  16. [Huang et al., 2022c] Chao Huang, Yabo Liu, Zheng Zhang, Chengliang Liu, Jie Wen, Yong Xu, and Yaowei Wang. Hierarchical graph embedded pose regularity learning via spatio-temporal transformer for abnormal behavior detec- tion. In ACM MM, pages 307-315, 2022.
  17. [Huang et al., 2022d] Chao Huang, Jie Wen, Yong Xu, Qi- uping Jiang, Jian Yang, Yaowei Wang, and David Zhang. Self-supervised attentive generative adversarial networks for video anomaly detection. IEEE TNNLS, 34(11):9389- 9403, 2022.
  18. [Huang et al., 2024a] Chao Huang, Weichao Cai, Qiuping Jiang, and Zhihua Wang. Multimodal representation distri- bution learning for medical image segmentation. In IJCAI, pages 4156-4164, 2024. IJCAI
  19. [Huang et al., 2024b] Chao Huang, Yushu Shi, Bob Zhang, and Ke Lyu. Uncertainty-aware prototypical learning for anomaly detection in medical images. Neural Networks, 175:106284, 2024.
  20. [Huang et al., 2024c] Chao Huang, Jie Wen, Chengliang Liu, and Yabo Liu. Long short-term dynamic prototype alignment learning for video anomaly detection. In IJCAI, pages 866-874, 2024. IJCAI
  21. [Huang et al., 2025] Chao Huang, Weiliang Huang, Qiuping Jiang, Wei Wang, Jie Wen, and Bob Zhang. Multimodal evidential learning for open-world weakly-supervised video anomaly detection. IEEE TMM, 2025.
  22. [Jha et al., 2020] Debesh Jha, Pia H Smedsrud, Michael A Riegler, Pål Halvorsen, Thomas De Lange, Dag Johansen, and Håvard D Johansen. Kvasir-seg: A segmented polyp dataset. In MultiMedia modeling: 26th international con- ference, MMM 2020, Daejeon, South Korea, January 5-8, 2020, proceedings, part II 26, pages 451-462. Springer, 2020.
  23. [Kirillov et al., 2023] Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C Berg, Wan-Yen Lo, et al. Segment anything. In ICCV, pages 4015-4026, 2023.
  24. [Kumar et al., 2017] Neeraj Kumar, Ruchika Verma, Sanuj Sharma, Surabhi Bhargava, Abhishek Vahadane, and Amit Sethi. A dataset and a technique for generalized nuclear segmentation for computational pathology. IEEE TMI, 36(7):1550-1560, 2017.
  25. [Li et al., 2022] Chao Li, Aojun Zhou, and Anbang Yao. Omni-dimensional dynamic convolution. In ICLR, pages 1-20, 2022.
  26. [Li et al., 2023] Zihan Li, Yunxiang Li, Qingde Li, Puyang Wang, Dazhou Guo, Le Lu, Dakai Jin, You Zhang, and Qingqi Hong. Lvit: language meets vision transformer in medical image segmentation. IEEE TMI, 2023.
  27. [Li et al., 2025] Jingtao Li, Ting Chen, Xinyu Wang, Yanfei Zhong, and Xuan Xiao. Adapting the segment anything model for multi-modal retinal anomaly detection and lo- calization. Information Fusion, 113:102631, 2025.
  28. [Liu et al., 2021] An-An Liu, Hongshuo Tian, Ning Xu, Weizhi Nie, Yongdong Zhang, and Mohan Kankanhalli. Toward region-aware attention learning for scene graph generation. IEEE TNNLS, 33(12):7655-7666, 2021.
  29. [Liu et al., 2024] Jiaqi Liu, Kai Wu, Qiang Nie, Ying Chen, Bin-Bin Gao, Yong Liu, Jinbao Wang, Chengjie Wang, and Feng Zheng. Unsupervised continual anomaly de- tection with contrastively-learned prompt. In AAAI, vol- ume 38, pages 3639-3647, 2024.
  30. [Mamonov et al., 2014] Alexander V Mamonov, Isabel N Figueiredo, Pedro N Figueiredo, and Yen-Hsi Richard Tsai. Automated polyp detection in colon capsule en- doscopy. IEEE TMI, 33(7):1488-1502, 2014.
  31. [Patel et al., 2021] Krushi Patel, Andrés M Bur, and Guanghui Wang. Enhanced u-net: A feature enhancement network for polyp segmentation. In 2021 18th conference on robots and vision (CRV), pages 181-188. IEEE, 2021.
  32. [Reiss et al., 2021] Tal Reiss, Niv Cohen, Liron Bergman, and Yedid Hoshen. Panda: Adapting pretrained features for anomaly detection and segmentation. In CVPR, pages 2806-2814, 2021.
  33. [Ronneberger et al., 2015] Olaf Ronneberger, Philipp Fis- cher, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In MICCAI 2015, Mu- nich, Germany, October 5-9, 2015, proceedings, part III 18, pages 234-241. Springer, 2015.
  34. [Shaharabany and Wolf, 2022] Tal Shaharabany and Lior Wolf. End-to-end segmentation of medical images via patch-wise polygons prediction. In MICCAI, pages 308- 318. Springer, 2022.
  35. [Shaharabany et al., 2023] Tal Shaharabany, Aviad Dahan, Raja Giryes, and Lior Wolf. Autosam: Adapting sam to medical images by overloading the prompt encoder. arXiv preprint arXiv:2306.06370, 2023.
  36. [Shin et al., 2022] Wooseok Shin, Min Seok Lee, and Sung Won Han. Comma: Propagating complementary multi-level aggregation network for polyp segmentation. Applied Sciences, 12(4):2114, 2022.
  37. [Silva et al., 2014] Juan Silva, Aymeric Histace, Olivier Ro- main, Xavier Dray, and Bertrand Granado. Toward embed- ded detection of polyps in wce images for early diagnosis of colorectal cancer. International journal of computer as- sisted radiology and surgery, 9:283-293, 2014.
  38. [Sirinukunwattana et al., 2017] Korsuk Sirinukunwattana, Josien PW Pluim, Hao Chen, Xiaojuan Qi, Pheng- Ann Heng, Yun Bo Guo, Li Yang Wang, Bogdan J Matuszewski, Elia Bruni, Urko Sanchez, et al. Gland seg- mentation in colon histology images: The glas challenge contest. Medical image analysis, 35:489-502, 2017.
  39. [Tajbakhsh et al., 2015] Nima Tajbakhsh, Suryakanth R Gu- rudu, and Jianming Liang. Automated polyp detection in colonoscopy videos using shape and context information. IEEE TMI, 35(2):630-644, 2015.
  40. [Trinh et al., 2024] Quoc-Huy Trinh, Hai-Dang Nguyen, Bao-Tram Nguyen Ngoc, Debesh Jha, Ulas Bagci, and Minh-Triet Tran. Sam-eg: Segment anything model with egde guidance framework for efficient polyp segmenta- tion. arXiv preprint arXiv:2406.14819, 2024.
  41. [Valanarasu et al., 2021] Jeya Maria Jose Valanarasu, Poo- jan Oza, Ilker Hacihaliloglu, and Vishal M Patel. Medical transformer: Gated axial-attention for medical image seg- mentation. In MICCAI 2021, Strasbourg, France, Septem- ber 27-October 1, 2021, proceedings, part I 24, pages 36- 46. Springer, 2021.
  42. [Wang et al., 2020] Huiyu Wang, Yukun Zhu, Bradley Green, Hartwig Adam, Alan Yuille, and Liang-Chieh Chen. Axial-deeplab: Stand-alone axial-attention for panoptic segmentation. In ECCV, pages 108-126.
  43. [Wang et al., 2022] Haonan Wang, Peng Cao, Jiaqi Wang, and Osmar R Zaiane. Uctransnet: rethinking the skip connections in u-net from a channel-wise perspective with transformer. In AAAI, volume 36, pages 2441-2449, 2022.
  44. [Wang et al., 2025] Benfeng Wang, Chao Huang, Jie Wen, Wei Wang, Yabo Liu, and Yong Xu. Federated weakly supervised video anomaly detection with multimodal prompt. In AAAI, volume 39, pages 21017-21025, 2025.
  45. [Wei et al., 2021] Jun Wei, Yiwen Hu, Ruimao Zhang, Zhen Li, S Kevin Zhou, and Shuguang Cui. Shallow atten- tion network for polyp segmentation. In MICCAI 2021, France, September 27-October 1, 2021, Proceedings, Part I 24, pages 699-708. Springer, 2021.
  46. [Wei et al., 2023] Xiaobao Wei, Jiajun Cao, Yizhu Jin, Ming Lu, Guangyu Wang, and Shanghang Zhang. I-medsam: Implicit medical image segmentation with segment any- thing. arXiv preprint arXiv:2311.17081, 2023.
  47. [Wu et al., 2023] Junde Wu, Wei Ji, Yuanpei Liu, Huazhu Fu, Min Xu, Yanwu Xu, and Yueming Jin. Medical sam adapter: Adapting segment anything model for medical image segmentation. arXiv preprint arXiv:2304.12620, 2023.
  48. [Xie et al., 2024] Bin Xie, Hao Tang, Bin Duan, Dawen Cai, and Yan Yan. Masksam: Towards auto-prompt sam with mask classification for medical image segmentation. arXiv preprint arXiv:2403.14103, 2024.
  49. [Yin et al., 2022] Zijin Yin, Kongming Liang, Zhanyu Ma, and Jun Guo. Duplex contextual relation network for polyp segmentation. In 2022 IEEE 19th international symposium on biomedical imaging (ISBI), pages 1-5. IEEE, 2022.
  50. [Zhang et al., 2020] Ruifei Zhang, Guanbin Li, Zhen Li, Shuguang Cui, Dahong Qian, and Yizhou Yu. Adap- tive context selection for polyp segmentation. In MICCAI 2020, Lima, Peru, October 4-8, 2020, Proceedings, Part VI 23, pages 253-262. Springer, 2020.
  51. [Zhang et al., 2022] Dasheng Zhang, Chao Huang, Chengliang Liu, and Yong Xu. Weakly supervised video anomaly detection via transformer-enabled tem- poral relation learning. IEEE Signal Processing Letters, 29:1197-1201, 2022.
  52. [Zhou et al., 2018] Zongwei Zhou, Md Mahfuzur Rah- man Siddiquee, Nima Tajbakhsh, and Jianming Liang. Unet++: A nested u-net architecture for medical image segmentation. In MICCAI 2018, Granada, Spain, Septem- ber 20, 2018, Proceedings 4, pages 3-11. Springer, 2018.

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

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