Intelligent Gamification Mechanics Using Fuzzy-AHP and K-Means to Provide Matched Partner Reference

Players in the Small and Medium System (SME) collaboration gamification system need suitable partner references to support the goals of their activities. This study aims to build an intelligent system gamification mechanics model to provide the proper partner reference for players. The following steps are carried out sequentially in carrying out this research. First, analyze needs for a recommendation model that supports partner reference. Second, design an intelligent system formula using the Fuzzy-Analytical Hierarchy Process (Fuzzy-AHP) and K-Means algorithms to obtain partner reference recommendation patterns and segmentation of similarity of interests between partners. Third, compile the scenario of recommendation model mechanics which involves actors and activities involved in the model. Fourth, design use cases and activity diagrams to translate scenarios in the form of program flow. Fifth, code programs related to use cases and activity diagrams. The sixth is to conduct experiment with the prototype results to test all the functions of the proposed model. Fuzzy-AHP produces a weight for each tested data which can be claimed as a ranking, with the highest weight value being 9,980. K-Means produces 3 clusters in which, based on this experimental data, the third cluster has the most members. Both models are realized in the dashboard, and referring to experiments from 63 respondents, the model shows its performance by displaying SME rankings and clusters according to the data and criteria being tested. Intelligent system algorithms are to develop models of gamification mechanics, primarily to support player decisions in determining more effective game steps. This model can work well if sufficient data requirements support it. Therefore, the proposed mechanics depends on game activities, and more data are available to be extracted and produce more precise recommendations.


