JURNAL ELEKTRO
Vol 19 No 1 (2026): Jurnal Elektro : April 2026

Evaluation Of The C4.5 Decision Tree and Random Forest Classification Algorithms in Predicting Diabetes

Krisnanda, Caecar Mikha (Unknown)
Usmanto, Kristiawan Dwi (Unknown)
Kristanto, Jonathan Jason (Unknown)



Article Info

Publish Date
28 Apr 2026

Abstract

This study investigates diabetes prediction as a binary classification task using the C4.5 Decision Tree and Random Forest algorithms on the Pima Indians Diabetes dataset. The objective of this study is to compare the performance of both algorithms under three reported experimental settings: without data balancing, with data balancing, and with hyperparameter tuning without balancing. The dataset consists of 768 records, including 500 non-diabetes cases and 268 diabetes cases. The preprocessing stage included data cleaning, Box-Cox transformation, min-max normalization, feature selection, and data splitting into 80% training data and 20% test data. Model performance was evaluated using accuracy, precision, recall, and F1-score through 3-fold, 5-fold, and 9-fold cross validation. The results show that Random Forest consistently outperformed the C4.5 Decision Tree across all reported settings. Under the non-balancing condition, Random Forest achieved the highest accuracy of 77.82%, while C4.5 achieved 69.65%. After applying data balancing, the performance of both models improved, with Random Forest achieving the best overall reported accuracy of 84.19%, compared with 75.68% for C4.5. Under hyperparameter tuning without balancing, Random Forest achieved 78.18%, while C4.5 achieved 74.18%. These findings indicate that Random Forest is more robust and effective than the C4.5 Decision Tree for diabetes prediction, and that data balancing contributes more significantly to performance improvement than hyperparameter tuning alone. 

Copyrights © 2026






Journal Info

Abbrev

jte

Publisher

Subject

Computer Science & IT Control & Systems Engineering Electrical & Electronics Engineering

Description

Jurnal Elektro diterbitkan oleh Program Studi Teknik Elektro, Fakultas Teknik Unika Atma Jaya Jakarta. Jurnal Elektro terbuka untuk penelitian dalam bidang-bidang teknik elektro seperti elektro arus kuat, elektronika, sistem kontrol atau kendali, telekomunikasi, komputer dan berbagai sub topik yang ...