Skip to main content

A pattern-discovery-based outcome predictive tool integrated with clinical data repository: design and a case study on contrast related acute kidney injury

Abstract

Background

Clinical data repositories (CDR) including electronic health record (EHR) data have great potential for outcome prediction and risk modeling. We built a prediction tool integrated with CDR based on pattern discovery and demonstrated a case study on contrast related acute kidney injury (AKI).

Methods

Patients undergoing cardiac catheterization from January 2015 to April 2017 were included. AKI was identified based on Acute Kidney Injury Network definition. Predictive model including 16 variables covered in existing AKI models was built. A visual analytics tool based on pattern discovery was trained on 70% data up to August 2016 with three interactive knowledge incorporation modes to develop 3 models: (1) pure data-driven, (2) domain knowledge, and (3) clinician-interactive, which were tested and compared on 30% consecutive cases dated afterwards.

Results

Among 2560 patients in the final dataset, 189 (7.3%) had AKI. We measured 4 existing models, whose areas under curves (AUCs) of receiver operating characteristics curve for the test dataset were 0.70 (Mehran's), 0.72 (Chen's), 0.67 (Gao's) and 0.62 (AGEF), respectively. A pure data-driven machine learning method achieves AUC of 0.72 (Easy Ensemble). The AUCs of our 3 models are 0.77, 0.80, 0.82, respectively, with the last being top where physician knowledge is incorporated.

Conclusions

We developed a novel pattern-discovery-based outcome prediction tool integrated with CDR and purely using EHR data. On the case of predicting contrast related AKI, the tool showed user-friendliness by physicians, and demonstrated a competitive performance in comparison with the state-of-the-art models.

Peer Review reports

Background

Clinical data repositories (CDRs) covering Cardiovascular Information Systems (CVIS) [1] and electronic health records (EHR) have great potential for outcome prediction and risk modeling. However, most CDRs were only used for data displaying, and using data from CDR for outcome prediction often requires careful study design and sophisticated modeling techniques before a hypothesis can be tested. Without requiring careful and sophisticated study design, predictive models of machine learning fitted from population-specific historical CDR records (training data) show great value in healthcare applications [2]. However, they are often not easy to follow by doctors, and challenge exists in predicting real-world unseen cases (testing data), which often show changed distributions of the outcome target in a way not foreseen by training data. This challenge, called concept drift [3], could not be easily addressed in machine learning with training–testing split settings. We argue that incorporating clinical domain knowledge in an intuitive way could improve predictive models against concept drift.

Contrast related acute kidney injury (AKI) is among the most common complications induced by use of contrast [4, 5]. It is strongly associated with late renal and cardiovascular adverse events. While established AKI risk models exist 5,6,7], they were found to be less predictive compared to models fitted from a different population 8,9,10]. The prevalence of AKI varies and might be changed with associated change of contrast dosage in procedures, introducing concept drift challenge for predictive models fitted from training data. To bridge the above gap, a prediction tool integrated with CDR based on pattern discovery was built and in this case study, we focus on AKI after cardiac catheterization.

Methods

As previous described [11], patient records undergoing cardiac catheterization and percutaneous coronary intervention (PCI) from January 13, 2015 to April 27, 2017 in Peking University First Hospital were included, a cardiovascular CDR integrated with multiple hospital informatics systems was established to provide the foundation with retrospective structured data registries. The following exclusion criteria was used: dialysis, end-stage renal disease, renal transplant, or missing pre- or post-procedural creatinine data. To prevent the potential missing data, structured prior medical history and vital signs was entered by residents through a composer tool integrated with the EHR admission note system. Crucial data such as left ventricular ejective fraction (LVEF) was extracted from structured echocardiogram reports. A total of 16 pre-operative and in-operative variables covered in representative existing AKI models including Mehran’s score [5], Chen’s score [8], Gao’s score [9], and Age, Glomerular filtration rate and Ejection Fraction (AGEF) score [6] were used for predictive models. We refrained from introducing extra variables here to stay focused on how intuitive domain knowledge incorporation, instead of mixing contribution from extra information, could improve predictive modeling for AKI. The Institutional Review Board at Peking University First Hospital approved this study, and all data was de-identified and informed consent was waived for the retrospective data.

AKI was identified based on Acute Kidney Injury Network (AKIN) definition, which was increase of serum creatinine (≥ 0.3 mg/dL increase, or 1.5-fold or more increase) from most recent baseline before the procedure to the post-procedure 7-day peak [4], and the urine output criterion for AKI diagnosis was not considered in this study. Based on previous studies, AKI is a typical imbalanced target in predictive modeling like many outcomes in clinical practice. Furthermore, recent patients tend to have a lower rate of AKI in the whole cohort which is potentially a concept drift.

