Background and significance

Acute kidney injury (AKI) occurs in almost 25% of patients admitted to hospitals and up to 60% of patients receiving critical care1,2,3. Persistence of AKI or insufficient recovery of renal function exacerbates risk for adverse health conditions and worsens long-term survival in addition to patients’ well-being45. To optimize and tailor clinical actions and their timely delivery, it is imperative to understand clinical course of AKI in terms of severity and recovery during hospitalization.

Conventional survival analysis methods have been utilized to describe AKI trajectories and associated outcomes4,6,7. These models have the capacity to deal with time-to-event type data and censored subjects, where a subject being censored refers to failing to experience the study’s event of interest or being dropped out of the study by the end of the observation period or follow-up time8,9. Despite their significant merits, traditional survival analysis methods, such as Kaplan–Meier methods, have certain limitations. For instance, censoring action used in these models could be considered uninformative since in real-world scenarios patients are subject to several competing risks. Competing risks models could deal with aforementioned structures; however, both approaches treat all states as absorbing and therefore lack inclusion of patients’ history. For analyses that involve patient histories with several events of interest occurrence, multistate models could be used to characterize the competing risks. Applications of multistate models could be found for various care levels10,11 and patient groups such as kidney disease12, diabetic13 , surgical14 , cancer15 , COVID-1916, and geriatric17 cohorts.

Multistate models are specifically beneficial in analyzing temporal changes and present an alternative approach with considerable potential in research studies with longitudinal nature; however, multistate models require precise and detailed records of transitions between the identified states. Consequently, we retrospectively performed multistate-based analyses on a large cohort of subjects with the following objectives: (1) to understand the clinical course of AKI among hospitalized patients by estimating the probability of being in a specific clinical state at a certain time after entering each one of the AKI stages, and (2) to investigate the effects of age, sex, race, comorbidities, and prolonged ICU stay on transition rates via Cox proportional hazards regression models.

Methods

Study design

The study was designed and approved by the Institutional Review Board of the University of Florida and the University of Florida Privacy Office as an exempt study with waiver of informed consent (IRB 201901123). The University of Florida Health (UFH) Integrated Data Repository acted as Honest Broker. We performed all methods in accordance with the relevant guidelines and regulations. A single-center, longitudinal dataset was curated from the electronic health records of 156,699 adult patients admitted to UFH between January 1, 2012, and August 22, 2019. We excluded patients with end stage kidney disease (ESKD) encounters with no serum creatinine measurement to determine AKI status during hospitalization and within 48 h of hospital admission, and encounters discharged (alive or dead) within 24 h of admission. Our final cohort included 245,663 hospital encounters from 128,271 patients (Supplementary Fig. S1). This study followed Strengthening the Reporting of Observational Studies in Epidemiology (STROBE) recommendations18.

Assessment of kidney function and study outcomes

In identifying and staging the AKI, we used a validated computable phenotyping algorithm19 that relies on Kidney Disease: Improving Global Outcomes (KDIGO) serum creatinine criteria20,21,22. Reference creatinine was determined using preadmission records23 or estimated using the Chronic Kidney Disease Epidemiology Collaboration (CKD-EPI) Study equation refit without race multiplier, as per recommendations, with a baseline estimated glomerular filtration rate assigned to 75 ml/min/per 1.73 m222,24,25,26. We identified primary clinical outcomes as No AKI, AKI Stage 1, AKI Stage 2, AKI Stage 3 without kidney replacement therapy (KRT), AKI Stage 3 with KRT, hospital death, and discharge (Supplementary Fig. S2). Details regarding assumptions and the phenotyping algorithm pipeline can be found in Ozrazgat-Baslanti et al.19.

Multistate analyses

Multistate models allow intermediate events to simultaneously change the risk of reaching a terminal state13. In defining and fitting a multistate model, state set and transition set need to be identified. In this context, state set represents temporal status of a patient whereas transition set defines possible movements between states. A state is considered absorbing (or terminal) if leaving that particular state is impossible, and a state is considered transient if transitioning to another state is possible. Basically, state set of a multistate model is a collection of initial state(s), transient state(s), and terminal state(s). An initial state is the time point of the subject’s entry into the model, and returning to an initial state is not possible once it was left. Apart from absorbing and initial states, remaining transient states could be visited several times. The collection of states and transitions presents the framework for designating a statistical model for hazard function for each of the transitions identified.

Multistate models assist in quantifying separate transition intensities for switching from one particular state to another state and in quantifying the present proportion of the patients occupying a specified state at a given time point. Therefore, these models allow estimating the probability of a clinical event occurring after an entrance to a particular state over an extended time. We refer the reader for relevant background of the non-parametric or semi-parametric models to Andersen et al.27, Thernau et al.28, and Geskus et al.29.

