Comparative Analysis of Machine Learning and Deep Learning Models for Classification and Prediction of Liver Disease in Patients with Hepatitis C
Main Article Content
Abstract
Hepatitis C, an infectious disease that claims thousands of lives annually, affects millions globally. Disease prediction and classification are crucial in medical research, as forecasting diseases helps identify patients at risk. This study used the Electronic Health Records dataset from the UCI Machine Learning Repository, which included 615 individuals, of which 540 were healthy, and 75 had hepatitis C. Machine learning (ML) algorithms proved particularly effective in developing prediction models for the presence of the Hepatitis C Virus (HCV), thereby improving performance and efficiency. After evaluating several categories of machine learning (ML) algorithms for classification, the study employed seven algorithms: an Artificial Neural Network (ANN) and an ensemble model combining these seven distinct algorithms. The classifiers used in model assessment included K-Nearest Neighbors (KNN), Support Vector Machine (SVM), Decision Tree (DT), Random Forest (RF), Logistic Regression (LGR), XGBoost (XGB), and Gaussian Naive Bayes (GNB). Additionally, an ANN and an ensemble model were implemented. This study presents a comparative analysis of these algorithms, with the Random Forest (RF) classifier achieving the highest accuracy across all iterations. The experimental results demonstrate that the proposed ensemble framework achieved greater accuracy with XGB as the final estimator. Notably, the RF classifier reached an accuracy of 99.88%. In conclusion, the study demonstrates that using an ensemble model improves prediction accuracy for Hepatitis C, yielding more precise results than applying individual algorithms.
Article Details

