Analisis Akurasi Algoritma K-Nearest Neighbor Untuk Diagnosis Penyakit Jantung Pada Lansia
Main Article Content
Abstract
Penyakit jantung adalah salah satu penyebab utama kematian di dunia, terutama pada populasi lansia, yang sering kali sulit dideteksi pada tahap awal karena gejala yang tidak spesifik. Oleh karena itu, diperlukan metode diagnosis yang lebih cepat dan efisien, seperti penerapan algoritma pembelajaran mesin. Penelitian ini bertujuan untuk mengevaluasi akurasi algoritma K-Nearest Neighbor (KNN) dalam mendiagnosis penyakit jantung pada lansia, dengan menggunakan dataset yang diperoleh dari Kaggle dan terdiri dari 918 data pasien. Data tersebut disaring untuk usia lansia (60 tahun ke atas), menghasilkan 253 data yang digunakan dalam klasifikasi. Empat nilai k (3, 5, 7, dan 9) diuji untuk menentukan nilai k terbaik dalam mengklasifikasikan penyakit jantung. Hasil evaluasi menunjukkan bahwa model dengan k = 9 memiliki performa terbaik dengan nilai recall tertinggi (0.93) dan F1-Score sebesar 0.81, meskipun dengan akurasi yang sedikit lebih rendah (0.68). K = 5 memberikan keseimbangan terbaik antara precision (0.72) dan recall (0.85), dengan F1-Score 0.78. Berdasarkan hasil ini, K = 9 lebih efektif untuk aplikasi medis yang mengutamakan deteksi lebih banyak kasus positif, meskipun mengorbankan sedikit precision. Penelitian ini dapat memberikan kontribusi untuk pengembangan sistem diagnosis penyakit jantung yang lebih cepat, efisien, dan akurat pada lansia, dengan harapan dapat meningkatkan deteksi dini penyakit jantung.
Article Details

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish their manuscripts through the Journal of Information Systems and Computer Science agree to the following:
- Copyright to the manuscripts of scientific papers in this Journal is held by the author.
- The author surrenders the rights when first publishing the manuscript of his scientific work and simultaneously the author grants permission / license by referring to the Creative Commons Attribution-ShareAlike 4.0 International License to other parties to distribute his scientific work while still giving credit to the author and the Journal of Information Systems and Computer Science as the first publication medium for the work.
- Matters relating to the non-exclusivity of the distribution of the Journal that publishes the author's scientific work can be agreed separately (for example: requests to place the work in the library of an institution or publish it as a book) with the author as one of the parties to the agreement and with credit to sJournal of Information Systems and Computer Science as the first publication medium for the work in question.
- Authors can and are expected to publish their work online (e.g. in a Repository or on their Organization's/Institution's website) before and during the manuscript submission process, as such efforts can increase citation exchange earlier and with a wider scope.