Hongyi Mou, Akmal Ergashev, Bingqi Zhou, Na Ye, Xueyan Li
{"title":"基于随机森林和Logistic回归模型的住院患者意外拔管风险预测。","authors":"Hongyi Mou, Akmal Ergashev, Bingqi Zhou, Na Ye, Xueyan Li","doi":"10.1097/PTS.0000000000001365","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>Unplanned extubation (UEX) represents a significant risk event in hospitalized patients and is considered one of the most serious safety concerns. Prevention and early detection of these events have become essential components of high-quality nursing care.</p><p><strong>Objective: </strong>To compare random forest and logistic regression models for the prediction of UEX.</p><p><strong>Methods: </strong>In total, 775 UEX events were selected from the adverse nursing events database of a hospital in Zhejiang Province between January 2021 and December 2022 as the observation group. In addition, 775 planned extubation events were included from the database of hospitalized patients during the same period through 1:1 propensity score matching across various inpatient departments. Subsequently, patients were randomly allocated in a 7:3 ratio to form the development group and the validation group. Both random forest and logistic regression models were constructed. Their performances were compared using metrics including accuracy, sensitivity, specificity, positive predictive value, negative predictive value, and the area under the receiver operating characteristic curve (AUC).</p><p><strong>Results: </strong>In addition, multivariate logistic regression analysis identified individuals aged 65 years and over (OR = 3.34, 95% CI: 2.43-4.59), male (OR = 1.64, 95% CI: 1.18-2.27), impaired awareness (OR = 2.56, 95% CI: 1.44-4.56), concurrent dual catheters (OR = 4.18, 95% CI: 2.77-6.32), presence of 3 or more catheters (OR = 5.55, 95% CI: 3.44-8.97), catheter indwelling time exceeding 1 week but <1 month (OR = 3.32, 95% CI: 2.04-5.41) or more than 1 month (OR = 4.51, 95% CI: 1.55-13.10), and the presence of medium-risk (OR = 0.22, 95% CI: 0.12-0.41) or high-risk catheters (OR = 0.08, 95% CI: 0.04-0.17) with secondary fixation (OR = 0.07, 95% CI: 0.04-0.12) as influential factors for UEX events in inpatients. Several variables, including catheter indwelling time, number of coexisting catheters, age, secondary fixation, and catheter grade, were selected for predicting UEX events using the random forest model. The AUC of the random forest prediction model was 0.812, while the AUC of the logistic regression prediction model was slightly lower at 0.793.</p><p><strong>Conclusion: </strong>The random forest model outperforms the logistic regression model in predicting inpatient UEX events. However, the logistic regression model remains valuable for its ability to provide intuitive explanations of the results.</p>","PeriodicalId":48901,"journal":{"name":"Journal of Patient Safety","volume":" ","pages":""},"PeriodicalIF":1.7000,"publicationDate":"2025-05-27","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Risk Prediction of Unplanned Extubation in Inpatients Using Random Forest and Logistic Regression Models.\",\"authors\":\"Hongyi Mou, Akmal Ergashev, Bingqi Zhou, Na Ye, Xueyan Li\",\"doi\":\"10.1097/PTS.0000000000001365\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p><strong>Background: </strong>Unplanned extubation (UEX) represents a significant risk event in hospitalized patients and is considered one of the most serious safety concerns. Prevention and early detection of these events have become essential components of high-quality nursing care.</p><p><strong>Objective: </strong>To compare random forest and logistic regression models for the prediction of UEX.</p><p><strong>Methods: </strong>In total, 775 UEX events were selected from the adverse nursing events database of a hospital in Zhejiang Province between January 2021 and December 2022 as the observation group. In addition, 775 planned extubation events were included from the database of hospitalized patients during the same period through 1:1 propensity score matching across various inpatient departments. Subsequently, patients were randomly allocated in a 7:3 ratio to form the development group and the validation group. Both random forest and logistic regression models were constructed. Their performances were compared using metrics including accuracy, sensitivity, specificity, positive predictive value, negative predictive value, and the area under the receiver operating characteristic curve (AUC).</p><p><strong>Results: </strong>In addition, multivariate logistic regression analysis identified individuals aged 65 years and over (OR = 3.34, 95% CI: 2.43-4.59), male (OR = 1.64, 95% CI: 1.18-2.27), impaired awareness (OR = 2.56, 95% CI: 1.44-4.56), concurrent dual catheters (OR = 4.18, 95% CI: 2.77-6.32), presence of 3 or more catheters (OR = 5.55, 95% CI: 3.44-8.97), catheter indwelling time exceeding 1 week but <1 month (OR = 3.32, 95% CI: 2.04-5.41) or more than 1 month (OR = 4.51, 95% CI: 1.55-13.10), and the presence of medium-risk (OR = 0.22, 95% CI: 0.12-0.41) or high-risk catheters (OR = 0.08, 95% CI: 0.04-0.17) with secondary fixation (OR = 0.07, 95% CI: 0.04-0.12) as influential factors for UEX events in inpatients. Several variables, including catheter indwelling time, number of coexisting catheters, age, secondary fixation, and catheter grade, were selected for predicting UEX events using the random forest model. The AUC of the random forest prediction model was 0.812, while the AUC of the logistic regression prediction model was slightly lower at 0.793.</p><p><strong>Conclusion: </strong>The random forest model outperforms the logistic regression model in predicting inpatient UEX events. However, the logistic regression model remains valuable for its ability to provide intuitive explanations of the results.</p>\",\"PeriodicalId\":48901,\"journal\":{\"name\":\"Journal of Patient Safety\",\"volume\":\" \",\"pages\":\"\"},\"PeriodicalIF\":1.7000,\"publicationDate\":\"2025-05-27\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Journal of Patient Safety\",\"FirstCategoryId\":\"3\",\"ListUrlMain\":\"https://doi.org/10.1097/PTS.0000000000001365\",\"RegionNum\":3,\"RegionCategory\":\"医学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q3\",\"JCRName\":\"HEALTH CARE SCIENCES & SERVICES\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Patient Safety","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.1097/PTS.0000000000001365","RegionNum":3,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"HEALTH CARE SCIENCES & SERVICES","Score":null,"Total":0}
Risk Prediction of Unplanned Extubation in Inpatients Using Random Forest and Logistic Regression Models.
Background: Unplanned extubation (UEX) represents a significant risk event in hospitalized patients and is considered one of the most serious safety concerns. Prevention and early detection of these events have become essential components of high-quality nursing care.
Objective: To compare random forest and logistic regression models for the prediction of UEX.
Methods: In total, 775 UEX events were selected from the adverse nursing events database of a hospital in Zhejiang Province between January 2021 and December 2022 as the observation group. In addition, 775 planned extubation events were included from the database of hospitalized patients during the same period through 1:1 propensity score matching across various inpatient departments. Subsequently, patients were randomly allocated in a 7:3 ratio to form the development group and the validation group. Both random forest and logistic regression models were constructed. Their performances were compared using metrics including accuracy, sensitivity, specificity, positive predictive value, negative predictive value, and the area under the receiver operating characteristic curve (AUC).
Results: In addition, multivariate logistic regression analysis identified individuals aged 65 years and over (OR = 3.34, 95% CI: 2.43-4.59), male (OR = 1.64, 95% CI: 1.18-2.27), impaired awareness (OR = 2.56, 95% CI: 1.44-4.56), concurrent dual catheters (OR = 4.18, 95% CI: 2.77-6.32), presence of 3 or more catheters (OR = 5.55, 95% CI: 3.44-8.97), catheter indwelling time exceeding 1 week but <1 month (OR = 3.32, 95% CI: 2.04-5.41) or more than 1 month (OR = 4.51, 95% CI: 1.55-13.10), and the presence of medium-risk (OR = 0.22, 95% CI: 0.12-0.41) or high-risk catheters (OR = 0.08, 95% CI: 0.04-0.17) with secondary fixation (OR = 0.07, 95% CI: 0.04-0.12) as influential factors for UEX events in inpatients. Several variables, including catheter indwelling time, number of coexisting catheters, age, secondary fixation, and catheter grade, were selected for predicting UEX events using the random forest model. The AUC of the random forest prediction model was 0.812, while the AUC of the logistic regression prediction model was slightly lower at 0.793.
Conclusion: The random forest model outperforms the logistic regression model in predicting inpatient UEX events. However, the logistic regression model remains valuable for its ability to provide intuitive explanations of the results.
期刊介绍:
Journal of Patient Safety (ISSN 1549-8417; online ISSN 1549-8425) is dedicated to presenting research advances and field applications in every area of patient safety. While Journal of Patient Safety has a research emphasis, it also publishes articles describing near-miss opportunities, system modifications that are barriers to error, and the impact of regulatory changes on healthcare delivery. This mix of research and real-world findings makes Journal of Patient Safety a valuable resource across the breadth of health professions and from bench to bedside.