Skip to main content
Journal of Clinical Medicine logoLink to Journal of Clinical Medicine
. 2023 Jul 18;12(14):4750. doi: 10.3390/jcm12144750

The Association between Emergency Department Length of Stay and In-Hospital Mortality in Older Patients Using Machine Learning: An Observational Cohort Study

Lijuan Wu 1,2,, Xuanhui Chen 3,, Anna Khalemsky 4, Deyang Li 1, Taoufik Zoubeidi 5, Dominique Lauque 6,7, Mohammed Alsabri 6,8, Zoubir Boudi 9,10, Vijaya Arun Kumar 11, James Paxton 11, Dionyssios Tsilimingras 12, Lisa Kurland 13, David Schwartz 14, Said Hachimi-Idrissi 10,15, Carlos A Camargo Jr 16, Shan W Liu 16, Gabriele Savioli 17, Geroge Intas 18, Kapil Dev Soni 19, Detajin Junhasavasdikul 20, Jose Javier Trujillano Cabello 21, Niels K Rathlev 22, Karim Tazarourte 23,24, Anna Slagman 25, Michael Christ 26, Adam J Singer 27, Eddy Lang 28, Giovanni Ricevuti 29, Xin Li 30,*, Huiying Liang 3,*, Shamai A Grossman 6,*, Abdelouahab Bellou 1,6,10,11,30,*,
Editors: Marcello Covino, Pinchas Halperin
PMCID: PMC10381297  PMID: 37510865

Abstract

The association between emergency department (ED) length of stay (EDLOS) with in-hospital mortality (IHM) in older patients remains unclear. This retrospective study aims to delineate the relationship between EDLOS and IHM in elderly patients. From the ED patients (n = 383,586) who visited an urban academic tertiary care medical center from January 2010 to December 2016, 78,478 older patients (age 60 years) were identified and stratified into three age subgroups: 60–74 (early elderly), 75–89 (late elderly), and ≥90 years (longevous elderly). We applied multiple machine learning approaches to identify the risk correlation trends between EDLOS and IHM, as well as boarding time (BT) and IHM. The incidence of IHM increased with age: 60–74 (2.7%), 75–89 (4.5%), and ≥90 years (6.3%). The best area under the receiver operating characteristic curve was obtained by Light Gradient Boosting Machine model for age groups 60–74, 75–89, and ≥90 years, which were 0.892 (95% CI, 0.870–0.916), 0.886 (95% CI, 0.861–0.911), and 0.838 (95% CI, 0.782–0.887), respectively. Our study showed that EDLOS and BT were statistically correlated with IHM (p < 0.001), and a significantly higher risk of IHM was found in low EDLOS and high BT. The flagged rate of quality assurance issues was higher in lower EDLOS 1 h (9.96%) vs. higher EDLOS 7 h <t 8 h (1.84%). Special attention should be given to patients admitted after a short stay in the ED and a long BT, and new concepts of ED care processes including specific areas and teams dedicated to older patients care could be proposed to policymakers.

Keywords: emergency department, in-hospital mortality, length of stay, boarding time, machine learning, older adults

1. Introduction

Emergency departments (ED) are the first healthcare settings that patients with acute illness encounter prior to admission to the hospital. The imbalance between the demands of ED patients and the availability of ED resources to provide emergency care has caused overcrowding in the ED, which has been identified as one of the main factors compromising timely and efficient care [1]. ED/hospital crowding has become a significant public health problem across the globe. Boarding and overcrowding have been intensified during the COVID-19 pandemic [2].

The time elapsed between ED arrival and ED discharge is defined as ED length of stay (EDLOS). Prolonged EDLOS is believed to be one of the major factors associated with ED overcrowding and affects clinical outcomes adversely [3]. However, the definition of prolonged EDLOS varies across countries, for example, prolonged ED visits have been defined as >4 h in the United Kingdom, >6 h in Canada and the US, and >8 h in Australia [4,5]. Boarding time (BT) is defined as the time spent between the ED decision to admit the patient to the hospital and ED departure time and is considered an important contributor to the EDLOS. Prolonged BT will occupy resources in the ED and potentially affect the outcomes of other patients [6,7].

In our recent meta-analysis and systematic review, we found that there was an association between EDLOS and IHM for patients with EDLOS below 3 h in non-ICU-admitted ED patients [8]. Mohr et al. [3] found that prolonged BT in the ED, thus prolonging EDLOS, is associated with worse clinical outcomes including mortality, particularly in critically ill patients. Although there is a significant association between crowding and EDLOS, the relationship between EDLOS and in-hospital mortality (IHM) remains unclear.

Given the lack of evidence, additional studies are needed to examine the association between EDLOS and IHM using real-world data. This study attempts to fill the gap by finding evidence of the relationship between EDLOS and IHM, which could potentially help to improve patient experiences and outcomes, relieve the stress of ED healthcare providers, create a better working environment, and support hospitals’ managerial decisions and policy making. The aim of this study was to examine the association of EDLOS with IHM among older patients who were admitted to the hospital from the ED.

2. Materials and Methods

2.1. Study Population

