نوع مقاله : مقاله پژوهشی (آمیخته )
نویسندگان
1 دانش آموخته کارشناسی ارشد مدیریت کسب و کار ،دانشکده علوم انسانی و اجتماعی ،دانشگاه شمال ،آمل،ایران
2 دانشیار ُ گروه مدیریت ،دانشکده علوم انسانی و اجتماعی ، دانشگاه شمال ، آمل ، ایران
3 دانشیار ،گروه مدیریت ،دانشکده علوم انسانی و اجتماعی ،دانشگاه شمال ،آمل،ایران
4 استادیار، گروه مدیریت، دانشکده علوم انسانی و اجتماعی، دانشگاه شمال، آمل، ایران
5 گروه حسابداری، دانشکده مدیریت و حسابداری، پردیس فارابی، دانشگاه تهران، قم، ایران
کلیدواژهها
عنوان مقاله English
نویسندگان English
Abstract
This research aimed to predict the products required by e-commerce customers in Kaleh Meat Products Company using machine learning algorithms. The present research was conducted with an applicable and quantitative approach in terms of purpose. The data used included historical information on online purchases of Kaleh Company customers, which included the variables "product price", "past weight purchase volume", "product type", "past purchase frequency" and "past Rial purchase amount". To predict the "required product" as an output variable, four machine learning algorithms including artificial neural network, random forest, decision tree and K-nearest neighbor were implemented and evaluated with the criteria of Accuracy, Precision, Recall and F1-Score. The results of the model evaluation showed that the artificial neural network algorithm achieved the highest score in all evaluation criteria (Precision: 95.1%, Accuracy: 94.2%, Recall: 95.9% and F1-Score: 95.5%). The results showed that the artificial neural network has the best performance in predicting the products needed by customers; the research models were implemented and validated in the Python version 3.x programming environment and using the specialized libraries Scikit-learn and Keras based on TensorFlow. After that, the random forest, decision tree and K-nearest neighbor algorithms were used, respectively. Also, the analysis of the importance of the variables showed that "past weighted purchase volume" and "past purchase frequency" had the greatest impact on the model's prediction. The proposed model based on the artificial neural network has the ability to become an accurate and efficient product recommendation system for the Kale company. Implementing this model can lead to optimized inventory management, increased customer satisfaction, and ultimately sales growth by accurately predicting future customer demand.
Introduction
Accurately predicting customer purchasing behavior is recognized as one of the most central capabilities of market-oriented organizations in the era of digital transformation, because in order to achieve sustainable competitive advantage, companies must predict future customer needs and allocate their resources to the production and distribution of products that are most likely to be purchased; otherwise, they will face phenomena such as accumulation of low-demand inventories, increased holding costs, lost sales opportunities, and ultimately reduced profitability (Bhavishya et al., 2025). This challenge is even more critical in industries with perishable and time-sensitive products such as meat products, because any forecast error not only leads to direct financial losses, but also to damage to brand reputation and reduced customer trust (Satyanarayana et al., 2025; Jauhar et al., 2025). With the rapid expansion of e-commerce and the development of digital infrastructure, a huge amount of transactional big data including purchase records, order frequency, product type, prices, and purchase time has been generated, which has provided a suitable platform for the application of advanced data analysis methods (Wen & Liu, 2026; Jain, 2025). In the meantime, machine learning algorithms are known as powerful analytical tools in the field of demand forecasting and recommender systems due to their ability to identify hidden patterns and nonlinear relationships (Syamsuri et al., 2025). Despite the large volume of transaction data in the e-commerce system of Kale Meat Products Company, no data-driven model has been designed to predict the products needed by customers, and managers often face shortages of high-demand products or overproduction of low-demand products. Therefore, the main objective of this study is to design and evaluate a model based on machine learning algorithms to predict the products needed by customers in the e-commerce platform of Kale Company and to identify the best algorithm in terms of accuracy, precision, recall, and F1 score.
Theoretical Framework
The theoretical foundations of this study are based on the intersection of e-commerce, consumer behavior, and machine learning. Machine learning enables the extraction of complex patterns from large data and data-driven decision-making (Breiman, 2001). Algorithms such as support vector machines are used in the analysis of customer behavioral data due to their ability to model nonlinear relationships (Cortes & Vapnik, 1995).
Customer Buying Behavior in E-Commerce (Digital RFM Model)
E-commerce platforms are a huge source of customer behavioral data (Kechri et al., 2025). Past purchasing patterns are considered the strongest predictor of future behavior (Li & Hu, 2026). The RFM model analyzes customer behavior based on purchase recency, purchase frequency, and transaction value (Gupta & Agarwal, 2024). In this study, past purchase frequency and past purchase amount are adapted from this theoretical structure. Customers with higher purchase frequency have stronger behavioral attachment to the brand (Fang et al., 2025). The financial volume of transactions reflects the customer lifetime value (Akter et al., 2025). Combining these variables allows for dynamic personalization (Vuppala & Prasad, 2026).
Supply Chain: Demand Forecasting in Perishable Food Industries
Meat products face logistical challenges due to their high perishability (Jauhar et al., 2025). Maintaining a safe inventory is costly due to the risk of expiration (Padmanabhan et al., 2025). The imbalance between supply and demand creates the bullwhip effect (Letto & Orsini, 2025). Predictive logistics emphasizes the shift from push to pull mode based on actual demand (Thiel et al., 2023). In this study, past weighted purchase volume and product type are entered into the model as supply chain indicators.
Analytical Tools: Recommender Systems and Python Computing Platform Recommender systems play a key role in guiding customer choices (Koren et al., 2009). The entire data pipeline is developed in Python. Artificial neural networks extract hidden patterns of transactions (Hochreiter & Schmidhuber, 1997). Random forest is predicted using decision trees and criteria such as Gini impurity (Da, 2025). K-nearest neighbor algorithm also operates based on behavioral similarity.
Research methodology
The present study is applicable in terms of purpose, quantitative in nature, and based on a data mining approach. The statistical population includes all online customers of Kale Company, and a sample of 15 thousand purchase records (after cleaning and preprocessing) was extracted from the company's online shopping transaction database by simple random method. The dependent variable "customer's required product" was defined as binary (select/not select the target product) and the independent variables included product price, past purchase weight volume, product type, past purchase frequency and past purchase amount in Rials. Four classification algorithms including Artificial Neural Network (ANN), Random Forest, Decision Tree and K-Nearest Neighbor (KNN) were implemented using Python 3.x and Scikit-learn and Keras libraries (based on TensorFlow). The implementation process included data preprocessing (cleaning, normalization of quantitative variables and encoding of nominal variables), data splitting into training (80%) and test (20%) parts, training the models using cross-validation to avoid overfitting, and finally evaluating the performance of the models on the test data. The evaluation was performed using the criteria of accuracy (Accuracy = (TN+TP)/(TN+FP+TP+FN)), precision (Precision = TP/(FP+TP)), recall (Recall = TP/(FN+TP)) and F1 score (F1 = 2(PrecisionRecall)/(Precision+Recall)). In order to check the stability of the results, each algorithm was run in 15 consecutive iterations.
Research findings
The results of implementing four machine learning algorithms on the data of 15 thousand online customers of Kale Company are presented in Table 1. As can be seen, the artificial neural network algorithm obtained the highest values in all four criteria of precision, accuracy, recall and F1 score; and is recognized as the superior algorithm. After that, random forest, decision tree and K-nearest neighbor are in the next ranks, respectively.
Table 1 Comparison of machine learning algorithms used in the present study
Algorithms
Accuracy
Precision
Recall
F1-Score
Decision Tree
0.94
0.92
0.958
0.938
random forest
0.946
0.932
0.958
0.945
artificial neural network
0.951
0.942
0.959
0.955
K-nearest neighbor
0.931
0.912
0.944
0.922
In addition to comparing the main performance, the stability of the results was checked in 15 consecutive repetitions. The results showed that the accuracy of all four algorithms had a slight and stable improvement process; so that the artificial neural network reached 94.3% accuracy in the first iteration to 95.1% in the 15th iteration, and the random forest improved from 93.9% to 94.6%, which indicates proper convergence and the lack of strong dependence of the results on the randomness of the data. The confusion matrix also showed that the artificial neural network and the random forest have the lowest type 1 and type 2 errors. In the ranking of the input variables based on the analysis of the importance of features in the artificial neural network algorithm, the variable "weight or weighted volume of purchase" had the greatest impact on the prediction with an approximate share of 35%, followed by "past purchase times" (28%), "product type" (18%), "product price" (12%) and "previous purchase amount in riyals" (7%). This ranking in random forest and decision tree algorithms was also observed to be almost the same, which indicates the high validity of the findings.
Conclusion
The findings of this research are consistent with previous research. Turatti (2025) showed that deep learning models have a high ability to analyze big data and predict online shopping behavior, which is confirmed by the accuracy of 1.95% of the artificial neural network in the current research. Iseal & Michael (2025) also considered analytical models based on behavioral data to be effective for estimating the probability of purchase. Mirasçı & Aksoy (2025) reported the use of machine learning models in the optimization of effective purchasing strategies, and the random forest in the current research showed a good performance with an accuracy of 94.6%. Esmeli & Gokce (2025) emphasized the importance of explainable models and the ranking of the input variables in the current research is considered a step towards clarifying the model. Also, Karimi & Mahmoodi Ranai (2025) confirmed the positive impact of artificial intelligence adoption on business performance, which reinforces the necessity of implementing the proposed model. Darvish et al. (2026) also introduced machine learning algorithms as key technologies. Due to the superior performance of the artificial neural network as well as the acceptable and stable performance of the random forest, these two algorithms are proposed as the main options for the implementation of the intelligent recommender system in Calais. Such a system can reduce perishable product waste, optimize warehouse inventory, increase sales conversion rates, and improve customer satisfaction. For future research, it is suggested to test the proposed model in similar companies, add new variables such as demographic characteristics and purchase time patterns to the model, use more advanced deep learning approaches (such as LSTM and attention-based models), and perform sensitivity analysis on the architecture of the artificial neural network (number of layers, neurons, activation functions) to increase the accuracy and stability of the model.
کلیدواژهها English