The implementation of the Random Forest Algorithm with Resampling and Without Resampling on the Hepatitis C Disease Dataset

Authors

  • I Gede Hendrayana Institut Teknologi dan Kesehatan Bali, Indonesia
  • Ni Putu Dita Ariani Sukma Dewi Institut Teknologi dan Kesehatan Bali, Indonesia
  • Jiyestha Aji Dharma Aryasa Institut Teknologi dan Kesehatan Bali, Indonesia
  • I Made Ade Prayoga Institut Teknologi dan Kesehatan Bali, Indonesia
  • Rizki Anom Raharjo Institut Teknologi dan Kesehatan Bali, Indonesia

DOI:

https://doi.org/10.47709/cnahpc.v7i3.6089

Keywords:

Hepatitis C, Random Forest, Oversampling, Undersampling

Abstract

This study evaluates the performance of Random Forest models for Hepatitis C classification using a dataset from Kaggle, focusing on addressing class imbalance through resampling techniques. We compare three approaches: baseline Random Forest without resampling, Random Forest with SMOTE+ENN (Synthetic Minority Oversampling Technique + Edited Nearest Neighbors), and Random Forest with SMOTE+OSS (Synthetic Minority Oversampling Technique + One-Sided Selection). Results show that the baseline model achieved high accuracy (0.9837) but failed to detect minority classes (e.g., suspect Blood Donor recall=0.00). SMOTE+ENN significantly improved performance, achieving perfect classification (precision=1.00, recall=1.00) for Hepatitis, Fibrosis, and Cirrhosis, while maintaining high accuracy (0.9919) and ROC AUC (0.9999). In contrast, SMOTE+OSS showed limitations in detecting Hepatitis (recall=0.00) and yielded lower precision for Fibrosis (0.44), indicating its undersampling approach may be too aggressive. The study highlights SMOTE+ENN as the most effective method for balancing class distribution and enhancing model robustness in medical diagnostics. These findings underscore the importance of selecting appropriate resampling techniques to improve minority class detection in imbalanced datasets, with implications for developing reliable AI-based diagnostic tools for Hepatitis C.

Downloads

Download data is not yet available.

References

Ahmed, K. H., Axelsson, S., Li, Y., & Sagheer, A. M. (2025). A credit card fraud detection approach based on ensemble machine learning classifier with hybrid data sampling. Machine Learning with Applications, 20, 100675. https://doi.org/10.1016/j.mlwa.2025.100675

Bennin, K. E., Tahir, A., MacDonell, S. G., & Börstler, J. (2022). An empirical study on the effectiveness of data resampling approaches for cross?project software defect prediction. IET Software, 16(2), 185–199. https://doi.org/10.1049/sfw2.12052

Canero, F. M., Rodriguez-Galiano, V., & Aragones, D. (2024). Machine Learning and Feature Selection for soil spectroscopy. An evaluation of Random Forest wrappers to predict soil organic matter, clay, and carbonates. Heliyon, 10(9), e30228. https://doi.org/10.1016/j.heliyon.2024.e30228

Cecep Wahyu Cahyana & Akhsin Nurlayli. (2023). Analisis Performa Logistic Regression, Naïve Bayes, dan Random Forest sebagai Algoritma Pendeteksi Kanker Payudara. INSERT: Information System and Emerging Technology Journal, 4(1), 51–64. https://doi.org/10.23887/insert.v4i1.62362

Charisma, R. A., Pamungkas, S., Saputra, R. A., Ramadhan, N. G., & Adhinata, F. D. (2022). Analisis Penerapan Metode Ensembled Learning Decision Tree Pada Klasifikasi Virus Hepatitis C. Journal of Computer System and Informatics (JoSYC), 3(4), 405–409. https://doi.org/10.47065/josyc.v3i4.2064

Chen, K., Abtahi, F., Carrero, J.-J., Fernandez-Llatas, C., & Seoane, F. (2023). Process mining and data mining applications in the domain of chronic diseases: A systematic review. Artificial Intelligence in Medicine, 144, 102645. https://doi.org/10.1016/j.artmed.2023.102645

