StackLiverNet: A Novel Stacked Ensemble Model for Accurate and Interpretable Liver Disease Detection
Existing liver disease classification models suffer from high misclassification rates, poor interpretability, substantial computational overhead, and inadequate preprocessing. To address these challenges, this paper proposes StackLiverNet—a clinically oriented, interpretable stacked ensemble framework. It integrates random undersampling to mitigate class imbalance, recursive feature elimination for optimal feature subset selection, and a hyperparameter-optimized LightGBM meta-learner to aggregate multiple base classifiers. Innovatively, it incorporates LIME and SHAP for both local and global interpretability, and employs Morris sensitivity analysis to validate the clinical credibility of key biomarkers. Evaluated on a public dataset, StackLiverNet achieves 99.89% accuracy, a Cohen’s Kappa of 0.9974, and an AUC of 0.9993, with only five misclassifications. Training and inference times are merely 4.28 seconds and 0.11 seconds, respectively—demonstrating exceptional precision, robustness, and real-time deployability.