2611005644
  • Open Access
  • Article

Spatial Prototype and Multiscale Expert Multiple-Instance Learning for Breast Cancer Subtype Prediction

  • Zhixin Li 1,   
  • Huina Wang 2,   
  • Hans W. Guesgen 3 and 
  • Bo Liu 1,*

Received: 25 September 2026 | Revised: 03 November 2026 | Accepted: 11 November 2026 | Published: 23 November 2026

Abstract

Breast cancer subtype prediction from whole-slide images (WSIs) remains difficult because subtype morphology overlaps, class imbalance can bias training, and conventional multiple-instance learning (MIL) may discard relationships between neighboring patches. Evidence captured at one patch-aggregation scale may also be insufficient for every patient. We propose Spatial Prototype and Multiscale Expert Multiple-Instance Learning (SPME-MIL) for patient-level prediction of four PAM50 subtypes. SPME-MIL combines prototype-based patch aggregation, a global K-means cluster representation, and features that describe spatial relationships between neighboring patches. A WSI-level adaptation of the Synthetic Minority Over-sampling Technique (SMOTE) augments the less frequent classes. Using patch coordinates, we average neighboring patch features to form three aggregation scales. The Hybrid classifier conditionally refines Luminal A/B predictions from a main model. The Cascade classifier first separates Luminal from Non-Luminal tumors, then predicts the subtype within the selected group. A patient-level prediction rule selects one of their subtype probability vectors. On the held-out test set, SPME-MIL achieved an accuracy of 0.6933 and a macro-F1 score of 0.6035. The prediction rule increased macro-F1 by 0.0651 over the stronger individual classifier. SPME-MIL also achieved the highest patient-level metrics among eight adapted baseline pipelines evaluated with identical features and the same patient split; the highest baseline macro-F1 was 0.4202.