Introduction
Small and Medium Enterprise (SME) is one of the essential components of the country's economy because its existence contributes to the absorption of labour and an increase in per capita income. However, there are many challenges faced [1][2][3]. Some of the challenges include weak information exchange and low activity and retention and motivation to collaborate [2,[4][5][6][7]. Several studies reported that SMEs are reluctant to collaborate because of the lack of information regarding appropriate partner references in collaborating [1,2] and the lack of e ective exchange of information and good knowledge extraction between SMEs [4,8].
Meanwhile, partner reference recommendations are an important part of collaborating activities [1,8].
e accuracy of partner references determines the success of the collaboration between SMEs [1,8]. Appropriate partner references are coming from aspects of similarity of interest, mutual need, and interdependence [1,1,2,4,8]. e results of the review study found nine (9) studies that proposed matters relating to extracting data on SME [1,2,4,[8][9][10][11]. Most of these studies are at the conceptual level (8 studies), where the topics are mostly by the proposed concept of data extraction models for information exchange. It can indicate that SME data extraction research development is mostly still at the conceptual level, which is still broad to be developed, and subsequent research needs to develop further to create more concrete and specific models. Meanwhile, one study proposes extracting data related to collaboration partner references and has become a partner reference model. However, it still has weaknesses in only single criteria and is generated from data that are difficult to calculate, so it is prone to bias [11]. Related to the literature review, there are still few appropriate approaches for presenting references for suitable SME partners in collaborating, and there are not many appropriate mechanisms for collecting and extracting information into new knowledge in exchanging information within the SME network [1,2,4,8].
Concerning collaboration problems that collaboration retention is small, so the collaboration framework approach can be chosen out from how attractive or acceptable the characteristics of the approach are. ere is a gamification approach that is currently being developed and has become part of the lifestyle of today's society and aims to increase user participation and motivation and try to influence user behavior [12][13][14]. Gamification is the process of imitating a fun and even addictive gameplay atmosphere while players complete nongame tasks [14][15][16]. Gamification seeks to bring together functionality and engagement to increase functionality, productivity, and satisfaction, create more experiences, drive behavior, and generate positive business impact [17]. Showing the principles of the MDE framework model, the essential components of gamification consist of mechanics, dynamics, and emotional where each of these components cannot be separated because the mechanical element (M) will create the dynamics of the game and create its emotional atmosphere for the players [17][18][19]. e success of the gamified system lies in the application of game mechanics according to the characters of players [19]. Gamification is suitable as an SME collaboration framework platform regarding its characteristics. We expect to make collaboration more exciting and increase retention. So, going from the two problems, a solution is needed by building an intelligent system in a collaborative gamification mechanics model that can provide knowledge extraction to produce a suitable reference partner for SME actors.
Several intelligent systems approaches can be applied in this research. Among them is the fuzzy-analytical hierarchy process (Fuzzy-AHP) which has the potential to provide a more precise weight value in completing the weighting of data with several criteria [20,21]. Fuzzy-AHP has the advantage of being able to weigh more precisely than data criteria that have more subjective characteristics and are uncertain so that the resulting reference is claimed to be more precise [21][22][23]. While the K-Means clustering approach has the potential to group objects based on their characteristics [24] so that objects with the same characteristics are grouped in the same cluster and objects with different characteristics are grouped into other clusters [25,26]. is condition fits the mapping needs and position of each SME to make it easier for them to identify partners who have the same interests.
is study introduces the proposed "Intelligent Gamification Mechanics (IGM)" model. is model embodies gamification mechanics made from an intelligent system to provide knowledgeable recommendations to players. e IGM formula uses the fuzzy-AHP algorithm [24] and K-Means [25] to provide two knowledge recommendations that support each other in providing a suitable partner reference.
e fuzzy-AHP formula produces recommendations for ranking suitable SME partners [27]. e K-Means formula produces SME segmentation mapping that provides information on the position of players in groups who have the same interests and potential to collaborate. e model is built in the gamification platform to make the model more attractive and interactive. is model can be included in a collaboration framework to provide recommendations for suitable partner references for collaborators.
is study reports the results of our research on the performance of the IGM model. e experiment used 63 respondent data according to the criteria used in the algorithm. e prototype demonstrates the model's ability to present a suitable ranking of SME partners while at the same time presenting the mapping/positioning of SMEs in groups that have the exact needs and great potential for collaboration. is research resulted in 3 contributions: first, an intelligent system formula in gamification mechanics; second, a leader board prototype that displays suitable partner ranking and SME segmentation mapping. Future research can apply or develop this model to improve collaboration partner references in various fields. e model can be developed by adding criteria and the number of clusters as needed, and the results can be compared and analyzed.

Materials and Methods
ere are five method steps ( Figure 1). First, analyze the need for a recommendation model that supports the provision of appropriate partner reference information. Second, design an intelligent system formula using the fuzzy-AHP and K-Means algorithms to obtain partner reference recommendation patterns and segmentation of similarity of interests between partners.
ird, develop a scenario of recommendation model mechanics by involving the actors and activities involved in the model. Fourth, design use cases and activity diagrams to translate scenarios in the form of program flow. Fifth, code programs containing use cases and activity diagrams. e sixth is to experiment with the prototype results to test all the functions of the proposed model. e first stage is to build an intelligent system formula to produce two recommendation models. 2 Discrete Dynamics in Nature and Society 2.1. Fuzzy-AHP Algorithm. Fuzzy-AHP was first proposed by Chang which is a direct development of the AHP method which consists of matrix elements represented by fuzzy numbers [20,21]. Fuzzy-AHP is a combination of the AHP method with fuzzy concept approach. Fuzzy-AHP covers the weaknesses found in AHP, namely, problems with criteria that have more subjective characteristics [20,21,26]. A scale order represents the uncertainty of numbers. e Fuzzy-AHP method uses a fuzzy ratio called triangular fuzzy number (TFN) and is used in the fuzzification process. TFN consists of three functions. e membership consists of the lowest score (l), the middle grade (m), and the highest grade (u) [21,26]. e steps of the FAHP method are as follows [20,21]: (1) Arrange problems in a hierarchical form (2) Compile a comparison matrix between all elements/ criteria (3) Calculating the value of the consistency ratio from the results of the comparison matrix, calculation with the condition that the CR value is 0.1 (4) Change the weighted results into fuzzy numbers using the TFN scale (5) Calculate the fuzzy geometric mean and fuzzy weight (6) Determine the fuzzy priority for each alternative using linguistic variables In this study, SME partner ranking recommendations apply the fuzzy-AHP algorithm with four criteria: scope, market, product, and marketplace. All fFuzzy-AHP steps and formulas are compiled and tested with dummy data to ensure correct calculations.

K-Means Algorithm.
e K-Means algorithm is unsupervised machine learning algorithm. In the data analysis process, K-Means clustering is a method that performs data grouping with a partition system [24][25][26]. K-means clustering is also a non-hierarchical cluster analysis method that seeks to partition existing objects into one or more clusters or group objects in regard to their characteristics. Objects with the same characteristics are grouped in the same cluster. Objects that have different characteristics are grouped into other clusters [26,28]. K-Means steps are as follows [28][29][30]: (1) Perform data preprocessing followed by data transformation; then, determine the number of clusters (Number of K) Player SME Segmentation leaderboard SME Database (2) Choose a centroid at random as many as the specified number of K (3) Calculates the rarity of the centroid to the object and grouping connected with the minimum distance (4) Check if the object moves; then, the iteration process continues (5) If the object does not move, the last cluster is recorded as the result of the cluster formed In this study, recommendations SME segmentation applies the K-Means clustering algorithm by determining three clusters and the centroid at random. K-Means calculates data containing four criteria (scope, market, product, and marketplace). After the K-Means step is declared, the formula is tested with dummy data to ensure the correctness of the formula calculation. e second stage is to define the mechanical components, including the player and the leader board. e player is defined by definition, status, and access rights, while the leader board is defined by description, user interface, and access pattern. en, the third step is to define the rules and requirements to reach the goal, namely, player rankings and segmentation are displayed on the leader board accurately. en, the second and third steps produce a mechanics movement module. e fourth step is to compose a mechanics narrative according to the mechanics movement module completed. In this stage, the mechanics are equipped with detailed steps of each path from actor to system or vice versa and from system to system or actor to actor. is narrative also explains the origin of the data processed in the intelligent system. e fifth stage is to complete the mechanics with use cases and activity diagrams that serve to translate the program flow and all activities in mechanics. After this stage is complete, the model is ready to be implemented in the coding program at the next stage. e fifth stage is coding this program using a web programming language with the coding flow following what has been described in the use case and activity diagram. en, the completion of the fifth stage means the IGM prototype is ready to be tested. e last stage is to experiment by entering data from 63 respondents with the condition that the data have been preprocessed and transformed. Respondent data include general identity and four criteria used in the intelligent system formula. Experiments were carried out to observe all prototype functions and the performance results of the IGM model.

The Proposed Model
is section reports the details of the proposed model related to the method steps described in Figure 1. Figure 2 describes the general flow of the IGM model. e model is built on a gamified platform that adopts a leader board and dashboard to showcase the mechanics of the intelligent system.
From Figure 2, the model is detailed to the following steps to describe the flow of the proposed model.

SME Reference Formula with Fuzzy-AHP.
is section describes the flow of the player reference formula with fuzzy-AHP using dummy data. e first step in the fuzzy-AHP process is to tabulate the data using dummy data (Table 1) as an experiment to ensure the model works correctly. In Table 1, dummy data are presented in the form of 4 data on SME players who will be ranked as reference partners along with four criteria possessed by players, namely, SME, scope, market, product, and marketplace. ese four criteria were chosen by considering the analysis of the needs and availability of SME data, which of course can change if applied to data in different situations and fields.
Triangular fuzzy number (TFN) is used in the fuzzification process which consists of three membership functions, namely, the lowest value (l), the middle value (m), and the highest value (u) [20,26]. Determination of TFN is guided by linguistic variable and triangular fuzzy number (Table 2).
Step 1: define a priority comparison of criteria using the TFN scale (Table 2). Previously, the following were the guidelines for determining the TFN scale out from the weight of each criterion in reference to expert opinion and literature review [2,3] in the SME sector by adjusting the TFN value guidelines (Table 3). en, determining the priority value between criteria (Table 4) is to determine the value of 1 for two criteria that have the same value and find the difference for the two criteria that have different values.
Step 2: determine the comparison of paired matrices between criteria with the TFN scale in the decimal value (Table 5).
Step 3: determine the fuzzy synthesis (S i ) limit value referring to the FAHP calculation step fuzzy formula (S i ): calculates the total lower value in each column, and here is an example of C1: For the total value of lower, c 2 � 2.20, ·c 3 � 5.50, and c 4 � 5.17, using the same method according to the data in Table 5,  Intermediate of 7 to 9 (7/2, 4, 9/2) (2/9, 1/4, 2/7) 9 Equally strong (4, 9/2, 9/2) (2/9, 2/9, 1/4) For the total value of the median, C2 � 2.62, C3 � 7, and C4 � 6.17, using the same method according to the data in Table 5, Calculate the total upper value in each column and here is an example of C1: For the upper total value, C2 � 3.73, C3 � 6.67, and C4 � 8, use the same method according to the data in Table 5: Calculating fuzzy synthesis value at lower, we obtain To calculate S 2 , S 3 , and S 4 , use the same formula as the data reference in Table 6. Calculate the value of Fuzzy synthesis on the median: To calculate S 2 , S 3 , and S 4 , use the same formula as the data reference in Table 6.
Calculating the value of fuzzy synthesis on upper, we obtain To calculate S 2 , S 3 , and S 4 , use the same formula as the data reference in Table 6.
Step 5: determine the value of the fuzzy-AHP's priority vector (V) using the FAHP calculation step, specifically in equation (12). Determine the vector's value using the following equation: m i is triangular fuzzy number of Ci criteria. Calculating the vector value (C1) containing Table 7 data, we obtain as follows: 3 as value m 1 ≤ m 3 ⟶ 0.20 ≥ 0.35,   � 0.122, To calculate the vector in the next cells, we use the same equation, where all the priority vector results have been presented in Table 8.
Determining the value of the defuzzification ordinate is for k � 1, 2, . . ., n, k ≠ i; then, this process produces a vector weight. en, the application is d ′ (C 1 � min(C1, C2, C3, C4)) so that it produces data as in Table 9.
Step 7: normalize the value of the fuzzy vector weight (W) going from the FAHP calculation step in equation (6).

Normalization of fuzzy vector weight value (W) is
where A 1 � 1, 2, . . ., n is the decision element.
After the normalization of the W^' equation, the normalized value of the vector weight (see Table 10) is like equation (7): where is W is nonfuzzy number and value of W � 1,
en, carry out the process of normalizing the weight vector of each criterion that represents the weight of each alternative with the total number of weight values equal to 1. en, rank decision results by calculating the total score with equation (9).
where S j � score, S ij � the weight of each criterion which represents the weight of S j , and W i � weight of every criteria. e outputs of these calculations determine which score is the highest. e score with the greatest recommendation is the best. Table 11 contains the maximum and minimum values for each criterion.
Considering the vector weight on the criteria (W) using equation (9), the following procedure is used for C1: For C2, C3, and C4 using the same equation formula, then the overall result of the weight vector value is shown in Table 12.
Determine the score by multiplying the weight vector (w) ( Table 9) by the weight vector (w) for each criterion (Table 12), which represents the weight of each, as shown in equation (9). e overall score in alternative 1 (A1) is calculated as follows:   From the fuzzy-AHP ranking results, the SME ranking is generated according to the criteria set in the fuzzy-AHP calculation (Table 13). e ranking results in this model use dummy data to ensure that the process input and output functions have been running according to the target. e value of the weight score determines the ranking results. e higher the value, the higher the ranking of an alternative.
is model is devoted to ranking SME players according to suitable criteria for collaborating with a player. e higher the weight score is, the higher the ranking of SME partners chosen to be suitable partners. From testing with dummy data, the ranking of the data is shown in Table 14.

SME Segmentation Formula with K-Means
Step 1: tabulate the data using dummy data. en, determine the number of clusters in the first iteration, wherein determining the number of clusters and the position of the cluster (denoted K) in the first iteration is determined randomly [29]. In this model design, 3 (K � 3) clusters are determined by choosing randomly from the data with the details of the data centroid in Table 15. en, it can be notated as C1 (2,1,1,1), C2 (3,3,3,3), and C3 (2,2,4,2).
Step 2: calculate the distance value of the data to the centroid using the Euclidean distance formula (equation (10)): Showing the data in Table 14, the data distance from the centroid of each criterion is as follows To get (S n , C 1 ), Furthermore, the data D(S n , C 1 ) use the same method as the calculation results in Table 11 column Cr1. We use the same formula to get D(S n , C 2 ) and D(S n , C 3 ), and the result is described in Table 16.
Step 3: group the data according to the centroid by grouping the data according to the shortest distance of each item. is process can be calculated by finding the smallest value among the values, D(S n , C 1 ), D(S n , C 2 ), and D(S n , C 3 ). e cluster is determined containing the smallest value obtained by one of the Euclidean distance values in each item set. e results of determining the cluster can be seen in Table 17.    C2 C3 C4 A1-SME 1 1 0 0 0 A2-SME 2 1 0 1 1 A3-SME 3 0 1 1 1 A4-SME 4 0 0 0.5 1 Table 13: Vector weight value (w) specification criteria.
Step 5: the process of repeating the iteration as before with different data centroids, namely, calculating the distance value of the data to the centroid, using the Euclidean distance formula (10) Consisting of the data in Table 13, the data distance from the centroid of each criterion is as follows.
To get D(S n , C 1 ), Furthermore, the data D(S n , C 1 ) use the same method as the calculation results in Table 19 column Cr1. We use the same formula to get D(S n , C 2 ) and D(S n , C 3 ).
Step 6: group the data according to the centroid by grouping the data according to the shortest distance of each item. is process can be calculated by finding the smallest value among the values, D(S n , C 1 ), D(S n , C 2 ), and D(S n , C 3 ); the cluster is determined as concerning the smallest value obtained by one of the Euclidean distance values in each itemset. e results of cluster determination can be seen in Table 20.
From the results of the second iteration, there is no change in the position of the cluster, so the iteration process stops until the second iteration, and the resulting cluster is as presented in Table 21.

The Experiment Result and Discussion
e experiment uses SME data of 63 respondents' data inputted into the prototype. Figure 3 shows the results of the recommendations generated from the ranking of SME partners with fuzzy-AHP. e results display the identity of the name, email address, and score of the fuzzy-AHP which aims to provide and facilitate information for players to continue their actions after being recommended by the system. ese results are constantly changing according to changes in player data in the game. Rankings are displayed in a dashboard accessible to recommended players and partners. e prototype shows its ability to present SME rankings according to the criteria data that have been used as test material. Figure 4 shows the results of the recommendations generated from SME segmentation with K-Means. Cluster 1 produces four players, cluster 2 produces 41 players, and cluster 3 produces 18.
ese results constantly change according to changes in player data in the game. e SME segmentation is displayed on the leader board so that all the players involved can see their position in the cluster. ey can continue to collaborate in regard to the cluster recommendations generated by the system, considering that they have many characteristics and interests in common.
Experiments show that the model can provide recommendations for SMEs' knowledge for collaboration.    Figure 3: SME ranking using fuzzy-AHP. Figure 4: SME segmentation using K-Means. 12 Discrete Dynamics in Nature and Society However, this result depends on the adequacy of the data processing. e extensive and valid data affect the accuracy of this model in the analysis. For this reason, anticipation needs to be considered in the prototype to ensure that the data inputted by players are correct and consistent.

Conclusion
e Intelligent Gamification Mechanics (IGM) model makes essential recommendations for SME actors to collaborate to provide the proper reference for SMEs to establish cooperation to make it more useful and on target. SME ranking and SME segmentation work complementarily to support players' decisions in cooperating. e proposed intelligent system mechanics model has demonstrated its proper function using the experimental test of SME actor respondent data. At the same time, the dashboard and leaderboard function well and can present the mechanics of the intelligent system in a gamification-based prototype specification. e availability of data will determine the results of the IGM analysis. In line with that, the characteristics of the data and the expected solution of the problem raised also determine the weighting criteria in the fuzzy-AHP model and also determine the number of clusters in the K-Means. erefore, further research needs to be developed and anticipated changes in respondent data that are up to data and sustainable so that IGM performance can be optimal. is study can also be the initiation of future research on the development of gamification mechanics based on intelligent systems. Gamification in presenting partner references is needed in other fields, and it is necessary to test the performance of this model in solving these problems. For this reason, the implementation and development of this proposed model is still wide open.
Data Availability e data are available from the corresponding author upon request.