Hostname: page-component-78c5997874-94fs2 Total loading time: 0 Render date: 2024-11-13T01:16:45.222Z Has data issue: false hasContentIssue false

Building a multistate model from electronic health records data for modeling long-term diabetes complications

Published online by Cambridge University Press:  23 September 2024

Riza C. Li*
Affiliation:
iREACH, ChristianaCare Health Services, Inc., Newark, DE, USA Center for Bioinformatics and Computational Biology, University of Delaware, Newark, DE, USA
Shanshan Ding
Affiliation:
Center for Bioinformatics and Computational Biology, University of Delaware, Newark, DE, USA Department of Applied Economics and Statistics, University of Delaware, Newark, DE, USA
Kevin Ndura
Affiliation:
iREACH, ChristianaCare Health Services, Inc., Newark, DE, USA
Vishal Patel
Affiliation:
iREACH, ChristianaCare Health Services, Inc., Newark, DE, USA
Claudine Jurkovitz
Affiliation:
iREACH, ChristianaCare Health Services, Inc., Newark, DE, USA
*
Corresponding author: R. C. Li; Email: rzbautis@udel.edu
Rights & Permissions [Opens in a new window]

Abstract

Objective:

The progression of long-term diabetes complications has led to a decreased quality of life. Our objective was to evaluate the adverse outcomes associated with diabetes based on a patient’s clinical profile by utilizing a multistate modeling approach.

Methods:

This was a retrospective study of diabetes patients seen in primary care practices from 2013 to 2017. We implemented a five-state model to examine the progression of patients transitioning from one complication to having multiple complications. Our model incorporated high dimensional covariates from multisource data to investigate the possible effects of different types of factors that are associated with the progression of diabetes.

Results:

The cohort consisted of 10,596 patients diagnosed with diabetes and no previous complications associated with the disease. Most of the patients in our study were female, White, and had type 2 diabetes. During our study period, 5928 did not develop complications, 3323 developed microvascular complications, 1313 developed macrovascular complications, and 1129 developed both micro- and macrovascular complications. From our model, we determined that patients had a 0.1334 [0.1284, .1386] rate of developing a microvascular complication compared to 0.0508 [0.0479, .0540] rate of developing a macrovascular complication. The area deprivation index score we incorporated as a proxy for socioeconomic information indicated that patients who reside in more disadvantaged areas have a higher rate of developing a complication compared to those who reside in least disadvantaged areas.

Conclusions:

Our work demonstrates how a multistate modeling framework is a comprehensive approach to analyzing the progression of long-term complications associated with diabetes.

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BYCreative Common License - SA
This is an Open Access article, distributed under the terms of the Creative Commons Attribution-ShareAlike licence (http://creativecommons.org/licenses/by-sa/4.0/), which permits re-use, distribution, and reproduction in any medium, provided the same Creative Commons licence is used to distribute the re-used or adapted article and the original article is properly cited.
Copyright
© The Author(s), 2024. Published by Cambridge University Press on behalf of Association for Clinical and Translational Science

Highlights

  • What is already known on this topic: The burden that diabetes mellitus presents because of long-term complications not only affect the patients’ health but also their life expectancy.

  • What this study adds: This study implements a multistate modeling approach to predict micro- or macrovascular complications occurrence and death for an individual based on their specific clinical characteristics at different time periods after diabetes diagnosis.

  • How this study might affect research, practice, or policy: A multistate modeling approach to diabetes complications can help understand the progression of complications specific to each patient, which will not only aid a physician’s ability to better tailor care but also anticipate complications and plan interventions to reduce the patient’s risk of an event.

Introduction

In 2020, the Centers for Disease Control and Prevention estimated that 34.1 million adults aged 18 years or older had diabetes mellitus (DM) in the United States (US) population [1]. Complications associated with DM can be categorized into two broad categories, microvascular and macrovascular [Reference Care and Suppl2]. Microvascular complications include nephropathy, neuropathy, and retinopathy. Macrovascular complications include cardiovascular disease, stroke, and peripheral vascular disease. Microvascular and macrovascular complications lead to increased mortality and an overall decreased quality of life in individuals with DM. With the burden of DM and its complications, researchers have been investigating predictive analytic methods such as machine learning to evaluate adverse outcomes likelihood according to patients’ clinical profiles.

The widespread adoption of electronic health record (EHR) systems in clinical settings has increased the secondary use of EHR data for predictive analytic models. EHRs are a reliable source of longitudinal observations for monitoring the progression of diseases in clinical practice. EHRs provide large quantities of information regarding a patient’s medical history, including symptoms, examination findings, test results, prescriptions, and procedures. Predictive models play an increasingly important role in the practice of medicine as clinical care becomes more tailored to individual characteristics and needs and precision medicine becomes the norm [Reference Kumar and Singh3].

Numerous models have already been developed to predict DM complications. Most of the modeling techniques include logistic regression, Cox Proportional Hazard regression, and machine learning techniques such as neural networks and simulation models [Reference Fritzen, Heinemann and Schnell4Reference Lagani, Chiarugi and Thomson7]. While the standard Cox model and other machine learning methods have been applied to predict DM complications, these models have been limited in predicting only one event of interest at a time and failed to give an understanding of what happens after the event of interest occurs. Multistate models extend standard time-to-event analysis, offering a more comprehensive process that can describe the progression of a patient through various states [Reference Andersen and Keiding8,Reference Putter and Fiocco9]. The main advantage of implementing a multistate model over traditional time-to-event models is the ability to consider multiple events at the same time and analyze the process of progressing from one event to another. The transition probabilities derived from a multistate model provide the probability of a patient being in a certain state at a specific point in time. For example, Jia et al applied a multistate approach to examine the transition of symptom severity in a cohort of cancer patients in Ontario and demonstrated that symptoms deteriorated over time due to a combination of factors [Reference Jia, Barbera and Sutradhar10].

There have been several studies that have used multistate models to investigate the development of DM complications [Reference Aliyari, Hajizadeh, Aminorroaya, Sharifi, Kazemi and Baghestani11Reference Begun, Morbach, Rümenapf and Icks13]. In one study, researchers collected data over a 25-year time period and applied a multistate model to investigate the transition of type 2 diabetes patients through several complications including retinopathy, coronary artery disease, and microalbuminuria [Reference Aliyari, Hajizadeh, Aminorroaya, Sharifi, Kazemi and Baghestani11]. Another study reported that hemoglobin A1c (HbA1c), systolic blood pressure, and duration of diabetes contributed to the development of microvascular complications in patients with type 1 diabetes [Reference Bjerg, Hulman, Carstensen, Charles, Jørgensen and Witte12]. One other study focused on the progression of DM foot disease and its associated risk factors [Reference Begun, Morbach, Rümenapf and Icks13]. Although multistate modeling has been employed to predict the progression of DM complications in several studies, only a limited number of risk factors were included in their models. Other limitations included focusing on either type 1 or type 2 diabetes patients exclusively [Reference Bjerg, Hulman, Carstensen, Charles, Jørgensen and Witte12]. Finally, these studies restricted their multistate model to only include one complication, such as microvascular complications, or limited their model to a few of the micro- and macrovascular complications [Reference Aliyari, Hajizadeh, Aminorroaya, Sharifi, Kazemi and Baghestani11,Reference Begun, Morbach, Rümenapf and Icks13].

The aim of our study was to use a multistate modeling approach to determine the probability of micro- or macrovascular complications occurrence and death in a population of both type 1 and type 2 diabetes patients. We categorized each complication associated with DM as either microvascular or macrovascular to incorporate all complications in our model. We also combined data from multiple sources to explore more features that contribute to the progression of DM complications. Our features are a combination of demographic, clinical, and socioeconomic information taken from EHRs and the Area Deprivation Index (ADI) [Reference Kind and Buckingham14].

Research design & methods

This study was approved by the ChristianaCare Health Services Inc. Institutional Review Board CCC #38117. ChristianaCare Health Services Inc. is one of the largest health care providers in the mid-Atlantic region, serving most of Delaware and parts of Pennsylvania, Maryland, and New Jersey.

Study design

This was a retrospective longitudinal study using EHR of patients from ChristianaCare primary care practices and endocrinologist specialists during the period of January 1, 2013, through December 31, 2017, and followed through December 31, 2019. We defined an Index Visit as the date of the first ambulatory visit during our study period.

Study population

Patients who had been diagnosed with the International Classification of Diseases Ninth Revision and Tenth Revision (ICD9/10) codes for DM were included in the study. We excluded patients less than 18 years of age. Because our goal was to predict the onset of new complications, we excluded patients diagnosed with ICD9/10 DM complications, ICD9/10 DM-related complications, and DM complications-related current procedural terminology (CPT) codes prior to our study period. Patients with no follow-up ambulatory visits after the index visit, and no HbA1c at Index Visit and any follow-up visits were excluded. Patients with both a micro- and macrovascular complication coded on the same visit were excluded because we could not determine which complication occurred first. Lastly, patients who had their first DM diagnosis at Index Visit and were not prior ChristianaCare patients were also excluded. We confirmed prior patients by checking if they had prior visits in both ambulatory and hospital at least six months prior to the Index Visit. If prior visits were found, we concluded that they were ChristianaCare patients, and the Index Visit was the first diagnosis of DM.

Variables

Our predictor variables include five different categories (Supplement Table 1) from multisource datasets. Demographics include age, sex, race, ethnicity, insurance, diabetes type, smoking status, and duration of diabetes. Vitals include body mass index (BMI), blood pressure systolic, blood pressure diastolic, and heart rate. We had a total of 21 clinical lab variables and 25 Elixhauser comorbidity measures [15]. We also added the ADI as a proxy for socioeconomic status [Reference Chetty, Stepner and Abraham16]. ADI ranks census block groups for each state from 1 (least disadvantaged neighborhood) to 10 (most disadvantaged neighborhood) [Reference Kind and Buckingham14]. In order to assign a census block group number to a patient, we used the most current address in the EHR and geocoded their location to a specific census block group. The 12-digit census block group code was linked to the latest ADI version. We clustered the decile rankings into five categories of two for simplification.

Outcomes

Our events of interest are the two types of complications (micro- and macrovascular) associated with DM and death. Complications were defined using ICD9/10 diagnosis codes associated with DM specific complications, ICD9/10 diagnosis codes related to DM complications and CPT codes related to DM complications [Reference Gregg, Li and Wang17]. The ICD9/10 and CPT codes used to define the complications are provided in Supplement Table 2. Because coding for nephropathy is not very sensitive, we also included the biological definition of chronic kidney disease (CKD) to identify nephropathy [Reference Samal, Linder, Bates and Wright18]. CKD was ascertained if patients had 2 glomerular filtration rate estimates < 60 mL/min/m2 at intervals of 90 days or more or 2 abnormal albuminuria/proteinuria at intervals of 90 days or more [Reference Al Nasser, Ali and Sattar19].

Data preprocessing and challenges

Although EHRs are rich in data, most of these data are not collected in a systematic manner and are organized in multi-dimensional tables resulting in a large number of missing values. In our baseline data (Index visit), we had missing values for smoking status (0.2%), vitals (1.0-10.1%), clinical labs (14.8%-52.8%), and ADI (7.4%). To avoid excluding patients with missing values, we used two different multiple imputation techniques. First we applied the multiple imputation using changed equations (MICE) to our baseline data. MICE has the ability to capture the uncertainty around the imputed values by replacing each missing observation with a set of plausible values yielding multiple imputed datasets. We assumed that the data were missing at random. We used a linear regression model for continuous variables, a logistic regression model for binary variables and a polytomous logistic regression model for categorical variables. The algorithm works by iteratively imputing the missing values based on the fitted conditional models until a stopping criterion is satisfied. With these techniques, missing data for a subject is imputed by a value that is predicted using the subject’s other, known characteristics. We imputed 10 data sets and selected the set that deviated the least from the mean of original data variables [Reference Wells, Nowacki, Chagin and Kattan20,Reference Buuren and Groothuis-Oudshoorn21].

Second we used the last observation carry forward (LOCF) technique for our follow-up data, a method applicable to longitudinal or repeated time-series data [Reference Shao and Zhong22]. Using LOCF, a missing observation is replaced by the most recent observed value for a variable for each patient.

Statistical analysis

A Markov multistate model was used to examine the process of a disease [Reference Putter and Fiocco9,Reference Jackson, Sharples, Thompson, Duffy and Couto23,Reference Therneau, Crowson and Atkinson24]. The model contains several transitions and states. States represent the status of a patient at a given time and transitions between states represent a change in a patient status. Patients can transition from a finite number of states during any given time during the observation period. Under the Markov assumption, given an observed state, the future state depends on the present state, but not on the earlier states [Reference Jackson25]. In a multistate model, transition intensities represent the instantaneous risk of moving from one state to another. The transition intensity is computed jointly for all possible transitions using a maximum likelihood estimation approach and results in a transition intensity matrix. To understand the effect of covariates on transitions, covariates were fitted using a proportional hazards model to the transition intensity matrix [Reference Marshall, Guo and Jones26]. Additionally multistate models can allow different sets of covariates to be used in modeling different transitions to increase flexibility and reduce the number of parameters in the model. In our model, we employed a variable selection technique to select which variables were included at each transition. A hazard ratio (HR) for each covariate was calculated to analyze the covariate’s effect on each transition. From the transition intensity matrix, it is possible to compute the transition probability matrix within a given period. The transition probability matrix was calculated for one, three, and five years.

A multistate model was built to examine the development of long-term complications after DM diagnosis. We assumed intermittent observation, where the exact date of the transition is unknown but occurred between two observation periods. The only exact known date is the death date. We used the Social Security Death Index database to obtain the exact death dates. We categorized a complication as either a micro- or macrovascular to minimize the complexity of modeling each complication individually. During our study period, a patient occupied one of five distinct states: DM State if a patient did not develop any complications; Microvascular State if a patient developed nephropathy, neuropathy, or retinopathy; Macrovascular State if a patient developed cardiovascular, foot (non-ulcer) and other complications; Both State if a patient developed a macrovascular complication following a previous microvascular complication diagnosis and vice versa; Death State if a patient died during the follow-up period. Patients could only progressively move forward through the states and could transition to the Death State from any of the other states. We did not allow backward transitions (Micro/Macro State to DM State) since a complete reversal of long-term complications is not always possible even with proper management and care. We did not allow the transition from DM State directly to Both State. Since we were following the progression of a patient moving from one DM complication to the other, one at a time, to calculate the transition rate, patients were excluded if we could not determine which type of complication occurred first. In a multistate model, censoring is often considered at the state level, but not at the time of the event. In this case, censoring means that we do not know (observe) the exact state of a patient (since the last state the patient transitioned to) at the end of the study period or loss to follow-up. That is, the exact state is unknown but known to be in a certain set at the end of the study or loss to follow-up. We incorporated censoring (at the state level) in our model building for patients without known (observed) exact disease state at the end of our study period or loss to follow-up.

Variable selection and model building

We selected demographic, clinical variables, and comorbidities that were available through the EHR as well as socioeconomic data from the ADI. We had a total of 59 variables in our dataset (Supplement Table 1). Due to the high dimensionality of our data, we needed to reduce the number of variables that might be highly correlated to avoid overfitting our model with redundant data. We ran several iterations of multivariate models using variable screening with our variables. Furthermore, we ran a version of multivariate multistate models without death transitions to determine if the effects of the variables for other state transitions remained the same. The Akaike information criterion (AIC) of each model was computed. AIC provides a good estimate for the overall model performance [Reference Bozdogan27]. We selected our final multistate model based on the lowest AIC. Additionally, we performed a likelihood ratio test between the nested multistate models [Reference Lewis, Butler and Gilbert28]. We validated our final model by comparing the diagnostic plots of observed versus expected prevalence estimates at a series of time points [Reference Jackson, Sharples, Thompson, Duffy and Couto23,Reference Jackson25,Reference Titman and Sharples29].

Finally, to verify that excluding the patients for whom both micro- and macrovascular complications were coded at the same visit did not result in biased results we did a sensitivity analysis and re-ran all the models by either assigning all these patients to the microvascular state first or assigning them to the macrovascular state first.

The data were analyzed using the multi-state modeling packaged from R statistical software version 4.0.2 [Reference Jackson25].

Results

Study population

Our study population included 10,596 unique patients. Figure 1 illustrates the flowchart of patient selection for our study. Of the 10,596 patients, 56.2% were female, 64.3% were White, 28.4% were Black, 65.8% had commercial insurance, 28.6% were on Medicare, 1.9% were on Medicaid or dual insurance, and 0.8% were categorized as self-pay. Mean age (standard deviation) was 54.7 (14.1) years. A large majority of patients had type 2 diabetes (93.1%) and 1.8% have had diabetes for less than 5 years, 92.4% for 5 to 10 years, and 5.9% for more than 10 years. Many patients were former/current smokers (42.8%). The median (interquartile range) follow-up was 4.72 (3.11-6.55) years. The range of follow-up for our study population was 1.17 years to 6.99 years.

Figure 1. Flowchart of patient selection. A total of 10,596 patients were selected for our study population. DM = diabetes mellitus.

Variable selection

We started with a null model that included all 59 variables for each transition for our first iteration multistate model. We then performed variable screening to drop covariates that were not significant. We stopped the iterative process when the AIC difference between two nested models was small and not decreasing. Our initial null model had an AIC of 42,017.42 and our final multistate model had an AIC of 38,061.59. The AIC results indicated that a simpler model containing fewer variables was more favorable than a model that included all the variables. And lastly, our diagnostic plots show the prevalence of the observed vs expected states (Figure 2). The diagnostic plots from each iteration of the multivariate multistate model were very similar, which reinforces that a simpler model can be favorable to avoid overfitting and achieve better interpretability.

Figure 2. Model diagnostic plot of final model, observed vs expected (estimated) patients for each state over time. Tables of observed number of patients for each state.

The variables chosen for our final model are listed for each transition in Table 1. The transition from the DM State to the Microvascular State included 32 unique covariates – 6 demographics, 3 vitals, 12 clinical labs, 10 comorbidities, and ADI. DM State to Macrovascular State had 21 covariates – 4 demographics, 2 vitals, 6 clinical labs, and 9 comorbidities. DM State to Death State had no significant variables during our iterative process therefore there were no variables for our final model. Microvascular State to Both State had 20 covariates – 4 demographics, 1 vital, 5 clinical labs, and 10 comorbidities. Microvascular State to Death State had no significant variables. Macrovascular State to Both State had 16 covariates – 4 demographics, 1 vital, 5 clinical labs, and 6 comorbidities. Macrovascular State to Death State included only one clinical lab. The transition from Both to Death State had 5 significant variables, which included 1 demographic and 4 clinical lab variables. The models for the transitions that had no significant variables did not converge because of the low number of observations.

Table 1. Final multistate model; significant covariates for each transition and their hazard ratios [95% CI]

CI = confidence interval; DOD = duration of diabetes; ADI = area deprivation index.

Table 1 shows the HR of each covariate for all transitions. For example, HRs for age, Medicaid/Dual insurance, smoking status, systolic blood pressure, and HbA1c are significant across all transitions to Microvascular, Macrovascular, and Both States. Women are less likely to develop microvascular and macrovascular complications than men (HR = 0.910 [0.838, 0.987]), as well as less likely to develop an additional macrovascular complication if they already had a microvascular complication (HR = 0.672 [0.568–0.796]). Patients of “Other Races” vs White are more likely to develop a microvascular complication with an existing macrovascular complication (HR = 1.512 [1.000, 2.314]). ADI is significant for patients who develop microvascular complications. Individuals who reside in the most disadvantaged neighborhoods (9–10) have an HR of 1.365 [1.217, 1.532] compared to those who reside in the least disadvantaged neighborhoods (1–2).

Multistate model

The number of patients moving from one state to the other is described in Figure 3. A total of 5928 patients did not develop any complications by the end of our study period, 32 died with no reported complications, 3323 developed microvascular complications, and 1313 developed macrovascular complications. Of the 3323 who developed microvascular complications, 671 further developed macrovascular complications and 36 died. Of the 1313 who developed macrovascular complications, 458 also developed microvascular complications and 13 died. There were 1129 who developed both a microvascular and macrovascular complication and 45 from that group died.

Figure 3. Five-state model for examining the progression of diabetes-related complications using electronic health records among diabetes patients. N, number of censored patients at the end of follow-up or loss to follow-up; n, number of observed transitions; TI [], transition intensity [95% CI]. Transition from diabetes state to Both State is not an allowable transition. Both State refers to patients who have a micro- and macrovascular complication. Death is the final absorbing state.

From our 5-state model, we estimated the transition intensity matrix, which provides the instantaneous rate of moving from one state to another state. Figure 3 shows that a patient has a faster rate of developing a microvascular complication compared to a macrovascular complication, 0.1334 [0.1284, .1386] versus 0.0508 [0.0479, .0540]. However, a patient has a higher instantaneous rate of developing a second complication if they already had a macrovascular complication compared to a microvascular complication, 0.0784 [0.0679, .0905] versus 0.0395 [0.0355, .0439].

From our model we also calculated the one-, three-, and five-year transition probabilities, providing the risk over time of getting to a particular state (Table 2). As time increases, the probability of staying in a DM State with no complications decreased from 83.2% [82.7%, 83.6%], to 57.5% [56.5%, 58.5%], and 39.8% [38.7%, 41.0%] at one-, three-, and five-year respectively. The risk of developing microvascular complications increased over time, with probabilities of 11.9% [11.5%, 12.4%], 28.8% [27.8%, 29.6%], and 38.8% [37.7%, 39.9%]. The risk over time to transition from no complications to a macrovascular complication increases from 4.4% [4.2%, 4.7%], to 10.3% [9.7%, 10.9%] and 13.3% [12.4%, 14.0%]. There is a smaller risk of developing a macrovascular complication compared to a microvascular complication because of a lower instantaneous rate as described in Figure 3. Among patients who transition to the Both State, patients with an existing macrovascular complication will have double the probability of getting a microvascular complication (7.5% [6.5%, 8.6%]) compared to those with an existing microvascular complication (3.8% [3.5%, 4.2%]) at one-year and this trend continues at three- and five-year.

Table 2. Estimated 1-year, 3-year, and 5-year state-to-state transition probabilities among diabetes patients

An example of how to interpret the table: In 1 year, a patient will stay in a DM State (no complications) with a probability of 83.2%, transition from DM State to Microvascular State with a probability of 11.9%, transition from DM to Macrovascular State with a probability of 4.4% and have a 0.4% of transitioning from a DM State to a Death State. For patients with an existing microvascular complication, they have a 96.0% probability of staying in the Microvascular State, 3.8% probability of developing a macrovascular complication and transitioning to the Both State, and 0.2% of transition from the Microvascular State to Death State. For those that have an existing macrovascular complication, they have a 92.3% probability of staying in that state, a 7.5% of developing a microvascular complication and transitioning to the Both State, and a 0.3% of transitioning from the Macrovascular State to Death State. Those that are in the Both State (having a micro- and macrovascular complication) have a 98.7% probability of staying in that state and a 1.3% probability of transitioning to the Death State.

CI = confidence interval, DM = diabetes mellitus.

The sensitivity analysis did not show any differences in the results whether all the 53 patients who transitioned directly from diabetes to Both State at the same visit were assigned to the Diabetes to Micro first (all micro) or to the Diabetes to Macro first (all macro) as shown in Supplement Tables 3 and 4. The fact that the results of the 3 models were very similar corroborated our decision to exclude the 53 patients who transitioned to both from the diabetes state as mentioned in our study population paragraph and in Figure 1.

Discussion

The multistate model we developed shows the rate and risk of a patient transitioning from having no complication to having multiple complications. The results show that patients had a higher rate of developing microvascular complications compared to macrovascular complications. Incorporating variables from multisource datasets allowed us to explore the effects of covariates on each transition. For example, women seem to be less likely to develop macrovascular complications, which is unexpected considering the results of multiple studies showing a higher risk for cardiovascular complications in diabetic women compared to diabetic men [Reference Madonna, Balistreri and De Rosa30Reference Recarti, Sep, Stehouwer and Unger32]. However, many of these studies report separately the relative risk of cardiovascular complications in diabetic versus nondiabetic men and women. Women may have a higher relative risk than men because the cardiovascular burden in nondiabetic women is lower than the cardiovascular burden in nondiabetic men. In our study, we compared directly diabetic women to diabetic men and excluded from our population individuals with known cardiovascular disease at baseline. On the other hand, all the complications in our database are defined by diagnosis codes entered during or after a clinical encounter. It is possible that cardiovascular complications diagnoses were missed in women because of atypical symptoms frequently occurring in diabetic women [Reference Madonna, Balistreri and De Rosa30]. We also found that women were least likely to develop microvascular complications, which is consistent with studies showing men with a higher risk of developing microalbuminuria and diabetic retinopathy [Reference Looker, Nyangoma and Cromie33Reference Stratton, Kohner and Aldington35].

Our model shows that an increase in HbA1c is significant for the development of both micro- and macrovascular complications, which emphasizes the importance of controlling HbA1c. The effects of HbA1c and systolic blood pressure levels are consistent with results found in other studies that applied multistate modeling to microvascular complications [Reference Aliyari, Hajizadeh, Aminorroaya, Sharifi, Kazemi and Baghestani11Reference Begun, Morbach, Rümenapf and Icks13]. Not surprisingly, smoking is a risk factor for developing a new complication at any step of the model. ADI, which is not included in EHRs, is a significant factor for patients who develop microvascular complications, with patients who reside in the most disadvantaged neighborhoods having a higher likelihood of developing a complication compared to those who reside in the least disadvantaged neighborhood. Low socioeconomic status has been shown to be associated with diabetic complications in analyses using logistic or Cox proportional hazard regressions and the prevalence of obesity and diabetes has been shown to be associated with neighborhood deprivation but indicators of socioeconomic status or ADI levels have not been included in previous diabetes-related multistate models [Reference Hu, Lawrence, Bodkin, Kwok, Engel and Sandler36Reference Saydah, Imperatore and Beckles39].

Our study considered all complications associated with DM by including diagnosis codes specifically for DM and those related to DM. Most applications of multistate modeling limit their transitions to only include a subset of complications associated with DM with a relatively small number of covariates.

Although our model shows predictive strength it also has several limitations. The first is that we used diagnosis codes to identify complications, which may not reflect the exact timing of occurrence of a complication and may also miss some complications. However, by broadening our outcomes to not only ICD9/10 DM specific codes but also to ICD 9/10 and CPT codes related to DM, we were able to capture more patients who experienced complications who normally would have been missed as transitioning to a Micro- or Macrovascular State. Second, our model was not validated with an external dataset to determine performance. Nevertheless, we examined model selection criteria such as AIC at each iteration of our model building. Furthermore, our diagnostic plots show validity in our analysis. Since we did not have medication in our data, we based DM control on HbA1c. Also, by categorizing our complications as either micro- or macrovascular, we are assuming that the disease process is similar for each complication within the microvascular or macrovascular categories. This might be reflected by the high number of variables selected for the transition from DM State to Microvascular State. Lastly, since the sample size for transitions to death was small, this might not precisely infer the results of significant variables in the death transitions. However, we ran separate iterations of the multistate model without the death transitions included and it did not affect our estimations for other transitions.

A multistate modeling approach to DM complications can help understand the progression of DM complications which will not only aid a physician’s ability to provide better care but also anticipate complications and plan interventions to reduce the patient’s risk of an event. The burden that DM presents in the long term not only affects the patients’ health but also their life expectancy. With our model, a physician could, for example, vary HbA1C levels and show a patient what is the risk of developing microvascular complications at one-, five-, and ten-years according to their personal characteristics.

Future work will focus on validating the multistate model with an external dataset of DM patients to test the strength of the model’s predictive capabilities. Once validated, the algorithm could be integrated into EHR to allow physicians to predict long-term risk according to a patient’s characteristics.

Supplementary material

The supplementary material for this article can be found at https://doi.org/10.1017/cts.2024.583.

Acknowledgments

The authors would like to thank James T. Laughery for his contributions to the data collection.

Author contributions

R.C.L. participated in the acquisition of the data, performed the statistical analysis, and drafted the manuscript. S.D. performed the statistical analysis. K.N. performed the data collection. V.P. conceptualized the study. C.J. designed the study. All authors critically reviewed the manuscript and approved the final manuscript as submitted.

Funding statement

C.J. is supported by an Institutional Development Award from the National Institute of General Medical Sciences of the National Institutes of Health under grant number U54-GM104941 and grant number P20-GM103446. S.D. was partially supported by the National Science Foundation, Division of Mathematical Sciences, Statistics Program, No. 1916376. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health.

Competing interests

None.

References

DHHS. National Diabetes Statistics Report. Natl Diabetes Stat Rep. 2020:2.Google Scholar
Care, D, Suppl, SS. 2. Classification and diagnosis of diabetes: standards of medical care in diabetes-2021. Diabetes Care. 2021;44(Supplement_1):S15S33. doi: 10.2337/dc21-S002.Google Scholar
Kumar, S, Singh, M. Big data analytics for healthcare industry: impact, applications, and tools. Big Data Min Anal. 2019;2(1):4857. doi: 10.26599/BDMA.2018.9020031.CrossRefGoogle Scholar
Fritzen, K, Heinemann, L, Schnell, O. Modeling of diabetes and its clinical impact. J Diabetes Sci Technol. 2018;12(5):976984. doi: 10.1177/1932296818785642.CrossRefGoogle ScholarPubMed
Zou, Q, Qu, K, Luo, Y, Yin, D, Ju, Y, Tang, H. Predicting diabetes mellitus with machine learning techniques. Front Genet. 2018;9(November):110. doi: 10.3389/fgene.2018.00515.CrossRefGoogle ScholarPubMed
Dagliati, A, Marini, S, Sacchi, L, et al. Machine learning methods to predict diabetes complications. J Diabetes Sci Technol. 2018;12(2):295302. doi: 10.1177/1932296817706375.CrossRefGoogle ScholarPubMed
Lagani, V, Chiarugi, F, Thomson, S, et al. Development and validation of risk assessment models for diabetes-related complications based on the DCCT/EDIC data. J Diabetes Complications. 2015;29(4):479487. doi: 10.1016/j.jdiacomp.2015.03.001.CrossRefGoogle ScholarPubMed
Andersen, PK, Keiding, N. Multi-state models for event history analysis. Stat Methods Med Res. 2002;11(2):91115. doi: 10.1191/0962280202SM276ra.CrossRefGoogle ScholarPubMed
Putter, H, Fiocco, MGRB. Tutorial in biostatistics: competing risks and multi-state models. Stat Med. 2007;26(11):23892430. doi: 10.1002/sim.CrossRefGoogle ScholarPubMed
Jia, J, Barbera, L, Sutradhar, R. Using markov multistate models to examine the progression of symptom severity among an ambulatory population of cancer patients: are certain symptoms better managed than others? J Pain Symptom Manage. 2016;51(2):232239. doi: 10.1016/j.jpainsymman.2015.09.008.CrossRefGoogle ScholarPubMed
Aliyari, R, Hajizadeh, E, Aminorroaya, A, Sharifi, F, Kazemi, I, Baghestani, AR. Multistate models to predict development of late complications of type 2 diabetes in an open cohort study. Diabetes, Metab Syndr Obes Targets Ther. 2020;13:18631872. doi: 10.2147/DMSO.S234563.CrossRefGoogle Scholar
Bjerg, L, Hulman, A, Carstensen, B, Charles, M, Jørgensen, ME, Witte, DR. Development of microvascular complications and effect of concurrent risk factors in type 1 diabetes: a multistate model from an observational clinical cohort study. Diabetes Care. 2018;41(11):22972305. doi: 10.2337/dc18-0679.CrossRefGoogle ScholarPubMed
Begun, A, Morbach, S, Rümenapf, G, Icks, A. Study of disease progression and relevant risk factors in diabetic foot patients using a multistate continuous-time markov chain model. PLOS ONE. 2016;11(1):e0147533. doi: 10.1371/journal.pone.0147533.CrossRefGoogle ScholarPubMed
Kind, AJH, Buckingham, WR. Making neighborhood-disadvantage metrics accessible — the neighborhood atlas. N Engl J Med. 2018;378(26):24562458.CrossRefGoogle ScholarPubMed
Agency for Healthcare Research and Quality, Elixhauser Comorbidity Software, Version 3.7. Healthcare A for R and Q, Project HC and U. Elixhauser Comorbidity Software, Version 3.7. 2011 (https://hcup-us.ahrq.gov/news/announcements/comorbidity_11.jsp) Accessed September 13, 2019.Google Scholar
Chetty, R, Stepner, M, Abraham, S, et al. The association between income and life expectancy in the United States, 2001-2014. JAMA - J Am Med Assoc. 2016;315(16):17501766. doi: 10.1001/jama.2016.4226.CrossRefGoogle ScholarPubMed
Gregg, EW, Li, Y, Wang, J, et al. Chronic disease prevention and health promotion. Centers Dis Control Prev. 2014;16(16):15141537. doi: 10.1056/NEJMoa1310799.Google Scholar
Samal, L, Linder, JA, Bates, DW, Wright, A. Electronic problem list documentation of chronic kidney disease and quality of care. BMC Nephrol. 2014;15(1):27. doi: 10.1186/1471-2369-15-70.CrossRefGoogle ScholarPubMed
Al Nasser, MS, Ali, AS, Sattar, MA A, et al. A new equation to estimate glomerular filtration rate. Ann Intern Med. 2016;150(9):604612. doi: 10.4172/2161-0959.1000264.Google Scholar
Wells, BJ, Nowacki, AS, Chagin, K, Kattan, MW. Strategies for handling missing data in electronic health record derived data. GEMS (Wash DC). 2013;1(3):7. doi: 10.13063/2327-9214.1035.Google ScholarPubMed
Buuren, Svan, Groothuis-Oudshoorn, K. Multivariate imputation by chained equations in R. J Stat Softw. 2011;45(3):167. doi: 10.18637/jss.v045.i03.CrossRefGoogle Scholar
Shao, J, Zhong, B. Last observation carry-forward and last observation analysis. Stat Med. 2003;22(15):24292441. doi: 10.1002/sim.1519.CrossRefGoogle ScholarPubMed
Jackson, CH, Sharples, LD, Thompson, SG, Duffy, SW, Couto, E. Multistate markov models for disease progression with classification error. J R Stat Soc Ser D Stat. 2003;52(2):193209. doi: 10.1111/1467-9884.00351.Google Scholar
Therneau, T, Crowson, C, Atkinson, E. Multi-state models and competing risks. Version 1.0.0. Survival: Vignette. R Foundation for Statistical Computing; Vienna, Austria. Published 2019 (https://cran.r-project.org/web/packages/survival/vignettes/compete.pdf) Accessed January 15, 2020.Google Scholar
Jackson, CH. Multi-state models for panel data: the msm package for R. J Stat Softw. 2011;38(8):128. doi: 10.18637/jss.v038.i08.CrossRefGoogle Scholar
Marshall, G, Guo, W, Jones, RH. MARKOV: a computer program for multi-state markov models with covariables. Comput Methods Programs Biomed. 1995;47(2):147156. doi: 10.1016/0169-2607(95)01641-6.CrossRefGoogle Scholar
Bozdogan, H. Model selection and akaike’s information criterion (AIC): the general theory and its analytical extensions. Psychometrika. 1987;52(3):345370. doi: 10.1007/BF02294361.CrossRefGoogle Scholar
Lewis, F, Butler, A, Gilbert, L. A unified approach to model selection using the likelihood ratio test. Methods Ecol Evol. 2011;2(2):155162. doi: 10.1111/j.2041-210X.2010.00063.x.CrossRefGoogle Scholar
Titman, AC, Sharples, LD. Model diagnostics for multi-state models. Stat Methods Med Res. 2010;19(6):621651. doi: 10.1177/0962280209105541.CrossRefGoogle ScholarPubMed
Madonna, R, Balistreri, CR, De Rosa, S, et al. Impact of sex differences and diabetes on coronary atherosclerosis and ischemic heart disease. J Clin Med. 2019;8(1):98. doi: 10.3390/jcm8010098.CrossRefGoogle ScholarPubMed
Wang, Y, O’Neil, A, Jiao, Y, et al. Sex differences in the association between diabetes and risk of cardiovascular disease, cancer, and all-cause and cause-specific mortality: a systematic review and meta-analysis of 5,162,654 participants. BMC Med. 2019;17(1):1–17. doi: 10.1186/s12916-019-1355-0.CrossRefGoogle ScholarPubMed
Recarti, C, Sep, SJS, Stehouwer, CDA, Unger, T. Excess cardiovascular risk in diabetic women: a case for intensive treatment. Curr Hypertens Rep. 2015;17(6):1–6. doi: 10.1007/s11906-015-0554-0.CrossRefGoogle ScholarPubMed
Looker, HC, Nyangoma, SO, Cromie, D, et al. Diabetic retinopathy at diagnosis of type 2 diabetes in Scotland. Diabetologia. 2012;55(9):23352342. doi: 10.1007/s00125-012-2596-z.CrossRefGoogle ScholarPubMed
Singh, SS, Roeters-van Lennep, JE, Lemmers, RFH, et al. Sex difference in the incidence of microvascular complications in patients with type 2 diabetes mellitus: a prospective cohort study. Acta Diabetol. 2020;57(6):725732. doi: 10.1007/s00592-020-01489-6.CrossRefGoogle ScholarPubMed
Stratton, IM, Kohner, EM, Aldington, SJ, et al. UKPDS 50: risk factors for incidence and progression of retinopathy in type II diabetes over 6 years from diagnosis. Diabetologia. 2001;44(2):156163. doi: 10.1007/s001250051594.CrossRefGoogle ScholarPubMed
Hu, MD, Lawrence, KG, Bodkin, MR, Kwok, RK, Engel, LS, Sandler, DP. Neighborhood deprivation, obesity, and diabetes in residents of the US Gulf Coast. Am J Epidemiol. 2021;190(2):295304. doi: 10.1093/aje/kwaa206.CrossRefGoogle ScholarPubMed
Funakoshi, M, Azami, Y, Matsumoto, H, et al. Socioeconomic status and type 2 diabetes complications among young adult patients in Japan. PLOS ONE. 2017;12(4):114.CrossRefGoogle ScholarPubMed
Lord, J, Roberson, S, Odoi, A. Investigation of geographic disparities of pre-diabetes and diabetes in Florida. BMC Public Health. 2020;20(1):115. doi: 10.1186/s12889-020-09311-2.CrossRefGoogle ScholarPubMed
Saydah, SH, Imperatore, G, Beckles, GL. Socioeconomic status and mortality: contribution of health care access and psychological distress among U.S. adults with diagnosed diabetes. Diabetes Care. 2013;36(1):4955. doi: 10.2337/dc11-1864.CrossRefGoogle ScholarPubMed
Figure 0

Figure 1. Flowchart of patient selection. A total of 10,596 patients were selected for our study population. DM = diabetes mellitus.

Figure 1

Figure 2. Model diagnostic plot of final model, observed vs expected (estimated) patients for each state over time. Tables of observed number of patients for each state.

Figure 2

Table 1. Final multistate model; significant covariates for each transition and their hazard ratios [95% CI]

Figure 3

Figure 3. Five-state model for examining the progression of diabetes-related complications using electronic health records among diabetes patients. N, number of censored patients at the end of follow-up or loss to follow-up; n, number of observed transitions; TI [], transition intensity [95% CI]. Transition from diabetes state to Both State is not an allowable transition. Both State refers to patients who have a micro- and macrovascular complication. Death is the final absorbing state.

Figure 4

Table 2. Estimated 1-year, 3-year, and 5-year state-to-state transition probabilities among diabetes patients

Supplementary material: File

Li et al. supplementary material

Li et al. supplementary material
Download Li et al. supplementary material(File)
File 70.2 KB