Pattern discovery was recently developed to work on incomplete noisy data for imbalanced target prediction, which was validated by our previous study [12]. The interpretable representation of pattern serves as a good basis to incorporate domain knowledge intuitively. We developed a pattern discovery based visual analytics tool and applied it on this AKI case study. We trained it on 70% consecutive patient records with three knowledge incorporation modes: (1) pre-: data-driven, (2) in-: clinician-interactive, and (3) post-: clinician-refined [11]. The first mode is purely data-driven without incorporating any knowledge (pre-mode), equivalent to the previous work [12]. In the other two modes, a physician using the visual analytics could change the variables and values on-the-fly (in-mode), and further modify the model afterwards (post-mode), respectively. To evaluate the performance of predictive modeling with knowledge incorporation, we tested and compared it with other models on the 30% consecutive patient records dated afterwards. Three modes of knowledge incorporation are enabled and elaborated below, which was integrated with the CDR (Fig. 1).

  1. (1)

    Pre-mode: We extended pattern discovery to handle numeric variables without requiring setting prior categorization rules, so that it can be used for mixed categorical and numeric data in a pure data-driven way without knowledge incorporation, serving as the baseline of knowledge incorporation. To categorize a numeric variable automatically, we employed the branching strategy in decision trees [14]. All unique values of the variable are sorted in ascending order, among which a numeric cutoff x is determined so that maximal information gain for the target variable is achieved by categorizing (training) data of the variable as “≤ x” or “ > x” accordingly.

  2. (2)

    In-mode: We developed the visual analytics tool, where clinician users can view and edit an existing pattern (e.g., from pre-mode) interactively through adding, removing variables, and choosing variable values according to their domain knowledge. The tool rediscovers the pattern on-the-fly and shows the updated training predictive metrics.

  3. (3)

    Post-mode: After the discovered pattern is exported, clinician users can further refine the pattern solely from their knowledge without referring to the training data, such as manually changing the numeric values in the pattern or the optimized matching ratio.

Fig. 1
figure 1

Pattern discovery based visual analytics tool using the in-mode of knowledge incorporation: age in pattern changed by clinician on-the-fly. Note all the prediction metrics are for the training data. The left panel displays the pattern where the modified variable Age [AKI] highlighted in blue illustrates the clinician’s domain knowledge incorporation (in-mode). In the pattern, the prediction target (AKI-Yes) is shown at the top. Pattern variables were connected via arcs indicating statistical significances of Chi-square test of independence [13]. A click on a variable removes an attribute (dimming the blue vertical bar). A click on “Add attribute” shows a pop-up list of variables that could be added by users. The top right panel shows the training predictive metrics of the pattern once “Update pattern” is clicked. The bottom right pattern shows the pattern history summary, where the last pattern is generated in the pre-mode. A click on “Export results” exports the current pattern for post-mode refinement

Continuous variables were reported as mean ± SD and categorical variables as percentages (%) for all participants. Normally distributed continuous variables were compared using one-way ANOVA. Four common machine learning predictive algorithms including logistic regression [15], decision trees [14], random forest [16], and Easy Ensemble [17], which were state-of-arts method handling imbalanced prediction targets, were also used for comparing the performance. In all models, the clinician user did not have access to the testing data. All three resultant models were tested on the 30% consecutive patients and compared with existing risk scores and other trained machine learning models. We evaluated the areas-under-curve (AUCs) of the receiver operating characteristics (ROC) curve, which measures the model trade-off between sensitivity and specificity. To measure the performance for imbalanced target prediction, F-score [20] considering both precision and sensitivity was reported, so was G-mean [21], the geometric mean of specificity and sensitivity.

