Skip to content
Open access

Construction and external validation of an early warning model for piperacillin/tazobactam-associated hypokalemia in critically ill patients

Aug 2026 · Frontiers in Pharmacology · Vol 17 · 1 citation · 27 references
Medicine

TL;DR

Baseline potassium and potassium-wasting diuretic use were the strongest predictors of TZP-associated hypokalemia, and machine learning models achieved moderate predictive performance.

Abstract

Background Hypokalemia is a common adverse event during piperacillin/tazobactam (TZP) therapy in critically ill patients. This study developed and externally validated machine learning models to predict hypokalemia using baseline variables. Methods Data were obtained from the Medical Information Mart for Intensive Care (MIMIC)-IV database and an external cohort from the Third Affiliated Hospital of Zunyi Medical University. Hypokalemia was defined as the first serum potassium <3.5 mmol/L within 14 days after TZP initiation. Variables with >20% missing data were excluded; remaining missing values were imputed. Least Absolute Shrinkage and Selection Operator (LASSO) regression with 10-fold cross-validation based on binomial deviance was used for feature selection. Logistic Regression, Random Forest, Extreme Gradient Boosting Model (XGBoost), Adaptive Boosting (AdaBoost), and Gradient Boosting Machine models were developed. Performance was assessed with receiver operating characteristic curves, the area under the receiver operating characteristic curve (AUC), the area under the precision-recall curve (AUPRC), calibration, precision-recall analysis, and decision curve analysis. Results The internal cohort included 1,345 patients (594 hypokalemia), and the external cohort included 421 patients (159 hypokalemia). Internal AUCs were 0.759 (Random Forest), 0.738 (GBM), 0.735 (XGBoost), 0.716 (AdaBoost), and 0.694 (Logistic Regression). External AUCs were 0.668 (GBM), 0.654 (XGBoost), 0.648 (Random Forest), 0.645 (AdaBoost), and 0.620 (Logistic Regression). The Random Forest model achieved an AUPRC of 0.701 in the internal cohort, while GBM achieved the highest AUPRC in the external cohort (0.554). Calibration and decision curve analyses demonstrated acceptable agreement and potential clinical utility. SHapley Additive exPlanations (SHAP) analysis identified baseline potassium, potassium-wasting diuretic use, serum creatinine, age, renal disease, serum sodium, and albumin as the most influential predictors of TZP-associated hypokalemia. Conclusion Machine learning models achieved moderate predictive performance. Baseline potassium and potassium-wasting diuretic use were the strongest predictors.

Read PDF

Similar papers

Open access Sep 2026

Development and Validation of an Interpretable Prediction Model for IVIG-Resistant Kawasaki Disease: A Multicenter Prospective Cohort Study.

BACKGROUND Early identification of intravenous immunoglobulin-resistant Kawasaki disease is important for reducing the risk of coronary artery lesions. We aimed to develop, externally validate, and deploy an interpretable machine-learning model for early prediction of intravenous immunoglobulin-resistant Kawasaki disea...

Shu-Hui Wang, Zhi-Yuan Liu, Miao Hou et al. · 0 citations
Open access Aug 2026

Development and validation of an interpretable machine learning model for predicting enteral nutrition-associated diarrhea in ICU patients: a multicenter study

The externally validated random forest model showed acceptable discriminative performance and provided an interpretable assessment of the contributions of individual features, which may support static early risk stratification of ENAD among critically ill patients receiving enteral nutrition.

Yu-Hong Wang, Wei Hu, Cai-Yue Xu et al. · 0 citations
Open access Jul 2026

Prediction of the clinical outcomes of imipenem and meropenem in patients with treatment-associated AKI and death via machine learning models combined with pharmacokinetic parameters: A retrospective cohort study

Objective The present study aimed to develop and evaluate machine learning-based predictive models for acute kidney injury (AKI) and all-cause mortality in patients treated with imipenem or meropenem, integrating pharmacokinetic (PK) parameters with routine clinical features. Methods A total of 235 patients who receive...

Yun Chen, Dan-Lin Zheng, Cheng-Kuan Zhao et al. · 0 citations
Aug 2026

[Development and validation of an explainable machine learning-based model for predicting mortality risk in polytrauma patients].

The developed in-hospital mortality risk prediction model for polytrauma patients exhibits favorable discrimination and clinical net benefit, and can assist clinicians in identifying high-risk populations while providing evidence to support individualized treatment decisions.

Yu-Peng Jiang, Jin-long Mao, Lin Li et al. · 0 citations
Open access Aug 2026

Development and validation of an explainable XGBoost model for early mortality prediction in pediatric sepsis

Objective To develop and internally validate an explainable machine learning model for early mortality prediction in pediatric sepsis using routinely available clinical variables, to support clinical risk stratification and decision-making. Methods A total of 752 children with sepsis admitted to the Pediatric Intensive...

Hong-Mei Chen, Li-Nong Wang, Yan-Bing Fu et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.