Perbandingan Kinerja Support Vector Machine (SVM) dan K-Nearest Neighbor (KNN) dalam Klasifikasi Stunting
Abstract
The evaluation and comparison of the performance of the K-Nearest Neighbor (KNN) and Support Vector Machine (SVM) algorithms are the primary objectives of this study, particularly in classifying stunting conditions among toddlers. The dataset in this study consists of primary data obtained from the Patianrowo Community Health Center in Nganjuk Regency, with an initial total of 1,102 data points on children aged 0–60 months. After data cleaning, missing values were removed, reducing the dataset to 1,067 data points. Subsequently, the data was divided into 853 training data points and 214 test data points using the train-test split method with an 80:20 ratio. The preprocessing stage included removing missing data, transforming labels into numerical form, and normalizing the data using the min-max scaling method to standardize the feature value ranges. To evaluate the model, a confusion matrix was used with the metrics of accuracy, precision, recall, and F1-score. The test results showed that the KNN algorithm with K=5 produced an accuracy of 96.72%, precision of 91.25%, recall of 67.73%, and an F1-score of 77.52%. Meanwhile, the polynomial SVM algorithm demonstrated improved performance with an accuracy of 97.47%, precision of 90.82%, recall of 78.96%, and an F1-score of 82.55%. Based on these results, SVM is considered more effective in classifying stunting in the dataset used.
Downloads
References
A’la, F. R., Homaidi, A., & Lidimillah, L. F. (2025). Implementasi Algoritma K-Nearest Neighbor (KNN) Untuk Klasifikasi Status Gizi Balita. ProsidingSeminar Nasional KARSA NUSANTARA, 2, 18-23.
Alamin, P. B., & Aryani, D. (2025). Perbandingan Algoritma Knn, Naive Bayes Dan Svm Untuk Klasifikasistatus Stunting Anak Balita Di Puskesmas Sepatan. Jurnal Ilmiah Teknik dan Ilmu Komputer, 4(4), 360-369, DOI: 10.55123.
Banurea, M., Hutagaol, D. B., & Sihombing, O. (2023). Klasifikasi Penyakit Stunting Dengan Menggunakan Algoritma Support Vector Machine Dan Random Forest. Jurnal TEKINKOM, 6(2), 540-549, DOI : 10.37600/tekinkom.v6i2.927.
Candra, A., Erkamim, M., Muharrom, M., & Prayitno, E. (2024). Klasifikasi Stunting Pada Balita Berdasarkan Status Gizi Menggunakan Pendekatan Support Vector Machine (SVM). Jurnal Ilmiah FIFO, 16(2), 171-181, DOI: http://dx.doi.org/10.22441/fifo.2024.v16i2.007.
Daniswara, A. A., & Nuryana, I. D. (2023). Data Preprocessing Pola Pada Penilaian Mahasiswa Program Profesi Guru. Journal of Informatics and Computer Science, 5(1), 97-100, DOI: https://doi.org/10.26740/jinacs.v5n01.p97-100.
Drajana, I. C., & Bode, A. (2022). Prediksi Status Penderita Stunting Pada Balita Provinsi Gorontalo Menggunakan K-Nearest Neighbor Berbasis Seleksi Fitur Chi Square. Jurnal Nasional Komputasi dan Teknologi Informasi, 5(2), 309-316, DOI:10.32672/jnkti.v5i2.4205.
Dwinanto, R. W., Sandi A, A. S., & Ardianto, R. (2024). Klasifikasi Berisiko Stunting pada Balita: Perbandingan K-Nearest Neighbor, Naïve Bayes, Support Vector Machine. Jurnal Manajemen Informatika & Komputersisasi Akuntansi, 8(2), 264-273, DOI: https://doi.org/10.46880/jmika.Vol8No2.pp264-273.
Hardiani, T., & Putri, R. N. (2021). Implementasi Metode Naive Bayes Classifier Untuk Klasifikasi Stunting. Digital Transformation Technology (Digitech), 4(1), 54-59, DOI: https://doi.org/10.47709/digitech.v4i1.4481.
Hidayat, T., Sembiring, I., Purnomo, H. D., & Iriani, A. (2025). Prediksi Prevalensi Stunting Balita dengan Pendekatan Algoritma Support Vector Machine dan Synthetic Minority Oversampling Technique (SMOTE). Jurnal_Pekommas, 10(1), 9-16, doi: 10.56873/jpkm.v9i1.5389.
Jalil, A., Homaidi, A., & Fatah, Z. (2024). Implementasi Algoritma Support Vector Machine Untuk Klasifikasi Status Stunting Pada Balita. G-Tech : Jurnal Teknologi Terapan, 8(3), 2070-2079, DOI: https://doi.org/10.33379/gtech.v8i3.4811.
Junaidi, A., Nurdin, & Meiyanti, R. (2025). Klasifikasi Status Anak Stunting Menggunakan Metode Knearest Neighbor. RABIT : Jurnal Teknologi dan Sistem Informasi Univrab, 10(2), 1435-1445, DOI : https://doi.org/10.36341/rabit.v10i2.6536.
Karim, A. A., Prasetyo, M. A., & Saputro, M. R. (2023). Perbandingan Metode Random Forest, K-Nearest Neighbor, dan SVM Dalam Prediksi Akurasi Pertandingan Liga Italia. Prosiding Seminar Nasional Teknologi Dan Sains, 2(1), 377-382, DOI: https://doi.org/10.29407/stains.v2i1.2877.
Lonang, S., & Normawati, D. (2022). Klasifikasi Status Stunting Pada Balita Menggunakan K-Nearest Neighbor Dengan Feature Selection Backward Elimination. Jurnal Media Informatika Budidarma, 6(1), 49-59, DOI: https://doi.org/10.30865/mib.v6i1.3312.
Muntiari, N. R., Hanif, K. H., Asma, & Herawati, L. (2025). Deteksi Stanting Pada Balita Dengan Menggunakan Perbandingan Algoritma Machine Learning. Jurnal Khatulistiwa Informatika, 13(1), 17-23, DOI: https://doi.org/10.31294/jki.v13i1.25132.
Nadroh, A., Triwibowo, D. N., & Sumantri, R. B. (2024). Klasifikasi Status Gizi Balita Menggunakan Algoritma Support Vector Machine Dengan Optimasi Grid Search Cross-Validation. METHOMIKA: Jurnal Manajemen Informatika & Komputerisasi Akuntansi, 8(2), 250-257, DOI: https://doi.org/10.46880/jmika.Vol8No2.pp250-257.
Oktafian, R., Hermawan, A., & Avianto, D. (2023). Pengaruh Komposisi Split Data Terhadap Performa Klasifikasi Penyakit Kanker Payudara Menggunakan Algoritma Machine Learning. Jurnali Sainsi dan iInformatika, 9(1), 19-28, DOI: 10.34128/jsi.v9i1.622.
Rahmawati, G., Sanmas, S. A., Nudyawati, E., & Syaharani, N. D. (2024). Studi Perbandingan Performa: Prediksi Status Stunting Pada Anak Berdasarkan Data Antropometri Menggunakan Algoritma Support Vector Machine (SVM) dan K-Nearest Neighbors (KNN). Prosiding Seminar Nasional Sains Data, 4(1), 782-790, DOI:10.33005/senada.v4i1.330.
Sahamony, N. F., Terttiaavini, & Rianto, H. (2024). Analisis Perbandingan Kinerja Model Machine Learning untuk Memprediksi Risiko Stunting pada Pertumbuhan Anak. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 4(2), 413-422, DOI: https://doi.org/10.57152/malcom.v4i2.1210.
Saleh, H., Faisal, M., & Musa, R. I. (2019). klasifikasi status gizi balita menggunakan metode k-nearest neighbor. jurnal sistem informasi dan teknik komputer, 4(2), 120-126, DOI: https://doi.org/10.51876/simtek.v4i2.60.
Sulaksono, J., Pamungkas, D. P., & Widodo, D. W. (2026). Analisis Perbandingan Model Machine Learning untuk Prediksi Penyakit Jantung. Prosiding Seminar Nasional Teknologi Dan Sains, 5(1), 707-712, DOI: https://doi.org/10.29407/b4yzdb65.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Perbandingan Kinerja Support Vector Machine (SVM) dan K-Nearest Neighbor (KNN) dalam Klasifikasi Stunting
Pages: 2404-2412
Copyright (c) 2026 Salma Fathiyatur Rizky Munir, Yisti Vita Via, Eka Prakarsa Mandyartha

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).