Chowdhury, M. M., Ayon, R. S., & Hossain, M. S. (2024). An investigation of machine learning algorithms and data augmentation techniques for diabetes diagnosis using class imbalanced BRFSS dataset. Healthcare Analytics, 5, 100297. https://doi.org/10.1016/j.health.2023.100297

Diniarti, F., & Romli, H. (2024). PENULARAN INFEKSI HEPATITIS B MELALUI PASANGAN SEKSUAL PADA IBU HAMIL DI KOTA BENGKULU, INDONESIA. Journal of Nursing and Public Health, Vol 12 No 2 (2024). https://jurnal.unived.ac.id/index.php/jnph/article/view/7444

Elliott, S., Flynn, E., Mathew, S., Hajarizadeh, B., Martinello, M., Wand, H., & Ward, J. (2024). Prevalence of hepatitis C virus exposure and infection among Indigenous and tribal populations: A global systematic review and meta-analysis. Public Health, 233, 65–73. https://doi.org/10.1016/j.puhe.2024.04.035

Hakim, D. K., Gernowo, R., & Nirwansyah, A. W. (2024). Flood prediction with time series data mining: Systematic review. Natural Hazards Research, 4(2), 194–220. https://doi.org/10.1016/j.nhres.2023.10.001

Iman, Q., & Wijayanto, A. W. (2021). Klasifikasi Rumah Tangga Penerima Beras Miskin (Raskin)/Beras Sejahtera (Rastra) di Provinsi Jawa Barat Tahun 2017 dengan Metode Random Forest dan Support Vector Machine. Jurnal Sistem dan Teknologi Informasi (Justin), 9(2), 178. https://doi.org/10.26418/justin.v9i2.44137

Kohsasih, K. L., & Situmorang, Z. (2022). Analisis Perbandingan Algoritma C4.5 dan Naïve Bayes Dalam Memprediksi Penyakit Cerebrovascular. Jurnal Informatika, 9(1), 13–17. https://doi.org/10.31294/inf.v9i1.11931

Kurnianingsih, Nobukawa, S., Widyawati, M. N., Pramana, C., Aji, N. B., Thohari, A. N. A., Hendrawati, D., Sato-Shimokawara, E., & Kubota, N. (2025). A Novel Ensemble XGBoost and Deep Q-Network for Pregnancy Risk Prediction on Multi-Class Imbalanced Datasets. ICT Express, S2405959525000724. https://doi.org/10.1016/j.icte.2025.05.010

Liu, P., Liu, Y., Liu, H., Xiong, L., Mei, C., & Yuan, L. (2024). A Random Forest Algorithm for Assessing Risk Factors Associated With Chronic Kidney Disease: Observational Study. Asian/Pacific Island Nursing Journal, 8, e48378. https://doi.org/10.2196/48378

Megawaty, D. A., Damayanti, D., Assubhi, Z. S., & Assuja, M. A. (2021). APLIKASI PERMAINAN SEBAGAI MEDIA PEMBELAJARAN PETA DAN BUDAYA SUMATERA UNTUK SISWA SEKOLAH DASAR. Jurnal Komputasi, 9(1). https://doi.org/10.23960/komputasi.v9i1.2779

Mehraeen, E., Janfaza, N., Shahidi, R., Afzalian, A., Varshochi, S., Jashaninejad, R., Pashaei, A., Tantuoyir, M. M., Camara, M., Paranjkhoo, P., Parmoon, Z., Elnaz, S., Salmani, R., Matini, P., Mirzapour, P., Ebrahimi, H., Moradi, A., SeyedAlinaghi, S., & Jahanfar, S. (2024). Important Risk Factors of Liver Cirrhosis in HIV and Hepatitis C Coinfected Patients: A Systematic Review. The Open AIDS Journal, 18(1), e18746136280350. https://doi.org/10.2174/0118746136280350240214064332

Mooijman, P., Catal, C., Tekinerdogan, B., Lommen, A., & Blokland, M. (2023). The effects of data balancing approaches: A case study. Applied Soft Computing, 132, 109853. https://doi.org/10.1016/j.asoc.2022.109853

