Comparison of SVM and Random Forest with RFE for Diabetes Prediction
DOI:
https://doi.org/10.55537/cosie.v5i3.1838Keywords:
Body Mass Index, Diabetes Mellitus, Random Forest, Recursive Feature Elimination, Support Vector MachineAbstract
Individuals with a high Body Mass Index (BMI) are among the most vulnerable groups to developing Type 2 Diabetes Mellitus due to insulin resistance caused by visceral fat accumulation. However, most existing machine learning models have been developed using general population data without considering the specific characteristics of high-risk individuals. This study aims to analyze and compare the performance of Support Vector Machine (SVM) and Random Forest (RF) algorithms in predicting diabetes risk among individuals with a BMI ≥ 25, while also evaluating the impact of Recursive Feature Elimination (RFE) on improving model performance. The Pima Indians Diabetes Dataset from the UCI Machine Learning Repository was used as the data source. After filtering records based on BMI, a total of 662 instances were included in the analysis. The preprocessing stage consisted of median imputation for invalid values, feature normalization using StandardScaler, and feature selection using RFE to select four features for each model. The dataset was divided into training and testing sets using a 70:30 ratio. Model performance was evaluated using accuracy, precision, recall, F1-score, and confusion matrix metrics. The results indicate that the RF-RFE model achieved the best performance, with an accuracy of 78%, a recall of 68% for the diabetes class, and an F1-score of 72%, representing a significant improvement over the RF model without RFE (74% accuracy and 60% recall). The combination of Random Forest and Recursive Feature Elimination proved to be the most effective approach for reducing false negatives, which is particularly important in the context of early clinical detection of diabetes
Downloads
References
[1] A. Firgiawan, F. N. Andriyansah, R. N. Ramadhan, S. Sumanto, and I. Budiawan, "Analisis Perbandingan Algoritma Random Forest, SVM, dan Logistic Regression untuk Menentukan Model Terbaik Prediksi Penyakit Diabetes," Jurnal Teknik Informatika dan Teknologi Informasi, vol. 5, no. 3, pp. 113–130, des. 2025, doi: 10.55606/jutiti.v5I3.6213.
[2] I. Dzaki Rif, Y. N. Hasneli, and G. Indriati, “Gambaran Komplikasi Diabetes Mellitus pada penderita Diabetes Mellitus,” Jurnal Keperawatan Profesional (JKP), vol. 11,no.1,pp.1-18, 2023, doi: 10.33650/jkp.v11i1.5540
[3] C. Z. V. Junus, T. Tarno, and P. Kartikasari, “Klasifikasi menggunakan Metode Support Vector Machine dan Random Forest untuk deteksi awal risiko Diabetes Melitus,” Jurnal Gaussian, vol. 11, no. 3, pp. 386–396, jan. 2023, doi: 10.14710/j.gauss.11.3.386-396.
[4] N. A. Maori and N. Azizah, “Jurnal Informatika dan rekayasa perangkat lunak penerapan Recursive Feature Elimination (RFE) pada Tree-Based Classifier untuk identifikasi risiko Diabetes,” vol. 6, no. 2, pp. 465–471, sep, 2024, doi: 10.36499/jinrpl.v6i2.11283
[5] N. L. Sabili, R. Fajri, and M. Umbara, “Klasifikasi penyakit Diabetes menggunakan Algoritma Categorical Bossting dengan faktor risiko Diabetes,” Jurnal Mahasiswa Teknik Informatika (JATI), vol.8,no.6,pp.11391-11398,nov. 2024. doi: 10.36040/jati.v8I6.11447.
[6] N. Sulistianingsih, S. A. A. Yusuf, A. Anggreni, F. N. Sari, M. P. Juniarta, and J. Permatasari, “Analisis pengaruh Recursive Feature Elimination terhadap kinerja model prediksi dini Diabetes Mellitus di rs pku muhammadiyah Bima,” JTIM : Jurnal Teknologi Informasi dan Multimedia, vol. 7, no. 3, pp. 548–560, jul. 2025, doi: 10.35746/jtim.v7I3.774.
[7] R. K. Hapsari, A. H. Salim, L. F. Oktavian, and A. R. Fitra, “Classification of Diabetes Mellitus using Decision Trees,” Jurnal Eltikom : Jurnal Teknik Elektro, Teknologi Informasi dan Komputer, vol. 9, no. 2, pp. 107–114, dec. 2025, doi: 10.31961/eltikom.v9I2.1461.
[8] M. Buyukkececi and M. C. Okur, “A Comprehensive review of Feature Selection and Feature Selection stability in Machine Learning,” Gazi University Journal Of Science, vol.36,no.4,pp.1506-1520,dec.2023, doi: 10.35378/gujs.993763.
[9] A. Citra Mawani, Rusdah, L. Li Hin, and D. Anubhakti, “Deteksi dini gejala awal penyakit Diabetes menggunakan Algoritma Random Forest,” Idealis:Indonesia Journal Information System, vol.6,no.2,jul. 2023,doi: 10.36080/idealis.v6i2.3018
[10] K. Syaban and Mardiawati, “Evaluasi model Ensemble Learning pada identifikasi faktor risiko Diabetes Mellitus,” Jurnal Teknologi dan Informasi, vol. 15, no. 2, pp. 121–130, sep. 2025, doi: 10.34010/jati.v15I2.16238.
[11] L. S. Gunawan and C. Dewi, "Optimalisasi model deteksi dini Diabetes dengan teknik Features Selection," JIPI (Jurnal Ilmiah Penelitian dan Pembelajaran Informatika), vol. 10, no. 4, pp. 4312–4323, dec. 2025, doi: 10.29100/jipi.v10I4.7006.
[12] F. Refindha, A. Harianto, Z. Alawi, and I. A. Sa'ida, "Pengaruh komposisi split Data pada akurasi klasifikasi penderita Diabetes menggunakan Algoritma Machine Learning," Jurnal Sistem Informasi dan Informatika (SIMIKA), vol. 8, no. 1, jan. 2025, doi: 10.47080/simika.v8i1.3663
[13] Pratama, A. M. Siregar, S. A. P. Lestari, and S. Faisal, "Implementation of Diabetes prediction model using Random Forest Algorithm, K-Nearest Neighbor, and Logistic Regression," Jurnal Teknik Informatika (JUTIF), vol. 5, no. 4, pp. 1165–1174, sep. 2024, doi: 10.52436/1.jutif.2024.5.4.2593
[14] Y. Insani, M. S. P. Sipayung, and M. F. Naibaho, “Prediksi Diabetes berbasis Decision Tree dengan menggunakan Dataset Pima Indians Diabetes article info,” JDMIS: Journal of Data Mining and Information System, vol. 4, no. 1, pp. 40–45, 2026, doi: 10.54259/jdmis.v4I1.7107
[15] A. Setiawan, D. Mulia Hutabalian, R. Irnanda, H. Fredi, “Evaluasi perbandingan kinerja model Machine Learning untuk prediksi Diabetes: Studi kasus Xgboost, Random Forest, dan SVM”, vol 12,no.2,dec. 2024, doi: 10.56689/infokom.v12i2.2350
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Anggi Vandryan, Putry Wahyu Setyaningsih

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


