Frontiers in immunology

A machine-learning model for staging autoimmune gastritis based on endoscopic and serological features.

Jingna Tao, Linghan Meng, Tong Li, Jiaqi Wang, Liju Zhang, Xiyan Zhang, Zhihong Li

Department of Gastroenterology, Dongzhimen Hospital, Beijing University of Chinese Medicine, Beijing, China. · Guang'anmen Hospital, China Academy of Chinese Medical Sciences, Beijing, China.

Observational · n=203

Key points

From the paper's conclusion
  • Multi-modal machine learning enables accurate, interpretable AIG staging. Endoscopic features outperform serology, and combined models offer the best three-class performance. The high prevalence of Barrett esophagus supports routine esophageal surveillance in AIG.

Abstract

OBJECTIVES: Autoimmune gastritis (AIG) lacks a unified, practical staging system. The AIG-atrophic stage (AIG-AS) scheme, based on the proportional area of remnant oxyntic mucosa (ROM), is promising but observer-dependent. We developed machine-learning models to stage AIG using endoscopic and serological features. METHODS: This single-center cross-sectional study enrolled 203 patients with AIG confirmed by integrated endoscopic, histological, and serological criteria between December 2023 and December 2025. White-light endoscopy (WLE), magnifying endoscopy with narrow-band imaging (ME-NBI), and a serum panel were collected. Patients were classified under AIG-AS as Stage 1 (50%<ROM ≤ 100%), Stage 2 (10%<ROM ≤ 50%), or Stage 3 (ROM ≤ 10%), and additionally as early-to-intermediate (Stages 1 + 2) versus advanced (Stage 3). Seven algorithms-LASSO logistic regression, elastic net, random forest, XGBoost, support vector machine, gradient boosting, and stacking-were trained on five feature sets using stratified 5-fold nested cross-validation, with SMOTE applied only within training folds. SHAP analysis provided interpretability. RESULTS: Stages 1, 2, and 3 included 87 (42.9%), 36 (17.7%), and 80 (39.4%) patients. The combined endoscopy+serology random forest achieved the highest three-class macro-AUC (0.878 ± 0.051; accuracy 74.9%), surpassing WLE stacking (0.853 ± 0.056) and serology-only models (≤0.693). For binary staging, the WLE+ME-NBI random forest reached an AUC of 0.913 ± 0.046. Loss of gastric folds, gastrin-17, pepsinogen I, crypt-opening grade, and cast-off skin appearance were the dominant predictors. Barrett esophagus prevalence was 66.8%, with long-segment Barrett esophagus 3.3-fold more common in advanced AIG than in earlier disease. CONCLUSIONS: Multi-modal machine learning enables accurate, interpretable AIG staging. Endoscopic features outperform serology, and combined models offer the best three-class performance. The high prevalence of Barrett esophagus supports routine esophageal surveillance in AIG.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers