Abstract
One major impediment to the wider use of deep learning for clinical decision making is the difficulty of assigning a level of confidence to model predictions. Currently, deep Bayesian neural networks and sparse Gaussian processes are the main two scalable uncertainty estimation methods. However, deep Bayesian neural network suffers from lack of expressiveness, and more expressive models such as deep kernel learning, which is an extension of sparse Gaussian process, captures only the uncertainty from the higher level latent space. Therefore, the deep learning model under it lacks interpretability and ignores uncertainty from the raw data. In this paper, we merge features of the deep Bayesian learning framework with deep kernel learning to leverage the strengths of both methods for more comprehensive uncertainty estimation. Through a series of experiments on predicting the first incidence of heart failure, diabetes and depression applied to large-scale electronic medical records, we demonstrate that our method is better at capturing uncertainty than both Gaussian processes and deep Bayesian neural networks in terms of indicating data insufficiency and distinguishing true positive and false positive predictions, with a comparable generalisation performance. Furthermore, by assessing the accuracy and area under the receiver operating characteristic curve over the predictive probability, we show that our method is less susceptible to making overconfident predictions, especially for the minority class in imbalanced datasets. Finally, we demonstrate how uncertainty information derived by the model can inform risk factor analysis towards model interpretability.
Introduction
Deep learning is transforming medicine, but it faces a significant "confidence" problem. Most models provide "point predictions"—single probability scores—without quantifying their own uncertainty. In clinical settings, overconfident but incorrect predictions can lead to unnecessary treatments or missed diagnoses. Existing methods like Bayesian Neural Networks (BNNs) and Gaussian Processes (GPs) have trade-offs: BNNs capture uncertainty during feature extraction but lack expressiveness, while GPs (and their Deep Kernel Learning extensions) are expressive but often ignore uncertainty in the raw data processing. This paper introduces Deep Bayesian Gaussian Processes (DBGP) to capture uncertainty hierarchically, from initial embeddings to final diagnosis.
Methods
The DBGP architecture combines a transformer-based feature extractor with a scalable Gaussian Process classifier to provide a "best of both worlds" approach to clinical prediction.
Model Architecture
The model utilizes BEHRT (a BERT-based transformer) to process sequential medical records, including diagnoses, medications, and age. A key innovation is treating the weights in the embedding layer as stochastic distributions (Bayesian embeddings), allowing uncertainty to flow from the raw data input. For classification, the model employs KISS-GP (Kernel Interpolation for Scalable Structured Gaussian Processes), which allows the model to scale linearly with the number of data points while maintaining the mathematical rigor of GPs.
Dataset and Task
The study utilizes the Clinical Practice Research Datalink (CPRD), a longitudinal EHR dataset covering 42 million patients in the UK. The model was trained to predict the first incidence of Heart Failure (HF), Diabetes, and Depression within a six-month window following the last recorded visit.
Results and Insights
DBGP achieved state-of-the-art performance, with an AUROC of approximately 0.94 for Heart Failure prediction. More importantly, it demonstrated superior calibration and uncertainty estimation compared to baseline models.
Hierarchical Uncertainty and Minority Class Robustness
By incorporating Bayesian embeddings, the model captures a more comprehensive "predictive coverage" than standard Deep Kernel Learning (DKL). This hierarchical approach is particularly effective for imbalanced datasets, where standard models often become overconfident in negative predictions for the minority class. DBGP proved more robust at penalizing such overconfidence, providing a more reliable indicator of when the model might be wrong.
Interpretability through Entropy
The authors found that the entropy of the embeddings correlates with clinical risk. Low-entropy (high certainty) codes were strongly associated with target diseases (e.g., diuretics for heart failure), while high-entropy codes represented more contextually ambiguous information. This provides a novel mechanism for clinicians to interpret model behavior by identifying which features the model is most certain about.
Conclusion
Deep Bayesian Gaussian Processes offer a scalable and expressive framework for clinical uncertainty estimation. By merging Bayesian deep learning with Gaussian processes, the model provides reliable confidence scores that can distinguish between true and false positives more effectively than baseline methods. Future work will address the computational overhead of Monte Carlo sampling and explore the transition from association to causal inference in risk factor analysis.
Summary updated