Except AUC, all other point-specific performance metrics correspond to a certain cutoff for each model. In pattern discovery, this was auto determined by the matching threshold during training. For Mehran’s, Chen’s, Gao’s, and AGEF risk scores, we found their published thresholds yielded poor point-specific performance. Therefore, we reported their results associated with the optimal ROC points, in order not to understate their performance in case proper thresholds could be somehow obtained. For other machine learning methods except pattern discovery and Easy Ensemble, we found that imbalance showed great challenge as reported previously [12], generating trivially bad testing performance. In order not to understate their top potential performance and to stay focused on knowledge incorporation, we did random up-sampling (positive samples) and down-sampling (negative samples) to 1:1 in training for these methods and reported whichever better testing results. Other advanced techniques handling imbalance [18, 19] are beyond our scope. All analyses were performed using R (http://www.R-project.org) and Python (https://www.python.org). A p value of < 0.05 (two-sided) was considered statistically significant for all tests.

Results

Among a total of 2560 patients who met the inclusion and exclusion criteria, 7.4% (N = 189) had AKI, including 4.9% (N = 126) of stage 1, 1.2% (N = 31) of stage 2 and 1.2% (N = 31) of stage 3, respectively, which is a typical imbalanced target in predictive modeling. The first 70% (N = 1791) consecutive records were used for training. The remaining 30% (N = 769) recent consecutive records were used for testing and comparisons.

The general statistics of the 16 input variables and AKI training and testing patient records are shown in Table 1 and the risk factors’ importance from Random Forest for AKI was shown in Fig. 2. We show example categorized versions of age and left ventricular ejection fraction (LVEF) where there is no significant training–testing difference. Potential concept drift stems from the significant training–testing difference for AKI (p = 0.007). Reduced AKI (5.2%) in testing data may be attributed to improved procedure handling with reduced contrast volume (p < 0.001), increased urgent PCI (p = 0.019) among other factors besides fewer anemia (p = 0.016) patients. This consecutive testing with concept drift is more challenging than conventional cross-validation where target distribution is maintained in testing [20].

Table 1 Training and testing statistics of the AKI case study
Fig. 2
figure 2

The risk factors importance from Random Forest for AKI. PCI, percutaneous coronary intervention; HDL, high density lipoprotein cholesterol; IABP, intra-aortic balloon pump; AKI, acute kidney injury

Using pattern discovery visual analytics, three models were generated according to the knowledge incorporation modes.

  1. (1)

    Pre-mode: the 11-variable pattern was discovered on the training data purely according to the current algorithm [11]. It reads: LVEF ≤ 56.6%, pre peak creatinine > 160 μmol/L, glomerular filtration rate (GFR) ≤  31.5 ml/min, urgent PCI = Yes, intra-aortic balloon pump (IBAP) = Yes, contrast volume > 79.5 ml, age ≤ 58.5 years old, high density lipoprotein cholesterol (HDL-C) ≤ 0.695 mmol/L, hypertension = Yes, anaemia = Yes, with the matching ratio 18%, which means a patient record has to match at least 2 out of the 11 variables to be a positive pattern match.

  2. (2)

    In-mode: based on the pre-mode pattern, the clinician user (Dr. YX Li in our author list) was free to modify pattern variables through the interface. The user changed Age from ≤ 58.5 to > 58.5 according to clinical knowledge on age as a risk factor, and did not modify other variables, because they were consistent with the clinical knowledge of the risk factors. As illustrated in Fig. 1, the re-discovered pattern maintained the same set of variable-value pairs, while the matching ratio was automatically updated to 27% (i.e., at least 3 to match).

  3. (3)

    Post-mode: Upon the in-mode pattern, the clinician user further refined Age to > 70, and contrast volume to > 100 according to experience without referring to training data. No change was made to the matching ratio.

The performance comparison results are shown in Table 2, with models of best performance highlighted in bold. Both in-mode and post-mode models with knowledge incorporation demonstrate improved AUC (0.80 and 0.82) on top of the pre-mode performance (0.77). Knowledge incorporation models demonstrated better balanced specificity and sensitivity compared to the risk scores developed from elsewhere. All four risk scores sacrificed sensitivity remarkably for specificity, resulting in compromised AUCs (0.62–0.72). Machine learning methods without proper imbalance handling were no better than existing risk models on AUCs (0.58–0.64), even though resampling was applied. The top data-driven method Easy Ensemble produced a closer AUC (0.70). Similar conclusions on F-scores and G-means demonstrate the advantage of domain knowledge incorporation with data-driven machine learning to overcome concept drift in this real AKI use case.

Table 2 Testing results of the three knowledge incorporation models in comparison with other risk scores and machine learning methods

Discussion

We have reported our initial results of knowledge incorporation utilizing pattern discovery for AKI predictive modeling with data of cardiac catheterization patients in Peking University First Hospital. Our models with knowledge incorporation generated from training data have demonstrated promising predictive performance in consecutive testing data compared to existing risk models and other data-driven machine learning methods.

Similar with previous studies, existing AKI predictive models were found to have poor predictive performance when generalized into different population 8,9,10]. With the development of CDRs and EHR in China, more and more data generated with informatics system are available, however, challenges such as missing data or concept drift [3], increased the difficulties for using these data in real world practice. Proposed in recent work [12], a pattern was represented as a set of variable-value pairs with an optimized matching threshold, and a heuristic pattern discovery algorithm was developed. Pattern discovery has demonstrated competitive cross-validation performance on two retrospective real datasets for imbalanced target prediction. Interpretable patterns can provide insights in an intuitive way. Therefore, we developed a pattern discovery based visual analytics tool and applied it in this case study. Furthermore, our current model uses data from CDR and EHR system, which makes the model could be calculated in real time to identify high-risk patients in the future.

