Evaluation of machine learning algorithms for renin-angiotensin-aldosterone system inhibitors associated renal adverse event prediction

Eur J Intern Med. 2023 Aug:114:74-83. doi: 10.1016/j.ejim.2023.05.021. Epub 2023 May 20.

Abstract

Background: Renin-angiotensin-aldosterone system inhibitors (RAASi) are commonly used medications. Renal adverse events associated with RAASi are hyperkalemia and acute kidney injury. We aimed to evaluate the performance of machine learning (ML) algorithms in order to define event associated features and predict RAASi associated renal adverse events.

Materials and methods: Data of patients recruited from five internal medicine and cardiology outpatient clinics were evaluated retrospectively. Clinical, laboratory, and medication data were acquired via electronic medical records. Dataset balancing and feature selection for machine learning algorithms were performed. Random forest (RF), k-nearest neighbor (kNN), naïve Bayes (NB), extreme gradient boosting (xGB), support vector machine (SVM), neural network (NN), and logistic regression (LR) were used to create a prediction model.

Results: 409 patients were included, and 50 renal adverse events occurred. The most important features predicting the renal adverse events were the index K and glucose levels, as well as having uncontrolled diabetes mellitus. Thiazides reduced RAASi associated hyperkalemia. kNN, RF, xGB and NN algorithms have the highest and similar AUC (≥ 98%), recall (≥ 94%), specifity (≥ 97%), precision (≥ 92%), accuracy (≥ 96%) and F1 statistics (≥ 94%) performance metrics for prediction.

Conclusion: RAASi associated renal adverse events can be predicted prior to medication initiation by machine learning algorithms. Further prospective studies with large patient numbers are needed to create scoring systems as well as for their validation.

Keywords: Acute kidney injury; Hyperkalemia; Hypertension; Machine learning; Renin-angiotensin-aldosterone system.

MeSH terms

  • Algorithms
  • Angiotensin-Converting Enzyme Inhibitors / adverse effects
  • Bayes Theorem
  • Humans
  • Hyperkalemia* / chemically induced
  • Hyperkalemia* / complications
  • Machine Learning
  • Prospective Studies
  • Renin-Angiotensin System*
  • Retrospective Studies

Substances

  • Angiotensin-Converting Enzyme Inhibitors