Skip to Content
DiseasesDiseases
  • Article
  • Open Access

13 October 2026

16 Pages

Prognostic Modeling of 1-Year Survival in Hepatocellular Carcinoma: A Comparative Evaluation of Machine Learning Methods with Class Balancing

,
,
and
1
Department of Quantitative and Systems Health Sciences, University of Texas at Austin Dell Medical School, Austin, TX 78712, USA
2
Department of Anesthesiology, McGovern Medical School UTHealth, Houston, TX 77030, USA
*
Author to whom correspondence should be addressed.

Simple Summary

Accurate prediction of 1-year survival is critical for informing therapeutic decision-making in patients with hepatocellular carcinoma (HCC) arising on a background of chronic liver disease. In this retrospective study of 165 HCC patients from the UCI repository, we comparatively evaluated eight machine learning workflows combining logistic regression, neural networks, and tree-based ensembles with Synthetic Minority Oversampling (SMOTE). We found that gradient boosting combined with SMOTE achieved the highest discriminative ability (AUC-ROC: 0.727, 95% CI: 0.552–0.886; Brier score: 0.182), and logistic regression with SMOTE yielded 72.7% accuracy, substantially improving the detection of high-risk non-surviving patients (recall: 76.9%). Deep learning (MLP) did not outperform ensemble methods on this tabular dataset. SHAP interpretability identified performance status and liver enzymes as dominant predictors, while diabetes contributed negligibly as an independent feature. This study provides an interpretable, guideline-aligned machine learning framework for clinical risk stratification in HCC.

Abstract

Objective: To develop and comparatively evaluate machine learning models for predicting 1-year survival in hepatocellular carcinoma (HCC) patients, focusing on the prognostic interplay between chronic liver diseases and diabetes aligned with the EASL Clinical Practice Guidelines (2018), and to assess the impact of class balancing via Synthetic Minority Oversampling Technique (SMOTE) on model performance. Methods: Retrospective analysis was performed on the UCI HCC Survival Dataset (N = 165). Following median/mode imputation of ~10% missing values, four classifiers were evaluated: Logistic Regression (LR), Multilayer Perceptron (MLP), Gradient Boosting (GB), and Random Forest (RF), each trained with and without SMOTE oversampling (eight variants total). Models were trained on 16 EASL-aligned clinical and biochemical features using a stratified 80/20 train/test split (training N = 132, held-out test N = 33). Performance was evaluated via accuracy, AUC-ROC (with 95% bootstrap confidence intervals across 1000 iterations), precision, recall, and macro F1-score. Stratified 5-fold cross-validation and multiple imputation sensitivity analyses (MissForest, KNN, MICE, complete-case) were conducted. SHAP (SHapley Additive exPlanations) was applied to the top-performing model to provide patient-level interpretability. Results: Diabetes was present in 33.9% of patients (56/165; 28/102 survivors [27.5%] vs. 28/63 non-survivors [44.4%]). Diabetes was significantly associated with 1-year mortality in univariate analysis (χ2 = 5.02, p = 0.025) but not after multivariable adjustment (aOR = 0.50, 95% CI: 0.21–1.22, p = 0.129). GB + SMOTE achieved the highest discriminative ability (AUC-ROC: 0.727, 95% CI: 0.552–0.886), while LR + SMOTE yielded the highest overall accuracy (72.7%) and macro F1-score (0.723). Without SMOTE, all models exhibited poor minority-class detection (non-survival F1 range: 0.300–0.615). SMOTE markedly improved non-survival recall across LR (0.231 to 0.769) and GB (61.5% to 69.2%). Stratified 5-fold CV AUC on the training set was highest for RF (0.779 ± 0.100), followed by GB (0.744 ± 0.065). TreeSHAP analysis identified ECOG performance status (mean |SHAP| = 1.284) and ALT (1.060) as the most influential predictors; diabetes ranked 15th (mean |SHAP| = 0.014), consistent with minimal independent predictive contribution. Conclusions: Gradient boosting and regularized linear regression combined with SMOTE class balancing provide competitive, well-calibrated, and transparent risk stratification on small, imbalanced tabular HCC datasets, offering an exploratory proof-of-concept for personalized prognostic modeling that requires external validation.

1. Introduction