All patients admitted to the ED (57,000 visits per year, 150 nurses, 64 senior doctors, 39 residents) of an urban academic tertiary care medical center in the US between January 2010 and December 2016 were collected. The ED has an observation unit which is considered an in-hospital unit. The IHM analyzed in our study includes the patients who died in the observation unit. The EDLOS defined in Figure 1 does not include the time spent in the observation unit. This study was approved by the institutional review board of Beth Israel Deaconess Medical Center, Boston, MA (Approval Number: 2016P-000439). From a total of 383,586 encounters, we excluded those samples who were (a) young patients (age at visit <60 years) (n = 61,765), (b) not admitted to the hospital after an ED visit (i.e., discharge) (n = 242,865), or (c) experienced an unreasonable relative order of several time records (time of triage registration, time of the start of care, time of the disposition decision, and the time at ED departure) to determine the EDLOS (n = 109). For example, the ED entry time was later than the ED exit time. The final retrospective cohort contained 78,847 elderly encounters and was stratified into three age groups based on the World Health Organization criteria for the classification of older persons: the early elderly group (age 60–74 years; n = 38,817; 49.2%), the late elderly group (age 75–89 years; n = 32,261; 40.9%), and the longevous elderly group (age 90 years; n = 7769; 9.9%) (see Figure 2).

Figure 1.

Figure 1

Definition of time spent in the emergency department related to each segment of the care process. This figure is obtained from an open-access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited [8].

Figure 2.

Figure 2

Sample selection process.

2.2. Data Collection and Data Processing

For each ED encounter of the cohort, we extracted demographic and clinical features recorded in the electronic medical records (EMR), including age, gender, race, language (English and non-English), health insurance categories, mode of transport (such as walk-in, ambulance, and helicopter), level of triage acuity score measured using a 5-point scale (i.e., level 1—resuscitation, level 2—emergency, level 3—urgent, level 4—less urgent, and level 5—nonurgent), principal diagnosis codes (i.e., ICD-9 or ICD-10 codes), ED disposition after care (such as ICU and non-ICU), patient medical histories using the Charlson Comorbidity Index, ED waiting time (between triage registration and the start of care), ED boarding time (between the admission decision and departure from the ED), and the EDLOS time (from ED arrival until the patient left the ED) (see Figure 1). We also extracted the quality assurance issues (QAI) flagged by any healthcare provider when they suspected a patient safety event (PSE), defined as a negative health outcome suspected to be related to a medical error during ED care [9]. The outcome of interest was the death during hospitalization. For each age group, variables missing in more than 99% of the population were excluded to reduce the EMR variable dimension. The interquartile range (IQR) technique [10] was used to remove outliers. Specifically, the upper and lower limits were set to 5 times the IQR, and any observation beyond the limits would be considered a potential outlier. One-hot encoding (or dummy variable processing) was used to turn the categorical variables into a binary vector representation.

2.3. Experimental Methodology

This research mainly explored four machine learning prediction models, i.e., Logistic Regression, Random Forest [11], eXtreme Gradient Boosting (XGBoost) [12], and Light Gradient Boosting Machine (LightGBM) [13]. LightGBM contains two novel techniques, Gradient-based One-Side Sampling and Exclusive Feature Bundling for processing a large number of data samples and features, respectively, which becomes a highly efficient gradient boosting decision tree in terms of computational speed and memory consumption. In addition, a popular predictive interpretation technique, the game theory-inspired Shapley Additive exPlanations (SHAP) [14], was applied to explain the predictive model at the individual patient and population level. A positive SHAP value means that the presence of the variable increases the likelihood of the adverse outcome for this sample. A negative SHAP value suggests that the presence of the variable decreases the likelihood of the adverse outcome for a particular patient. If a SHAP value is close to 0, this suggests that the model does not consider the variable relevant to estimating the likelihood.

2.4. Diagnosis Subgroup Analysis

Due to differences in the distribution of EDLOS and BT among different diagnosis populations, it was necessary to conduct subgroup analysis on different main diagnoses to verify the association between EDLOS/BT and IHM. We extracted the main diagnostic information of each patient, which is represented by ICD9/ICD10 codes, and each type was further divided into 3-digit/3-char, 4-digit/4-char, and 5-digit/5-char codes. In order to unify the diagnostic grouping, as shown in Supplementary Figure S1, we first unified the different digit/char codes into 3 digits/chars, then mapped them to their respective ICD9/ICD10 main categories, and finally unified the code categories of ICD9 and ICD10.

2.5. Statistical Analysis

Continuous variables were presented as a mean (standard deviation, SD) for normal distribution or a median (interquartile range, IQR) for non-normal distribution, whereas categorical data were presented as a frequency (percentage). For missing categorical data, a value of 0 was set as a separate category, while for numerical data, missing values were not imputed because the used tree-based machine learning models (e.g., LightGBM) can handle missing values and the optimal null value splitting direction was obtained by automatic learning based on improvement in training performance. The t test or Kruskal–Wallis test was used to test group mean differences for continuous variables, and the Chi-square test, or Fisher’s exact test, was used for categorical variables to check the association. Since the dataset was large enough, 10-fold cross-validation (CV) was applied to evaluate the effectiveness of machine learning models, the original samples were randomly divided into 10 subsamples, where one subsample (i.e., 10%) was retained as the validation data for testing the classifier, and the remaining 9 subsamples (i.e., 90%) were used as training data. Furthermore, the CV process was then repeated 10 times, with each of the 10 subsamples used as the test data only once. The 10 results from the folds were then averaged to produce a single performance estimation. The relationship between EDLOS/BT and IHM was evaluated by stratified analyses using multivariable logistic regression models [odds ratio (OR) and 95% confidence interval (CI)]. The area under the receiver operator characteristic curve (AUROC) and the 95% bootstrapped CI were used to compare the overall prediction performances. Delong’s test [15] (a nonparametric test) was used to calculate the statistical significance for comparing AUROCs of two or more correlated ROC curves. Two-tailed p < 0.05 denoted statistical significance for all comparisons. Data processing and analysis were performed using Python 3.7 with open-source python packages (e.g., “xgboost”, “lightgbm” and “shap”) and scikit-learn libraries.

