Combining chest X-rays and electronic health record (EHR) data using machine learning to diagnose acute respiratory failure

Sarah Jabbour, David Fouhey, Ella Kazerooni, Jenna Wiens, Michael W. Sjoding · DOI

TL;DR

This paper presents a machine learning model that combines chest X-rays and electronic health records (EHR) to diagnose the causes of acute respiratory failure (ARF). The combined model significantly outperforms models using either modality alone, achieving performance comparable to or better than randomly selected physicians, offering a promising tool to aid clinicians in diagnosing ARF.

What Problem Does This Paper Address?

Accurately identifying the underlying cause of acute respiratory failure (ARF) is crucial for effective treatment, but it's a challenging task in clinical practice. Differentiating between common causes like pneumonia, heart failure, and COPD can be difficult, especially for older adults or those with multiple health conditions. Traditional diagnostic methods, such as lab tests and imaging, can be non-specific or hard to interpret. This paper aims to improve ARF diagnosis by leveraging machine learning to integrate information from two key sources: chest X-rays and electronic health records (EHR).

Methods

The researchers developed three types of machine learning models:

  • EHR Model: Utilized logistic regression and a two-layer neural network to predict ARF causes based solely on EHR data.
  • Image Model: Employed a Convolutional Neural Network (CNN) with a DenseNet-121 architecture, pre-trained on large chest X-ray datasets, to analyze chest radiographs.
  • Combined Model: This novel approach integrated features from both the EHR and chest X-ray models. Chest X-ray features were extracted using the pre-trained DenseNet-121, and these were then concatenated with EHR features before being fed into an output layer for prediction.

The models were trained and validated using a rigorous approach, including multiple data splits for robustness and comparison against randomly selected physician reviewers.

Datasets

  • Internal Cohort: Data from patients admitted to Michigan Medicine between 2017-2018.
  • External Cohort: Data from patients admitted to Beth Israel Deaconess Medical Center (BIDMC) between 2014-2016, utilizing the MIMIC-IV and MIMIC-CXR datasets.

Key Insights and Ideas

  • Synergy of Modalities: The most significant insight is that combining chest X-ray images with structured EHR data leads to a substantial improvement in diagnostic performance for ARF compared to using either data source alone. This highlights the complementary nature of these data types.
  • Physician-Level Performance: The combined model achieved performance comparable to or exceeding that of randomly selected physicians, which is remarkable given that physicians have access to a much broader range of clinical information (e.g., patient history, physical exam).
  • Focus on Relevant Features: Heatmap analysis revealed that the models focused on clinically relevant areas of the chest X-ray for diagnosis (e.g., lungs for pneumonia and COPD, heart for heart failure), suggesting the models are learning meaningful patterns rather than spurious correlations.
  • EHR Feature Importance: While some EHR features used by the model align with clinical intuition (e.g., oxygen saturation for pneumonia), others, particularly for COPD, were less directly interpretable, suggesting potential for discovering novel diagnostic markers.

Key Results

  • Improved AUROC: The combined model achieved a macro-average AUROC of 0.82 on the internal cohort, outperforming the image-only model (0.78) and the EHR-only model (0.77).
  • Consistent Performance: The combined model demonstrated consistent performance across both internal and external validation cohorts, indicating good generalizability.
  • Physician Comparison: For pneumonia, the combined model's AUROC was 0.74 compared to a physician's 0.75. For heart failure, it was 0.79 vs. 0.77, and for COPD, it was 0.89 vs. 0.78, showing similar or better performance.
  • Diagnostic Odds Ratio: The combined model showed significantly higher diagnostic odds ratios for all three conditions, particularly for COPD (37.00), indicating a stronger ability to differentiate between positive and negative cases.

Limitations and Future Work

  • Limited EHR Inputs: The study used a curated set of EHR inputs commonly collected across institutions, excluding variables related to patient treatment decisions, which might limit the model's ability to learn clinician actions.
  • Comorbidity Data: Comorbidity data was not included due to challenges in real-time capture and standardization across institutions, but future work should aim to incorporate this.
  • Model Architecture: The simple concatenation of EHR and image features might not fully leverage the potential for EHR data to guide image feature extraction early in the network.
  • Temporal Ordering: The model did not explicitly consider the temporal ordering of EHR data, potentially missing trends or diagnostic information.
  • Future Work: The authors emphasize the need for prospective model validation in clinical settings to assess its real-world utility and integration into clinical workflows. Further investigation into the identified COPD features and exploring more advanced model architectures are also suggested.

Summary updated

BibTeX
@article{jabbour2022combining,
  author = {Sarah Jabbour and David Fouhey and Ella Kazerooni and Jenna Wiens and Michael W. Sjoding},
  title = {{Combining chest X-rays and electronic health record (EHR) data using machine learning to diagnose acute respiratory failure}},
  journal = {J. Am. Medical Informatics Assoc.},
  year = {2022},
  doi = {10.1093/jamia/ocac030},
}
Figure