Classification Analysis of Product Sales Results at Alfamart Using the Naïve Bayes Method


  • Yuyun Yusnida Lase Politeknik Negeri Medan
  • Citra Wasti Silaban Politeknik Negeri Medan
  • Alex Sander Sitepu Politeknik Negeri Medan
  • Reza Kavarin Telaumbanua Politeknik Negeri Medan



Rapidminer, Consumer, Distributor, Classification, Naive Bayes Method


This research focuses on the analysis of the number of products sold, especially stock items from the distribution center to Alfamart stores. The main problem discussed in this study is the result of the number of unsold and sold products, which causes overstocking in the warehouse area. To overcome this problem, it will be solved using the Naive Bayes classification method. This research uses sample data of 100 products and uses data collection techniques such as observation and interviews. The collected data is analysed through a classification approach. This research aims to predict goods that sell and do not sell using Rapidminer using the NaïveBayes method. And to produce more accurate data for the product sales process. The reason for using this naïve bayes algorithm in the process of processing and analysing data is because the way this algorithm works uses statistical methods and probability in predicting future results. The validation results show that the Naive Bayes classification method implemented through Rapidminer provides a significant explanation with a fairly high accuracy and a positive effect on the prediction of sales of goods based on consumer demand and needs.


Download data is not yet available.


K. A. Pranajaya and S. I. Prasetyo, “D Digitizing BUMDes: Application, Opportunities, and Challenges in the Special Region of Yogyakarta,” J. Din., vol. 2, no. 2, pp. 1–8, 2022.

A. R. Lubis, S. Prayudani, M. Lubis, and O. Nugroho, “Sentiment Analysis on Online Learning during the Covid-19 Pandemic Based on Opinions on Twitter using KNN Method,” in 2022 1st International Conference on Information System and Information Technology, ICISIT 2022, 2022, pp. 106–111, doi: 10.1109/ICISIT54091.2022.9872926.

C. Villavicencio, J. J. Macrohon, X. A. Inbaraj, J.-H. Jeng, and J.-G. Hsieh, “Twitter sentiment analysis towards covid-19 vaccines in the Philippines using naïve bayes,” Information, vol. 12, no. 5, p. 204, 2021.

I. Safira and M. Muhathir, “Analysis of Different Naïve Bayes Methods for Categorizing Spices Through Photo using the Speeded-up Robust Feature,” in 2023 International Conference on Computer Science, Information Technology and Engineering (ICCoSITE), 2023, pp. 29–34.

G. L. Y. Londo, D. H. Kartawijaya, H. T. Ivariyani, Y. S. P. WP, A. P. M. Rafi, and D. Ariyandi, “A Study of Text Classification for Indonesian News Article,” in 2019 International Conference of Artificial Intelligence and Information Technology (ICAIIT), 2019, pp. 205–208.

F. F. Shahare, “Sentiment analysis for the news data based on the social media,” Proc. 2017 Int. Conf. Intell. Comput. Control Syst. ICICCS 2017, vol. 2018-Janua, pp. 1365–1370, 2017, doi: 10.1109/ICCONS.2017.8250692.

