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

IF 2.7 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":2.7000,"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

查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
评估和比较用于预测受伤住院病人出院医嘱的机器学习算法
机器学习算法的应用是否比逻辑回归在预测出院与医疗建议的发生方面有优势,需要进行评估。方法回顾性研究纳入2018年1月1日至2023年12月31日所有住院病例。基础数据集(2018-2021)分为训练集(80%)和测试集(20%),用于模型构建和内部验证。时间验证数据集(2022-2023)用于评估模型的预期性能。采用BorutaShap方法进行特征选择。采用随机过采样、随机欠采样、合成少数过采样技术和编辑近邻技术来解决数据不平衡问题。使用指标评估模型的性能,包括受试者工作特征曲线下的面积、准确性、特异性、敏感性、F1评分和几何平均值。Shapley加性解释分析为最佳机器学习模型提供了解释。结果符合研究标准的受伤患者住院记录48394例,其中遵医嘱出院44119例,不遵医嘱出院4275例,比例为10.32:1。在受伤住院病人中,8.8%不顾医嘱选择出院。根据特征选择和多重共线性分析的结果,最终选择16个变量构建和评价出院遵医嘱模型。光梯度增强机+编辑近邻模型的泛化效果最好,内部验证曲线下面积为0.820,时间验证曲线下面积为0.837。采用Shapley加性解释法对模型进行解释,表明手术分级是最重要的变量。该研究首次使用机器学习模型来预测住院受伤患者的出院情况,证明了其可行性。未来,医疗机构可以借鉴这些模式,优化患者管理,减少因医嘱事故而导致的出院。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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.
期刊最新文献
Evaluation of axillary ultrasound performance on Sentinel Node versus Observation after Axillary Ultrasound (SOUND) trial-eligible patients. Autonomy and intraoperative teaching from faculty and resident perspectives. Predicting high-risk pathology across the spectrum of resected and surveilled intraductal papillary mucinous neoplasms: A cohort study. A rapid and reliable alternative to autopsy at a level I trauma center. Discussion.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1