Hepatocellular carcinoma (HCC) is the fifth most common malignancy and the second leading cause of cancer-related mortality worldwide, accounting for approximately 90% of primary liver cancers [1]. Its incidence continues to rise, particularly in populations with a high burden of chronic liver diseases including cirrhosis, chronic viral hepatitis (HBV/HCV), and metabolic dysfunction-associated steatohepatitis (MASH) [2,3,4,5,6]. In these settings, type 2 diabetes mellitus acts as a frequent metabolic comorbidity that accelerates hepatic fibrogenesis and carcinogenesis via insulin resistance, chronic hyperinsulinemia, and systemic low-grade inflammation [2]. Despite therapeutic advances in surgical resection, liver transplantation, and locoregional therapies, the 5-year overall survival rate for HCC remains below 30%, largely due to late clinical presentation and underlying hepatic decompensation [1,7,8].
The European Association for the Study of the Liver (EASL) and American Association for the Study of Liver Diseases (AASLD) Clinical Practice Guidelines emphasize the compounding prognostic impact of metabolic risk factors in chronic liver disease, recommending risk-stratified management [1]. Conventional staging systems, including the Barcelona Clinic Liver Cancer (BCLC) classification and the Child–Pugh and ALBI scoring systems, combine tumor burden, synthetic liver reserve, and performance status to guide clinical decision-making, achieving moderate prognostic accuracy (AUC: 0.70–0.80) [9,10,11,12]. However, these linear scoring systems cannot capture subtle non-linear interactions among hepatic enzymes, systemic inflammation, and metabolic comorbidities [11,13,14].
Computational machine learning methods offer significant potential for refining prognostic stratification in oncology [15,16,17,18,19]. Santos et al. [9] previously demonstrated the utility of cluster-based oversampling and logistic regression on the UCI HCC Survival Dataset (AUC: 0.70). Subsequent investigations have applied random forests and support vector machines for prognostic prediction in viral hepatitis cohorts, yielding AUCs of 0.80–0.90 [3,20,21,22]. Furthermore, deep learning neural networks have shown substantial utility in radiomics and digital pathology [4,22,23]. However, recent theoretical benchmarks demonstrate that for small-to-moderate tabular clinical datasets characterized by feature heterogeneity and missingness, tree-based ensembles frequently match or outperform deep neural architectures [24,25].
A critical methodological barrier in HCC prognostic modeling is class imbalance, where 1-year survivors outnumber deceased patients, biasing classifiers toward the majority class and leading to high false-negative rates for high-risk patients [26]. While the Synthetic Minority Oversampling Technique (SMOTE) [26] addresses this limitation in general clinical domains [27,28], systematic comparisons of how SMOTE influences diverse model paradigms spanning linear classifiers, multi-layer neural networks, and tree ensembles remain sparse.
We address three questions: (1) Which machine learning approach best predicts 1-year survival in diagnosed HCC patients on a small guideline-aligned tabular dataset? (2) What is the impact of SMOTE class balancing across different model architectures? (3) Which clinical features are most predictive, and what do SHAP-based explanations reveal about diabetes and chronic liver disease interactions at the individual patient level? Our contribution is fourfold: (1) systematic comparative evaluation of eight model variants on EASL-aligned features; (2) evaluation of how SMOTE class balancing affects minority-class (non-survivor) detection across model families; (3) an assessment showing that the MLP did not outperform tree-based or linear models on this small tabular dataset; and (4) patient-level SHAP interpretability of the best model, providing transparent, patient-level feature explanation.

2. Materials and Methods

2.1. Cohort and Clinical Dataset

Data were obtained from the publicly accessible UCI HCC Survival Dataset [9], comprising retrospective clinical records of 165 patients diagnosed with HCC at a university hospital in Portugal between 2008 and 2014. The dataset contains 49 clinical, biochemical, and pathological features selected per EASL-EORTC guidelines [1], comprising 23 quantitative variables (e.g., alpha-fetoprotein [AFP], transaminases, bilirubin, albumin) and 26 qualitative variables (e.g., viral hepatitis status, diabetes, cirrhosis, ascites). The primary clinical endpoint was binary 1-year overall survival (1 = alive at 1 year, 0 = deceased within 1 year). The cohort exhibits moderate class imbalance, with 102 survivors (61.8%) and 63 non-survivors (38.2%). Missing values constituted 10.22% across all entries.

2.2. Data Preprocessing, Missingness Diagnoses and Feature Selection

Data preprocessing was conducted in Python (version 3.13.13) using Pandas (version 4.0.6) and Scikit-learn (version 1.9.1) [29] and PyTorch (version 1.14.1) [30]. Little’s Missing Completely at Random (MCAR) test across quantitative baseline covariates did not reject the MCAR hypothesis (p = 0.082) [31]. Because this test has limited power at N = 165, we assumed a missing-at-random (MAR) mechanism and assessed robustness with alternative imputation strategies. In the primary predictive pipeline, missing values were imputed using feature medians for continuous variables and modes for categorical variables, with imputation parameters estimated within training partitions only. For the descriptive and multivariable analyses (Table 1 and Table 2), the same imputation was applied to the full cohort. Sensitivity analyses were conducted comparing median/mode imputation against k-Nearest Neighbors (k-NN, k = 5), Multiple Imputation by Chained Equations (MICE, m = 5) [31], MissForest [32], and complete-case analysis (N = 118). Sixteen biologically salient variables were selected based on EASL guidelines: Perf. Status (ECOG), ALT, Platelets, AST, Ascites, HBeAg, Hemoglobin, Albumin, HBcAb, HCVAb, AFP, NASH, Cirrhosis, HBsAg, Diabetes Mellitus, and Alcohol Abuse. Continuous variables were scaled using RobustScaler [29] to center features by their median and scale them by the interquartile range (IQR).
Table 1. Baseline Clinical Characteristics, Directionality, and Statistical Associations with 1-Year Survival (N = 165).
Table 2. Multivariable logistic regression for 1-year survival (N = 165; 63 deaths).

