Open Access iconOpen Access



A Comparative Analysis of Machine Learning Algorithms to Predict Liver Disease

Mounita Ghosh1, Md. Mohsin Sarker Raihan1, M. Raihan2, Laboni Akter1, Anupam Kumar Bairagi3, Sultan S. Alshamrani4, Mehedi Masud5,*

1 Khulna University of Engineering and Technology, Khulna-9203, Bangladesh
2 North Western University, Khulna, Bangladesh
3 Computer Science and Engineering Discipline, Khulna University, Khulna-9208, Bangladesh
4 Department of Information Technology, College of Computers and Information Technology, Taif University, Taif, 21944, Saudi Arabia
5 Department of Computer Science, College of Computers and Information Technology, Taif University, Taif, 21944, Saudi Arabia

* Corresponding Author: Mehedi Masud. Email: email

Intelligent Automation & Soft Computing 2021, 30(3), 917-928.


The liver is considered an essential organ in the human body. Liver disorders have risen globally at an unprecedented pace due to unhealthy lifestyles and excessive alcohol consumption. Chronic liver disease is one of the principal causes of death affecting large portions of the global population. An accumulation of liver-damaging factors deteriorates this condition. Obesity, an undiagnosed hepatitis infection, alcohol abuse, coughing or vomiting blood, kidney or hepatic failure, jaundice, liver encephalopathy, and many more disorders are responsible for it. Thus, immediate intervention is needed to diagnose the ailment before it is too late. Therefore, this work aims to evaluate several machine learning algorithm outputs, namely logistic regression, random forest, XGBoost, support vector machine (SVM), AdaBoost, K-NN, and decision tree for predicting and diagnosing chronic liver disease. The classification algorithms are evaluated based on various measurement criteria, such as accuracy, precision, recall, F1 score, an area under the curve (AUC), and specificity. Among the algorithms, the random forest algorithm showed better performance in liver disease prediction with an accuracy of 83.70%. Furthermore, the random forest algorithm also showed better precision, F1, recall, and AUC metrics. Hence, random forest is considered the best algorithm for early liver disease prediction.


Cite This Article

M. Ghosh, M. Mohsin Sarker Raihan, M. Raihan, L. Akter, A. Kumar Bairagi et al., "A comparative analysis of machine learning algorithms to predict liver disease," Intelligent Automation & Soft Computing, vol. 30, no.3, pp. 917–928, 2021.


cc This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 3153


  • 1268


  • 2


Share Link