There are also many challenges for implanting machine learning and deep learning algorithm into clinical prediction. As described by Vapnik and Vashist [21] as ‘learning using privileged information’ paradigm, external information is actually used at the time of training to improve the incurring decision rule. So that we argue that incorporating clinical domain knowledge in an intuitive way could improve predictive models using an integrated tool with CDR, which is friendly using for physicians to collaborate with data scientists. And the results of this case study demonstrate the advantage of incorporated domain knowledge which could alleviate the challenge of concept drift compared to pure data-driven models.

This study has several limitations. First, the dataset was limited as single center, which could introduce bias and lack of generalization. A consecutively enrollment of all cases could minimize related bias, and pre-structured data input was used to deal with data missing issue. Secondly, the definition of AKI was only based on change of creatinine based on AKIN, which could underestimate the incidence of real clinical AKI, however, this definition and methods of AKI identification was used in many previous studies, which were validated and with good feasibility based on CDRs and EHR data. In future work, we will further evaluate and enhance the tool with more case studies, as well as investigate into extra variables to improve AKI prediction.

In conclusion, we developed a novel pattern-discovery-based outcome prediction tool integrated with CDR and purely using EHR data. On the case of predicting contrast related AKI, the tool showed user-friendliness by physicians, and demonstrated a competitive performance in comparison with the state-of-the-art models.

Availability of data and materials

The datasets of the current study are not publicly available: due to reasonable privacy and security concerns, the underlying EHR data are not easily redistributable to researchers from other centers.