Nie, S., Chen, H., Sun, X., & An, Y. (2024). Spatial Distribution Prediction of Soil Heavy Metals Based on Random Forest Model. Sustainability, 16(11), 4358. https://doi.org/10.3390/su16114358

Pourkarim, M. R. (2022). World Hepatitis Day in 2022: Challenges of Viral Hepatitis Elimination in Elongated COVID-19 Pandemic. Pathogens, 11(9), 1002. https://doi.org/10.3390/pathogens11091002

Sandag, G. A. (2020). Prediksi Rating Aplikasi App Store Menggunakan Algoritma Random Forest. CogITo Smart Journal, 6(2), 167–178. https://doi.org/10.31154/cogito.v6i2.270.167-178

Sari, L., Romadloni, A., & Listyaningrum, R. (2023). Penerapan Data Mining dalam Analisis Prediksi Kanker Paru Menggunakan Algoritma Random Forest. Infotekmesin, 14(1), 155–162. https://doi.org/10.35970/infotekmesin.v14i1.1751

Schröer, C., Kruse, F., & Gómez, J. M. (2021). A Systematic Literature Review on Applying CRISP-DM Process Model. Procedia Computer Science, 181, 526–534. https://doi.org/10.1016/j.procs.2021.01.199

Schwarz, T., Horváth, I., Fenz, L., Schmutterer, I., Rosian-Schikuta, I., & Mårdh, O. (2022). Interventions to increase linkage to care and adherence to treatment for hepatitis C among people who inject drugs: A systematic review and practical considerations from an expert panel consultation. International Journal of Drug Policy, 102, 103588. https://doi.org/10.1016/j.drugpo.2022.103588

Shamshuzzoha, Md., Audry, T. T. B., Alam, Md. J., Bhuiyan, Z. A., Motaharul Islam, M., & Hassan, M. M. (2025). A novel framework for seasonal affective disorder detection: Comprehensive machine learning analysis using multimodal social media data and SMOTE. Acta Psychologica, 256, 105005. https://doi.org/10.1016/j.actpsy.2025.105005

Sumwiza, K., Twizere, C., Rushingabigwi, G., Bakunzibake, P., & Bamurigire, P. (2023). Enhanced cardiovascular disease prediction model using random forest algorithm. Informatics in Medicine Unlocked, 41, 101316. https://doi.org/10.1016/j.imu.2023.101316

Sutradhar, A., Akter, S., Shamrat, F. M. J. M., Ghosh, P., Zhou, X., Idris, M. Y. I. B., Ahmed, K., & Moni, M. A. (2024). Advancing thyroid care: An accurate trustworthy diagnostics system with interpretable AI and hybrid machine learning techniques. Heliyon, 10(17), e36556. https://doi.org/10.1016/j.heliyon.2024.e36556

Wang, A. X., Le, V.-T., Trung, H. N., & Nguyen, B. P. (2025). Addressing imbalance in health data: Synthetic minority oversampling using deep learning. Computers in Biology and Medicine, 188, 109830. https://doi.org/10.1016/j.compbiomed.2025.109830

Zhang, Y., Tapa, J., Johnson, C. C., Phillips, T. R., Fairley, C. K., Ameyan, W., Mello, M. B., Chow, E. P. F., Chidarikire, T., & Ong, J. J. (2025). HIV, hepatitis, and syphilis self-testing among adolescents and young adults: A systematic review and meta-analysis. Journal of Infection and Public Health, 18(6), 102764. https://doi.org/10.1016/j.jiph.2025.102764

Downloads

Published

2025-07-05

How to Cite

Hendrayana, I. G., Dewi, N. P. D. A. S., Aryasa, J. A. D., Prayoga, I. M. A., & Raharjo, R. A. (2025). The implementation of the Random Forest Algorithm with Resampling and Without Resampling on the Hepatitis C Disease Dataset. Journal of Computer Networks, Architecture and High Performance Computing, 7(3), 614–628. https://doi.org/10.47709/cnahpc.v7i3.6089

Similar Articles

1 2 3 > >> 

You may also start an advanced similarity search for this article.