Construction and external validation of an early warning model for piperacillin/tazobactam-associated hypokalemia in critically ill patients.
Yuan-Min Wang, Fu-Kun Zhao, Cang-Hong Ou-Yang, Rong-Ping Zhu, Min Luo
The Third Affiliated Hospital of Zunyi Medical University, The First People's Hospital of Zunyi, Clinical Pharmacy Department, Zunyi, Guizhou, China. · School of Pharmacy, Zunyi Medical University, Zunyi, Guizhou, China.
Key points
From the paper's conclusion- Machine learning models achieved moderate predictive performance. Baseline potassium and potassium-wasting diuretic use were the strongest predictors.
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 the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Incidence, risk factors, and prediction model of piperacillin/tazobactam-associated hypokalemia in neonatesTherapeutic Advances in Drug Safety · 2026
- Association of different piperacillin/tazobactam ratios and dosages with the risk of hypokalemia: a propensity score-matched retrospective cohort study.Frontiers in cellular and infection microbiology · 2026
- Machine learning-based prediction model for hypoalbuminemia in ICU patients with venous thromboembolism and acute kidney injury.Frontiers in medicine · 2026
- An interpretable XGBoost model for predicting measured teicoplanin plasma concentrations in ICU patients with bloodstream infection: a two-center real-world validation study.Frontiers in pharmacology · 2026
- Interpretable machine learning model for predicting major adverse kidney events within 30 days in critically ill patients with acute pancreatitis: development and validation in multicenter cohorts.Frontiers in medicine · 2026
- Development and external validation of an interpretable early prediction model for acute kidney injury using TabPFN and routine admission data: a retrospective cohort studyBMC Medical Informatics and Decision Making · 2026