References

  1. Taylor GS, Muhlestein JB, Wagner GS, Bair TL, Li P, Anderson JL. Implementation of a computerized cardiovascular information system in a private hospital setting. Am Heart J. 1998;136:792–803.

    CAS  Article  PubMed  Google Scholar 

  2. Yoo I, Alafaireet P, Marinov M, Pena-Hernandez K, Gopidi R, Chang JF, Hua L. Data mining in healthcare and biomedicine: a survey of the literature. J Med Syst. 2012;36:2431–48.

    Article  PubMed  Google Scholar 

  3. Widmer G, Kubat M. Learning in the presence of concept drift and hidden contexts. Mach Learn. 1996;23:69–101.

    Google Scholar 

  4. Mehta RL, Kellum JA, Shah SV, Molitoris BA, Ronco C, Warnock DG, Levin A, Bagga A, Bakkaloglu A, Bonventre JV, Burdmann EA, Chen Y, Devarajan P, D’Intini V, Dobb G, Durbin CG, Eckardt KU, Guerin C, Herget-Rosenthal S, Hoste E, Joannidis M, Kellum JA, Kirpalani A, Lassnigg A, Le Gall JR, Levin A, Lombardi R, Macias W, Manthous C, Mehta RL, Molitoris BA, Ronco C, Schetz M, Schortgen F, Shah SV, Tan PSK, Wang H, Warnock DG, Webb S. Acute kidney injury network: report of an initiative to improve outcomes in acute kidney injury. Crit Care. 2007;11:1–8.

    Google Scholar 

  5. Lasic Z, Iakovou I, Fahy M, Ms C, Mintz GS, Lansky AJ, Moses JW, Stone GW, Leon MB, Dangas G. Interventional cardiology a simple risk score for prediction of contrast-induced nephropathy after percutaneous coronary intervention development and initial validation. J Am Coll Cardiol. 2004;44:1393–9. https://doi.org/10.1016/j.jacc.2004.06.068.

    Article  PubMed  Google Scholar 

  6. Andò G, Morabito G, De Gregorio C, Trio O, Saporito F, Oreto G. Age, glomerular filtration rate, ejection fraction, and the AGEF score predict contrast-induced nephropathy in patients with acute myocardial infarction undergoing primary percutaneous coronary intervention. Catheter Cardiovasc Interv. 2013;82:878–85.

    Article  PubMed  Google Scholar 

  7. Andò G, Morabito G, De Gregorio C, Trio O, Saporito F, Oreto G. The ACEF score as predictor of acute kidney injury in patients undergoing primary percutaneous coronary intervention. Int J Cardiol. 2013;168:4386–7.

    Article  PubMed  Google Scholar 

  8. Chen YL, Fu NK, Xu J, Yang SC, Li S, Liu YY, Cong HL. A simple preprocedural score for risk of contrast-induced acute kidney injury after percutaneous coronary intervention. Catheter Cardiovasc Interv. 2014;83: E8-16.

    Article  PubMed  Google Scholar 

  9. Gao Y, Li D, Cheng H, Chen Y. Derivation and validation of a risk score for contrast-induced nephropathy after cardiac catheterization in Chinese patients. Clin Exp Nephrol. 2014;18:892–8. https://doi.org/10.1007/s10157-014-0942-9.

    Article  PubMed  Google Scholar 

  10. Liu YH, Liu Y, Tan N, Chen J, Chen J, Chen S, He Y, Ran P, Ye P, Li Y. Predictive value of GRACE risk scores for contrast-induced acute kidney injury in patients with ST-segment elevation myocardial infarction before undergoing primary percutaneous coronary intervention. Int Urol Nephrol. 2014;46:417–26.

    Article  PubMed  Google Scholar 

  11. Li YX, Jiang J, Zhang Y, Li JP, Huo Y. A pattern-discovery-based outcome predictive tool integrated with clinical data repository: design and a case study on contrast related acute kidney injury. Eur Heart J. 2019;40(1):ehz746.0042. https://doi.org/10.1093/eurheartj/ehz746.0042.

    Article  Google Scholar 

  12. Chan T-M, Li Y, Chiau C-C, Zhu J, Jiang J, Huo Y. Imbalanced target prediction with pattern discovery on clinical data repositories. BMC Med Inform Decis Mak. 2017;17:47. https://doi.org/10.1186/s12911-017-0443-3.

    Article  PubMed  PubMed Central  Google Scholar 

  13. Lawrence J. A guide to Chi-squared testing. J Stat Plan Inference. 1997;64:157–8.

    Article  Google Scholar 

  14. Quinlan JR. C4.5: programs for machine learning. 1992.

  15. Gortmaker SL, Hosmer DW, Lemeshow S. Applied logistic regression. Contemp Sociol. 1994;23:159.

    Article  Google Scholar 

  16. Breiman L. Random forests. Mach Learn. 2001;45:5–32.

    Article  Google Scholar 

  17. Liu X-Y, Wu J, Zhou Z-H. Exploratory undersampling for class imbalance learning. IEEE Trans Syst Man Cybern. 2009;39:539–50.

    Article  Google Scholar 

  18. Huang Z, Chan T-M, Dong W. MACE prediction of acute coronary syndrome via boosted resampling classification using electronic medical records. J Biomed Inform. 2017;66:161–70.

    Article  PubMed  Google Scholar 

  19. Tao D, Tang X, Li X, Wu X. Asymmetric bagging and random subspace for support vector machines-based relevance feedback in image retrieval. IEEE Trans Pattern Anal Mach Intell. 2006;28:1088–99.

    Article  PubMed  Google Scholar 

  20. Kohavi R. A study of cross-validation and bootstrap for accuracy estimation and model selection. Int Jt Conf Artif Intell. 1995;14:1137–43.

    Google Scholar 

  21. Vapnik V, Vashist A. A new learning paradigm: learning using privileged information. Neural Netw. 2009;22(5–6):544–57.

    Article  PubMed  Google Scholar 

Download references

Acknowledgements

We would like to thank Philips Data Design (Jeanne de Bont, Jurrien Gosselink, Niels Laute, and Nils Rotgans) for the visual and interaction design.

Funding

None.

Author information

Affiliations

Authors

Contributions

YL, TC, YH and JL contributed to the study conception and design, data acquisition and interpretation. TC, JF and LT contributed to data analysis. All authors listed have contributed sufficiently to the project in order to be included as authors, and approved the final version of the manuscript for publication.

Corresponding author

Correspondence to Jianping Li.

Ethics declarations

Ethics approval and consent to participate

The Institutional Review Board at Peking University First Hospital approved this study, and all data was de-identified and informed consent was waived for the retrospective data. All methods were performed in accordance with the relevant guidelines and regulations.

Consent for publication

Not applicable.

Competing interests

T-MC, JF and LT were former employees of Philips China. The rest authors declare that they have no competing interests.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Li, Y., Chan, TM., Feng, J. et al. A pattern-discovery-based outcome predictive tool integrated with clinical data repository: design and a case study on contrast related acute kidney injury. BMC Med Inform Decis Mak 22, 103 (2022). https://doi.org/10.1186/s12911-022-01841-6

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s12911-022-01841-6

Keywords

  • Machine learning
  • Predictive tool
  • Pattern discovery
  • Acute kidney injury