Next Article in Journal
The Prevalence of Demodex spp. Infestation in Dermatological Patients in Northern Poland
Next Article in Special Issue
Avoided and Avoidable Deaths with the Use of COVID-19 Convalescent Plasma in Italy during the First Two Years of Pandemic
Previous Article in Journal
Diagnostic Challenges and Management of Relapsing Polychondritis with Large-Airway Involvement: A Case Series and Literature Review
Previous Article in Special Issue
COVID-19 in Brazilian Pediatric Patients: A Retrospective Cross-Sectional Study with a Predictive Model for Hospitalization
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Tracing In-Hospital COVID-19 Outcomes: A Multistate Model Exploration (TRACE)

by
Hamed Mohammadi
1,
Hamid Reza Marateb
1,2,*,
Mohammadreza Momenzadeh
3,
Martin Wolkewitz
4 and
Manuel Rubio-Rivas
5
1
Biomedical Engineering Department, Engineering Faculty, University of Isfahan, Isfahan 81746-73441, Iran
2
Department of Automatic Control (ESAII), Biomedical Engineering Research Centre (CREB), Universitat Politèncicna de Catalunya (UPC), 08028 Barcelona, Spain
3
Department of Artificial Intelligence, Smart University of Medical Sciences, Tehran 1553-1, Iran
4
Institute of Medical Biometry and Statistics, Faculty of Medicine and Medical Center, University of Freiburg, 79104 Freiburg, Germany
5
Department of Internal Medicine, Bellvitge University Hospital, Hospitalet de Llobregat, 08907 Barcelona, Spain
*
Author to whom correspondence should be addressed.
Life 2024, 14(9), 1195; https://doi.org/10.3390/life14091195
Submission received: 5 August 2024 / Revised: 7 September 2024 / Accepted: 18 September 2024 / Published: 21 September 2024

Abstract

:
This study aims to develop and apply multistate models to estimate, forecast, and manage hospital length of stay during the COVID-19 epidemic without using any external packages. Data from Bellvitge University Hospital in Barcelona, Spain, were analyzed, involving 2285 hospitalized COVID-19 patients with moderate to severe conditions. The implemented multistate model includes transition probabilities and risk rates calculated from transitions between defined states, such as admission, ICU transfer, discharge, and death. In addition to examining key factors like age and gender, diabetes, lymphocyte count, comorbidity burden, symptom duration, and different COVID-19 waves were analyzed. Based on the model, patients hospitalized stay an average of 11.90 days before discharge, 2.84 days before moving to the ICU, or 34.21 days before death. ICU patients remain for about 24.08 days, with subsequent stays of 124.30 days before discharge and 35.44 days before death. These results highlight hospital stays’ varying durations and trajectories, providing critical insights into patient flow and healthcare resource utilization. Additionally, it can predict ICU peak loads for specific subgroups, aiding in preparedness. Future work will integrate the developed code into the hospital’s Health Information System (HIS) following ISO 13606 EHR standards and implement recursive methods to enhance the model’s efficiency and accuracy.

1. Introduction

