[Paper Review] BEDS-Bench: Behavior of EHR-models under Distributional Shift--A Benchmark
BEDS-Bench is a benchmark for evaluating the behavior of EHR-based machine learning models under distributional shift, using two open EHR datasets to create diverse out-of-distribution (OOD) settings. The study reveals that all evaluated models exhibit poor generalization and calibration under OOD conditions, highlighting a critical need for improved robustness in real-world clinical deployment.
Machine learning has recently demonstrated impressive progress in predictive accuracy across a wide array of tasks. Most ML approaches focus on generalization performance on unseen data that are similar to the training data (In-Distribution, or IND). However, real world applications and deployments of ML rarely enjoy the comfort of encountering examples that are always IND. In such situations, most ML models commonly display erratic behavior on Out-of-Distribution (OOD) examples, such as assigning high confidence to wrong predictions, or vice-versa. Implications of such unusual model behavior are further exacerbated in the healthcare setting, where patient health can potentially be put at risk. It is crucial to study the behavior and robustness properties of models under distributional shift, understand common failure modes, and take mitigation steps before the model is deployed. Having a benchmark that shines light upon these aspects of a model is a first and necessary step in addressing the issue. Recent work and interest in increasing model robustness in OOD settings have focused more on image modality, while the Electronic Health Record (EHR) modality is still largely under-explored. We aim to bridge this gap by releasing BEDS-Bench, a benchmark for quantifying the behavior of ML models over EHR data under OOD settings. We use two open access, de-identified EHR datasets to construct several OOD data settings to run tests on, and measure relevant metrics that characterize crucial aspects of a model's OOD behavior. We evaluate several learning algorithms under BEDS-Bench and find that all of them show poor generalization performance under distributional shift in general. Our results highlight the need and the potential to improve robustness of EHR models under distributional shift, and BEDS-Bench provides one way to measure progress towards that goal.
Motivation & Objective
- To address the lack of benchmarks for evaluating EHR model performance under distributional shift, particularly in real-world clinical deployment scenarios.
- To quantify how EHR models behave when tested on data that differs significantly from training data distributions.
- To identify common failure modes in model calibration and confidence estimation under OOD conditions.
- To provide a standardized evaluation framework for measuring and comparing robustness of EHR models across diverse OOD settings.
- To catalyze research into improving model reliability and safety in clinical AI applications.
Proposed method
- The benchmark uses two de-identified, open-access EHR datasets to construct multiple OOD data settings by manipulating patient demographics, clinical conditions, and temporal data windows.
- It evaluates models across multiple clinical prediction tasks, including disease onset prediction and mortality risk estimation, using consistent time-to-event definitions.
- OOD detection is assessed using metrics like OOD-AUC, ECE (Expected Calibration Error), and confidence calibration, with confidence measured via predictive entropy for single-prediction models.
- The benchmark includes both in-distribution (IND) and OOD data splits, with OOD data derived from different patient populations, time periods, or health system sites.
- Models are evaluated on their ability to assign lower confidence (higher uncertainty) to OOD examples, with a focus on calibration and discrimination performance.
- The framework supports reproducible evaluation and includes code release at https://github.com/Google-Health/records-research/tree/master/beds-bench.
Experimental results
Research questions
- RQ1How do EHR-based machine learning models perform when tested on data that is distributionally shifted from the training data?
- RQ2To what extent do models maintain proper calibration and uncertainty estimation on OOD examples in real-world EHR settings?
- RQ3Which model architectures or training strategies demonstrate better robustness to distributional shift in EHR data?
- RQ4How do common confidence estimation methods (e.g., entropy) perform under class imbalance and OOD detection scenarios in EHRs?
- RQ5Can existing OOD detection metrics like OOD-AUC and ECE reliably capture model behavior under distributional shift in clinical tabular data?
Key findings
- All evaluated EHR models, including those designed for OOD robustness, show poor generalization performance under distributional shift across multiple OOD settings.
- No single model architecture consistently outperforms others across all OOD scenarios, indicating no clear solution for robustness in EHR modeling.
- Models frequently assign high confidence to OOD predictions, even when those predictions are incorrect, indicating poor uncertainty calibration.
- The OOD-AUC metric alone is insufficient and potentially misleading under class imbalance, as it may reward models that assign high confidence to OOD examples if they are misclassified as positive.
- Expected Calibration Error (ECE) and confidence calibration remain strong indicators of model reliability, but all models tested exhibit significant miscalibration under OOD conditions.
- The study confirms that current EHR models are not reliably detectable as OOD, posing clinical risks when deployed in real-world settings with distributional shifts.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.