1. Introduction

Thailand's restaurant industry is a significant contributor to the country's economy. It is projected to reach a value of 4.35 trillion baht by 2023, with a growth rate of 7.1%. The industry is highly competitive and unpredictable, making it a challenging business. Despite the volatility experienced in the past year due to the global economic downturn and the COVID-19 pandemic’s adverse effects, the restaurant business has shown resilience, experiencing steady growth as the situation improves. The evolving demographics fuel this growth, including a decrease in household sizes, urban expansion, and changing consumer lifestyles. Additionally, the fast-paced lifestyle and increasing demand for convenience have led to a rise in delivery services. Restaurants play a crucial role in the distribution of goods and services, connecting producers, suppliers, and customers. As a result of the evolution of digital technologies and changing consumer behaviors, new distribution channels and business models have emerged in the restaurant sector. Social commerce, which integrates social media and e-commerce, has become an increasingly important part of the modern distribution landscape for restaurants (Cho et al., 2019). Since restaurants are service businesses, both verbal and non-verbal communication strategies are crucial for effective service delivery, especially in counter-service restaurants (Choi, 2022). As a result, studying communication strategiesto deliverservices efficiently is essential for restaurant businesses. As of September 30, 2022, 18,096 restaurant businesses were operating in Thailand, accounting for 2.14% of the overall business landscape. Bangkok is the primary location for these establishments, accounting for 22.25% of the total. Despite the fact that the restaurant industry has been growing rapidly over the years, there are still a number of challenges that continue to plague the business. One of the biggest challenges is the intense competition in every segment and price level, which in turn affects the profitability and sustainability of the company. This is evident from the fact that a mere 35% of newly opened restaurants are able to sustain their business and continue operating beyond the three-year mark. These challenges require careful management and strategic planning in order to overcome the obstacles and succeed in this highly competitive industry.

The restaurant industry in Thailand is highly competitive, and consumers are increasingly reliant on online resources to make informed decisions about where to dine. Wongnai.com is a popular restaurant review website in Thailand that provides users with comprehensive information on food menus, restaurant location, type, price range, number of seats, and amenities such as parking, credit cards accepted, and delivery service. Users can also share their dining experiences by checking in, rating and reviewing, and leaving online comments to express their opinions and feelings. This electronic word-of-mouth (eWOM) concept significantly impacts online and offline businesses. According to a recent survey by Krungsri Research, Thai consumers who purchase products via social commerce tend to buy products primarily through Facebook, demonstrating the platform’s effectiveness in accessing and engaging with websites or other platforms (Hirankasi & Klungjaturavet, 2022). As technology continues to rapidly evolve, restaurant businesses must adapt to stay competitive. Factors such as delivery services and communication channels through various social media platforms are becoming increasingly important in making business decisions. Social commerce platforms rely heavily on ratings and reviews to assess consumer satisfaction (Susskind, 2019). This research aims to study the internal and external factors affecting restaurant performance while analyzing whether there are any differences in performance among restaurants of different price levels. Critical factors on social commerce platforms include expanding communication channels through social media, such as Facebook Fan pages, and analyzing the levels of customer comments and feedback. Natural language processing and AI-powered sentiment analysis techniques can be employed to accurately evaluate customer reviews and opinions. A model can be developed by comparing the performance of forecasting algorithms and machine learning techniques to analyze the factors affecting restaurant performance on social commerce platforms. This will provide valuable insightsforstrategically managing restaurant businesses and help develop a decision support system for recommending business owners. Adopting such an approach will enable restaurant owners to evaluate the success or failure of their business before making decisions or during operations, increasing the likelihood of success and reducing the risk of business failure. As population, lifestyle, and technology continue to change, analyzing and forecasting restaurant performance on social commerce platforms is becoming increasingly critical for success in the industry.

2. Literature Review

2.1. Business Performance of a Restaurant