Infectious diseases caused by microorganisms that invade the body can range from mild to severe and are transmitted directly and indirectly [1]. Despite advances in controlling many infections, humans remain vulnerable to various illnesses [2]. Coronavirus disease is caused by the acute respiratory syndrome coronavirus 2 (SARS-CoV-2) [3]. Coronavirus Disease 2019 (COVID-19) rapidly spread worldwide, resulting in over seven million deaths. The World Health Organization declared it a global pandemic on 11 March 2020. By 31 December 2023, WHO reported over 7.7 billion infections and more than 7 million deaths [4]. In 2020, COVID-19 became the third leading cause of death, mainly affecting older adults and those with underlying conditions. CDC data from 2020 to 2022 highlighted that unvaccinated individuals aged 50 and older faced a significantly higher risk of death than those under 30 [5].
Multi-state models offer a flexible framework for describing a person’s life history in relation to time and events. They are defined as random processes and are well-suited for analyzing longitudinal data or repeated events [6,7,8].
Hospital costs are closely tied to the length of stay, which can vary widely depending on patient characteristics, social conditions, and treatment complexity [9]. Shorter stays generally lead to better outcomes, including reduced infection risks and mortality, while lowering costs [10,11]. As a result, practical tools are needed to identify at-risk patients and optimize care quickly.
The investigations carried out on multi-state models for the analysis of survival in COVID-19 are as follows:
Hung et al. conducted a study investigating the relationship between right ventricular (RV) phenotypes and mortality in ICU patients with COVID-19-induced ARDS. Their analysis showed that RV involvement fluctuated, with patients displaying acute cor pulmonale in the final echocardiographic exam facing the highest mortality risk [12]. Gonzalez et al. explored the role of neutrophil extracellular traps (NETs) and platelet activation in predicting clinical outcomes in COVID-19 patients. Their study of 204 patients, categorized by clinical severity, found that elevated cell-free DNA (cfDNA), citrullinated histone H3 (CitH3), and P-selectin levels were linked to more severe outcomes. Notably, higher CitH3 and P-selectin levels were associated with an increased risk of ICU transfer and death [13]. Edmondson et al. analyzed the length of stay (LOS) in the emergency department for patients with substance use disorder, using a multi-state model to identify factors influencing the time spent in different stages of care and the key variables affecting the duration of each state [14].
Hazard et al. utilized multi-state models to analyze the clinical progression of hospitalized COVID-19 patients, particularly in cases of severe pneumonia requiring intensive care, ventilation, or oxygenation. Their study provided estimates of the risks and probabilities of transitions between clinical states, helping to quantify the average duration patients spent in critical care settings like ICUs and on invasive ventilation [15]. Jarrett et al. conducted a cohort study to assess the impact of air pollution on COVID-19 severity and recovery by analyzing individual patient data. They evaluated outcomes like ICU worsening, death, recovery, and discharge followed by death, using a multi-state model to estimate transmission risks [16]. Relan et al. investigated oxygen use requirements in COVID-19 patients, focusing on the type and duration of different oxygen therapies. Using a multi-state model, they analyzed hospitalization periods, examining transitions between increasing levels of respiratory support and recovery. Their study, conducted on a hospital cohort, also explored COVID-19 patients with cardiovascular complications [17].
Abbas et al. conducted a retrospective cohort study using a fully parametric multistate model within a Bayesian framework to estimate the competing risks of death and discharge among hospitalized COVID-19 patients and uninfected patients [18]. Amdid et al. analyzed the clinical progression of COVID-19 with a six-state model and Poisson regression, focusing on factors like diabetes duration, age, and the impact of diabetes-related complications and drugs [19]. Shaw et al. performed a cohort analysis on PCR-confirmed COVID-19 patients, using multivariate Cox regression to study transmission and outcomes such as discharge, readmission, and mortality [20]. A study in Milan used a multi-state model to evaluate COVID-19 patients over time, estimating probabilities and timing of different events [21]. Mehri et al. identified significant associations between COVID-19 mortality and various clinical and laboratory factors through their systematic review and meta-analysis. Specifically, an increased white blood cell (WBC) count (Odds Ratio (OR) = 1.42, p-value = 0.023), decreased lymphocyte levels (OR = 1.68, p-value < 0.001), elevated blood urea nitrogen (BUN) (OR = 1.05, p-value = 0.046), increased creatinine (OR = 1.82, p-value = 0.001), and vitamin D deficiency (OR = 2.64, p-value < 0.001) were significantly associated with higher mortality. Additionally, comorbidities such as diabetes (OR = 1.76, p-value < 0.001), hypertension (OR = 1.64, p-value = 0.002), cardiovascular disease (CVD) (OR = 1.74, p-value < 0.001), and chronic kidney disease (CKD) (OR = 2.27, p-value < 0.001) were also found to be significantly linked to increased mortality from COVID-19 [22]. These findings emphasize the need for effective hospital capacity planning to address increased demand for ICU beds and ventilators.
The COVID-19 pandemic has created significant challenges, including increased demand for hospital and ICU beds and ventilators, leading to overcrowding and reduced capacity. Effective planning based on individual patient records and future projections is crucial for managing hospital capacity and tracking patient trends. Additionally, the territorial decentralization of health policy complicates epidemic management, as divided healthcare services often result in inefficiencies [23]. The pandemic has highlighted how decentralization, driven by political rather than managerial criteria, can disrupt the healthcare system’s effectiveness [24].
Spain’s healthcare system is grappling with an epidemic crisis intensified by cost containment, instability among health personnel, and structural challenges [25]. A study on the duration of hospitalization for COVID-19 patients showed that hospital stays ranged from 2 to 10 days in the United States, 1 to 6 days in Italy, and 5 to 19 days in Germany, with an average of 6 days in Spanish hospitals [26]. The spread of COVID-19 has posed a significant challenge, causing substantial damage in Spain [27].
The existing literature on hospital length of stay during the COVID-19 epidemic largely relies on multistate models implemented through external packages, particularly in R. However, this approach often requires specific toolboxes and limits flexibility in embedding these models into diverse healthcare systems. In contrast, our study fills this gap by developing a multistate model without external packages or toolboxes, making it easily adaptable to various environments, including hospital dashboards. This study aims to estimate, forecast, and manage hospital length of stay during the COVID-19 epidemic using a custom-implemented multistate model applicable across platforms without additional software. We focus on a hospital in Spain, detailing the data analysis, the steps involved in our model’s development and estimation, and the results achieved. This approach enhances accessibility and practicality for healthcare providers, offering a straightforward integration into hospital management systems.

2. Materials and Methods

2.1. Materials

We analyzed data from 2285 hospitalized COVID-19 patients at Bellvitge University Hospital in Barcelona, Spain, to implement and evaluate the 4-state model proposed in this study. These patients admitted between March 2020 and February 2021 experienced outcomes such as in-hospital mortality, discharge, or transfer to other medical facilities. The study period was categorized into three pandemic waves in Spain [28]:
  • First period: From the beginning of the pandemic until 21 June 2020.
  • Second period: From 22 June to 6 December 2020.
  • Third period: From 7 December 2020 to 14 March 2021.
To be included in this study, patients must be 18 years or older, have SARS-CoV-2 infection confirmed by Reverse Transcription Polymerase Chain Reaction (RT-PCR), and have not received therapeutic interventions prior to hospitalization. Key variables considered were age, gender, Charlson Comorbidity Index (categorized as 0 and greater than 0), and inflammatory markers such as C-reactive protein (mg/L), lactate dehydrogenase (U/L), D-dimer (ng/mL), and lymphocytes (×106/L). The follow-up began at the time of hospital admission (time zero) and lasted up to 45 days [29,30]. A representative dataset is available in Supplementary Material S1.

2.2. Methods

