Evaluation and comparison of machine learning algorithms for predicting discharge against medical advice in injured inpatients

IF 3.2 2区 医学 Q1 SURGERY
Surgery Pub Date : 2025-03-23 DOI:10.1016/j.surg.2025.109335
Xiu Dai BS , Shifang Liu MM , Xiangyuan Chu BS , Xuheng Jiang MM , Weihang Chen BS , Guojia Qi MM , Shimin Zhao BS , Yanna Zhou MM , Xiuquan Shi PhD
{"title":"Evaluation and comparison of machine learning algorithms for predicting discharge against medical advice in injured inpatients","authors":"Xiu Dai BS ,&nbsp;Shifang Liu MM ,&nbsp;Xiangyuan Chu BS ,&nbsp;Xuheng Jiang MM ,&nbsp;Weihang Chen BS ,&nbsp;Guojia Qi MM ,&nbsp;Shimin Zhao BS ,&nbsp;Yanna Zhou MM ,&nbsp;Xiuquan Shi PhD","doi":"10.1016/j.surg.2025.109335","DOIUrl":null,"url":null,"abstract":"<div><h3>Background</h3><div>Whether the application of machine learning algorithms offers an advantage over logistic regression in forecasting discharge against medical advice occurrences needs to be evaluated.</div></div><div><h3>Methods</h3><div>This retrospective study included all inpatient records from January 1, 2018, to December 31, 2023. The foundational data set (2018–2021) was divided into a training set (80%) and a test set (20%) for model construction and internal validation. The temporal validation data set (2022–2023) was used to assess the model's prospective performance. Feature selection was performed using the BorutaShap method. Techniques including random oversampling, random undersampling, synthetic minority oversampling technique, and edited nearest neighbors were applied to address data imbalance. Model performance was evaluated using metrics including the area under the receiver operating characteristic curve, accuracy, specificity, sensitivity, F1 score, and geometric mean. The Shapley Additive Explanations analysis provided interpretation for the best machine learning model.</div></div><div><h3>Results</h3><div>A total of 48,394 inpatient records for injured patients met the study criteria, of which 44,119 were discharged following medical advice and 4,275 chose discharge against medical advice, resulting in a ratio of 10.32:1. Among injury inpatients, 8.8% opted for discharge against medical advice. Based on the results of feature selection and multicollinearity analysis, 16 variables were ultimately selected for the construction and evaluation of the discharge against medical advice model. The light gradient boosting machine + edited nearest neighbors model showed the best generalization, with areas under the curves of 0.820 for internal validation and 0.837 for temporal validation. The Shapley Additive Explanations method was used to interpret the model, indicating that the grade of surgery is the most important variable.</div></div><div><h3>Conclusions</h3><div>The study is the first to use machine learning models to predict discharge against medical advice in injured inpatients, demonstrating its feasibility. In the future, health care institutions can learn from these models to optimize patient management and reduce discharge against medical advice incidents.</div></div>","PeriodicalId":22152,"journal":{"name":"Surgery","volume":"182 ","pages":"Article 109335"},"PeriodicalIF":3.2000,"publicationDate":"2025-03-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Surgery","FirstCategoryId":"3","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0039606025001874","RegionNum":2,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"SURGERY","Score":null,"Total":0}
引用次数: 0

Abstract

Background

Whether the application of machine learning algorithms offers an advantage over logistic regression in forecasting discharge against medical advice occurrences needs to be evaluated.

Methods

This retrospective study included all inpatient records from January 1, 2018, to December 31, 2023. The foundational data set (2018–2021) was divided into a training set (80%) and a test set (20%) for model construction and internal validation. The temporal validation data set (2022–2023) was used to assess the model's prospective performance. Feature selection was performed using the BorutaShap method. Techniques including random oversampling, random undersampling, synthetic minority oversampling technique, and edited nearest neighbors were applied to address data imbalance. Model performance was evaluated using metrics including the area under the receiver operating characteristic curve, accuracy, specificity, sensitivity, F1 score, and geometric mean. The Shapley Additive Explanations analysis provided interpretation for the best machine learning model.

Results

A total of 48,394 inpatient records for injured patients met the study criteria, of which 44,119 were discharged following medical advice and 4,275 chose discharge against medical advice, resulting in a ratio of 10.32:1. Among injury inpatients, 8.8% opted for discharge against medical advice. Based on the results of feature selection and multicollinearity analysis, 16 variables were ultimately selected for the construction and evaluation of the discharge against medical advice model. The light gradient boosting machine + edited nearest neighbors model showed the best generalization, with areas under the curves of 0.820 for internal validation and 0.837 for temporal validation. The Shapley Additive Explanations method was used to interpret the model, indicating that the grade of surgery is the most important variable.

Conclusions

The study is the first to use machine learning models to predict discharge against medical advice in injured inpatients, demonstrating its feasibility. In the future, health care institutions can learn from these models to optimize patient management and reduce discharge against medical advice incidents.

Abstract Image

评估和比较用于预测受伤住院病人出院医嘱的机器学习算法
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Surgery
Surgery 医学-外科
CiteScore
5.40
自引率
5.30%
发文量
687
审稿时长
64 days
期刊介绍: For 66 years, Surgery has published practical, authoritative information about procedures, clinical advances, and major trends shaping general surgery. Each issue features original scientific contributions and clinical reports. Peer-reviewed articles cover topics in oncology, trauma, gastrointestinal, vascular, and transplantation surgery. The journal also publishes papers from the meetings of its sponsoring societies, the Society of University Surgeons, the Central Surgical Association, and the American Association of Endocrine Surgeons.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信