Abstract
In medicine, both ethical and monetary costs of incorrect predictions can be significant, and the complexity of the problems often necessitates increasingly complex models. Recent work has shown that changing just the random seed is enough for otherwise well-tuned deep neural networks to vary in their individual predicted probabilities. In light of this, we investigate the role of model uncertainty methods in the medical domain. Using RNN ensembles and various Bayesian RNNs, we show that population-level metrics, such as AUC-PR, AUC-ROC, log-likelihood, and calibration error, do not capture model uncertainty. Meanwhile, the presence of significant variability in patient-specific predictions and optimal decisions motivates the need for capturing model uncertainty. Understanding the uncertainty for individual patients is an area with clear clinical impact, such as determining when a model decision is likely to be brittle. We further show that RNNs with only Bayesian embeddings can be a more efficient way to capture model uncertainty compared to ensembles, and we analyze how model uncertainty is impacted across individual input features and patient subgroups.
Introduction
In clinical settings, the cost of a wrong prediction can be a human life. While most state-of-the-art medical AI models focus on "data uncertainty" (the inherent noise in medical records), they often ignore "model uncertainty"—the ambiguity in the model's own parameters. A startling reality in deep learning is that training an ensemble of models that appear identical on paper (sharing high accuracy and calibration scores) can still lead to significant disagreement on a specific patient’s mortality risk. If one model predicts a 20% risk and another predicts 60%, an average prediction of 40% hides the fact that the system is fundamentally brittle. This research explores how to quantify this disagreement and why it matters for clinical decision-making.
Methodology
The researchers compared two primary ways to capture model uncertainty using Recurrent Neural Networks (RNNs) on the MIMIC-III and eICU Collaborative Research Databases:
- Deep Ensembles: Training 200 separate deterministic models, varying only the random seed. This serves as the "gold standard" for uncertainty but is computationally expensive.
- Bayesian RNNs: These models treat weights as probability distributions rather than fixed values. The authors tested variants including Bayesian Output/Hidden layers, Fully Bayesian architectures, and Bayesian Embeddings, where only the input feature representations are stochastic.
Training was conducted using Variational Inference, aiming to balance predictive power with the ability to signal when the model is "unsure."
Key Insights and Results
Aggregate Metrics are Deceptive
Models with nearly identical dataset-level AUC-ROC and calibration can still exhibit a spread of up to 57.5% in predicted probability for a single patient. Standard performance metrics mask this underlying model uncertainty.
As shown in the figure above, the Bernoulli probability parameter for a single patient can span a wide range (e.g., 0.2 to 0.6), indicating that the "optimal" decision is actually a random variable. For some patients, the ensemble might be split 50/50 on the best course of action.
The "Bayesian Embedding" Efficiency
Interestingly, making the entire RNN Bayesian was not necessary. Models with only Bayesian embeddings performed as well as full ensembles while being significantly more memory-efficient. On the MIMIC-III mortality task, the Bayesian Embeddings model achieved a Test AUC-PR of 0.3977, slightly outperforming the Deterministic Ensemble (0.3921) despite using a fraction of the parameters.
Demographic and Feature Trends
Uncertainty is not distributed equally across populations. It increases monotonically with age; older patients, who have higher mortality rates, also trigger higher model disagreement. Furthermore, by analyzing the entropy of specific medical codes, the researchers found that rare words or specific clinical notes (like "anesthesiologist" or "labwork") naturally carry higher model uncertainty than common terms.
Conclusion
While all models remained well-calibrated (ECE < 0.03), only the Bayesian and ensemble approaches provided the necessary "disagreement" metrics to flag brittle decisions. Bayesian RNNs, particularly those utilizing Bayesian embeddings, offer a viable path for real-world deployment by providing these metrics within a single, memory-efficient model. Future work will focus on developing clinically-relevant cost functions and exploring methods to actively reduce model uncertainty through targeted data collection.
Summary updated