This section calculates the transition matrix, transition probabilities, and their related relationships to implement the 4-state model. The flowchart associated with the 4-state model is shown below.
First, the transition matrix is calculated from the available data, illustrating the transitions between different states. This matrix quantifies the number of transitions, with rows representing the ‘from’ state and columns the ‘to’ state. Entries with no recorded transitions remain zero. Based on previous studies [31], the transition probability for the 4-state model can be derived by calculating the transition intensity, which reflects the average number of transitions per unit of time (e.g., every three units).
For the proposed 4-state model, these transition intensities are determined using the following matrix:
( q 12 + q 13 + q 14 ) q 12 q 13 q 14 q 21 ( q 21 + q 23 + q 24 ) q 23 q 24 0 0 0 0 0 0 0 0
where q i j represents the transition from state i to state j; these indices are defined in Figure 1.
Furthermore, to calculate the probability of transition based on the transition intensity, the following relationships apply:
P 11 t = e ( q 12 + q 13 + q 14 ) P 12 ( t ) = q 12 q 21 + q 23 + q 24 ( q 12 + q 13 + q 14 ) ( e ( q 12 + q 13 + q 14 ) t e q 21 + q 23 + q 24 t ) P 13 ( t ) = q 13 q 12 + q 13 + q 14 ( 1 e ( q 12 + q 13 + q 14 ) t ) P 14 t = q 14 q 12 + q 13 + q 14 1 e q 12 + q 13 + q 14 t = 1 ( P 11 t + P 12 t + P 13 t P 21 ( t ) = q 21 q 13 + q 12 + q 14 ( q 21 + q 23 + q 24 ) ( e ( q 21 + q 23 + q 24 ) t e q 13 + q 12 + q 14 t ) P 22 t = e q 21 + q 23 + q 24 t P 23 ( t ) = q 23 q 21 + q 23 + q 24 ( 1 e ( q 21 + q 23 + q 24 ) t ) P 24 t = 1 ( P 21 t + P 22 t + P 23 t )
where, P i j represents the probability of transition from state i to state j.
The matrix illustrating the related relationships can be displayed as follows:
P 11 ( t ) P 12 ( t ) P 13 ( t ) P 14 ( t ) P 21 ( t ) P 22 ( t ) P 23 ( t ) P 24 ( t ) P 31 ( t ) P 32 ( t ) P 33 ( t ) P 34 ( t ) P 41 ( t ) P 42 ( t ) P 43 ( t ) P 44 ( t )
This matrix displays the transition probabilities from one state to another. The code related to the above items is provided in Supplementary Material S2.
Figure 2 shows the flowchart of the implementation steps based on the written programming code.

2.3. Statistical Analysis

2.3.1. Sub-Group Analysis

In this study, multistate analysis was applied to both the entire dataset and various sub-groups. Given the rapid spread of the coronavirus and evidence suggesting that increasing age leads to distinct physiological and pathological changes during infection [32], one analysis focused on age, categorizing patients into the following groups: less than 45 years, 45 to 54 years, 55 to 64 years, 65 to 74 years, and over 74 years [33]. Additionally, research has shown gender differences and the impact of diabetes on immunity and response to infectious diseases in both women and men. Therefore, another analysis was conducted based on gender and the presence of diabetes to explore these factors [34,35].
One sub-group focused on reducing lymphocytes, a key laboratory parameter often observed in COVID-19 infections, as it plays an essential role in disease prognosis [34]. Another sub-group analysis was conducted based on Charlson’s Comorbidity Index (CCI), a widely recognized tool for assessing survival rates in individuals with underlying diseases. For both CCI and lymphocyte levels, cutoff values were determined using the Youden Index to maximize sensitivity and specificity. The Youden Index (J) is an effective measure of a diagnostic test’s performance, helping to accurately classify outcomes by evaluating the balance between sensitivity (correctly identifying deaths) and specificity (correctly identifying discharges).
In addition to the previously mentioned sub-group analyses, we created a grouping based on the time between the onset of symptoms and the patient’s admission to the hospital, referred to as symptom duration. We calculated the median symptom duration and divided the patients into two sub-groups: those with less than the median duration and those greater than or equal to the median. This categorization enabled us to assess how the timing of medical attention influenced disease progression and patient outcomes.

2.3.2. Statistical Methods

We employed several statistical methods to assess the differences between discharged patients and those who experienced in-hospital mortality. Continuous variables, such as age and lymphocyte count, were summarized using mean, standard deviation (SD), and median with minimum and maximum values. Categorical variables, including gender, diabetes status, and the Charlson Comorbidity Index, were summarized as counts and percentages. The statistical significance of differences between the two groups (discharged/death) was evaluated using the chi-square test for categorical variables. The Shapiro–Wilk test was used to assess the normality of continuous variables. For variables with a normal distribution, comparisons between groups were made using the independent t-test. The Mann–Whitney U test was applied to variables that did not follow a normal distribution. We used the Chi-square test to identify significant associations between categorical variables.
In this study, we assessed the distribution and relationships between symptom duration and length of stay (LOS) for COVID-19 patients across different pandemic waves using various statistical methods. The median of the symptom duration was also calculated, and the dichotomized symptom duration was also analyzed. Given the non-normal distribution of the variables, Spearman’s rank-order correlation was employed to evaluate the relationship between symptom duration and LOS. Additionally, a Pearson Chi-Square test was used to assess the association between categorical variables related to COVID-19 outcomes and the different waves. The Kruskal–Wallis test was applied to compare LOS across the three waves, with post hoc pairwise comparisons adjusted using the Bonferroni correction for multiple comparisons. The statistical analysis was conducted using IBM SPSS Statistics for Windows, Version 29.0 (Released 2022; IBM Corp., Armonk, NY, USA). Multi-state modeling was performed using MATLAB version 9.12 (R2022b) (Released 2022; The MathWorks Inc., Natick, MA, USA). A p-value of less than 0.05 was considered statistically significant.

3. Results

Table 1 summarizes the key characteristics and outcomes of the study population, including age, gender, diabetes status, lymphocyte count, and Charlson Comorbidity Index, comparing patients who were discharged with those who experienced in-hospital mortality. The p-values indicate the statistical significance of the differences observed between the groups.
CCI categories of (0 vs. >1) were defined by maximizing Youden’s J-Index. The related sensitivity, specificity, and AUC were 70% [CI 95: 65–74%], 55% [CI 95%: 53–57%], and 0.62 [CI 95%: 0.59–0.65], respectively. Such indices for lymphocyte categories (>910 × 106/L vs. <910 × 106/L) were 55% [CI 95%: 52–57%], 68% [CI 95%: 64–72%], and 0.61 [CI 95%: 0.59–0.64], respectively. The receiver operating characteristic (ROC) plots for CCI and Lymphocyte, including the CI 95% plots, are provided in Supplementary Figures S1 and S2.
Moreover, the dataset used in this study was divided according to the defined COVID-19 waves for sub-group analysis, showing that 61% of the data correspond to the first wave, 19% to the second wave, and 20% to the third wave.
Spearman’s correlation revealed a weak but significant negative relationship between symptom duration and LOS (r = −0.094, p-value < 0.001). Moreover, the dichotomized symptom duration (<7 vs. ≥7 days) was weakly associated with the outcome variable (death/discharge) (p-value < 0.001; Phi = −0.113). The Pearson Chi-Square test showed no significant association between the outcome variable (death/discharge) and the COVID-19 waves (p-value = 0.320). The Kruskal–Wallis test identified significant differences in LOS across the three waves (p-value < 0.001). In the pairwise comparisons, LOS was significantly higher in Wave 2 compared to Wave 1 (adjusted p < 0.001) and also significantly higher in Wave 3 compared to Wave 1 (adjusted p-value <0.001), while there was no significant difference between Wave 2 and Wave 3 (adjusted p-value = 1.000).
Based on the multistate model analysis of COVID-19 data, the estimated length of stay (LOS) for each transition between states is as follows: patients hospitalized stay an average of 11.90 days before being discharged, 2.84 days before moving to the ICU, or 34.21 days before death. Patients in the ICU remain there for about 24.08 days on average, with subsequent stays of 124.30 days before discharge and 35.44 days before death. These results highlight the varying durations and trajectories of hospital stays for COVID-19 patients, providing critical insights into patient flow and healthcare resource utilization.
The Results section presents a series of stacked probability plots derived from the 4-state model for in-hospital COVID-19 patients. These figures provide a comprehensive visual representation of the transitions between different states of patient outcomes over time. The analysis includes the overall patient population and various subgroups to highlight differences based on specific characteristics.
We first provide the data related to the time of onset of symptoms and the admission time, as illustrated in Figure 3.
Figure 4 presents the output of the four-state model for the complete dataset of hospitalized COVID-19 patients, capturing the probabilities of transitioning between different states, including hospitalization, discharge, transfer to other facilities, and in-hospital mortality.
Figure 5 breaks down the four-state model by gender, displaying separate plots for (a) female and (b) male patients. This subgroup analysis elucidates potential gender-based differences in patient outcomes and transition probabilities. Figure 6 presents the four-state model outputs stratified by age groups, revealing how the probabilities of different outcomes vary across age categories. Figure 7 focuses on the impact of diabetes status on patient outcomes, showing separate plots for (a) non-diabetic and (b) diabetic patients, highlighting the differences in the transition probabilities between these groups.
Figure 8 presents the four-state model results based on lymphocyte counts, with plots for (a) patients with lymphocyte counts greater than 910 and (b) patients with lymphocyte counts less than 910. This analysis highlights the importance of lymphocyte levels as a key laboratory parameter in predicting patient outcomes. Figure 9 explores the four-state model outcomes according to the Charlson Comorbidity Index (CCI), showing plots for (a) patients with a CCI of 0 and (b) patients with a CCI greater than 0, illustrating the impact of underlying comorbidities on the progression of COVID-19 in hospitalized patients.
Finally, the results of dataset selection based on the different COVID-19 waves are presented in Figure 10.
These figures collectively provide a detailed overview of the dynamics and heterogeneity in patient outcomes, facilitating a deeper understanding of the factors influencing the prognosis of hospitalized COVID-19 patients.

4. Discussion

The stacked probability plot generated by the multi-state model clearly visualizes the evolving probabilities of patients transitioning between different health states (hospital admission, ICU, discharge, and death) over time. This graphical representation effectively captures how, at any given time, a patient is likely to be in one of these states. The model calculates these transition probabilities based on an empirically derived transition matrix built from observed patient data. The matrix exponentiation ensures that the probabilities of staying in or moving between states are accurately represented at each time point.
Additionally, the model allows for incorporating specific patient subgroups by adjusting the transition matrix according to relevant covariates, such as age or comorbidity index, making the stacked probability plot a flexible tool for understanding the heterogeneity in patient outcomes. This visualization benefits clinicians and healthcare planners as it helps assess hospital resource needs over time, such as ICU occupancy or discharge rates, and could be used to predict the expected patient flow during future pandemic waves or similar public health crises.
The analysis of death probabilities across different subgroups using the four-state model reveals significant insights into the factors influencing in-hospital mortality among COVID-19 patients.
The overall death probability in the patient cohort highlights the severity of COVID-19 among hospitalized individuals (Figure 4). The model indicates that a considerable portion of patients transitioned to mortality, underscoring the critical need for effective clinical interventions and healthcare resources to manage severe cases. This finding aligns with other studies that have shown high mortality rates among hospitalized COVID-19 patients, emphasizing the importance of early and aggressive treatment strategies.
The gender-specific analysis shows distinct differences in death probabilities between male and female patients. Male patients exhibited a higher probability of death compared to females (Figure 5). This finding is consistent with the existing literature suggesting that men may have a higher risk of severe outcomes from COVID-19 due to differences in immune response and comorbid conditions. Studies have also indicated that hormonal differences and lifestyle factors may contribute to this disparity [35,36].
The age-stratified plots reveal a clear trend: death probability increases with age. Patients over 75 years (B4) showed the highest probability of mortality, while those younger than 45 years (B0) had the lowest (Figure 6). This trend reflects the greater vulnerability of older adults to severe COVID-19 outcomes, likely due to a combination of weaker immune responses and a higher prevalence of underlying health conditions in older populations. Similar findings have been reported in other studies, highlighting age as a critical factor in COVID-19 mortality [37].
The subgroup analysis based on diabetes status indicates that diabetic patients have a higher probability of death than non-diabetic patients (Figure 7). This aligns with the understanding that diabetes is a significant risk factor for severe COVID-19, possibly due to impaired immune function and increased likelihood of other comorbidities [38]. Previous research has also demonstrated that diabetes can exacerbate the severity of viral infections, further increasing mortality risk [39].
Patients with lymphocyte counts less than 900 had a higher probability of death compared to those with counts greater than 900 (Figure 8). A low lymphocyte count is associated with a poorer prognosis in COVID-19 patients, reflecting the importance of lymphocyte levels as a marker for immune competence and disease severity. This finding supports the use of lymphocyte count as a prognostic indicator in clinical settings [40,41].
The analysis based on the Charlson Comorbidity Index (CCI) shows that patients with a CCI greater than 0 had a significantly higher probability of death compared to those with a CCI of 0 (Figure 9). This highlights the impact of pre-existing comorbidities on COVID-19 outcomes, with higher CCI scores indicating a greater burden of chronic illnesses that exacerbate the risk of mortality. These findings underscore the need for tailored care strategies for patients with multiple comorbidities [42,43].
The association between COVID-19 waves, symptom duration, and patient outcomes in our study provides critical insights into how the timing of disease progression and external pandemic factors influenced patient prognosis. The data revealed that the length of stay (LOS) significantly varied across the three COVID-19 waves, with patients in the second and third waves experiencing longer hospitalizations compared to those in the first wave. This may reflect changes in the clinical management of COVID-19, as later waves saw more severe cases due to the emergence of new variants and the adjustment of treatment protocols as healthcare systems adapted to the pandemic. Additionally, the dichotomized symptom duration (<7 vs. ≥7 days) was weakly associated with the outcome variable (death/discharge). However, the analysis showed no significant association between COVID-19 waves and patient outcomes (p = 0.320), indicating that while LOS differed across waves, the mortality risk was not directly tied to specific pandemic periods.
One limitation of the method presented in this study is its reliance on data from a single hospital, which may limit the generalizability of the results to other settings with different healthcare infrastructures or patient demographics. Additionally, the multistate model, while flexible, assumes that the transition intensities between states remain constant over time, which may not fully capture the dynamic nature of disease progression, especially in the context of rapidly evolving clinical practices during the COVID-19 pandemic. Finally, some key variables, such as vaccination status, were not included in the analysis, potentially impacting the accuracy of the model’s predictions.

5. Conclusions

The multistate model’s analysis reveals that age, low lymphocyte count, and a higher Charlson Comorbidity Index (CCI) significantly influenced the transition probabilities between different health states in COVID-19 patients. Interestingly, while diabetes diagnosis alone did not show a substantial effect in subgroup analysis, the importance of CCI suggests that the overall burden of comorbidities significantly impacts transition probabilities more than individual conditions like diabetes. It indicates that a comprehensive evaluation of multiple comorbidities is crucial for understanding patient trajectories. These findings emphasize the need for targeted strategies to manage high-risk groups with multiple comorbidities, focusing on enhancing monitoring and timely interventions. Future work will integrate the developed code into the hospital’s Health Information System (HIS) following ISO 13606 electronic health record (EHR) standards [44], with plans to implement a recursive method to enhance further the model’s efficiency and accuracy in predicting hospital length of stay and patient transitions.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/life14091195/s1, Supplementary Materials S1: A representative sample of the analyzed dataset, Supplementary Materials S2: The MATLAB code of the non-parametric multi-state model, Supplementary Figure S1: ROC curve for Charlson Comorbidity Index (CCI) with 95% confidence intervals, Supplementary Figure S2: ROC curve for lymphocyte levels with 95% confidence intervals.

Author Contributions

Conceptualization, H.R.M. and M.W.; methodology, H.M., H.R.M., M.M., and M.W.; software, H.M. and H.R.M.; validation, H.R.M., M.W., and M.R.-R.; formal analysis, H.M. and H.R.M.; investigation, H.M.; resources, M.W. and M.R.-R.; data curation, H.M., M.R.-R., and H.R.M.; writing—original draft preparation, H.M. and H.R.M.; writing—review and editing, M.M., M.W. and M.R.-R.; visualization, H.M.; supervision, H.R.M. and M.W.; project administration, M.R.-R. and H.R.M.; funding acquisition, H.R.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Beatriu de Pinós post-doctoral program from the Office of the Secretary of Universities and Research from the Ministry of Business and Knowledge of the Government of Catalonia program: 2020 BP 00261. The APC was funded by a 2020 BP 00261 grant. The funder had no role in the design of the study, data collection, analysis, or interpretation of the data, writing of the manuscript, or decision to publish the results.

Institutional Review Board Statement

This study was conducted in accordance with the Declaration of Helsinki and approved by the Ethics Committee of Bellvitge University Hospital (PR 128/20).

Informed Consent Statement

Informed consent was waived after assessment by the Research Ethics Committee.

Data Availability Statement

The data are not publicly available due to confidentiality agreements and privacy concerns but can be accessed upon reasonable request to ensure proper use and adherence to ethical guidelines. Additionally, we have provided a representative dataset to allow testing of our code.

Acknowledgments

We extend our gratitude to Marlon Grodd from the Institute of Medical Biometry and Statistics (IMBI), the University of Freiburg, for invaluable assistance in the implementation of the multistate code.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

References

  1. World Health Organization. Available online: https://www.emro.who.int/health-topics/infectious-diseases/index.html (accessed on 17 September 2024).
  2. Dangerfield, C.; Fenichel, E.P.; Finnoff, D.; Hanley, N.; Hargreaves Heap, S.; Shogren, J.F.; Toxvaerd, F. Challenges of integrating economics into epidemiological analysis of and policy responses to emerging infectious diseases. Epidemics 2022, 39, 100585. [Google Scholar] [CrossRef]
  3. Anka, A.U.; Tahir, M.I.; Abubakar, S.D.; Alsabbagh, M.; Zian, Z.; Hamedifar, H.; Sabzevari, A.; Azizi, G. Coronavirus disease 2019 (COVID-19): An overview of the immunopathology, serological diagnosis and management. Scand. J. Immunol. 2021, 93, e12998. [Google Scholar] [CrossRef]
  4. WHO COVID-19 Dashboard. Available online: https://data.who.int/dashboards/covid19/cases?n=c (accessed on 1 January 2024).
  5. Cascella, M.; Rajnik, M.; Aleem, A.; Dulebohn, S.C.; Di Napoli, R. Features, Evaluation, and Treatment of Coronavirus (COVID-19). In StatPearls; StatPearls Publishing LLC: Treasure Island, FL, USA, 2023. [Google Scholar]
  6. Hougaard, P. Multi-state models: A review. Lifetime Data Anal. 1999, 5, 239–264. [Google Scholar] [CrossRef]
  7. Meira-Machado, L.; de Uña-Alvarez, J.; Cadarso-Suárez, C.; Andersen, P.K. Multi-state models for the analysis of time-to-event data. Stat. Methods Med. Res. 2009, 18, 195–222. [Google Scholar] [CrossRef]
  8. Andersen, P.K.; Keiding, N. Multi-state models for event history analysis. Stat. Methods Med. Res. 2002, 11, 91–115. [Google Scholar] [CrossRef]
  9. Stone, K.; Zwiggelaar, R.; Jones, P.; Mac Parthaláin, N. A systematic review of the prediction of hospital length of stay: Towards a unified framework. PLoS Digit. Health 2022, 1, e0000017. [Google Scholar] [CrossRef]
  10. Baek, H.; Cho, M.; Kim, S.; Hwang, H.; Song, M.; Yoo, S. Analysis of length of hospital stay using electronic health records: A statistical and data mining approach. PLoS ONE 2018, 13, e0195901. [Google Scholar] [CrossRef]
  11. Bueno, H.; Ross, J.S.; Wang, Y.; Chen, J.; Vidán, M.T.; Normand, S.L.; Curtis, J.P.; Drye, E.E.; Lichtman, J.H.; Keenan, P.S.; et al. Trends in length of stay and short-term outcomes among Medicare patients hospitalized for heart failure, 1993–2006. JAMA 2010, 303, 2141–2147. [Google Scholar] [CrossRef]
  12. Huang, S.; Vieillard-Baron, A.; Evrard, B.; Prat, G.; Chew, M.S.; Balik, M.; Clau-Terré, F.; De Backer, D.; Mekontso Dessap, A.; Orde, S.; et al. Echocardiography phenotypes of right ventricular involvement in COVID-19 ARDS patients and ICU mortality: Post-hoc (exploratory) analysis of repeated data from the ECHO-COVID study. Intensive Care Med. 2023, 49, 946–956. [Google Scholar] [CrossRef]
  13. González-Jiménez, P.; Méndez, R.; Latorre, A.; Piqueras, M.; Balaguer-Cartagena, M.N.; Moscardó, A.; Alonso, R.; Hervás, D.; Reyes, S.; Menéndez, R. Neutrophil Extracellular Traps and Platelet Activation for Identifying Severe Episodes and Clinical Trajectories in COVID-19. Int. J. Mol. Sci. 2023, 24, 6690. [Google Scholar] [CrossRef]
  14. Edmundson, J.; Skoblenick, K.; Rosychuk, R.J. Flow through the Emergency Department for Patients Presenting with Substance Use Disorder in Alberta, Canada. West. J. Emerg. Med. 2023, 24, 717–727. [Google Scholar] [CrossRef]
  15. Hazard, D.; Kaier, K.; von Cube, M.; Grodd, M.; Bugiera, L.; Lambert, J.; Wolkewitz, M. Joint analysis of duration of ventilation, length of intensive care, and mortality of COVID-19 patients: A multistate approach. BMC Med. Res. Methodol. 2020, 20, 206. [Google Scholar] [CrossRef]
  16. Jerrett, M.; Nau, C.L.; Young, D.R.; Butler, R.K.; Batteate, C.M.; Padilla, A.; Tartof, S.Y.; Su, J.; Burnett, R.T.; Kleeman, M.J. Air pollution and the sequelae of COVID-19 patients: A multistate analysis. Environ. Res. 2023, 236, 116814. [Google Scholar] [CrossRef]
  17. Ali, A.S.; Sheikh, D.; Chandler, T.R.; Furmanek, S.; Huang, J.; Ramirez, J.A.; Arnold, F.; Cavallazzi, R. Cardiovascular Complications Are the Primary Drivers of Mortality in Hospitalized Patients with SARS-CoV-2 Community-Acquired Pneumonia. Chest 2023, 163, 1051–1060. [Google Scholar] [CrossRef]
  18. International Conference on Prevention and Infection Control 2023. Antimicrob. Resist. Infect. Control 2023, 12, 81. [CrossRef]
  19. 58th EASD Annual Meeting of the European Association for the Study of Diabetes. Diabetologia 2022, 65, 1–469. [CrossRef]
  20. Shaw, P.A.; Yang, J.B.; Mowery, D.L.; Schriver, E.R.; Mahoney, K.B.; Bar, K.J.; Ellenberg, S.S. Determinants of hospital outcomes for patients with COVID-19 in the University of Pennsylvania Health System. PLoS ONE 2022, 17, e0268528. [Google Scholar] [CrossRef]
  21. Christopher, H.J.; Francesca, G.; Kevin, K.; Alice, C.; Maria, G.; Marcello, T.; Silvana, C.; Danilo, C.; Daniela De, A.; Anne, P. Trends in outcomes following COVID-19 symptom onset in Milan: A cohort study. BMJ Open 2022, 12, e054859. [Google Scholar] [CrossRef]
  22. Mehri, A.; Sotoodeh Ghorbani, S.; Farhadi-Babadi, K.; Rahimi, E.; Barati, Z.; Taherpour, N.; Izadi, N.; Shahbazi, F.; Mokhayeri, Y.; Seifi, A.; et al. Risk Factors Associated with Severity and Death from COVID-19 in Iran: A Systematic Review and Meta-Analysis Study. J. Intensive Care Med. 2023, 38, 825–837. [Google Scholar] [CrossRef]
  23. Peña-Ramos, J.A.; Recuero-López, F.; Sánchez-Bayón, A.; Sastre, F.J. Evaluation of Spanish Health System during the COVID-19 Pandemic: Accountability and Wellbeing Results. Int. J. Environ. Res. Public Health 2021, 18, 12907. [Google Scholar] [CrossRef]
  24. Bagus, P.; Peña-Ramos, J.A.; Sánchez-Bayón, A. COVID-19 and the Political Economy of Mass Hysteria. Int. J. Environ. Res. Public Health 2021, 18, 1376. [Google Scholar] [CrossRef] [PubMed]
  25. Statista. Available online: https://www.statista.com/statistics/1102882/cases-of-coronavirus-confirmed-in-spain-in-2020-by-region/ (accessed on 17 September 2024).
  26. Alimohamadi, Y.; Yekta, E.M.; Sepandi, M.; Sharafoddin, M.; Arshadi, M.; Hesari, E. Hospital length of stay for COVID-19 patients: A systematic review and meta-analysis. Multidiscip. Respir. Med. 2022, 17, 856. [Google Scholar] [CrossRef] [PubMed]
  27. Gostin, L.O.; Friedman, E.A.; Wetter, S.A. Responding to Covid-19: How to Navigate a Public Health Emergency Legally and Ethically. Hast. Cent. Rep. 2020, 50, 8–12. [Google Scholar] [CrossRef] [PubMed]
  28. Arenas Jimenez, M.D.; Méndez, A.; Furaz, K.; Botella, A.; Yetman, D.; Cazar, R.; Cabana, M.L.; Handel, M.; Sanchez, M.L.; Delgado, M.; et al. Impact of the COVID pandemic on vascular access creation for haemodialysis in 16 Spanish haemodialysis centres. Clin. Kidney J. 2022, 15, 1340–1347. [Google Scholar] [CrossRef]
  29. Martinuka, O.; Hazard, D.; Marateb, H.R.; Mansourian, M.; Mañanas, M.Á.; Romero, S.; Rubio-Rivas, M.; Wolkewitz, M. Methodological biases in observational hospital studies of COVID-19 treatment effectiveness: Pitfalls and potential. Front. Med. 2024, 11, 1362192. [Google Scholar] [CrossRef]
  30. Martinuka, O.; Hazard, D.; Marateb, H.R.; Maringe, C.; Mansourian, M.; Rubio-Rivas, M.; Wolkewitz, M. Target trial emulation with multi-state model analysis to assess treatment effectiveness using clinical COVID-19 data. BMC Med. Res. Methodol. 2023, 23, 197. [Google Scholar] [CrossRef] [PubMed]
  31. von Cube, M.; Schumacher, M.; Wolkewitz, M. Basic parametric analysis for a multi-state model in hospital epidemiology. BMC Med. Res. Methodol. 2017, 17, 111. [Google Scholar] [CrossRef]
  32. Liu, Y.; Mao, B.; Liang, S.; Yang, J.W.; Lu, H.W.; Chai, Y.H.; Wang, L.; Zhang, L.; Li, Q.H.; Zhao, L.; et al. Association between age and clinical characteristics and outcomes of COVID-19. Eur. Respir. J. 2020, 55, 2001112. [Google Scholar] [CrossRef]
  33. Marateb, H.R.; von Cube, M.; Sami, R.; Haghjooy Javanmard, S.; Mansourian, M.; Amra, B.; Soltaninejad, F.; Mortazavi, M.; Adibi, P.; Khademi, N.; et al. Absolute mortality risk assessment of COVID-19 patients: The Khorshid COVID Cohort (KCC) study. BMC Med. Res. Methodol. 2021, 21, 146. [Google Scholar] [CrossRef]
  34. Guo, Z.; Zhang, Z.; Prajapati, M.; Li, Y. Lymphopenia Caused by Virus Infections and the Mechanisms Beyond. Viruses 2021, 13, 1876. [Google Scholar] [CrossRef]
  35. Fabião, J.; Sassi, B.; Pedrollo, E.F.; Gerchman, F.; Kramer, C.K.; Leitão, C.B.; Pinto, L.C. Why do men have worse COVID-19-related outcomes? A systematic review and meta-analysis with sex adjusted for age. Braz. J. Med. Biol. Res. 2022, 55, e11711. [Google Scholar] [CrossRef] [PubMed]
  36. Chaturvedi, R.; Lui, B.; Aaronson, J.A.; White, R.S.; Samuels, J.D. COVID-19 complications in males and females: Recent developments. J. Comp. Eff. Res. 2022, 11, 689–698. [Google Scholar] [CrossRef]
  37. Chen, Y.; Klein, S.L.; Garibaldi, B.T.; Li, H.; Wu, C.; Osevala, N.M.; Li, T.; Margolick, J.B.; Pawelec, G.; Leng, S.X. Aging in COVID-19: Vulnerability, immunity and intervention. Ageing Res. Rev. 2021, 65, 101205. [Google Scholar] [CrossRef]
  38. Mantovani, A.; Byrne, C.D.; Zheng, M.H.; Targher, G. Diabetes as a risk factor for greater COVID-19 severity and in-hospital death: A meta-analysis of observational studies. Nutr. Metab. Cardiovasc. Dis. 2020, 30, 1236–1248. [Google Scholar] [CrossRef] [PubMed]
  39. Holt, R.I.G.; Cockram, C.S.; Ma, R.C.W.; Luk, A.O.Y. Diabetes and infection: Review of the epidemiology, mechanisms and principles of treatment. Diabetologia 2024, 67, 1168–1180. [Google Scholar] [CrossRef]
  40. Chen, G.; Zhao, X.; Chen, X.; Liu, C. Early decrease in blood lymphocyte count is associated with poor prognosis in COVID-19 patients: A retrospective cohort study. BMC Pulm. Med. 2023, 23, 453. [Google Scholar] [CrossRef]
  41. Toori, K.U.; Qureshi, M.A.; Chaudhry, A. Lymphopenia: A useful predictor of COVID-19 disease severity and mortality. Pak. J. Med. Sci. 2021, 37, 1984–1988. [Google Scholar] [CrossRef] [PubMed]
  42. Argun Barış, S.; Boyacı, H.; Akhan, S.; Mutlu, B.; Deniz, M.; Başyiğit, İ. Charlson Comorbidity Index in Predicting Poor Clinical Outcomes and Mortality in Patients with COVID-19. Turk. Thorac. J. 2022, 23, 145–153. [Google Scholar] [CrossRef]
  43. Cavuşoğlu Türker, B.; Türker, F.; Ahbab, S.; Hoca, E.; Urvasızoğlu, A.O.; Cetin, S.I.; Ataoğlu, H.E. Evaluation of the Charlson Comorbidity Index and Laboratory Parameters as Independent Early Mortality Predictors in COVID-19 Patients. Int. J. Gen. Med. 2022, 15, 6301–6307. [Google Scholar] [CrossRef]
  44. ISO—International Organization for Standardization. The ISO 13606 EHR Standard. 2019. Available online: http://www.en13606.org/ (accessed on 17 September 2024).
Figure 1. A 4-state model based on transitions between different states.
Figure 1. A 4-state model based on transitions between different states.
Life 14 01195 g001
Figure 2. Flowchart related to programming code.
Figure 2. Flowchart related to programming code.
Life 14 01195 g002
Figure 3. This figure shows the output of the 4-state model based on symptom duration: (a) symptom duration > 7; (b) symptom duration < 7. In the stacked probability plot, yellow, red, gray, and blue correspond to admission (Ward), ICU, death, and discharge.
Figure 3. This figure shows the output of the 4-state model based on symptom duration: (a) symptom duration > 7; (b) symptom duration < 7. In the stacked probability plot, yellow, red, gray, and blue correspond to admission (Ward), ICU, death, and discharge.
Life 14 01195 g003
Figure 4. This figure shows the output of the 4-state model. In the stacked probability plot, yellow, red, gray, and blue correspond with admission (Ward), ICU, death, and discharge.
Figure 4. This figure shows the output of the 4-state model. In the stacked probability plot, yellow, red, gray, and blue correspond with admission (Ward), ICU, death, and discharge.
Life 14 01195 g004
Figure 5. This figure shows the output of the 4-state model based on sex: (a) Female; (b) Male. In the stacked probability plot, yellow, red, gray, and blue correspond with admission (Ward), ICU, death, and discharge.
Figure 5. This figure shows the output of the 4-state model based on sex: (a) Female; (b) Male. In the stacked probability plot, yellow, red, gray, and blue correspond with admission (Ward), ICU, death, and discharge.
Life 14 01195 g005
Figure 6. This figure shows the output of the 4-state model with age grouping. This grouping includes the following items: (a) Age group less than 45 years (B0); (b) B1 is age group between 45 and 54 years (45–54); (c) B2 is age group between 55 and 64 years (55–64); (d) B3 is age group between 65 and 74 years (65–74); (e) B4 is Age group more than 75 years. In the stacked probability plot, yellow, red, gray, and blue correspond with admission (Ward), ICU, death, and discharge.
Figure 6. This figure shows the output of the 4-state model with age grouping. This grouping includes the following items: (a) Age group less than 45 years (B0); (b) B1 is age group between 45 and 54 years (45–54); (c) B2 is age group between 55 and 64 years (55–64); (d) B3 is age group between 65 and 74 years (65–74); (e) B4 is Age group more than 75 years. In the stacked probability plot, yellow, red, gray, and blue correspond with admission (Ward), ICU, death, and discharge.
Life 14 01195 g006
Figure 7. This figure shows the output of the 4-state model based on people with diabetes and without diabetes: (a) non-diabetic people; (b) diabetic people. In the stacked probability plot, yellow, red, gray, and blue correspond with admission (Ward), ICU, death, and discharge.
Figure 7. This figure shows the output of the 4-state model based on people with diabetes and without diabetes: (a) non-diabetic people; (b) diabetic people. In the stacked probability plot, yellow, red, gray, and blue correspond with admission (Ward), ICU, death, and discharge.
Life 14 01195 g007
Figure 8. This figure shows the output of the 4-state model with the grouping of lymphocytes: (a) With lymphocytes > 910 × 106/L (b) With lymphocytes < 910 × 106/L. In the stacked probability plot, yellow, red, gray, and blue correspond with admission (Ward), ICU, death, and discharge.
Figure 8. This figure shows the output of the 4-state model with the grouping of lymphocytes: (a) With lymphocytes > 910 × 106/L (b) With lymphocytes < 910 × 106/L. In the stacked probability plot, yellow, red, gray, and blue correspond with admission (Ward), ICU, death, and discharge.
Life 14 01195 g008
Figure 9. This figure shows the output of the 4-state model with the grouping of CCI: (a) With CCI = 0 (b) With CCI > 0. In the stacked probability plot, yellow, red, gray, and blue correspond with admission (Ward), ICU, death, and discharge.
Figure 9. This figure shows the output of the 4-state model with the grouping of CCI: (a) With CCI = 0 (b) With CCI > 0. In the stacked probability plot, yellow, red, gray, and blue correspond with admission (Ward), ICU, death, and discharge.
Life 14 01195 g009
Figure 10. Output of the 4-state model grouped by COVID-19 waves: (a) First wave, (b) Second wave, (c) Third wave. In the stacked probability plot, yellow represents admission (Ward), red represents ICU, gray represents death, and blue represents discharge.
Figure 10. Output of the 4-state model grouped by COVID-19 waves: (a) First wave, (b) Second wave, (c) Third wave. In the stacked probability plot, yellow represents admission (Ward), red represents ICU, gray represents death, and blue represents discharge.
Life 14 01195 g010
Table 1. Descriptive statistics of patient characteristics and outcomes, comparing discharged patients and those who experienced in-hospital mortality.
Table 1. Descriptive statistics of patient characteristics and outcomes, comparing discharged patients and those who experienced in-hospital mortality.
DeathDischargedOverallp-Value
(N = 437)(N = 1848)(N = 2285)
Age
Mean (SD)74.8 (10.8)64.0 (14.9)66.1 (14.8)<0.001
Median [Min, Max]75.5 [42, 100]64.7 [18, 103]67.6 [18, 103]
Gender
Male311 (71.2%)1110 (60.1%)1421 (62.2%)<0.001
Female126 (28.8%)738 (39.9%)864 (37.8%)
Diabetes
Non-Diabetic326 (74.6%)1524 (82.5%)1850 (81.0%)<0.001
Diabetes111 (25.4%)324 (17.5%)435 (19.0%)
Lymphocyte (×106/L)
Mean (SD)945 (1670)1100 (1750)1070 (1730)0.0809
Median [Min, Max]750 [0, 30,800]960 [20.0, 66,100]910 [0, 66,100]
Missing6 (1.4%)12 (0.6%)18 (0.8%)
CCI
0134 (30.7%)1020 (55.2%)1154 (50.5%)<0.001
>0303 (69.03%)828 (44.8%)1131 (49.5%)
CCI: Charlson Comorbidity Index.
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.

Share and Cite

MDPI and ACS Style

Mohammadi, H.; Marateb, H.R.; Momenzadeh, M.; Wolkewitz, M.; Rubio-Rivas, M. Tracing In-Hospital COVID-19 Outcomes: A Multistate Model Exploration (TRACE). Life 2024, 14, 1195. https://doi.org/10.3390/life14091195

AMA Style

Mohammadi H, Marateb HR, Momenzadeh M, Wolkewitz M, Rubio-Rivas M. Tracing In-Hospital COVID-19 Outcomes: A Multistate Model Exploration (TRACE). Life. 2024; 14(9):1195. https://doi.org/10.3390/life14091195

Chicago/Turabian Style

Mohammadi, Hamed, Hamid Reza Marateb, Mohammadreza Momenzadeh, Martin Wolkewitz, and Manuel Rubio-Rivas. 2024. "Tracing In-Hospital COVID-19 Outcomes: A Multistate Model Exploration (TRACE)" Life 14, no. 9: 1195. https://doi.org/10.3390/life14091195

APA Style

Mohammadi, H., Marateb, H. R., Momenzadeh, M., Wolkewitz, M., & Rubio-Rivas, M. (2024). Tracing In-Hospital COVID-19 Outcomes: A Multistate Model Exploration (TRACE). Life, 14(9), 1195. https://doi.org/10.3390/life14091195

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop