Drug Use Pattern Analysis Model Using the K-Means Algorithm as a Basis for Stocktaking Decision Making

Authors

  • Ayesha Tania Universitas Amikom Purwokerto

DOI:

https://doi.org/10.35671/jmtt.v4i2.90

Keywords:

K-Means Clustering, Drug Use Patterns, Stock Management, Data Mining, Community Health Centers

Abstract

Analysis of drug usage patterns using the K-Means algorithm aims to group drug usage based on its usage level and determine the most optimal number of clusters as a basis for more appropriate and efficient stock management recommendations. This study only focuses on drug usage data for the period of January 1, 2025, to June 30, 2025, with the variables used being the number of drugs used and their frequency of use. The approach used is data mining with the K-Means Clustering method, as well as cluster evaluation using the Elbow Method and Silhouette Coefficient. Using the Elbow method, the appropriate number of clusters is 3. This is indicated by the elbow point at k = 3, where the decrease in the WCSS value begins to decrease significantly. Evaluation of clustering quality using the Silhouette Score and Daevis-Bouldin Index (DBI) shows that the formed cluster structure has good quality. The Silhouette Score value reaches 0.61, and the DBI value is 0.53. This indicates that the data in each cluster is quite homogeneous, and the separation between clusters is quite optimal. The analysis results show that the most optimal number of clusters is three clusters, representing drug categories with high (fast-moving), medium (medium-moving), and low (slow-moving) usage levels. Each cluster has different but consistent usage characteristics. These findings provide a clear picture of the distribution pattern and drug needs at the Purwokerto Utara II Community Health Center,  and help identify the possibility of deadstock and stockouts. Thus, it can be concluded that the application of the K-Means algorithm is very effective in supporting drug stock management decision-making so that drug procurement planning can be carried out more accurately, efficiently, and sustainably.

Downloads

Download data is not yet available.

Author Biography

Ayesha Tania, Universitas Amikom Purwokerto

Student of Informations System Department, Universitas Amikom Purwokerto

References

M. U. A. Al Hikami, M. Marianah, and S. Haksama, “Analisis Penerapan Manajemen di Puskesmas Pacet Berdasarkan PMK No. 44 Tahun 2016 Tentang Pedoman Manajemen Puskesmas,” J. Manaj. Kesehat. Indones., vol. 10, no. 1, pp. 7–19, 2022, doi: 10.14710/jmki.10.1.2022.7-19.

F. Khairati and H. Putra, “Prediksi Kuantitas Penggunaan Obat pada Layanan Kesehatan Menggunakan Algoritma Backpropagation Neural Network,” J. Sistim Inf. dan Teknol., vol. 4, pp. 128–135, 2022, doi: 10.37034/jsisfotek.v4i3.158.

H. Hendera, R. Mulyani, and A. A. Iftikhar, “Evaluasi Implementasi Pelayanan Farmasi Klinis Di Puskesmas: Studi Kasus Di Kecamatan Banjarmasin Utara,” J. Insa. Farm. Indones., vol. 7, no. 2, pp. 77–86, 2024, doi: 10.36387/jifi.v7i2.2104.

P. Sari, Efan, and R. Syahri, “Algoritma K-Means Clustering: Sebuah Studi Literatur,” J. Inform., vol. 1, pp. 1--7, 2024.

P. Apriyani, A. R. Dikananda, and I. Ali, “Penerapan Algoritma K-Means dalam Klasterisasi Kasus Stunting Balita Desa Tegalwangi,” Hello World J. Ilmu Komput., vol. 2, no. 1, pp. 20–33, 2023, doi: 10.56211/helloworld.v2i1.230.

A. O. Sinaga and R. Passarella, “Analisis Hubungan Antara Jumlah Bus dan Jumlah Penumpang Menggunakan Unsupervised Learning,” MALCOM Indones. J. Mach. Learn. Comput. Sci., vol. 5, no. 3, pp. 1029–1036, 2025, doi: 10.57152/malcom.v5i3.2005.

H. Supriyanto, M. Al Hafidz, A. C. Puspitaningrum, R. A. P. Firmansyah, and R. Zuhdi, “Klasterisasi Data Obat Farmasi Berdasarkan Jumlah Persediaan Dengan Menggunakan Metode K-Means,” Teknika, vol. 13, no. November, pp. 361–369, 2024, doi: 10.34148/teknika.v13i3.987.

D. Fitriyani, M. Jajuli, and G. Garno, “Implementasi Algoritma K-Means Untuk Klasterisasi Dalam Pengelolaan Persediaan Obat (Studi Kasus: Apotek Naza),” J. Inform. dan Tek. Elektro Terap., vol. 12, no. 3, pp. 2841–2848, 2024, doi: 10.23960/jitet.v12i3.4921.

