Development of the Short Hospitalization Predictor (SHoP) Machine Learning Model Across Two Hospitals

preprint OA: closed
📄 Open PDF Full text JSON View at publisher
AI-generated deep summary by claude@2026-07, 2026-07-05 · read from full text

This retrospective observational study developed and evaluated an open-source machine learning model (SHoP) to predict short hospital stays—length of stay under 48 or 72 hours—using only electronic health record data available at the emergency department (ED) before hospital admission. Researchers trained Random Forest and XGBoost models on 8,693 adult internal medicine admissions from two academic hospitals, using a weighted target-encoding approach to convert historical ICD-10 diagnostic codes into numeric values reflecting their probabilistic contribution to LOS, and benchmarked performance against logistic regression. Random Forest achieved high discrimination for predicting LOS under 48 hours (AUROC 0.96) and under 72 hours (AUROC 0.94), substantially outperforming logistic regression (AUROC ~0.57–0.59). The main limitation stated is that prediction is built for internal medicine patients using ED pre-admission and admitting-diagnosis workflows, which may not generalize to other services or contexts. The paper does not explicitly discuss endometriosis or adenomyosis; it was included in the corpus via a keyword match in the upstream search index.

Read from the paper's body, not the abstract. Not a substitute for reading the paper. No clinical advice. How this works

Abstract

