Skip to main content

Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

Advertisement

npj Digital Medicine
  • View all journals
  • Search
  • My Account Login
  • Content Explore content
  • About the journal
  • Publish with us
  • Sign up for alerts
  • RSS feed
  1. nature
  2. npj digital medicine
  3. articles
  4. article
Geometric multi-instance learning for weakly supervised gastric cancer segmentation
Download PDF
Download PDF
  • Article
  • Open access
  • Published: 13 January 2026

Geometric multi-instance learning for weakly supervised gastric cancer segmentation

  • Chenshen Huang1,2 na1,
  • Haoyun Xia1 na1,
  • Xi Xiao3 na1,
  • Hong Chen1,4,
  • Yiqing Jiang5,
  • Yahui Lyu2,
  • Zhizhan Ni4,
  • Tianyang Wang3,
  • Ning Wang2 &
  • …
  • Qi Huang4 

npj Digital Medicine , Article number:  (2026) Cite this article

  • 1316 Accesses

  • Metrics details

We are providing an unedited version of this manuscript to give early access to its findings. Before final publication, the manuscript will undergo further editing. Please note there may be errors present which affect the content, and all legal disclaimers apply.

Subjects

  • Cancer
  • Computational biology and bioinformatics
  • Mathematics and computing

Abstract

Weakly supervised segmentation of cancerous regions in whole-slide images (WSIs) is a crucial task in computational pathology, but it is severely hampered by the need for expensive pixel-level annotations. Existing Multiple Instance Learning (MIL) frameworks, while popular, typically fail to produce accurate segmentation masks because they treat WSIs as an unordered ’bag-of-patches’, ignoring the critical tissue topology and architectural patterns that define malignancy. In this paper, we address this fundamental limitation by proposing Geometric Multi-Instance Learning (Geo-MIL), a novel graph-based framework that explicitly models the spatial relationships between tissue patches. At the core of our method is a new topological attention mechanism that operates on the WSI graph, learning to identify and prioritize entire diagnostically relevant tissue structures over isolated patch features. Through extensive experiments on three public gastric cancer datasets, we demonstrate that Geo-MIL significantly outperforms a wide array of state-of-the-art baselines, achieving a new benchmark in both segmentation accuracy and classification performance. Our work represents a significant step towards bridging the gap between weak slide-level labels and precise, pixel-level predictions, paving the way for scalable and accurate quantitative analysis in digital pathology.

Similar content being viewed by others

A multi-task learning model for evaluating non-tumor gastric diseases indicators in whole slide images

Article Open access 18 December 2025

Data-efficient and weakly supervised computational pathology on whole-slide images

Article 01 March 2021

Aligning knowledge concepts to whole slide images for precise histopathology image analysis

Article Open access 30 December 2024

Data availability

This study utilized publicly available gastric cancer pathological slice datasets: TCGA-STAD (421 WSIs, 375 patients, sourced from the GDC portal), and GasHisSDB (522 WSIs, 522 patients, obtained through KFBIO KF-PRO-120 scanning). All training was conducted using slide-level labels. The segmentation performance evaluation relied on the gold standard masks labeled pixel-by-pixel by two pathologists in the test set and confirmed by a third expert.

Code availability

The code of this project will be made available to readers upon reasonable request, subject to the approval of the corresponding author.

