Implementasi Algoritma K-Means pada Sistem Informasi Berbasis Web untuk Clustering Data Penjualan Obat Generik (Studi Kasus: Apotek Attar)
Abstract
This study implements the K-Means algorithm in a web-based information system to cluster generic drug sales data at Apotek Attar. Sales records had previously been stored mainly as archives and had not been used to identify sales patterns for inventory control. The system was developed using Rapid Application Development (RAD), PHP, and MySQL. The dataset contains 50 generic drugs with total sales in 2025. K-Means produced three groups: 9 drugs in the high-sales cluster, 17 in the medium-sales cluster, and 24 in the low-sales cluster. Post-hoc internal validation yielded a Silhouette Score of 0.532 and a Davies-Bouldin Index of 0.534. Black Box Testing covered 32 scenarios across the Head of Pharmacy, Admin, and Cashier roles, and all scenarios produced the expected results. The system integrates transactions, drug management, clustering, monitoring, and reports so that cluster information can support inventory prioritization. The main limitations are the dataset size, the use of a single primary sales attribute, and the absence of usability testing.
Keywords
How to Cite
References
- Asy Aria, T. A., Yuliadi, Y., Julkarnain, M., & Hamdani, F. (2023). Penerapan algoritma K-Means clustering untuk data obat. KLIK-Kajian Ilmiah Informatika dan Komputasi, 4(1), 649–657. https://doi.org/10.30865/klik.v4i1.1117.
- Fadilla, R., Andarsyah, R., Awangga, R. M., & Habibi, R. (2020). Data analytics: peningkatan performa algoritma rekomendasi collaborative filtering menggunakan K-means clustering. Kreatif.
- Fajar, M., Rahaningsih, N., & Dana, R. D. (2024). Analisis pola penjualan obat di Apotek An-Naafi menggunakan metode K-Means clustering. JATI (Jurnal Mahasiswa Teknik Informatika), 8(1), 486–492. https://doi.org/10.36040/jati.v8i1.8395.
- Fitriyani, D., Jajuli, M., & Garno, G. (2024). Implementasi algoritma K-Means untuk klasterisasi dalam pengelolaan persediaan obat (studi kasus: Apotek Naza). Jurnal Informatika dan Teknik Elektro Terapan, 12(3), 2841–2848. https://doi.org/10.23960/jitet.v12i3.4921.
- Fitriyani, D., Jajuli, M., & Garno, G. (2024). Implementasi Algoritma K-Means Untuk Klasterisasi Dalam Pengelolaan Persediaan Obat (Studi Kasus: Apotek Naza). Jurnal Informatika dan Teknik Elektro Terapan, 12(3). https://doi.org/10.23960/jitet.v12i3.4921.
- Ikotun, A. M., Ezugwu, A. E., Abualigah, L., Abuhaija, B., & Heming, J. (2023). K-means clustering algorithms: A comprehensive review, variants analysis, and advances in the era of big data. Information Sciences, 622, 178–210. https://doi.org/10.1016/j.ins.2022.11.139.
- Ikotun, A. M., Habyarimana, F., & Ezugwu, A. E. (2025). Cluster validity indices for automatic clustering: A comprehensive review. Heliyon, 11(2), Article e41953. https://doi.org/10.1016/j.heliyon.2025.e41953.
- Manik, T. G., Rahayu, W. I., & Fathonah, R. N. S. (2023). Perbandingan metode Fuzzy C-Means dan K-Means clustering pada data penggunaan obat di R.S National Hospital Surabaya. JATI (Jurnal Mahasiswa Teknik Informatika), 7(1), 591–597. https://doi.org/10.36040/jati.v7i1.6430.
- Manuhutu, M., Manuhutu, A., Manuhutu, M., Manurung, T., & Uktolseja, L. J. (2025). Penerapan metode Rapid Application Development pada sistem informasi Sipani Store. RIGGS Journal of Artificial Intelligence and Digital Business, 4(1), 8–18. https://doi.org/10.31004/riggs.v4i1.364.
- Perdana, G., Cahyo, A., & Awaludin, A. A. R. (2023). Sistem informasi pengolahan penjualan dan persediaan obat pada Apotek Fifa. Jurnal Riset dan Aplikasi Mahasiswa Informatika, 4(2), 203–210. https://doi.org/10.30998/jrami.v4i02.5395.
- Putri, F. R., Anggraini, S., & Aditya, G. (2022). Penerapan metode K-Means clustering berdasarkan penjualan dan harga obat pada Apotek Kota Batu. Jurnal Sains dan Teknologi, 4(1), 22–30.
- Qosimah, R. S., Sasmito, G. W., & Apriliani, D. (2025). Drug Data Management Application at Telu Tegal Pharmacy Using Website-Based K-Means Algorithm. Journal of Applied Informatics Science, 1(1), 18-23.
- Rahayu, P. W., Gunawan, P. W., Feoh, G., & Saputra, I. G. P. A. (2025). Penerapan Algoritma K-Means Dalam Klasterisasi Penjualan Obat Pada Apotek Kharisma Farma. MEANS (Media Informasi Analisa dan Sistem), 10(2), 104-109.
- Setiawan, M. R., Indayanti Sugata, T. L., & Najaf, A. R. E. (2024). Rancang bangun website store management system Laravel dengan metode agile: Studi kasus UMKM Toko Jali. Jurnal Pendidikan dan Teknologi Indonesia, 4(11), 301–312. https://doi.org/10.52436/1.jpti.448.
- Umar, M. K. G., Sabtu, J., & Sukur, R. S. (2022). Implementasi metode Rapid Application Development (RAD) dalam rancangan sistem informasi pelayanan administrasi di Kelurahan Tabam Kota Ternate. Jurnal Teknoinfo, 16(2), 277–290. https://doi.org/10.33365/jti.v16i2.1889.
Author Biographies
-
Alfi Sahri Manurung, Universitas Harapan Medan
Program Studi Sistem Informasi, Fakultas Teknik dan Komputer, Universitas Harapan Medan, Kota Medan, Provinsi Sumatera Utara, Indonesia.
-
Boni Oktaviana Sembiring, Universitas Harapan Medan
Program Studi Sistem Informasi, Fakultas Teknik dan Komputer, Universitas Harapan Medan, Kota Medan, Provinsi Sumatera Utara, Indonesia.
License
Copyright (c) 2026 Alfi Sahri Manurung, Boni Oktaviana Sembiring

