Implementation of the Naive Bayes Method for Sales Prediction at UD. Noer Berkah

Authors

  • Rosalia Bafiano Salma Universitas Islam Lamongan
  • Retno Wardhani Universitas Islam Lamongan
  • Masruroh Universitas Islam Lamongan

DOI:

https://doi.org/10.59934/jaiea.v6i1.2819

Keywords:

classification, confusion matrix, data mining, Naive Bayes, sales prediction.

Abstract

Sales prediction is essential for supporting production planning and inventory management in business operations. This study aimed to implement the Naïve Bayes classification method to predict sales status at UD. Noer Berkah using historical sales data. A total of 730 sales records collected from October 2024 to September 2025 were processed through data cleaning and preprocessing, resulting in 240 valid records. The dataset was divided into 192 training records and 48 testing records using an 80:20 hold-out method. The prediction model used month, work shift, meatball sales, and frozen food sales as input attributes, while sales status was used as the target class. Model performance was evaluated using a Confusion Matrix based on accuracy, precision, and recall. The model achieved an accuracy of 75%, with precision values of 85.71%, 66.67%, and 100%, and recall values of 70.59%, 90.91%, and 44.44% for the highly sold, sold, and unsold classes, respectively. These results indicate that the Naïve Bayes method provides satisfactory classification performance for identifying sales patterns from historical transaction data. The developed model can support production planning, inventory management, and business decision-making while reducing the risk of overstocking and stock shortages.

Downloads

Download data is not yet available.

References

M. F. Rozi, ‘Penerapan Data Mining Menggunakan Metode Naive Bayes Untuk Klasifikasi Data Penentuan Hasil Penjualan Dalam Strategi Pemasaran’, J. Komput. Teknol. Inf. dan Sist. Inf., vol. 2, no. 2, pp. 444–454, 2023, doi: 10.62712/juktisi.v2i2.137.

N. Salim and O. Nurdiawan, ‘Penerapan Data Mining pada Penjualan Produk MS Glow Menggunakan Metode Naive Bayes untuk Strategi Pemasaran’, J. Teknol. Inf. dan Komun., vol. 5, no. April, pp. 84–95, 2022.

I. D. Rizqi, R. Wardhani, and M. R. Zamroni, ‘Implementasi Algoritma Naive Bayes pada Sistem Pendukung Keputusan Rekomendasi Wisata di Lamongan’, Semin. Nas. Teknol. Sains, vol. 3, no. 1, pp. 15–22, 2024, doi: 10.29407/stains.v3i1.4078.

Putri, E. Ucha, Sanni Irawan, and F. Rizky, ‘Implementasi Data Mining Untuk Prediksi Penjualan Pestisida Pada CV MITRA ARTHA SEJATI Menggunakan ALgoritma Naive Bayes’, KESATRIA( J. penerapan Sist. Inf. dan Manaj., vol. 2, no. 1, pp. 39–46, 2021, [Online]. Available: http://eprosiding.ars.ac.id/index.php/pti

L. Rifky, Z. Nugraha, B. Saputra, D. Pratama, E. Raswir, and Y. Pratama, ‘Implementasi Data Mining Untuk Penjualan Mobil Menggunakan Metode Naive Bayes’, J. Inform. Dan Rekayasa Komputer(JAKAKOM), vol. 2, no. 2, pp. 225–230, 2022, doi: 10.33998/jakakom.2022.2.2.109.

G. Asri, F. Doni, G. Putri Asri, and F. Roma Doni, ‘Klasifikasi Produk Persediaan pada PT HMS Kompresindo Sukses Menggunakan Algoritma Naive Bayes’, J. Inform. Multimed., vol. 16, no. 2, pp. 1–9, 2024.

Astalina Pramana I Made Adrian, sudiarsa I Wayan, and Cipta Nugraha Putu Gede Surya, ‘Penerapan Algoritma Naive Bayes Untuk Prediksi Penjualan Produk Terlaris Pada Cv. Akurasi Jaya Abadi’, J. Tek. Inform. dan Sist. Inf., vol. Vol. 10, N, no. 4, pp. 518–534, 2023, [Online]. Available: http://jurnal.mdp.ac.id%0Ajatisi@mdp.ac.id

N. Bayes, ‘Arus Jurnal Sains dan Teknologi ( AJST ) Penerapan Data Mining untuk Memprediksi Penjualan Bahan Bangunan ( Ud Kiki Fatmala ) Dengan Menggunakan Metode’, vol. 3, no. 1, 2025.

M. H. Adzim, ‘Forecasting Naïve Bayes : Studi Kasus Pada [ Toko Snack Ida ]’, vol. 2, no. 3, pp. 231–253, 2025.

I. M. A. A. D. Putra, I. M. G. Sunarya, and I. G. A. Gunadi, ‘Perbandingan Algoritma Naive Bayes Berbasis Feature Selection Gain Ratio dengan Naive Bayes Kovensional dalam Prediksi Komplikasi Hipertensi’, JTIM J. Teknol. Inf. dan Multimed., vol. 6, no. 1, pp. 37–49, 2024, doi: 10.35746/jtim.v6i1.488.

F. Harahap, W. Fahrozi, R. Adawiyah, E. T. Siregar, and A. Y. N. Harahap, ‘Implementasi Data Mining dalam Memprediksi Produk AC Terlaris untuk Meningkatkan Penjualan Menggunakan Metode Naive Bayes’, J. Unitek, vol. 16, no. 1, pp. 41–51, 2023, doi: 10.52072/unitek.v16i1.541.

M. F. Shahzad, S. Xu, W. M. Lim, X. Yang, and Q. R. Khan, ‘Artificial intelligence and social media on academic performance and mental well-being: Student perceptions of positive impact in the age of smart learning’, Heliyon, vol. 10, no. 8, Apr. 2024, doi: 10.1016/j.heliyon.2024.e29523.

Q. A’yuniyah, W. Elvira, N. Nazira, I. Ambarani, S. F. Intan, and D. Ramadhani, ‘Naïve Bayes Classifier (NBC) Algorithm Analysis for Prediction Medical Device Sales’, IJIRSE Indones. J. Inform. Res. Spoftware Eng., vol. 3, no. 2, pp. 119–126, 2023.

S. Alam and S. Sunardi, ‘Analisis Prediksi Penjualan Kue menggunakan Metode Naive Bayes’, SISITI Semin. Ilm. Sist. …, vol. XII, no. 2, pp. 54–67, 2023, [Online]. Available: https://ejurnal.dipanegara.ac.id/index.php/sisiti/article/view/1327%0Ahttps://ejurnal.dipanegara.ac.id/index.php/sisiti/article/download/1327/997

A. Fricco and K. Setiawan, ‘Implementasi Algoritma Naive Bayes Menggunakan Particle Swarm Optimization Untuk Prediksi Penjualan Produk Air Mineral’, J. Sains dan Teknol., vol. 5, no. 1, pp. 193–197, 2023, [Online]. Available: https://doi.org/10.55338/saintek.v5i1.1430

Downloads

Published

2026-10-15

How to Cite

Rosalia Bafiano Salma, Retno Wardhani, & Masruroh. (2026). Implementation of the Naive Bayes Method for Sales Prediction at UD. Noer Berkah. Journal of Artificial Intelligence and Engineering Applications (JAIEA), 6(1), 655–661. https://doi.org/10.59934/jaiea.v6i1.2819