Enhancing Liver Disease Classification Based on a Stacked Machine Learning Model
Received: 15 April 2025 | Revised: 27 May 2025 | Accepted: 1 June 2025 | Online: 28 July 2025
Corresponding author: Yasser Ramadan
Abstract
Liver Disease (LD) poses a serious global health issue, emphasizing the need for precise and dependable diagnostic solutions. This research introduces an enhanced Machine Learning (ML) approach based on a stacked ensemble framework to classify LD cases, leveraging a publicly accessible dataset from Kaggle comprising patient records from India. Six ML models were applied, namely Random Forest (RF), Support Vector Machine (SVM), Dummy Classifier (DC), Extra Trees classifier (ET), K-Nearest Neighbors (KNN), and Logistic Regression (LR), with ET achieving the highest accuracy at 79.82%. To improve prediction accuracy, a stacked ensemble was developed using ET and RF as base classifiers and SVM as the meta-classifier, which boosted the overall accuracy to 98.53%. The study evaluated performance using accuracy, precision, recall, F1-score, and AUC. The findings highlight the effectiveness of stacking-based ML methods in building accurate and reliable diagnostic tools for liver disease classification.
Keywords:
disease classification, stacked machine learning, liver disease, liver disease classification, artificial intelligenceDownloads
References
A. Schweitzer, J. Horn, R. T. Mikolajczyk, G. Krause, and J. J. Ott, "Estimations of worldwide prevalence of chronic hepatitis B virus infection: a systematic review of data published between 1965 and 2013," The Lancet, vol. 386, no. 10003, pp. 1546–1555, Oct. 2015.
M. A. Quadir, S. Kulkarni, C. J. Joshua, T. Vaichole, S. Mohan, and C. Iwendi, "Enhanced Preprocessing Approach Using Ensemble Machine Learning Algorithms for Detecting Liver Disease," Biomedicines, vol. 11, no. 2, Feb. 2023, Art. no. 581.
A. M. Elshewey, R. Y. Youssef, H. M. El-Bakry, and A. M. Osman, "Water potability classification based on hybrid stacked model and feature selection," Environmental Science and Pollution Research, vol. 32, no. 13, pp. 7933–7949, Mar. 2025.
A. M. Elshewey, M. A. Aziz, O. A. Gaheen, M. S. Sawah, A. Abd ELhamid, and A. M. Osman, "Prediction of aerodynamic coefficients based on machine learning models," Modeling Earth Systems and Environment, vol. 11, no. 3, Mar. 2025, Art. no. 184.
E. Dritsas and M. Trigka, "Supervised Machine Learning Models for Liver Disease Risk Prediction," Computers, vol. 12, no. 1, Jan. 2023, Art. no. 19.
D. Badvath, A. safali Miriyala, S. chaitanya K. Gunupudi, and P. V. K. Kuricheti, "ONBLR: An effective optimized ensemble ML approach for classifying liver cirrhosis disease," Biomedical Signal Processing and Control, vol. 89, Mar. 2024, Art. no. 105882.
C. Zhang et al., "A machine learning-based model analysis for serum markers of liver fibrosis in chronic hepatitis B patients," Scientific Reports, vol. 14, no. 1, May 2024, Art. no. 12081.
A. M. Hendi, M. A. Hossain, N. A. Majrashi, S. Limkar, B. M. Elamin, and M. Rahman, "Adaptive Method for Exploring Deep Learning Techniques for Subtyping and Prediction of Liver Disease," Applied Sciences, vol. 14, no. 4, Jan. 2024, Art. no. 1488.
E. Agbozo and D. M. Balungu, "Liver Disease Classification - An XAI Approach to Biomedical AI," Informatica, vol. 48, no. 1, Jan. 2024.
A. Alizargar, Y. L. Chang, M. Alkhaleefah, and T. H. Tan, "Precision Non-Alcoholic Fatty Liver Disease (NAFLD) Diagnosis: Leveraging Ensemble Machine Learning and Gender Insights for Cost-Effective Detection," Bioengineering, vol. 11, no. 6, Jun. 2024, Art. no. 600.
H. M. Marghany et al., "Toward an Accurate Liver Disease Prediction Based on Two-Level Ensemble Stacking Model," IEEE Access, vol. 12, pp. 180210–180237, 2024.
S. Noor, S. A. AlQahtani, and S. Khan, "XGBoost-Liver: An Intelligent Integrated Features Approach for Classifying Liver Diseases Using Ensemble XGBoost Training Model," Computers, Materials & Continua, vol. 83, no. 1, pp. 1435–1450, 2025.
F. Mehrparvar, "liver disorders." Kaggle, [Online]. Available: https://www.kaggle.com/datasets/fatemehmehrparvar/liver-disorders.
P. Mahajan, S. Uddin, F. Hajati, and M. A. Moni, "Ensemble Learning for Disease Prediction: A Review," Healthcare, vol. 11, no. 12, Jan. 2023, Art. no. 1808.
E. Sivari, E. Bostanci, M. S. Guzel, K. Acici, T. Asuroglu, and T. Ercelebi Ayyildiz, "A New Approach for Gastrointestinal Tract Findings Detection and Classification: Deep Learning-Based Hybrid Stacking Ensemble Models," Diagnostics, vol. 13, no. 4, Jan. 2023, Art. no. 720.
J. Liu, X. Dong, H. Zhao, and Y. Tian, "Predictive Classifier for Cardiovascular Disease Based on Stacking Model Fusion," Processes, vol. 10, no. 4, Apr. 2022, Art. no. 749.
M. O. Edeh et al., "Artificial Intelligence-Based Ensemble Learning Model for Prediction of Hepatitis C Disease," Frontiers in Public Health, vol. 10, Apr. 2022.
S. R. Velu, V. Ravi, and K. Tabianan, "Data mining in predicting liver patients using classification model," Health and Technology, vol. 12, no. 6, pp. 1211–1235, Nov. 2022.
A. M. Elshewey and A. M. Osman, "Orthopedic disease classification based on breadth-first search algorithm," Scientific Reports, vol. 14, no. 1, Oct. 2024, Art. no. 23368.
M. Kaddes, Y. M. Ayid, A. M. Elshewey, and Y. Fouad, "Breast cancer classification based on hybrid CNN with LSTM model," Scientific Reports, vol. 15, no. 1, Feb. 2025, Art. no. 4409.
A. M. Sowjanya and O. Mrudula, "Effective treatment of imbalanced datasets in health care using modified SMOTE coupled with stacked deep learning algorithms," Applied Nanoscience, vol. 13, no. 3, pp. 1829–1840, Mar. 2023.
E. S. M. El-Kenawy, N. Khodadadi, A. Ibrahim, M. M. Eid, A. M. Osman, and A. M. Elshewey, "An optimized model for Liver disease classification based on BPSO Using Machine learning models," Mesopotamian Journal of Computer Science, vol. 2024, pp. 214–223, Dec. 2024.
Downloads
How to Cite
License
Copyright (c) 2025 Alaa A. Almelibari, Mostafa Ibrahim Labib, Yasser Ramadan

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain the copyright and grant the journal the right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) after its publication in ETASR with an acknowledgement of its initial publication in this journal.