Perbandingan Algoritma Random Forest dan Support Vector Machine untuk Klasifikasi Penyakit Ginjal Kronis Berbasis Machine Learning
DOI:
https://doi.org/10.59061/jentik.v3i4.1613Keywords:
Chronic Kidney Disease, Classification, Machine Learning, Random Forest, Support Vector MachineAbstract
Chronic kidney disease (CKD) is a progressive renal disorder that affects approximately 10–15% of the global population and represents a significant contributor to morbidity and mortality worldwide. Early and accurate diagnosis of CKD is essential to enable timely clinical intervention and prevent progression to end-stage renal disease. This study presents a comparative analysis of two machine learning algorithms, namely Random Forest (RF) and Support Vector Machine (SVM), for the classification of CKD using clinical and laboratory data. The dataset was obtained from the UCI Machine Learning Repository, comprising 400 instances with 24 features and 1 binary target variable. Data preprocessing steps included missing value imputation, categorical encoding, outlier detection using the Interquartile Range method, and feature normalization. Both algorithms were implemented using their default hyperparameters to ensure a fair comparison without optimization bias. The dataset was split into 80% training (320 samples) and 20% testing (80 samples) using stratified sampling. Model performance was evaluated using five metrics: accuracy, precision, recall, F1-score, and area under the receiver operating characteristic curve (AUC-ROC). The experimental results demonstrated that Random Forest achieved perfect classification performance with 100% across all evaluation metrics, while SVM attained 98.75% accuracy, 100% precision, 97.87% recall, 98.92% F1-score, and 100% AUC-ROC. The superior performance of Random Forest is attributed to its ensemble learning mechanism that aggregates predictions from multiple decision trees, effectively reducing overfitting and enhancing model robustness. These findings suggest that Random Forest is a highly reliable algorithm for CKD classification and holds significant potential as a clinical decision support tool for early disease detection.
References
Alsekait, D. M., Saleh, H., Gabralla, L. A., Alnowaiser, K., El-Sappagh, S., Sahal, R., & El-Rashidy, N. (2023). Toward comprehensive chronic kidney disease prediction based on ensemble deep learning models. Applied Sciences.
Amini, M. M., Mazdadi, M. I., & Faisal, M. R. (2024). Implementation of extreme learning machine method with particle swarm optimization to classify chronic kidney disease. 6(4), 499-508.
Anam, M. K., & Wibowo, M. I. (2025). Stacking ensemble machine learning model for early. 10(2), 1244-1252.
Ananda, D., Pertiwi, A., Setyorini, P. R., Muslim, M. A., & Sugiharti, E. (2023). Implementation of discretisation and correlation-based feature selection to optimize support vector machine in diagnosis of chronic kidney disease. 5(2), 201-209. https://doi.org/10.12928/biste.v5i2.7548
Ariyanti, L. (2023). C4.5 algorithm optimization and support vector machine by applying particle swarm optimization for chronic kidney disease diagnosis. 1(1), 18-26. https://doi.org/10.15294/rji.v1i1.65196
Bai, Q., Su, C., Tang, W., & Li, Y. (2022). Machine learning to predict end stage kidney disease in chronic kidney disease. Scientific Reports, 1-8. https://doi.org/10.1038/s41598-022-12316-z
Debal, D. A., & Sitote, T. M. (2022). Chronic kidney disease prediction using machine learning techniques. Journal of Big Data. https://doi.org/10.1186/s40537-022-00657-5
Dev, S., Wang, H., Nwosu, C. S., Jain, N., Veeravalli, B., & John, D. (2022). A predictive analytics approach for stroke prediction using machine learning and neural networks. Healthcare Analytics, 2, 100032. https://doi.org/10.1016/j.health.2022.100032
Fauzan, F. J., Putri, C. M., & Laura, P. (2024). Performance comparison of classification algorithms for chronic kidney disease prediction. 1, 68-74.
Ghosh, S. K., & Khandoker, A. H. (2024). Investigation on explainable machine learning models to predict chronic kidney diseases. Scientific Reports, 1-15. https://doi.org/10.1038/s41598-024-54375-4
Gomiasti, F. S., Warto, W., Kartikadarma, E., Gondohanindijo, J., & Setiadi, D. R. I. M. (2024). Enhancing lung cancer classification effectiveness through hyperparameter-tuned support vector machine. Journal of Computing Theories and Applications, 1(4), 396-406. https://doi.org/10.62411/jcta.10106
Guido, R., Ferrisi, S., & Lofaro, D. (2024). An overview on the advancements of support vector machine models in healthcare applications: A review.
Hamdani, H., Hatta, H. R., Puspitasari, N., & Septiarini, A. (2022). Dengue classification method using support vector machines and cross-validation techniques. 11(3), 1119-1129. https://doi.org/10.11591/ijai.v11.i3.pp1119-1129
Hidayat, R., Mahdiana, D., & Fergina, A. (2024). Comparative analysis of logistic regression, SVM, XGBoost, and random forest algorithms for diabetes classification. 7(1), 281-291. https://doi.org/10.32493/jtsi.v7i1.38258
Iftikhar, H., Khan, M., Khan, Z., Khan, F., & Alshanbari, H. M. (2023). A comparative analysis of machine learning models: A case study in predicting chronic kidney disease. 1-13.
Khalid, H., Khan, A., Khan, M. Z., Mehmood, G., & Qureshi, M. S. (2023). Machine learning hybrid model for the prediction of chronic kidney disease. 2023. https://doi.org/10.1155/2023/9266889
Kusumaningrum, R., Sugiharto, A., & Wibawa, H. A. (2024). Detection of chronic kidney disease using binary whale optimization algorithm. 13(2), 1511-1518. https://doi.org/10.11591/ijai.v13.i2.pp1511-1518
Mahajan, P., Uddin, S., & Hajati, F. (2023). Ensemble learning for disease prediction: A review.
Mienye, I. D., Sun, Y., & Member, S. (2022). A survey of ensemble learning: Concepts, algorithms, applications, and prospects. IEEE Access, 10, 99129-99149. https://doi.org/10.1109/ACCESS.2022.3207287
Noviandy, T. R., Idroes, G. M., Syukri, M., & Idroes, R. (2024). Interpretable machine learning for chronic kidney disease diagnosis: A Gaussian processes approach. 2(1). https://doi.org/10.60084/ijcr.v2i1.204
Nugroho, K. S., Sukmadewa, A. Y., Vidianto, A., & Mahmudy, W. F. (2022). Effective predictive modelling for coronary artery diseases using support vector machine. 11(1), 345-355. https://doi.org/10.11591/ijai.v11.i1.pp345-355
Oktafiani, R., Hermawan, A., & Avianto, D. (2026). Max depth impact on heart disease classification: Decision tree and random forest. 5(158), 160-168.
Purwaningsih, E., Informasi, S., Bina, U., & Informatika, S. (2022). Improving the performance of support vector machine with forward selection for prediction of. 8(1), 18-24. https://doi.org/10.33480/jitk.v8i1.3327
Rahmah, A., Sepriyanti, N., & Zikri, M. H. (2023). Implementation of support vector machine and random forest for heart failure disease classification. 1, 34-40.
Review, C. (2022). Machine-learning-based disease diagnosis: A. 1-30.
Saif, D., Sarhan, A. M., & Elshennawy, N. M. (2024a). Deep-kidney: An effective deep learning framework for chronic kidney disease prediction. Health Information Science and Systems, 12(1), 1-22. https://doi.org/10.1007/s13755-023-00261-8
Saif, D., Sarhan, A. M., & Elshennawy, N. M. (2024b). Early prediction of chronic kidney disease based on ensemble of deep learning models and optimizers. Journal of Electrical Systems and Information Technology. https://doi.org/10.1186/s43067-024-00142-4
Salman, H. A., Kalakech, A., & Steiti, A. (2024). Random forest algorithm overview. Babylonian Journal of Machine Learning, 2024, 69-79. https://doi.org/10.58496/BJML/2024/007
Sangaji, A. H., Pamungkas, Y., Risqiwati, D., Mardi, S., Nugroho, S., & Dharma, A. (2022). Rule-based disease classification using text mining on symptoms extraction from electronic medical records in Indonesian. 4(1), 69-80.
Saputra, A. G. (2024). Hyperparameter tuning decision tree and recursive feature elimination technique for improved chronic kidney disease classification. 11(3), 821-830. https://doi.org/10.15294/sji.v11i3.12990
Singh, V., & Asari, V. K. (2022). A deep neural network for early detection and prediction of chronic kidney disease. 1-22.
Suganthan, M. A. G. M. H. A. K. M. M. T. P. N. (2026). Ensemble deep learning: A review.
Swain, D., Mehta, U., Bhatt, A., Patel, H., Patel, K., Mehta, D., Acharya, B., Gerogiannis, V. C., Kanavos, A., & Manika, S. (2023). A robust chronic kidney disease classifier using machine learning. 1-13.
Syarif, A., Riana, O. D., Shofiana, D. A., & Junaidi, A. (2023). A comprehensive comparative study of machine learning methods for chronic kidney disease classification: Decision tree, support vector machine, and naive Bayes. 14(10), 597-603.
Wijaya, G. (2024). Improvement of kernel SVM to enhance accuracy in chronic kidney disease. 8(1), 136-144.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Jurnal Elektronika dan Teknik Informatika Terapan ( JENTIK )

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.






