Giter Site home page Giter Site logo

covid19_gnn_public's Introduction

COVID19_GNN

GNN model for COVID19 Disease Trajectory Prediction

requirements

Place cohort file in data/raw

  • cohort_file -- all xrays with corresponding patient and hospitalization details, split (train/test/val) indicator and label (discharge from hsopital/ICU admission/mortality in 3 days of xray date) Place data files in data/raw/ehr
  • demo_file -- demographics.csv
  • cpt_file -- procedures.csv
  • icd_file -- conditions.csv Place xrays as png files with RADIOLOGY_ID from cohort file as file name in data/raw/xray/

preprocess

python3 code/preprocess.py --cohort_file file_name --demo_file file_name --cpt_file file_name --icd_file file_name

build test graph from scratch

python3 code/build_graph.py --sim_threshold 0.9 --label discharge_in_3days --edge_feats cpt

Use appropriate edge feature indicator (cpt/icd/demo) Use appropriate label indicator (discharge_in_3days/admitted_to_ICU_in_3days/expired_in_3days)

apply GNN

python3 code/apply_GNN.py --do_train true --graph_name graph_threshold_0.9_discharged_in_3days_xray_cpt.gml

Use appropriate label indicator (discharge_in_3days/admitted_to_ICU_in_3days/expired_in_3days)

Data

The model is designed for a cohort with following characteristics

  • patients with positive RT-PCR test for COVID-19
  • patients admitted to the hospital
  • patients undergoing regular chest x-ray examination (within 3 day intervals)

Labels must be decided on per-X-ray vased by counting number of days between an X-ray and discharge from hospital/admission into ICU/mortality.

code/source/graph_formation.csv lists ICD and CPT subgroups found to be frequenct in our dataset.

The cohort file expects one chest X-ray per row. Expected columns for data files are provided in sample csv files.

The model predicts a label for each chest X-ray. Essentially, predictions are made for a patient whenever they undergo a chest X-ray exam, thus building a predicitve trajectory.

covid19_gnn_public's People

Contributors

amaratariq avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.