Application of K-Means Clustering for Grouping Drug Rehabilitation Patient Data: A Case Study of the Esa Prakarsa Drug Rehabilitation Center
DOI:
https://doi.org/10.59934/jaiea.v6i1.2858Keywords:
Data Mining, Clustering, K-Means, Drug RehabilitationsAbstract
This study aims to cluster drug rehabilitation patient data based on age, type of drug abused, and duration of use using the K-Means Clustering algorithm. The data used were obtained from the Esa Prakarsa Drug Rehabilitation Center, consisting of 500 patient records. Data processing was carried out through data transformation, Euclidean distance calculation, and centroid iteration using MATLAB software. Testing was performed with cluster variations ranging from 1 to 6 clusters, then evaluated using variance values to determine the most stable number of clusters. The test results show that the optimal number of clusters is 4, with cluster 1 consisting of 122 data, cluster 2 consisting of 114 data, cluster 3 consisting of 97 data, and cluster 4 consisting of 167 data, with a cluster variance value of 2.4346. The four clusters show different characteristics based on age, type of drug used, and duration of use, with elderly patients using ecstasy having the longest duration of use, namely 7–8 years. This research is expected to help the Esa Prakarsa Drug Rehabilitation Center understand patient characteristics in a more structured manner as material for evaluation and data-based decision-making.
Downloads
References
E. Yolanda, “Penerapan Algoritma K-Means Clustering Untuk Pengelompokan Data Pasien Rehabilitasi Narkoba,” Media Online), vol. 4, no. 1, pp. 182–191, 2023, doi: 10.30865/klik.v4i1.1107.
D. P. Indini, Mesran, and Dito Putro Utomo, “Penerapan Data Mining Dalam Pengelompokan Data Reseller di Telkomsel Authorized Partner (TAP) Deli Tua Dengan Algoritma K-Means,” Jurnal Ilmiah Media Sisfo, vol. 17, no. 2, pp. 189–202, Oct. 2023, doi: 10.33998/mediasisfo.2023.17.2.1391.
A. Khusaeri, “ANALISIS ALGORITMA K-MEANS CLUSTERING DALAM PENGELOMPOKAN DAERAH PENYEBARAN PENYAKIT DEMAM BERDARAH DENGUE,” Journal of Information System, Informatics and Computing, vol. 8, no. 2, p. 434, Dec. 2024, doi: 10.52362/jisicom.v8i2.1795.
N. Karolina, “Data Mining Pengelompokan Pasien Rawat Inap Peserta BPJS Menggunakan Metode Clustering (Studi Kasus : RSU.Bangkatan),” JOURNAL OF INFORMATION AND TECHNOLOGY UNIMOR, Aug. 2021, [Online]. Available: www.kaputama.ac.id
B. Laksono, Y. Syahidin, and Y. Yunengsih, “Implementasi Data Mining Klasterisasi Data Pasien Rawat Inap dengan Algoritma K-Means Clustering,” Jurnal Teknologi Sistem Informasi dan Aplikasi, vol. 7, no. 2, pp. 621–627, Apr. 2024, doi: 10.32493/jtsi.v7i2.39354.
R. P. Ananda, B. Serasi Ginting, and T. R. Pasaribu, “DATA MINING PENGELOMPOKAN PENGGUNA NARKOBA BERDASARKAN USIA MENGGUNAKAN METODE CLUSTERING (STUDI KASUS : BNN KOTA BINJAI),” Jurnal sistem Informasi Kaputama, vol. 6, pp. 180–191, 2022, [Online]. Available: www.kaputama.ac.id
S. R. Asriningtias, E. R. N. Wulandari, M. B. Persijn, N. Rosyida, and B. Sutawijaya, “Identification of Public Library Visitor Profiles using K-means Algorithm based on The Cluster Validity Index,” sinkron, vol. 8, no. 4, pp. 2615–2626, Oct. 2023, doi: 10.33395/sinkron.v8i4.12901.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Journal of Artificial Intelligence and Engineering Applications (JAIEA)

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








