Machine Learning Prediction of Liver Disease Using Biochemical and Demographic Patient Indicators
Keywords:
Liver Disease Prediction, Machine Learning, `Biochemical Indicators, Demographic Characteristics, Clinical Decision SupportAbstract
Liver disease is a major health problem and timely detection and reliable prediction are important to ensure clinical management of the disease. This work explores the effectiveness of machine learning algorithms based on biochemical and demographic patient indicators for predicting outcomes. For quantitative analysis, the Indian Liver Patient Dataset consisting of 583 patient records and 10 predictor variables was used. After data pre-processing and removal of duplicated data, 570 observations were left for model development. Stratified data partitioning and 5-fold cross-validation were used to test six supervised machine learning algorithms: Logistic Regression, Decision Tree, Random Forest, Support Vector Machine, K-Nearest Neighbors, and XGBoost. The accuracy, precision, recall, specificity, F1-score and ROC-AUC were used to evaluate the model's performance. The results showed an intermediate predictive ability, ranging from 73.68% accuracy in the case of Random Forest, to 0.823 in ROC-AUC for Support Vector Machine and 93.83% of recall for XGBoost. Direct bilirubin and alkaline phosphatase were found to be important biochemical markers and demographic markers were found to provide additional predictive information through correlation and feature importance analyses. However, there are problems with generalizing to clinical settings due to class imbalance, small sample sizes and lack of external validation. In general, the research demonstrates the promise of machine learning in basic diagnosis of liver disease risk and the need for strong interpretation, validation and clinical decision support.
References
Ahn, J. C., Connell, A., Simonetto, D. A., Hughes, C., & Shah, V. H. (2021). Application of Artificial Intelligence for the Diagnosis and Treatment of Liver Diseases. Hepatology, 73(6), 2546–2563. https://doi.org/10.1002/hep.31603
Balsano, C., Burra, P., Duvoux, C., Alisi, A., Piscaglia, F., Gerussi, A., Brunetto, M. R., Bonino, F., Montalti, R., & Campanile, S. (2023). Artificial Intelligence and liver: Opportunities and barriers. Digestive and Liver Disease, 55(11), 1455–1461.
Beam, A. L., & Kohane, I. S. (2018). Big data and machine learning in health care. Jama, 319(13), 1317–1318.
Bendi Ramana, N. V. (2022). ILPD (Indian Liver Patient Dataset) [Dataset]. UCI Machine Learning Repository. https://doi.org/10.24432/C5D02C
Binuya, M. A. E., Engelhardt, E. G., Schats, W., Schmidt, M. K., & Steyerberg, E. W. (2022). Methodological guidance for the evaluation and updating of clinical prediction models: A systematic review. BMC Medical Research Methodology, 22(1), 316. https://doi.org/10.1186/s12874-022-01801-8
Dinani, A. M., Kowdley, K. V., & Noureddin, M. (2021). Application of Artificial Intelligence for Diagnosis and Risk Stratification in NAFLD and NASH: The State of the Art. Hepatology, 74(4), 2233–2240. https://doi.org/10.1002/hep.31869
Finlayson, S. G., Subbaswamy, A., Singh, K., Bowers, J., Kupke, A., Zittrain, J., Kohane, I. S., & Saria, S. (2021). The Clinician and Dataset Shift in Artificial Intelligence. New England Journal of Medicine, 385(3), 283–286. https://doi.org/10.1056/NEJMc2104626
Gao, B., & Duan, W. (2025). The current status and future directions of artificial intelligence in the prediction, diagnosis, and treatment of liver diseases. DIGITAL HEALTH, 11, 20552076251325418. https://doi.org/10.1177/20552076251325418
Goldman, O., Ben-Assuli, O., Rogowski, O., Zeltser, D., Shapira, I., Berliner, S., Zelber-Sagi, S., & Shenhar-Tsarfaty, S. (2021). Non-alcoholic Fatty Liver and Liver Fibrosis Predictive Analytics: Risk Prediction and Machine Learning Techniques for Improved Preventive Medicine. Journal of Medical Systems, 45(2), 22. https://doi.org/10.1007/s10916-020-01693-5
Hashem, S., ElHefnawi, M., Habashy, S., El-Adawy, M., Esmat, G., Elakel, W., Abdelazziz, A. O., Nabeel, M. M., Abdelmaksoud, A. H., & Elbaz, T. M. (2020). Machine learning prediction models for diagnosing hepatocellular carcinoma with HCV-related chronic liver disease. Computer Methods and Programs in Biomedicine, 196, 105551.
Hong, Y., Chen, X., Wang, L., Zhang, F., Zeng, Z., & Xie, W. (2025). Machine learning prediction of metabolic dysfunction-associated fatty liver disease risk in American adults using body composition: Explainable analysis based on SHapley Additive exPlanations. Frontiers in Nutrition, 12, 1616229.
Kaul, T., Damen, J. A., Wynants, L., Van Calster, B., van Smeden, M., Hooft, L., & Moons, K. G. (2025). Assessing the quality of prediction models in health care using the Prediction model Risk Of Bias ASsessment Tool (PROBAST): An evaluation of its use and practical application. Journal of Clinical Epidemiology, 181, 111732.
Kelly, C. J., Karthikesalingam, A., Suleyman, M., Corrado, G., & King, D. (2019). Key challenges for delivering clinical impact with artificial intelligence. BMC Medicine, 17(1), 195. https://doi.org/10.1186/s12916-019-1426-2
Li, X., Xiao, Y., Chen, X., Zhu, Y., Du, H., Shu, J., Yu, H., Ren, X., Zhang, F., Dang, J., Zhang, C., Su, S., & Li, Z. (2024). Machine Learning Reveals Serum Glycopatterns as Potential Biomarkers for the Diagnosis of Nonalcoholic Fatty Liver Disease (NAFLD). Journal of Proteome Research, 23(6), 2253–2264. https://doi.org/10.1021/acs.jproteome.4c00204
Loh, H. W., Ooi, C. P., Seoni, S., Barua, P. D., Molinari, F., & Acharya, U. R. (2022). Application of explainable artificial intelligence for healthcare: A systematic review of the last decade (2011–2022). Computer Methods and Programs in Biomedicine, 226, 107161.
Lu, F., Meng, Y., Song, X., Li, X., Liu, Z., Gu, C., Zheng, X., Jing, Y., Cai, W., Pinyopornpanish, K., Mancuso, A., Romeiro, F. G., Méndez-Sánchez, N., & Qi, X. (2024). Artificial Intelligence in Liver Diseases: Recent Advances. Advances in Therapy, 41(3), 967–990. https://doi.org/10.1007/s12325-024-02781-5
McTeer, M., Applegate, D., Mesenbrink, P., Ratziu, V., Schattenberg, J. M., Bugianesi, E., Geier, A., Romero Gomez, M., Dufour, J.-F., & Ekstedt, M. (2024). Machine learning approaches to enhance diagnosis and staging of patients with MASLD using routinely available clinical information. Plos One, 19(2), e0299487.
Moons, K. G. M., Wolff, R. F., Riley, R. D., Whiting, P. F., Westwood, M., Collins, G. S., Reitsma, J. B., Kleijnen, J., & Mallett, S. (2019). PROBAST: A Tool to Assess Risk of Bias and Applicability of Prediction Model Studies: Explanation and Elaboration. Annals of Internal Medicine, 170(1), W1–W33. https://doi.org/10.7326/M18-1377
Navarro, C. L. A., Damen, J. A., Takada, T., Nijman, S. W., Dhiman, P., Ma, J., Collins, G. S., Bajpai, R., Riley, R. D., & Moons, K. G. (2021). Risk of bias in studies on prediction models developed using supervised machine learning techniques: Systematic review. Bmj, 375. https://www.bmj.com/content/375/bmj.n2281.abstract
On behalf of Topic Group ‘Evaluating diagnostic tests and prediction models’ of the STRATOS initiative, Van Calster, B., McLernon, D. J., Van Smeden, M., Wynants, L., & Steyerberg, E. W. (2019). Calibration: The Achilles heel of predictive analytics. BMC Medicine, 17(1), 230. https://doi.org/10.1186/s12916-019-1466-7
Rajkomar, A., Dean, J., & Kohane, I. (2019). Machine Learning in Medicine. New England Journal of Medicine, 380(14), 1347–1358. https://doi.org/10.1056/NEJMra1814259
Riley, R. D., Ensor, J., Snell, K. I., Harrell, F. E., Martin, G. P., Reitsma, J. B., Moons, K. G., Collins, G., & Van Smeden, M. (2020). Calculating the sample size required for developing a clinical prediction model. Bmj, 368. https://www.bmj.com/content/368/bmj.m441.short
Schattenberg, J. M., Chalasani, N., & Alkhouri, N. (2023). Artificial intelligence applications in hepatology. Clinical Gastroenterology and Hepatology, 21(8), 2015–2025.
Spann, A., Yasodhara, A., Kang, J., Watt, K., Wang, B., Goldenberg, A., & Bhat, M. (2020). Applying Machine Learning in Liver Disease and Transplantation: A Comprehensive Review. Hepatology, 71(3), 1093–1105. https://doi.org/10.1002/hep.31103
Stevens, R. J., & Poppe, K. K. (2020). Validation of clinical prediction models: What does the “calibration slope” really measure? Journal of Clinical Epidemiology, 118, 93–99.
Straw, I., & Wu, H. (2022). Investigating for bias in healthcare algorithms: A sex-stratified analysis of supervised machine learning models in liver disease prediction. BMJ Health & Care Informatics, 29(1), e100457.
Topol, E. J. (2019). High-performance medicine: The convergence of human and artificial intelligence. Nature Medicine, 25(1), 44–56.
Wang, B., Yu, H., Gao, J., Yang, L., Zhang, Y., Yuan, X., & Zhang, Y. (2024). Machine learning deciphers the significance of mitochondrial regulators on the diagnosis and subtype classification in non-alcoholic fatty liver disease. Heliyon, 10(9). https://www.cell.com/heliyon/fulltext/S2405-8440(24)05891-2