Running a successful restaurant business is a complex task that requires consideration of multiple factors. These factors include service quality, competitive pricing, and the presence of similar restaurants nearby, all of which can significantly impact the success or failure of the business (Wang, 2021). Location and geographic diversity also play a crucial role in determining the effectiveness of a restaurant business (Song, 2021). In large metropolitan areas, restaurants must pay close attention to their location and the surrounding commercial facilities and restaurants in the vicinity (Wu, 2021). In today’s digital age, social media has become a powerful tool for consumers to share their opinions on the quality and various services of restaurants. Therefore, innovation activities have become an essential part of increasing the efficiency of the restaurant business (Lee, 2018). Ultimately, the performance of a restaurant business depends on consumer satisfaction, which influences their intention to return and leads to business profits (Susskind, 2019). For social commerce, consumers can rate and review restaurants, reflecting their satisfaction with various factors.

2.2. Social Commerce

Social commerce is a modern approach to online shopping that combines the best of traditional e-commerce with the power of social media to reach and engage consumers within a network (Sohn, 2020). By creating virtual communities, social commerce can effectively promote the sale of products or services online, encouraging participation and sharing equally among users (Liao, 2021). This collaborative approach is precious for consumers who may be hesitant to purchase products they cannot physically touch (Boardman, 2019), as social commerce provides guidance and reduces the inherent uncertainty and risk associated with online shopping (Zhao, 2020).

In today’s world, social media platforms have become an integral part of the consumer decision-making process. Before making any purchase, consumers tend to check out reviews and opinions from previous buyers. This trend is particularly prevalent in the restaurant industry, where customers look for feedback on the quality and service of restaurants before deciding where to dine. According to Gao (2018), consumer feedback plays a vital role in determining whether a product can meet the consumer’s needs to a certain extent. Researchers have adopted data mining techniques from social commerce platforms to better understand restaurant business performance. Chang (2019) conducted research on predicting business performance based on location. The study aimed to identify insights for businesses that coexist and compete in geographic neighborhoods. The research used information from Yelp.com, a social commerce platform that provides member reviews and recommendations for businesses. The study analyzed 10,618 restaurant businesses in 2013 and found that the hybrid model was effective in supporting restaurants with their strategic and operational decisions. Leonard Gunawan (2023) researched the satisfaction levels of restaurant patrons. The study analyzed online reviews on TripAdvisor and used Support Vector Machine (SVM) techniques to classify the sentiment of the reviews. The results indicated that SVM was more accurate, with an accuracy value of 79%, compared to naive Bayes (NB). Overall, social media platforms serve as a data platform that enhances the quality of restaurant service through online reviews by consumers. They are a trusted source of information that helps consumers assess the quality of restaurants. Therefore, consumer reviews on the quality and service of restaurants are crucial.

2.3. Electronic Word of Mouth (eWOM)

Electronic word-of-mouth (eWOM) refers to the exchange of information or opinions, both positive and negative, through the Internet (Lim et al., 2022). This information is sourced from consumers, online social networks, or personal relationships (Chu, 2019), influencing the speed and rate of dissemination that consumers can choose from various platforms, such as online marketplaces or independent websites, and in various formats such as online reviews, blogs, and videos. Consumers can express their opinions through text, images, or ratings (Pyle, 2021). Consumers increasingly rely on electronic word-of-mouth to search for information about service providers and share personal experiences in using services (Golmohammadi, 2020). Consumer emotions are crucial in explaining post-purchase consumer behavior (Yan, 2018). Therefore, electronic word-of-mouth (eWOM) has become a significant reference for making purchase decisions and responding to consumer behavior in the digital age.

2.4. Emotional Intensity

