Open Access
Explainable Deep Learning for Automated Histopathological Diagnosis of Gastrointestinal Malignancies: A Multicenter External Validation Study
¹ Department of Pathology, Yonsei University College of Medicine, Severance Hospital, Seoul,Republic of Korea
² Department of Biomedical Engineering, Korea Advanced Institute of Science and Technology (KAIST), Daejeon, Republic of Korea
DOI: 10.18081/ajbm.2026.2.119
ABSTRACT
Background
Histopathological examination remains the gold standard for diagnosing gastrointestinal (GI) malignancies; however, increasing diagnostic workloads, growing cancer incidence, and interobserver variability continue to challenge pathology services worldwide. Recent advances in artificial intelligence (AI), particularly deep learning, have demonstrated considerable potential to enhance diagnostic accuracy and efficiency in digital pathology. Nevertheless, the clinical applicability of many existing models remains limited because of inadequate external validation, restricted multicenter datasets, and insufficient interpretability. This study aimed to develop and externally validate an explainable deep learning framework for the automated histopathological diagnosis of gastrointestinal malignancies using multicenter whole-slide images obtained from tertiary hospitals in South Korea.
Methods
A retrospective multicenter diagnostic study was conducted using digitized hematoxylin and eosin–stained whole-slide images collected from four tertiary referral hospitals in South Korea. After quality control, 5,028 patients with 7,588 whole-slide images were included. The development cohort consisted of 3,954 patients, while an independent external cohort included 1,074 patients. Whole-slide images underwent standardized preprocessing, stain normalization, tissue segmentation, and patch extraction before training an attention-based deep learning architecture using a convolutional neural network integrated with multiple-instance learning. Model performance was evaluated by the area under the receiver operating characteristic curve (AUROC), sensitivity, specificity, accuracy, positive predictive value, negative predictive value, F1 score, calibration analysis, and external validation. Explainability was assessed using attention heatmaps and Gradient-weighted Class Activation Mapping (Grad-CAM). A reader study involving gastrointestinal pathologists, general pathologists, and pathology trainees evaluated the clinical impact of AI-assisted diagnosis.
Results
The proposed model demonstrated excellent diagnostic performance across both internal and external validation cohorts. In the independent external cohort, the model achieved an AUROC of 0.972 (95% CI: 0.963–0.980), with a sensitivity of 93.8%, specificity of 91.5%, overall accuracy of 92.8%, positive predictive value of 94.5%, negative predictive value of 90.3%, and an F1 score of 0.941 for distinguishing malignant from non-malignant gastrointestinal tissue. Patient-level AUROC reached 0.978, confirming robust generalizability across institutions and scanner platforms. Multiclass classification achieved an overall external accuracy of 89.3%, with the highest performance observed for esophageal squamous cell carcinoma, colorectal adenocarcinoma, and gastric adenocarcinoma. Explainability analyses demonstrated that attention maps consistently localized diagnostically relevant histological structures, including infiltrative glands, nuclear pleomorphism, desmoplastic stroma, and tumor necrosis. In the reader study, AI assistance increased overall diagnostic accuracy from 88.6% to 94.1% (P < 0.001) while reducing median slide interpretation time by 34.3%. The greatest improvement was observed among general pathologists and pathology trainees.
Conclusion
An explainable deep learning framework demonstrated high diagnostic accuracy, excellent external generalizability, and meaningful clinical interpretability for the automated histopathological diagnosis of gastrointestinal malignancies. Integration of AI into routine digital pathology significantly improved diagnostic performance and workflow efficiency while maintaining expert pathological oversight. These findings support the implementation of explainable deep learning as an effective clinical decision-support tool in gastrointestinal pathology and highlight its potential contribution to precision oncology. Prospective multinational validation studies are warranted to confirm clinical utility and facilitate widespread implementation in routine pathological practice.
Keywords: Artificial intelligence; Deep learning; Digital pathology; Whole-slide imaging; Gastrointestinal malignancies; Histopathology; Computational pathology
Recommended Citation
Park M, Kim J. Explainable Deep Learning for Automated Histopathological Diagnosis of Gastrointestinal Malignancies: A Multicenter External Validation Study. Advanced Journal of Biomedicine & Medicine. 2026;14(2):119-149. doi:10.18081/ajbm.2026.2.119
Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 International License.
Citations
- Niazi MKK, Parwani AV, Gurcan MN. Digital pathology and artificial intelligence. Lancet Oncol. 2019;20(5):e253-e261. doi:10.1016/S1470-2045(19)30154-8
- Campanella G, Hanna MG, Geneslaw L, et al. Clinical-grade computational pathology using weakly supervised deep learning on whole-slide images. Nat Med. 2019;25(8):1301-1309. doi:10.1038/s41591-019-0508-1
- Coudray N, Ocampo PS, Sakellaropoulos T, et al. Classification and mutation prediction from non-small cell lung cancer histopathology images using deep learning. Nat Med. 2018;24(10):1559-1567. doi:10.1038/s41591-018-0177-5
- Lu MY, Williamson DFK, Chen TY, Chen RJ, Barbieri M, Mahmood F. Data-efficient and weakly supervised computational pathology on whole-slide images. Nat Biomed Eng. 2021;5(6):555-570. doi:10.1038/s41551-020-00682-w
- Kather JN, Pearson AT, Halama N, et al. Deep learning can predict microsatellite instability directly from histology in gastrointestinal cancer. Nat Med. 2019;25(7):1054-1056. doi:10.1038/s41591-019-0462-y
- Echle A, Grabsch HI, Quirke P, et al. Clinical-grade detection of microsatellite instability in colorectal tumors by deep learning. Gastroenterology. 2020;159(4):1406-1416.e11. doi:10.1053/j.gastro.2020.06.021
- Echle A, Ghaffari Laleh N, Quirke P, et al. Artificial intelligence for detection of microsatellite instability in colorectal cancer—a multicentric analysis of a pre-screening tool for clinical application. Lancet Oncol. 2022;23(5):632-643. doi:10.1016/S1470-2045(22)00139-5
- Bilal M, Raza SEA, Azam A, et al. Development and validation of a weakly supervised deep learning framework to predict the status of molecular pathways and key mutations in colorectal cancer from routine histology images. Lancet Digit Health. 2021;3(12):e763-e772. doi:10.1016/S2589-7500(21)00180-1
- Ho C, Zhao Z, Chen XF, et al. A promising deep learning-assistive algorithm for histopathological screening of colorectal cancer. Sci Rep. 2022;12(1):2222. doi:10.1038/s41598-022-06264-x
- Kiehl L, Kuntz S, Höhn J, et al. Deep learning can predict lymph node status directly from histology in colorectal cancer. Eur J Cancer. 2021;157:464-473. doi:10.1016/j.ejca.2021.08.039
- Hu Y, Su F, Dong K, et al. Deep learning system for lymph node quantification and metastatic cancer identification from whole-slide pathology images. Gastric Cancer. 2021;24(4):868-877. doi:10.1007/s10120-021-01158-9
- Jang HJ, Lee A, Kang J, Song IH, Lee SH. Deep learning for automatic subclassification of gastric carcinoma using whole-slide histopathology images. Cancers (Basel). 2021;13(15):3811. doi:10.3390/cancers13153811
- Jang HJ, Lee A, Kang J, Song IH, Lee SH. Prediction of genetic alterations from gastric cancer histopathology images using a deep learning approach. World J Gastroenterol. 2021;27(45):7687-7702. doi:10.3748/wjg.v27.i45.7687
- Veldhuizen GP, Röcken C, Behrens HM, et al. Deep learning-based subtyping of gastric cancer histology predicts clinical outcome: a multi-institutional retrospective study. Gastric Cancer. 2023;26(5):708-720. doi:10.1007/s10120-023-01398-x
- Choi S, Kim S. Artificial intelligence in the pathology of gastric cancer. J Gastric Cancer. 2023;23(3):410-427. doi:10.5230/jgc.2023.23.e25
- Kosaraju SC, Hao J, Koh K, Kang M. Deep-Hipo: multi-scale receptive field deep learning for histopathological image analysis. Methods. 2020;179:3-13. doi:10.1016/j.ymeth.2020.05.012
- Bilal M, Raza SEA, Azam A, et al. Role of artificial intelligence and digital pathology for colorectal immuno-oncology. Br J Cancer. 2023;128(1):3-11. doi:10.1038/s41416-022-02017-1
- Wong ANN, He Z, Leung KL, et al. Current developments of artificial intelligence in digital pathology and its future clinical applications in gastrointestinal cancers. Cancers (Basel). 2022;14(15):3780. doi:10.3390/cancers14153780
- Kather JN, Calderaro J. Development of AI-based pathology biomarkers in gastrointestinal and liver cancer. Nat Rev Gastroenterol Hepatol. 2020;17(10):591-592. doi:10.1038/s41575-020-0343-3
- Nagpal K, Foote D, Liu Y, et al. Development and validation of a deep learning algorithm for improving Gleason scoring of prostate cancer. NPJ Digit Med. 2019;2:48. doi:10.1038/s41746-019-0112-2
- Bulten W, Pinckaers H, van Boven H, et al. Automated deep-learning system for Gleason grading of prostate cancer using biopsies: a diagnostic study. Lancet Oncol. 2020;21(2):233-241. doi:10.1016/S1470-2045(19)30739-9
- Ehteshami Bejnordi B, Veta M, Johannes van Diest P, et al. Diagnostic assessment of deep learning algorithms for detection of lymph node metastases in women with breast cancer. JAMA. 2017;318(22):2199-2210. doi:10.1001/jama.2017.14585
- Cruz-Roa A, Gilmore H, Basavanhally A, et al. Accurate and reproducible invasive breast cancer detection in whole-slide images: a deep learning approach for quantifying tumor extent. Sci Rep. 2017;7:46450. doi:10.1038/srep46450
- Lu MY, Chen RJ, Kong D, et al. Federated learning for computational pathology on gigapixel whole-slide images. Med Image Anal. 2022;76:102298. doi:10.1016/j.media.2021.102298
- Chen RJ, Lu MY, Williamson DFK, et al. Pan-cancer integrative histology-genomic analysis via multimodal deep learning. Cancer Cell. 2022;40(8):865-878.e6. doi:10.1016/j.ccell.2022.07.004
- Chen RJ, Ding T, Lu MY, et al. Towards a general-purpose foundation model for computational pathology. Nat Med. 2024;30(3):850-862. doi:10.1038/s41591-024-02857-3
- Ghaffari Laleh N, Muti HS, Loeffler CML, et al. Benchmarking weakly-supervised deep learning pipelines for whole-slide classification in computational pathology. Med Image Anal. 2022;79:102474. doi:10.1016/j.media.2022.102474
- Ilse M, Tomczak JM, Welling M. Attention-based deep multiple instance learning. In: Dy J, Krause A, eds. Proceedings of the 35th International Conference on Machine Learning. PMLR; 2018:2127-2136.
- Selvaraju RR, Cogswell M, Das A, Vedantam R, Parikh D, Batra D. Grad-CAM: visual explanations from deep networks via gradient-based localization. In: Proceedings of the IEEE International Conference on Computer Vision. IEEE; 2017:618-626. doi:10.1109/ICCV.2017.74
- He K, Zhang X, Ren S, Sun J. Deep residual learning for image recognition. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. IEEE; 2016:770-778. doi:10.1109/CVPR.2016.90
- Tan M, Le QV. EfficientNet: rethinking model scaling for convolutional neural networks. In: Chaudhuri K, Salakhutdinov R, eds. Proceedings of the 36th International Conference on Machine Learning. PMLR; 2019:6105-6114.
- Dosovitskiy A, Beyer L, Kolesnikov A, et al. An image is worth 16×16 words: transformers for image recognition at scale. In: International Conference on Learning Representations. Published 2021.
- Liu Z, Lin Y, Cao Y, et al. Swin Transformer: hierarchical vision transformer using shifted windows. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. IEEE; 2021:10012-10022. doi:10.1109/ICCV48922.2021.00986
- Macenko M, Niethammer M, Marron JS, et al. A method for normalizing histology slides for quantitative analysis. In: 2009 IEEE International Symposium on Biomedical Imaging: From Nano to Macro. IEEE; 2009:1107-1110. doi:10.1109/ISBI.2009.5193250
- Reinhard E, Adhikhmin M, Gooch B, Shirley P. Color transfer between images. IEEE Comput Graph Appl. 2001;21(5):34-41. doi:10.1109/38.946629
- DeLong ER, DeLong DM, Clarke-Pearson DL. Comparing the areas under two or more correlated receiver operating characteristic curves: a nonparametric approach. Biometrics. 1988;44(3):837-845. doi:10.2307/2531595
- McNemar Q. Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika. 1947;12(2):153-157. doi:10.1007/BF02295996
- Cohen J. A coefficient of agreement for nominal scales. Educ Psychol Meas. 1960;20(1):37-46. doi:10.1177/001316446002000104
- Vickers AJ, Elkin EB. Decision curve analysis: a novel method for evaluating prediction models. Med Decis Making. 2006;26(6):565-574. doi:10.1177/0272989X06295361
- Bossuyt PM, Reitsma JB, Bruns DE, et al. STARD 2015: an updated list of essential items for reporting diagnostic accuracy studies. BMJ. 2015;351:h5527. doi:10.1136/bmj.h5527
- Collins GS, Reitsma JB, Altman DG, Moons KGM. Transparent reporting of a multivariable prediction model for individual prognosis or diagnosis: the TRIPOD statement. Ann Intern Med. 2015;162(1):55-63. doi:10.7326/M14-0697
- Mongan J, Moy L, Kahn CE Jr. Checklist for Artificial Intelligence in Medical Imaging (CLAIM): a guide for authors and reviewers. Radiol Artif Intell. 2020;2(2):e200029. doi:10.1148/ryai.2020200029
- Sounderajah V, Ashrafian H, Golub RM, et al. Developing a reporting guideline for artificial intelligence-centred diagnostic test accuracy studies: the STARD-AI protocol. BMJ Open. 2021;11(6):e047709. doi:10.1136/bmjopen-2020-047709
2026 Vol 14, Issue 2 Pages 119-149
Cite this article
