Identifying Key Variances in Clinical Pathways Associated With Prolonged Hospital Stays Using Machine Learning and ePath Real-World Data: Model Development and Validation Study
Authors:
- Saori TouSTSaori Tou
- Koutarou MatsumotoKMKoutarou Matsumoto
- Asato HashinokuchiAHAsato Hashinokuchi
- Fumihiko KinoshitaFKFumihiko Kinoshita
- Yasunobu NoharaYNYasunobu Nohara
- Takanori YamashitaTYTakanori Yamashita
- Yoshifumi WakataYWYoshifumi Wakata
- Tomoyoshi TakenakaTTTomoyoshi Takenaka
- Hidehisa SoejimaHSHidehisa Soejima
- Tomoharu YoshizumiTYTomoharu Yoshizumi
- Naoki NakashimaNNNaoki Nakashima
- Masahiro KamouchiMKMasahiro Kamouchi
Open Access
- 1 December 2025
- journal article
- research article
- Published by JMIR Publications Inc. in JMIR Medical Informatics
- Vol. 13, e71617
Abstract
Background: Prolonged hospital stays can lead to inefficiencies in health care delivery and unnecessary consumption of medical resources. Objective: This study aimed to identify key clinical variances associated with prolonged length of stay (PLOS) in clinical pathways using a machine learning model trained on real-world data from the ePath system. Methods: We analyzed data from 480 patients with lung cancer (age: mean 68.3, SD 11.2 years; n=263, 54.8% men) who underwent video-assisted thoracoscopic surgery at a university hospital between 2019 and 2023. PLOS was defined as a hospital stay exceeding 9 days after video-assisted thoracoscopic surgery. The variables collected between admission and 4 days after surgery were examined, and those that showed a significant association with PLOS in univariate analyses (P<.01) were selected as predictors. Predictive models were developed using sparse linear regression methods (Lasso, ridge, and elastic net) and decision tree ensembles (random forest and extreme gradient boosting). The data were divided into derivation (earlier study period) and testing (later period) cohorts for temporal validation. The model performance was assessed using the area under the receiver operating characteristic curve, Brier score, and calibration plots. Counterfactual analysis was used to identify key clinical factors influencing PLOS. Results: A 3D heatmap illustrated the temporal relationships between clinical factors and PLOS based on patient demographics, comorbidities, functional status, surgical details, care processes, medications, and variances recorded from admission to 4 days after surgery. Among the 5 algorithms evaluated, the ridge regression model demonstrated the best performance in terms of both discrimination and calibration. Specifically, it achieved area under the receiver operating characteristic curve values of 0.84 and 0.82 and Brier scores of 0.16 and 0.17 in the derivation and test cohorts, respectively. In the final model, a range of variables, including blood tests, care, patient background, procedures, and clinical variances, were associated with PLOS. Among these, particular emphasis was placed on clinical variances. Counterfactual analysis using the ridge regression model identified 6 key variables strongly linked to PLOS. In order of impact, these were abnormal respiratory sounds, postoperative fever, arrhythmia, impaired ambulation, complications after drain removal, and pulmonary air leaks. Conclusions: A machine learning–based model using ePath data effectively identified critical variances in the clinical pathways associated with PLOS. This automated tool may enhance clinical decision-making and improve patient management.Keywords
All Related Versions
This publication has 42 references indexed in Scilit:
- Data‐driven prediction of prolonged air leak after video‐assisted thoracoscopic surgery for lung cancer: Development and validation of machine‐learning‐based models using real‐world data through the ePath systemLearning Health Systems, 2024
- Variables Influencing Hospital Stay and 10-Year Staying Trending After Anatomical Lung ResectionArchivos de Bronconeumología, 2022
- Interventions to Reduce Hospital Length of Stay in High-risk PopulationsJAMA Network Open, 2021
- The Impact of Thoracoscopic Surgery on Payment and Health Care Utilization After Lung ResectionThe Annals of Thoracic Surgery, 2016
- VATS Lobectomy Has Better Perioperative Outcomes Than Open Lobectomy: CALGB 31001, an Ancillary Analysis of CALGB 140202 (Alliance)The Annals of Thoracic Surgery, 2015
- Ninety-Day Costs of Video-Assisted Thoracic Surgery Versus Open Lobectomy for Lung CancerThe Annals of Thoracic Surgery, 2014
- Video-Assisted Thoracoscopic Lobectomy Is Less Costly and Morbid Than Open Lobectomy: A Retrospective Multiinstitutional Database AnalysisThe Annals of Thoracic Surgery, 2012
- Surgery for Early-Stage Non-Small Cell Lung Cancer: A Systematic Review of the Video-Assisted Thoracoscopic Surgery Versus Thoracotomy Approaches to LobectomyThe Annals of Thoracic Surgery, 2008
- Predictors of Prolonged Length of Stay after Lobectomy for Lung Cancer: A Society of Thoracic Surgeons General Thoracic Surgery Database Risk-Adjustment ModelThe Annals of Thoracic Surgery, 2008
- Use of Video-Assisted Thoracic Surgery for Lobectomy in the Elderly Results in Fewer ComplicationsThe Annals of Thoracic Surgery, 2008