Expressing emotions and feelings through online comments or reviews about products or services on various media platforms can vary significantly. Social networks like Facebook and review websites like wongnai.com are two such platforms that showcase different patterns of consumer behavior. Consumers tend to prioritize their self-image and interactions with other members on social media, often resulting in a positive bias in their comments. However, on review websites, where consumers are usually unfamiliar with each other, comments tend to align more with the genuine feelings of consumers (Liu, 2021). Conflicting online reviews, whether positive or negative, can help consumers decide whether they need more information about a product (Ruiz-Mafe, 2018). Astudy conducted by Li investigated the effect of emotional intensity on perceived usefulness. The study analyzed data from 600,686 reviews of 300 popular U.S. restaurants on Yelp using text mining and econometric analysis. The results showed that positive emotional intensity had a negative impact on the perceived usefulness of the review, whereas negative emotional intensity had a positive impact (Li, 2020). Evidently, consumers’ perceptions and emotional responses play vital roles in their purchase intent, and online reviews can significantly enhance their confidence in decision-making.

2.5. Machine Learning

Machine learning (ML) is a powerful technique involving training machines or computers to learn from large datasets, known as training datasets, to find answers and make accurate predictions. This process involves applying various methods and algorithmsto the training data and then using these methodsto predict the outcomes of new datasets (Raschka & Mirjalili, 2019). There are three main types of machine learning:

1) Supervised Learning involves using past data or variables with known answers as training data to predict unknown values or future data. This process involves adjusting parametersto minimize the difference between the target and computed outputs (Jo, 2021). If the variables are discrete, this processis called classification, while if the data or variables are continuous, regression or prediction includes classification with decision trees or neural networks.

2) Unsupervised learning, on the other hand, involves studying data without known answers or relationships between variables. This type of machine learning is used to find relationships or group data with similar characteristics (Kalita, 2022).

3) Reinforcement Learning (RL) is a type of machine learning that enables computers to learn by interacting with their environment through trial and error, similar to human learning. This type of learning consists of two main components: the agent and the environment, where the agent interacts with the environment to learn. RL is based on Markov decision processes (MDPs), which require agentsto make decisions that account for environmental uncertainty and experience (Vamvoudakis et al., 2021). According to a predefined evaluation metric, the agent can receive a good score (Dong et al., 2020). RL aims to find the agent’s policy by maximizing the desired outcome (Palmas et al., 2020).

2.6. Decision Tree

Decision Tree is a popular algorithm used in supervised learning. This algorithm works without parameters, making it a valuable tool for classification and prediction tasks. The decision-making process starts at the root node, which is the starting point for the algorithm’s sequence of decisions. From there, branch nodes connect decision-making conditions, which divide the data into two or more branches based on the child nodes’ conditions. Finally, the algorithm reaches the end nodes, also known as leaf nodes, representing the outcomes obtained after the classification process. Decision Tree is a versatile algorithm used in various applications, including finance, healthcare, and marketing (Sumathi et al., 2022). The process of the Decision Tree is shown in Figure 1.

Figure 1: Decision Tree Structure

According to Figure1, the decision tree is a powerful tool known for its rule-based nature. In this approach, if-else rules are created based on the values of independent variables. The model does not rely heavily on equations dictating the relationships between independent and dependent variables. The approach is advantageous because it provides clear and easy-to-understand results, making it easy to apply in various scenarios.

2.7. Artificial Neural Network

Artificial neural networks (ANNs) are complex systems that possess the ability to learn and adapt from experience. They are designed to emulate the functioning of neural networks in the human brain, with operational units interconnected by an extensive network (Desai, 2021). An artificial neural network’s performance largely depends on its learning process, which involves setting the network architecture and relevant parameters (Du, 2019). Typically, the architecture of a multilayer perceptron neural network comprises an input layer, hidden layers, and an output layer. To better understand this architecture, see Figure 2, which provides a visual representation.

Figure 2: Architecture of the Multi-Layer Perceptron Neural Network

Each layer consists of a certain number of neurons, with data flowing continuously forward and the network error values spreading backward. The initial connection weights and criteria of the network start randomly. Then, a training process is employed by comparing the error values of the results with the actual values. The connection weights and criteria of the network are adjusted to reduce the error values until the results are close to the desired outcomes (Graupe, 2019).

2.8. Linear Regression Analysis

Linear Regression is a statistical method that helps to predict a dependent variable using one or more independent variables by establishing a linear relationship between the response variable and the predictor variables in a non-linear format. According to Ciaburro (2018), the primary objective of linear Regression is to determine the coefficients of the predictor variables (X) to showcase how these variables impact the response variable (Y), as depicted in the general equation of regression analysis in equation (1).