M. R. Nugroho, I. E. Hendrawan, T. Informatika, U. Singa, P. Karawang, and D. Obat, “Penerapan Algoritma K-Means Untuk Klasterisasi Data Obat Pada Rumah Sakit digunakan dalam pengelolaan obat sebab nantinya sistem cluster dapat membuat pengelompokan pada obat dengan pemakaian tinggi dan kurang sehingga nantinya dapat menjadi acuan atau kn,” vol. 16, pp. 125–133, 2022.

S. S. Momahhed, S. Emamgholipour Sefiddashti, B. Minaei, and Z. Shahali, “K-means clustering of outpatient prescription claims for health insureds in Iran,” BMC Public Health, vol. 23, no. 1, p. 788, 2023, doi: 10.1186/s12889-023-15753-1.

N. Suwaryo, D. Haryadi, D. M. U. Atmaja, and A. R. Hakim, “Analisa Data Mining Menggunakan Algoritma Apriori Untuk Mencari Pola Pemakaian Obat,” Niko Suwaryo, SNTEM, vol. 1, pp. 1208–1217, 2021, doi: 10.53026/sntem.v1i2.590.

A. Hanjaya, D. Fitriani, and S. Darwin, “Faktor-Faktor Yang Mempengaruhi Rumah Sakit Uumum Daerah Dr . Pirngadi Kota Medan Tahun 2020,” J. Healthc. Technol. Med., vol. 7, no. 1, pp. 14–24, 2021.

R. Nopita, N. M. Yasin, and D. Endarti, “Faktor-Faktor yang Mempengaruhi Kesesuaian Indikator Pengelolaan Obat Terhadap Capaiannya di Instalasi Farmasi Rumah Sakit , A Literature Review,” Generics J. Res. Pharm., vol. 4, no. 1, pp. 18–31, 2024, doi: 10.14710/genres.v4i1.22312.

F. P. Gurning, S. F. Siregar, U. R. Siregar, R. Rusmayanti, and F. Nurhasanah, “ANALISIS MANAJEMEN PENGELOLAAN OBAT PADA MASA PANDEMI DI PUSKESMAS,” J. Kesehat. Masy., vol. 9, no. 5, pp. 688–695, 2021.

S. W. Panggulu, W. O. N. Noviyanti, and S. Hasanuddin, “Manajemen Pengelolaan Obat di RSUD Buton Utara,” J. Pharm. Mandala Waluya, vol. 3, pp. 312--321, 2024.

D. Hidayati, Yahya, and M. A. J. Hidayat, “Implementasi Data Mining Menggunakan Algoritma K-Means untuk Pengelompokkan Obat di Puskesmas Kerongkong Kecamatan Suralaga,” J. Print. J. Pengemb. Rekayasa Inform. dan Komput., vol. 1, pp. 78--88, 2023.

R. D. Parinduri, S. Defit, and G. W. Nurcahyo, “Implementasi Algoritma Apriori dalam Data Mining untuk Optimalisasi Stok Obat di Apotik,” J. KomtekInfo, vol. 11, pp. 89--97, 2024.

A. Ardiansyah, A. T. Zy, and A. Nugroho, “IMPLEMENTASI DATA MINING ALGORITMA APRIORI PADA SISTEM PERSEDIAAN OBAT ( STUDI KASUS KLINIK PRATAMA KELUARGA KESEHATAN ),” J. Inf. Syst. Applied, Manag. Account. Res., vol. 7, no. 3, pp. 777–788, 2023, doi: 10.52362/jisamar.v7i3.1163.

W. B. Laksono, Y. Syahidin, and Y. Yunengsih, “Implementasi Data Mining Klasterisasi Data Pasien Rawat Inap dengan Algoritma K-Means Clustering,” J. Teknol. Sist. Inf. dan Apl. ISSN, vol. 7, no. 2, pp. 621–627, 2024, doi: 10.32493/jtsi.v7i2.39354.

A. A. Harahap, M. Raihan, N. Amani, and P. R. Andini, “Perbandingan Teknik Unsupervised Learning Untuk Pengelompokan Data Jumlah Desa Di Indonesia: Comparison of Unsupervised Learning Techniques for Clustering Data on the Number of Villages in Indonesia,” SENTIMAS Semin. Nas. Penelit. dan Pengabdi. Masy., vol. 1, pp. 163–170, 2023.

Downloads

Published

2025-08-28

How to Cite

[1]
A. Tania, “Drug Use Pattern Analysis Model Using the K-Means Algorithm as a Basis for Stocktaking Decision Making”, JMTT, vol. 4, no. 2, pp. 85–93, Aug. 2025.