This work is licensed under a Creative Commons Attribution-NoDerivatives 4.0 International License.
This is an open-access journal. All articles are distributed under the terms of the Creative Commons Attribution 4.0 International License (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Under this license, you are free to:
- Share: Copy and redistribute the material in any medium or format.
- Adapt: Remix, transform, and build upon the material for any purpose, even commercially.
Attribution Requirements:
You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
Copyright and Retention:
Authors retain copyright without restrictions and grant this journal the right of first publication under an open-access model. The journal retains non-exclusive publishing rights for archiving, indexing, and scholarly dissemination.
Usage Statistics
Similar Articles
- Sistem Informasi Pendataan Siswa/Siswi Berbasis Web pada SMP Negeri 9 Banda Aceh David Nataniel Rajagukguk , Rizaldi Akbar , Lukman Ahmad · Vol. 4 No. 2 (2025): October 2025
- Perancangan Sistem Informasi Website Kantor Desa Beurawe Berbasis Framework CodeIgniter Riflansyah Riflansyah , Harry Idwan · Vol. 4 No. 2 (2025): October 2025
- Rancang Bangun Aplikasi Toko Online Berbasis Website ATK Yudistira Jaya Muhammad Abdul Aziz Abyan , Untung Surapati · Vol. 4 No. 1 (2025): April 2025
- Pengukuran Kualitas Sistem Informasi Administrasi Vaksin Imunisasi (SIAVI) di Dinas Kesehatan Kabupaten Aceh Barat FIKRI FAIDUL JIHAD , Eko Sediyono , Nurjazuli · Vol. 1 No. 1 (2022): April 2022
- Perancangan Aplikasi Pembayaran Sumbangan Pembinaan Pendidikan (SPP) Bulanan Santri pada Pondok Pesantren Syekh Hamzah Al-Fansury Kota Subulussalam Putri Nurhasanah , Adi Ahmad , Alfina · Vol. 4 No. 1 (2025): April 2025