Jurnal Publikasi Ilmu Komputer dan Multimedia
Vol. 4 No. 2 (2025): Mei: Jurnal Publikasi Ilmu Komputer dan Multimedia

Application of the K-Nearest Neighbor Algorithm in the Data Mining Process to Predict Drug Sales at Pratama Haji Medan-Pancing Clinic




Article Info

Publish Date
20 May 2025

Abstract

Pratama Haji Medan-Pancing Clinic is a healthcare facility that routinely sells medications to patients. However, the current manual drug inventory management process poses risks such as delayed procurement and overstocking. To address this issue, this study aims to implement a data mining approach using the K-Nearest Neighbor (KNN) algorithm to predict drug sales at Klinik Pratama Haji Medan-Pancing. A quantitative research method was employed, utilizing historical drug sales data from the past two to three years. The data underwent a thorough process of assessment, cleaning, and transformation before being processed using the K-Neighbor Classifier from the scikit-learn library. The results demonstrated that the KNN method achieved a prediction accuracy rate of 88.9%, indicating its effectiveness in forecasting drug sales. By implementing this predictive system, Klinik Pratama Haji Medan-Pancing can improve the efficiency of inventory management, reduce the risk of stock shortages or surpluses, and support faster, data-driven decision-making. In conclusion, the KNN algorithm proves to be a feasible predictive solution for drug sales systems in clinics and holds potential for further development in intelligent and integrated pharmacy management.

Copyrights © 2025






Journal Info

Abbrev

jupikom

Publisher

Subject

Computer Science & IT

Description

Jurnal Publikasi Ilmu Komputer dan Multimedia adalah jurnal yang dikhususkan untuk penelitian penelitian yang termasuk dalam bidang keilmuan komputer dan Multimedia yang diterbitkan oleh Pusat Riset dan Inovasi Nasional dan terbit 3 kali dalam setahun pada bulan Januari Mei dan September. Jurnal ...