3. Results

Of the 78,847 encounters meeting the inclusion criteria, IHM occurred in 2975 (3.8%). As shown in Table 1, the median (Q1, Q3) of EDLOS and BT in the elderly population were 366 (271, 495)and 143.0 (104, 219) minutes, respectively. IHM increases with age and is distributed in each group as follows: 2.7% in the 60–74 age group, 4.5% in the 75–89 age group, and 6.3% in the 90 age group. The proportion of males decreased with age (51.7% in the 60–74 age group vs. 33.8% in the 90 age group, p< 0.001). The IQR increased with age (p< 0.001), i.e.ƒ, 882 (2.3%), 859 (2.7%) and 219 (2.8%) for the 60–74, 75–89, and 90 age groups, respectively. Charlson Comorbidity Index scores were higher in early elderly patients than in longevous elderly patients (e.g., for Charlson score >2, 6.0% vs. 1.4%). The walk-in mode of transport was more frequent in the early elderly patients (48.6%), while the ambulance mode was more frequent in the late elderly (59.4%) and longevous elderly patients (70.1%). QAIs were observed in 2.3%, 2.7%, and 2.8% of the 60–74, 75–89, and 90 age groups, respectively.

Table 1.

Characteristics of the study population.

Characteristics Older Patients, Age 60
(n = 78,847)
Early Elderly, Age 60–74
(n = 38,817)
Late Elderly, Age 75–89
(n = 32,261)
Longevous Elderly, Age  90
(n = 7769)
p Value
Age, years, median (Q1, Q3) 75 (67, 84) 67 (63, 70) 82 (78, 85) 92 (91, 95) <0.001
Male, n (%) 37,211 (47.2) 20,052 (51.7) 14,535 (45.1) 2624 (33.8) <0.001
Race, n (%) <0.001
Unknown 1428 (1.8) 654 (1.7) 624 (1.9) 150 (1.9)
White 57,429 (72.8) 26,966 (69.5) 24,167 (74.9) 6296 (81)
Black 11,675 (14.8) 6658 (17.2) 4205 (13) 812 (10.5)
Hispanic 3032 (3.8) 1847 (4.8) 1079 (3.3) 106 (1.4)
Asian 2497 (3.2) 1240 (3.2) 1077 (3.3) 180 (2.3)
Other 2786 (3.5) 1452 (3.7) 1109 (3.4) 225 (2.9)
Language-English, n (%) 68,213 (86.5) 34,919 (90) 26,809 (83.1) 6485 (83.5) <0.001
Insurance, n (%) <0.001
Unknown 3,970 (5) 2147 (5.5) 1494 (4.6) 329 (4.2)
Medicare 54,441 (69) 20,920 (53.9) 26,750 (82.9) 6771 (87.2)
Medicaid 106 (0.1) 72 (0.2) 25 (0.1) 9 (0.1)
Other 20,330 (25.8) 15,678 (40.4) 3992 (12.4) 660 (8.5)
Triage and acuity score, n (%) <0.001
Resuscitation 12,565 (15.9) 5870 (15.1) 5323 (16.5) 1372 (17.7)
Emergent 37,963 (48.1) 18,430 (47.5) 15,837 (49.1) 3696 (47.6)
Urgent 28,095 (35.6) 14,396 (37.1) 11,013 (34.1) 2686 (34.6)
Less urgent 217 (0.3) 117 (0.3) 86 (0.3) 14 (0.2)
Nonurgent 7 (0) 4 (0) 2 (0) 1 (0)
Mode of transport, n (%) <0.001
Unknown 2312 (2.9) 1127 (2.9) 962 (3) 223 (2.9)
Walk-in 32,888 (41.7) 18,863 (48.6) 11,953 (37.1) 2072 (26.7)
Ambulance 43,215 (54.8) 18,592 (47.9) 19,178 (59.4) 5445 (70.1)
Helicopter 340 (0.4) 178 (0.5) 143 (0.4) 19 (0.2)
Other 92 (0.1) 57 (0.1) 25 (0.1) 10 (0.1)
ED waiting time, min, median (Q1, Q3) 10
(6, 29)
11
(6, 33)
10
(5, 27)
9
(5, 23)
<0.001
Length of stay in ED, min, median (Q1, Q3) 366
(271, 495)
370
(272, 503)
360
(269, 488)
363
(272, 487)
<0.001
Boarding time, min, median (Q1, Q3) 143
(104, 219)
145
(104, 223)
141
(103, 214)
144
(105, 218)
<0.001
Charlson score, n (%) <0.001
0 54,001 (68.5) 26,713 (68.8) 21,691 (67.2) 5597 (72)
1 16,995 (21.6) 7613 (19.6) 7632 (23.7) 1750 (22.5)
2 4271 (5.4) 2192 (5.6) 1757 (5.4) 322 (4.1)
>2 3580 (4.5) 2299 (6) 1181 (3.7) 100 (1.4)
Quality Assurance Issue (QAI), n (%) 1960 (2.5) 882 (2.3) 859 (2.7) 219 (2.8) 0.001
Patient Safety Events (PSE), n (%) 129 (0.2) 53 (0.1) 60 (0.2) 16 (0.2) 0.167
ICU admission, n (%) 16,668 (21.1) 7996 (20.6) 7039 (21.8) 1633 (21) <0.001
Death in hospital, n (%) 2975 (3.8) 1046 (2.7) 1440 (4.5) 489 (6.3) <0.001

ED, emergency department; IQR, interquartile range.

