NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Accurate, Robust, and Scalable Machine Abstraction of Mayo Endoscopic Subscores from Colonoscopy Reports

Anna L. Silverman, Balu Bhasuran, Arman Mosenia, Fatema Yasini, Saransh Gupta, Taline Mardirossian, Rohan Narain, Justin L. Sewell, Atul J. Butte, Vivek A. RudrapatnamedRxiv 2022

Abstract

Electronic health records (EHR) are a vital source of real-world evidence, yet critical clinical measures like disease severity are often trapped in unstructured text. Manual abstraction is expensive and slow, while traditional Natural Language Processing (NLP) methods often face hurdles regarding accuracy, technical complexity, and environmental impact. This study compares various algorithmic approaches for classifying colonoscopy reports using the Mayo Endoscopic Subscore (MES) for ulcerative colitis. We found that automated machine learning (AutoML) provides a highly accurate (97%), efficient, and sustainable solution that generalizes well across different healthcare settings.

Introduction

In the management of Ulcerative Colitis (UC), the Mayo Endoscopic Subscore (MES)—a scale from 0 to 3—is a fundamental metric for assessing disease activity and treatment efficacy. However, this score is frequently documented only within the free-text narratives of colonoscopy reports rather than in structured data fields. To utilize this information for large-scale research or quality improvement, health systems typically rely on manual abstraction by experts, a process that is neither scalable nor cost-effective.

While modern NLP techniques like deep learning (e.g., BERT) offer a potential solution, they often require massive labeled datasets, specialized hardware, and significant engineering expertise. Furthermore, the high energy consumption of these models raises concerns about the carbon footprint of clinical AI. This research evaluates whether Automated Machine Learning (AutoML) can provide a more practical, robust, and ethical alternative for clinical text classification.

Methodology

Researchers compared four distinct algorithmic strategies to classify 4,604 colonoscopy reports from two California institutions: the University of California, San Francisco (UCSF) and Zuckerberg San Francisco General Hospital (ZSFG).

Algorithmic Approaches

  1. Rule-based (cTAKES): A traditional approach using predefined medical dictionaries and linguistic rules.
  2. Traditional Machine Learning (Scikit-learn): Bag-of-words models, such as Logistic Regression, focusing on word frequency.
  3. Deep Learning (BERT): Transformer-based models, including versions pre-trained on medical corpora (BioBERT and ClinicalBERT).
  4. AutoML (AutoGluon/mlJAR): Frameworks that automatically iterate through various model architectures (e.g., Random Forest, XGBoost) and hyperparameters to identify the optimal configuration.

The Classification Task

The task was executed in two stages. First, a binary classifier determined if a report was "scorable" (confirming the patient had UC and a complete colon examination). Second, an ordinal classifier assigned the specific MES (0, 1, 2, or 3) to the relevant reports. A "gold standard" dataset of 499 notes was manually annotated by two physicians to train and validate the models.

Results

Accuracy and Generalizability

AutoML emerged as the superior approach, achieving 98% accuracy in identifying scorable reports and 97% accuracy in assigning the correct Mayo subscore. In contrast, the rule-based cTAKES approach performed poorly, with only 22% accuracy, failing to outperform a simple null model.

Crucially, the AutoML models demonstrated strong generalizability. A binary classifier trained exclusively on UCSF data maintained 96% accuracy when applied to unseen data from ZSFG, a safety-net hospital with different patient demographics and documentation styles.

Efficiency and Sustainability

One of the most striking findings was the efficiency of the AutoML approach. While deep learning models often require specialized GPUs and extensive troubleshooting, the AutoML models were trained in just 4 hours on a standard laptop using only 12 lines of code.

From an environmental perspective, the carbon footprint of training the AutoML models was 24 times lower than fine-tuning ClinicalBERT and 5,000 times lower than training a BERT model from scratch. This makes AutoML a significantly "greener" choice for clinical institutions.

Discussion and Fairness

Beyond performance metrics, the study evaluated the models for algorithmic fairness. Errors were analyzed against gender and socioeconomic status (using the Area Deprivation Index), and no significant associations were found between these factors and model inaccuracies. This suggests that the AutoML approach is robust against common demographic biases often found in clinical data.

However, some limitations remain. The models showed a slight decrease in accuracy for the most severe disease states (MES 3) when training data was significantly reduced, likely due to the relative rarity of these cases in the dataset. Additionally, while the models are fair relative to the human annotators, they cannot correct for potential biases inherent in the original physician documentation.

Conclusion

AutoML represents a "Goldilocks" solution for clinical NLP: it provides the high accuracy of deep learning with the simplicity and low resource requirements of traditional machine learning. By enabling the accurate and sustainable abstraction of disease severity from unstructured notes, AutoML is poised to help learning health systems turn massive amounts of EHR data into actionable real-world evidence. The researchers have released their analytic code to encourage other institutions to adopt this efficient approach to clinical text classification.

Summary updated

BibTeX
@misc{silverman2022accurate,
  author = {Anna L. Silverman and Balu Bhasuran and Arman Mosenia and Fatema Yasini and Saransh Gupta and Taline Mardirossian and Rohan Narain and Justin L. Sewell and Atul J. Butte and Vivek A. Rudrapatna},
  title = {{Accurate, Robust, and Scalable Machine Abstraction of Mayo Endoscopic Subscores from Colonoscopy Reports}},
  year = {2022},
  doi = {10.1101/2022.06.19.22276606},
  howpublished = {medRxiv},
}
Figure