N. A. Febriyati, A. D. GS, and A. Wanto, “GRDP Growth Rate Clustering in Surabaya City uses the K-Means Algorithm,” IJISTECH (International J. Inf. Syst. Technol., vol. 3, no. 2, pp. 276–283, 2020.

S. Pradha, M. N. Halgamuge, and N. Tran Quoc Vinh, “Effective text data preprocessing technique for sentiment analysis in social media data,” Proc. 2019 11th Int. Conf. Knowl. Syst. Eng. KSE 2019, pp. 1–8, 2019, doi: 10.1109/KSE.2019.8919368.

N. Ginantra et al., “Performance One-step secant Training Method for Forecasting Cases,” in Journal of Physics: Conference Series, 2021, vol. 1933, no. 1, p. 12032.

A. R. Lubis, S. Prayudani, Y. Fatmi, and O. Nugroho, “Latent Semantic Indexing (LSI) and Hierarchical Dirichlet Process (HDP) Models on News Data,” in 2022 5th International Conference on Computer and Informatics Engineering, IC2IE 2022, 2022, pp. 314–319, doi: 10.1109/IC2IE56416.2022.9970067.

H. Mehta and K. Passi, “Social Media Hate Speech Detection Using Explainable Artificial Intelligence (XAI),” Algorithms, vol. 15, no. 8, 2022, doi: 10.3390/a15080291.

G. Singh, B. Kumar, L. Gaur, and A. Tyagi, “Comparison between multinomial and Bernoulli naïve Bayes for text classification,” in 2019 International Conference on Automation, Computational and Technology Management (ICACTM), 2019, pp. 593–596.

M. R. Romadhon and F. Kurniawan, “A comparison of naive Bayes methods, logistic regression and KNN for predicting healing of Covid-19 patients in Indonesia,” in 2021 3rd east Indonesia conference on computer and information technology (eiconcit), 2021, pp. 41–44.

T. M. Ma, K. Yamamori, and A. Thida, “A comparative approach to Naïve Bayes classifier and support vector machine for email spam classification,” in 2020 IEEE 9th Global Conference on Consumer Electronics (GCCE), 2020, pp. 324–326.

S. Ghazal, W. S. Qureshi, U. S. Khan, J. Iqbal, N. Rashid, and M. I. Tiwana, “Analysis of visual features and classifiers for Fruit classification problem,” Comput. Electron. Agric., vol. 187, p. 106267, 2021.

V. R. Arunachalaeshwaran, H. F. Mahdi, T. Choudhury, T. Sarkar, and B. P. Bhuyan, “Freshness classification of hog plum fruit using deep learning,” in 2022 International congress on human-computer interaction, optimization and robotic applications (HORA), 2022, pp. 1–6.

A. R. Lubis et al., “Enhancing Text Summarization with a T5 Model and Bayesian Optimization,” Rev. d’Intelligence Artif., vol. 37, no. 5, pp. 1213–1219, 2023, doi: 10.18280/ria.370513.

Y. Y. Lase, A. R. Lubis, F. Elyza, and S. A. Syafli, “Mental Health Sentiment Analysis on Social Media TikTok with the Naïve Bayes Algorithm,” in 2023 6th International Conference of Computer and Informatics Engineering (IC2IE), 2023, pp. 186–191, doi: 10.1109/IC2IE60547.2023.10331126.

A. R. Lubis, Y. Y. Lase, D. A. R, and D. Witarsyah, “Optimization of SVM Classification Accuracy with Bayesian Optimization Utilizing Data Augmentation,” in 2023 6th International Conference of Computer and Informatics Engineering (IC2IE), 2023, pp. 169–174, doi: 10.1109/IC2IE60547.2023.10331580.

A. R. Lubis, M. K. M. Nasution, O. S. Sitompul, and E. M. Zamzami, “The feature extraction for classifying words on social media with the Naïve Bayes algorithm,” IAES Int. J. Artif. Intell., vol. 11, no. 3, pp. 1041–1048, 2022, doi: 10.11591/ijai.v11.i3.pp1041-1048.

M. Wongkar and A. Angdresey, “Sentiment analysis using Naive Bayes Algorithm of the data crawler: Twitter,” in 2019 Fourth International Conference on Informatics and Computing (ICIC), 2019, pp. 1–5.

S. Kurniawan and I. Budi, “Indonesian tweets hate speech target classification using machine learning,” 2020 5th Int. Conf. Informatics Comput. ICIC 2020, pp. 1–5, 2020, doi: 10.1109/ICIC50835.2020.9288515.

E. Aker, M. L. Othman, V. Veerasamy, I. bin Aris, N. I. A. Wahab, and H. Hizam, “Fault detection and classification of shunt compensated transmission line using discrete wavelet transform and naive bayes classifier,” Energies, vol. 13, no. 1, p. 243, 2020.

S. Dey, S. Wasif, D. S. Tonmoy, S. Sultana, J. Sarkar, and M. Dey, “A comparative study of support vector machine and Naive Bayes classifier for sentiment analysis on Amazon product reviews,” in 2020 International Conference on Contemporary Computing and Applications (IC3A), 2020, pp. 217–220.

E. Rosmaini, T. F. Kusumasari, M. Lubis, and A. R. Lubis, “Study to the current protection of personal data in the educational sector in Indonesia,” in Journal of Physics: Conference Series, 2018, vol. 978, no. 1, doi: 10.1088/1742-6596/978/1/012037.




How to Cite

Lase, Y. Y., Silaban, C. W., Sitepu, A. S., & Telaumbanua, R. K. (2024). Classification Analysis of Product Sales Results at Alfamart Using the Naïve Bayes Method. Electronic Integrated Computer Algorithm Journal, 1(2), 69–74.