Supplementary Table S1 illustrates the characteristics of patients according to IHM (survivors and non-survivors). Supplementary Table S2 shows the distribution of the variables for older patients admitted to ICU versus those not admitted to ICU. Supplementary Table S3 compares the characteristics of survivors and non-survivors in the low EDLOS group (EDLOS < 300 min) and the high EDLOS group (EDLOS 300 min) in the entire elderly population, where the percentage of non-survivors in the low-EDLOS population is higher than in the high-EDLOS population (i.e, 6.1% vs. 2.6%, p< 0.001), and the incidence of QAI in non-survivors of low-EDLOS population is higher than in the high-EDLOS population (i.e., 28.7% vs. 17.9%, p< 0.001).

Figure 3 shows the receiver operator characteristic (ROC) curves of four machine learning models in the three age subgroups. From this figure, we observed that the predictability of IHM decreased as age increased (p < 0.001, Delong’s test). Supplementary Table S4 illustrates the AUROC and corresponding 95% CI for IHM prediction in four age groups based on four machine learning models (i.e., logistic regression, random forest, XGBoost, and LightGBM). For example, AUROCs of the LightGBM model for ages 60–74, 75–89, and 90 years were 0.892 (95% CI, 0.870–0.916), 0.886 (95% CI, 0.861–0.911), and 0.838 (95% CI, 0.782–0.887), respectively. Since the tree-based LightGBM model outperformed the other three models, the LightGBM was chosen as the final predictive classifier for the SHAP explainer.

Figure 3.

Figure 3

The receiver operating characteristic curves of four prediction models (i.e., Logistic Regression, Random Forest, XGBoost, and LightGBM) for three age groups. The dark line represents the mean ROC curves, and the light area represents the corresponding 95% confidence interval.

Figure 4 shows the SHAP values corresponding to the specific EDLOS and BT for each patient in the whole older population (age ≥ 60 years) and three age subgroups, and the mean SHAP values corresponding to all samples per EDLOS or BT in minutes, respectively. Figure 4(a1,b1) shows the relationship between EDLOS/BT (0 t 24 h) and IHM in older patients; when the EDLOS < 5 h or BT 3 h, there was a higher risk of IHM. Furthermore, we defined EDLOS and BT in hours and calculated the median [IQR] of SHAPs as shown in Supplementary Figure S2, which shows the effect of the varying EDLOS and BT (in hours) on IHM. The influence trends of EDLOS on IHM were similar with the increase of EDLOS, SHAP values moved from the positive range to the negative range, and the trend became more obvious with the increase in age (see Figure 4 and Figure S2). For example, for the age 90 group, with the increase of EDLOS, the median [Q1, Q3] of SHAP values first decreased from a positive contribution (e.g., 0.103 [0.060, 0.171] at 2–4 h) to 0 (in about 5 h) and then became a negative contributor (indicating a decreased risk of IHM, e.g., −0.110 [−0.177, −0.084] at 14–16 h). The effect of EDLOS and BT with IHM is highly volatile, but we can still observe an obvious trend from the perspective of big data: lower EDLOS and higher BT were associated with increased risk of IHM.

Figure 4.

Figure 4

Effect of varying emergency department length of stay (EDLOS, in minutes) and boarding time (BT, in minutes) on in-hospital mortality (IHM) for the whole older population and three age subgroups based on the SHAP method. These plots show the IHM risk for a given EDLOS/BT value for all samples. Each cyan dot represents a patient. The higher the SHAP value of EDLOS/BT, the higher risk of IHM due to this feature value. The dark green line represents the average risk of all samples with a given EDLOS/BT value (in minutes).

Figure 5 illustrates the SHAP dependence plots of EDLOS with the ICU and QAI interaction in the older population, from which we can see that most ICU admissions and QAI patients were mainly concentrated in the low EDLOS (e.g., <5 h). Figure 6 shows the SHAP visualization of the top 9 risk factors for predicting IHM in each age subgroup, from which we can see that ICU admission was the most important risk predictor of IHM. QAI, the triage and acuity score, the Charlson score, EDLOS and BT were all important predictive factors of IHM.

Figure 5.

Figure 5

SHAP dependence plots of EDLOS with the ICU admission (A) and QAI (quality assurance issue) (B) interaction in the older population. The higher the SHAP value of a feature, the higher its impact on the risk of IHM. Each dot represents a patient. Dots are colored by the feature value for that person and piled up vertically to show density. Particularly, for binary ICU and QAI variables (i.e., {0,1}), the red dot represents a value of 1, and the blue represents a value of 0. QAI, quality assurance issue; EDLOS, length of stay in the emergency department.

Figure 6.

Figure 6

SHAP visualization for top nine features of the IHM (in-hospital mortality) in three age groups. The higher the SHAP value of a feature, the higher its impact on the risk of IHM. Each dot represents a patient. Dots are colored by the feature value for that person and piled up vertically to show density. Particularly, for binary variables (i.e., {0,1}), the red dot represents a value of 1, and the blue represents a value of 0. QAI, quality assurance issue; EDLOS, emergency department length of stay; Charlson score, Charlson Comorbidity Index.

Supplementary Table S5 shows the distribution of 21 major diagnostic categories. Four major diagnostic categories with mortality rates exceeding 10%, the R00-R99 (20.7%, symptoms, signs and abnormal clinical and laboratory findings, not elsewhere classified), the I00-I99 (28.5%, diseases of the circulatory system), the S00-T88 (10.7%, injury, poisoning and certain other consequences of external causes), and the J00-J99 (13.5%, diseases of the respiratory system). Figure 7 shows the distribution of EDLOS and BT for these four diagnostic subgroups. Figure 8 shows the effect of varying EDLOS and BT (in hours) on IHM for four major diagnostic populations based on the SHAP method, from which we can see that the risk trends of EDLOS and BT on IHM in the four diagnostic subgroups are similar and confirm that lower EDLOS and higher BT have a higher IHM risk. However, different subgroups would have different cutoff values, for example, for the I00-I99 diagnosis subgroup, when BT exceeds 2 h, it has a significant positive effect on the risk of IHM; however, for the S00-T88 diagnosis subgroup, BT shows a higher risk of IHM after more than 4 h.