We developed two separate multistate models by using a large dataset that assembles both time-varying and static information of the patients. We identified 8 mutually exclusive states based on patients’ clinical condition at each time point. These states are enumerated and listed as follows: (0) Admission, (1) No AKI, (2) AKI Stage 1, (3) AKI Stage 2, (4) AKI Stage 3 without KRT, (5) AKI Stage 3 with KRT, (6) Death, and (7) Discharge (Supplementary Fig. S2). States were discretely determined by considering the worst AKI condition a subject experienced within 24-h time periods.

We first quantified the transition probabilities using an Aalen-Johansen estimation-based non-parametric multistate model where the variable effects were ignored in estimating transition probabilities from one state to another. Following that, in describing the variable effects on the hazards, we fit a Cox model in the multistate semi-parametric framework. This approach aids in specifying distinct variable effects for distinct transitions in the terminal states either with or without inclusion of intermediate events. We included age, sex, race, Charlson comorbidity index (CCI), and prolonged ICU stay (e.g., ICU stay longer than 48 h) as the variables30. We presented the clinical course of the AKI patients via alluvial plots where we stratified the patients by considering their movements between the specified states throughout their hospitalization (Fig. 1)31.

Figure 1
figure 1

Number of patients transitioning on consecutive days shown for 14 days of hospitalization for AKI Stage 1 (a), AKI Stage 2 (b), AKI Stage 3 without KRT (c), and AKI Stage 3 with KRT (d) patients. The horizontal axis of the figures in the panels represent the days in hospital and the vertical axis displays the number of patients.

We calculated instantaneous hazard rates for particular events from predetermined states without considering intermediate events. Specifically, the instantaneous hazard rates from No AKI, AKI Stage 1, AKI Stage 2, and AKI Stage 3 states to these predetermined states including death state were calculated. For all analyses performed, we considered time 0 as the entrance moment into a certain state. Patients were censored at hospital discharge, death, or the end of the 14-day of observation period, whichever came first. Patient characteristics were presented in terms of their means and standard deviations (SD), medians with interquartile ranges (IQR), or frequencies with percentages, as appropriate. Kruskall-Wallis test or chi-square tests were performed to compare the data between groups, where appropriate. Threshold was set to 0.05 for a p-value to indicate statistical significance. All data processing and analyses were performed using Python 3.8 and R 4.1.2. We conducted modeling and statistical analyses using mstate and survival packages32,33,34,35.

Results

Clinical characteristics of patients

Subjects were categorized with respect to the worst AKI severity outcome during their hospitalization. Cohort characteristics and their statistical comparisons were reported in Table 1. Average age for No AKI patients was 55 and was significantly lower than AKI groups (Table 1). Female patients were the majority for No AKI and Stage 2 AKI, whereas male patients were the majority for remaining patient groups. Percentage of CCI ≥ 3 was the lowest for No AKI group. Hospital length of stay was significantly lower for No AKI cohort. Similarly, time period with mechanical ventilation and ICU length of stay was lower for No AKI group. Detailed cohort characteristics and outcomes were reported in Supplementary Table S1.

Table 1 Detailed cohort characteristics and outcomes stratified by worst AKI severity.

AKI trajectory analyses

Daily transitions were demonstrated in Fig. 1 for each AKI stage. Patients admitted with AKI Stage 1 had the highest proportion for early resolution or discharge and the lowest percentage for AKI progression (Fig. 1a). Patients admitted with worse AKI severity had almost consistently lower proportions for resolution and discharge compared to AKI Stage 1 group. Similarly, patients with more severe AKI groups on their early days of hospitalization had higher percentages for maintaining their initial AKI stage (Fig. 1b–d).

Within 24 h following the admission, 8.22% of the patients had AKI, and a majority of those AKI patients had Stage 1 AKI (Fig. 1, Table 2). From 7 days after admission, 2.09% (95% Confidence Interval (CI) 2.04–2.15%) of all patients had Stage 1 AKI, whereas 1.43% (95% CI 1.35–1.50%) experienced Stage 2 or more severe AKI. At that point, 66.39% (95% CI 66.22–66.56%) of the cohort were discharged, and the probability for terminal state of death was 1.19% (95% CI 1.16–1.23%). On day 7 following AKI Stage 2, proportion of progression to higher stages of AKI (5.67% [95% CI 5.35–6.02%]) was higher than the proportion of progression to higher stages from AKI Stage 1 (2.90% [95% CI 2.74–3.08%]). At that time point, resolved or discharged percentage of the patients with an initial status of AKI Stage 1 was higher (91.85% [95% CI 91.46–92.23%]) than cohorts with AKI Stage 2, 3 without KRT, and 3 with KRT. Among AKI patients without KRT requirement, Stage 3 patients had the highest percentage for persisting condition (12.24% [95% CI 11.60–12.91%]).