Y=a + b1X1 + b2X2 + b3 +…+ bnXn (1)

When it comes to studying relationships between variables, it’s important to understand the key terms involved. The independent variable, denoted as X, is the variable that is manipulated or changed in an experiment or study. On the other hand, the dependent variable, denoted as Y, is the variable that is being measured or observed. The intercept, denoted as a, representsthe value of the dependent variable when the independent variable is equal to zero. Lastly, the parameter, denoted as b, represents the degree and direction of the relationship between the independent and dependent variables. It’s important to keep these terms in mind when analyzing data and drawing conclusions.

2.9. Feature Selection

Feature selection is an essential pre-processing step in data analysis that involves reducing data size while maintaining the most appropriate data quality possible. There are several methods for feature selection, including Enter Regression, Forward Selection, and Backward Elimination. Enter Regression is a method of selectively introducing independent variables into the regression equation one at a time, using the criterion of the simple correlation coefficient. The process involves selecting the independent variable with the highest correlation with the dependent variable first and conducting a statistical test to determine if it can significantly predict the dependent variable. The process then continues by selecting the following independent variable in the order of relevance, and the best criteria are applied in each round when combined with previously selected variables. This process continues until no further independent variables can be added to the equation if deemed appropriate. Forward selection is similar to enter Regression, where independent variables are selected for the equation one at a time using the criterion of the simple correlation coefficient. The process involves selecting the independent variable with the highest correlation with the dependent variable and conducting a statistical test to determine if it can significantly predict the dependent variable. The process then continues by selecting the following independent variable in the order of relevance, and the best criteria are applied in each round when combined with previously selected variables. This process continues until no further independent variables can be added to the equation if deemed appropriate (Bhadra & Bandyopadhyay, 2021). Backward Elimination, on the other hand, is a method opposite to variable selection by stepwise addition. It starts with creating a regression equation that includes all independent variables. The p-value of each independent variable in the predictive model is then calculated (Nazarathy, 2021).

Subsequently, the variable with the highest p-value is considered, and its p-value is compared with the predefined significance level, such as Pr=0.05. The variable is removed from the equation if the p-value exceeds the specified significance level. The process is repeated with the remaining variables until no p-value exceeds the designated significance level. The variable selection process is terminated at that point, and the equation is considered appropriate. Besides reducing the data size, feature selection reduces the learning process’s complexity and overfitting. Overfitting occurs when a machine-learning model can make accurate predictions for the training dataset but fails to provide accurate forecasts for new data (Ba et al., 2023). This makes feature selection an essential step in data analysis and machine learning.

2.10. Method Evaluation

The confusion matrix is a valuable tool for evaluating the accuracy of binary classification or variables with only two groups of results. On the other hand, regression analysis uses different measurement methods, such as the R-squared value and mean absolute percentage error (MAPE) or root mean square error (RMSE), to estimate the relationship between a dependent variable and one or more independent variables.

Supervised learning is a type of machine learning that can measure accuracy because it uses a target as the starting point. This target value represents the expected outcome, and the model’s forecast values can be compared against it to measure the expected deviation from the initial data. Therefore, both classification and regression models can be evaluated for their accuracy, which indicates their efficiency.

2.10.1. Accuracy

The accuracy of a forecast model refers to its ability to make correct predictions. It is typically expressed as a percentage, calculated using equation (2).

(2)
[TeX:] \(\begin{align}\text {Accuracy}=\frac{\mathrm{TN}+\mathrm{TP}}{(\mathrm{TN}+\mathrm{TP}+\mathrm{FN}+\mathrm{FP})} * 100\end{align}\)