Figure 7.

Figure 7

Distribution of emergency department length of stay (EDLOS, in minutes) and boarding time (BT, in minutes) of four major diagnostic populations, namely R00-R99 (symptoms, signs and abnormal clinical and laboratory findings, not elsewhere classified), I00-I99 (diseases of the circulatory system), S00-T88 (injury, poisoning and certain other consequences of external causes), and J00-J99 (diseases of the respiratory system).

Figure 8.

Figure 8

Effect of varying emergency department length of stay (EDLOS, in hours) and boarding time (BT, in hours) on in-hospital mortality (IHM) for four major diagnostic populations based on the SHAP method, the R00-R99 (symptoms, signs and abnormal clinical and laboratory findings, not elsewhere classified), the I00-I99 (diseases of the circulatory system), the S00-T88 (injury, poisoning and certain other consequences of external causes), and the J00-J99 (diseases of the respiratory system). The box plots report the median and the interquartile range of the SHAP values of patients within the range of EDLOS and BT.

4. Discussion

Overcrowding can increase EDLOS, which is used by hospital administrators as an indicator of the quality of care delivered in the ED. However, the relationship between the EDLOS and IHM remains unclear and underestimated, and advanced age is an established independent risk factor for IHM. In this study, machine learning methods were used to identify the specific EDLOS and BT associated with increased IHM following ED care of older patients. By quantifying the predictive importance of different EDLOS to IHM, our study showed that lower EDLOS and higher BT were significantly associated with a higher risk of IHM in older patients.

In previous studies, the main method used was Logistic Regression to analyze the relationship between EDLOS and IHM [8]. Since tree-based models consistently outperform standard deep models on tabular-style datasets in many medical applications [16], three other tree-based predictive models (i.e., Random Forest, XGBoost, and LightGBM) were chosen for the comparison. Due to the faster training speed and better accuracy, the highly efficient LightGBM model was used as the final predictive classifier. In addition, the LightGBM model can handle missing values, and the optimal null value splitting direction is obtained by automatic learning based on improvement in training performance. On that basis, the SHAP method [16,17,18] was used to interpret the LightGBM classifier results to analyze the importance of individual features. The SHAP method not only provides local interpretation of inference data, enabling users to analyze key factors that are positively or negatively affecting the model’s decision-making process, but also provides global interpretation, especially from the collective feature importance plots (see Figure 4, Figure 5 and Figure S5).

Although some studies had explored the relationship between EDLOS and IHM, no consistent conclusion had been reached. Some studies realized in different countries have found no specific EDLOS cutoff [19,20,21] and the cutoffs were not uniform among the studies that reported them, such as 1.2 h [22], 1.5 h [23], 2 h [24], 3 h [25], 4 h [26,27,28], 5 h [29], 6 h [30], 8 h [31,32], 12 h [33], and 24 h [34]. In our meta-analysis, we found that low EDLOS increases IHM in non-ICU admitted patients, whatever the age (8). For the three age subgroups, the cutoff (i.e., SHAP value = 0) of EDLOS increased with age, for example, as shown in Figure 4, the approximate cutoffs of early elderly, late elderly, and longevous elderly populations are 3 h, 4 h, and 5 h, respectively, and it seems that high EDLOS is less deleterious in longevous elderly patients than in early and late elderly patients. There is a positive correlation between the risk of IHM and BT, and long BT may have a significant adverse increase of IHM in the older population. In addition, we further analyzed four diagnostic subgroups with high IHM levels (see Figure 7), where lower EDLOS and higher BT are significantly associated with the risk of IHM, and the specific cutoff values will vary depending on the different diagnosis (see Figure 8).

Through the SHAP interpreter method, each patient’s EDLOS or BT feature (in minutes) corresponds to a SHAP value (like the logarithmic of estimate odds ratio). Because of the complexity of ED admission patients, the SHAP trends have a strong volatility with the increase of EDLOS and BT for each age population. Lower EDLOS (e.g., <4 h) had a more significant increase of IHM (see Figure 4 and Figure 8), where the flagged rate of QAI was higher than in high EDLOS (e.g., 9.96% in 1 h vs. 1.84% in 7 h <t 8 h). Therefore, we can speculate that older patients may benefit more from long ED care rather than an accelerated admission. In addition, a clear trend was observed regarding higher BTs having a stronger positive correlation with the risk of IHM in both subgroups (see Figure 4 and Figure 8). Singer et al. [35] have already demonstrated that mortality is increased in boarding patients whatever the age in the ED. That is, under similar EDLOS, longer BT would adversely affect patient outcomes.