2.3. Model Architectures and Hyperparameter Selection

To predict 1-year HCC survival, we evaluated four complementary machine learning model families spanning linear models, deep neural networks, and tree-based ensembles:
Multivariable and Regularized Logistic Regression (LR): (a) Explanatory model. An unpenalized multivariable maximum-likelihood model (statsmodels Logit [19]) was fitted on the full cohort (N = 165) after median/mode imputation to estimate adjusted odds ratios (aORs) for 15 of the 16 EASL features (Table 2). HBeAg was excluded because only one patient was positive (complete separation), and AST, ALT, and AFP were natural-log transformed. (b) Predictive model. A regularized logistic regression classifier (L2 penalty, C = 1.0; scikit-learn [29]) was trained within the 80/20 train/test framework on all 16 RobustScaler-transformed features and served as the linear baseline.
Multilayer Perceptron (MLP): A feedforward MLP was implemented in PyTorch [30]. Its architecture was an input layer (d = 16 features); hidden layer 1 with 32 units, batch normalization, ReLU activation, and dropout (p = 0.20); hidden layer 2 with 16 units and ReLU activation; and a single sigmoid output giving the predicted probability of 1-year survival (Figure 1). The network was trained with the Adam optimizer (learning rate = 0.005, L2 weight decay = 1 × 10−4) to minimize binary cross-entropy, using a batch size of 32 for up to 50 epochs. Early stopping (patience = 10 epochs) monitored the loss on a validation subset.
Figure 1. Schematic architecture and optimization pipeline of the proposed Multilayer Perceptron (MLP) deep learning framework for 1-year hepatocellular carcinoma (HCC) survival prognostication. The network processes 16 EASL-aligned clinical features through two dense hidden layers (32 and 16 units) with ReLU activations, Batch Normalization, Dropout (p = 0.2) and L2 regularization. A single Sigmoid output computes predicted survival probability, optimized using Binary Cross-Entropy loss and Adam (lr = 0.005) with early stopping.
Gradient Boosting (GB): Gradient boosting (GradientBoostingClassifier [29]), based on Friedman’s gradient boosting framework [33], builds an additive ensemble of shallow decision trees, each fitted to the pseudo-residuals of the binary cross-entropy loss. Tree-based splits capture non-linear thresholds and biomarker interactions without manually specified interaction terms. The final configuration was 100 estimators, maximum depth = 3, learning rate = 0.10, and subsample = 0.80.
Random Forest (RF): Random Forest (RandomForestClassifier [29]), based on Breiman’s randomized bagging ensemble [34], aggregates decorrelated decision trees grown on bootstrap samples, with randomly selected features considered at each split. The final configuration was 200 trees, maximum depth = 5, and a minimum of four samples per split.
Hyperparameter selection. Given the small training cohort (N = 132), hyperparameters were fixed a priori to commonly used, conservative values for small tabular datasets (shallow trees, moderate ensemble sizes, dropout and weight decay for the MLP) rather than extensively tuned, to limit the risk of overfitting to the tuning folds. Model stability was assessed by stratified 5-fold cross-validation (Table 3).
Table 3. Stratified 5-Fold Cross-Validation Performance on Training Cohort (N = 132).
Synthetic Minority Oversampling Technique (SMOTE). To address class imbalance (38.2% non-survivors vs. 61.8% survivors), SMOTE [26] was applied only to the training partition (N = 132 → 164 samples), synthesizing minority-class samples by interpolation between k = 5 nearest neighbors. The held-out test set (N = 33) was not resampled, to avoid optimistic bias from data leakage.

2.4. Evaluation Metrics

Model performance was comprehensively quantified on the held-out test set (N = 33, 13 deceased, 20 survivors) across eight clinical and statistical metrics: Accuracy, Area Under the Receiver Operating Characteristic Curve (AUC-ROC) with 95% bootstrap confidence intervals derived across 1000 resampling iterations, Precision (Positive Predictive Value), Recall/Sensitivity (True Positive Rate), Specificity (True Negative Rate), Non-Survival F1-Score, Macro-Averaged F1-Score, and Brier Score [35]. Additionally, stratified 5-fold cross-validation was conducted across 10 random seeds on the training set (N = 132) to benchmark out-of-fold generalization. Pairwise differences in test-set AUC between GB + SMOTE and each comparator model were assessed using DeLong’s nonparametric test for correlated ROC curves [12]. For the baseline comparisons in Table 1, continuous variables were compared between survivors and non-survivors using the two-sample Student’s t-test with pooled variance, and the accompanying correlation coefficient (r) is the point-biserial Pearson correlation with 1-year survival, which is derived from the same comparison and therefore has an identical p-value. Categorical variables were compared using Pearson’s χ2 test without continuity correction, or two-sided Fisher’s exact test when any expected cell count was <5 (NASH and HBeAg); for these variables, r is the phi coefficient. Two-sided p < 0.05 was considered statistically significant.