References 

  • 1.

    Parker, J.S.; Mullins, M.; Cheang, M.C.U.; et al. Supervised Risk Predictor of Breast Cancer Based on Intrinsic Subtypes. J. Clin. Oncol. 2009, 27, 1160–1167. https://doi.org/10.1200/jco.2008.18.1370.

  • 2.

    Phan, N.N.; Huang, C.C.; Tseng, L.M.; et al. Predicting Breast Cancer Gene Expression Signature by Applying Deep Convolutional Neural Networks from Unannotated Pathological Images. Front. Oncol. 2021, 11, 769447. https://doi.org/10.3389/fonc.2021.769447.

  • 3.

    Tafavvoghi, M.; Sildnes, A.; Rakaee, M.; et al. Deep Learning-Based Classification of Breast Cancer Molecular Subtypes from H&E Whole-Slide Images. J. Pathol. Inform. 2025, 16, 100410. https://doi.org/10.1016/j.jpi.2024.100410.

  • 4.

    Sweeney, C.; Bernard, P.S.; Factor, R.E.; et al. Intrinsic Subtypes from PAM50 Gene Expression Assay in a Population-Based Breast Cancer Cohort: Differences by Age, Race, and Tumor Characteristics. Cancer Epidemiol. Biomarkers Prev. 2014, 23, 714–724. https://doi.org/10.1158/1055-9965.epi-13-1023.

  • 5.

    Zhang, Y.; Kang, B.; Hooi, B.; et al. Deep Long-Tailed Learning: A Survey. IEEE Trans. Pattern Anal. Mach. Intell. 2023, 45, 10795–10816. https://doi.org/10.1109/tpami.2023.3268118.

  • 6.

    Chawla, N.V.; Bowyer, K.W.; Hall, L.O.; et al. SMOTE: Synthetic Minority Over-sampling Technique. J. Artif. Intell. Res. 2002, 16, 321–357. https://doi.org/10.1613/jair.953.

  • 7.

    Jaber, M.I.; Song, B.; Taylor, C.; et al. A Deep Learning Image-Based Intrinsic Molecular Subtype Classifier of Breast Tumors Reveals Tumor Heterogeneity that May Affect Survival. Breast Cancer Res. 2020, 22, 12. https://doi.org/10.1186/s13058-020-1248-3.

  • 8.

    Jang, W.; Lee, J.; Park, K.H.; et al. Molecular Classification of Breast Cancer Using Weakly Supervised Learning. Cancer Res. Treat. 2025, 57, 116–125. https://doi.org/10.4143/crt.2024.113.

  • 9.

    Kiraz, U.; Fernandez-Martin, C.; Rewcastle, E.; et al. Validation of an Artificial Intelligence Model for Breast Cancer Molecular Subtyping Using Hematoxylin and Eosin-Stained Whole-Slide Images in a Population-Based Cohort. Cancers 2025, 17, 3234. https://doi.org/10.3390/cancers17193234.

  • 10.

    Rasoolijaberi, M.; Babaei, M.; Riasatian, A.; et al. Multi-Magnification Image Search in Digital Pathology. IEEE J. Biomed. Health Inform. 2022, 26, 4611–4622. https://doi.org/10.1109/jbhi.2022.3181531.

  • 11.

    Li, J.; Li, W.; Sisk, A.; et al. A Multi-Resolution Model for Histopathology Image Classification and Localization with Multiple Instance Learning. Comput. Biol. Med. 2021, 131, 104253. https://doi.org/10.1016/j.compbiomed.2021.104253.

  • 12.

    Chen, R.J.; Chen, C.; Li, Y.; et al. Scaling Vision Transformers to Gigapixel Images via Hierarchical Self-Supervised Learning. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA, 19–24 June 2022; pp. 16123–16134. https://doi.org/10.1109/cvpr52688.2022.01567.

  • 13.

    Tran, M.; Wagner, S.; Weichert, W.; et al. Navigating through Whole Slide Images with Hierarchy, Multi-Object, and Multi-Scale Data. IEEE Trans. Med. Imaging 2025, 44, 2002–2015. https://doi.org/10.1109/tmi.2025.3532728.

  • 14.

    Ilse, M.; Tomczak, J.M.; Welling, M. Attention-Based Deep Multiple Instance Learning. In Proceedings of the 35th International Conference on Machine Learning (ICML 2018), Stockholm, Sweden, 10–15 July 2018; Volume 80, pp. 2127–2136.

  • 15.

    Lu, M.Y.; Williamson, D.F.K.; Chen, T.Y.; et al. Data-Efficient and Weakly Supervised Computational Pathology on Whole-Slide Images. Nat. Biomed. Eng. 2021, 5, 555–570. https://doi.org/10.1038/s41551-020-00682-w.

  • 16.

    Li, B.; Li, Y.; Eliceiri, K.W. Dual-Stream Multiple Instance Learning Network for Whole Slide Image Classification with Self-Supervised Contrastive Learning. In Proceedings of the 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, 20–25 June 2021; pp. 14313–14323. https://doi.org/10.1109/cvpr46437.2021.01409.

  • 17.

    Levy, J.; Haudenschild, C.; Barwick, C.; et al. Topological Feature Extraction and Visualization of Whole Slide Images using Graph Neural Networks. In Proceedings of the Pacific Symposium on Biocomputing 2021, Kohala Coast, HI, USA, 3–7 January 2021; Volume 26, pp. 285–296. https://doi.org/10.1142/9789811232701_0027.

  • 18.

    Danenberg, E.; Bardwell, H.; Zanotelli, V.R.T.; et al. Breast Tumor Microenvironment Structures Are Associated with Genomic Features and Clinical Outcome. Nat. Genet. 2022, 54, 660–669. https://doi.org/10.1038/s41588-022-01041-y.

  • 19.

    Shao, Z.; Bian, H.; Chen, Y.; et al. TransMIL: Transformer-Based Correlated Multiple Instance Learning for Whole Slide Image Classification. In Advances in Neural Information Processing Systems 35: 35th Annual Conference on Neural Information Processing Systems (NeurIPS 2021), Sydney, Australia, 6–14 December 2021; Volume 35, pp. 2292–2300.arXiv

  • 20.

    Qu, L.; Yang, Z.; Duan, M.; et al. Boosting Whole Slide Image Classification from the Perspectives of Distribution, Correlation and Magnification. In Proceedings of the 2023 IEEE/CVF International Conference on Computer Vision (ICCV), Paris, France, 1–6 October 2023; pp. 21406–21416. https://doi.org/10.1109/iccv51070.2023.01962.

  • 21.

    Shi, J.; Li, C.; Gong, T.; et al. ViLa-MIL: Dual-Scale Vision-Language Multiple Instance Learning for Whole Slide Image Classification. In Proceedings of the 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 17–21 June 2024; pp. 11248–11258. https://doi.org/10.1109/cvpr52733.2024.01069.

  • 22.

    Kang, B.; Xie, S.; Rohrbach, M.; et al. Decoupling Representation and Classifier for Long-Tailed Recognition. In Proceedings of the Eighth International Conference on Learning Representations (ICLR 2020), Addis Ababa, Ethiopia, 26–30 April 2020.

  • 23.

    Liu, H.; Xu, W.D.; Shang, Z.H.; et al. Breast Cancer Molecular Subtype Prediction on Pathological Images with Discriminative Patch Selection and Multi-Instance Learning. Front. Oncol. 2022, 12, 858453. https://doi.org/10.3389/fonc.2022.858453.

  • 24.

    Mota, A.M.; Mendes, J.; Matela, N. Breast Cancer Molecular Subtype Prediction: A Mammography-Based AI Approach. Biomedicines 2024, 12, 1371. https://doi.org/10.3390/biomedicines12061371.

  • 25.

    He, H.; Bai, Y.; Garcia, E.A.; et al. ADASYN: Adaptive Synthetic Sampling Approach for Imbalanced Learning. In Proceedings of the 2008 IEEE International Joint Conference on Neural Networks (IJCNN 2008—Hong Kong), Hong Kong, China, 1–8 June 2008; pp. 1322–1328. https://doi.org/10.1109/ijcnn.2008.4633969.

  • 26.

    Bunkhumpornpat, C.; Sinapiromsaran, K.; Lursinsap, C. Safe-Level-SMOTE: Safe-Level-Synthetic Minority Over-Sampling Technique for Handling the Class Imbalanced Problem. In Advances in Knowledge Discovery and Data Mining; Springer Berlin Heidelberg: Berlin, Heidelberg, Germany, 2009; Volume 5476, pp. 475–482. https://doi.org/10.1007/978-3-642-01307-2_43.

  • 27.

    Yan, S.; Zhao, Z.; Liu, S.; et al. BO-SMOTE: A Novel Bayesian-Optimization-Based Synthetic Minority Oversampling Technique. IEEE Trans. Syst. Man Cybern. Syst. 2024, 54, 2079–2091. https://doi.org/10.1109/tsmc.2023.3335241.

  • 28.

    Dou, J.; Wei, G.; Song, Y.; et al. Switching Triple-Weight-SMOTE in Empirical Feature Space for Imbalanced and Incomplete Data. IEEE Trans. Autom. Sci. Eng. 2024, 21, 1850–1866. https://doi.org/10.1109/tase.2023.3240759.

  • 29.

    Yan, S.; Guo, H.; Su, X. Adaptive Weighting–Synthetic Minority Oversampling Technique. Mathematics 2026, 14, 3238. https://doi.org/10.3390/math14173238.

  • 30.

    Kachan, O.; Savchenko, A.; Gusev, G. Simplicial SMOTE: Oversampling Solution to the Imbalanced Learning Problem. In Proceedings of the KDD ’25: The 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining, Toronto, ON, Canada, 3–7 August 2025; pp. 625–635. https://doi.org/10.1145/3690624.3709268.

  • 31.

    Mera, C.; Arrieta, J.; Orozco-Alzate, M.; et al. A Bag Oversampling Approach for Class Imbalance in Multiple Instance Learning. In Progress in Pattern Recognition, Image Analysis, Computer Vision, and Applications; Springer International Publishing: Cham, Switzerland, 2015; Volume 9423, pp. 724–731. https://doi.org/10.1007/978-3-319-25751-8_87.

  • 32.

    Gadermayr, M.; Koller, L.; Tschuchnig, M.; et al. MixUp-MIL: Novel Data Augmentation for Multiple Instance Learning and a Study on Thyroid Cancer Diagnosis. In Medical Image Computing and Computer Assisted Intervention—MICCAI 2023; Springer Nature Switzerland: Cham, Switzerland, 2023; Volume 14225, pp. 477–486. https://doi.org/10.1007/978-3-031-43987-2_46.

  • 33.

    Yang, J.; Chen, H.; Zhao, Y.; et al. ReMix: A General and Efficient Framework for Multiple Instance Learning Based Whole Slide Image Classification. In Medical Image Computing and Computer Assisted Intervention—MICCAI 2022; Springer Nature Switzerland: Cham, Switzerland, 2022; Volume 13432, pp. 35–45. https://doi.org/10.1007/978-3-031-16434-7_4.

  • 34.

    Raswa, F.H.; Lu, C.S.; Wang, J.C. Attention-Guided Prototype Mixing: Diversifying Minority Context on Imbalanced Whole Slide Images Classification Learning. In Proceedings of the 2024 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), Waikoloa, HI, USA, 3–8 January 2024; pp. 7609–7618. https://doi.org/10.1109/wacv57701.2024.00745.

  • 35.

    Rymarczyk, D.; Pardyl, A.; Kraus, J.; et al. ProtoMIL: Multiple Instance Learning with Prototypical Parts for Whole-Slide Image Classification. In Machine Learning and Knowledge Discovery in Databases; Springer International Publishing: Cham, Switzerland, 2023; Volume 13713, pp. 421–436. https://doi.org/10.1007/978-3-031-26387-3_26.

  • 36.

    Yang, L.; Mehta, D.; Liu, S.; et al. Trainable Prototype Enhanced Multiple Instance Learning for Whole Slide Image Classification. In Proceedings of the 6th International Conference on Medical Imaging with Deep Learning (MIDL 2023), Nashville, TN, USA, 10–12 July 2023; Volume 227, pp. 1655–1665.

  • 37.

    Song, A.H.; Chen, R.J.; Ding, T.; et al. Morphological Prototyping for Unsupervised Slide Representation Learning in Computational Pathology. In Proceedings of the 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 17–21 June 2024; pp. 11566–11578. https://doi.org/10.1109/cvpr52733.2024.01099.

  • 38.

    Jegou, H.; Douze, M.; Schmid, C.; et al. Aggregating Local Descriptors into a Compact Image Representation. In Proceedings of the 2010 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), San Francisco, CA, USA, 13–18 June 2010; pp. 3304–3311. https://doi.org/10.1109/cvpr.2010.5540039.

  • 39.

    Cuturi, M. Sinkhorn Distances: Lightspeed Computation of Optimal Transport. In Advances in Neural Information Processing Systems 26: 27th Annual Conference on Neural Information Processing Systems 2013, Lake Tahoe, NV, USA, 5–10 December 2013; Volume 26, pp. 2292–2300.

  • 40.

    Yu, J.; Ma, T.; Fu, Y.; et al. Local-to-Global Spatial Learning for Whole-Slide Image Representation and Classification. Comput. Med. Imaging Graph. 2023, 107, 102230. https://doi.org/10.1016/j.compmedimag.2023.102230.

  • 41.

    Shi, J.; Sun, D.; Wu, K.; et al. Positional Encoding-Guided Transformer-Based Multiple Instance Learning for Histopathology Whole Slide Images Classification. Comput. Methods Programs Biomed. 2024, 258, 108491. https://doi.org/10.1016/j.cmpb.2024.108491.

  • 42.

    Yamada, H. Moran’s I for Multivariate Spatial Data. Mathematics 2024, 12, 2746. https://doi.org/10.3390/math12172746.

  • 43.

    Wolpert, D.H. Stacked Generalization. Neural Netw. 1992, 5, 241–259. https://doi.org/10.1016/s0893-6080(05)80023-1.

  • 44.

    Zhang, H.; Meng, Y.; Zhao, Y.; et al. DTFD-MIL: Double-Tier Feature Distillation Multiple Instance Learning for Histopathology Whole Slide Image Classification. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA, 19–24 June 2022; pp. 18780–18790. https://doi.org/10.1109/cvpr52688.2022.01824.

  • 45.

    Chen, R.J.; Ding, T.; Lu, M.Y.; et al. Towards a General-Purpose Foundation Model for Computational Pathology. Nat. Med. 2024, 30, 850–862. https://doi.org/10.1038/s41591-024-02857-3.

  • 46.

    Lu, M.Y.; Chen, B.; Williamson, D.F.K.; et al. A Visual-Language Foundation Model for Computational Pathology. Nat. Med. 2024, 30, 863–874. https://doi.org/10.1038/s41591-024-02856-4.

  • 47.

    Xu, H.; Usuyama, N.; Bagga, J.; et al. A Whole-Slide Foundation Model for Digital Pathology from Real-World Data. Nature 2024, 630, 181–188. https://doi.org/10.1038/s41586-024-07441-w.

Share this article:
How to Cite
Li, Z.; Wang, H.; Guesgen, H. W.; Liu, B. Spatial Prototype and Multiscale Expert Multiple-Instance Learning for Breast Cancer Subtype Prediction. Journal of Artificial Intelligence for Automation 2026, 1 (3), 19. https://doi.org/10.53941/jaia.2026.100019.
RIS
BibTex
Copyright & License
article copyright Image
Copyright (c) 2026 by the authors.
Article Metrics
20
Article Views
0
Citations