The top-ranking risk predictors of IHM were different among the age groups 60–74, 75–89, and 90 years (see Figure 6). The role of risk factors obtained by the SHAP method followed medical common sense. The Charlson comorbidity score has a stronger predictive effect; the higher the Charlson score is, the greater the corresponding SHAP value shows an increased risk of IHM. Patients with severe acuity triage scores from level one to level three showed the highest SHAP value related to a higher risk of IHM. Negative SHAP values indicating a decreased risk of IHM were obtained for patients who entered the ED in a walk-in transport mode. Moreover, patients experiencing QAI had a higher risk of IHM. Our results should be taken into account by hospital policymakers to propose that EDs should be redesigned to include specific areas allowing adequate monitoring of patients with specific teams focused on their care management and to ensure that the best care will be delivered when they stay longer in the ED before admission to the hospital. Moreover, ED healthcare teams must be cautious when deciding to admit a patient to the wards after a short EDLOS in any age group. From our study using artificial intelligence minimizes heterogeneity and allows to understand the precise role of the time spent in the ED on the quality and safety of the care delivered to an heterogeneous population managed in the ED. Many guidelines emphasize the importance of the time during the care process of acute diseases from the prehospital to the ED setting (e.g., “time is brain”, “time is heart”…).

This study has some limitations. First, although we included a large ED cohort observed for seven years (2010–2016), these data do not include recent years, especially the COVID-19 pandemic period. Second, we mainly used the timestamp information related to the length of stay in the ED (such as triage registration time, the start of care time, admission decision time, and ED exit time) and we did not include the entire EMR (e.g., lab tests and treatments), which may further increase the predictive performance. Third, this study is only a retrospective study. A prospective study needs to be designed in the future, in which the evaluation of the ED throughput process needs more attention. Fourth, based on the World Health Organization criteria for the classification of older persons (age 60 years), the older populations were further divided into the early elderly (60–74 years), the late elderly (75–89 years), and the longevous elderly (over 90 years). However, certain developed countries in the West have chosen age 65 as the cutoff point of older patients. Finally, although our results were statistically significant, they only reflect the population of one academic medical center. A multicenter comparative study involving hospitals in different countries or different types of hospital (such as community hospitals) is needed to demonstrate the robustness and relevance of our results, which will provide strong suggestions for policymakers to propose new older patients ED processes of care.

5. Conclusions

This is the first study analyzing a large EMR dataset using machine learning methods to determine the relationship between EDLOS and IHM in older patients. Our study confirms that lower EDLOS and higher BT are correlated with IHM in older patients. ED healthcare providers can improve the care process for patients who will stay a short time in the ED, but they do not have significant impact on the hospital beds availibity. Policymakers, administrators, and ED leaders should propose new procedures to reduce BT and provide dedicated well-trained ED professionals, including special elderly patient care areas in the ED.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/jcm12144750/s1. Table S1.Characteristics of the study emergency department participants according to IHM (survivors and non-survivors). Table S2. Characteristics of the non-ICU and ICU admitted older (≥60) ED patients. Table S3. Characteristics of survivors and non-survivors in the older ED participants according to EDLOS. Table S4. The area under the receiver operator characteristic curve (AUROC) and 95% confidence intervals in predicting in-hospital mortality (IHM). Table S5. Distribution of 21 major diagnostic categories. Figure S1. Flow chart of population classification based on diagnostic codes. Figure S2. Effect of varying emergency department length of stay (EDLOS, in hours) and boarding time (BT, in hours) on death-in-hospital (IHM) for three age groups based on the SHAP method. The box plots report the median and the interquartile range of the SHAP values of patients within the range of EDLOS.

Author Contributions

Conceived and designed the study, A.B.; Methodology, analysis tools and drafting the manuscript, L.W. and X.C.; L.W., X.C. and A.B. are considered as co-first authors; Contributed data and data extraction, A.K.; D.L. (Deyang Li) made some statistic analysis; A.K., T.Z., D.L. (Dominique Lauque), M.A., Z.B., V.A.K., J.P., D.T., L.K., D.S., S.H.-I., C.A.C.J., S.W.L., G.S., G.I., K.D.S., D.J., J.J.T.C., N.K.R., K.T., A.S., M.C., A.J.S., E.L., G.R., X.L., H.L. and S.A.G., reviewed and revised the manuscript critically for scientific content, and all authors gave final approval of the manuscript for publication. A.B. acts as the principal corresponding author, and S.A.G., H.L. and X.L. act as co-corresponding authors. All authors have read and agreed to the published version of the manuscript.

Institutional Review Board Statement

The protocol of this study was approved by the Committee on Clinical Investigations (CCI), the appropriately authorized Institutional Review Board (IRB), and Privacy Board appointed to review research involving human subjects. This action was reviewed via Expedited review. This study has been reviewed under the number 2015P000113 and approved for continuation with a waiver of informed consent and authorization under expedited category #5.

Informed Consent Statement

Patient consent was waived due to the study’s retrospective design and anonymous characteristics.

Data Availability Statement

The clinical data used in this study is not publicly available and restrictions apply to its use. Open reasonable request, the amendment can be requested to the corresponding author (AB) to share the necessary data.

Conflicts of Interest

The authors declare no conflict of interest.

Funding Statement

This research was supported by the Youth Science Fund of the National Natural Science Foundation of China (Grant No. 61802149).

Footnotes

Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