2.5. SHAP Interpretability Analysis

To evaluate feature contributions and provide patient-level transparency, we integrated SHapley Additive exPlanations (SHAP) grounded in cooperative game theory [36]. TreeSHAP was utilized on the top-performing tree ensemble (GB + SMOTE) to compute exact Shapley values on the log-odds scale, assessing both global feature importance (mean |SHAP|) and directional biomarker effects (e.g., evaluating the independent prognostic impact of diabetes relative to liver enzymes and performance status). TreeSHAP values were computed on the held-out test set (N = 33), using the GB + SMOTE model trained on the SMOTE-augmented training partition, so that explanations reflect patients unseen during training. Global importance was summarized as the mean absolute SHAP value across test-set patients.

3. Results

3.1. Baseline Cohort Demographics and Clinical Characteristics

Exploratory data analysis was conducted to characterize the cohort and the distribution of key risk factors related to chronic liver disease and diabetes. The cohort (N = 165) had a mean age of 67.0 ± 11.2 years and a male predominance (70.3%), consistent with the demographic profile of HCC in Western populations. Cirrhosis was present in 90.3% of patients, in keeping with its role as the principal precursor of HCC [1]. Diabetes mellitus was present in 33.9% of patients (56/165; 28/102 survivors [27.5%] vs. 28/63 non-survivors [44.4%]) and was associated with 1-year mortality in univariate analysis (χ2 = 5.02, p = 0.025; r = −0.174). Higher serum albumin (3.54 ± 0.61 vs. 3.07 ± 0.62 g/dL, p < 0.0001) and platelet count (178.5 ± 92.4 vs. 141.0 ± 78.3 × 109/L, p = 0.008) were associated with survival, whereas ECOG PS ≥ 1 (19.6% vs. 65.1%, p < 0.0001) and ascites (10.8% vs. 38.1%, p < 0.0001) were associated with mortality (Table 1, Figure 2).
Figure 2. Prevalence of clinical risk factors and background comorbidities in the UCI HCC cohort (N = 165). Cirrhosis (90.3%), alcohol abuse (73.9%), and smoking (38.2%) were dominant background conditions, while diabetes mellitus was present in 33.9% of the cohort, and viral hepatitis serologies were positive in 23.0% (HBcAb) and 20.6% (HCVAb) of patients.

3.2. Correlation Structure and Clinical Marker Associations

Pairwise Pearson correlations among the EASL clinical features and 1-year survival are shown in Figure 3. Inter-feature correlations were weak to moderate (|r| ≤ 0.66), the strongest being between alcohol abuse and AFP (r = 0.66) and between performance status and ascites (r = 0.47), indicating limited multicollinearity among predictors. The correlation matrix was computed on the imputed feature matrix used for model development; univariate associations with 1-year survival, including their direction and statistical significance, are reported in Table 1.
Figure 3. Directional Pearson linear correlations between baseline EASL clinical biomarkers and 1-year overall survival (1 = alive, 0 = deceased), computed on the imputed feature matrix. Univariate associations with survival are reported in Table 1.

3.3. Multivariable Logistic Regression Analysis

In the multivariable model including 15 EASL features (Table 2), higher hemoglobin was independently associated with 1-year survival (aOR = 1.33 per g/dL, 95% CI: 1.06–1.67, p = 0.014), whereas higher log-AST (aOR = 0.23, 95% CI: 0.08–0.66, p = 0.006) and log-AFP (aOR = 0.79, 95% CI: 0.69–0.91, p = 0.001) were independently associated with lower odds of survival. ECOG PS ≥ 1 (aOR = 0.40, p = 0.070) and log-ALT (aOR = 2.51, p = 0.064) showed borderline associations. Albumin, ascites, and platelet count, which differed significantly between groups in univariate analysis (Table 1), were not independently associated with survival after adjustment. Diabetes did not reach statistical significance (aOR = 0.50, 95% CI: 0.21–1.22, p = 0.129).

3.4. Subgroup Analysis of AST and Diabetes Interplay

Figure 4 shows serum AST levels stratified by 1-year survival and diabetes status. Median AST values were similar across the four subgroups (non-diabetic survivors, 94.5 U/L; diabetic survivors, 96.0 U/L; non-diabetic deceased, 95.2 U/L; diabetic deceased, 95.8 U/L), and no clear interaction between diabetes and AST was apparent at this sample size.
Figure 4. Serum AST levels by 1-year survival outcome and diabetes status. Median AST values were similar (~94–96 U/L) across the four subgroups, with no apparent diabetes-by-AST interaction at this sample size.

3.5. Deep Learning Training Dynamics

