Original Paper
Abstract
Background: Artificial intelligence–enabled electronic health record (EHR) analysis can revolutionize medical practice from the diagnosis and prediction of complex diseases to making recommendations in patient care, especially for chronic conditions such as chronic kidney disease (CKD), which is one of the most frequent complications in patients with diabetes and is associated with substantial morbidity and mortality.
Objective: The longitudinal prediction of health outcomes requires effective representation of temporal data in the EHR. In this study, we proposed a novel temporal-enhanced gradient boosting machine (GBM) model that dynamically updates and ensembles learners based on new events in patient timelines to improve the prediction accuracy of CKD among patients with diabetes.
Methods: Using a broad spectrum of deidentified EHR data on a retrospective cohort of 14,039 adult patients with type 2 diabetes and GBM as the base learner, we validated our proposed Landmark-Boosting model against three state-of-the-art temporal models for rolling predictions of 1-year CKD risk.
Results: The proposed model uniformly outperformed other models, achieving an area under receiver operating curve of 0.83 (95% CI 0.76-0.85), 0.78 (95% CI 0.75-0.82), and 0.82 (95% CI 0.78-0.86) in predicting CKD risk with automatic accumulation of new data in later years (years 2, 3, and 4 since diabetes mellitus onset, respectively). The Landmark-Boosting model also maintained the best calibration across moderate- and high-risk groups and over time. The experimental results demonstrated that the proposed temporal model can not only accurately predict 1-year CKD risk but also improve performance over time with additionally accumulated data, which is essential for clinical use to improve renal management of patients with diabetes.
Conclusions: Incorporation of temporal information in EHR data can significantly improve predictive model performance and will particularly benefit patients who follow-up with their physicians as recommended.
doi:10.2196/15510
Keywords
Introduction
Background
With the rapid development in digitization of health care data, the modern electronic health records (EHRs) hold considerable promise for driving scientific advances in various aspects of biomedicine through the utilization of machine learning techniques. EHRs contain not only diverse clinical data elements that can better describe a patient’s overall health status but also rich longitudinal data of patients that serve as a critical source for understanding the evolution of disease and management of chronic conditions. Developing accurate risk prediction models to drive timely initiation of appropriate therapies and monitoring is of paramount importance for conditions that have a substantial public health impact and can benefit greatly from early intervention.
Chronic kidney disease (CKD), especially CKD attributed to diabetes, that is, diabetic kidney disease (DKD), certainly falls within this category [
]. DKD is one of the most frequent and dangerous microvascular complications in diabetes mellitus (DM) that affects about 20% to 40% of patients with type 1 or type 2 DM [ ]. It is the leading cause of end-stage renal disease (ESRD), which accounts for approximately 50% of the cases in the developed world with major public health and economic implications [ ]. Therefore, annual screening is recommended for patients with type 1 and type 2 diabetes [ , ], which in turn has two implications: (1) there is a better chance for us to observe more regular and meaningful temporal patterns among these patients, and (2) an effective model for predicting the risk of DKD in the following year can be more beneficial for patients who are compliant to the annual check protocol because this allows implementation of early preventive measures.Related Work
The effective use of temporal EHR data for predictive modeling remains a challenge owing to its highly variable sampling rates across different groups of patients (eg, patients may not follow the annual check protocol and only visit the hospital for critical health events) and distinct data types (eg, vital signs are noted hourly during inpatient encounters, whereas laboratory tests and medications are recorded when clinicians order them, and demographic data are more stable). Attempts have been made to handle temporal information in a variety of clinical applications. One approach involves representing the time series of clinical features with a single heuristic value (eg, taking the latest value or the trend [
] or shrinking to a weighted sum of values with the weights determined by the timestamps [ , ]). Another approach is to preserve the underlying sequential order by mapping the time series into temporal patterns (eg, knowledge-based temporal abstraction or hidden Markov chains [ , ]) or symbolic representations (eg, the Symbolic Aggregate approXimation based on Gaussian quantiles and the temporal discretization for classification [ , ]). Moreover, deep learning techniques such as recurrent neural networks, in particular, long- and short-term memory and Gated recurrent units, have contributed to model temporal events [ - ]. However, it has also been reported in the corresponding work that many such approaches could suffer from high data sparsity or informative missingness and insufficient training data.In the prediction of kidney-related events, single-value abstraction is the most popular approach for its simplicity but at the expense of reduced temporal granularity. For example, in the ADVANCE prospective study for diabetic nephropathy, only baseline values of selected labs and vitals are used in a Cox proportional survival model [
]. A multivariate Cox proportional survival model was developed for predicting ESRD based on mean- and variation-abstractions of repeated glycated hemoglobin (HbA1c), creatinine, and blood pressure measurements [ ]. More sophisticated use of temporal EHRs has also been studied, many of which were targeted at severe or acute kidney-related events. A Bayesian multiresolution hazard model for predicting CKD progression from stage III to stage IV attempted to capture temporal patterns by associating variables with piece-wise hazard increments at different time windows [ ], whereas an independent Markov process modeled the underlying sequential latent states for predicting the transition from CKD stage III to stage IV [ ]. A multitask linear model enabled knowledge transfer from one time window to another in the prediction of short-term renal function loss [ ], and a tree-based discrete-survival-like gradient boosting machine (GBM) predicting acute kidney injury in inpatients allowed the features and their association with outcome to be time variant and showed excellent performance [ ]. However, all of the aforementioned approaches require moderate to high manual effort on feature preselection and curation, which not only limits the scalability of the predictive models but also discards considerable amount of information in each patient’s records [ ]. In addition, the complexity of EHR data often violates the linearity and independence assumptions for survival and linear models, resulting in worse predictions and impaired generalizability.Objectives
In this study, we propose a new approach for incorporating the temporal information in medical history of patients with diabetes to further improve the predictive model for evaluating their risk of renal complication in the next year. Because of its robustness, efficiency, and established efficacy in the prediction of kidney events [
], we chose GBM as the base learner and augmented it with schemes to continuously update its learning results based on new patient inputs over a full breadth of EHR data on a yearly basis, named Landmark-Boosting. Here, the landmark time refers to an unbiased reference point (eg, t years since the onset of DM) at which we want to construct stagewise prediction models and make dynamic risk predictions using information collected up to that time [ , ]. The final prediction model is then an ensemble of individual boosting models trained at each landmark time apriori.Methods
Definition of Diabetes
We adopted the Surveillance, Prevention, and Management of Diabetes Mellitus definition of diabetes in this study. Diabetes was defined based on the following: (1) the use of glucose-lowering medications (insulin or oral hypoglycemic medications); or (2) level of HbA1c of 6.5% or greater, random glucose of 200 mg/dL or greater, or fasting glucose of 126 mg/dL on at least two different dates within 2 years; or (3) any two type 1 and type 2 DM diagnoses been given on 2 different days within 2 years; or (4) any two distinct types of events among (1), (2), or (3); and (5) excluding any gestational diabetes (temporary glucose rise during pregnancy) [
]. DM onset time was defined as the first occurrence of any events from (1) through (5).Definition of Diabetic Kidney Disease
DKD was defined as diabetes with the presence of microalbuminuria or proteinuria, impaired glomerular filtration rate (GFR), or both [
, ]. Microalbuminuria was defined as albumin-to-creatinine ratio (ACR) being 30 mg/g or greater, and similarly, proteinuria was defined as urine protein-to-creatinine ratio being 30 mg/g or greater [ , ]. Impaired GFR was defined as the estimated GFR (eGFR), an age-, gender-, race-adjusted serum creatinine concentration based on the modification of diet in renal disease equation [ ] being less than 60 mL/min/1.73 m2.Study Cohort
The study constructed a retrospective cohort using deidentified EHR and billing data from November 2007 to December 2017 in the University of Kansas Medical Center’s integrated clinical data repository Healthcare Enterprise Repository for Ontological Narration (HERON) [
]. The study did not require approval from the institutional review board because data used met the deidentification criteria specified in the Health Insurance Portability and Accountability Act Privacy Rule. The HERON Data Request Oversight Committee approved the data request. As shown in , a total of 35,779 adult patients with nongestational DM (age≥18 years) who had at least one valid eGFR or ACR record at an outpatient encounter were eligible for this study so that they could be identifiable as DKD present or not. We excluded patients presenting with any type 1 DM or cystic fibrosis–related diabetes diagnoses over their observation period and those who had kidney disease manifestation (eg, CKD diagnosis, low eGFR, or microalbuminuria) before the onset of DM. The case group included all DKD patients with their DKD onset time, or end point, defined as the first time of their abnormal eGFR or ACR. The control group was defined as patients with DM whose eGFR values were always above or equal to 60 mL/min/1.73 m2 and had never had microalbuminuria, with their end point defined as the last time of their normal eGFR or ACR. Finally, 14,039 patients were included in the final cohort with 4785 (34.08%) patients with DKD.Clinical Variable Extraction
According to our data, the heuristic time between 2 adjacent outpatient eGFR or ACR labs is on average 1 year per patient. Thus, for a patient i, a sequence of time-stamped examples (ie, DKD statuses, 1 for DKD and 0 for non-DKD), is identified based on their last outpatient eGFR or ACR collected annually, denoted as {yit}tT. Note that a patient may be missing eGFR/ACR during certain years, and we kept the corresponding DKD status as NA without any imputation. For example, the outcome sequence for a patient can be (0, NA, 1), which can be interpreted, respectively, as “the patient did not have DKD the same year as DM onset, but cannot determine DKD status for the second year, and had DKD onset in the third year.”
Each patient was then represented by collecting 15 common types of clinical observations from HERON [
] ( ). Each category is a mixture of categorical and numerical data elements. Numeric values were used for laboratory tests and vital signs, whereas binary indicator variables were used for categorical features. In addition, we abstracted the Medication variables at the Semantic Clinical Drug Form or Semantic Clinical Brand Form level and Diagnoses variables at the International Classification of Diseases (ICD)-9 or 10 code level [ ]. We further decomposed clinical features into more meaningful pieces according to (1) different sources of a diagnosis (ie, billing diagnoses or EHR problem list diagnoses), (2) different aspects of a medication fact (ie, drug refill or drug amount), (3) different types of encounters where a procedure was ordered or performed (ie, inpatient or outpatient), and (4) different states of an alert (ie, fired or overridden). These data elements were extracted from our institutional EHR and had been explicitly incorporated in our data warehouse as an additional i2b2-specific attribute called modifier [ ]. Among the initial 22,331 distinct features available for our study cohort, 15,707 (70%) were only recorded for <1% of the patients, which we excluded to reduce data sparsity.Domain | Descriptions | Data type | Number of eligible featuresa | Patientsb, n (%) |
Alerts | Includes drug interaction, dose warnings, drug interactions, medication administration warnings, and best practice alerts | Binary | 531 | 11,848 (84.39) |
Allergy | Includes documented allergies and reactions | Binary | 49 | 5044 (35.93) |
Demographics | Basic demographics such as age, gender, race, etc, as well as their reachability, and some geographical information | Binary/numeric | 10 | 14,039 (100.00) |
Diagnoses | Organized using ICDc-9 and ICD-10 hierarchies. Intelligent Medical Objects interface terms are grouped to ICD-9 and ICD-10 levels. Diagnosis resources are further separated by source of the assignment (eg, EMRd, professional billing, technical billing, and registry). | Binary | 1186 | 12,616 (89.86) |
History | Contains family, social (ie, smoking), and surgical history from the EMR, as well as engineered features such as number of distinct clinical facts and clinical fact increments since last collection point | Binary/numeric | 155 | 12,178 (86.74) |
Laboratory tests | Results of a variety of laboratory tests, including cardiology and microbiology findings. Note that the actual laboratory values are used in modeling, if available. | Binary/numeric | 685 | 11,990 (85.40) |
Medications | Includes dispensing, administration, prescriptions, as well as home medication reconciliation at the University of Kansas Hospital grouped at Semantic Clinical Drug Form or Semantic Clinical Brand Form level. Medication resources are further separated by types of medication activity. | Binary | 1205 | 8295 (59.09) |
Procedures | Includes Current Procedural Terminology professional services and inpatient ICD-9 billing procedure codes. | Binary | 560 | 12,460 (88.75) |
Orders | Includes physician orders for nonmedications, such as culture and imaging orders from the EMR. | Binary | 1053 | 12,460 (88.75) |
Vizient (billing) | (formerly University Health System Consortium) Includes both billing classifications such as Diagnostic Related Groups, comorbidities, discharge placement, length of stay, and national quality metrics. | Binary | 657 | 3619 (25.78) |
Visit details | Includes visit types, vital signs collected at the visit, discharge disposition, and clinical services providing care from both EMR and billing. | Binary/numeric | 474 | 13,671 (97.38) |
aThis does not include all distinct concepts from the entire Healthcare Enterprise Repository for Ontological Narration system; it only includes the total number of distinct features that had ever been recorded for at least one patient in the study cohort.
bThis is the number of patients who have at least one observation during any time window recorded from the corresponding data domain.
cICD: International Classification of Diseases.
dEMR: electronic medical record.
In
, we illustrated the feature densities over time across different data types. Each row corresponds to the average number of distinct clinical facts per patient for a data type over 5 years before and after DM onset. An evident heterogeneity of clinical activities before and after DM onset can be observed. For example, lab frequencies are much higher in the first 2 years of DM onset, with visits becoming more frequent after DM onset.In
, we characterized the temporal variations by estimating the between-observation time, or observation intensity, for each data type and observed that the between-patient irregularity of sampling rates is significantly different from within-patient (P<.001) based on the analysis of variance tests, except for demographics, suggesting varying degrees of health care exposure across patients and over time.Data typea | Mean time lapses (days) | Within-patient standard deviation (days) | Between-patient standard deviation (days) | P value |
Alerts | 67 | 93 | 146 | <.001 |
Allergy | 169 | 158 | 214 | <.001 |
Diagnoses | 87 | 105 | 133 | <.001 |
History | 184 | 230 | 872 | <.001 |
Laboratory tests | 107 | 122 | 175 | <.001 |
Medications | 70 | 70 | 137 | <.001 |
Procedures | 74 | 99 | 132 | <.001 |
Orders | 81 | 95 | 127 | <.001 |
Vizient | 228 | 189 | 304 | <.001 |
Visit details | 36 | 61 | 70 | <.001 |
aDemographics are not included as they are unique at the patient level.
Experimental Design
For the clinical task of predicting DKD risk over the next year, we first randomly divided the 14,039 patients into training set (80%) for model development and validation set (20%) for performance evaluations. To simulate a more realistic clinical scenario and account for the bias caused by varying degrees of health care exposure over time, we stepped forward through patients’ time course and built prediction models at each landmark time, that is, every full year since DM onset, for rolling predictions of 1-year DKD risk. As such, individuals may contribute to or be tested by one or more prediction models, depending on their eligibility at the landmark time.
Gradient Boosting Machine
We chose GBMs as the baseline training model, which were then combined with four different approaches to incorporate temporal data. GBM is a family of powerful machine-learning techniques that have shown considerable success in a wide range of practical applications [
- ]. We chose GBM as the base learner for its robustness against high dimensionality and collinearity and also because it embeds feature selection scheme within the process of model development [ ]. To better control overfitting, we tuned the hyperparameters (depth of trees: 2-10; learning rate: 0.01-0.1; minimal child weight: 1-10; number of trees is determined by early stopping, ie, if the holdout area under the receiver operating curve [AUROC] had not been improved for 100 rounds, then we stopped adding trees) within the training set using 10-fold cross-validations.Missing Values
Missing values were handled in the following fashion: for categorical data, a value of 0 was set for missing, whereas for numerical data, a missing value split was always accounted for, and the best imputation value can be adaptively learned based on the improvement in training AUROC at each tree node within the ensemble [
]. For example, if a variable X takes values (0, 1, 2, 3, NA, and NA), where NA stands for missing, the following two decisions will be made automatically at each split for each tree: (1) should we split based on missing or not? and (2) if we split based on values, for example, >1 or ≤0, should we merge the missing cases with the bin of >1 or ≤0?Evaluation Metrics
We used AUROC and area under precision recall curve (AUPRC) to compare the overall prediction performance, with the latter known to be more robust to imbalanced datasets. In addition, we characterized calibration by the observed-to-expected outcome ratio (O:E), which measures agreement between the predicted and observed risk on average across observations. By treating testing examples with predicted probability of outcome in the top 40th percentile as positive cases, we made fair performance comparisons among different methods and further examined the model’s ability in detecting positive vs negative cases by reporting the sensitivity, specificity, positive predictive values (PPVs), and negative predictive values.
Temporal Information Incorporation
depicts the four different approaches explored in this study for handling temporal EHR data: Latest-Value provides the most straightforward way to aggregate repeatedly measured variables; Stack-Temporal attempts to differentiate the effects of the same variable associated with different timestamps; and Discrete-Survival allows survival analysis model to be created by using binary classifier, which effectively enhances the chronical relationship between the predictors and the outcome. Landmark-Boosting is our proposed model motivated by the boosting method, which is designed to ensemble identification trees by learning over time. Each of the approaches is discussed in detail in the following sections.
Latest-Value Approach
In this approach, we simply collect the last observed value before each landmark time for each predictor across all time windows (
) [ ]. The Latest-Value approach is time agnostic, which implies it only retains the information about existence of certain predictors at the patient level. For example, the latest creatinine recorded for patient A can be 1 month ago but 1 year ago for patient B, which will be treated equally by this approach.Stack-Temporal Approach
Given the variables for all time windows T, the Stack-Temporal approach concatenates the variable from all windows to represent patient xi using p-dimensional vector, where p=number of variables x T (
) [ ]. One of the disadvantages of this approach is that the feature dimensionality increases proportionally to T, which may lead to worse prediction performance because of overfitting.Discrete-Survival Approach
The Discrete-Survival approach simulates a discrete-time survival framework by separating the full course of patient’s medical history into L nonoverlapping yearly windows, L=1,2,...T, with variables from t-1 to predict DKD risk in t (
) [ ]. This approach assumes that examples from different time windows are independent of each other even if they may come from the same patient, which does not explicitly allow knowledge to be transferred from the previous time window to the next.Landmark-Boosting Approach
To build the continuous learning mechanism, we developed a new method by extending the classical GBM to ensemble learners over time, that is, from one landmark time to the next (
). Specifically, we collected data Dt={(xit , yi)} with i=1,2,…,Nt at each time window t and tried to solve the following optimization problem sequentially for all 1≤t≤T,min Et|t-1[L(y, Ft (xt, Ft-1(xt-1,yt-1)))] (1)
where F represents the prediction function (ie, ensemble of trees), L represents the loss function (ie, logloss), and Et/t-1 stands for conditional expectation at timet using observed values at time t-1. In other words, we used the predicted probability from time t-1 as the baseline risk and ensembled new learners based on predictors updated at time t.
presents the algorithm describing the detailed implementation steps.Results
Cohort Characteristics
At each landmark time, the eligibility of a patient was determined by checking if a valid eGFR or ACR reading presented in the current time window and was neither DKD nor censored in the previous time windows. As shown in
, the number of eligible patients dropped over time with an increasing DKD rate as a mixing result of cases dropping out or censored from last time.There is a mild decreasing trend of age and race (white) proportion over the landmark times. In addition, we compared such case-mix shifts between training and testing sets and found no significant differences (
).Landmark time (number of years since DMa onset) | Eligible, n (%) | DKDb, n (%) | Age (years), mean (SD) | Sex (male), n (%) | Race (white), n (%) |
0 | 10,705 (76.25) | 1673 (15.63) | 58 (13) | 5229 (48.84) | 7221 (67.45) |
1 | 7755 (72.44) | 1467 (18.92) | 58 (13) | 3782 (48.77) | 5185 (66.86) |
2 | 5689 (73.36) | 1163 (20.44) | 57 (13) | 2734 (48.06) | 3715 (65.30) |
3 | 4113 (72.30) | 914 (22.22) | 56 (12) | 2002 (48.67) | 2671 (64.94) |
4 | 3006 (73.09) | 740 (25.73) | 56 (12) | 1480 (49.23) | 1941 (64.57) |
aDM: diabetes mellitus.
bDKD: diabetic kidney disease.
Landmark time (number of years since DMa onset) | Training (n=11,184) | Testing (n=2855) | P valueb | |
Eligible | ||||
0 | 8524 | 2181 | —c | |
1 | 6174 | 1581 | — | |
2 | 4537 | 1152 | — | |
3 | 3254 | 859 | — | |
4 | 2366 | 640 | — | |
Diabetic kidney disease, n (%) | ||||
0 | 1352 (15.86) | 321 (14.72) | .19 | |
1 | 1174 (19.02) | 293 (18.53) | .66 | |
2 | 952 (20.98) | 211 (18.32) | .05 | |
3 | 732 (22.50) | 182 (21.19) | .41 | |
4 | 586 (24.77) | 154 (24.06) | .71 | |
Age (years), mean (SD) | ||||
0 | 57.8 (13.1) | 57.4 (13.1) | .98 | |
1 | 57.6 (12.8) | 57.3 (12.7) | .98 | |
2 | 57.0 (12.6) | 56.9 (13.1) | >.99 | |
3 | 56.4 (12.6) | 57.1 (12.0) | .96 | |
4 | 56.1 (12.3) | 56.7 (11.7) | .99 | |
Sex (male), n (%) | ||||
0 | 4183 (49.07) | 1046 (47.96) | .98 | |
1 | 3023 (48.96) | 759 (48.01) | .98 | |
2 | 2208 (48.67) | 526 (45.66) | .95 | |
3 | 1593 (48.96) | 409 (47.61) | .98 | |
4 | 1173 (49.58) | 307 (47.97) | .97 | |
Race (white), n (%) | ||||
0 | 5776 (67.76) | 1445 (66.25) | .97 | |
1 | 4145 (67.14) | 1040 (65.78) | .97 | |
2 | 2975 (65.57) | 740 (64.24) | .97 | |
3 | 2123 (65.24) | 548 (63.79) | .95 | |
4 | 1541 (65.13) | 400 (62.50) | .89 |
aDM: diabetes mellitus.
bP value is based on two-sample t test for age and two-sample proportion test for the other comparisons.
cThe two-sample test is not applicable for the corresponding comparison.
Prediction Performance
Overall, the prediction results in
showed that the proposed Landmark-Boosting model outperformed other temporal data representation methods with respect to all evaluation metrics. The Stack-Temporal approach always showed the worst performance, whereas the Latest-Value and Discrete-Survival approaches demonstrated competitive results. Only the Landmark-Boosting model had an increasing trend in AUROC over the years after DM onset, which peaked at =2 with value of 0.83 (95% CI 0.76-0.85). AUPRC showed a steadily increasing performance of all approaches over time, whereas the Landmark-Boosting model dominated at each landmark time and reached 0.75 (95% CI 0.65-0.80) at =4. Sensitivity declined slightly over time and achieved an optimal point at t=2 with the Landmark-Boosting model persistently outperforming others with a sensitivity of 83% (95% CI 79%-88%). In terms of specificity, Landmark-Boosting also outperformed others at each landmark time and achieved 78% (95% CI 74%-83%) at landmark time 4. Moreover, PPV improved over landmark time with the Landmark-Boosting approach showing the best performance reaching 67% (95% CI 57%-75%) at landmark time 4 (whereas the second-best model, Discrete-Survival, achieved 51% [95% CI 44%-57%]), translating to correct identification of 503 patients with DKD (whereas the second-best model only identified 383 patients with DKD).presents regional calibration on the original predicted probability scale grouped into 20 bins. The overpredicted or underpredicted was defined as “the O:E ratio within a prediction bin that is significantly below or above 1 (P value<.05),” whereas the remaining cases were considered calibrated. Clearly, the Landmark-Boosting approach also dominated all other temporal methods on calibration, with a dip of overestimation for the group with moderate risk at t=2. Both Latest-Value and Stack-Temporal models underestimated the risk, especially at >2. Discrete-Survival model appeared to overestimate the risk at early years for the low-risk group but tended to underestimate the risk in later years.
Case Study
To closely examine the prediction change over time, we extracted a subset of 111 testing cases eligible at all five landmark times (ie, who had outcome sequence either like [0,0,0,0,0] or [0,0,0,0,1]) and plotted their predicted probability percentiles over years (
). We observed significant differences in the risk trajectory between patients with and without DKD depicted by the Landmark-Boosting method, with a much sharper increase of relative risk for most patients with DKD after year 1 and more obvious separation of risks over time. On the other hand, all other three methods suggested stable or even decreasing relative risk for patients with DKD over time, without much deviation from patients without DKD, with only a few exceptions.Discussion
Principal Findings
The study results suggested that exploiting historical temporal EHR data in predictive models would significantly improve prediction performance, especially with our proposed Landmark-Boosting model. As demonstrated in
, the 4 different temporal models started with similar predictive power during the same year of DM onset but started to deviate along the landmark times. We observed a declining AUROC over time, with our proposed model being the only exception. One potential explanation is that the sensitivity of other three models may be affected by the upward case-mix shift ( ), that is, the models’ ability to detect positive cases was impaired. For example, the optimal sensitivity of Stack-Temporal model seemed to top at the beginning but suffered a severe drop over time without any significant improvement of specificity, which may be a result of potential overfitting caused by increasing dimensionality. Within the first 2 years, the Latest-Value model seemed to yield a competitive sensitivity against the Landmark-Boosting model while the latter exceled afterward, indicating the effect of continuous self-correction mechanism that began to manifest after the second year since DM onset. A local peak of specificity presenting at year 2 for all four models implied a change in their interests toward the non-DKDs; however, only the Landmark-Boosting model kept the balance by preserving a good sensitivity. In contrast with AUROC, which has been criticized as being susceptible to class imbalance [ ], AUPRC demonstrated a steady trend of increase over landmark times for all temporal models, which was mainly attributable to PPV improvement, indicating that the signals from DKD samples may have become stronger over time, likely as a result of increasing DKD prevalence over the landmark years. Nonetheless, the proposed Landmark-Boosting model dominated the others and even showed increasing margins along landmark times. For instance, the Landmark-Boosting model identified 46, 36, and 120 more true cases than the second-best model (91, 72, and 135 more than the nontemporal Latest-Value model) at 2, 3, and 4 years. Moreover, the Landmark-Boosting model was clearly better than the other models on calibration that never underestimated the risks ( ), whereas the Stack-Temporal model also seemed to be well calibrated within the first 2 years of DM onset.Clinical Implications
Our proposed temporal model will benefit patients with longitudinal data, and the longer we follow up, the better the model can predict the next-year DKD risk by self-adjustment with respect to both the individual’s medical history and population shift over time. The study has three important implications. First, our investigation confirmed that temporal EHR and billing data carry critical information depicting the progression of the patient’s condition, and it is important to choose the appropriate method for incorporating longitudinal data to promote the predictivity of modern medicine. Second, by allowing the model to evolve along patients’ landmark times, we not only reduced the biases related to a patient’s exposure within EHR but also simulated a scenario that mirrors the clinical practice for annual screening. Third, rather than prior predictive analyses that were mostly population based [
] or personalized longitudinal models requiring complete patient history [ ], our model sought a middle ground, aiming to weave together information at both population and individual levels, for example, the GBM built at each landmark time is an attempt to fit the concurrent population, whereas the carrying over of last individual predictions is for the purpose of preserving personal information.Our model can continually calculate kidney disease risk for patients with diabetes with automatic collection of new EHR data and improve prediction over time. The ability to precisely stratify patients with diabetes by their renal complication risk in the coming year would merit a variety of potential intervention designs: (1) nutritional interventions that differentiate dietary consultation according to relative DKD risk, for example, presenting dietary flyers to all patients with type 2 DM but arranging in-person consultation sessions for those in the high-risk bin with dietitians knowledgeable in CKD diet; (2) lifestyle interventions that encourage personalized health-promoting behaviors such as smoking cessation and physical activity at different intensity levels based on their DKD risk; (3) medication management by designing targeted strategies according to the risk to encourage patient medication compliance, especially with blood pressure and glucose control medications, and warn patients and physicians against the use of nephrotoxic medications, for example, nonsteroidal anti-inflammatory drugs, unless absolutely necessary for high-risk patients because patients with diabetes are already at a higher risk for developing transient decreases in renal function consistent with acute kidney injury, and nephrotoxic drug exposure can amplify that risk. Moreover, with the DKD risk factor discovery framework developed in our previous work [
], we can further empower the predictive models by outputting explainable risk factors and quantifying their effects on DKD specific to subgroups within different risk bins to better support physicians in designing tailored therapy and management strategies. More importantly, the Landmark-Boosting model almost never underestimated the risk compared with other models, especially among the high-risk group, which is clinically ideal because timely medication management can be effective in protecting high-risk patients from unnecessary harm to the kidney due to the use of nephrotoxic medications.Limitations and Future Work
There are several limitations to our work. Disease diagnosis sequence is not necessarily the same as the disease manifestation sequence, which may lead to the underestimation of false-negative rates for DKD in this study. For example, our exclusion criteria may have excluded patients with DKD who visited our hospital for their kidney disease but have not had their diabetes-related information recorded in our EHR yet. In addition, the current design of our model is not robust against population drift because of changes in practice over time or differences in clinical vocabulary and workflow implemented across institutions. To further investigate the generalizability of our model, it is necessary to perform external validations and adequate recalibration based on patients from different sites as well as over calendar years to capture the general population shift and practice change.
Although not the focus of this paper, we further examined the factors that potentially contributed to the superiority of the Landmark-Boosting model. In
, we present the top 50 important features selected by the Landmark-Boosting model and their varying rankings among the other temporal models. Only a few important variables were common across all models (eg, age at DM onset and creatinine). Most top-ranked factors by the Landmark-Boosting model were less important in the other three temporal models (eg, previous visit to cardiovascular clinic, triglycerides, glucose, and exposure to codeine derivative). Furthermore, we examined the features that may contribute to improving the performance of Landmark-Boosting model over time. As shown in , we collected the top 30 important features at year 4 and backtracked their rankings in previous years. For each feature, we calculated the Pearson correlation coefficient between ranking and landmark time to determine if the feature ranking increased/decreased significantly over time. Factors showing improved predictive power over time included cumulative clinical fact counts, previous visit to cardiovascular clinic, systolic blood pressure, triglycerides, and alanine aminotransferase. Built on these preliminary findings, we plan to further characterize and evaluate the changing feature representations over time in our future work.Conclusions
This study addressed the problem of underutilization of temporal information in EHR-based predictive models. We proposed a new approach in leveraging the temporal dynamics in EHR to improve DKD prediction and validated it against three state-of-the-art models using the idea of landmark time to simulate real clinical utility. Experimental results demonstrated that the proposed Landmark-Boosting model can effectively capture temporal dynamics in EHR without overfitting and further improve on patients with a longer follow-up time.
Acknowledgments
YH is supported by the Major Research Plan of the National Natural Science Foundation of China (Key Program, grant number 91746204) and grant award from the Science and Technology Department in Guangdong Province (Major Projects of Advanced and Key Techniques Innovation, grant number 2017B030308008). The dataset used for analysis described in this study was obtained from the University of Kansas Medical Center’s HERON clinical data repository, which is supported by institutional funding and by the University of Kansas Medical Center Clinical and Translational Science Award grant UL1TR002366 from the National Center for Advancing Translational Sciences.
Conflicts of Interest
None declared.
Variable importance ranking across model and over time.
DOCX File , 165 KBReferences
- Kramer H. Screening for kidney disease in adults with diabetes and prediabetes. Curr Opin Nephrol Hypertens 2005 May;14(3):249-252. [CrossRef] [Medline]
- Persson F, Rossing P. Diagnosis of diabetic kidney disease: state of the art and future perspective. Kidney Int Suppl (2011) 2018 Jan;8(1):2-7 [FREE Full text] [CrossRef] [Medline]
- Tuttle KR, Bakris GL, Bilous RW, Chiang JL, de Boer IH, Goldstein-Fuchs J, et al. Diabetic kidney disease: a report from an ADA Consensus Conference. Diabetes Care 2014 Oct;37(10):2864-2883 [FREE Full text] [CrossRef] [Medline]
- Molitch ME, DeFronzo RA, Franz MJ, Keane WF, Mogensen CE, Parving H, American Diabetes Association. Nephropathy in diabetes. Diabetes Care 2004 Jan;27(Suppl 1):S79-S83. [CrossRef] [Medline]
- Gross JL, de Azevedo MJ, Silveiro SP, Canani LH, Caramori ML, Zelmanovitz T. Diabetic nephropathy: diagnosis, prevention, and treatment. Diabetes Care 2005 Jan;28(1):164-176. [CrossRef] [Medline]
- Orphanou K, Stassopoulou A, Keravnou E. Temporal abstraction and temporal Bayesian networks in clinical domains: a survey. Artif Intell Med 2014 Mar;60(3):133-149. [CrossRef] [Medline]
- Zhao J, Henriksson A. Learning temporal weights of clinical events using variable importance. BMC Med Inform Decis Mak 2016 Jul 21;16(Suppl 2):71 [FREE Full text] [CrossRef] [Medline]
- Augusto JC. Temporal reasoning for decision support in medicine. Artif Intell Med 2005 Jan;33(1):1-24. [CrossRef] [Medline]
- Shahar Y. A framework for knowledge-based temporal abstraction. Artif Intell 1997;90(1-2):79-133. [CrossRef]
- Ghosh S, Li J, Cao L, Ramamohanarao K. Septic shock prediction for ICU patients via coupled HMM walking on sequential contrast patterns. J Biomed Inform 2017 Feb;66:19-31 [FREE Full text] [CrossRef] [Medline]
- Lin J, Keogh E, Wei L, Lonardi S. Experiencing SAX: a novel symbolic representation of time series. Data Min Knowl Discov 2007;15(2):107-144. [CrossRef]
- Moskovitch R, Shahar Y. Classification-driven temporal discretization of multivariate time series. Data Min Knowl Discov 2014 Oct 2;29(4):871-913. [CrossRef]
- Rasmy L, Wu Y, Wang N, Geng X, Zheng WJ, Wang F, et al. A study of generalizability of recurrent neural network-based predictive models for heart failure onset risk using a large and heterogeneous EHR data set. J Biomed Inform 2018 Aug;84:11-16 [FREE Full text] [CrossRef] [Medline]
- Che ZP, Purushotham S, Cho K, Sontag D, Liu Y. Recurrent neural networks for multivariate time series with missing values. Sci Rep 2018 Apr 17;8(1):6085 [FREE Full text] [CrossRef] [Medline]
- Rajkomar A, Oren E, Chen K, Dai AM, Hajaj N, Hardt M, et al. Scalable and accurate deep learning with electronic health records. NPJ Digit Med 2018;1:18 [FREE Full text] [CrossRef] [Medline]
- Jardine MJ, Hata J, Woodward M, Perkovic V, Ninomiya T, Arima H, ADVANCE Collaborative Group. Prediction of kidney-related outcomes in patients with type 2 diabetes. Am J Kidney Dis 2012 Nov;60(5):770-778. [CrossRef] [Medline]
- Lin C, Li C, Liu C, Lin W, Lin C, Yang S, et al. Development and validation of a risk prediction model for end-stage renal disease in patients with type 2 diabetes. Sci Rep 2017 Aug 31;7(1):10177 [FREE Full text] [CrossRef] [Medline]
- Hagar Y, Albers D, Pivovarov R, Chase H, Dukic V, Elhadad N. Survival analysis with electronic health record data: experiments with chronic kidney disease. Stat Anal Data Min 2014;7(5):385-403 [FREE Full text] [CrossRef]
- Perotte A, Ranganath R, Hirsch JS, Blei D, Elhadad N. Risk prediction for chronic kidney disease progression using heterogeneous electronic health record data and time series analysis. J Am Med Inform Assoc 2015 Jul;22(4):872-880 [FREE Full text] [CrossRef] [Medline]
- Singh A, Nadkarni G, Gottesman O, Ellis SB, Bottinger EP, Guttag JV. Incorporating temporal EHR data in predictive models for risk stratification of renal function deterioration. J Biomed Inform 2015 Feb;53:220-228 [FREE Full text] [CrossRef] [Medline]
- Koyner JL, Carey KA, Edelson DP, Churpek MM. The development of a machine learning inpatient acute kidney injury prediction model. Crit Care Med 2018 Jul;46(7):1070-1077. [CrossRef] [Medline]
- Dafni U. Landmark analysis at the 25-year landmark point. Circ Cardiovasc Qual Outcomes 2011 May;4(3):363-371. [CrossRef] [Medline]
- Wells BJ, Chagin KM, Li L, Hu B, Yu C, Kattan MW. Using the landmark method for creating prediction models in large datasets derived from electronic health records. Health Care Manag Sci 2015 Mar;18(1):86-92. [CrossRef] [Medline]
- Nichols GA, Desai J, Lafata JE, Lawrence JM, O'Connor PJ, Pathak RD, SUPREME-DM Study Group. Construction of a multisite DataLink using electronic health records for the identification, surveillance, prevention, and management of diabetes mellitus: the SUPREME-DM project. Prev Chronic Dis 2012;9:E110 [FREE Full text] [CrossRef] [Medline]
- KDOQI. KDOQI clinical practice guidelines and clinical practice recommendations for diabetes and chronic kidney disease. Am J Kidney Dis 2007 Feb;49(2 Suppl 2):S12-154. [CrossRef] [Medline]
- American Diabetes Association. Standards of medical care in diabetes-2018 abridged for primary care providers. Clin Diabetes 2018 Jan;36(1):14-37 [FREE Full text] [CrossRef] [Medline]
- Levey AS, Coresh J, Greene T, Stevens LA, Zhang YL, Hendriksen S, Chronic Kidney Disease Epidemiology Collaboration. Using standardized serum creatinine values in the modification of diet in renal disease study equation for estimating glomerular filtration rate. Ann Intern Med 2006 Aug 15;145(4):247-254. [CrossRef] [Medline]
- Waitman LR, Warren JJ, Manos EL, Connolly DW. Expressing observations from electronic medical record flowsheets in an i2b2 based clinical data repository to support research and quality improvement. AMIA Annu Symp Proc 2011;2011:1454-1463 [FREE Full text] [Medline]
- Murphy SN, Weber G, Mendis M, Gainer V, Chueh HC, Churchill S, et al. Serving the enterprise and beyond with informatics for integrating biology and the bedside (i2b2). J Am Med Inform Assoc 2010;17(2):124-130 [FREE Full text] [CrossRef] [Medline]
- Song X, Waitman LR, Hu Y, Yu AS, Robbins D, Liu M. An exploration of ontology-based EMR data abstraction for diabetic kidney disease prediction. AMIA Jt Summits Transl Sci Proc 2019;2019:704-713 [FREE Full text] [Medline]
- Damle R, Alavi K. The University Healthsystem Consortium clinical database: An emerging resource in colorectal surgery research. Semin Colon Rectal Surg 2016 Jun;27(2):92-95. [CrossRef]
- Hutchinson R, Liu LP, Dietterich TG. Incorporating Boosted Regression Trees Into Ecological Latent Variable Models. In: Proceedings of the Twenty-Fifth AAAI Conference on Artificial Intelligence. 2011 Presented at: AAAI'11; August 7-11, 2011; San Francisco, California p. 1343-1348.
- Johnson R, Zhang T. Learning nonlinear functions using regularized greedy forest. IEEE Trans Pattern Anal Mach Intell 2014 May;36(5):942-954. [CrossRef] [Medline]
- He K, Li Y, Zhu J, Liu H, Lee JE, Amos CI, et al. Component-wise gradient boosting and false discovery control in survival analysis with high-dimensional covariates. Bioinformatics 2016 Jan 1;32(1):50-57 [FREE Full text] [CrossRef] [Medline]
- Torlay L, Perrone-Bertolotti M, Thomas E, Baciu M. Machine learning-XGBoost analysis of language networks to classify patients with epilepsy. Brain Inform 2017 Sep;4(3):159-169 [FREE Full text] [CrossRef] [Medline]
- Kalousis A, Prados J, Hilario M. Stability of feature selection algorithms: a study on high-dimensional spaces. Knowl Inf Syst 2007;12(1):95-116. [CrossRef]
- Friedman JH. Greedy function approximation: a gradient boosting machine. Ann Stat 2001 Oct;29(5):1189-1232. [CrossRef]
- Chen T, Guestrin C. XGBoost: A Scalable Tree Boosting System. In: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. 2016 Presented at: KDD'16; August 13-17, 2016; San Francisco, CA p. 785-794.
- Davis J, Goadrich M. The relationship between Precision-Recall and ROC curves. In: Proceedings of the 23rd international conference on Machine learning. 2006 Presented at: ICML'06; June 25-29, 2006; Pittsburgh, PA p. 233-240. [CrossRef]
- Hood L, Friend SH. Predictive, personalized, preventive, participatory (P4) cancer medicine. Nat Rev Clin Oncol 2011 Mar;8(3):184-187. [CrossRef] [Medline]
- Song X, Waitman LR, Hu Y, Yu AS, Robins D, Liu M. Robust clinical marker identification for diabetic kidney disease with ensemble feature selection. J Am Med Inform Assoc 2019 Mar 1;26(3):242-253. [CrossRef] [Medline]
Abbreviations
ACR: albumin-to-creatinine ratio |
AUPRC: area under precision recall curve |
AUROC: area under receiver operating curve |
CKD: chronic kidney disease |
DKD: diabetic kidney disease |
DM: diabetes mellitus |
eGFR: estimated glomerular filtration rate |
EHR: electronic health record |
ESRD: end-stage renal disease |
GBM: gradient boosting machine |
GFR: glomerular filtration rate |
HbA1c: glycated hemoglobin |
HERON: Healthcare Enterprise Repository for Ontological Narration |
PPV: positive predictive value |
Edited by G Eysenbach; submitted 16.07.19; peer-reviewed by M Johansson, J op den Buijs; comments to author 08.09.19; revised version received 31.10.19; accepted 31.10.19; published 31.01.20
Copyright©Xing Song, Lemuel R Waitman, Alan SL Yu, David C Robbins, Yong Hu, Mei Liu. Originally published in JMIR Medical Informatics (http://medinform.jmir.org), 31.01.2020.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Medical Informatics, is properly cited. The complete bibliographic information, a link to the original publication on http://medinform.jmir.org/, as well as this copyright and license information must be included.