Proceedings

DenseSAM: Semantic Enhance SAM for Efficient Dense Object Segmentation

Download BibTeX Cite

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

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

Abstract

Dense object segmentation is essential for various applications, particularly in pathology image and remote sensing image analysis. However, distinguishing numerous similar and densely packed objects in this task presents significant challenges. Several methods, including CNN- and ViT-based approaches, have been proposed to tackle these issues. Yet, models trained on limited datasets exhibit limited generalization ability. The Segment Anything Model (SAM) has recently achieved significant progress in zero-shot segmentation but relies heavily on precise positional guidance. However, providing numerous accurate location prompts in dense scenarios is time-consuming. To overcome this limitation, we conducted an in-depth exploration of the SAM mechanism and found that its strong generalization ability stems from the encoder’s edge detection capability, which is semantically independent, making location prompts essential for segmentation. This insight inspired the development of DenseSAM, which replaces location prompts with semantic guidance for automatic segmentation in dense scenarios. Specifically, it uses local details to weaken the edges of background objects, leverages global context to enhance intra-class feature similarity, while further increasing contrast with the background, and integrates a dual-head decoding process to enable lightweight automatic semantic segmentation. Extensive experiments on pathology images demonstrate that DenseSAM delivers remarkable performance with minimal training parameters, providing a cost-effective and efficient solution. Moreover, experiments on remote sensing images further validate its excellent scalability, making DenseSAM suitable for various dense object segmentation domains. The code is available at https://github.com/imAzhou/DenseSAM.

  1. [Chen et al., 2024] Zhen Chen, Qing Xu, Xinyu Liu, and Yixuan Yuan. Un-sam: Universal prompt-free segmen- tation for generalized nuclei images. arXiv preprint arXiv:2402.16663, 2024.
  2. [Fu et al., 2024] Wei Fu, Kai Xie, and Leyuan Fang. Complementarity-aware local-global feature fusion net- work for building extraction in remote sensing images. IEEE Transactions on Geoscience and Remote Sensing, 2024.
  3. [Graham et al., 2021a] Simon Graham, Mostafa Jahanifar, Ayesha Azam, Mohammed Nimir, Yee-Wah Tsang, Katherine Dodd, Emily Hero, Harvir Sahota, Atisha Tank, Ksenija Benes, et al. Lizard: a large-scale dataset for colonic nuclear instance segmentation and classification. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 684-693, 2021.
  4. [Graham et al., 2021b] Simon Graham, Mostafa Jahanifar, Quoc Dang Vu, Giorgos Hadjigeorghiou, Thomas Leech, David Snead, Shan E Ahmed Raza, Fayyaz Minhas, and Nasir Rajpoot. Conic: Colon nuclei identifi- cation and counting challenge 2022. arXiv preprint arXiv:2111.14485, 2021.
  5. [Hu et al., 2023] Minghong Hu, Jiatian Li, Yunfei Zhao, Mei Lu, and Wen Li. Fsau-net: a network for extract- ing buildings from remote sensing imagery using feature self-attention. International Journal of Remote Sensing, 44(5):1643-1664, 2023.
  6. [Hu et al., 2024a] Jiacong Hu, Hao Chen, Kejia Chen, Yang Gao, Jingwen Ye, Xingen Wang, Mingli Song, and Zunlei Feng. Transformer doctor: Diagnosing and treating vision transformers. Advances in Neural Information Processing Systems, 37:54026-54053, 2024.
  7. [Hu et al., 2024b] Jiacong Hu, Jing Gao, Jingwen Ye, Yang Gao, Xingen Wang, Zunlei Feng, and Mingli Song. Model lego: Creating models like disassembling and assembling building blocks. Advances in Neural Information Process- ing Systems, 37:127711-127738, 2024.
  8. [Hu et al., 2024c] Jian Hu, Jiayi Lin, Shaogang Gong, and Weitong Cai. Relax image-specific prompt requirement in sam: A single generic prompt for segmenting camouflaged objects. In Proceedings of the AAAI Conference on Artifi- cial Intelligence, number 11, pages 12511-12518, 2024.
  9. [Ji et al., 2018] Shunping Ji, Shiqing Wei, and Meng Lu. Fully convolutional networks for multisource building ex- traction from an open aerial and satellite imagery data set. IEEE Transactions on geoscience and remote sens- ing, 57(1):574-586, 2018.
  10. [Khosla et al., 2020] Prannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna, Yonglong Tian, Phillip Isola, Aaron Maschinot, Ce Liu, and Dilip Krishnan. Supervised con- trastive learning. Advances in neural information process- ing systems, 33:18661-18673, 2020.
  11. [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 Pro- ceedings of the IEEE/CVF International Conference on Computer Vision, pages 4015-4026, 2023.
  12. [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 transac- tions on medical imaging, 36(7):1550-1560, 2017.
  13. [Lee and Jeong, 2020] Hyeonsoo Lee and Won-Ki Jeong. Scribble2label: Scribble-supervised cell segmentation via self-generating pseudo-labels with consistency. In Medical Image Computing and Computer Assisted Intervention- MICCAI 2020: 23rd International Conference, Lima, Peru, October 4-8, 2020, Proceedings, Part I 23, pages 14-23. Springer, 2020.
  14. [Li et al., 2018] Qingpeng Li, Yunhong Wang, Qingjie Liu, and Wei Wang. Hough transform guided deep feature ex- traction for dense building detection in remote sensing im- ages. In 2018 IEEE International Conference on Acous- tics, Speech and Signal Processing (ICASSP), pages 1872- 1876. IEEE, 2018.
  15. [Li et al., 2021] Yawei Li, Kai Zhang, Jiezhang Cao, Radu Timofte, and Luc Van Gool. Localvit: Bringing locality to vision transformers. arXiv preprint arXiv:2104.05707, 2021.
  16. [Li et al., 2023] Kunchang Li, Yali Wang, Junhao Zhang, Peng Gao, Guanglu Song, Yu Liu, Hongsheng Li, and Yu Qiao. Uniformer: Unifying convolution and self- attention for visual recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(10):12581- 12600, 2023.
  17. [Li et al., 2024] Jiepan Li, Wei He, Weinan Cao, Liangpei Zhang, and Hongyan Zhang. Uanet: An uncertainty-aware network for building extraction from remote sensing im- ages. IEEE Transactions on Geoscience and Remote Sens- ing, 62:1-13, 2024.
  18. [Lin et al., 2014] Tsung-Yi Lin, Michael Maire, Serge Be- longie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Com- mon objects in context. In Computer Vision-ECCV 2014: 13th European Conference, Zurich, Switzerland, Septem- ber 6-12, 2014, Proceedings, Part V 13, pages 740-755. Springer, 2014.
  19. [Lin et al., 2023] Yi Lin, Zhiyong Qu, Hao Chen, Zhongke Gao, Yuexiang Li, Lili Xia, Kai Ma, Yefeng Zheng, and Kwang-Ting Cheng. Nuclei segmentation with point an- notations from pathology images via self-supervised learn- ing and co-training. Medical Image Analysis, 89:102933, 2023.
  20. [Lin et al., 2024] Yi Lin, Zeyu Wang, Dong Zhang, Kwang- Ting Cheng, and Hao Chen. Bonus: Boundary mining for nuclei segmentation with partial point labels. IEEE Transactions on Medical Imaging, 2024.
  21. [Lou et al., 2012] Xinghua Lou, Ullrich Koethe, Jochen Wit- tbrodt, and Fred A Hamprecht. Learning to segment dense cell nuclei with shape prior. In 2012 IEEE Conference on Computer Vision and Pattern Recognition, pages 1012- 1018. IEEE, 2012.
  22. [Ma et al., 2024] Jun Ma, Yuting He, Feifei Li, Lin Han, Chenyu You, and Bo Wang. Segment anything in medi- cal images. Nature Communications, 15(1):654, 2024.
  23. [Maggiori et al., 2017] Emmanuel Maggiori, Yuliya Tara- balka, Guillaume Charpiat, and Pierre Alliez. Can se- mantic labeling methods generalize to any city? the inria aerial image labeling benchmark. In 2017 IEEE International geoscience and remote sensing symposium (IGARSS), pages 3226-3229. IEEE, 2017.
  24. [Mnih, 2013] Volodymyr Mnih. Machine learning for aerial image labeling. University of Toronto (Canada), 2013.
  25. [Peng et al., 2024] Zelin Peng, Zhengqin Xu, Zhilin Zeng, Xiaokang Yang, and Wei Shen. Sam-parser: Fine-tuning sam efficiently by parameter space reconstruction. In Pro- ceedings of the AAAI Conference on Artificial Intelligence, number 5, pages 4515-4523, 2024.
  26. [Prangemeier et al., 2020] Tim Prangemeier, Christoph Re- ich, and Heinz Koeppl. Attention-based transformers for instance segmentation of cells in microstructures. In 2020 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), pages 700-707. IEEE, 2020.
  27. [Ronneberger et al., 2015] Olaf Ronneberger, Philipp Fis- cher, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In Medical image computing and computer-assisted intervention-MICCAI 2015: 18th international conference, Munich, Germany, October 5-9, 2015, proceedings, part III 18, pages 234- 241. Springer, 2015.
  28. [Selvaraju et al., 2017] Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE international conference on com- puter vision, pages 618-626, 2017.
  29. [Tian et al., 2020] Kuan Tian, Jun Zhang, Haocheng Shen, Kezhou Yan, Pei Dong, Jianhua Yao, Shannon Che, Pifu Luo, and Xiao Han. Weakly-supervised nucleus segmen- tation based on point annotations: A coarse-to-fine self- stimulated learning strategy. In Medical Image Computing and Computer Assisted Intervention-MICCAI 2020: 23rd International Conference, Lima, Peru, October 4-8, 2020, Proceedings, Part V 23, pages 299-308. Springer, 2020.
  30. [Tu et al., 2008] Peter Tu, Thomas Sebastian, Gianfranco Doretto, Nils Krahnstoever, Jens Rittscher, and Ting Yu. Unified crowd segmentation. In Computer Vision-ECCV 2008: 10th European Conference on Computer Vision, Marseille, France, October 12-18, 2008, Proceedings, Part IV 10, pages 691-704. Springer, 2008.
  31. [Vu et al., 2019] Quoc Dang Vu, Simon Graham, Tahsin Kurc, Minh Nguyen Nhat To, Muhammad Shaban, Talha Qaiser, Navid Alemi Koohbanani, Syed Ali Khurram, Jayashree Kalpathy-Cramer, Tianhao Zhao, et al. Methods for segmentation and classification of digital microscopy tissue images. Frontiers in bioengineering and biotech- nology, 7:433738, 2019.
  32. [Wang et al., 2024] Mingze Wang, Keyan Chen, Lili Su, Cilin Yan, Sheng Xu, Haotian Zhang, Pengcheng Yuan, Xiaolong Jiang, and Baochang Zhang. Rsbuilding: To- wards general remote sensing image building extraction and change detection with foundation model, 2024.
  33. [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.
  34. [Xiao et al., 2024] Aoran Xiao, Weihao Xuan, Heli Qi, Yun Xing, Ruijie Ren, Xiaoqin Zhang, and Shijian Lu. Cat- sam: Conditional tuning network for few-shot adapta- tion of segmentation anything model. arXiv preprint arXiv:2402.03631, 2024.
  35. [Xie et al., 2020] Xinpeng Xie, Jiawei Chen, Yuexiang Li, Linlin Shen, Kai Ma, and Yefeng Zheng. Instance- aware self-supervised learning for nuclei segmentation. In Medical Image Computing and Computer Assisted Intervention-MICCAI 2020: 23rd International Confer- ence, Lima, Peru, October 4-8, 2020, Proceedings, Part V 23, pages 341-350. Springer, 2020.
  36. [Yoo et al., 2019] Inwan Yoo, Donggeun Yoo, and Kyunghyun Paeng. Pseudoedgenet: Nuclei segmen- tation only with point annotations. In Medical Image Computing and Computer Assisted Intervention-MICCAI 2019: 22nd International Conference, Shenzhen, China, October 13-17, 2019, Proceedings, Part I 22, pages 731-739. Springer, 2019.
  37. [Yuan et al., 2021] Yuhui Yuan, Rao Fu, Lang Huang, Wei- hong Lin, Chao Zhang, Xilin Chen, and Jingdong Wang. Hrformer: High-resolution vision transformer for dense predict. Advances in neural information processing sys- tems, 34:7281-7293, 2021.
  38. [Zhang et al., 2024a] Jie Zhang, Xubing Yang, Rui Jiang, Wei Shao, and Li Zhang. Rsam-seg: A sam-based approach with prior knowledge integration for remote sensing image semantic segmentation. arXiv preprint arXiv:2402.19004, 2024.
  39. [Zhang et al., 2024b] Xin Zhang, Yu Liu, Yuming Lin, Qing- min Liao, and Yong Li. Uv-sam: Adapting segment any- thing model for urban village identification. In Proceed- ings of the AAAI Conference on Artificial Intelligence, number 20, pages 22520-22528, 2024.
  40. [Zhao et al., 2021] Jing Zhao, Yong-Jun He, Si-Qi Zhao, Jin- Jie Huang, and Wang-Meng Zuo. Al-net: Attention learn- ing network based on multi-task learning for cervical nu- cleus segmentation. IEEE Journal of Biomedical and Health Informatics, 26(6):2693-2702, 2021.

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

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