Training and validation convergence curves for the Multilayer Perceptron (MLP) over 50 epochs demonstrate that the binary cross-entropy loss smoothly declined from 0.69 to 0.42 on the training set, while validation loss plateaued at ~0.51 after 35 epochs, at which point early stopping was triggered to limit overfitting.

3.6. Comparative Classifier Performance and Impact of SMOTE

Table 4 details held-out test performance (N = 33). GB + SMOTE achieved highest discriminative AUC (0.727, 95% CI: 0.552-0.886; Brier: 0.182), while LR + SMOTE yielded 72.7% accuracy and macro F1 of 0.723. Pairwise DeLong tests confirmed no significant difference in AUC between GB + SMOTE and LR + SMOTE (p = 0.779), RF (p = 0.660), or baseline GB (p = 0.562). In standard un-augmented models, severe class imbalance caused high false-negative rates: baseline LR missed 76.9% of deceased patients (non-survival recall = 23.1%). SMOTE markedly improved non-survival recall to 76.9% in LR + SMOTE and 69.2% in GB + SMOTE. SMOTE did not benefit the MLP (AUC unchanged at 0.673) (Figure 5 and Figure 6).
Table 4. Comprehensive Model Performance Comparison on Held-Out Test Set (N = 33).
Figure 5. Receiver operating characteristic (ROC) curves for all eight model variants. (A) Standard training without SMOTE: LR achieves highest AUC (0.71), followed by RF (0.70) and GB (0.69); MLP is lowest (0.67). (B) SMOTE-balanced training: GB + SMOTE achieves highest AUC (0.73), followed by LR + SMOTE (0.71); MLP does not benefit from SMOTE (AUC 0.67). All evaluations on held-out test set (n = 33). Dotted diagonal = random classifier (AUC = 0.50).
Figure 6. Empirical performance comparison across all model architectures with and without SMOTE on the held-out test set (n = 33): (Left) AUC-ROC, (Middle) Overall accuracy, and (Right) Macro F1-score. Striped bars denote SMOTE-balanced training. GB + SMOTE achieved the highest AUC (0.73), while LR + SMOTE yielded the highest accuracy (72.7%) and macro F1-score (0.723).
To assess whether test set performance reflected a favorable data split, stratified 5-fold cross-validation was performed on the training set (N = 132): Random Forest achieved highest in-fold discrimination (0.779 ± 0.100), followed by Gradient Boosting (0.744 ± 0.065; lowest variance). MLP achieved lower cross-fold AUC (0.658 ± 0.088) (Table 3).

3.7. Model Calibration and Reliability Analysis

Calibration reliability curves (Figure 7) show that gradient boosting with SMOTE had the lowest Brier score (0.182), compared with logistic regression without SMOTE (Brier = 0.224) and Random Forest without SMOTE (Brier = 0.215). Given the small test set (N = 33), calibration estimates should be interpreted with caution.
Figure 7. Probabilistic calibration curves and Brier score evaluation on the held-out test set (N = 33). Gradient boosting with SMOTE had the lowest Brier score (0.182), confirming accurate risk prediction calibration across clinical risk thresholds.

3.8. Patient-Level Model Explainability via TreeSHAP

TreeSHAP analysis of the GB + SMOTE model on the held-out test set reveals that functional performance status (ECOG PS, mean |SHAP| = 1.284) and alanine aminotransferase (ALT, mean |SHAP| = 1.060) exert the strongest individual predictive force on survival log-odds. In contrast, diabetes ranked 15th out of 16 features (mean |SHAP| = 0.014), explaining why linear univariate correlation with survival failed to achieve significance despite a nominal categorical difference in mortality (Figure 8).
Figure 8. TreeSHAP model interpretability for Gradient Boosting + SMOTE: (Left) a non-survivor correctly predicted as high risk (P(survival) = 0.01), driven by performance status (SHAP = –2.252) and ALT (–1.188). (Right) a survivor misclassified as high risk (P(survival) = 0.12), where hemoglobin (–2.578) and ALT (–0.868) outweighed favorable performance status (+0.979), platelets (+0.383), and AST (+0.336).

3.9. Sensitivity Analysis Across Missing Data Imputation Strategies

Sensitivity analysis (Table 5) showed consistent model discrimination across median/mode, KNN, MICE, MissForest imputation, and complete-case analysis (GB + SMOTE AUC: 0.718-0.735; LR + SMOTE non-survival recall: 75.0–76.9%).
Table 5. Sensitivity analysis of model performance across imputation strategies.

4. Discussion

In this study, we conducted a systematic benchmark of machine learning classifiers, class-balancing paradigms, and explainable AI frameworks for 1-year HCC survival prognostication across eight comprehensive figures and evaluation tables. Our findings demonstrate key biological, computational, and translational insights for oncology practice:

4.1. Algorithmic Hierarchy on Tabular Clinical Cohorts

