Multi-institutional grading of Barrett's esophagus dysplasia without stain normalization using a pathology foundation model and multiple instance learning
Authors: Amirali Khosravi, Jaidip M. Jagtap, D. Chamil Codipilly, Catherine E. Hagen, Jason T. Lewis, Rickey E. Carter, Shahriar Faghani, Vani J. A. Konda, Fouad Otaki, Shajan Peter, Nicholas Shaheen, Sachin Wani, Prasad G. Iyer, Bradley J. Erickson
Organizations: Department of Radiology, Mayo Clinic, Rochester, MN · Division of Gastroenterology & Hepatology, Mayo Clinic, Rochester, MN · Department of Laboratory Medicine and Pathology, Mayo Clinic, Rochester, MN · Department of Laboratory Medicine and Pathology, Mayo Clinic, Jacksonville, FL · Department of Quantitative Health Sciences, Mayo Clinic, Jacksonville, FL · Department of Radiology, University of Pennsylvania, Philadelphia, PA · Department of Gastroenterology, Baylor Scott and White Center for Esophageal Diseases at Baylor University Medical Center, Dallas, TX · Division of Gastroenterology and Hepatology, Oregon Health and Science University, Portland, OR · Division of Gastroenterology, University of Alabama Birmingham, Birmingham, AL · Center for Esophageal Diseases and Swallowing, Division of Gastroenterology and Hepatology, University of North Carolina Chapel Hill, Chapel Hill, NC · Division of Gastroenterology and Hepatology, University of Colorado Anschutz Medical Campus, Aurora, CO · Barrett’s Esophagus Unit, Division of Gastroenterology and Hepatology, Mayo Clinic, Scottsdale, AZ USA
Barrett's esophagus dysplasia grading suffers substantial inter-observer variability, particularly for low-grade dysplasia, complicating clinical decision-making. We conducted a retrospective multi-institutional diagnostic accuracy study of a foundation model-based deep learning system for dysplasia grading, using 969 H&E-stained whole slide images from four institutions. Patch-level classifiers trained on expert annotations identified diagnostically relevant regions, followed by attribute-aware multiple instance learning for slide-level classification as non-dysplastic Barrett's esophagus (NDBE), low-grade dysplasia, or high-grade dysplasia. On a held-out test set (n = 130), macro-averaged AUC was 0.96 (95% CI 0.93--0.98). For binary dysplasia detection, sensitivity was 98% (80/82) and specificity 81% (39/48), with a negative likelihood ratio of 0.030 and quadratic-weighted \kap{} of 0.83 against expert consensus. No high-grade dysplasia case was misclassified as NDBE. Performance was consistent across institutions without stain normalization, indicating that stain-robust foundation-model representations may remove the site-specific preprocessing that has constrained prior systems to institution-specific deployment.
Figures & tables
Figure 1: Two-stage deep learning framework for Barrett’s esophagus dysplasia grading. (a) Stage 1: Patch-level classifier. Annotated Mayo Clinic slides were tiled into overlapping patches, embedded using the frozen Midnight-12k foundation model, and classified by four MLP classifiers (NDBE, dysplasia, LGD, HGD vs. all) to assign each patch a final category. (b) Stage 2: Slide-level classifier. Patches from each whole-slide image were embedded and scored by the frozen Stage 1 classifiers, then sampled into a 1000-patch bag per slide using a pre-specified class distribution. The bag was input to AttriMIL, which computes class-specific attention (A) and instance-level scores (P) to generate attribute scores (S), aggregated and passed through softmax to yield the final slide-level prediction (NDBE, LGD, or HGD).Snowflakes denote frozen components (weights held fixed, not updated during training); flames denote trainable components (weights updated during training) BE: Barrett’s esophagus; NDBE: non-dysplastic BE; LGD: low-grade dysplasia; HGD: high-grade dysplasia; MIL: multiple instance learning; MLP: Multilayer Perceptron
Table 2: Model Performance on Test Set . Values are reported with 95% confidence intervals. Overall AUC was 0.96 (95% CI: 0.93, 0.98). AUC: area under the receiver operating characteristic curve; NDBE: Non-dysplastic Barrett’s Esophagus; LGD: Low-grade Dysplasia; HGD: High-grade Dysplasia.
Predicted NDBE
Predicted LGD
Predicted HGD
Total
True NDBE
39 (81.2%)
6 (12.5%)
3 (6.2%)
48 (100%)
True LGD
2 (4.4%)
38 (84.4%)
5 (11.1%)
45 (100%)
True HGD
0
4 (10.8%)
33 (89.2%)
37 (100%)
Table 3: Confusion Matrix Showing Model Predictions Versus Expert Pathologist Consensus. The model assigned the same dysplasia grade as expert consensus in 110 of 130 cases (84.6%), corresponding to a quadratic-weighted κ of 0.83 (95% CI: 0.72, 0.91) and unweighted κ of 0.77 (95% CI: 0.67, 0.86). Of the 20 discordant cases, 14 (10.8% of all cases) were overcalled (orange) and 6 (4.6%) were undercalled (red) relative to expert consensus. NDBE: Non-dysplastic Barrett’s Esophagus; LGD: Low-grade Dysplasia; HGD: High-grade Dysplasia.
Institution
N Slides
Class Distribution (NDBE/LGD/HGD)
AUC (95% CI)
F1 Score (95% CI)
Accuracy (95% CI)
Mayo Clinic
68
19/30/19
0.96 (0.93, 0.99)
0.87 (0.78, 0.94)
0.87 (0.78, 0.94)
Baylor
21
11/7/3
0.94 (0.85, 1.00)
0.68 (0.44, 0.88)
0.71 (0.52, 0.90)
OHSU
22
7/5/10
0.96 (0.89, 1.00)
0.84 (0.64, 1.00)
0.86 (0.73, 1.00)
UAB
19
11/3/5
0.96 (0.87, 1.00)
0.86 (0.60, 1.00)
0.89 (0.74, 1.00)
Table 4: Model Performance Across Four Medical Institutions. Values are reported with 95% confidence intervals. Accuracy compared across institutions by Fisher’s exact test (p = 0.34); predicted probability for the true class compared by Kruskal-Wallis test (p = 0.42). NDBE: Non-dysplastic Barrett’s Esophagus; LGD: Low-grade Dysplasia; HGD: High-grade Dysplasia; OHSU: Oregon Health & Science University; UAB: University of Alabama at Birmingham.
Figure 2: Attention map visualization for correctly classified cases. Each column represents a slide with multiple tissue fragments from serial sections. Solid black outlines indicate regions annotated by pathologists as containing the highest dysplasia grade. Dashed black outlines indicate corresponding regions on adjacent tissue fragments. Color overlay shows the top 20 patches with highest attribute scores for each class: blue (NDBE), orange (LGD), red (HGD). High-attention regions demonstrate qualitative overlap with pathologist-annotated dysplastic areas.
Mayo Clinic
Baylor
OHSU
UAB
N
531
169
151
118
Age, mean (SD)
62.4 (13.7)
66.6 (11.9)
68.4 (9.4)
63.9 (11.8)
Male sex, %
71.4 %
90.5 %
87.4 %
73.7 %
BE length, cm, mean (SD)
5.45 (4.0)
9.2 (5.9)
7.0 (3.9)
5.6 (4.2)
Table S1: Patient Demographics and Endoscopic Findings by Institution.Values are presented as mean (standard deviation) for continuous variables and percentage male for gender. BE, Barrett’s esophagus; OHSU, Oregon Health & Science University; UAB, University of Alabama at Birmingham.
Figure S1: Correctly classified non-dysplastic Barrett’s esophagus. The model assigned NDBE, in agreement with expert consensus.
Figure S2: Misclassified non-dysplastic Barrett’s esophagus. Expert consensus was NDBE; the model predicted HGD.
Figure S3: Correctly classified LGD. The model assigned LGD, in agreement with expert consensus.
Figure S4: Misclassified LGD. Expert consensus was LGD; the model predicted HGD.
Figure S5: Correctly classified HGD. The model assigned HGD, in agreement with expert consensus.
Figure S6: Misclassified HGD. Expert consensus was HGD; the model predicted LGD.
Department of Computer Engineering, Automation and Robotics, CITIC-UGR, University of Granada, Granada, 18071, Spain · Hospital Universitario Clínico San Cecilio, Granada, 18016, Spain · Department of Applied Mathematics, University of Granada, Granada, 18071, Spain