References

  1. Sung, H. et al. Global cancer statistics 2020: Globocan estimates of incidence and mortality worldwide for 36 cancers in 185 countries. CA Cancer J. Clin. 71, 209–249 (2021).

    Google Scholar 

  2. Madabhushi, A. & Lee, G. Image analysis and machine learning in digital pathology: challenges and opportunities. Med. Image Anal. 33, 170–175 (2016).

    Google Scholar 

  3. Campanella, G. et al. Clinical-grade computational pathology using weakly supervised deep learning on whole slide images. Nat. Med. 25, 1301–1309 (2019).

    Google Scholar 

  4. Ilse, M., Tomczak, J. M. & Welling, M. Attention-based deep multiple instance learning. In International Conference on Machine Learning, 2127–2136 (PMLR, 2018).

  5. Shao, Z. et al. Transmil: Transformer based correlated multiple instance learning for whole slide image classification. In Advances in Neural Information Processing Systems, 34, 2136–2147 (2021).

  6. Tan, L. et al. Colorectal cancer lymph node metastasis prediction with weakly supervised transformer-based multi-instance learning. Med. Biol. Eng. Comput. 61, 1565–1580 (2023).

    Google Scholar 

  7. Zhao, L. et al. Lung cancer subtype classification using histopathological images based on weakly supervised multi-instance learning. Phys. Med. Biol. 66, 235013 (2021).

    Google Scholar 

  8. Zhang, J. et al. 2dmamba: Efficient state space model for image representation with applications on giga-pixel whole slide image classification. In Proc. Computer Vision and Pattern Recognition Conference, 3583–3592 (2025).

  9. Fountzilas, E., Pearce, T., Baysal, M. A., Chakraborty, A. & Tsimberidou, A. M. Convergence of evolving artificial intelligence and machine learning techniques in precision oncology. NPJ Digit. Med. 8, 75 (2025).

    Google Scholar 

  10. Ma, Y., Jamdade, S., Konduri, L. & Sailem, H. Ai in histopathology explorer for comprehensive analysis of the evolving ai landscape in histopathology. npj Digit. Med. 8, 156 (2025).

    Google Scholar 

  11. Gao, Z. et al. Accurate spatial quantification in computational pathology with multiple instance learning. MedRxiv 2024–04 (2024).

  12. Caron, M. et al. Emerging properties in self-supervised vision transformers. In Proc. IEEE/CVF International Conference on Computer Vision, 9650–9660 (2021).

  13. El Nahhas, O. S. et al. From whole-slide image to biomarker prediction: end-to-end weakly supervised deep learning in computational pathology. Nat. Protoc. 20, 293–316 (2025).

    Google Scholar 

  14. Song, A. H. et al. Artificial intelligence for digital and computational pathology. Nat. Rev. Bioeng. 1, 930–949 (2023).

    Google Scholar 

  15. Wagner, S. J. et al. Make deep learning algorithms in computational pathology more reproducible and reusable. Nat. Med. 28, 1744–1746 (2022).

    Google Scholar 

  16. Lu, M. Y. et al. Federated learning for computational pathology on gigapixel whole slide images. Med. Image Anal. 76, 102298 (2022).

    Google Scholar 

  17. Xiao, X. et al. Visual instance-aware prompt tuning. In Proc. 33rd ACM International Conference on Multimedia. 2880–2889 (2025).

  18. Wibawa, M. S., Lo, K.-W., Young, L. S. & Rajpoot, N. Multi-scale attention-based multiple instance learning for classification of multi-gigapixel histology images. In European Conference on Computer Vision, 635–647 (Springer, 2022).

  19. Liu, M. et al. Exploiting geometric features via hierarchical graph pyramid transformer for cancer diagnosis using histopathological images. IEEE Trans. Med. Imaging 43, 2888–2900 (2024).

    Google Scholar 

  20. Diao, Z. & Jiang, H. A multi-instance tumor subtype classification method for small pet datasets using RA-DL attention module guided deep feature extraction with radiomics features. Comput. Biol. Med. 174, 108461 (2024).

    Google Scholar 

  21. Zhang, Y., Xia, Z., Yin, G. & Liu, B. Cluster-level sparse multi-instance learning for whole-slide images. arXiv preprint arXiv:2509.11034 (2025).

  22. Tan, J. W., Lee, K. & Jeong, W.-K. Hid-con: weakly supervised intrahepatic cholangiocarcinoma subtype classification of whole slide images using contrastive hidden class detection. J. Med. Imaging 12, 061402–061402 (2025).

    Google Scholar 

  23. Wei, F. et al. Weakly-supervised segmentation with ensemble explainable AI: A comprehensive evaluation on crack detection. Rev. Sci. Instrum. 96, 045106 (2025).

  24. Huang, X. et al. 2.5 d deep learning radiomics and clinical data for predicting occult lymph node metastasis in lung adenocarcinoma. BMC Med. Imaging 25, 225 (2025).

    Google Scholar 

  25. Liang, M. et al. NSB-H2GAN: “Negative Sample”-Boosted Hierarchical Heterogeneous Graph Attention Network for Interpretable Classification of Whole-Slide Images. IEEE Trans. Image Process. 34, 4215–4229 (2025).

  26. Li, C., Weng, X., Li, Y. & Zhang, T. Multimodal learning engagement assessment system: an innovative approach to optimizing learning engagement. Int. J. Hum.-Comput. Interact. 41, 3474–3490 (2025).

    Google Scholar 

  27. Lu, M. Y. et al. Data-efficient and weakly supervised computational pathology on whole-slide images. Nat. Biomed. Eng. 5, 555–570 (2021).

  28. Zhang, H. et al. Dtfd-mil: Double-tier feature distillation multiple instance learning for histopathology whole slide image classification. In Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 18802–18812 (2022).

  29. Xiao, X. et al. Describe anything in medical images. arXiv preprint arXiv:2505.05804 (2025).

  30. Xiao, X. et al. Hgtdp-dta: Hybrid graph-transformer with dynamic prompt for drug-target binding affinity prediction. In International Conference on Neural Information Processing, 340–354 (Springer, 2024).

  31. Lin, T., Yu, Z., Hu, H., Xu, Y. & Chen, C.-W. Interventional bag multi-instance learning on whole-slide pathological images. In Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition, 19830–19839 (2023).

  32. Chen, R. J. et al. Whole slide images are 2d point clouds: Context-aware survival prediction using patch-based graph convolutional networks. International Conference on Medical Image Computing and Computer-Assisted Intervention. 339–349 (Cham: Springer International Publishing, 2021).

  33. Cancer Genome Atlas Research Network. Comprehensive molecular characterization of gastric adenocarcinoma. Nature 513, 202 (2014).

  34. Hu, W. et al. Gashissdb: a new gastric histopathology image dataset for computer aided diagnosis of gastric cancer. Comput. Biol. Med. 142, 105207 (2022).

    Google Scholar 

  35. Tellez, D. et al. Quantifying the effects of data augmentation and stain color normalization in convolutional neural networks for computational pathology. Med. Image Anal. 58, 101544 (2019).

  36. Loshchilov, I. & Hutter, F. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101 (2017).

  37. Li, B. et al. Dual-stream multiple instance learning network for whole slide image classification with self-supervised contrastive learning. In Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition. 14318–14328 (2021).

  38. Zhou, B., Khosla, A., Lapedriza, A., Oliva, A. & Torra, A. Learning deep features for discriminative localization. In Proc. IEEE Conference on Computer Vision and Pattern Recognition, 2921–2929 (2016).

  39. Chan, T. H., Cendra, F. J., Ma, L., Yin, G. & Yu, L. Histopathology whole slide image analysis with heterogeneous graph representation learning. In Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition, 15661–15670 (2023).

  40. Macenko, M. et al. A method for normalizing histology slides for quantitative analysis. In 2009 IEEE International Symposium on Biomedical Imaging: From Nano to Macro, 1107–1110 (IEEE, 2009).