When evaluating the performance of a classification model, accuracy is one of the most commonly used metrics. It is calculated by taking into account four factors; true positive (TF), false positive (FP), true negative (TN), and false negative (FN). True positive refers to the number of correct positive predictions made by the model, false positive refers to the number of incorrect positive predictions made by the model, true negative refers to the number of correct negative predictions made by the model, and false negative refers to the number of incorrect negative predictions made by the model. By analyzing these factors, the accuracy of the model can be calculated, which gives an idea of how well the model is performing.

2.10.2. Recall

The term “recall” is used in machine learning to refer to a completeness score that indicates how well a model can select a significant amount of relevant information or answers in its predictions. This score is typically calculated using equation (3) and is an essential metric for evaluating the performance of a machine learning model. The recall score tells us how many relevant items were correctly predicted by the model out of all the relevant items in the dataset. A high recall score is generally desirable, as it indicates that the model can identify most of the relevant information or answers, even if it also produces some false positives.

(3)
[TeX:] \(\begin{align}\text {Recall}=\frac{\text{TP}}{(\text{TP+FN})} * 100\end{align}\)

2.10.3. Precision

Precision is a metric that determines the ability of a predictive model to filter out irrelevant answers or data. It serves as an indicator of the accuracy of the predictive model, as depicted by equation (4). Essentially, the higher the precision, the more effectively the predictive model is able to remove irrelevant information, leading to a more accurate and reliable prediction.

(4)
[TeX:] \(\begin{align}\text {Precision}=\frac{\text {TP}} {(\text {TP+FP})}* 100\end{align}\)

2.10.4. F-measure

The F-measure is a widely used evaluation metric that provides a comprehensive measure of the performance of a binary classification system. It is calculated by combining two critical metrics, precision and recall, into a single score. The resulting score provides an overall measure of the classification system’s effectiveness in correctly identifying positive cases while minimizing false positives and false negatives. The equation (5) is used to compute the F-measure score.

(5)
[TeX:] \(\begin{align}\text {F-measure}=\frac{\text {2.Precision.Recall}} {\text {Precision+Recall}}* 100\end{align}\)

2.11. Weight by Correlation

The Weight by Correlation operator is a highly useful tool for determining the relevance of attributes by computing the correlation value for each attribute of the input ExampleSet concerning the label attribute. This approach uses Correlation as a weighting scheme and returns the absolute or squared value of Correlation as the attribute weight.

The weight of an attribute is calculated concerning the label attribute using Correlation. The higher the weight of an attribute, the more relevant it is considered. Correlation is a numerical value that measures the degree of association between two attributes, X and Y. Correlation ranges from -1 to +1, where a positive correlation implies a positive association and a negative correlation value suggests a negative or inverse association. In the case of a positive correlation, large values of X tend to be associated with large values of Y, and small values of X tend to be associated with small values of Y. On the other hand, in a negative correlation, large values of X tend to be associated with small values of Y, and small values of X tend to be associated with large values of Y. Suppose two attributes are X and Y, with means X' and Y' and standard deviations S(X) and S(Y), respectively. The Correlation is computed as the summation from 1 to n of the product (X(i) X')∙(Y(i) Y') and then dividing this summation by the product (n 1)∙S(X)∙S(Y), where X(i)-X')∙(Y(i)-Y') and then dividing this summation by the product (n-1)∙S(X)∙S(Y) where n is the total number of examples and i isthe increment variable of the summation. In a positive Correlation, if an X value is above average, the associated Y value is also above average. Then, the product (X(i)-X')∙(Y(i)-Y') would be the product of two positive numbers that would be positive. If the X and Y values were below average, the product above would be of two negative numbers, which would also be positive. Therefore, a positive correlation is evidence of a general tendency that large values of X are associated with large values of Y, and small values of X are associated with small values of Y. In a negative correlation, if an X value was above average, and the associated Y value was below average, the product (X(i) X')∙(Y(i) Y') would be the product of a positive and a negative number, making the product negative. If the X value is below average, and the Y value is above average, the product above would also be negative. Therefore, a negative correlation is evidence of a general tendency that large values of X are associated with small values of Y, and small values of X are associated with large values of Y.

3. Research Methodology

3.1. Data Collection Methods