This work is licensed under a Creative Commons Attribution 4.0 International License.
Journal of Studies in Science and Engineering is licensed under a Creative Commons Attribution License 4.0 (CC BY-4.0).
References
WHO. Hepatitis C [Online] Available: https://www.who.int/news-room/fact-sheets/detail/hepatitis-c
Wendy Spearman, Geoffrey M Dusheiko, Margaret Hellard, and M. Sonderup, "Hepatitis C," Lancet, vol. 394, no. 10207, pp. 1451-1466, 2019, doi: 10.1016/S0140-6736(19)32320-7.
H. Rumgay et al., "Global, regional and national burden of primary liver cancer by subtype," European Journal of Cancer, vol. 161, pp. 108-118, 2022, doi: http://dx.doi.org/10.1016/j.ejca.2021.11.023.
D. A. Mahmood and S. A. Aminfar, "Efficient Machine Learning and Deep Learning Techniques for Detection of Breast Cancer Tumor," BioMed Target Journal, vol. 2, no. 1, pp. 1 - 13, 06/30 2024, doi: https://doi.org/10.59786/bmtj.211.
F. J. Kaunang, "A comparative study on hepatitis C predictions using machine learning algorithms," 8ISC Proceedings: Technology, pp. 33-42, 2022.
L. Syafaah, Z. Zulfatman, and M. Lestandy, "Comparison of machine learning classification methods in hepatitis C virus," JOIN (Jurnal Online Informatika), vol. 6, no. 1, pp. 73-78, 2021, doi: http://dx.doi.org/10.15575/join.v6i1.719.
A. Orooji and F. Kermani, "Machine learning based methods for handling imbalanced data in hepatitis diagnosis," Frontiers in Health Informatics, vol. 10, no. 1, p. 57, 2021, doi: http://dx.doi.org/10.30699/fhi.v10i1.259.
K. Ahammed, M. S. Satu, M. I. Khan, and M. Whaiduzzaman, "Predicting infectious state of hepatitis c virus affected patient's applying machine learning methods," in 2020 IEEE Region 10 Symposium (TENSYMP), 2020: IEEE, pp. 1371-1374, doi: http://dx.doi.org/10.1109/TENSYMP50017.2020.9230464.
S. C. Nandipati, C. XinYing, and K. K. Wah, "Hepatitis C virus (HCV) prediction by machine learning techniques," Applications of modelling and simulation, vol. 4, pp. 89-100, 2020.
N. H. Barakat, S. H. Barakat, and N. Ahmed, "Prediction and staging of hepatic fibrosis in children with hepatitis C virus: A machine learning approach," Healthcare Informatics Research, vol. 25, no. 3, pp. 173-181, 2019, doi: http://dx.doi.org/10.4258/hir.2019.25.3.173.
G. J. Dore, "Monitoring hepatitis C elimination among people who inject drugs: A broader approach is required," International Journal of Drug Policy, vol. 137, p. 104712, 2025, doi: http://dx.doi.org/10.1016/j.drugpo.2025.104712.
N. Gupta et al., "Best practices for hepatitis C linkage to care in pregnant and postpartum women: perspectives from the Treatment In Pregnancy for Hepatitis C Community of Practice," American journal of obstetrics and gynecology, vol. 231, no. 4, pp. 377-385, 2024, doi: http://dx.doi.org/10.1016/j.ajog.2024.06.028.
I. A. Naqid et al., "Hepatitis B and C virus infection among couples undergoing premarital screening in Iraqi Kurdistan," IJID regions, vol. 14, p. 100492, 2025, doi: http://dx.doi.org/10.1016/j.ijregi.2024.100492.
N. Posuwan et al., "Hepatitis B prevalence in an endemic area of hepatitis C virus: A population-based study implicated in hepatitis elimination in Thailand," Journal of Virus Eradication, vol. 10, no. 4, p. 100577, 2024, doi: http://dx.doi.org/10.1016/j.jve.2024.100577.
G. Hoffmann, A. Bietenbeck, R. Lichtinghagen, and F. Klawonn, "Using machine learning techniques to generate laboratory diagnostic pathways—a case study," Journal of Laboratory and Precision Medicine, vol. 3, no. 6, 2018, doi: http://dx.doi.org/10.21037/jlpm.2018.06.01.
R. Lichtinghagen, D. Pietsch, H. Bantel, M. P. Manns, K. Brand, and M. J. Bahr, "The Enhanced Liver Fibrosis (ELF) score: normal values, influence factors and proposed cut-off values," Journal of hepatology, vol. 59, no. 2, pp. 236-242, 2013, doi: http://dx.doi.org/10.1016/j.jhep.2013.03.016.
D. Chicco and G. Jurman, "An ensemble learning approach for enhanced classification of patients with hepatitis and cirrhosis," IEEE Access, vol. 9, pp. 24485-24498, 2021, doi: http://dx.doi.org/10.1109/ACCESS.2021.3057196.
G. Valente, A. L. Castellanos, L. Hausfeld, F. De Martino, and E. Formisano, "Cross-validation and permutations in MVPA: Validity of permutation strategies and power of cross-validation schemes," NeuroImage, vol. 238, p. 118145, 2021, doi: http://dx.doi.org/10.1016/j.neuroimage.2021.118145.
J. Wieczorek, C. Guerin, and T. McMahon, "K‐fold cross‐validation for complex sample surveys," Stat, vol. 11, no. 1, p. e454, 2022, doi: http://dx.doi.org/10.1002/sta4.454.
M. Rafało, "Cross validation methods: Analysis based on diagnostics of thyroid cancer metastasis," ICT Express, vol. 8, no. 2, pp. 183-188, 2022, doi: http://dx.doi.org/10.1016/j.icte.2021.05.001.
Q. H. Nguyen et al., "Influence of data splitting on performance of machine learning models in prediction of shear strength of soil," Mathematical Problems in Engineering, vol. 2021, no. 1, p. 4832864, 2021, doi: http://dx.doi.org/10.1155/2021/4832864.
M. Mandal, P. K. Singh, M. F. Ijaz, J. Shafi, and R. Sarkar, "A tri-stage wrapper-filter feature selection framework for disease classification," Sensors, vol. 21, no. 16, p. 5571, 2021, doi: http://dx.doi.org/10.3390/s21165571.
M. Abdulla and M. T. Khasawneh, "Integration of aggressive bound tightening and Mixed Integer Programming for Cost-sensitive feature selection in medical diagnosis," Expert Systems with Applications, vol. 187, p. 115902, 2022, doi: http://dx.doi.org/10.1016/j.eswa.2021.115902.
M. Ajdani and H. Ghaffary, "Improving network intrusion detection by identifying effective features based on probabilistic dependency trees and evolutionary algorithm," Cluster Computing, vol. 25, no. 5, pp. 3299-3311, 2022, doi: http://dx.doi.org/10.1007/s10586-022-03564-9.
R. Mohammed, J. Rawashdeh, and M. Abdullah, "Machine learning with oversampling and undersampling techniques: overview study and experimental results," in 2020 11th international conference on information and communication systems (ICICS), 2020: IEEE, pp. 243-248, doi: http://dx.doi.org/10.1109/ICICS49469.2020.239556.
S. Rančić, S. Radovanović, and B. Delibašić, "Investigating oversampling techniques for fair machine learning models," in International Conference on Decision Support System Technology, 2021: Springer, pp. 110-123, doi: http://dx.doi.org/10.1007/978-3-030-73976-8_9.
V. P. Torane, P. Patil, S. Wanjare, and G. Nataraj, "Prevalence of HIV, syphilis, hepatitis B, and hepatitis C in patients attending STI/RTI clinic of a tertiary care teaching hospital," Journal of the National Medical Association, vol. 116, no. 3, pp. 211-218, 2024, doi: http://dx.doi.org/10.1016/j.jnma.2024.01.001.
F. Correia et al., "Clinical outcomes after hepatitis C treatment in patients with advanced chronic liver disease," Journal of Hepatology, vol. 78, p. S1189, 2023, doi: http://dx.doi.org/10.1016/S0168-8278(23)03342-1.
T. Minami et al., "Machine learning for individualized prediction of hepatocellular carcinoma development after the eradication of hepatitis C virus with antivirals," Journal of hepatology, vol. 79, no. 4, pp. 1006-1014, 2023, doi: http://dx.doi.org/10.1016/j.jhep.2023.05.042.
K. Zachou et al., "Treatment responses and outcomes in patients with autoimmune hepatitis and concomitant features of non-alcoholic fatty liver disease," JHEP Reports, vol. 5, no. 8, p. 100778, 2023, doi: http://dx.doi.org/10.1016/j.jhepr.2023.100778.