In our comparative benchmark, tree-based ensembles (Gradient Boosting, Random Forest) and regularized linear regression consistently outperformed the Multilayer Perceptron (MLP, test AUC = 0.673, CV AUC = 0.658 ± 0.088). Pairwise DeLong testing confirmed that GB + SMOTE and LR + SMOTE performed comparably (p = 0.779). This empirical hierarchy aligns with theoretical literature indicating that deep neural networks struggle on moderate-scale tabular datasets (N = 165) characterized by heterogeneous variable types and multicollinearity [24,25]. Decision trees construct axis-aligned partitions capturing physiological thresholds without requiring massive sample sizes [34].

4.2. Class Imbalance Mitigation for High-Risk Clinical Triage

The critical hazard in oncological prognostication is misclassifying high-risk non-survivors as survivors (false negatives). In the default un-augmented Logistic Regression model, class imbalance caused non-survival recall to drop to 23.1% (missing 10 of 13 deceased patients). Applying SMOTE only within training partition recovered non-survival recall to 76.9% in LR + SMOTE and 69.2% in GB + SMOTE, reducing the false-negative rate from 76.9% down to 23.1%. Furthermore, GB + SMOTE achieved the lowest Brier score (0.182), indicating the best probabilistic calibration among the evaluated models.

4.3. Biological Interpretation of Diabetes Mellitus

Diabetes was more prevalent among non-survivors than survivors (44.4% vs. 27.5%; χ2 = 5.02, p = 0.025), but this association was attenuated after multivariable adjustment (aOR = 0.50, 95% CI: 0.21–1.22, p = 0.129), and diabetes ranked 15th of 16 features in TreeSHAP importance (mean |SHAP| = 0.014). These findings suggest that, in this predominantly cirrhotic cohort, the prognostic signal of diabetes over a 1-year horizon may be largely captured by other clinical covariates, notably markers of hepatocellular injury (AST), tumor biology (AFP), and hemoglobin, which remained independently associated with survival (Table 2). This pattern is consistent with the role of diabetes as an upstream metabolic driver of chronic liver disease rather than a direct determinant of short-term mortality [1,7]. Feature rankings also differed between TreeSHAP (GB + SMOTE) and the multivariable logistic model, reflecting the distinction between non-linear predictive importance and linear adjusted associations.

4.4. Methodological and Clinical Limitations

Several limitations should be noted: (1) The dataset originates from a single European medical center (N = 165). The small held-out test cohort (N = 33) results in wide bootstrap confidence intervals (AUC 95% CI: 0.55–0.89); (2) The endpoint was binary 1-year survival rather than right-censored time-to-event data, precluding Kaplan–Meier or DeepSurv modeling; (3) Covariates were recorded at a single baseline assessment, omitting dynamic longitudinal trajectories (e.g., AFP kinetics); (4) The feature space was confined to 16 EASL-selected clinical/laboratory variables; (5) Patients received heterogeneous treatment regimens (resection, ablation, TACE, or supportive care), which may introduce confounding; and (6) The multivariable model had approximately four events per variable, which limits the precision of adjusted estimates.

4.5. Future Research Directions

Future directions include: (1) External multi-center prospective validation across distinct geographic regions and viral etiologies (e.g., East Asian HBV cohorts vs. Western MASH cohorts); (2) Implementing Random Survival Forests (RSF) and DeepSurv for continuous time-to-event curves; (3) Developing multi-view deep learning architectures that fuse clinical tabular data with CT/MRI radiomics and genomic mutation profiles; (4) Embedding real-time SHAP visualizations into electronic health records for point-of-care decision support.

5. Conclusions

In this single-center cohort, gradient boosting and regularized logistic regression combined with SMOTE class balancing achieved comparable discrimination for 1-year survival in hepatocellular carcinoma (AUC 0.73 and 0.71; DeLong p = 0.779), with SMOTE substantially improving detection of non-survivors. The multilayer perceptron offered no advantage over tree-based or linear models on this small tabular dataset. SHAP explanations provided transparent, patient-level insight into model predictions, and diabetes, despite its univariate association with mortality, was not an independent predictor after adjustment. This framework represents an exploratory proof-of-concept; external, multi-center validation is required before clinical application.

Author Contributions

Conceptualization, J.W. and H.L. (Hongfang Liu); methodology, J.W. and H.L. (Hui Li); software, J.W.; validation, J.W., C.J. and H.L. (Hui Li); formal analysis, J.W.; writing—original draft preparation, J.W.; writing—review and editing, J.W., H.L. (Hui Li), C.J. and H.L. (Hongfang Liu); supervision, H.L. (Hongfang Liu); funding acquisition, H.L. (Hongfang Liu). All authors have read and agreed to the published version of the manuscript.

Funding

Research reported in this publication was supported by the National Library of Medicine of the National Institutes of Health under award numbers R01LM011934, the National Human Genome Research Institute under award number R01HG012748, the National Institute of Aging under award number R01AG072799 and U24AG098157, the National Institute of Biomedical Imaging and Bioengineering under award number OT2OD038051, The National Heart, Lung, and Blood Institute under award number R24HL180372, Food and Drug Administration under award number U01FD008720, and the Cancer Prevention and Research Institute of Texas (CPRIT) under award number RR230020.

