Classification of Whole-Slide Pathology Images Based on State Space Models and Graph Neural Networks
Whole-slide images (WSIs) pose significant analytical challenges due to their large data scale and complexity. Multiple instance learning (MIL) has emerged as an effective solution for WSI classification, but existing frameworks often lack flexibility in feature integration and underutilize sequential information. To address these limitations, this work proposes a novel MIL framework: Dynamic Graph and State Space Model-Based MIL (DG-SSM-MIL). DG-SSM-MIL combines graph neural networks and selective state space models, leveraging the former’s ability to extract local and spatial features and the latter’s advantage in comprehensively understanding long-sequence instances. This enhances the model’s performance in diverse instance classification, improves its capability to handle long-sequence data, and increases the precision and scalability of feature fusion. We propose the Dynamic Graph and State Space Model (DynGraph-SSM) module, which aggregates local and spatial information of image patches through directed graphs and learns global feature representations using the Mamba model. Additionally, the directed graph structure alleviates the unidirectional scanning limitation of Mamba and enhances its ability to process pathological images with dispersed lesion distributions. DG-SSM-MIL demonstrates superior performance in classification tasks compared to other models. We validate the effectiveness of the proposed method on features extracted from two pretrained models across four public medical image datasets: BRACS, TCGA-NSCLC, TCGA-RCC, and CAMELYON16. Experimental results demonstrate that DG-SSM-MIL consistently outperforms existing MIL methods across four public datasets. For example, when using ResNet-50 features, our model achieves the highest AUCs of 0.936, 0.785, 0.879, and 0.957 on TCGA-NSCLC, BRACS, CAMELYON16, and TCGA-RCC, respectively. Similarly, with UNI features, DG-SSM-MIL reaches AUCs of 0.968, 0.846, 0.993, and 0.990, surpassing all baselines. These results confirm the effectiveness and generalizability of our approach in diverse WSI classification tasks.
Authors
- Jun Li (ORCID: https://orcid.org/0000-0003-1693-0264)
- Chengfei Cai (ORCID: https://orcid.org/0000-0002-9582-0348)
- Jun Xu (ORCID: https://orcid.org/0000-0001-5315-8811)
- Yiping Jiao (ORCID: https://orcid.org/0000-0002-0787-3424)
- Zhengcan Wu
- Mingxin Liu (ORCID: https://orcid.org/0000-0002-1383-6558)
- Feng Ding
Institutions
- Nanjing University of Information Science and Technology (CN)
- Taizhou University (CN)
- Nanjing Medical University (CN)
Publication Details
- Journal
- Electronics
- Published
- 2025-05-19
- DOI
- https://doi.org/10.3390/electronics14102056
- Citations
- 2
- Primary Topic
- AI in cancer detection
- Type
- article
- Field-Weighted Citation Impact
- 4.96