References

  • 1.Savioli G., Ceresa I.F., Gri N., Bavestrello Piccini G., Longhitano Y., Zanza C., Piccioni A., Esposito C., Ricevuti G., Bressan M.A. Emergency department overcrowding: Understanding the factors to find corresponding solutions. J. Pers. Med. 2022;12:279. doi: 10.3390/jpm12020279. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Bouillon-Minois J.-B., Raconnat J., Clinchamps M., Schmidt J., Dutheil F. Emergency department and overcrowding during COVID-19 outbreak; a letter to editor. Arch. Acad. Emerg. Med. 2021;9:e28. doi: 10.22037/aaem.v9i1.1167. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Mohr N.M., Wessman B.T., Bassin B., Elie-Turenne M.-C., Ellender T., Emlet L.L., Ginsberg Z., Gunnerson K., Jones K.M., Kram B., et al. Boarding of critically ill patients in the emergency department. J. Am. Coll. Emerg. Physicians Open. 2020;1:423–431. doi: 10.1002/emp2.12107. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Horwitz L.I., Green J., Bradley E.H. US emergency department performance on wait time and length of visit. Ann. Emerg. Med. 2010;55:133–141. doi: 10.1016/j.annemergmed.2009.07.023. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Forero R., Man N., Ngo H., Mountain D., Mohsin M., Fatovich D., Toloo G., Celenza A., FitzGerald G., McCarthy S., et al. Impact of the four-hour National Emergency Access Target on 30 day mortality, access block and chronic emergency department overcrowding in Australian emergency departments. Emerg. Med. Australas. 2019;31:58–66. doi: 10.1111/1742-6723.13151. [DOI] [PubMed] [Google Scholar]
  • 6.Boudi Z., Lauque D., Alsabri M., Östlundh L., Oneyji C., Khalemsky A., Lojo Rial C., Liu S.W., Camargo C.A., Jr., Aburawi E., et al. Association between boarding in the emergency department and in-hospital mortality: A systematic review. PLoS ONE. 2020;15:e0231253. doi: 10.1371/journal.pone.0231253. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Gabayan G.Z., Derose S.F., Chiu V.Y., Yiu S.C., Sarkisian C.A., Jones J.P., Sun B.C. Emergency department crowding and outcomes after emergency department discharge. Ann. Emerg. Med. 2015;66:483–492. doi: 10.1016/j.annemergmed.2015.04.009. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Lauque D., Khalemsky A., Boudi Z., Östlundh L., Xu C., Alsabri M., Onyeji C., Cellini J., Intas G., Soni K.D., et al. Length-of-Stay in the Emergency Department and In-Hospital Mortality: A Systematic Review and Meta-Analysis. J. Clin. Med. 2023;12:32. doi: 10.3390/jcm12010032. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Alsabri M., Boudi Z., Zoubeidi T., Alfaki I.A., Levy P., Oneyji C., Shan L., Camargo C.A., Jr., Michel P., Tazarourte K., et al. Analysis of risk factors for patient safety events occurring in the emergency department. J. Patient Saf. 2022;18:e124–e135. doi: 10.1097/PTS.0000000000000715. [DOI] [PubMed] [Google Scholar]
  • 10.Vinutha H.P., Poornima B., Sagar B.M. Information and Decision Sciences. Springer; Berlin/Heidelberg, Germany: 2018. Detection of outliers using interquartile range technique from intrusion dataset; pp. 511–518. [Google Scholar]
  • 11.Breiman L. Random forests. Mach. Learn. 2001;45:5–32. doi: 10.1023/A:1010933404324. [DOI] [Google Scholar]
  • 12.Chen T., Guestrin C. XGBoost: A scalable tree boosting system; Proceedings of the 22nd Acm Sigkdd International Conference on Knowledge Discovery and Data Mining; San Francisco, CA, USA. 13–17 August 2016; pp. 785–794. [Google Scholar]
  • 13.Ke G., Meng Q., Finley T., Wang T., Chen W., Ma W., Ye Q., Liu T.-Y. Lightgbm: A highly efficient gradient boosting decision tree. Adv. Neural Inf. Process. Syst. 2017;30:3146–3154. [Google Scholar]
  • 14.Lundberg S.M., Lee S.-I. A unified approach to interpreting model predictions. Adv. Neural Inf. Process. Syst. 2017;30:4765–4774. [Google Scholar]
  • 15.Sun X., Xu W. Fast implementation of DeLong’s algorithm for comparing the areas under correlated receiver operating characteristic curves. IEEE Signal Process. Lett. 2014;21:1389–1393. doi: 10.1109/LSP.2014.2337313. [DOI] [Google Scholar]
  • 16.Lundberg S., Erion G.G., Chen H., Degrave A.J., Prutkin J.M., Nair B.G., Katz R., Himmelfarb J., Bansal N., Lee S. From local explanations to global understanding with explainable AI for trees. Nat. Mach. Intell. 2020;2:56–67. doi: 10.1038/s42256-019-0138-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Lundberg S.M., Erion G., Chen H., DeGrave A., Prutkin J.M., Nair B., Katz R., Himmelfarb J., Bansal N., Lee S.-I. Explainable AI for Trees: From Local Explanations to Global Understanding. arXiv. 2019 doi: 10.1038/s42256-019-0138-9.1905.04610 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Lundberg S.M., Erion G.G., Lee S.-I. Consistent individualized feature attribution for tree ensembles. arXiv. 20181802.03888 [Google Scholar]
  • 19.Cardoso L.T.Q., Grion C., Matsuo T., Anami E.H.T., Kauss I.A.M., Seko L., Bonametti A.M. Impact of delayed admission to intensive care units on mortality of critically ill patients: A cohort study. Crit. Care. 2011;15:R28. doi: 10.1186/cc9975. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Cheng T., Peng Q., Jin Y., Yu H., Zhong P., Gu W., Wang X., Lu Y., Luo L. Access block and prolonged length of stay in the emergency department are associated with a higher patient mortality rate. World J. Emerg. Med. 2022;13:59. doi: 10.5847/wjem.j.1920-8642.2022.006. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Asheim A., Nilsen S.M., Carlsen F., Næss-Pleym L.E., Uleberg O., Dale J., Bjørnsen L.P.B.-W., Bjørngaard J.H. The effect of emergency department delays on 30-day mortality in Central Norway. Eur. J. Emerg. Med. 2019;26:446–452. doi: 10.1097/MEJ.0000000000000609. [DOI] [PubMed] [Google Scholar]
  • 22.Groenland C.N.L., Termorshuizen F., Rietdijk W.J.R., van den Brule J., Dongelmans D.A., de Jonge E., de Lange D.W., de Smet A.M.G.A., de Keizer N.F., Weigel J.D., et al. Emergency department to ICU time is associated with hospital mortality: A registry analysis of 14,788 patients from six university hospitals in The Netherlands. Crit. Care Med. 2019;47:1564. doi: 10.1097/CCM.0000000000003957. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Siletz A., Jin K., Cohen M., Lewis C., Tillou A., Cryer H.M., Cheaito A. Emergency department length of stay in critical nonoperative trauma. J. Surg. Res. 2017;214:102–108. doi: 10.1016/j.jss.2017.02.079. [DOI] [PubMed] [Google Scholar]
  • 24.Mowery N.T., Dougherty S.D., Hildreth A.N., Holmes IV J.H., Chang M.C., Martin R.S., Hoth J.J., Meredith J.W., Miller P.R. Emergency department length of stay is an independent predictor of hospital mortality in trauma activation patients. J. Trauma Acute Care Surg. 2011;70:1317–1325. doi: 10.1097/TA.0b013e3182175199. [DOI] [PubMed] [Google Scholar]
  • 25.Aitavaara-Anttila M., Liisanantti J.H., Raatiniemi L., Ohtonen P., Ala-Kokko T. Factors related to delayed intensive care unit admission from emergency department—A retrospective cohort study. Acta Anaesthesiol. Scand. 2019;63:939–946. doi: 10.1111/aas.13355. [DOI] [PubMed] [Google Scholar]
  • 26.Paton A., Mitra B., Considine J. Longer time to transfer from the emergency department after bed request is associated with worse outcomes. Emerg. Med. Australas. 2019;31:211–215. doi: 10.1111/1742-6723.13120. [DOI] [PubMed] [Google Scholar]
  • 27.Ashkenazi I., Gefen L., Hochman O., Tannous E. The 4-hour target in the emergency department, in-hospital mortality, and length of hospitalization: A single center-retrospective study. Am. J. Emerg. Med. 2021;47:95–100. doi: 10.1016/j.ajem.2021.03.049. [DOI] [PubMed] [Google Scholar]
  • 28.Aletreby W.T., Brindley P.G., Balshi A.N., Huwait B.M., Alharthy A.M., Madi A.F., Ramadan O.E., Noor A.S.N., Alzayer W.S., Alodat M.A., et al. Delayed intensive care unit admission from the emergency department: Impact on patient outcomes. A retrospective study. Rev. Bras. Ter. Intensiva. 2021;33:125–137. doi: 10.5935/0103-507X.20210014. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Jones E.M., Boehme A.K., Aysenne A., Chang T., Albright K.C., Burns C., Beasley T.M., Martin-Schild S. Prolonged emergency department length of stay as a predictor of adverse outcomes in patients with intracranial hemorrhage. J. Crit. Care Med. 2015;2015:526319. doi: 10.1155/2015/526319. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Stey A.M., Kanzaria H.K., Dudley R.A., Bilimoria K.Y., Knudson M.M., Callcut R.A. Emergency department length of stay and mortality in critically injured patients. J. Intensive Care Med. 2022;37:278–287. doi: 10.1177/0885066621995426. [DOI] [PubMed] [Google Scholar]
  • 31.Chen H.-C., Lee W.-C., Chen Y.-L., Fang H.-Y., Chen C.-J., Yang C.-H., Hang C.-L., Fang C.-Y., Yip H.-K., Wu C.-J. The impacts of prolonged emergency department length of stay on clinical outcomes of patients with ST-segment elevation myocardial infarction after reperfusion. Intern. Emerg. Med. 2016;11:107–114. doi: 10.1007/s11739-015-1330-5. [DOI] [PubMed] [Google Scholar]
  • 32.Mitra B., Cameron P.A., Archer P., Bailey M., Pielage P., Mele G., Smit D.V., Newnham H. The association between time to disposition plan in the emergency department and in-hospital mortality of general medical patients. Intern. Med. J. 2012;42:444–450. doi: 10.1111/j.1445-5994.2011.02502.x. [DOI] [PubMed] [Google Scholar]
  • 33.Choi W., Woo S.H., Kim D.H., Lee J.Y., Lee W.J., Jeong S., Cha K., Youn C.S., Park S. Prolonged length of stay in the emergency department and mortality in critically ill elderly patients with infections: A retrospective multicenter study. Emerg. Med. Int. 2021;2021:9952324. doi: 10.1155/2021/9952324. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Verma A., Shishodia S., Jaiswal S., Sheikh W.R., Haldar M., Vishen A., Ahuja R., Khatai A.A., Khanna P. Increased Length of Stay of Critically Ill Patients in the Emergency Department Associated with Higher In-hospital Mortality. Indian J. Crit. Care Med. Peer-Rev. Off. Publ. Indian Soc. Crit. Care Med. 2021;25:1221. doi: 10.5005/jp-journals-10071-24018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Singer A.J., Thode H.C., Jr., Viccellio P., Pines J.M. The association between length of emergency department boarding and mortality. Acad. Emerg. Med. 2011;18:1324–1329. doi: 10.1111/j.1553-2712.2011.01236.x. [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Data Availability Statement

The clinical data used in this study is not publicly available and restrictions apply to its use. Open reasonable request, the amendment can be requested to the corresponding author (AB) to share the necessary data.


Articles from Journal of Clinical Medicine are provided here courtesy of Multidisciplinary Digital Publishing Institute (MDPI)

RESOURCES