Explainable machine learning for predicting postoperative length of stay after gastrectomy: a nationwide study using XGBoost and SHAP.

IF 4.6 Q3 ENGINEERING, BIOMEDICAL
Frontiers in medical technology Pub Date : 2025-12-05 eCollection Date: 2025-01-01 DOI:10.3389/fmedt.2025.1732580
Tsunehiko Maruyama, Kazuto Ikezawa, Hideo Suzuki, Tomohiro Kurokawa, Yoshimasa Akashi, Tatsuya Oda
{"title":"Explainable machine learning for predicting postoperative length of stay after gastrectomy: a nationwide study using XGBoost and SHAP.","authors":"Tsunehiko Maruyama, Kazuto Ikezawa, Hideo Suzuki, Tomohiro Kurokawa, Yoshimasa Akashi, Tatsuya Oda","doi":"10.3389/fmedt.2025.1732580","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>Gastric cancer remains a major cause of cancer-related morbidity and mortality. Despite advances in surgical and perioperative care, prolonged hospitalization continues to strain healthcare systems. Predicting postoperative length of stay (LOS) could support personalized care and efficient resource allocation. Japan's nationwide Diagnosis Procedure Combination (DPC) database provides real-world data for large-scale analysis, but no study has applied machine learning to predict LOS after gastrectomy.</p><p><strong>Methods: </strong>This retrospective study included 26,097 patients who underwent gastrectomy between 2017 and 2022 at 472 hospitals in Japan. Using XGBoost, we developed a predictive model based on 1,433 admission-time variables extracted from the DPC database. Model performance was evaluated using Root Mean Squared Error (RMSE) and Mean Absolute Error (MAE) in a five-fold cross-validation. SHAP values were used to interpret feature importance.</p><p><strong>Results: </strong>The final model achieved an RMSE of 3.74 and MAE of 2.82 days. Key predictors of LOS included surgical procedure (laparoscopic distal gastrectomy and open total gastrectomy), designated cancer hospital, hospital size, peritoneal dissemination, and admission ADL score. SHAP analysis revealed that Laparoscopic distal gastrectomy and higher hospital volume were associated with shorter LOS, while open total gastrectomy was associated with longer LOS.</p><p><strong>Conclusions: </strong>We developed a machine learning model that predicts postoperative length of stay with an error range of 2-4 days using admission data. This proof-of-concept study demonstrates the feasibility of predicting length of stay from admission data, showing that explainable AI can replicate intuitive patterns in surgical oncology while simultaneously identifying unexpected insights from administrative data. These findings highlight the clinical potential of explainable AI for perioperative workflow optimization.</p>","PeriodicalId":94015,"journal":{"name":"Frontiers in medical technology","volume":"7 ","pages":"1732580"},"PeriodicalIF":4.6000,"publicationDate":"2025-12-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12714947/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Frontiers in medical technology","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.3389/fmedt.2025.1732580","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2025/1/1 0:00:00","PubModel":"eCollection","JCR":"Q3","JCRName":"ENGINEERING, BIOMEDICAL","Score":null,"Total":0}
引用次数: 0

Abstract

Background: Gastric cancer remains a major cause of cancer-related morbidity and mortality. Despite advances in surgical and perioperative care, prolonged hospitalization continues to strain healthcare systems. Predicting postoperative length of stay (LOS) could support personalized care and efficient resource allocation. Japan's nationwide Diagnosis Procedure Combination (DPC) database provides real-world data for large-scale analysis, but no study has applied machine learning to predict LOS after gastrectomy.

Methods: This retrospective study included 26,097 patients who underwent gastrectomy between 2017 and 2022 at 472 hospitals in Japan. Using XGBoost, we developed a predictive model based on 1,433 admission-time variables extracted from the DPC database. Model performance was evaluated using Root Mean Squared Error (RMSE) and Mean Absolute Error (MAE) in a five-fold cross-validation. SHAP values were used to interpret feature importance.

Results: The final model achieved an RMSE of 3.74 and MAE of 2.82 days. Key predictors of LOS included surgical procedure (laparoscopic distal gastrectomy and open total gastrectomy), designated cancer hospital, hospital size, peritoneal dissemination, and admission ADL score. SHAP analysis revealed that Laparoscopic distal gastrectomy and higher hospital volume were associated with shorter LOS, while open total gastrectomy was associated with longer LOS.

Conclusions: We developed a machine learning model that predicts postoperative length of stay with an error range of 2-4 days using admission data. This proof-of-concept study demonstrates the feasibility of predicting length of stay from admission data, showing that explainable AI can replicate intuitive patterns in surgical oncology while simultaneously identifying unexpected insights from administrative data. These findings highlight the clinical potential of explainable AI for perioperative workflow optimization.

Abstract Image

Abstract Image

Abstract Image

可解释的机器学习预测胃切除术后术后住院时间:一项使用XGBoost和SHAP的全国性研究。
背景:胃癌仍然是癌症相关发病和死亡的主要原因。尽管外科和围手术期护理取得了进展,但长期住院治疗继续给医疗保健系统带来压力。预测术后住院时间(LOS)可以支持个性化护理和有效的资源分配。日本全国范围的诊断程序组合(DPC)数据库为大规模分析提供了真实世界的数据,但没有研究应用机器学习来预测胃切除术后的LOS。方法:本回顾性研究包括2017年至2022年期间在日本472家医院接受胃切除术的26,097例患者。使用XGBoost,我们基于从DPC数据库中提取的1,433个准入时间变量开发了一个预测模型。在五重交叉验证中,使用均方根误差(RMSE)和平均绝对误差(MAE)来评估模型的性能。SHAP值用于解释特征的重要性。结果:最终模型RMSE为3.74,MAE为2.82天。LOS的主要预测因素包括手术方式(腹腔镜下远端胃切除术和开放式全胃切除术)、指定肿瘤医院、医院规模、腹膜扩散和入院ADL评分。SHAP分析显示,腹腔镜下远端胃切除术和更高的医院容积与较短的LOS相关,而开放式全胃切除术与较长的LOS相关。结论:我们开发了一种机器学习模型,利用入院数据预测术后住院时间,误差范围为2-4天。这项概念验证研究证明了从入院数据中预测住院时间的可行性,表明可解释的人工智能可以复制外科肿瘤学的直觉模式,同时从行政数据中识别意想不到的见解。这些发现强调了可解释的人工智能在围手术期工作流程优化中的临床潜力。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
3.70
自引率
0.00%
发文量
0
审稿时长
13 weeks
×
引用
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学术文献互助群
群 号:604180095
Book学术官方微信
小红书