Deep learning model for automated detection of Helicobacter pylori and intestinal metaplasia on gastric biopsy digital whole slide images
Authors:
- 25 September 2025
- journal article
- Published by Oxford University Press (OUP) in American Journal of Clinical Pathology
- Vol. 164 (5) , 830-839
Abstract
Objective: To develop an automated detection tool for Helicobacter pylori (HP) microorganisms (HPOrg) and intestinal metaplasia (IM) identification on gastric biopsy specimens on hematoxylin and eosin (H&E) whole-slide images (WSIs), incorporating background histopathologic features. Methods: A total of 180 H&E gastric biopsy WSIs, archived at the Department of Anatomical Pathology, Singapore General Hospital, were used to train, validate, and test (60:20:20) a decision support tool. Eighty WSIs displayed non-HP inflammation; 100 were annotated for HP-associated gastritis, HPOrg, and IM. A 2-stage model was employed—a Vision Transformer–based model filtered artifacts after stain normalization, and then a Graph Attention Network component aggregated patch-level features, giving a prediction for each of 6 tissue sections within each WSI, with a majority vote determining the final WSI prediction. Results: A total of 776 636 patches were used for training/validation and testing. The optimized model showed HPOrg classification (precision: 0.604, F1-score: 0.617, and top 10 micro F1-score: 0.714) and IM classification (precision: 0.905, F1-score: 0.861, and top 10 micro F1-score: 1.0). The macro average F1-score was 0.739, section-level precision was 0.981, and the F1-score was 0.945. The WSI-level precision achieved was 1.0, with a F1-score of 0.96. Conclusions: We demonstrate a 2-stage model to detect HP and IM in gastric biopsy specimens, considering background inflammation, which more closely reflects real-world clinical diagnosis.Keywords
Funding Information
- National Research Foundation, Singapore
This publication has 18 references indexed in Scilit:
- Diagnosing and grading gastric atrophy and intestinal metaplasia using semi-supervised deep learning on pathological images: development and validation studyGastric Cancer, 2023
- Comparing Accuracy of Helicobacter pylori Identification Using Traditional Hematoxylin and Eosin–Stained Glass Slides With Digital Whole Slide ImagingLaboratory Investigation, 2023
- Two‐tiered deep‐learning‐based model for histologic diagnosis of Helicobacter gastritisHistopathology, 2023
- Artificial intelligence for evaluating the risk of gastric cancer: reliable detection and scoring of intestinal metaplasia with deep learning algorithmsGastrointestinal Endoscopy, 2023
- Use of digital pathology and artificial intelligence for the diagnosis of Helicobacter pylori in gastric biopsiesPathologica, 2022
- Deep learning for sensitive detection of Helicobacter Pylori in gastric biopsiesBMC Gastroenterology, 2020
- Deep learning assistance for the histopathologic diagnosis of Helicobacter pyloriIntelligence-Based Medicine, 2020
- Evaluating the benefits of digital pathology implementation: time savings in laboratory logisticsHistopathology, 2018
- Subtypes of intestinal metaplasia and Helicobacter pylori.Gut, 1992
- Helicobacter pylori in gastric biopsy specimens. Comparison of culture, modified Giemsa stain, and immunohistochemistry. A retrospective studyThe Journal of Pathology, 1991