ABSTRACT Objective To develop and evaluate an open-source machine learning (ML) models for predicting hospital short stays (length of stay [LOS] under 48 and 72 hours) exclusively using data available at the time of ED admission, with a novel application of target encoding diagnostic codes. Materials and Methods We trained two ML algorithms (Random Forest and XGBoost) on electronic health record (EHR) data from two hospitals to predict hospital short stays. We employed an innovative weighted target encoding method that converted categorical International Classification of Disease (ICD- 10) codes into numeric representations of their probabilistic contribution to LOS. We measured area under the receiver operating characteristic curve (AUC) for correctly predicting LOS under 48 or 72 hours, which we compared to logistic regression. Results The final sample included 8,693 adult patients admitted to an internal medicine service. Random Forest models achieved the highest performance for predicting LOS under 48 hours (AUROC=0.96, 95% CI 0.95-0.97; accuracy=91%) and under 72 hours (AUROC=0.94, 95% CI 0.93-0.95; accuracy=88%). These models outperformed logistic regression using the same features (48-hour AUROC=0.57, 95% CI 0.54-0.59 and accuracy=70%; 72-hour AUROC=0.59, 95% CI 0.57-0.61 and accuracy=56%). Discussion Leveraging an innovative target encoding method, the Short Hospitalization Prediction (SHoP) model substantially outperforms previous ML approaches in accurately predicting LOS under both 48 and 72 hours using only ED pre-admission data (AUC 0.94-0.96). Conclusion The technical innovation and predictive capability of the SHoP model enables powerful, real-time applications for optimizing patient flow and hospital resource utilization by identifying potentially divertible admissions while patients are still in the ED.
Full text 38,452 characters · extracted from preprint-html · click to expand
Development of the Short Hospitalization Predictor (SHoP) Machine Learning Model Across Two Hospitals | medRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-P4HH5NV'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search Development of the Short Hospitalization Predictor (SHoP) Machine Learning Model Across Two Hospitals View ORCID Profile Richard K. Leuchter , Valiollah Salari , Eilon Gabel doi: https://doi.org/10.1101/2025.05.03.25326935 Richard K. Leuchter 1 Division of General Internal Medicine & Health Services Research, Department of Medicine, David Geffen School of Medicine at UCLA , Los Angeles, CA 2 Division of Hospital Medicine, Department of Medicine , Greater Los Angeles VA, Los Angeles, CA MD Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Richard K. Leuchter For correspondence: rleuchter{at}mednet.ucla.edu Valiollah Salari 3 Department of Anesthesia and Perioperative Medicine, David Geffen School of Medicine at UCLA , Los Angeles, CA PhD Find this author on Google Scholar Find this author on PubMed Search for this author on this site Eilon Gabel 3 Department of Anesthesia and Perioperative Medicine, David Geffen School of Medicine at UCLA , Los Angeles, CA MD, MHA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Abstract Full Text Info/History Metrics Supplementary material Data/Code Preview PDF ABSTRACT Objective To develop and evaluate an open-source machine learning (ML) models for predicting hospital short stays (length of stay [LOS] under 48 and 72 hours) exclusively using data available at the time of ED admission, with a novel application of target encoding diagnostic codes. Materials and Methods We trained two ML algorithms (Random Forest and XGBoost) on electronic health record (EHR) data from two hospitals to predict hospital short stays. We employed an innovative weighted target encoding method that converted categorical International Classification of Disease (ICD- 10) codes into numeric representations of their probabilistic contribution to LOS. We measured area under the receiver operating characteristic curve (AUC) for correctly predicting LOS under 48 or 72 hours, which we compared to logistic regression. Results The final sample included 8,693 adult patients admitted to an internal medicine service. Random Forest models achieved the highest performance for predicting LOS under 48 hours (AUROC=0.96, 95% CI 0.95-0.97; accuracy=91%) and under 72 hours (AUROC=0.94, 95% CI 0.93-0.95; accuracy=88%). These models outperformed logistic regression using the same features (48-hour AUROC=0.57, 95% CI 0.54-0.59 and accuracy=70%; 72-hour AUROC=0.59, 95% CI 0.57-0.61 and accuracy=56%). Discussion Leveraging an innovative target encoding method, the Short Hospitalization Prediction (SHoP) model substantially outperforms previous ML approaches in accurately predicting LOS under both 48 and 72 hours using only ED pre-admission data (AUC 0.94-0.96). Conclusion The technical innovation and predictive capability of the SHoP model enables powerful, real-time applications for optimizing patient flow and hospital resource utilization by identifying potentially divertible admissions while patients are still in the ED. INTRODUCTION The U.S. is facing a critical hospital bed shortage as soon as 2032 unless novel care models are developed to reduce the number of hospitalizations. 1 To mitigate this potential crisis, the management of 10-20% of hospitalizations could be shifted from hospitals to office-based settings, 2 – 4 but there are currently no methods to accurately identify these patients being admitted while they are still in the emergency department (ED) triage. A requisite step in designing care pathways that could divert ED admissions to alternative settings is the ability to predict in real-time if a hospitalization will be necessary while a patient is in ED triage. While directly adjudicating the necessity of hospitalizations is challenging and often subjective, hospital length of stay (LOS) has been proposed as a proxy for divertible hospitalizations. 5 Specifically, hospital short stays (i.e., LOS under 48 or 72 hours) may suggest that a patient could have been cared for in an alternative setting such as a high-acuity clinic. 5 – 7 While machine learning (ML) models have been used to predict LOS with limited success, none have been developed that can accurately predict a LOS under 48 or 72 hours among general medicine patients in ED triage. 8 – 16 This study sought to develop open-source predictive models ultimately capable of identifying patients at ED triage who could be diverted to alternative treatment settings. By only training models on data available prior to ED admission, we aimed to create a tool suitable for future real-time implementation, enabling the identification of potentially divertible hospitalizations and subsequent improvements in clinical care and health system operational efficiencies. METHODS Data Source and Study Population This retrospective observational study analyzed electronic health record (EHR) data from two academic hospitals (Ronald Reagan UCLA Medical Center and Santa Monica UCLA Medical Center) between March 17, 2021-August 22, 2024. Ronald Regan UCLA Medical Center represents a quaternary care academic hospital caring for medically complex patients including allograft recipients, whereas Santa Monica UCLA Medical Center is more representative of the features of a standard community hospital (less complex case-mix, ED operates without residents, etc.). We identified the records of all patients admitted through the ED at either hospital during the study period. Patients were included if they were at least 18 years old and admitted to an internal medicine service for one of the conditions in eTable 1 of the Supplement, which encompass 16 of the 20 most common reasons for admission in the U.S. 17 The criteria for primary diagnosis utilized the admitting diagnosis inputted by the ED provider when they placed a bed request for admission, and therefore represented the working diagnosis just prior to hospital admission. Patients were excluded if they were admitted to a surgical, obstetric, neurology, psychiatric, or critical care service. We utilized only the following de-identified EHR data that were available to ED providers prior to the time of the Admissions Order: basic encounter information, sociodemographics, labs/vitals, and prior healthcare utilization. The UCLA IRB determined that this secondary analysis of de-identified data did not constitute human subjects research so did not require review. Feature Selection Feature importance scores from the ensemble model were computed in Python using the relevant library (e.g., sklearn for Random Forest or xgboost for XGBoost) to rank features by their contribution to model performance, and low-importance features were removed to optimize the final feature set for training Data missingness after target encoding was completed on the final feature list was less than 2.2%; all missing observations were replaced with -1 which generally indicated a patient had no EHR records at our institution (e.g., -1 as the minimum ED acuity in the last 12 months indicated a new patient with no prior ED visits). Target Encoding ICD-10 Codes Target encoding was chosen as the primary method for processing categorical ICD-10 codes to capture their relationship with LOS in a statistically meaningful way. 19 – 21 This approach allowed us to convert categorical values into numeric representations that directly reflected their probabilistic contribution to LOS while mitigating issues such as sparsity and high dimensionality, which are common in healthcare datasets with many categorical variables. 22 , 23 To prepare the data for target encoding, a maximum of 25 ICD-10 codes billed during encounters over the prior 12 months per patient were selected, sorted by frequency of occurrence, and organized into separate columns (ICD_CODE_1 to ICD_CODE_25). Approximately 13% of patients had fewer than 25 ICD codes in their charts prior to arrival in the ED so the most common code was repeated in the available spaces until all 25 positions were populated. For the 10% of patients who had no historical ICD codes, the values were filled with historical weighted averages for patients without ICD codes using target encoding. We then created an encoded value for each ICD-10 code computed as the weighted average of the observed LOS for that diagnostic code and the global average LOS across all observations. We used a weighted averaging scheme to ensure balanced representation of ICD-10 codes, which prevented overfitting to rare categories while still allowing frequent categories to dominate their contribution. The formula used for smoothing encoded values according to weighted averages was: Encoded Value (weighted) = (Encoded Value X Item Count) + (λ X Global Average) Encoded Value: The value representing the average LOS for a given diagnostic code within a particular category of data element (i.e., male v. female sex) Item Count: The number of observations for the category. λ: A smoothing factor that controlled the contribution of the global average (set at 0.1). Global Average: The mean encoded value across all categories of data elements (i.e. the mean LOS for a given diagnostic code for all patients, regardless of sex). More common ICD-10 codes had much larger weighted encoded values and correspondingly little influence from the global average, whereas less common ICD-10 codes were pulled up further towards the global mean. Target encoded values for each patient’s top 25 ICD-10 codes were used to train the models as 25 independent features. Analysis We used two machine learning algorithms (XGBoost and Random Forest) 24 – 26 to categorically predict LOS less than either 48 or 72 hours, compared to logistic regression. Models were trained on a 70% random split of the data and tested on the remaining 30%. Model performance was assessed using the area under the receiver operating characteristic curve (AUC), Precision-Recall AUC (PR-AUC), and accuracy. A Shapley Additive Explanations (SHAP) analysis was conducted to assess feature importance. 27 10-fold cross validation was used to validate model performance. All target encoding and ML model training and testing was completed in Scikit-learn Python. 28 RESULTS The final sample included 8,693 patients who were admitted through the ED between March 17, 2021-August 22, 2024. The models were trained on a demographically diverse population of patients who were 35% non-Hispanic White, 24% Hispanic or Latino, 12% Black or African American, and 9% Asian. The remaining sample characteristics are displayed in Table 1 , and were balanced between the training and test data sets. View this table: View inline View popup Download powerpoint Table 1. Sample Characteristics. A total of 25 features plus 25 target encoded ICD-10 codes per patient (for a total of 50 features) were used to train the models ( Table 2 ). View this table: View inline View popup Table 2. Selected features used to train the Short Hospitalization Prediction (SHoP) Model. The Random Forest model demonstrated similar performance compared to XGBoost and greatly superior performance compared to logistic regression for predicting hospital short stays under 48 hours and 72 hours ( Figure 1 ). For predicting LOS under 48 hours, Random Forest achieved an AUC of 0.96 (95% CI 0.95-0.97) and an accuracy of 91%, compared to an AUC of 0.96 (95% CI 0.95-0.97) and accuracy of 90% for XGBoost, and an AUC of 0.57 (95% CI 0.54-0.59) and accuracy of 70% for logistic regression. For predicting LOS under 72 hours, Random Forest exhibited an AUC of 0.94 (95% CI 0.93-0.95) and an accuracy of 88%, XGBoost achieved an AUC of 0.94 (95% CI 0.93-0.95) and accuracy of 86%, and logistic regression achieved an AUC of 0.59 (0.57-0.61) and an accuracy of 56%. Download figure Open in new tab Figure 1. Short Hospitalization Predictor (SHoP) model performance using 48 or 72 hour length of stay thresholds. Figure 1 Legend: The receiver operating characteristic (ROC) curve of each panel depicts the AUC for correctly predicting a length of stay (LOS) under either 48 or 72 hours. The precision-recall curve of each panel depicts a visual representation of the trade-off between the true positive rate (i.e., precision) and positive predictive value (i.e., recall) across a spectrum of thresholds. Each curve compares the indicated metrics between the two machine learning techniques (Random Forest and XGBoost) and logistic regression. Relative feature importance by SHAP analysis demonstrated that target encoded ICD-10 codes had the largest impact on model output ( Figure 2 ). Download figure Open in new tab Figure 2. Shapley Additive Explanation (SHAP) value plots for Random Forest Short Hospitalization Predictor model, displaying the top 20 features. Figure 2 Legend: Within each feature row, a single point corresponds to one encounter. Each point’s SHAP value (x-axis) corresponds to the impact that feature had on the model output. This can be interpreted as the indicated feature’s importance for predicting length of stay (LOS). Larger positive SHAP values are associated with longer LOS, whereas larger negative SHAP values are associated with shorter LOS. The color corresponds with the value of the feature itself, with red indicating larger values (e.g., higher age) and blue representing smaller values (e.g., lower age). Features are organized along the y- axis in descending order of explanatory importance. Model performance was similar across sex and racial/ethnic subgroupings. Accuracy for predicting LOS under 72 hours was as follows: male, 88%; female, 87%; Asian, 91%; Black or African American, 80%; Hispanic or Latino, 87%; non-Hispanic White, 87%; other, 82%. The code for developing and training the Random Forest and XGBoost models in Python is freely available on Github at the following url: https://github.com/vsalari/NextDayClinic . DISCUSSION This study demonstrates the successful creation of the Short Hospitalization Prediction (SHoP) model using a Random Forest ML algorithm to accurately predict hospital admissions with a LOS under either 48 or 72 hours. The exceptionally high AUC of 0.96 and accuracy of 91% for the 48-hour prediction suggests that the use of target encoded ICD-10 codes is a substantial improvement over prior efforts to use ML models for similar applications. A key implication of this research is the potential to identify avoidable or divertible hospitalizations in real-time, since the SHoP model exclusively uses a working ED diagnosis and data available before admission. While directly assessing the necessity of each admission is complex, short LOS, particularly those under 48 or 72 hours, can serve as a proxy for potentially divertible admissions that could have been cared for in a high-acuity outpatient setting. 5 Several studies have explored using ML to categorically predict LOS thresholds, and our findings corroborate the potential of ML for this task. 29 However, our study makes several important contributions. First, the SHoP model is highly generalizable since it was trained on adult general internal medicine patients being admitted for 16 of the 20 most common admission diagnoses in the U.S., which account for roughly half of all non-obstetric hospitalizations (only osteoarthritis, spondylopathies, depressive disorders, and schizophrenia were not represented due to excluding surgical and psychiatric patients). 17 A majority of prior models have been trained on specific subpopulations (e.g. cardiovascular or endocrinology patients, older adults) 8 – 11 , 13 , 15 limiting their utility, especially within an ED setting where diagnoses are often not fully differentiated. Second, the SHoP model notably outperforms previous efforts to predict LOS using ML. Similar models trained on diverse general internal medicine populations have exhibited AUCs ranging from 0.81-0.86, 14 , 16 and even models trained on more homogenous groups of patients have attained AUCs from 0.76-0.90 or accuracies between 64-80%. 8 , 10 , 11 , 14 , 15 , 30 Third, the SHoP model addresses critical barriers in successful hospital diversion initiatives by predicting short stays before a patient is admitted. In contrast, previous models’ predictions have required at least 24 hours of hospitalization, used information unavailable at the time of admission (like using final discharge diagnosis rather than the admitting diagnosis), or predicted distant time horizons that do not correlate with avoidable hospitalizations (i.e., under 5, 7, or 14 days). 8 , 10 , 11 , 14 , 15 , 30 , 31 Importantly, model performance was consistent across sex and racial/ethnic subgroups, with prediction accuracies that did not systematically disadvantage any group despite marginal numerical differences. These findings suggest that, through careful calibration and validation, the SHoP model effectively mitigates bias. Limitations This study has several limitations. First, it is a retrospective study conducted at two hospitals. Second, model performance is limited in ED admissions with limited or no health system records available at the time of presentation. Third, the SHoP model only considers discrete data stored in the EHR and was not designed to account for data elements such as free text. Fourth, while the SHoP model was trained on a more medically diverse population than most prior models, 8 – 11 , 13 , 15 it includes only adult general internal medicine patients and excludes cases such as those requiring surgery or critical care. Conclusions To the best of our knowledge, the SHoP model is the first completely open-source model to accurately predict short hospital stays (under 48 and 72 hours) using only data available at the time of ED admission. Compared to prior ML models, the use of target encoded ICD-10 codes in the SHoP model allows it to accomplish a more difficult prediction task (i.e., predicting narrower windows for LOS using limited information) with substantially higher accuracy. For ease of visualization, all target encoded ICD-10 codes (top 25 most frequently occurring per patient) were compressed into a single feature row. Author Contributions Concept and design: Leuchter, Gabel Acquisition, analysis, or interpretation of data: Leuchter, Gabel, Salari Drafting of the manuscript: Leuchter Critical revision of the manuscript for important intellectual content: Leuchter, Gabel, Salari Statistical analysis: Salari and Gabel Obtained funding: N/A. Administrative, technical, or material support: Leuchter, Gabel Supervision: Leuchter, Gabel, Salari Funding/support Dr. Leuchter is supported by funding from the NIH-NHLBI. Dr. Gabel is a co-founder of Extrico Health Inc., a healthcare analytics company. The funders/companies had no role in considering the study design or in the collection, analysis, interpretation of data, writing of the report, or decision to submit the article for publication. Conflict of interest disclosures None of the authors disclose any conflict of interests including relevant financial interests, activities, relationships, and affiliations (other than those affiliations listed on the title page and under funding/support) relevant to the subject of this manuscript. Role of the Funder/Sponsor The sponsors had no role in the design and conduct of the study; collection, management, analysis, and interpretation of the data; preparation, review, or approval of the manuscript; and decision to submit the manuscript for publication. Code Availability The code is freely available on Github as noted above. Data Availability Data was never abstracted for this study; training and testing of models was done on a secure cloud-based sever that prohibits the authors from extracting data for distribution. Thus, it is not technically feasible to share the training or test data. The code used to train the models is freely available on Github and open source, as noted in the manuscript text. https://github.com/vsalari/NextDayClinic REFERENCES 1. ↵ Leuchter RK , Delarmente BA , Vangala S , Tsugawa Y , Sarkisian CA . Health Care Staffing Shortages and Potential National Hospital Bed Shortage . JAMA Netw Open [Internet ]. 2025 Feb 3; 8 ( 2 ): e2460645 – e2460645 . Available from: https://jamanetwork.com/journals/jamanetworkopen/fullarticle/2830387 OpenUrl 2. ↵ Sahni NR , Marine C , Cutler DM , Medford-Davis LN , Mezue M , Kattan O , et al. Potential US Health Care Savings Based on Clinician Views of Feasible Site-of-Care Shifts . JAMA Netw Open [Internet ]. 2024 Aug 1; 7 ( 8 ): e2426857 – e2426857 . Available from: https://jamanetwork.com/journals/jamanetworkopen/fullarticle/2822220 OpenUrl 3. Siu AL , Sonnenberg FA , Manning WG , Goldberg GA , Bloomfield ES , Newhouse JP , et al. Inappropriate Use of Hospitals in a Randomized Trial of Health Insurance Plans . N Engl J Med [Internet ]. 1986 Nov 13; 315 ( 20 ): 1259 – 66 . Available from: https://www.nejm.org/doi/full/10.1056/NEJM198611133152005 OpenUrl 4. ↵ Daniels LM , Sorita A , Kashiwagi DT , Okubo M , Small E , Polley EC , et al. Characterizing Potentially Preventable Admissions: A Mixed Methods Study of Rates, Associated Factors, Outcomes, and Physician Decision-Making . J Gen Intern Med [Internet ]. 2018 May 1; 33 ( 5 ): 737 – 44 . Available from: https://link.springer.com/article/10.1007/s11606-017-4285-6 OpenUrl 5. ↵ Conley J , O’Brien CW , Leff BA , Bolen S , Zulman D . Alternative Strategies to Inpatient Hospitalization for Acute Medical Conditions: A Systematic Review . JAMA Intern Med [Internet ]. 2016 Nov 1; 176 ( 11 ): 1693 – 702 . Available from: https://jamanetwork.com/journals/jamainternalmedicine/fullarticle/2560377 OpenUrl 6. Cram P . Hospital length of stay…..a measure of what, exactly? Med Care [Internet ]. 2019 Oct 1; 57 ( 10 ): 751 . Available from: https://pmc.ncbi.nlm.nih.gov/articles/PMC6742542/ OpenUrl 7. ↵ Lynch B , Fitzgerald AP , Corcoran P , Buckley C , Healy O , Browne J . Drivers of potentially avoidable emergency admissions in Ireland: an ecological analysis . BMJ Qual Saf [Internet ]. 2019 Jun 1; 28 ( 6 ): 438 – 48 . Available from: https://qualitysafety.bmj.com/content/28/6/438 OpenUrl 8. ↵ Daghistani TA , Elshawi R , Sakr S , Ahmed AM , Al-Thwayee A , Al-Mallah MH . Predictors of in- hospital length of stay among cardiac patients: A machine learning approach . Int J Cardiol . 2019 Aug 1; 288 : 140 – 7 . OpenUrl CrossRef PubMed 9. Turgeman L , May JH , Sciulli R . Insights from a machine learning model for predicting the hospital Length of Stay (LOS) at the time of admission . Expert Syst Appl . 2017 Jul 15; 78 : 376 – 85 . OpenUrl 10. ↵ Morton A , Marzban E , Giannoulis G , Patel A , Aparasu R , Kakadiaris IA . A comparison of supervised machine learning techniques for predicting short-term in-hospital length of stay among diabetic patients . Proc - 2014 13th Int Conf Mach Learn Appl ICMLA 2014 . 2014 Feb 5;428–31. 11. ↵ Launay CP , Rivière H , Kabeshova A , Beauchet O . Predicting prolonged length of hospital stay in older emergency department users: Use of a novel analysis method, the Artificial Neural Network . Eur J Intern Med . 2015 Sep 1; 26 ( 7 ): 478 – 82 . OpenUrl PubMed 12. Caetano N , Cortez P , Laureano RMS. Using Data Mining for Prediction of Hospital Length of Stay: An Application of the CRISP-DM Methodology . Available from: http://www3.dsi.uminho.pt/pcortez 13. ↵ Hachesu PR , Ahmadi M , Alizadeh S , Sadoughi F . Use of data mining techniques to determine and predict length of stay of cardiac patients . Healthc Inform Res [Internet ]. 2013 Jun 30; 19 ( 2 ): 121 – 9 . Available from: https://europepmc.org/articles/PMC3717435 OpenUrl 14. ↵ Rajkomar A , Oren E , Chen K , Dai AM , Hajaj N , Hardt M , et al. Scalable and accurate deep learning with electronic health records . npj Digit Med 2018 11 [Internet]. 2018 May 8; 1 ( 1 ): 1 – 10 . Available from: https://www.nature.com/articles/s41746-018-0029-1 OpenUrl PubMed 15. ↵ Steele RJ , Thompson B. Data mining for generalizable pre-admission prediction of elective length of stay . 2019 IEEE 9th Annu Comput Commun Work Conf CCWC 2019 . 2019 Mar 12; 127 – 33 . 16. ↵ Jaotombo F , Pauly V , Fond G , Orleans V , Auquier P , Ghattas B , et al. Machine-learning prediction for hospital length of stay using a French medico-administrative database . J Mark Access Heal Policy [Internet ]. 2023 ; 11 ( 1 ). Available from: /pmc/articles/PMC9707380/ 17. ↵ Pfuntner A , Wier LM , Stocks C. Most Frequent Conditions in U.S. Hospitals , 2011 . 2011. Available from: http://www.hcup-us.ahrq.gov/reports/statbriefs/sb148.pdf . 18. van Buuren S. Flexible Imputation of Missing Data , Second Edition. Second edition. | Boca Raton, Florida []: CRC Press , [2019] |: Chapman and Hall/CRC; 2018. Available from: https://www.taylorfrancis.com/books/9780429492259 19. ↵ Cerda P , Varoquaux G , Kégl B . Similarity encoding for learning with dirty categorical variables . Mach Learn [Internet ]. 2018 Sep 1; 107 ( 8–10 ): 1477 – 94 . Available from: https://link.springer.com/article/10.1007/s10994-018-5724-2 OpenUrl 20. Dahouda MK , Joe I . A Deep-Learned Embedding Technique for Categorical Features Encoding . IEEE Access . 2021 ; 9 : 114381 – 91 . OpenUrl CrossRef 21. ↵ Pargent F , Pfisterer F , Thomas J , Bischl B . Regularized target encoding outperforms traditional methods in supervised machine learning with high cardinality features . Comput Stat [Internet ]. 2022 Nov 1; 37 ( 5 ): 2671 – 92 . Available from: https://link.springer.com/article/10.1007/s00180-022-01207-6 OpenUrl 22. ↵ Robson B , Boray S , Weisman J . Mining real-world high dimensional structured data in medicine and its use in decision support . Some different perspectives on unknowns, interdependency, and distinguishability. Comput Biol Med [Internet ]. 2022 Feb 1; 141 . Available from: https://pubmed.ncbi.nlm.nih.gov/34971979/ 23. ↵ Rendleman MC , Buatti JM , Braun TA , Smith BJ , Nwakama C , Beichel RR , et al. Machine learning with the TCGA-HNSC dataset: improving usability by addressing inconsistency, sparsity, and high- dimensionality . BMC Bioinformatics [Internet ]. 2019 Jun 17; 20 ( 1 ). Available from: https://pubmed.ncbi.nlm.nih.gov/31208324/ 24. ↵ Hutter F , Kotthoff L , Vanschoren J. The Springer Series on Challenges in Machine Learning Automated Machine Learning Methods, Systems, Challenges . Available from: http://www.springer.com/series/15602 25. Chen T , Guestrin C . XGBoost: A Scalable Tree Boosting System . In: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining [Internet] . New York, NY, USA : Association for Computing Machinery ; 2016 . p. 785–794. (KDD ’16). Available from : doi: 10.1145/2939672.2939785 OpenUrl CrossRef 26. ↵ Breiman L . Random Forests. Mach Learn 2001 451 [Internet]. 2001 Oct; 45 ( 1 ): 5 – 32 . Available from: https://link.springer.com/article/10.1023/A:1010933404324 27. ↵ Lundberg S , Lee SI . A Unified Approach to Interpreting Model Predictions . Adv Neural Inf Process Syst [Internet ]. 2017 May 22;2017-Decem:4766–75. Available from: https://arxiv.org/abs/1705.07874v2 28. ↵ Pedregosa FABIANPEDREGOSA F , Michel V , Grisel OLIVIERGRISEL O , Blondel M , Prettenhofer P , Weiss R , et al. Scikit-learn: Machine Learning in Python Gaël Varoquaux Bertrand Thirion Vincent Dubourg Alexandre Passos PEDREGOSA, VAROQUAUX , GRAMFORT ET AL. Matthieu Perrot. J Mach Learn Res [Internet ]. 2011 ; 12 : 2825 – 30 . Available from: http://scikit-learn.sourceforge.net . OpenUrl 29. ↵ Bacchi S , Tan Y , Oakden-Rayner L , Jannes J , Kleinig T , Koblar S . Machine learning in the prediction of medical inpatient length of stay . Intern Med J [Internet ]. 2022 Feb 1; 52 ( 2 ): 176 – 85 . Available from: https://onlinelibrary.wiley.com/doi/full/10.1111/imj.14962 OpenUrl 30. ↵ Livieris IE , Kotsilieris T , Dimopoulos IF , Pintelas P . Predicting length of stay in hospitalized patients using SSL algorithms . ACM Int Conf Proceeding Ser [Internet ]. 2018 Jun 20; 7 : 16 – 22 . Available from: https://dl.acm.org/doi/10.1145/3218585.3218588 OpenUrl 31. ↵ Huang Z , Dong W , Ji L , Duan H . Outcome Prediction in Clinical Treatment Processes . J Med Syst [Internet ]. 2016 Jan 1; 40 ( 1 ): 1 – 13 . Available from: https://link.springer.com/article/10.1007/s10916-015-0380-6 OpenUrl 32. Hong WS , Haimovich AD , Taylor RA . Predicting hospital admission at emergency department triage using machine learning . PLoS One [Internet ]. 2018 Jul 1; 13 ( 7 ): e0201016 . Available from: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0201016 OpenUrl 33. Lee JT , Hsieh CC , Lin CH , Lin YJ , Kao CY . Prediction of hospitalization using artificial intelligence for urgent patients in the emergency department . Sci Rep [Internet ]. 2021 Dec 1; 11 ( 1 ): 19472 . Available from: https://pmc.ncbi.nlm.nih.gov/articles/PMC8484275/ OpenUrl 34. Sun Y , Heng BH , Tay SY , Seow E . Predicting Hospital Admissions at Emergency Department Triage Using Routine Administrative Data . Acad Emerg Med [Internet ]. 2011 Aug 1; 18 ( 8 ): 844 – 50 . Available from: https://onlinelibrary.wiley.com/doi/full/10.1111/j.1553-2712.2011.01125.x OpenUrl 35. Vlodaver ZK , Anderson JP , Brown BE , Zwank MD . Emergency medicine physicians’ ability to predict hospital admission at the time of triage . Am J Emerg Med [Internet ]. 2019 Mar 1; 37 ( 3 ): 478 – 81 . Available from: https://pubmed.ncbi.nlm.nih.gov/29960659/ OpenUrl 36. Zwank MD , Koops JJ , Adams NR . Provider-in-triage prediction of hospital admission after brief patient interaction . Am J Emerg Med [Internet ]. 2021 Feb 1; 40 : 60 – 3 . Available from: https://pubmed.ncbi.nlm.nih.gov/33348225/ OpenUrl 37. Stocker B , Weiss HK , Weingarten N , Engelhardt K , Engoren M , Posluszny J . Predicting length of stay for trauma and emergency general surgery patients . Am J Surg [Internet ]. 2020 Sep 1; 220 ( 3 ): 757 – 64 . Available from: http://www.americanjournalofsurgery.com/article/S0002961020300672/fulltext OpenUrl 38. Durstenfeld MS , Saybolt MD , Praestgaard A , Kimmel SE . Physician predictions of length of stay of patients admitted with heart failure . J Hosp Med [Internet ]. 2016 Sep 1; 11 ( 9 ): 642 – 5 . Available from: https://onlinelibrary.wiley.com/doi/full/10.1002/jhm.2605 OpenUrl 39. Cui L , Xie X , Shen Z , Lu R , Wang H . Prediction of the healthcare resource utilization using multi- output regression models . IISE Trans Healthc Syst Eng . 2018 Oct 2; 8 ( 4 ): 291 – 302 . OpenUrl 40. Liu V , Kipnis P , Gould MK , Escobar GJ . Length of stay predictions: improvements through the use of automated laboratory and comorbidity variables . Med Care [Internet ]. 2010 Aug; 48 ( 8 ): 739 – 44 . Available from: https://pubmed.ncbi.nlm.nih.gov/20613662/ OpenUrl 41. Stojanovic J , Gligorijevic D , Radosavljevic V , Djuric N , Grbovic M , Obradovic Z. Modeling healthcare quality via compact representations of electronic health records . IEEE/ACM Trans Comput Biol Bioinforma. 2017 May 1; 14 ( 3 ): 545 – 54 . OpenUrl 42. National Institutes of Health (NIH). Value Set Authority Center. Available from: https://vsac.nlm.nih.gov/valueset/expansions?pr=all View the discussion thread. Back to top Previous Next Posted May 05, 2025. Download PDF Supplementary Material Data/Code Email Thank you for your interest in spreading the word about medRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following Development of the Short Hospitalization Predictor (SHoP) Machine Learning Model Across Two Hospitals Message Subject (Your Name) has forwarded a page to you from medRxiv Message Body (Your Name) thought you would like to see this page from the medRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share Development of the Short Hospitalization Predictor (SHoP) Machine Learning Model Across Two Hospitals Richard K. Leuchter , Valiollah Salari , Eilon Gabel medRxiv 2025.05.03.25326935; doi: https://doi.org/10.1101/2025.05.03.25326935 Share This Article: Copy Citation Tools Development of the Short Hospitalization Predictor (SHoP) Machine Learning Model Across Two Hospitals Richard K. Leuchter , Valiollah Salari , Eilon Gabel medRxiv 2025.05.03.25326935; doi: https://doi.org/10.1101/2025.05.03.25326935 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Emergency Medicine Subject Areas All Articles Addiction Medicine (567) Allergy and Immunology (863) Anesthesia (297) Cardiovascular Medicine (4411) Dentistry and Oral Medicine (443) Dermatology (380) Emergency Medicine (606) Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1505) Epidemiology (15205) Forensic Medicine (30) Gastroenterology (1119) Genetic and Genomic Medicine (6574) Geriatric Medicine (666) Health Economics (994) Health Informatics (4511) Health Policy (1365) Health Systems and Quality Improvement (1608) Hematology (537) HIV/AIDS (1263) Infectious Diseases (except HIV/AIDS) (15903) Intensive Care and Critical Care Medicine (1103) Medical Education (620) Medical Ethics (144) Nephrology (666) Neurology (6573) Nursing (345) Nutrition (998) Obstetrics and Gynecology (1139) Occupational and Environmental Health (954) Oncology (3319) Ophthalmology (968) Orthopedics (369) Otolaryngology (420) Pain Medicine (435) Palliative Medicine (129) Pathology (662) Pediatrics (1689) Pharmacology and Therapeutics (691) Primary Care Research (710) Psychiatry and Clinical Psychology (5422) Public and Global Health (9205) Radiology and Imaging (2191) Rehabilitation Medicine and Physical Therapy (1367) Respiratory Medicine (1191) Rheumatology (593) Sexual and Reproductive Health (709) Sports Medicine (529) Surgery (709) Toxicology (99) Transplantation (288) Urology (265) (function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9fe959232cecad07',t:'MTc3OTI1OTIwOA=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00
unpaywall
last seen: 2026-06-13T06:42:57.164913+00:00