Skip to content

A machine-learning based framework for predicting COVID-19 diagnosis

Notifications You must be signed in to change notification settings

Huang-lab/covid19-diagnosis-prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

covid19-diagnosis-prediction

The global surge in COVID-19 cases underscores the need for fast, scalable, and reliable testing. Current COVID-19 diagnostic tests are limited by turnaround time, limited availability, or occasional false findings. Here, we developed a machine learning-based framework for predicting individual COVID-19 positive diagnosis relying only on readily-available baseline data, including patient demographics, comorbidities, and common lab values. Leveraging a cohort of 31,739 adults within an academic health system, we trained and tested multiple types of machine learning models, achieving an area under the curve of 0.75. Feature importance analyses highlighted serum calcium levels, temperature, age, lymphocyte count, smoking, hemoglobin levels, aspartate aminotransferase levels, and oxygen saturation as key predictors. Additionally, we developed a single decision tree model that provided an operable method for stratifying sub-populations. Overall, this study provides a proof-of-concept that COVID-19 diagnosis prediction models can be developed using only baseline data. The resulting prediction can complement existing tests to enhance screening and pandemic containment workflows.

Citation

Zhang, J., Jun, T., Frank, J. et al. Prediction of individual COVID-19 diagnosis using baseline demographics and lab data. Sci Rep 11, 13913 (2021). https://doi.org/10.1038/s41598-021-93126-7

Prerequisites

  • python>=3.7.6
  • scikit-learn==0.22.2
  • graphviz==0.10.1
  • numpy==1.18.5
  • pandas==1.1.3
  • scipy==1.4.1
  • matplotlib==3.2.2
  • seaborn==0.11.0
  • eli5==0.10.1 (optional)

Usage

analysis

COVID_Status_Prediction_Analysis_and_Plots.ipynb

Main python notebook for data analysis, machine learning model development + hyperparameter optimization, and figure visualization.

COVID_Antibody_Analysis.ipynb

Python notebook for COVID-19 antibody test results analysis (not included in main study). Will update when more antibody data becomes available.

data

Mount Sinai Data Warehouse: 31,739 adult patients with RT-PCR test results up to June 2nd, 2020

doc

figures

Feature importances plots, ROC curves, probability distribution, and simple decision tree.

About

A machine-learning based framework for predicting COVID-19 diagnosis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published