The researcher has conducted a comprehensive study, gathering data from various sources to use as input for analysis. Specifically, restaurant-related data was collected from the wongnai.com website within the Bangkok metropolitan area. This includes detailed information about restaurants, such as their categories, price ranges, parking availability, the number of reviews, credit card acceptance, Wi-Fi service, suitability for groups, provision of alcoholic beverages, website availability, delivery service, and review scores. Furthermore, Facebook information for the restaurants, such as check-ins, page likes, and followers, was also collected. In addition, population density data in the area was obtained from Bangkok’s Geographic Information System (GIS) Technology Center. Google utilized natural language AI to analyze the sentiment of the customers’reviews on wongnai.com. The sentiment analysis will provide valuable insights into the opinions about the restaurants. Lastly, all the gathered information was recorded in a database for the following data preparation steps.

3.2. Data Preprocessing Methods

The methodology employed for data analysis in this research involves utilizing advanced machine learning techniques. A detailed workflow diagram, as illustrated in Figure 3, showcases the step-by-step process of this data analysis approach.

Figure 3: Data Processing and Analysis Steps

3.3. Data Cleaning

To ensure accurate analysis, it is important to carefully examine and address any outliersin the data set. For instance, if certain restaurants’ values are missing due to incomplete information obtained from websites, these values must be replaced with appropriate substitutes. One common approach is to replace the missing factor values with 0, which allows for a more comprehensive and reliable analysis.

3.4. Sentiment Analysis

This involves analyzing customer feedback from online reviews, where customers who have used the restaurant services write their opinions on the wongnai.com website. Natural Language AI, a cloud service by Google, is used for this analysis. Machine learning can analyze unstructured text by understanding natural language (NUL). This is often used for sentiment analysis to understand customer opinions and obtain in-depth information that can be used to develop business products and services. The results are a score that can be interpreted as follows: 1) -1.0 to -0.25 represents negative sentiment, 2) -0.25 to 0.25 represents neutral sentiment, and 3) 0.25 to 1.0 represents positive sentiment.

3.5. Data Transformation

The researcher has transformed the data into a format suitable for analysis using machine learning techniques, as illustrated in Table 1.

Table 1: The Criteria for Data Transformation

3.6. Clustering

The researcher grouped restaurant types into three categories using the average price, a distinctive characteristic of each type. This was done to understand how each category has factors that influence the restaurant business’s performance differently. This research chose to use the K-means Clustering technique for grouping.

3.7. Feature Selection

The data size reduction process implemented in this study was performed while ensuring that the optimal data quality for analysis was preserved. This was done by utilizing the evolutionary selection technique to calculate the weights of the specified factors. The weight assigned to each factor was determined based on relevance, with the higher-weighted factors being considered more significant. The inclusion or exclusion of a factor was based on its weight calculated during the process. Various methods were used to select the variables, such as forward selection, backward elimination, and enter regression. The weights of the specified factors were calculated to reduce the data size while preserving the optimal data quality for analysis using the evolutionary selection technique. The higher the weight of a factor in the calculation, the more relevant it is considered. If a factor’s calculation results in a higher weight, it is retained. Conversely, if a factor’s calculation resultsin a lower weight, the factor is excluded from the data analysis process. The methods employed in this study include forward selection, backward elimination, and enter regression for variable selection.

3.8. Data Analysis

This study compares the predictive model performance created using machine learning algorithms with RapidMiner software. The models include decision trees, artificial neural networks, and linear regression analysis. The data was divided into two partsfor testing: the training dataset and the remaining data for testing, using the K-fold Cross-Validation method.

3.9. Method Evaluation

The performance of the prediction models was evaluated and compared by considering Accuracy and overall performance measured by the F-measure.

3.10. Weight by Correlation

Select factors influencing review scores reflecting the performance of restaurants by choosing a weight > 0.1.

4. Results and Discussion

4.1. Data Collection

We have conducted a comprehensive study and collected data from various sources using a program developed with C# .NET to retrieve web page content. The program has been designed to extract data from websites based on multiple factors observed on the web pages for a thorough analysis. The study has encompassed the following factors:

