Machine learning model for monitoring in-hospital death risk of heart failure patient in intensive care unit
By building a machine learning model and using data in clinical databases for feature screening and model construction, the problem of low accuracy of the APACHE scoring system in predicting the risk of in-hospital death in patients with heart failure in the intensive care unit was solved, achieving higher prediction accuracy. and more accurate condition assessment.
Patent Information
- Application Number
- CN202410953637.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-01
AI Technical Summary
The existing APACHE scoring system has low accuracy in predicting the risk of in-hospital death in patients with heart failure in intensive care units and cannot accurately predict mortality.
A machine learning model was constructed to collect data from clinical databases, perform case screening, standardization processing, feature screening and model construction. Using algorithms such as LASSO analysis and random forest, a Windows application was developed to predict the patient's in-hospital death probability. and risk classification.
Compared with the APACHE scoring system, the machine learning model has higher prediction accuracy and provides the quantitative contribution of each variable in the prediction results, helping doctors to more accurately judge the patient's condition and formulate treatment plans.
Smart Images

Figure CN118737467A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of risk monitoring, and in particular to a machine learning model for monitoring the risk of in-hospital death of patients with heart failure in an intensive care unit. Background Art
[0002] As a degenerative chronic disease, heart failure cannot be completely cured. After treatment, the condition of heart failure patients often deteriorates repeatedly. At the beginning of acute deterioration of heart failure, since there is no nervous system in the heart to sense the deterioration, it is not discovered until the patient has serious symptoms such as dyspnea, and the myocardium is already severely damaged. At this time, when the patient is sent to the intensive care unit for monitoring and treatment, there is a certain risk of death. The existing APACHE (Acute Physiology and Chronic Health Evaluation) scoring system is a scoring tool commonly used in intensive care units (ICUs) to assess the severity of the patient's disease and predict mortality. It scores based on the patient's physiological parameters, age, previous health status and other factors to help doctors judge the patient's condition and formulate treatment plans, but the prediction accuracy of this scoring tool is low and cannot accurately predict mortality.
[0003] Therefore, there is an urgent need in this field for a technical solution and tool that can accurately monitor the risk of in-hospital mortality in patients with heart failure in the intensive care unit.
[0004] The information disclosed in this background technology section is only intended to enhance the understanding of the overall background of the invention and should not be regarded as an acknowledgment or any form of suggestion that the information constitutes the prior art already known to a person skilled in the art. Summary of the invention
[0005] The purpose of the present invention is to provide a technical solution and application program that can accurately monitor the risk of in-hospital death of patients with heart failure in an intensive care unit.
[0006] To achieve the above object, the present invention provides the following solutions:
[0007] A machine learning model for monitoring the risk of in-hospital mortality of patients with heart failure in an intensive care unit. The machine learning model is used to monitor the risk of in-hospital mortality of patients with heart failure in an intensive care unit.
[0008] The method for constructing the machine learning model includes:
[0009] Collect data from database;
[0010] Conduct case screening on the collected data;
[0011] Incorporate variables;
[0012] Standardize the data;
[0013] Partitioning of the data set;
[0014] Perform feature screening for machine learning models;
[0015] Build machine learning models and validate them;
[0016] Develop Windows applications for machine learning models.
[0017] Optionally, the method for constructing the machine learning model further includes:
[0018] Model feature interpretation, drawing decision curves, and statistical analysis.
[0019] Optionally, the database includes the clinical database EICU-CRD and MIMIC-IV.
[0020] Optionally, the case screening is specifically as follows: excluding patients with two or more ICU hospitalization records and / or suffering from end-stage heart failure, malignant tumors, cancer, aneurysms, pancreatitis, leukemia, sepsis, acute respiratory failure, aortic dissection, liver failure and lupus erythematosus, and selecting patients diagnosed with heart failure with an ICU hospitalization time of more than 4 hours and less than 28 days and only one ICU hospitalization record.
[0021] Optionally, a preprocessing step is also included, and the preprocessing includes:
[0022] For patients with multiple results for the same test item, the most recent test result was used, variables with a missing value ratio greater than 30% were removed, and multiple imputation was performed using the R package mice to fill in the missing values.
[0023] The included variables were used to compare the differences in variables between the two groups of in-hospital death and in-hospital survival in the clinical database eICU-CRD and MIMIC-IV, and the variables with significant differences between the two groups in the two data sets were selected.
[0024] The standardization process is specifically as follows:
[0025] For all included variables, for variables with a median ≥ 100, the logarithm with base 10 was taken for each variable value; for variables with a median ≥ 4 and < 100, the logarithm with base 2 was taken for each variable value; and for variables with a median < 4, the original value remained unchanged.
[0026] Optionally, the feature screening of the machine learning model includes:
[0027] The differences in each variable between the two groups of in-hospital death and in-hospital survival in the clinical databases eICU-CRD and MIMIC-IV were compared respectively, and the variables with significant differences between the two groups in the two data sets were selected. A part of the data from the two databases was selected to form a new data table for model construction and verification;
[0028] Optionally, the significant difference variables shared by the two groups in the two data sets include: Gender, Age, GCS-eyes opening, GCS-motor response, Heart Rate, non-invasive systolic blood pressure, non-invasive diastolic blood pressure, mean blood pressure, Respiratory Rate, Temperature, admission Weight, Anion Gap, Bicarbonate, Calcium, Chloride, Creatinine, Glucose, Magnesium, Potassium, Sodium, Hematocrit, Hemoglobin, INR (PT), MCH, MCHC, MCV, Platelet Count, RDW, RBC count, and WBC count.
[0029] LASSO analysis was used to further screen variables. A part of cases were extracted from non-fatal cases in the hospital and the in-hospital death cases to form a model data set. After multiple iterations, the model data set was randomly divided into a training set and a test set at a ratio of 8:2. The LASSO model was constructed with the training set data, and the predictive performance of the model was evaluated. The non-zero coefficient variables and the model data set with the best model verification performance were selected for subsequent model construction.
[0030] Optionally, the final model variables screened out by LASSO regression analysis include: Glasgow Coma Scale-eyes score (GCS-eyes), Glasgow Coma Scale-motor response score (GCS-motor), non-invasive systolic blood pressure (SBP), heart rate (heart_rate), age (age), anion gap (anion_gap), red blood cell count (RBC_count), sodium (sodium), creatinine (creatinine), calcium (calcium), international normalized rate (INR), mean hemoglobin concentration (MCHC), blood glucose (glucose), bicarbonate (bicarbonate), white blood cell count (WBC_count) and platelet count (platelet_count).
[0031] Optionally, the step of constructing a machine learning model and verifying the model is as follows:
[0032] The training set data and feature combination used to build the LASSO optimal model were used to build random forest model, support vector machine model, naive Bayes model, and XGBoost model. The test set data, external data set, and total data set divided by the LASSO model were used to verify the predictive performance of the above models. The performance of the models was evaluated from the area under the receiver operating curve, prediction accuracy, sensitivity, and specificity.
[0033] Optionally, the Windows application for developing the random forest model specifically includes:
[0034] Open the application, the window features include:
[0035] Display the exclusion criteria for the described machine learning model;
[0036] Display the names and units of the 16 variables included in the machine learning model;
[0037] Displays the data input columns corresponding to the 16 variables incorporated into the machine learning model;
[0038] Display the quantitative contributions (SHAP values) of 16 of the prediction results of the machine learning model;
[0039] Display the predicted probability of in-hospital death (The Predicted probability of in-hospital expired) by the machine learning model;
[0040] Displaying the risk level of the prediction results of the machine learning model;
[0041] Display the names and quantitative contribution values (SHAP values) of the five variables that contribute most to the positive prediction (in-hospital death) of the machine learning model (Top 5SHAP Values);
[0042] There are Predict and Refresh buttons displayed;
[0043] The Window application of the random forest model, when data is entered into the data frame and the Predict button is clicked, the predicted results including The Predicted probability of in-hospital expired, Risk level, SHAP Values and Top 5SHAP Values will be displayed in the corresponding positions in the window. When the Refresh button is clicked, the predicted results and the numbers in the data frame disappear so that the data of the next patient can be entered; prediction is made.
[0044] Compared with the prior art, the present invention has the following beneficial effects:
[0045] Compared with APACHE, which is used to assess the severity of a patient's disease and predict mortality, the machine learning model provided by the present invention for predicting the risk of death in patients with heart failure uses a machine learning model to predict the probability of in-hospital death of patients based on the patient's physiological parameters, age, laboratory indicators and other factors, which is more accurate than the APACHE score. This machine learning model application not only gives the probability of in-hospital death of patients, but also gives the quantitative contribution of each included variable in the prediction result. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0047] Figure 1 A flowchart of a method for constructing a machine learning model provided in an embodiment of the present invention.
[0048] Figure 2 A schematic diagram of a model building process provided by an embodiment of the present invention.
[0049] Figure 3 Confusion matrix heat map of the random forest model predicted external data and the total data set provided by the embodiment of the present invention.
[0050] Figure 4 A schematic diagram of the characteristics of the LASSO screening model provided in an embodiment of the present invention.
[0051] Figure 5 The ROC curve of the RF-model provided in the embodiment of the present invention for predicting in-hospital mortality of the training set data.
[0052] Figure 6 ROC curve of the RF-model predicted in-hospital mortality in the test data set provided by the embodiment of the present invention.
[0053] Figure 7 ROC curve of the RF-model provided in the embodiment of the present invention for predicting in-hospital mortality of an external dataset.
[0054] Figure 8 The ROC curve of the RF-model provided in the embodiment of the present invention for predicting in-hospital mortality in the total data set.
[0055] Fig. 9 A schematic diagram of a decision curve provided by an embodiment of the present invention.
[0056] Fig.10 A schematic diagram of the RF-Model application data input and prediction result interface provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0057] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0058] The purpose of the present invention is to provide a technical solution that can accurately monitor the risk of in-hospital death of patients with heart failure in an intensive care unit.
[0059] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0060] Embodiment 1:
[0061] This embodiment provides a machine learning model for monitoring the risk of in-hospital death in patients with heart failure in an intensive care unit, and the machine learning model is used to monitor the risk of in-hospital death in patients with heart failure in an intensive care unit. The machine learning model incorporates 16 variables: patient age, heart rate, systolic blood pressure, GCS-eyesOpening, GCS-motorResponse, white blood cell count, blood glucose, platelet count, bicarbonate, creatinine, sodium, total calcium, Anion_gap, mean corpuscular hemoglobin (MCHC), INR (International Normalized Ratio), and red blood cell count.
[0062] like Figure 2 The model building flowchart shown in the figure uses the RandomForestClassifier in the Python sklearn.ensemble library to build a random forest model (RF-model). The AUCs of the model verified on the training dataset, test dataset, external dataset, and total dataset are 1.0, 0.88, 0.95, and 0.96, respectively.
[0063] The accuracy, sensitivity and specificity of the prediction results obtained by external data validation were 0.918, 0.836 and 0.923 respectively. The accuracy, sensitivity and specificity of the prediction results obtained by RF-model validation using the total data set (eICU-CRD) were 0.816, 0.962 and 0.799 respectively. The RF-model can predict the patient's real-time mortality risk based on each test result. When the predicted risk is always greater than 0.5 or continues to rise above 0.5, it means that the patient's mortality risk is very high and needs to be paid enough attention.
[0064] like Figure 3 The confusion matrix heat map of the RF-model predicted external data and the total data set is shown. The horizontal axis is Reference, and the column where 0 represents the actual number of in-hospital survival cases, and 1 represents the actual number of in-hospital death cases; the vertical axis is Prediction, and the row where 0 represents the number of cases predicted to be in-hospital survival, and 1 represents the number of cases predicted to be in-hospital death.
[0065] like Figure 1 As shown, the method for constructing the machine learning model includes:
[0066] Collect data from multiple databases;
[0067] Conduct case screening on the collected data;
[0068] Incorporate variables;
[0069] Standardize the data;
[0070] Perform feature screening for machine learning models;
[0071] Build machine learning models and validate them.
[0072] Furthermore, the database includes the clinical databases eICU-CRD and MIMIC-IV.
[0073] eICU-CRD is a multi-center intensive care unit database covering more than 200,000 ICU admissions monitored by eICU projects across the United States [The eICU Collaborative Research Database, a freely available multi-center database for critical care research]. The information in the database has been de-identified and includes vital sign measurement data, care plan documents, acute physiology and chronic health status scoring system disease severity assessment data, diagnostic information, and laboratory test data.
[0074] MIMIC-IV is a public database derived from the electronic health records of Beth Israel Deaconess Medical Center. It covers rich clinical data of nearly 300,000 patients between 2008 and 2019. The available information includes patient demographic data, medical orders, diagnoses, surgeries, treatments, and laboratory test data.
[0075] The use of the above data has been officially authorized by PhysioNet, and a data use agreement has been signed: PhysioNet Credentialed Health Data Use Agreement 1.5.0.
[0076] Furthermore, Figure 2 The selection of the study population, variable screening, and the construction and optimization of the machine learning model are shown. Among the 190,287 ICU patients in eICU-CRD and MIMIC-IV, 52,239 patients with 2 or more ICU hospitalization records were first excluded. Further, according to the inclusion and exclusion criteria, 2,903 eligible MIMIC-IV heart failure cases were screened, including 189 in-hospital deaths; 4,025 EICU-CRD heart failure cases, including 418 in-hospital deaths.
[0077] Case screening specifically includes:
[0078] Inclusion criteria: patients diagnosed with heart failure with only one record of ICU hospitalization, with a length of stay in the ICU greater than 4 hours and less than 28 days.
[0079] Exclusion criteria: patients diagnosed with end stage heart failure, malignant neoplasm, cancer, aneurysm, pancreatitis, leukemia, sepsis, acute respiratory failure, aortic dissection, hepatic failure and lupus erythematosus were excluded. Patients with a hospital stay of less than 4 hours or more than 28 days in the ICU were excluded.
[0080] Furthermore, the included variables include: patient demographic information, such as age, gender, weight, etc., clinical data, such as blood pressure, coma index, heart rate, respiratory rate, blood oxygen saturation, etc., laboratory indicators, etc.
[0081] Furthermore, a pre-processing step is also included, and the pre-processing includes:
[0082] Data processing for model building and validation:
[0083] If there were multiple results for the same test item for the same patient, the most recent test result was used. Variables with a missing value ratio greater than 30% were removed. Multiple imputation was performed using the R package mice to fill in missing values.
[0084] Dynamic analysis data of treatment process:
[0085] For patients with five or more examination results for the same item in the MIMIC-IV database, the earliest two examination results and the last three examination results were taken to analyze the dynamic changes of this item during the patient's ICU treatment.
[0086] Furthermore, the data standardization process is specifically as follows:
[0087] In order to eliminate the influence of large numerical differences between different variables on the actual effect of the variables in the model due to dimensional differences, this study took the logarithm with base 10 for each value of all variables with a median ≥ 100, and took the logarithm with base 2 for each value of the variables with a median ≥ 4 and < 100.
[0088] Furthermore, the feature screening of the machine learning model includes:
[0089] Data processing, statistical analysis, feature screening, and machine learning model construction and validation were all implemented using the corresponding R packages. The corresponding functions in the glmnet, randomForest, e1071, rpart and xgboost packages were used to build and evaluate the models of LASSO, random forest, support vector machine, naive Bayes and XGBoost, respectively.
[0090] The differences of each variable between the two groups of in-hospital death and in-hospital survival in the two data sets were compared respectively, and the variables with significant differences between the two groups in the two data sets (shared significant variables, SS-Vars) were selected. SS-Vars were selected from the EICU-CRD and MIMIC-IV data to form a new data table for model construction and verification.
[0091] The eICU-CRD data were used to build the machine learning model, and the MIMIC-IV data were used as an external dataset to externally validate the model.
[0092] LASSO analysis was used to further screen variables. The eICU-CRD data included 418 in-hospital death (IHD) cases and 3607 in-hospital alive (IHA) cases. In order to balance the number of the two categories (IHD and IHA), 418 cases were randomly selected from the 3607 IHA cases to form the model data set (Model-dataset) with IHD, and 30 iterations were performed. The Model-dataset was randomly divided into a training set and a test set at a ratio of 8:2. The LASSO model was constructed using the cv.glm and glm functions in the glmnet package, and the prediction performance of the model was evaluated. The hyperparameter settings of the LASSO analysis are shown in table S1. The non-zero coefficient variables and Model-dataset with the best model verification performance were selected for subsequent model construction.
[0093] Furthermore, the construction of the machine learning model and verification thereof are specifically as follows:
[0094] The training set data and feature combination of the optimal LASSO model were used to build the random forest model, support vector machine model, naive Bayes model, and XGBoost model. The prediction performance of the above models was verified by the test set data divided by the LASSO model, the external data set (MIMIC-IV data set), and the total data set (eICU-CRD). The performance of the model was evaluated from the area under the receiver operating curve (AUC), prediction accuracy, sensitivity, and specificity.
[0095] Furthermore, the method for constructing the machine model also includes:
[0096] Model feature interpretation: Use the sv_importances function in the shapviz R package to interpret the importance of features in the XGBoost model. Use the sv_dependence function to visualize the relationship between feature values and prediction results, as well as the interaction between features and other features. Use the sv_waterfall function to visualize the feature values of each sample and the calculation process of the SHAP Value.
[0097] Drawing decision curves: Decision curve analysis (DCA) is a tool for evaluating the effectiveness of prediction models, diagnostic tests, etc. Use the rmda package in R to draw decision curves. First, organize the dataset to ensure that it contains the predicted probabilities and actual results of the XGBoost model, or the probability values and actual results predicted by APACHE. Then use the decision_curve function, with the predicted probabilities and actual results as input parameters, to generate decision curve objects for the random forest model, XGBoost model, acutephysiologyscore, and apachescore, respectively. Finally, use the plot_decision_curve function to visualize the decision curves.
[0098] Application development of random forest model: Use the RandomForestClassifier library in the sklearn.ensemble library in Python and the train dataset used to build the XGBoost model in R to build a Random Forest Classifier (RFC) model based on the Python programming language. Use the tkinter library to create a data input window and use math functions to process input variables that need to be logarithmically transformed. Use the RFC model to predict the processed input data and display the prediction results below the data input window. Use pyinstaller to package the above prediction model into an application that can be run on a Windows operating system computer.
[0099] Statistical analysis: For count data in groups or subgroups, frequencies (percentages) were used for description. For measurement data in groups or subgroups, the Shapiro-Wilk function in R language or the ks.test function in the stats package was first used to test whether the data conformed to the normal distribution, and the Lenvene function was used to test the homogeneity of variance between the two groups. If the data conformed to the normal distribution, the mean ± standard deviation was used for description; if it did not conform to the normal distribution, the median (first quartile, third quartile) was used for description. In the comparison of the difference between the two groups of measurement data, if the data conformed to the normal distribution and the variance was homogeneous, the Student's T test was used, otherwise the nonparametric Mann-Whitney U test was used. For the comparison of two or more groups of count data, when the sample size was greater than 40 and the expected frequency of each category was not less than 5, the chi-square test was used, otherwise the chi-square test with continuity correction or Fisher's exact test was used. When the P value was less than 0.05, it was considered to be statistically significant.
[0100] Results: LASSO analysis, complex models with too many variables, are not only prone to overfitting, but also affect the interpretability and applicability of the model. LASSO is a commonly used and reliable variable screening method. Using LASSO analysis, the variables for constructing the optimal and simplest model were further screened from 30 variables. Figure 4 A shows the process of LASSO optimizing model variables. When Log(λ) is approximately between -4.95 and -4.2, the best balance between model complexity and fitting effect is achieved, and the corresponding number of variables is 16 to 17. A model including 16 variables is selected, and the corresponding Log(λ) value is -4.919. The names of the 16 variables and their coefficients in the LASSO model are as follows Figure 4 As shown in B.
[0101] Figure 4 LASSO is used to screen model features. A) As the L1 regularization strength (λ) increases, the number of features with non-zero coefficients in the model gradually decreases, and the binomial deviation of the model also changes accordingly. When the binomial deviation reaches the minimum, the corresponding features can be used to build the simplest model. The number at the top indicates the number of features in the model. B) The coefficients of each feature variable in the simplest LASSO model. A coefficient less than 0 indicates a negative correlation with in-hospital death, and a coefficient greater than 0 indicates a positive correlation with in-hospital death.
[0102] Comparison of multiple models: Using the 16 variables and model-dataset determined by LASSO analysis, different machine learning algorithms were used to build models. The validation results of the models showed that the AUCs of the RF model, SVM model, Navie Bayes model, LASSO model and XGBoost model on the training dataset were 1.0, 0.95, 0.88, 0.87 and 1.0, respectively, and the AUCs on the test dataset were 0.88, 0.87, 0.88, 0.88 and 0.89, respectively, and the AUCs on the external dataset were 0.95, 0.96, 0.94, 0.93 and 0.94, respectively, and the AUCs on the EICU-CRD total dataset were 0.96, 0.90, 0.87, 0.86 and 0.93, respectively. Based on the above results, we excluded the SVM model, Navie Bayes model and LASSO model with relatively poor performance.
[0103] Furthermore, we evaluated the accuracy, sensitivity, and specificity of the RF model and the XGBoost model on the external dataset and the total dataset. The results showed that the accuracy of the two models on the external dataset was 0.918 and 0.903, the sensitivity was 0.836, and the specificity was 0.923 and 0.908. The accuracy of the two models on the total dataset was 0.816 and 0.809, the sensitivity was 0.962 and 0.919, and the specificity was 0.799 and 0.796. The above results show that the performance of the random forest model and the XGBoost model is very close, and the random forest model is slightly better.
[0104] The prediction performance of the machine learning model is much better than that of the APACHE system. The APACHE (Acute Physiology and Chronic Health Evaluation) scoring system is a commonly used scoring tool in the intensive care unit (ICU) to assess the severity of the patient's disease and predict mortality. It scores the patient's physiological parameters, age, previous health status and other factors to help doctors judge the patient's condition and formulate a treatment plan. In the EICU-CRD we included, 3561 samples had APACHES related data. ROC analysis of the acutephysiologyscore and apachescore provided in the EICU-CRD dataset showed that their AUCs for predicting in-hospital death were 0.76 and 0.78, respectively. The accuracy of acutephysiologyscore and apachescore for predicting in-hospital death were 0.676 and 0.728, the sensitivity were 0.668 and 0.732, and the specificity were 0.738 and 0.696, respectively. All prediction performance indicators were much lower than the random forest model and XGBoost model we constructed.
[0105] ML models can provide valuable reference for doctors’ decision making
[0106] Decision curve analysis was used to evaluate the performance of the random forest model and the XGBoost model in predicting the risk of in-hospital death in ICU patients with heart failure. By drawing the decision curve, the net benefit of the intervention under the threshold value of the model can be clearly seen.
[0107] The decision curve shows that, whether in the external data set or in the total data set, a higher net benefit can be obtained by starting the intervention at a lower threshold. As the intervention threshold increases, the net benefit gradually decreases. When the threshold is about 0.7 or above, the net benefit of the XGBoost model drops to 0, while the RF model still has a certain net benefit. For the external data set, when the threshold is around 0.08, intervention measures can benefit most patients who die in the hospital. For the total data set (eICU-CRD), when the threshold is around 0.12, intervention measures can benefit most patients who die in the hospital. In the entire threshold range, the net benefits of making decisions based on the RF model and XGBoost prediction results are much higher than the net benefits of making decisions based on APACHES, and the net benefit of the RF model is slightly higher than that of the XGBoost model.
[0108] Through decision curve analysis, we further demonstrated that the RF model and XGBoost model have high performance in predicting disease risk and can achieve the maximum net benefit at the appropriate treatment threshold. This provides a valuable reference for clinicians when making treatment decisions.
[0109] Feature importance analysis: The importance of a variable in the model not only reflects its contribution to the model's predictive performance, but also reflects the impact of its changes on prognosis. In the XGBoost model, the results of feature importance analysis showed that the top ten important variables were non-invasive systolic blood pressure, WBC, heart rate, age, platelets count, blood glucose, GSC-eyes opening, creatinine, sodium, and motor. In the RF model, the top ten important variables were non-invasive systolic blood pressure, WBC, heart rate, creatinine, platelets count, blood glucose, GSC-eyes opening, age, RBCcount, and bicarbonate. Non-invasive systolic blood pressure, WBC, and heart rate ranked in the top three in the feature importance of both models, indicating that they are important references for evaluating the treatment effect of patients. Decreased non-invasive systolic blood pressure and heart rate and increased WBC are important risk factors for in-hospital death. However, the interaction between variables makes it impossible to accurately judge the risk of in-hospital death of patients from the changes of a single or a few variables.
[0110] Application of random forest prediction model: Successfully developed an RF prediction model application that can run on Windows system. The interface after opening the program is as follows Fig.10 As shown, the exclusion criteria are displayed above the data input box. After entering the data, click the Predict button, and the probability and risk level of the predicted in-hospital death will be displayed below it. When it is greater than the probability threshold of 0.5, it is judged as high risk, and when it is ≤0.5, it is judged as low risk. The quantitative contribution (SHAP value) of each variable in the prediction result is displayed on the right side of the data input box, and the top 5 variable names and their quantitative contribution values (SHAP values) that contribute the most to the positive prediction result (in-hospital death) are displayed at the bottom. Click the Refresh button to clear the data in the input box and enter the information of the next patient for prediction.
[0111] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0112] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A machine learning model for monitoring the risk of in-hospital mortality in patients with heart failure in an intensive care unit, characterized in that: The machine learning model is used to monitor the risk of in-hospital mortality in patients with heart failure in the intensive care unit.
2. The machine learning model according to claim 1, characterized in that The method for constructing the machine learning model includes: Collect data from multiple databases; Conduct case screening on the collected data; Incorporate variables; Standardize the data; Partitioning of the data set; Perform feature screening for machine learning models; Build machine learning models and validate them; Develop Windows applications for machine learning models.
3. The machine learning model according to claim 2, characterized in that The databases include the clinical databases eICU-CRD and MIMIC-IV.
4. The machine learning model according to claim 2, characterized in that The case screening is specifically as follows: patients with two or more ICU hospitalization records and / or suffering from end-stage heart failure, malignant tumors, cancer, aneurysm, pancreatitis, leukemia, sepsis, acute respiratory failure, aortic dissection, liver failure and lupus erythematosus are excluded, and patients diagnosed with heart failure with an ICU hospitalization time of more than 4 hours and less than 28 days and only one ICU hospitalization record are selected.
5. The machine learning model according to claim 2, characterized in that The included variables include: The differences in each variable between the two groups of in-hospital death and in-hospital survival in the clinical databases eICU-CRD and MIMIC-IV were compared, and the variables with significant differences between the two groups in both data sets were selected.
6. The machine learning model according to claim 2, characterized in that The data standardization process of the included variables is specifically as follows: For all included variables, for variables with a median ≥ 100, the logarithm with base 10 was taken for each variable value; for variables with a median ≥ 4 and < 100, the logarithm with base 2 was taken for each variable value; and for variables with a median < 4, the original value remained unchanged.
7. The machine learning model according to claim 2, characterized in that The division of the data set includes: A number of cases were randomly selected from the in-hospital survival cases of eICU-CRD, and combined with all the in-hospital death cases of eICU-CRD to form a model data set (model-data), so that the ratio of in-hospital survival cases to in-hospital death cases in the model-data was 1:1; The model data set is randomly divided into a training set (training-data) and a test set (test-data) in a ratio of 8:2; The external data set (external-data) is all samples in MIMIC-IV, which is used for external validation.
8. The machine learning model according to claim 6, characterized in that The feature screening is specifically as follows: The LASSO (Least Absolute Shrinkage and Selection Operator) regression model is trained using the training-data, and the performance of the LASSO model is verified using the training-data and the test-data respectively. The non-zero coefficient variables in the LASSO model with the best performance are the feature variables finally included in the construction of the machine learning model. The features that were ultimately incorporated into the machine learning model construction include: Glasgow Coma Scale-eyes score (GCS-eyes), Glasgow Coma Scale-motor response score (GCS-motor), non-invasive systolic blood pressure (SBP), heart rate (heart_rate), age (age), anion gap (anion_gap), red blood cell count (RBC_count), sodium (sodium), creatinine (creatinine), calcium (calcium), international normalized rate (INR), mean hemoglobin concentration (MCHC), blood glucose (glucose), bicarbonate (bicarbonate), white blood cell count (WBC_count) and platelet count (platelet_count); Parameters used to evaluate model performance included area under the receiver operating curve, prediction accuracy, sensitivity, and specificity.
9. The machine learning model according to claim 8, characterized in that The construction of the machine learning model and verification thereof are specifically as follows: The training-data used to construct the optimal LASSO model was used to train a random forest machine learning model (RF-model) using Random Forest Classifier, and the training-data, test-data and external-data were used to perform internal and external validation on the model, respectively.
10. The machine learning model according to claim 2, characterized in that The Windows application for developing the random forest model specifically includes: Open the application, the window features include: Display the exclusion criteria for the described machine learning model; Display the names and units of the 16 variables included in the machine learning model; Display the data input columns corresponding to the 16 variables incorporated into the machine learning model; Display the quantitative contribution (SHAP value) of each of the 16 variables in the prediction results of the machine learning model; Display the predicted probability of in-hospital death (The Predicted probability of in-hospital expired) by the machine learning model; Displaying the risk level of the prediction results of the machine learning model; Display the names and quantitative contribution values (SHAP values) of the five variables that contribute most to the positive prediction (in-hospital death) of the machine learning model (Top 5SHAP Values); There are Predict and Refresh buttons displayed; In the Window application of the random forest model, when data is input into the data frame and the Predict button is clicked, the predicted results including The Predicted probability of in-hospital expired, Risk level, SHAP Values and Top 5 SHAP Values will be displayed in the corresponding positions in the window. When the Refresh button is clicked, the predicted results and the numbers in the data frame disappear, so that the data of the next patient can be entered for prediction.
Citation Information
Cited By
Inplanatable ML method and system for predicting death risk of ICU stroke patient in hospital
CN119230130A
