Penerapan Algoritma k-Means dalam Pengelompokan Data Pasien Diabetes
Main Article Content
Abstract
Diabetes mellitus is a chronic metabolic disease with an increasing prevalence and the potential to cause serious complications if not properly managed. One of the challenges in diabetes management is effectively grouping patients based on clinical characteristics and health risk levels. This study aims to apply the K-Means algorithm as an unsupervised learning method to cluster diabetes patient data in order to identify patterns and similarities in patient risk profiles. The dataset used consists of training data (Training.csv) and testing data (Testing.csv) with numerical attributes including Pregnancies, Glucose, BloodPressure, SkinThickness, Insulin, BMI, Diabetes Pedigree Function, and Age. The research stages include data loading, data preprocessing, implementation of the K-Means algorithm, application of the model to testing data, and evaluation of the clustering results. Clustering quality was evaluated using the Davies-Bouldin Index and Average Within Centroid Distance to measure cluster compactness and separation. The results show that the K-Means algorithm is capable of forming relatively homogeneous clusters of diabetes patients with good inter-cluster separation, as indicated by a Davies-Bouldin Index value of −0.727. These findings suggest that the K-Means method is effective for clustering diabetes patients based on clinical characteristics and can provide valuable insights to support risk analysis and the development of data-driven clinical decision support systems.
Article Details

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
References
M. Setiono and H. Oktafiandi, “Sistem Absensi Guru Dan Siswa Dengan Kode QR Berbasis Web ( Studi Kasus SMK Muhammadiyah Purwodadi Purworejo ),” J. Ekon. Dan Tek. Inform., vol. 10, no. 2, pp. 1–7, 2022.
Y. T. Bilqis, H. Herdianto, and H. Hendry, “Sistem Absensi Karyawan Berbasis Web Menggunakan Metode QR Code pada Kantor Desa Cinta Raja,” J. Minfo Polgan, vol. 14, no. 1, pp. 86–93, 2025, doi: 10.33395/jmp.v14i1.14625.
Elmawati, V. Wedyawati, Nofriadiman, and M. D. R. Ardy, “Perancangan Sistem Informasi Absensi Siswa menggunakan QR Code berbasis Web pada SMK Pratama Padang,” J. Sains dan Teknol. J. Keilmuan dan Apl. Teknol. Ind., vol. 24, no. 2, pp. 301–309, 2024, doi: 10.36275/zkekg643.
M. Ikhsan and H. Helmina, “Design of a Web-Based Lecturer Attendance Information System Using QR Codes at Muhammadiyah University of Jambi,” Brill. Res. Artif. Intell., vol. 4, no. 1, pp. 94–99, 2024, doi: 10.47709/brilliance.v4i1.3838.
M. Himyar, M. F. Mulya, and J. H. Siringo Ringo, “Aplikasi Absensi Karyawan Berbasis Android Dengan Penerapan QR Code Disertai Foto Diri Dan Lokasi Sebagai Validasi Studi Kasus: PT.Selindo Alpha,” J. SISKOM-KB (Sistem Komput. dan Kecerdasan Buatan), vol. 4, no. 2, pp. 64–74, 2021, doi: 10.47970/siskom-kb.v4i2.186.
Sayuti Malik, L. Lukman, Eneng Isti Alpiyanti, and Wasis Haryono, “Perancangan Sistem Informasi Absensi QR Code dengan Metode Prototype Pada Smp Raudlatul Hikmah,” J. Innov. Educ., vol. 3, no. 2, pp. 357–367, 2025, doi: 10.59841/inoved.v3i2.2958.
Sutisna, F. Akbarulloh, A. A. Wahyudi, S. F. Banase, and N. I. Simarmata, “Rancang Bangun Aplikasi Absensi Karyawan menggunakan QR-Code Berbasis Web pada SMA Candra Naya,” AJAD J. Pengabdi. Kpd. Masy., vol. 4, no. 1, pp. 130–135, 2024, doi: 10.59431/ajad.v4i1.286.
I. Nuralif and M. Fachrie, “Development of A QR Code-Based Attendance System for Factory Employees,” Int. J. Softw. Eng. Comput. Sci., vol. 3, no. 3, pp. 281–286, 2023, doi: 10.35870/ijsecs.v3i3.1774.
N. Renaningtias and D. Apriliani, “Application of the Prototype Method in the Development of a Student Final Project Information System,” J. Rekursif, vol. 9, no. 1, 2021, [Online]. Available: http://ejournal.unib.ac.id/index.php/rekursif/92
M. Alda, M. Juarsyah, A. Nugraha, and L. R. Alfachry, “Aplikasi Absensi Mahasiswa Kerja Praktik Menggunakan QR Code Berbasis Android,” J. Manaj. Inform., vol. 14, no. 1, pp. 27–41, 2024, doi: 10.34010/jamika.v14i1.11775.
P. Kustanto, R. Bram Khalil, and A. Noe’man, “Penerapan Metode Prototype dalam Perancangan Media Pembelajaran Interaktif,” J. Students‘ Res. Comput. Sci., vol. 5, no. 1, pp. 83–94, 2024, doi: 10.31599/6x0dfz47.
A. Fadilah, M. Yahya, and E. S. Rahman, “Pengembangan Sistem Absensi Qr Code Berbasis Web Untuk Siswa Jurusan Teknik Komputer dan Jaringan SMK Negeri 4 Makassar,” JIMUJurnal Ilm. Multidisipliner, vol. 2, no. 04, pp. 1060–1073, 2024, doi: 10.70294/jimu.v2i04.487.
A. Wahyuni, “Rancang Bangun Sistem Informasi Absensi Karyawan Berbasis Website,” JIKA (Jurnal Inform., vol. 6, no. 1, p. 27, 2022, doi: 10.31000/jika.v6i1.5164.
D. Hamdani, A. P. W. Wibowo, and H. Heryono, “Perancangan Sistem Presensi Online dengan QR Code Menggunakan Metode Prototyping Designing an Online Attendance System with QR Code Using Prototyping Method,” J. Teknol. dan Inf., vol. 14, no. 1, pp. 62–73, 2024, doi: 10.34010/jati.v14i1.
E. Herlina and T. Hidayatulloh, “Penerapan QR Code Untuk Sistem Absensi Siswa SMP Berbasis Web,” J. Teknol. dan Inf., vol. 7, no. 2, pp. 102–112, 1970, doi: 10.34010/jati.v7i2.865.
M. Nanda Aprillia, F. Wahyu Christanto, B. Parga Zen, H. Maulana, and N. Yudi Permana, “Implementasi Teknologi QR Code pada Sistem Absensi Karyawan Berbasis Website,” J. Sist. Inf. Galuh, vol. 3, no. 1, pp. 39–50, 2025, doi: 10.25157/jsig.v3i1.4445.
H. dan Irwandi, “sistem absensi mahasiswa menggunakan QRCODE berbasis mobile dan website pada universitas fajar,” pp. 1–23, 2022.
S. W. Taju, Y. P. Mamahit, and J. A. Pongantung, “Implementing QR code and Geolocation Technologies for the Student Attendance System,” CogITo Smart J., vol. 10, no. 1, pp. 221–232, 2024, doi: 10.31154/cogito.v10i1.636.642-653.
P. Metra, D. Doni, D. Sodikin, and M. Azikri, “Implementasi Sistem Absensi Online Berbasis Foto Selfie dan Deteksi Lokasi di Dinas Kehutanan Provinsi Jambi,” RIGGS J. Artif. Intell. Digit. Bus., vol. 4, no. 2, pp. 5001–5008, 2025, doi: 10.31004/riggs.v4i2.1380.