Download references

Acknowledgements

This study was supported by the Joint Funds for the Innovation of Science and Technology, Fujian Province (Grant number: 2023Y9299, to Chenshen Huang).

Author information

Author notes
  1. These authors contributed equally: Chenshen Huang, Haoyun Xia, Xi Xiao.

Authors and Affiliations

  1. Department of Gastrointestinal Surgery, Fuzhou University Affiliated Provincial Hospital, School of Medicine, Fuzhou University, Fuzhou, Fujian, China

    Chenshen Huang, Haoyun Xia & Hong Chen

  2. Huzhou Central Hospital, The Fifth School of Clinical Medicine of Zhejiang Chinese Medical University, Huzhou, Zhejiang, China

    Chenshen Huang, Yahui Lyu & Ning Wang

  3. Department of Computer Science, University of Alabama at Birmingham, Birmingham, AL, USA

    Xi Xiao & Tianyang Wang

  4. School of Medicine, Tongji University, Shanghai, Shanghai, China

    Hong Chen, Zhizhan Ni & Qi Huang

  5. School of Mathematical Sciences, Tongji University, Shanghai, Shanghai, China

    Yiqing Jiang

Authors
  1. Chenshen Huang
    View author publications

    Search author on:PubMed Google Scholar

  2. Haoyun Xia
    View author publications

    Search author on:PubMed Google Scholar

  3. Xi Xiao
    View author publications

    Search author on:PubMed Google Scholar

  4. Hong Chen
    View author publications

    Search author on:PubMed Google Scholar

  5. Yiqing Jiang
    View author publications

    Search author on:PubMed Google Scholar

  6. Yahui Lyu
    View author publications

    Search author on:PubMed Google Scholar

  7. Zhizhan Ni
    View author publications

    Search author on:PubMed Google Scholar

  8. Tianyang Wang
    View author publications

    Search author on:PubMed Google Scholar

  9. Ning Wang
    View author publications

    Search author on:PubMed Google Scholar

  10. Qi Huang
    View author publications

    Search author on:PubMed Google Scholar

