This Author published in this journals
All Journal INTI Nusa Mandiri
Arga Fauzi Indratna
Universitas Muhammaddiyah Ponorogo

Published : 1 Documents Claim Missing Document
Claim Missing Document
Check
Articles

Found 1 Documents
Search

ANALISIS PROBALITAS NAÏVE BAYES BERBASIS LAPLACE SMOOTHING KEBUTUHAN RESTOCK FARMASI Arga Fauzi Indratna; Adi Fajaryanto Cobantoro; Ismail Abdurrozzaq Zulkarnain
INTI Nusa Mandiri Vol. 21 No. 1 (2026): INTI Periode Agustus 2026
Publisher : Lembaga Penelitian dan Pengabdian Pada Masyarakat

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.33480/inti.v21i1.8663

Abstract

Drug inventory management plays a critical role in supporting hospital health services. Amal Sehat Wonogiri Hospital faces challenges in managing drug stocks due to manual recording processes prone to errors, data update delays, and inaccurate inventory information, creating risks of stock-out and overstock conditions. This study implements the Naive Bayes algorithm with Laplace Smoothing optimization to classify drug stock conditions into three categories: Safe (Aman), Low Stock (Menipis), and Needs Restocking (Restok). To address class imbalance in the dataset, this study applies SMOTE (Synthetic Minority Over-sampling Technique) and provides a comparative analysis against the Decision Tree C4.5 algorithm. The system was developed using the Rapid Application Development (RAD) methodology with the Laravel framework and MySQL database, utilizing 38,531 historical pharmacy transaction records from January to October 2025. Following a stratified 80:20 train-test split, model evaluation on 7,707 test records yielded an accuracy of 84.04%, with weighted-average precision of 87% and recall of 84%. Five-fold cross-validation confirmed model stability with a mean accuracy of 83.16%. Comparative experiments demonstrated that although Decision Tree achieves higher overall accuracy (87.43%), Naive Bayes with Laplace Smoothing significantly outperforms Decision Tree in detecting the critical Low Stock class (F1-score: 54.73% vs 25.23%; recall: 70.69% vs 16.09%), proving its superiority in minimizing the risk of undetected stock shortages.