Skip to content

SandraAdel/Lab-Based-ICU-Stay-Length-Prediction-for-Cardiac-Surgery-Patients

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Lab-Based-ICU-Stay-Length-Prediction-for-Cardiac-Surgery-Patients

Neither code nor data are provided due to confidentiality reasons

Project Intuition

Integrating some of the diverse data collected from patients during their hospital stay to roughly estimate the length of their stay in the intensive care unit for logistic reasons; primarily to plan patient flow through the unit as to efficiently accommodate as many patients as possible, with AICU having 20 beds and PICU having 12, in unit time with the effectivequality of healthcare already delivered.

image

Project Pipeline

image

Project Data

image

Data Validation

Data quality assessment is performed where missing, duplicated and outdated data are handled, and invalid or cases irrelevant to project scope are reported.

Samples

  • If a patient visit consists only of an Admission event followed by a Cancel Admission event

image

Sample Visit:

image

  • If a patient visit includes neither OR nor ICU as visited units

image

Sample Visit:

image

  • If a patient visit has a missing Transfer From/Transfer To event

image

Sample Visit:

image

• It is noticed that in records number 106065 and 106066: the patient was transferred from Cath to Pediatric ICU, while only after two seconds in records number 106067 and 106068: that the patient was transferred from Cath to CCU 1.
• In the next event, the patient transferred from CCU 1, which means that the records numbered 106065 & 106066 are wrong.

Data Cleaning

Cases irrelevant to project scope are eliminated and invalid cases are solved.

Samples

  • If a patient visit consists only of an Admission event followed by a Cancel Admission event

image

  • If a patient visit includes neither OR nor ICU as visited units

image

  • If a patient visit has a missing Transfer From/Transfer To event

image

Features Manipulation

Samples

  • Length of ICU Stay and Length of Hospital Stay features calculation

image

  • Lab names and results re-structuring
    • The tests data in the dataframe were re-structured so that each order for a patient in a visit is represented by a row, whose columns are the test names and the column values being the test result in that specific order, while keeping the 'MEDICALNO', 'VISITNO' and 'ORDERNO' constant.
    • Concerning that 'TESTTIME', since each test in the order is carried at a different time but they are all on the same day (most of the time), the time will be trimmed from the date before re-structuring.

image

Data Visualization

image

image

image

ML Pipeline

As explained before, since the project aim is to be used for logistic reasons, the problem was treated as regression to output the predicted number of days of a patient’s stay in the ICU in addition to a margin of error but not classification as in each class expresses a certain range of days.

image

Due to time limitation reasons in addition to strong consensus viewed in literature review of the problem, the machine learning algorithm used was XGB Regressor to determine the imputation method of best performance.

Project Output

image

About

No code is provided due to confidentiality reasons

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published