1) Restaurant data within the Bangkok area, selected from restaurants with a Facebook fan page and information on the Wongnai website, totaling 1,750 establishments. After a thorough review of errors and missing data, 113 entries were identified, resulting in a final count of 1,637 restaurants. The study has included various aspects such as restaurant categories, price ranges, parking availability, number of reviews, credit card acceptance, Wi-Fi service, suitability for groups, availability of alcoholic beverages, website functionality, delivery service, and review scores.

2) Facebook fan page data for restaurants, including check-ins, page likes, and follower counts.

3) Population density data in the area obtained from Bangkok’s Geographic Information System (GIS) Technology Center.

4) Sentiment level analyzed using Natural Language AI developed by Google, based on customer reviews for each restaurant on Wongnai.com.

The data will now be stored in a database for the data-cleaning process.

4.2. Clustering

To analyze the varioustypes of restaurants, we classified them into three distinct groups. To achieve this, the researcher utilized the K-means Clustering technique, which involved grouping the restaurants based on similar characteristics and features. The results of this analysis were then presented in Table 2, which provided a clear and concise illustration of the different restaurant types and their respective features.

Table 2: The Data on Categorizing Restaurant Types Using the K-means Clustering Technique

4.3. Forecasting Model

The research employs RapidMiner software to develop three forecasting models: Decision Tree, Logistic Regression, and Artificial Neural Networks. Cross-validation is used to evaluate the performance of each type, where the data is split into ten equal parts using the 10-fold cross-validation technique. Once the data is divided, variable selection is performed through Enter Regression, Forward Selection, and Backward Elimination. Finally, the performance of the best forecasting models from each type is compared. The findings of this research are asfollows: the Decision Tree model performed the best, followed by the Artificial Neural Network and Logistic Regression models. However, all three models showed similar accuracy levels, and the difference in performance was not statistically significant.

Based on the data presented in Table 3, it is evident that the artificial neural network is the most efficient algorithm for forecasting. This algorithm has considered all variables (Enter Regression) and achieved an impressive accuracy rate of 85.22%. Furthermore, the artificial neural network has emerged as the most efficient algorithm when considering the overall prediction performance based on the F-measure. It has displayed an overall prediction performance of 87.47%, which is a remarkable achievement in forecasting. These findings suggest that the artificial neural network is highly dependable and trustworthy for making accurate predictions.

Table 3: Comparison of the Performance of Forecasting Models for the Group of Low-priced Restaurants. (cluster_0)

Table 4 displays the outcomes of the enter regression method used to select the factors that affect the review scores of low-priced restaurants on social commerce based on the artificial neural networks forecasting model. The analysis revealed that Sentiment, Seats, Group, Wi-Fi, and Population Density are the crucial factors that influence the performance of low-priced restaurants. These factors were chosen based on their weight, which was greater than 0.1 (> 0.1).

Table 4: Comparison of Correlation Coefficients for the Group of Low-priced Restaurants

According to the experimental results, the best algorithm for forecasting is the artificial neural network. This algorithm uses the "Enter Regression" method, where all variables are considered, resulting in an accuracy of 91.08%. Additionally, when considering the overall prediction performance (F-measure), the artificial neural network outperforms other algorithms with an overall forecasting performance of 88.06%.

Table 5: Results of Comparing the Performance of Forecasting Models for the Group of High-priced Restaurants (cluster_1)

According to the data presented in Table 6, the artificial neural networksforecasting model hasidentified several key factors influencing the review scores of low-priced restaurants on social commerce platforms. These factors were selected using the enter regression method and were assigned a weight >0.1. The most significant factors were Sentiment, Price, Alcohol, CreditCard, and Like. These factors play a crucial role in determining the performance of low-priced restaurants on social commerce platforms. On the other hand, population density was identified as the least significant factor, which has a negligible impact on the review scores.

Table 6: Comparison of Correlation Coefficients for the Group of High-priced Restaurants

