- Article
Background and Objectives: Class weighting is widely used for outcome imbalance in clinical prediction models. Because it up-weights minority-class errors, some distortion of predicted probabilities is expected; whether a gain in discrimination compensates for this cost is rarely quantified. We examined this trade-off in intensive care unit (ICU) readmission prediction. Materials and Methods: In 30,782 adults from the Medical Information Mart for Intensive Care IV (MIMIC-IV), we predicted unplanned ICU readmission 24 h to 30 days after discharge from 99 predictors available at discharge. Weighted and unweighted versions of logistic regression, random forest, XGBoost, and LightGBM were tuned by 5-fold cross-validation on the same training set (n = 19,700), with logistic recalibration fitted on a separate calibration set. Models were evaluated once on the test set (n = 6157) for discrimination (area under the receiver operating characteristic curve, AUROC), probability accuracy (Brier score), calibration, and net benefit, with paired bootstrap 95% confidence intervals (CIs) and 50 repeated splits. Results: Readmission occurred in 3042 patients (9.9%). Before recalibration, class weighting worsened the Brier score and the net benefit at a 10% threshold for all four algorithms, in all 50 splits. It did not change the AUROC of logistic regression (unweighted minus weighted, 0.001; 95% CI −0.002 to 0.004), reduced that of XGBoost (0.009; 95% CI 0.001 to 0.018) and LightGBM (0.008; 95% CI 0.001 to 0.014), and improved only that of random forest (−0.014; 95% CI −0.025 to −0.003). Logistic recalibration restored Brier scores to 0.086–0.087. Thereafter, Brier scores and net benefit were similar between versions, but AUROC differences persisted. Conclusions: Class weighting consistently degraded probability accuracy and clinical utility but improved discrimination in only one of four algorithms, and that benefit required recalibration to be usable. Class weighting should be justified empirically for each algorithm rather than applied by default.
5 December 2026










