International Journal of Electrical and Computer Engineering (IJECE) Vol. No. February 2017, pp. ISSN: 2088-8708. DOI: 10. 11591/ijece. Serious Games Adaptation According to the LearnerAos Performances Amine Belahbib. Lotfi El Aachak. Mohamed Bouhorma. Othman Bakkali Yedri. Slimani Abdelali. Elouaai Fatiha Computer Science. Systems and Telecommunication Laboratory (LIST). Faculty of Sciences and Technologies. University Abdelmalek Essaadi Tangier. Morocco Article Info ABSTRACT Article history: Basically, serious games provides enjoyment and knowledge, several researches in this field have focused into joining these two proprieties and make the best balance between them, in order, to provide the best game and enjoyable game experience and ensure the learning of the needed knowledge. Players differ and their knowledge background can be a lot different from one to the other. This study focused on how the SG adapts and provide the needed knowledge and enjoyment. The game should analyze players behavior from different angles, thus it can add difficulty, information, immersion or enjoyment modules to fit the player skills/knowledge. Received Aug 28, 2016 Revised Oct 26, 2016 Accepted Nov 10, 2016 Keyword: Adpatation E-learning Multi-Agents system Neural Network Serious Games Copyright A 2017 Institute of Advanced Engineering and Science. All rights reserved. Corresponding Author: Amine Belahbib. Computer Science. Systems and Telecommunication Laboratory (LIST). Faculty of Sciences and Technologies. University Abdelmalek Essaadi Tangier. Morocco. Email: amine. belahbib@gmail. INTRODUCTION Learning through serious games has become one of the most popular teaching methods used to transfer both knowledge and skills to the learners, in several fields. The use of this kind of video games may even lead to superior learning compared with traditional instructional methods . , . Despite the effectiveness of these tools in the field of education, several problems related to understanding and motivation can happen, related to the capacity and the level of learning which differs from a learner to Indeed, the adaptation of such video games according to the learner performance can be beneficial, and can resolve the several encountering problems. The adaptation of serious games can impact several elements like the game world and its varied objects, the layout of the game world can be made simpler for underachieving players . the game play mechanics by adjusting the difficulty to provide player aim assistance, according to individual skills . attributes of the non-player characters in the game based on the artificial intelligence algorithms . , the game storytelling by adapting the sequence of events to the pace or the behavior of the player . and the flow of events and actions during the game sequence by monitoring the playersAo actions and based on that certain points in the plot are included in the game . The process of the study consists in the first step to analyze serious games already on the market and break it into skills/knowledge proprieties. then as a second step, to study several serious games and extract all the proprieties Table 1 that can be adjusted by using several learning algorithms. Journal homepage: http://iaesjournal. com/online/index. php/IJECE A ISSN: 2088-8708 Table 1. Knowledge and Game Skills Properties Knowledge Observation Logic Memory Manage Gaming skills Speed Duration Endurance Precision Decision Making The nature of these proprieties leads us to separate knowledge from Gaming skills, this is said, the necessity to make three levels for each propriety . asy, normal, and har. Knowledge levels will rely on the rate of use and showing messages / graphics to inform the player. On the other hand gaming skills will rely on the level of difficulty or rate of appearance in the game. Assuming that the game will follow one specific scenario which should be accurate and rich in term of graphics, we can make the game adapt each of the said proprieties according to the available levels to fit the learner knowledge and skill. To make it simple, we have specified just three levels in each property, but nothing stops us from making the levels being a percentage or other specific number of levels. The current paper presents a serious game called EQUAFUN, which teaches the students how to solve mathematical equation in an easy and fun way, the proposed serious game is equipped with a system of adaptation based on the learnersAo performances, in order, to adapt the game according to the level of the A discussion of the obtained result with the future research work in the field will conclude this paper. RELATED WORK According to an experiment conducted in the paper: Player Performance. Satisfaction, and Video Game Enjoyment . , it shows how the difficulty can affect the satisfaction of the player, as a result, too easy games leads to boredom and too hard games may lead to frustration. Based on these results we take into consideration the player profile, players that might have different levels of knowledge and gaming skills. However, in this study, we focused on 5 attributes, resulting the adaptation of three game skills. Player Satisfaction According to an experiment conducted in the paper: Player Performance. Satisfaction, and Video Game Enjoyment . , it shows how the difficulty can affect the satisfaction of the player, as a result, too easy games leads to boredom and too hard games may lead to frustration. Based on these results we take into consideration the player profile, players that might have different levels of knowledge and gaming skills. However, in this study, we focused on 5 attributes, resulting the adaptation of three game skills. Artificial Intelligence According to the study Rapid Adaptation of Video Game . AI Difficulty scaling is one of the main elements that should be adaptable using AI, but talking about the difficulty is quite large as a concept, and again the background/profile of the player is the main repair to know if the game is easy/difficult. In this paper, we focused on the player, in order to get his intellectual level to adapt the game accordingly and in addition, the game should be able to learn and collect information from players the more games are played. SERIOUS GAME ADAPTATION The main objective of this current paper is to adapt a serious game based on several parameters related to the learner behaviors during the game and the adaptation will be done by using a variety of machine learning algorithms, e. Auneural network, decision treeAy, the description of the proposed serious game and the establishment of the hall system will be described in this section. The Propsed Serious Game AuEQUAFUNAy The following game AuFigure. 1Ay presents the adaptation approach, the game is based on five of the basic attributes (Age. Sex. Average of response time. Number of wrong answers. Number of redundant fault. in order to produce the adapted game. The goal of the game is to teach kids how to solve simple equation by using a balance and fruits, the player will have one unknown bag and other types of fruits, it is a kind of representation of equations like: ax b=0. The player should drag the fruits from one side to another until they deduce the weight of the unknown bag. IJECE Vol. No. February 2017 : 451 Ae 459 IJECE ISSN: 2088-8708 Figure 1. Screenshots from the EQUAFUN Serious Game These figures show the first level where the player tried two fruits. Auorange/appleAy, but the game still unbalanced, the player moved away the apple and left the orange, this result a correct balance. This way the player knows that the unknown bag contains an orange, so he should drag it to the result on the bottom of the screen. The game adapts according these basic attributes devided to two types. Constant attributes (Age. Se. and Dynamic attributes (Average of response time. Number of wrong answers. Number of redundant These attributes are chosen according to the gameplay and type of game, in our case we took all the attributes present in this game. The said attributes are used in a way to adapt and change the game content according to the player needs, in order to to make the relation between the player input and the game output, our adapted game relies on these deduced three propreties: logic, memory and speed. The deduction of each proprity is done using some of the basic attributes taken as entrance while the player is playing the game: Average of response time => Speed If the player is slow in resolving levels we will add more allowed time in the next levels before decreasing it further in the game advancement. The Number of wrong answers => Logic If the player makes a lot of errors based on logic, the game will try to advance slowly in logic difficulty, adding other parallel balances. Number of redundant faults => Memory If the player is making a lot of redundant errors the game should slow down the advancement and try to show more redundant problems using more fruits. As result, while game is played, these propreties (Speed. Logic and Spee. will change to fit the level of the player, the game itself will rely on the level of each of the proprities in order to provide the adapted game that fit the player's current level. System Architecture As mentioned above the hall system is based on a multi-agents system MAS. The MAS is composed of several entities called intelligent agents connected each other in order, to solve problems that are difficult or impossible for an individual agent. As show in the Figure 2, the architecture of the proposed system is divided on two principal parts, the first part represents an application server where the proposed serious game is deployed. The actions and learnerAos behaviors are saved in a database, in order, to be analyzed or used by the agents later. By cons the second part is established by using JADE . The proposed MAS, is composed of two agents. The first one is the predictor agent, its role is to predict the player performance during the game sequence, and this agent is established by using artificial neural network. The second one is the decision maker, it takes a decision to adapt the game according to both learning level and performance of the player, there is a communication between the two agents the predictor evaluates the learners and sends this information into decision maker that adapts the game, and all of these operations are made in real time. Serious Games Adaptation According To The LearnerAos Performances (Amine Belahbi. A ISSN: 2088-8708 Figure 2. MAS Architecture for the propsed serious game The information saved into the database, are show in the Table 2, these information will be operated also by the tools of learning analytics and educational data mining, to have a global view on the progression of all the learners. Table 2. Database Attributes Knowledge Age Sexe Average of response time Number of wrong answers Number of redundant faults The Predictor Based on Artificial Neural Network The predictor is an agent of MAS that predicts the learnersAo performances during a game sequence, this current agent is established by using one of the learning machine algorithm called neural network NN, the NN is a field of Artificial Intelligence that allows finding the data structures and algorithms for learning regression, and classification of data, by inspiration from the human brain. It has been developed as generalizations of mathematical models of biological nervous systems. A first wave of interest in neural networks emerged after the introduction of simplified neurons . The signal flow from the inputs is considered to be in one direction. The neuron output signal O is given by the following relationship described below: (Oc where Wi is the weight vector, and the function f . is referred to activation function. The variable net is defined as a scalar product of the weight and input vectors. net = wT x = w1x1 w2x2 A wnxn where T is the transpose of a matrix, the output value O is computed as: where is called the threshold level. and this type of node is called a linear threshold unit. IJECE Vol. No. February 2017 : 451 Ae 459 IJECE ISSN: 2088-8708 The NN architecture AuFigure 3Ay of the predictor agent is composed of three layers Auinput, hidden and output layersAy, in each layer there is a node called Bias. The characteristic of the NN architecture is detailed in Table 3. Figure 3. Neural Network Architecture for the Predictor Table 3. Database Attributes Element Input layer Hidden layer Output layer Activation function Learning algorithm Training error Threshold Learning rate Value 5 nodes 3 nodes 3 nodes Sigmoid Resilient back propagation As described in the table above, there are 5 nodes . ge, sex. Average of time response, number of wrong answers and number of redundant fault. in input layer, five nodes in the hidden layer and three output nodes those nods have three values (G. M and B), which are good. Medium and bad, the activation function is a sigmoid for each node by cons the learning algorithm is the resilient back propagation . , the chosen algorithm has advantages in training speed and efficiency. The Decision Maker Based on Descion Tree The second agent in the proposed system is called the decision maker. its role is to take decisions, in order, to adapt the serious game according to several parameters like the result of the predictor agent Aucalculated through the neural networkAy, the number of wrong answers, the average of the time taken by the learner and the number of the redundant faults, all these parameters will build dynamically a decision three . The decision tree is formalism for expressing such mappings and consists of nodes linked to several sub-trees and leafs or decision nodes labeled with a class which means the decision. The C4. is the learning algorithm that will generate the three according to the data saved in the the proposed algorithm is an extension of ID3 algorithm. it builds decision trees from a set of training data in the same way as ID3 by using the concept of information entropy, the algorithm of C4. 5 for building the decision tree is described below: Check for base cases For each attribute a: Find the normalized information gain ratio from splitting on a. Let a_best be the attribute with the highest normalized information gain. Create a decision node that splits on a_best. Recur on the sublists obtained by splitting on a_best, and add those nodes as children of node. Serious Games Adaptation According To The LearnerAos Performances (Amine Belahbi. A ISSN: 2088-8708 The Figure 4 presents an example of the decision tree generated dynamically from the data saved in the database and with the use of C4. 5 learning algorithm. The attributes AuInputsAy that feed the decision tree are: the result of the predictor agent Aucalculated through the neural network, according to the learnerAos performanceAy, the number of wrong answers, the average of the time taken by the learner and the number of the redundant faults. By cons the classes AuOutputsAy are: logic, reflex, memory and speed Figure 4. The Decision Tree of the Decidor The obtained results will be interpreted and discussed in the next section, in order to evaluate the impact of the adaptation of the learning process through serious games. RESULT AND DISCUSSION Two versions of the game have been made, the one that provides all the levels and variance, and the second game using the adaptation, which takes into account the inputs in order to adapt the proposed serious game accordingly. The second version is learning from the players and has its own learning process, that's why we will cluster the players into 3 groups: Group1: Playing normal game (N=. Group2: Playing adaptive game(N=. Group3: Playing experienced adaptive game (N=. This clustering should give us the big image on what is the impact of this game adaptation and how it evolves by the time to fit the player needs based on their profile. As mentioned before the adaptation of the proposed serious game is based on two machine learning algorithms, the neural network AuAgent 1Ayand the decision tree AuAgent 2Ay, the first one will predict the learnerAos performance during the game sequence, by cons the second one will modify one of the four parameters according to the result given by the neural network and other information collected during the During the passage from one scene to another, all the collected parameters will feed the predictor agent, this one will feed the decision making agent by the predicted performance, afterwards the decision making agent will modify the chosen parameter of AuEquaFunAy game, according to this automated modification, the game will be adapted Figure 5. IJECE Vol. No. February 2017 : 451 Ae 459 IJECE ISSN: 2088-8708 Figure 5. The Adaptation of the EquaFun Serious Game The data obtained after several uses of the proposed game by several learners AuGroup 2Ay, have been cultured in three categories by using a Expectation-Maximization . algorithm, an algorithm often used in educational data mining to cluster learnersAo performances, the criteria used to cluster the learners are the criteria already cited above Autime spent per equation, total time, right answers, wrong answers, redundant faultsAy. Figure 6. Figure 6. Learning analytics of the learners. As presented in Figure 6, there are three categories of learners, clustered according to their performances Augood, medium and badAy. 50% of the them had good performance. 33% had medium performance, by cons 17% had a bad performance, according to the given results the majority of the learners are satisfied and donAot have issues concerning resolving mathematical equations, proving that the adaptation of the serious games according the learner performances, has helped them to upgrade their level in the right way without the interaction of the instructor, this proposed manner of learning has proved its effectiveness and can be used in other areas with other parameters and conditions. Another way to prove the effectiveness of the proposed serious game, and its impact on the learners, is comparing the adapted and the non adapted game. This comparison is based on finding the difference of the learning degree of each group Augroup 1Ay the group that use the non adapted version of game and Augroup 3Ay the group that use the adapted version. The Table 4 details this comparison. Table 4. Comparison of adapted and non adapted Equafun Serious Games Adaptation According To The LearnerAos Performances (Amine Belahbi. A ISSN: 2088-8708 NoneAdapted Adapted Average of the time spent per Average of the right Average of the wrong average of the redundant As presented in the comparison above, the parameters that have been taken into consideration are Auaverage time spent per equation average of the wrong and right answers and the average of the redundant faults mad by the learnersAy. Those parameters are decisive to measure the learnersAo performances, have a general view on their improvement, and have an accurate comparison between the two versions of the game. The obtained results show that the adapted game is more beneficial for the learners than the non-adapted. The average values of the adapted game are good compared to the non-adapted. The four game parameters Aureflex, logic, speed and memoryAy can be adapted positively by incremented their values or negatively by the opposite way. According to the data saved in the database and as presented in the Figure 7, the parameter that has been more changed positively is the logic parameter, then become speed, reflex then memory. By cons the parameter that has been changed negatively AuFigure 8Ay is logic, speed, and reflex then memory. Which leads to conclude, that the young learners have several difficulties with logical operations against they donAot have difficulties with memorization thanks to their fasting age. For this reason experts and pedagogues must think how to improve the logical reasoning of this kind of learners by introducing more fun manners. Figure 7. Pie chart of the Postive Adaptation of Paremeters Figure 8. Pie chart of the Negative Adaptation of Paremeters The comparison of the results obtained by the proposed serious game with a similar game . that teaches arithmetic basics, show that both of them are very promising, even if those serious games are very basic and simple, they have received very positive comments. Both of them have improved the learnersAo math skills with different ways Auchallenging world with increasing level of difficulty, and enjoyable combat role playing game worldAy. The differences between the two games are the parameters that will be changed in the first one there are reflex, logic, speed and memory. By cons the dynamic difficulty will be changed in the second one. The adaptation based on the learnersAo performances has proved its success, according to the obtained results of both learning analytics or the comparison of the tow version of the proposed game. Generally the process of adaptation adopted in their paper, allows students to experience the games, each one according to his level. every experience is different from others. which make it a flexible and beneficial game for intelligent learning. IJECE Vol. No. February 2017 : 451 Ae 459 IJECE ISSN: 2088-8708 CONCLUSION The important role that plays serious games in the learning process to improve the leaning capabilities of the learners and allow them to learn new knowledge and skills. will engender a need to have new techniques and tools that will make this kind of video games more effectives and beneficial. these techniques there is the adaptation process that has been detailed in this paper. As mentioned before, this process of adaptation based on the learner performance can adapt a variety of game parameters, in order to, improve learnersAo abilities to learn without the interaction of the According to the obtained results of the concept adopted in this paper has allowed resolution of several issues encountered by the young learners to resolve mathematical equations. The proposed process of adaptation can be used also to adapt the assessment during the sequence of the game, in order to evaluate the knowledge gained in a more deterministic manner. REFERENCES