Contributions

Conceptualization, C.H., H.X., and X.X.; Methodology, C.H., X.X., and Y.J.; Literature Research, C.H., H.C., Y.L., Z.N., and N.W.; Data Acquisition, C.H., X.X., H.C., and T.W.; Data Analysis & Interpretation, X.X., Y.J., and T.W.; Visualization, C.H., H.X., and X.X., Writing—Original Draft, H.X., and X.X.; Writing—Review & Editing, C.H., X.X., T.W., N.W., and Q.H.; Funding acquisition: C.H.; All authors read and approved the submitted version of manuscript.

Corresponding authors

Correspondence to Chenshen Huang, Tianyang Wang, Ning Wang or Qi Huang.

Ethics declarations

Competing interests

The authors declare no competing interests.

Additional information

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Huang, C., Xia, H., Xiao, X. et al. Geometric multi-instance learning for weakly supervised gastric cancer segmentation. npj Digit. Med. (2026). https://doi.org/10.1038/s41746-025-02287-6

Download citation

  • Received: 30 September 2025

  • Accepted: 16 December 2025

  • Published: 13 January 2026

  • DOI: https://doi.org/10.1038/s41746-025-02287-6

Share this article

Anyone you share the following link with will be able to read this content:

Sorry, a shareable link is not currently available for this article.

Provided by the Springer Nature SharedIt content-sharing initiative

Download PDF

Associated content

Collection

Emerging Applications of Machine Learning and AI for Predictive Modeling in Precision Medicine

Advertisement

Explore content

  • Research articles
  • Reviews & Analysis
  • News & Comment
  • Collections
  • Follow us on Twitter
  • Sign up for alerts
  • RSS feed

About the journal

  • Aims and scope
  • Content types
  • Journal Information
  • About the Editors
  • Contact
  • Editorial policies
  • Calls for Papers
  • Journal Metrics
  • About the Partner
  • Open Access
  • Early Career Researcher Editorial Fellowship
  • Editorial Team Vacancies
  • News and Views Student Editor
  • Communication Fellowship

Publish with us

  • For Authors and Referees
  • Language editing services
  • Open access funding
  • Submit manuscript

Search

Advanced search

Quick links

  • Explore articles by subject
  • Find a job
  • Guide to authors
  • Editorial policies

npj Digital Medicine (npj Digit. Med.)

ISSN 2398-6352 (online)

nature.com sitemap

About Nature Portfolio

  • About us
  • Press releases
  • Press office
  • Contact us

Discover content

  • Journals A-Z
  • Articles by subject
  • protocols.io
  • Nature Index

Publishing policies

  • Nature portfolio policies
  • Open access

Author & Researcher services

  • Reprints & permissions
  • Research data
  • Language editing
  • Scientific editing
  • Nature Masterclasses
  • Research Solutions

Libraries & institutions

  • Librarian service & tools
  • Librarian portal
  • Open research
  • Recommend to library

Advertising & partnerships

  • Advertising
  • Partnerships & Services
  • Media kits
  • Branded content

Professional development

  • Nature Awards
  • Nature Careers
  • Nature Conferences

Regional websites

  • Nature Africa
  • Nature China
  • Nature India
  • Nature Japan
  • Nature Middle East
  • Privacy Policy
  • Use of cookies
  • Legal notice
  • Accessibility statement
  • Terms & Conditions
  • Your US state privacy rights
Springer Nature

© 2026 Springer Nature Limited

Nature Briefing: Cancer

Sign up for the Nature Briefing: Cancer newsletter — what matters in cancer research, free to your inbox weekly.

Get what matters in cancer research, free to your inbox weekly. Sign up for Nature Briefing: Cancer