Table 2 Multistate models based estimated proportions of patients in each clinical state over time.

Patients with No AKI diagnosis had the highest transition rates to AKI Stage 1 state throughout the hospitalization (Fig. 2a, Supplementary Fig. S3a). For those patients, first peak was observed within first two days, whereas the second peak transfer rate to AKI Stage 1 appeared near following completion of first week of the 14-day hospital stay. Though at much lower rates, transfer rates from No AKI to death repeated a similar pattern of peaks and lows as transfer rates to AKI Stage 1. AKI Stage 1 patients were more likely to start resolving in next day (Fig. 2b, Supplementary Fig. S3b). Among AKI Stage 1 patients, top transfer rates occurred for resolving state, while the second highest transfer rates were for advancing to Stage 2. These two top processes had slightly different timings for jumps occurring in a 14-day time period.

Figure 2
figure 2

Instantaneous hazard rates of outcomes from clinical states in hospitalized patients based on multistate analysis.

AKI Stage 2 cohort had the highest transition rates for regression to AKI Stage 1 (Fig. 2c, Supplementary Fig. S3c). Among patients with AKI Stage 2, hazard rates for transitioning towards resolution were observed higher than progressing to AKI Stage 3 without KRT until approximately day four and risk for progressing to AKI Stage 3 without KRT elevated and surpassed resolution hazard rates thereafter. AKI Stage 3 without KRT patients were more likely to transfer to AKI Stage 2 compared to transitions to AKI Stage 1 and No AKI states (Fig. 2d, Supplementary Fig. S3d). Transition rates from AKI Stage 3 without KRT to AKI Stage 2, AKI Stage 1, and No AKI were at their highest within the first two days. Instantaneous hazard rates for transitioning to death from AKI Stage 3 without KRT exceeded hazard rates for transitioning to resolution and AKI stages except AKI Stage 2 in the period following first week.

We fit a Cox model that involves transition-specific variables for each specified transfer from one given stage to another. We considered possible demographic and health condition indicators as risk factors. In that Cox model, the patient’s age, sex (female vs male), race (African American vs non–African American), CCI, and prolonged ICU stay were included. Age was dichotomized as age < 65 and age ≥ 65 years old, and CCI was dichotomized as CCI < 3 and CCI ≥ 3. Prolonged ICU was indicated with a length of stay longer than 48 h in ICU. We reported the Cox regression model coefficients, standard errors, and indication for significance of these variables in Supplementary Table S2. According to the results, these variables were statistically significant in a majority of the identified transitions.

Estimated percentages of patients for each state at any given day during hospital stay were mainly different with respect to their accompanied admission comorbidities and need of prolonged ICU stay (Fig. 3, Supplementary Figs. S4S19). Among AKI Stage 1 cohort, patients accompanied with the most severe conditions (i.e., CCI ≥ 3 and ICU length of stay ≥ 48 h) had greater proportion of patients for sustained AKI Stage 1 severity and progression to higher stages of AKI and lower discharge percentage compared to patients with milder conditions (i.e., CCI < 3 and ICU length of stay < 48 h) (Fig. 3). Proportion of transfer to death condition from AKI states were more pronounced among male patients compared to female subjects throughout the 14-day period of hospital stay. Considering the cohorts with additional frail conditions, percentage of AKI Stage 3 without KRT progression was slightly higher for African American patients compared to non–African American subjects. In addition, similar to non-parametric analyses presented in this study, more advanced AKI stages were observed with higher tendency towards either maintaining current AKI condition or regressing to its neighbor AKI Stage when compared to AKI Stage 1 group (Supplementary Fig. S4S19).

Figure 3
figure 3

Proportion of non–African American patients estimated to be in each clinical state for Stage 1 AKI patients with CCI < 3 and ICU < 48 h (a and b) and Stage 1 AKI patients with CCI ≥ 3 and ICU stay ≥ 48 h (c and d).

Discussion

We considered a large cohort of hospitalized patients and retrospectively characterized subjects’ AKI trajectory by using multistate models that consider the cohort’s longitudinal outcomes. Specifically, we fit multistate models for a state-space framework that indicates the clinical status in addition to feasible transitions between them, and we described the transition dynamics in terms of hazard rates and transition probabilities36. In this cohort, any stage AKI was developed among 20% of the patients, where the majority of AKI outcomes were labeled as Stage 1.

