Data source and study design
We conducted a retrospective observational study using the PIC database.13 PIC comprises 13,499 hospital admissions from 12,881 unique pediatric patients (aged 0–18 years) admitted to Children’s Hospital, Zhejiang University School of Medicine between 2010 and 2018. It contains more than 1,298 variables derived from deidentified patient records, including vital signs, laboratory tests, medications, fluid balance, diagnostic codes, and other bedside clinical data. All patient identifiers were removed in compliance with the Health Insurance Portability and Accountability Act (HIPAA), and access to the database is restricted to users who complete human-subjects research training and sign a data use agreement, thereby ensuring ethical and responsible data use.
The PIC database is organized into 16 interlinked tables. For the present study, “PATIENTS”, “ADMISSIONS”, and “ICUSTAYS” tables were used to obtain and integrate key demographic, admission, and ICU-stay information. All files are provided in comma-separated value (CSV) format, which facilitates their use in relational database systems.
Cohort definition and inclusion criteria
To construct the study cohort, we applied the following inclusion criteria: (a) Patients aged 1 month to 17 years were included, while neonates were excluded because neonatal intensive care conditions differ substantially from broader pediatric critical illness10,16,17; (b) Only the first admission per patient was retained to avoid bias from repeated records, consistent with established practices in ICU prediction research9,10,18; and (c) Only data recorded within the first 24 h of PICU admission were considered, in line with both traditional scoring systems, such as PRISM III3 and recent ML studies focused on early risk prediction.9 Restricting the analysis to the first 24 h supports early risk assessment and helps prevent information leakage from subsequent disease progression.
Variable selection, data quality assessment, and feature engineering
Candidate variables potentially relevant to pediatric mortality were identified through a literature review and consultation with a clinical expert. An exploratory analysis was subsequently performed to assess data coverage and validity. This assessment included variable availability within the first 24 h of PICU admission, completeness, consistency of measurement units, physiological plausibility of observed value ranges, coding consistency, and duplication or clinical overlap between variables.
Variables were considered unreliable when they met at least one of the following criteria: (i) the clinical meaning of the variable could not be unambiguously identified from the database documentation or variable name; (ii) the measurement unit was absent, inconsistent, or incompatible with the expected clinical concept; (iii) the observed value range contained implausible values that could not be corrected or clinically interpreted; or (iv) the variable showed inconsistent coding across records. This definition was applied during the exploratory screening stage using automated descriptive checks followed by clinical review. This process also ensured consistent units and reference ranges, and helped detect potential biases arising from inconsistent recording or implausible values. Variables considered clinically irrelevant or unreliable were excluded from further analysis.
Subsequently, variable-level preprocessing was conducted to refine the feature set. Predictors previously identified as clinically relevant were retained for missingness assessment. Variables with more than 60% missingness were excluded from the feature set. This threshold was selected a priori as a pragmatic balance between retaining clinically meaningful variables and avoiding predictors for which most values would have been generated by imputation rather than observed data. Variables exceeding this threshold were considered to have insufficient coverage for reliable modeling, particularly given the objective of evaluating the intrinsic predictive potential of the database. This filtering was applied only to the feature set and did not affect cohort selection. The remaining missing values were imputed using the Miceforest algorithm,19 a LightGBM-based multiple imputation method that preserves complex intervariable relationships.
To represent each variable consistently, summary measures were generated according to variable type. For vital signs, minimum, mean, and maximum values were computed; for laboratory measurements, minimum and maximum values were retained; and for the demographic variable, a single representative value was used.
Statistical and association analysis
The distribution of all clinical variables was first assessed using the Shapiro–Wilk test,20 which is appropriate for small to moderate sample sizes (n < 5000). Since none of the variables followed a normal distribution, non-parametric tests were used to compare survivors and non-survivors. Specifically, the Mann–Whitney U test21 was applied to continuous variables, and the Chi-square test22 to categorical variables. This exploratory step provided an initial overview of how survivors and non-survivors differed across clinical variables, offering insight into broad distributional patterns and guiding the identification of variables potentially associated with mortality.
To estimate the association between each clinical variable and mortality, univariate odds ratio (OR) analysis was performed using logistic regression. Each model included a single clinical variable as predictor, estimating how incremental changes in that variable influenced the odds of death. The resulting ORs and their 95% confidence intervals were used to characterize unadjusted, univariate associations between each clinical variable and pediatric mortality. This analysis provided an epidemiological perspective of the variables most strongly associated with mortality and served as a reference for subsequent interpretability analyses.
Machine learning models for mortality prediction
Nine ML classifiers were evaluated for pediatric mortality prediction: Logistic Regression (LR), Support Vector Classifier (SVC), Decision Trees (DT), Random Forest (RF), Gradient Boosting Machine (GBM), Multilayer Perceptron (MLP), XGBoost (XGB), LightGBM (LGBM), and CatBoost (CTB). The evaluated classifiers were selected to represent a broad spectrum of ML paradigms commonly applied in clinical prediction studies, including linear, probabilistic, kernel-based, tree-based, ensemble, boosting, and neural-network approaches.
Before model development, the final cohort was divided into training and test sets using 80% for training and 20% for testing. Stratified random sampling was applied according to mortality status to preserve the proportion of survivors and non-survivors in both subsets. A fixed random seed was used to ensure reproducibility. The resulting training set included 3417 patients, and the hold-out test set included 855 patients. The training set was used for model fitting, cross-validation, model selection, hyperparameter optimization, and decision-threshold adjustment. The test set was hold out and used only for final performance evaluation.
Within the training set, five-fold stratified cross-validation was applied to estimate model performance and reduce variability across folds. Model performance was primarily assessed using AUC, given its suitability for imbalanced classification and its ability to capture discrimination across classification thresholds. Additional evaluation included sensitivity, specificity, and F1-score. The classifier with the highest cross-validated AUC in the training set was subsequently selected for Bayesian hyperparameter optimization, and its decision threshold was adjusted within the training data to maximize the F1-score. Final model performance was then evaluated on the hold-out test set.
Model interpretability through SHAP analysis
Model interpretability plays a central role in evaluating the predictive potential of the PIC database, as it provides insight into how different ML algorithms exploit the available clinical variables. To examine how different machine learning models prioritized the available clinical variables, SHapley Additive exPlanations (SHAP)23 were applied across a subset of classifiers. The analysis focused on the consistency of feature relevance across models rather than on the interpretation of a single classifier.
SHAP analysis was performed on seven ML models that allowed stable and computationally efficient estimation: DT, RF, GBM, XGB, LGBM, LR, and the optimized CTB model. Tree-based models were interpreted using TreeSHAP, which provides exact explanations for ensemble trees, while Logistic Regression was analyzed using LinearSHAP, yielding additive and theoretically consistent contributions under linear assumptions. Models such as SVC, GNB, and MLP were excluded due to the high computational cost and instability of KernelSHAP when applied to high-dimensional settings, such as the 100-variable design considered in this study.
Direct comparison of SHAP magnitude across different models can be misleading, as importance values depend on model structure, scale, and output distributions. Therefore, instead of comparing absolute SHAP values, a consensus-based interpretability analysis was adopted to evaluate cross-model agreement in feature relevance.
For each of the seven evaluated models, the top 20 variables ranked by mean absolute SHAP values were identified. A majority-voting scheme was then applied, counting how many models included each variable within their respective top 20 rankings.
Comparison between statistical association analysis and machine learning approaches
To assess the agreement between statistical association and model-derived feature importance, a comparative analysis was performed between the univariate OR results and the SHAP-based feature importance ranking derived from the optimized CTB model. The comparison focused on whether both approaches prioritized similar variables for mortality prediction. Variables consistently identified by both methods were considered strong candidates, whereas discrepancies were used to examine differences between univariate associations and multivariable model-based relevance.