Implementasi Metode K-Means Clustering dan Association Rules Apriori untuk Pengelolaan Stok Obat
DOI:
https://doi.org/10.37859/jf.v16i2.12088
Abstract
Drug inventory management at Klinik Pratama Kencana was previously performed through manual or semi-manual recording, making stock monitoring and procurement decisions less effective. This study develops a web-based drug inventory management system by integrating K-Means Clustering and Apriori Association Rules. Historical stock and drug-out transaction data from January to March 2026 were processed using a descriptive quantitative applied-research approach. K-Means used initial stock, incoming stock, outgoing stock, and remaining stock attributes after Min-Max normalization to classify 64 drugs into fast-moving, medium-moving, and slow-moving groups. Apriori analyzed 597 transaction baskets with a minimum support of 5% and a minimum confidence of 40%. The clustering produced 15 fast-moving, 27 medium-moving, and 22 slow-moving drugs. Apriori generated several strong rules; the rule Acetylcysteine to Ambroxol achieved 11.06% support, 85.71% confidence, and a lift ratio of 5.39. System calculations matched Microsoft Excel validation results, all tested functions were valid, and five users gave a 96% acceptance score. The integrated system provides stock status, restock recommendations, monthly reports, and co-occurrence patterns to support more structured inventory decisions. By combining stock movement classification with drug co-occurrence patterns, the system helps administrators prioritize restocking together with related medicines, thereby reducing manual checking and improving inventory monitoring efficiency.
Downloads
References
Dwi Astuti, “Optimasi Metode K - Means Clustering untuk Pengelompokan Obat Di Puskemas Mertoyudan I Magelang Optimization of K-Means Clustering Method for Drug Grouping at,” vol. 13, pp. 2144–2160, 2024.
M. Aisyah, W. Prihartono, I. W. Marthanu, Kaslani, and I. Pratama, “ANALISIS PENGELOMPOKAN PENJUALAN OBAT MENGGUNAKAN ALGORITMA K-MEANS UNTUK OPTIMALISASI STOK OBAT PADA,” vol. 06, no. 02, pp. 1–7, 2025.
R. Pajri et al., “PENERAPAN ALGORITMA K-MEANS UNTUK OPTIMALISASI,” JATI, vol. 9, no. 1, pp. 1594–1599, 2025, doi: 10.36040/jati.v9i1.12472.
Holwati, E. Widodo, and W. Hadikristanto, “Pengelompokan Untuk Penjualan Obat Dengan Menggunakan Algoritma K-Means,” Bull. Inf. Technol., vol. 4, no. 3, pp. 408–413, 2023, doi: 10.47065/bit.v4i3.848.
A. Azis and Sutisna, “Penerapan Data Mining untuk Menentukan Ketersediaan Stok Barang Berdasarkan Permintaan Konsumen di PT Indonesia Thai Summit Plastech Menggunakan K-Means Clustering,” J. Indones. Manaj. Inform. dan Komun., vol. 5, no. 3, pp. 3099–3106, 2024, doi: 10.35870/jimik.v5i3.982.
H. Supriyanto, M. Al Hafidz, A. C. Puspitaningrum, R. A. P. Firmansyah, and R. Zuhdi, “Klasterisasi Data Obat Farmasi Berdasarkan Jumlah Persediaan Clustering Pharmaceutical Drug Data Based on Total Inventory Using the K-Means Method,” vol. 13, no. November, pp. 361–369, 2024, doi: 10.34148/teknika.v13i3.987.
I. G. A. Gunadi and I. M. A. Wirawan, “STUDI PERBANDINGAN ALGORITMA EUCLIDEAN , MANHATTAN DAN CHEBYSEV DISTANCE UNTUK OPTIMASI METODE K-MEANS CLUSTERING PADA PENGELOMPOKKAN,” J. Pendidik. Teknol. dan Kejuru., vol. 22, no. 2, pp. 116–127, 2025, doi: 10.23887/jptk-undiksha.v22i2.98863.
V. E. Putri and H. D. Purnomo, “INTEGRASI ALGORITMA APRIORI DAN K-MEANS DALAM ANALISIS POLA PEMBELIAN UNTUK MENINGKATKAN STRATEGI PEMASARAN,” JIPI, vol. 10, no. 1, pp. 409–423, 2025, [Online]. Available: https://doi.org/10.29100/jipi.v10i1.5768
S. Melinda et al., “Penerapan Model Waterfall dalam Pengembangan Sistem Informasi Akademik Berbasis Web sebagai Sistem Pengolahan Nilai Siswa,” J. Teknol. Sist. Inf. dan Apl., vol. 4, no. 2, pp. 98–102, 2021, doi: 10.32493/jtsi.v4i2.10196.
M. Mustofa, A. M. Alfarisi, and U. N. Jadid, “Penerapan Algoritma Apriori Untuk Menentukan Pola Pembelian Konsumen,” JSITIK, vol. 4, no. 1, pp. 11–30, 2025, doi: 10.53624/jsitik.v4i1.710.
R. F. Naibaho, S. Z. Harahap, and A. P. Juledi, “Implementasi Data Mining Menggunakan Metode Algoritma FP-Growth Dan Algoritma Apriori Pada Toko IBR Jaya Untuk Meningkatkan Penjualan,” INFORMATIKA, vol. 12, no. 3, pp. 504–513, 2024, doi: 10.36987/informatika.v12i3.6128.
V. Tasril, D. Olivian, and R. H. Simarmata, “Penerapan Algoritma K-Means dan Apriori dalam Manajemen Stok UMKM Toko Sembako Berbasis Analisis BCG Matrix,” BIT, vol. 6, no. 4, pp. 340–347, 2025, doi: 10.47065/bit.v6i4.2375.
L. Liu, “Application of K-means supported by clustered systems in big data association rule mining,” Syst. Soft Comput., vol. 7, no. February, 2025, doi: 10.1016/j.sasc.2025.200211.
D. Winarso and A. Karnaidi, “Association Rule Mining untuk Meningkatkan Promosi Produk (Studi Kasus pada PD. XYZ),” J. FASILKOM, vol. 7, no. 2, pp. 284–288, 2018, doi: 10.37859/jf.v7i2.789.
E. A. Kusuma and A. Dharmawati, “Analisis Pemerataan Pendidikan di Indonesia Menggunakan Reduksi Dimensi PCA dan Klasterisasi K-Means,” J. FASILKOM, vol. 16, no. 1, pp. 105–112, 2026, doi: 10.37859/jf.v16i1.11349.
K. Kusrini, “Grouping of Retail Items by Using K-Means Clustering,” Procedia Comput. Sci., vol. 72, pp. 495–502, 2015, doi: 10.1016/j.procs.2015.12.131.
E. Tambunan, Y. B. Limbeng, and S. Sipayung, “Implementasi Algoritma K-Means Dengan Normalisasi Min-Max Pada Analisis Data Ketidakbersekolahan Anak,” JDMIS, vol. 4, no. 1, pp. 26–32, 2026, doi: 10.54259/jdmis.v4i1.7064.
B. Hardika et al., “Pengujian Blackbox Testing Website Garuda Farm Menggunakan Teknik Equivalence Partitioning,” J. Kridatama Sains dan Teknol., vol. 06, no. 02, pp. 740–753, 2024, doi: 10.53863/kst.v6i02.1420.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Nursyamsiah Fajriah, Shelvi Eka Tassia

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Copyright Notice
An author who publishes in the Jurnal FASILKOM (teknologi inFormASi dan ILmu KOMputer) agrees to the following terms:
- Author retains the copyright and grants the journal the right of first publication of the work simultaneously licensed under the Creative Commons Attribution-ShareAlike 4.0 License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal
- Author is 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 the acknowledgement of its initial publication in this journal.
- Author is permitted and encouraged to post his/her 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 the published work (See The Effect of Open Access).
Read more about the Creative Commons Attribution-ShareAlike 4.0 Licence here: https://creativecommons.org/licenses/by-sa/4.0/.