In order to understand the transition processes between clinical states regarding the AKI status, death, and discharge, we modeled the patients’ experiences over the course of the first 14 days of hospitalization. Towards that aim, we first calculated Aalen-Johansen estimators via non-parametric multistate models and estimated the instantaneous hazard rates of each transition occurrence in addition to the probability of being in certain states at a given time point. This granular and time-dependent analyses demonstrated AKI Stage 1 as the AKI condition with the lowest tendency towards developing more advanced stages. To clarify, around 7 days following initiation of AKI Stage 1, 91.85% of this patient group had either resolved AKI or were discharged. In contrast, within 7 days following AKI Stage 2, the estimated proportion of patients either being discharged or with no AKI was 81.49%, and if regression to AKI Stage 1 was also included, the probability of an outcome with more desirable conditions increased to 86.57%.

We expanded the initial multistate analysis by modeling transitions’ hazard rates with Cox-type regression models to investigate the effect of a set of variables that are potentially associated with events of interest. According to Cox-type models, the variables indicate the severity of the overall condition of the subjects (i.e., CCI and prolonged ICU stay) heavily influenced the probability of being resolved or discharged. To clarify, near the end of a 14-day period of hospitalization with a Stage 1 AKI initiated at the beginning, patients admitted with a higher number of comorbidities and with prolonged ICU stay had a higher percentage for being at AKI Stage 1 state and transitioning to either progressed AKI stages or death. In line with that, No AKI patients admitted with a higher number of comorbidities and who stayed in the ICU longer than 48 h had a higher probability of being in either AKI stages or death.

The motivation for performing this study was that the clinical course of AKI for hospitalized patients had not been sufficiently described with multistate models that exploit granular and longitudinal structures, despite similar work having been performed for smaller patient populations. In a retrospective analysis of critically ill COVID-19 patients, a cohort of 367 subjects were considered and their AKI transitions were described with multistate models37. In that study, Lyons et al. presented the estimated probabilities of being in a specified clinical status where the AKI-related states rely on the worst AKI stage within 12-h blocks. Another recent multistate modeling application for investigating kidney disease progression was given for a cohort of 225 patients who were prescribed colistin38. In addition to AKI, a retrospective study for modeling transitions between CKD stages via multistate methods was given for a cohort of 117 hospitalized and non-hospitalized patients39. To our knowledge, our study is the first large-scale, granular application of multistate methods for describing the characteristics influencing the transitions towards progressed or regressed AKI stages in addition to discharge and death states. With the aid of a large, diverse cohort of hospitalized subjects, we utilized multistate methods in modeling the longitudinal outcomes regarding the patients’ AKI status.

The results from this study indicated that the hospital resource utilization and mortality were higher for more severe stages of AKI, showing 50%, 53%, and 88% needing to stay in ICU more than 48 h and 11%, 18%, and 45% with hospital death for Stage 2, Stage 3 without KRT, and Stage 3 AKI with KRT, respectively. Patients at more severe AKI stages were more likely to stay at that stage or progress to worse stages or die. This study provides us a better understanding of clinical course of AKI and characteristics influencing disease process and transition rates, and resource needs. It illustrates importance of precise and timely identification of patients at elevated risk for progression of AKI in order to provide the delivery of tailored treatments that can improve life quality and optimize resource planning.

Multistate models developed in this study output a probabilistic way to describe clinical course of AKI among hospitalized patients. Those estimations could be utilized in planning prevention decisions, resource usage, and timely intervention of AKI. Despite our use of a large and diverse cohort in building the multistate models, the cohort relies on a single institution. Consequently, this single-center design limits generalizability to other practice settings. We excluded encounters discharged within 24 h of admission, including those who died within 24 h due to not having sufficient transitions.

The timing precision of a transition relies on the serum creatinine measure date and time, however serum creatinine as a biomarker with a long half-life lags behind renal injury and recovery40,41. Future work could be based on defining AKI conditions considering more frequently obtained biomarkers with beyond suboptimal performance in diagnosing AKI, which allows more precise and timely monitoring as well as transition time records42.

Conclusions

Harnessing the granular and longitudinal information processing capability of multistate models, we estimated possible pathways in clinical trajectories of AKI among hospitalized patients, thus stressing the ability of this approach to convey insights into AKI course from a probabilistic perspective. Moreover, the large and diverse cohort was expected to assist mitigating the bias in fitting the model. Precise and timely identification of patients at elevated risk for AKI progress or other terminal states may facilitate the delivery of tailored treatments that prevent adverse outcomes or foster kidney recovery to improve life quality and optimize resource planning.