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.
Whether a ductal breast lesion is called atypical hyperplasia or low-grade carcinoma in situ increasingly determines surgery. However, slide-level classifiers built on pathology foundation models (PFMs) perform worst on these lesions. Using four PFMs, cross-validation on BRACS and preregistered hypotheses, we studied where the classification of atypia fails. Because slides are labelled with their most severe lesion, only 39% of the slides with annotated atypical ductal hyperplasia (ADH) were labelled ADH. Attention ranked the lesion high but rarely first, and showing the model only the lesion helped little, whereas classifiers trained per decision with lesion-level labels improved all four atypical boundaries. ADH regions inserted into benign slides raised the probability of malignancy more than that of atypia. In a hospital with pathologist-labelled single-subtype slides and in HISTAI, benign slides were scored closer to lesions and triage specificity fell from 0.48-0.53 to 0.00-0.07 and 0.22.
Nerea Hernandez, Luis J. Herrera, Cesar Ramirez +3
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
Sensitivity to staining variation remains a major barrier to deploying computational pathology (CPath) models as hematoxylin and eosin (H&E) staining varies across laboratories, requiring systematic assessment of how this variability affects model prediction. In this work, we developed a three-step protocol for evaluating robustness to H&E staining variation in CPath models. Step 1: Select reference staining conditions, Step 2: Characterize test set staining properties, Step 3: Apply CPath model(s) under simulated reference staining conditions. Here, we first created a new reference staining library based on the PLISM dataset. As an exemplary use case, we applied the protocol to assess the robustness properties of 306 microsatellite instability (MSI) classification models on the unseen SurGen colorectal cancer dataset (n=738), including 300 attention-based multiple instance learning models trained on the TCGA-COAD/READ datasets across three feature extractors (UNI2-h, H-Optimus-1, Virchow2), alongside six public MSI classification models. Classification performance was measured as AUC, and robustness as the min-max AUC range across four simulated staining conditions (low/high H&E intensity, low/high H&E color similarity). Across models and staining conditions, classification performance ranged from AUC 0.769-0.911 (Δ = 0.142). Robustness ranged from 0.007-0.079 (Δ = 0.072), and showed a weak inverse correlation with classification performance (Pearson r=-0.22, 95% CI [-0.34, -0.11]). Thus, we show that the proposed evaluation protocol enables robustness-informed CPath model selection and provides insight into performance shifts across H&E staining conditions, supporting the identification of operational ranges for reliable model deployment. Code is available at https://github.com/CTPLab/staining-robustness-evaluation .
Lydia A. Schönpflug, Nikki van den Berg, Sonali Andani +5
Multiple Instance Learning (MIL) has been widely applied in histopathology to classify Whole Slide Images (WSIs) with slide-level diagnoses. While the ground truth is established by expert pathologists, the slides can be difficult to diagnose for non-experts and lead to disagreements between the annotators. In this paper, we introduce the notion of Whole Slide Difficulty (WSD), based on the disagreement between an expert and a non-expert pathologist. We propose two different methods to leverage WSD, a multi-task approach and a weighted classification loss approach, and we apply them to Gleason grading of prostate cancer slides. Results show that integrating WSD during training consistently improves the classification performance across different feature encoders and MIL methods, particularly for higher Gleason grades (i.e. worse diagnosis).
Marie Arrivat, Rémy Peyret, Elsa Angelini +1
Primaa, Paris, France · LTCI, Telecom Paris, Institut Polytechnique de Paris, France