Abstract
Accurate detection of sentinel lymph node metastasis in whole slide images (WSIs) is critical for breast cancer staging, yet existing graph neural network (GNN) based methods lack pathological prior features that characterize diagnostically meaningful tissue configurations, leaving the model without an effective guidance for message passing or node importance evaluation. We propose a pathology-prior driven substructure-aware graph neural network for whole slide image classification. The pathology-prior substructure encoding (PPSE) module characterizes four substructure descriptors. The substructure-aware message passing (SAMP) module uses these descriptors to guide message passing via edge-level attention weights computed from incident node substructure features, concentrating information flow on diagnostically coherent connections. The substructure-aware graph readout (SAGR) module uses substructure-enriched node representations to evaluate node importance by deviation from the slide-level tissue distribution, shifting node scoring from absolute semantic evaluation to slide-level anomalousness detection. Experiments on the SLN-Breast dataset demonstrate AUC of 0.9479±0.0133 and ACC of 0.9462±0.0188, outperforming most baselines with substantially reduced cross-fold variance. Independent validation on the TCGA-ESCA dataset further demonstrates AUC of 0.9610±0.0295 and ACC of 0.9050±0.0284, confirming the generalizability of the proposed framework across cancer types. Code is available at https://github.com/jyatgithub/Pathology-Prior-Driven-Substructure-Aware-Graph-Neural-Network-for-WSI.
Similar content being viewed by others
Funding
This research received no specific external funding from public, commercial, or not-for-profit sectors.
Author information
Authors and Affiliations
Corresponding author
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/.
About this article
Cite this article
Wu, J., Jiang, D. Pathology-prior driven substructure-aware graph neural network for whole slide image classification. Sci Rep (2026). https://doi.org/10.1038/s41598-026-53704-z
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-026-53704-z


