Comparative Analysis of Machine Learning Algorithms for Liver Disease Prediction: SVM, Logistic Regression, and Decision Tree

Venugopal Reddy Modhugu *

Fallschurch, Virginia, 22042, USA.

Sivakumar Ponnusamy

Independent Researcher, Richmond, VA, 23233, USA.

*Author to whom correspondence should be addressed.


This study compares Support Vector Machine (SVM), Logistic Regression, and Decision Tree algorithms for liver disease prediction using a dataset sourced from Kaggle, comprising 20,000 training records and approximately 1,000 test records. The research evaluates the algorithms based on performance metrics, including accuracy, precision, recall, and F1-score. SVM emerged as the most effective model with an accuracy of 85%, followed by Logistic Regression with 82% and Decision Tree with 79%. The findings underscore the significance of algorithm selection in healthcare applications and highlight SVM's potential for early detection and intervention in liver disease cases, paving the way for improved patient outcomes and healthcare management. Future work will focus on refining the algorithms and validating the results with larger and more diverse datasets to enhance predictive accuracy and robustness further.

Keywords: Liver disease prediction, machine learning algorithms, Support Vector Machine (SVM), logistic regression, decision tree

How to Cite

Modhugu, V. R., & Ponnusamy, S. (2024). Comparative Analysis of Machine Learning Algorithms for Liver Disease Prediction: SVM, Logistic Regression, and Decision Tree. Asian Journal of Research in Computer Science, 17(6), 188–201.


Download data is not yet available.


Leise MD, Kim WR, Kremers WK, Larson JJ, Benson JT, Therneau TM. A Revised Model for End-Stage Liver Disease Optimizes Prediction of Mortality Among Patients Awaiting Liver Transplantation. Gastroenterology. 2011;140(7):1952–1960. Available:

Janjua HU, Andleeb F, Aftab S, Hussain F, Gilanie G. Classification of liver cirrhosis with statistical analysis of texture parameters. International Journal of Optical Sciences. 2017;3(2): 18–25.

Wu CC, Yeh WC, Hsu WD, Islam Md. M, Nguyen PA. (Alex), Poly TN, Wang YC, Yang HC, (Jack) Li YC. Prediction of fatty liver disease using machine learning algorithms. Computer Methods and Programs in Biomedicine. 2019;170:23–29. Available:

Abdar M, Zomorodi-Moghadam M, Das R, Ting IH. Performance analysis of classification algorithms on early detection of liver disease. Expert Systems with Applications. 2017;67:239–251.


Aggarwal M, Shreve J, McCullough A. 587 Machine Learning Model Correctly Identifies Patients with Advanced Liver Fibrosis which Are Indeterminate by FIB-4 Index in Non-Alcoholic Fatty Liver Disease. Gastroenterology. 2021;160(6):S-114.


Redman JS, Natarajan Y, Wang J, Hanif M, Feng H, Kramer JR, Desiderio R, Xu H, El-Serag, HB, Hou JK, Kanwal F. Utilizing Natural Language Processing (NLP) to Accurately Identify Fatty Liver Disease. Gastroenterology. 2017;152(5): S1115.


Wolfe D, Gong M, Han G, Magee TR, Ross MG, Desai M. Nutrient sensor–mediated programmed nonalcoholic fatty liver disease in low birthweight offspring. American Journal of Obstetrics and Gynecology. 2012;207(4):308.e1-308.e6. Available:

Zhang X, Nie Y, Qiao X, Li K, Chen W, Chen YW. An Automatic Grading Method of Liver Cirrhosis from Abdominal CT Images. 2021 3rd International Conference on Intelligent Medicine and Image Processing. 2021;57–62.

Ershoff BD, Gordin JS, Vorobiof G, Elashoff D, Steadman RH, Scovotti JC, Wray CL. Improving the Prediction of Mortality in the High Model for End-Stage Liver Disease Score Liver Transplant Recipient: A Role for the Left Atrial Volume Index. Transplantation Proceedings. 2018; 50(5):1407–1412.


Singh A, Lopez R, Vigni A, Lawitz E, Poordad F, Scott A, Okubote T, Scott M, Mansouri M, Alkhouri, N. PS-182 - The development of the diabetes liver fibrosis score: A new prediction model to detect advanced fibrosis in diabetics with nonalcoholic fatty liver disease. Journal of Hepatology. 2018;68:S98–S99.


Haas ME, Pirruccello JP, Friedman SN, Wang M, Emdin CA, Ajmera VH, Simon TG, Homburger JR, Guo X, Budoff M, Corey KE, Zhou AY, Philippakis A, Ellinor PT, Loomba R, Batra P, Khera AV. Machine learning enables new insights into genetic contributions to liver fat accumulation. Cell Genomics. 2021;1(3): 100066. Available:

Masuzaki R, Kanda T, Sasaki R, Matsumoto N, Ogawa M, Matsuoka S, Karp SJ, Moriyama M. Noninvasive assessment of liver fibrosis: Current and future clinical and molecular perspectives. International Journal of Molecular Sciences. 2020;21(14):1–18 Available:

Park YS, Moon YJ, Jun IG, Song JG, Hwang GS. Application of the Revised Cardiac Risk Index to the Model for End-Stage Liver Disease Score Improves the Prediction of Cardiac Events in Patients Undergoing Liver Transplantation. Transplantation Proceedings. 2018;50(4): 1108–1113.


Saba L, Dey N, Ashour AS, Samanta S, Nath SS, Chakraborty S, Sanches J, Kumar D, Marinho R, Suri JS. Automated stratification of liver disease in ultrasound: An online accurate feature classification paradigm. Computer Methods and Programs in Biomedicine. 2016;130: 118–134. Available:

Singh J, Bagga S, Kaur R. Software-based Prediction of Liver Disease with Feature Selection and Classification Techniques. Procedia Computer Science. 2020;167: 1970–1980. Available:

Wang J, Qin Z, Hsu J, Zhou B. A fusion of machine learning algorithms and traditional statistical forecasting models for analyzing American healthcare expenditure. Healthcare Analytics. 2024;5:100312.


Yeganeh A, Johannssen A, Chukhrova N, Rasouli M. Monitoring multistage healthcare processes using state space models and a machine learning based framework. Artificial Intelligence in Medicine. 2024;151:102826. Available:

Zini M, Carcasci C. Machine learning-based energy monitoring method applied to the HVAC systems electricity demand of an Italian healthcare facility. Smart Energy. 2024;14:100137.


Kalita MJ, Adhyapak S, Kalita S, Rudola T, Hazarika G, Kalita S, Das PP, Dutta K, Deka AJ, Das E, Idris MG, Talukdar AJ, Dutta S, Medhi S. Vitamin-d receptor (VDR) polymorphism and types of HBV related liver disease along with an SVM based disease prediction model. Human Gene. 2023;37:201211.


Ahad A, Al, Das B, Khan MR, Saha N, Zahid A, Ahmad M. Multiclass liver disease prediction with adaptive data preprocessing and ensemble modeling. Results in Engineering. 2024;22: 102059.


Manchel A, Hoek JB, Bataller R, Mahadevan R, Vadigepalli R. Patient-Specific Genome-Scale Metabolic Models for Individualized Predictions of Liver Disease. IFAC-PapersOnLine. 2022; 55(23):148–149.


Ganie SM, Dutta Pramanik PK. A comparative analysis of boosting algorithms for chronic liver disease prediction. Healthcare Analytics. 2024;5: 100313. Available: