Abstract
Deep learning models for medical imaging typically rely solely on pixel data, ignoring the rich clinical context available in Electronic Health Records (EHRs). We present Variational Knowledge Distillation (VKD), a framework that utilizes EHRs as privileged information during training to enhance image-based disease classification. By minimizing the Kullback-Leibler divergence between an image-based prior and an EHR-based posterior in a latent space, the model learns to extract more clinically relevant visual features. At inference, the model operates using only the X-ray image. Experimental results on MIMIC-CXR, OpenI, and Chest X-ray14 datasets demonstrate that VKD consistently achieves state-of-the-art performance, with significant improvements in AUC across various pathologies.
Introduction
Radiologists do not interpret medical images in isolation; they leverage a patient’s clinical history to guide their diagnosis. However, most automated systems are restricted to image data. While integrating EHRs into models is beneficial, it creates a dependency on text availability at inference time, which is often impractical in fast-paced clinical workflows. This paper addresses this challenge by proposing a method to "distill" clinical wisdom from text-based EHRs into an image-only classifier during the training phase.
Methods
The proposed VKD framework is built upon a conditional latent variable model. During training, the system processes paired X-ray images ($x_I$) and EHR text ($x_T$). The architecture employs a DenseNet-121 backbone for images and ClinicalBERT for text.
- Latent Representation: Images are mapped to a latent space $z_I$.
- Knowledge Distillation: A variational posterior $q(z_T|x_T)$ is derived from the EHR. The model minimizes the KL divergence between the image-based prior $p(z_I|x_I)$ and this posterior, effectively teaching the image encoder to mimic the information density of the clinical report.
- Information Maximization: To ensure the distilled features are diagnostically relevant, the framework maximizes the mutual information between the latent space and the disease labels ($y$).
Results
The VKD framework was evaluated against several state-of-the-art baselines across three major benchmarks. The results indicate that incorporating EHR data during training significantly boosts the performance of the image-only model at test time.
- MIMIC-CXR: Average AUC improved from 0.807 (image-only) to 0.839.
- OpenI: Performance rose from 0.837 to 0.885 AUC.
- Chest X-ray14: Despite having no native EHRs, the model achieved an AUC of 0.872 by transferring knowledge learned from other datasets, significantly surpassing CheXNet (0.842).
Discussion and Conclusion
VKD effectively uses EHRs as a "teacher" to guide the image encoder toward relevant anatomical regions. Qualitative analysis confirms that VKD-trained models focus more precisely on pathology-specific regions compared to standard models. While the method shows robust performance, future work could address domain shifts between hospital systems and explore the integration of longitudinal patient data. Ultimately, VKD provides a powerful mechanism for incorporating multi-modal clinical knowledge into specialized unimodal inference tools.
Summary updated