According to the data presented in Table 7, the artificial neural network algorithm has proven to be the most efficient in forecasting, outperforming all other algorithms by a considerable margin. The algorithm employs the backward elimination method for variable selection and has achieved a high accuracy rate of 85.46%. When assessing the overall forecasting performance (F-measure), the artificial neural network algorithm remains the most efficient, with an impressive overall prediction performance rate of 85.89%. In analyzing moderate-priced restaurants’ performance in social commerce, the backward elimination method was used with the artificial neural networks forecasting model. The result is presented in Table 8, which shows the factors influencing review scores. The factors were ranked based on their weight by correlation, with a weight > 0.1 being considered significant. The three factors most significantly impacting review scores were Sentiment, Seats, and Price. On the other hand, the factor with the most negligible effect was CreditCard.

Table 7: The Results of Comparing the Performance of Forecasting Models for the Moderate-priced Restaurant Group (cluster_2)

Table 8: The Results of Comparing Correlation Coefficients for the Group of Moderate-priced Restaurant.

5. Conclusions and Future Work

The study conducted on restaurants using artificial neural network (ANN) techniques revealed that these techniques provide the most accurate forecasting performance across all types of restaurants. Hence, they can be effectively employed to build models for forecasting the performance of restaurant businesses on social commerce platforms. The research has also identified the key factors that influence the review scores of restaurants, reflecting customer satisfaction levels within each restaurant category and price range. The selection process identified factors significantly correlated to each category’s restaurant review scores. These factors can be summarized as restaurant business recommendations, which can help them improve their overall performance. Regarding internal factors, the study found that the price level had the most significant impact on customer satisfaction, especially for restaurant categories with mid-range and high price ranges. Seating capacity also affected low- and mid-range price categories, while population density influenced customer satisfaction. Therefore, adequate seating should be provided to accommodate large numbers of customers. Regarding other services, offering Wi-Fi is another factor that can attract customers to low-priced restaurants. For high-priced restaurants, consideration should be given to accepting credit cards and providing alcohol. Regarding social media marketing, the level of online review comments hasthe most significant impact on customer decision-making across all restaurant categories. Specifically, the number of likes on Facebook, which restaurants can use as a platform for publicity, influences customer satisfaction levels, particularly for high-priced restaurant categories.

In summary, the study found that the sentiment level is a crucial factor that influencesthe review scores of restaurants, reflecting customer satisfaction levels and ultimately impacting the performance of restaurant businesses on social commerce platforms at every price level. This underscores the significant role of word-of-mouth marketing in the restaurant business, particularly in the high-priced category. Using other social media platforms, such as Facebook, can effectively enhance consumer awareness, reducing restaurant operators’ concerns regarding place-oriented marketing strategies and lowering operational costs to maintain competitiveness. Therefore, the research should focus on analyzing sentiments from various perspectives and categorizing reviews by content type to extract valuable insights for efficient utilization in the social commerce domain for restaurant businesses. Additionally, the variety of the types of foods may be another crucial factor to consider when evaluating restaurant services.

Acknowledgment

The authors creating this document wish to extend their heartfelt appreciation to Asst. Prof. Dr. INTISARN CHAIYASUK, who holds a Doctor of Philosophy in English and Applied Linguistics from the prestigious University of Birmingham in the United Kingdom, for his invaluable contribution in ensuring this document's linguistic accuracy and precision. We are immensely grateful for his time and expertise, which greatly contributed to the success of this project.

Ack

References

1. 

.

2. 

.

3. 

.

4. 

.

7. 

.

8. 

.

9. 

.

10. 

.

11. 

.

12. 

.

13. 

.

14. 

.

15. 

.

16. 

.

17. 

.

18. 

.

19. 

.

20. 

.

21. 

.

22. 

.

23. 

.

24. 

.

25. 

.

26. 

.

27. 

.

28. 

.

29. 

.

30. 

.

31. 

.

32. 

.

33. 

.

34. 

.

35. 

.

36. 

.

37. 

.

38. 

.

39. 

.