Institutional Review Board Statement

Ethical review and approval were waived for this study due to the use of pre-existing, de-identified publicly accessible open data.

Data Availability Statement

Publicly available at the UCI Machine Learning Repository (https://archive.ics.uci.edu/dataset/423/hcc+survival (accessed on 28 September 2026).

Acknowledgments

The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Library of Medicine, the National Human Genome Research Institute, the National Institute of Biomedical Imaging and Bioengineering, the National Heart, Lung, and Blood Institute, the National Institutes of Health, the Food and Drug Administration, or the State of Texas. Generative AI tools were used only to assist with language editing and improve the clarity and readability of the manuscript. All AI-assisted text was reviewed, revised, and verified by the authors, who take full responsibility for the manuscript’s content.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. European Association for the Study of the Liver. EASL Clinical Practice Guidelines: Management of hepatocellular carcinoma. J. Hepatol. 2018, 69, 182–236, Correction in J. Hepatol. 2018, 70, 87. [Google Scholar] [CrossRef] [Scilit]
  2. Reig, M.; Forner, A.; Rimola, J.; Ferrer-Fàbrega, J.; Burrel, M.; Garcia-Criado, Á.; Kelley, R.K.; Galle, P.R.; Mazzaferro, V.; Salem, R. BCLC strategy for prognosis prediction and treatment recommendation: The 2022 update. J. Hepatol. 2021, 76, 681–693. [Google Scholar] [CrossRef] [Scilit]
  3. Wang, G.; Chen, W.; Liang, Z.; Zhang, X.; Liu, Y.; Zhou, J.; Fan, J. A deep learning radiopathomic signature predicts recurrence risk of hepatocellular carcinoma after hepatectomy. Commun. Biol. 2026, 9, 295. [Google Scholar] [CrossRef] [Scilit]
  4. Boutos, P.; Karakasi, K.E.; Katsanos, G.; Tsoulfas, G. Harnessing artificial intelligence in gastroenterology and hepatology. World J. Hepatol. 2026, 18, 111902. [Google Scholar] [CrossRef] [Scilit]
  5. Singal, A.G.; Lampertico, P.; Nahon, P. Epidemiology and surveillance for hepatocellular carcinoma: New targets and technology. Gastroenterology 2020, 159, 866–883. [Google Scholar]
  6. Llovet, J.M.; Kelley, R.K.; Villanueva, A. Hepatocellular carcinoma. Nat. Rev. Dis. Primers 2021, 7, 6. [Google Scholar]
  7. Mauro, E.; de Castro, T.; Zeitlhoefler, M.; Sung, M.W.; Villanueva, A.; Mazzaferro, V.; Llovet, J.M. Hepatocellular carcinoma: Epidemiology, diagnosis and treatment. JHEP Rep. 2025, 7, 101571. [Google Scholar] [CrossRef] [Scilit]
  8. Nahon, P. Establishing five-year overall survival as a new standard for trials in advanced HCC. J. Hepatol. 2025, 83, 833–834. [Google Scholar] [CrossRef] [Scilit]
  9. Santos, M.S.; Abreu, P.H.; García-Laencina, P.J.; Simão, A.; Carvalho, A. A new cluster-based oversampling method for improving survival prediction of hepatocellular carcinoma patients. J. Biomed. Inform. 2015, 58, 49–59. [Google Scholar] [CrossRef] [Scilit]
  10. Johnson, P.J.; Berhane, S.; Kagebayashi, C. Assessment of liver function in patients with hepatocellular carcinoma: A new evidence-based approach—The ALBI grade. J. Clin. Oncol. 2015, 33, 550–558. [Google Scholar] [CrossRef] [Scilit]
  11. Tsuchiya, K.; Asahina, Y.; Tamaki, N. Risk factors for hepatocellular carcinoma in patients with chronic hepatitis C. Gastroenterology 2022, 162, 1985–1996. [Google Scholar]
  12. DeLong, E.R.; DeLong, D.M.; Clarke-Pearson, D.L. Comparing the areas under two or more correlated receiver operating characteristic curves: A nonparametric approach. Biometrics 1988, 44, 837–845. [Google Scholar] [CrossRef] [Scilit]
  13. Pinato, D.J.; Stebbing, J.; Ishizuka, M. A novel and validated prognostic index in hepatocellular carcinoma: The inflammation-based index. J. Hepatol. 2012, 57, 1015–1020. [Google Scholar] [CrossRef] [Scilit]
  14. Liu, P.-H.; Hsu, C.-Y.; Hsia, C.-Y.; Lee, Y.-H.; Su, C.-W.; Huang, Y.-H.; Lee, F.-Y.; Lin, H.-C.; Huo, T.-I. Prognosis of hepatocellular carcinoma: Assessment of eleven staging systems. J. Hepatol. 2016, 64, 601–608. [Google Scholar] [CrossRef] [Scilit]
  15. Rajkomar, A.; Dean, J.; Kohane, I. Machine learning in medicine. N. Engl. J. Med. 2019, 380, 1347–1358. [Google Scholar] [CrossRef] [Scilit]
  16. Topol, E.J. High-performance medicine: The convergence of human and artificial intelligence. Nat. Med. 2019, 25, 44–56. [Google Scholar] [CrossRef] [Scilit]
  17. Wiens, J.; Shenoy, E.S. Machine learning for healthcare: On the verge of a major impact. Nat. Med. 2018, 24, 1499–1501. [Google Scholar]
  18. Esteva, A.; Robicquet, A.; Ramsundar, B. A guide to deep learning in healthcare. Nat. Med. 2019, 25, 24–29. [Google Scholar] [CrossRef] [Scilit]
  19. Seabold, S.; Perktold, J. Statsmodels: Econometric and statistical modeling with Python. In Proceedings of the 9th Python in Science Conference, Austin, TX, USA, 28 June–3 July 2010; pp. 57–61. [Google Scholar]
  20. Akbulut, S.; Colak, C. Pioneering efficient deep learning architectures for enhanced hepatocellular carcinoma prediction and clinical translation. World J. Gastrointest. Oncol. 2026, 18, 113870. [Google Scholar] [CrossRef] [Scilit]
  21. Rao, J.X.; Li, Y.; Leng, K. Artificial intelligence in hepatocellular carcinoma screening: Applications and challenges. Front. Med. 2026, 12, 1713887. [Google Scholar] [CrossRef] [Scilit]
  22. Maaloul, K.; Lejdel, B.; Clementini, E. Machine Learning Algorithm for Predicting Hepatocellular Carcinoma in HCV Patients. Preprints 2026, 2026020659. [Google Scholar] [CrossRef] [Scilit]
  23. Mostafa, G.; Mahmoud, H.; El-Hafeez, T.A.; ElAraby, M.E. The power of deep learning in simplifying feature selection for hepatocellular carcinoma: A review. BMC Med. Inform. Decis. Mak. 2024, 24, 287. [Google Scholar] [CrossRef] [Scilit]
  24. Grinsztajn, L.; Oyallon, E.; Varoquaux, G. Why do tree-based models still outperform deep learning on tabular data? In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS 2022), New Orleans, LO, USA, 28 November–9 December 2022; pp. 507–520. [Google Scholar] [CrossRef] [Scilit]
  25. Shwartz-Ziv, R.; Armon, A. Tabular data: Deep learning is not all you need. Inf. Fusion 2022, 81, 84–90. [Google Scholar] [CrossRef] [Scilit]
  26. Chawla, N.V.; Bowyer, K.W.; Hall, L.O.; Kegelmeyer, W.P. SMOTE: Synthetic Minority Over-sampling Technique. J. Artif. Intell. Res. 2002, 16, 321–357. [Google Scholar] [CrossRef] [Scilit]
  27. He, H.; Garcia, E.A. Learning from imbalanced data. IEEE Trans. Knowl. Data Eng. 2009, 21, 1263–1284. [Google Scholar] [CrossRef] [Scilit]
  28. Fernández, A.; García, S.; Herrera, F.; Chawla, N.V. SMOTE for learning from imbalanced data: Progress and challenges, marking the 15-year anniversary. J. Artif. Intell. Res. 2018, 61, 863–905. [Google Scholar] [CrossRef] [Scilit]
  29. Pedregosa, F.; Varoquaux, G.; Gramfort, A. Scikit-learn: Machine Learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
  30. Paszke, A.; Gross, S.; Massa, F. PyTorch: An imperative style, high-performance deep learning library. In Proceedings of the Advances in Neural Information Processing Systems, 33rd Annual Conference on Neural Information Processing Systems, Vancouver, 8–14 December 2019; Curran Associates, Inc.: Red Hook, NY, USA, 2019; Volume 32, pp. 8024–8035. [Google Scholar] [CrossRef] [Scilit]
  31. Little, R.J.A.; Rubin, D.B. Statistical Analysis with Missing Data, 3rd ed.; John Wiley & Sons: Hoboken, NJ, USA, 2019. [Google Scholar]
  32. Stekhoven, D.J.; Bühlmann, P. MissForest—Non-parametric missing value imputation for mixed-type data. Bioinformatics 2012, 28, 112–118. [Google Scholar] [CrossRef] [Scilit]
  33. Friedman, J.H. Greedy function approximation: A gradient boosting machine. Ann. Stat. 2001, 29, 1189–1232. [Google Scholar] [CrossRef] [Scilit]
  34. Breiman, L. Random forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef] [Scilit]
  35. Brier, G.W. Verification of forecasts expressed in terms of probability. Mon. Weather Rev. 1950, 78, 1–3. [Google Scholar] [CrossRef] [Scilit]
  36. Lundberg, S.M.; Lee, S.I. A unified approach to interpreting model predictions. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS 2017); Curran Associates, Inc.: Red Hook, NY, USA, 2017; pp. 4765–4774. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.