Implementasi Machine Learning K-Nearest Neighbors Dalam Prediksi Permintaan Pelumas Untuk Mendukung Keputusan Pengendalian Persediaan
Keywords:
K-Nearest Neighbors, Stok Prediction, Web-based System, Clasificasion, StockAbstract
PT Raia Dian Ananta faces challenges in managing lubricant stocks which often experience irregularities, either in the form of excess stock buildup or stock shortages during times of high demand. This research aims to design and build a web-based lubricant stock demand prediction system to optimize company inventory management. The methodology used is K-Nearest Neighbors (KNN), a machine learning algorithm that performs classification or regression based on the closeness of the distance between historical data. The main parameters used in this prediction model include the number of sales in the previous period, remaining final stock, selling price, and lubricant category. This system was developed with a web-based platform to facilitate real-time data accessibility. The results show that the KNN model with K=5 provides high accuracy (MAPE 7.84%) and the developed web-based system successfully facilitates management in making effective procurement decisions. By implementing this system, PT Raia Dian Ananta can minimize unnecessary stock storage costs and increase operational efficiency through more guaranteed product availability for customers.
Downloads
References
S. Chopra and P. Meindl, Supply Chain Management: Strategy, Planning, and Operation, 8th ed. New York, NY, USA: Pearson, 2023.
H. Heizer, B. Render, and C. Munson, Operations Management: Sustainability and Supply Chain Management, 14th ed. Boston, MA, USA: Pearson Education, 2022.
T. M. Mitchell, Machine Learning. New York, NY, USA: McGraw-Hill Education, 2022.
K. P. Murphy, Probabilistic Machine Learning: An Introduction. Cambridge, MA, USA: MIT Press, 2022.
M. H. Dunham, S. Sridhar, and M. Banerjee, Data Mining: Introductory and Advanced Topics, 2nd ed. London, U.K.: Pearson, 2023.
I. H. Witten, E. Frank, M. A. Hall, and C. J. Pal, Data Mining: Practical Machine Learning Tools and Techniques, 5th ed. Burlington, MA, USA: Morgan Kaufmann, 2023.
J. Han, M. Kamber, and J. Pei, Data Mining: Concepts and Techniques, 4th ed. Burlington, MA, USA: Morgan Kaufmann, 2023.
A. Géron, Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 3rd ed. Sebastopol, CA, USA: O'Reilly Media, 2023.
M. Kuhn and K. Johnson, Applied Predictive Modeling. New York, NY, USA: Springer, 2022.
S. Raschka and V. Mirjalili, Machine Learning with PyTorch and Scikit-Learn. Birmingham, U.K.: Packt Publishing, 2023.
A. K. Syntetos, J. E. Boylan, and S. A. Babai, "Forecasting and inventory planning: A review of recent developments," International Journal of Production Economics, vol. 252, pp. 108–124, 2023.
Y. Wang, X. Li, and J. Chen, "Machine learning-based demand forecasting for inventory management: A systematic review," Expert Systems with Applications, vol. 221, pp. 119–136, 2023.
M. Almasri and A. Almazroi, "Comparative analysis of machine learning algorithms for demand forecasting in supply chain management," Sustainability, vol. 15, no. 4, pp. 1–18, 2023.
S. Kumar and R. Singh, "Demand prediction using K-Nearest Neighbor algorithm in retail inventory management," International Journal of Advanced Computer Science and Applications, vol. 14, no. 2, pp. 322–330, 2023.
H. Zhang, Y. Liu, and T. Wang, "Inventory optimization through machine learning-based demand forecasting," Applied Sciences, vol. 14, no. 3, pp. 1–16, 2024.
A. Prasetyo, M. Iqbal, and R. Hidayat, "Penerapan algoritma K-Nearest Neighbor untuk prediksi penjualan produk pada perusahaan distribusi," Jurnal RESTI, vol. 8, no. 1, pp. 45–54, 2024.
D. Kurniawan and F. A. Putri, "Implementasi machine learning dalam prediksi kebutuhan stok barang menggunakan algoritma KNN," Jurnal Teknologi Informasi dan Ilmu Komputer (JTIIK), vol. 11, no. 2, pp. 215–224, 2024.
R. Saputra, M. Arifin, and Y. Setiawan, "Analisis performa algoritma K-Nearest Neighbor pada prediksi permintaan produk berbasis data historis," Jurnal Informatika, vol. 18, no. 1, pp. 67–78, 2025.
N. Rahmawati and A. Firmansyah, "Penerapan data mining untuk forecasting permintaan produk menggunakan algoritma KNN," Jurnal Sistem Informasi Bisnis, vol. 15, no. 1, pp. 33–42, 2025.
E. Susanto, B. Nugraha, and A. Wijaya, "Decision support system for inventory control using machine learning forecasting approach," International Journal of Intelligent Systems and Applications, vol. 17, no. 1, pp. 55–67, 2025.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Muhammad Syahril, Indra Irawan, Andriansyah andri, Yudistira Sira Permana, Jony, Agus Setiawan

This work is licensed under a Creative Commons Attribution 4.0 International License.
Universitas Harapan Medan






.png)


.png)


.png)

.png)


.png)



