David Bagus Setiawan
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Research Interests
David Bagus Setiawan has a total of 2 co-authors. Here are the top co-authors by number of shared publications:
- M. Ghofar Rohman
Universitas Islam Lamongan
1 shared publication - Moh. Rosidi Zamroni
Universitas Islam Lamongan
1 shared publication
Latest Publications
- Open Access
- 15 October 2025
- Published by Yayasan Kita Menulis in Journal of Artificial Intelligence and Engineering Applications (JAIEA)
- Vol. 5 (1) , 1201-1212
Drug Sales Forecasting at XYZ Pharmacy using Single Moving Average and Single Exponential Smoothing Methods Based on a Web-Based System
This study aims to develop a web-based drug sales prediction system at XYZ Pharmacy by implementing two forecasting methods: Single Moving Average (SMA) and Single Exponential Smoothing (SES). The system is designed to help address fluctuations in drug demand that may lead to overstocking or stockouts, which can ultimately impact pharmacy operations and service quality. The system was built using PHP as the programming language and MySQL as the database, with a primary focus on the sales forecasting feature. The dataset used includes the sales of 5 types of drugs from July 2024 to May 2025, which were analyzed to predict sales for the following month. Evaluation results show that the SES method with a smoothing constant α = 0.2 achieved a Mean Absolute Percentage Error (MAPE) of 9.38%, while the SMA method with a 5-month period resulted in a MAPE of 9.43%. Among all the data, Mefenamic Acid yielded the most accurate prediction for June 2025. Both methods were successfully implemented in the system, with SES showing slightly better performance, especially in handling gradual trend changes. Additionally, the system allows users to compare forecasting results across methods and supports better decision-making in inventory management, helping to maintain optimal drug availability at the pharmacy.
- 15 October 2025
- Published by Yayasan Kita Menulis in Journal of Artificial Intelligence and Engineering Applications (JAIEA)
- Vol. 5 (1) , 1201-1212
Open AccessDrug Sales Forecasting at XYZ Pharmacy using Single Moving Average and Single Exponential Smoothing Methods Based on a Web-Based System
This study aims to develop a web-based drug sales prediction system at XYZ Pharmacy by implementing two forecasting methods: Single Moving Average (SMA) and Single Exponential Smoothing (SES). The system is designed to help address fluctuations in drug demand that may lead to overstocking or stockouts, which can ultimately impact pharmacy operations and service quality. The system was built using PHP as the programming language and MySQL as the database, with a primary focus on the sales forecasting feature. The dataset used includes the sales of 5 types of drugs from July 2024 to May 2025, which were analyzed to predict sales for the following month. Evaluation results show that the SES method with a smoothing constant α = 0.2 achieved a Mean Absolute Percentage Error (MAPE) of 9.38%, while the SMA method with a 5-month period resulted in a MAPE of 9.43%. Among all the data, Mefenamic Acid yielded the most accurate prediction for June 2025. Both methods were successfully implemented in the system, with SES showing slightly better performance, especially in handling gradual trend changes. Additionally, the system allows users to compare forecasting results across methods and supports better decision-making in inventory management, helping to maintain optimal drug availability at the pharmacy.