scieee AI-readable full text Open interactive document viewer

Gaming learning analytics for serious games

Alonso Fernández, Cristina

Abstract

Los juegos serios (o videojuegos educativos), se consideran una herramienta importante para la educación en el futuro. Por ello, se está invirtiendo mucho esfuerzo en el análisis de su corrección e idoneidad para alcanzar los objetivos educativos pretendidos. El campo de análisis de aprendizaje con juegos pretende proporcionar herramientas que verifiquen estas características mejorando la calidad y efectividad de los juegos serios. Para ello, se necesitan normalmente tres etapas: 1), monitorizar los datos de la interacción del jugador con el juego; 2), analizar esos datos recolectados; y 3), visualizar los resultados. En este contexto, hay algunos asuntos importantes a considerar: nivel de conocimiento del juego, receptor de las visualizaciones finales o cantidad y complejidad de los datos. Estas ideas se ponen en práctica con dos ejemplos de juegos serios centrándonos en las dos últimas etapas del proceso. Se realizan varios análisis y visualizaciones con ellos considerando los diferentes aspectos antes mencionados. Entre las conclusiones que se pueden extraer, destaca que, a pesar de haber algunos aspectos aún por mejorar, el análisis de aprendizaje con juegos es una herramienta esencial para muchos usuarios con una amplia variedad de intereses en juego serios.

Full text

Gaming Learning Analytics for Serious Games Cristina Alonso Fernández DOBLE GRADO INGENIERÍA INFORMÁTICA – MATEMÁTICAS FACULTAD DE INFORMÁTICA UNIVERSIDAD COMPLUTENSE DE MADRID TRABAJO DE FIN DE GRADO 2015 / 2016 Director: Baltasar Fernández-Manjón 3 Acknowledgements This project would not have been possible without the guide of Baltasar, whose continuous help and dedication has been essential to progress with the project throughout the months. Special thanks to Antonio Calvo, Dan Cristian Rotaru and Ángel Serrano, whose advice and work have been extremely useful for this project. I would like to thank my classmates for their help in these last 5 years. And finally, to my friends and family for their incredible support. This project is especially dedicated to my parents. 4 Contents Acknowledgements ........................................................................................................................... 3 Contents ............................................................................................................................................. 4 Table of figures.................................................................................................................................. 5 Table of tables ................................................................................................................................... 5 Abstract .............................................................................................................................................. 6 Resumen ............................................................................................................................................. 6 Motivation .......................................................................................................................................... 7 Gaming Learning Analytics ............................................................................................................. 9 Data collection ....................................................................................................................... 12 Data analysis ........................................................................................................................... 14 Data visualization ................................................................................................................... 15 Current state of Learning Analytics .................................................................................... 19 Architecture ..................................................................................................................................... 26 Configuration.......................................................................................................................... 28 Tracking ................................................................................................................................... 29 Real-time analytics ................................................................................................................. 30 Visualization tools .................................................................................................................. 32 Mathematical component of the project ..................................................................................... 37 Analysis and visualization examples ............................................................................................. 39 First example: QuizDemo ......................................................................................................... 40 Second example: Countrix ........................................................................................................ 45 Integration with RAGE project ............................................................................................... 65 Conclusions and future work ........................................................................................................ 66 Conclusions............................................................................................................................. 66 Contributions .......................................................................................................................... 67 Future work ............................................................................................................................ 69 Appendix 1: Project timeline ......................................................................................................... 70 Bibliography ..................................................................................................................................... 76 5 Table of figures FIGURE 1. GLA PROCESS OVERVIEW ........................................................................................... 12 FIGURE 2. VISUALIZATION EXAMPLE: CODE VIEW .................................................................... 16 FIGURE 3. VISUALIZATION EXAMPLE: DASHBOARD VIEW ........................................................ 16 FIGURE 4. GLA HIGH-LEVEL DIAGRAM ...................................................................................... 18 FIGURE 5. CONCEPTUAL SCHEME OF GLA ................................................................................. 19 FIGURE 6. GAMEANALYTICS’ DASHBOARD ................................................................................. 20 FIGURE 7. LEARNING ANALYTICS DIAMOND ............................................................................. 21 FIGURE 8. XAPI EXAMPLE STATEMENT ...................................................................................... 22 FIGURE 9. GOOGLE ANALYTICS: PEAK TIMES ............................................................................ 24 FIGURE 10. GOOGLE ANALYTICS: USER VALUE.......................................................................... 25 FIGURE 11. BITERGIA'S DASHBOARD............................................................................................ 25 FIGURE 12. GLEANER FRAMEWORK ......................................................................................... 26 FIGURE 13. GLA GENERIC SYSTEM ARCHITECTURE .................................................................. 27 FIGURE 14. GLA ARCHITECTURE ................................................................................................. 32 FIGURE 15. GAME STRUCTURE AND TRACES SENT ..................................................................... 37 FIGURE 16. QUIZDEMO QUESTION .............................................................................................. 40 FIGURE 17. QUIZDEMO XAPI CONSOLE ..................................................................................... 40 FIGURE 18. QUIZDEMO: SCORE TRACE VISUALIZATION ........................................................... 42 FIGURE 19. QUIZDEMO: TIME OF SESSION DASHBOARD .......................................................... 43 FIGURE 20. QUIZDEMO: ERRORS DASHBOARD........................................................................... 44 FIGURE 21. COUNTRIX QUESTION ................................................................................................ 45 FIGURE 22. COUNTRIX XAPI STATEMENT .................................................................................. 46 FIGURE 23. DIAGRAM OF COUNTRIX ANALYSIS ......................................................................... 47 FIGURE 24. OPENHUB: LINES OF CODE ....................................................................................... 47 FIGURE 25. OPENHUB: CODE INFORMATION ............................................................................. 48 FIGURE 26. COUNTRIX: RANKING OF QUESTIONS DASHBOARD .............................................. 50 FIGURE 27. COUNTRIX: RANKING OF USERS DASHBOARD ........................................................ 51 FIGURE 28. COUNTRIX: ERRORS OF USER DASHBOARD ............................................................. 52 FIGURE 29. COUNTRIX: STUDENT'S PERSONAL INFORMATION DASHBOARD PART 1 ............ 53 FIGURE 30. COUNTRIX: STUDENT'S PERSONAL INFORMATION DASHBOARD PART 2 ............ 54 FIGURE 31. COUNTRIX: RESULTS OF EVALUATION DASHBOARD PART 1................................. 55 FIGURE 32. COUNTRIX: RESULTS OF EVALUATION DASHBOARD PART 2................................. 56 FIGURE 33. COUNTRIX: GENERAL INFORMATION DASHBOARD ............................................... 57 FIGURE 34. COUNTRIX: SCORES DASHBOARD ............................................................................. 58 FIGURE 35. COUNTRIX: QUESTIONS PER SESSION DASHBOARD ............................................... 59 FIGURE 36. COUNTRIX: ANSWERS PER QUESTION DASHBOARD ............................................... 60 FIGURE 37. COUNTRIX: QUESTIONS PER TYPE DASHBOARD ..................................................... 61 FIGURE 38. COUNTRIX: TIME OF SESSION DASHBOARD ............................................................ 62 FIGURE 39. COUNTRIX: XAPI VERBS USE DASHBOARD ............................................................. 63 FIGURE 40. COUNTRIX: PEAK TIMES DASHBOARD ..................................................................... 64 Table of tables TABLE 1. ELASTICSEARCH INDICES .............................................................................................. 48 6 Abstract Serious games (or educational videogames) are considered an important tool for the future education. This is the reason that lot of effort is being put into the analysis of their correctness and suitability to achieve the intended educational goals. The field of Gaming Learning Analytics aims to provide tools to verify these characteristics improving the quality and effectiveness of serious games. For this purpose, three steps are usually required: 1), to track the data from the player’s interaction with the game; 2), to analyze that collected data; and 3), to visualize the results. In this context, there are some key issues to consider: level of game knowledge, stakeholder of the final visualizations or amount and complexity of the data. These ideas are put into practice with two examples of serious games focusing on the last two steps of the process. Several analysis and visualizations are carried out with them considering the different issues mentioned before. Among the conclusion that may be drawn, it stands out that, although there are still a few issues to improve, Gaming Learning Analytics is an essential tool for many users with a wide variety of interests in serious games. Keywords: e-learning, educational games, learning analytics, dashboard, Elasticsearch, Kibana Resumen Los juegos serios (o videojuegos educativos), se consideran una herramienta importante para la educación en el futuro. Por ello, se está invirtiendo mucho esfuerzo en el análisis de su corrección e idoneidad para alcanzar los objetivos educativos pretendidos. El campo de análisis de aprendizaje con juegos pretende proporcionar herramientas que verifiquen estas características mejorando la calidad y efectividad de los juegos serios. Para ello, se necesitan normalmente tres etapas: 1), monitorizar los datos de la interacción del jugador con el juego; 2), analizar esos datos recolectados; y 3), visualizar los resultados. En este contexto, hay algunos asuntos importantes a considerar: nivel de conocimiento del juego, receptor de las visualizaciones finales o cantidad y complejidad de los datos. Estas ideas se ponen en práctica con dos ejemplos de juegos serios centrándonos en las dos últimas etapas del proceso. Se realizan varios análisis y visualizaciones con ellos considerando los diferentes aspectos antes mencionados. Entre las conclusiones que se pueden extraer, destaca que, a pesar de haber algunos aspectos aún por mejorar, el análisis de aprendizaje con juegos es una herramienta esencial para muchos usuarios con una amplia variedad de intereses en juego serios. Palabras clave: e-learning, juegos educativos, analíticas de aprendizaje, panel de control, Elasticsearch, Kibana 7 Motivation The goal of this project is to study the use of learning analytics and visualization tools to extract the relevant information of the interaction of players (commonly students) with Serious Games. In this context, much data may be collected while the student is playing. There are several options as to how to obtain that data, mainly depending on if it is us accessing the game to extract that information or if it is the game that is sending some information to the outside. Whichever the way and format in which we obtain the data, once we have it, several analysis may be carried out on it. The most relevant for the learning purpose would be the ones that could provide some insight about the student’s learning process. In particular, we may want to look for errors, places where students get stuck or levels of completion and achievement. Once all the useful information is obtained and analyzed, it is also convenient that it is displayed for visualization so the students and teachers can easily understand it. There may be different visualizations depending on the context and purpose. In a class context, some information would generally be displayed for the teacher so he/she can know at near realtime how the students are doing and can help them to continue with their gameplays if necessary. The students will usually also receive some final report with their results in the game, showing for instance how they did compared to the rest of their class or compared to the mean of all the game plays. This could also be displayed in the case that the interaction is by the students at home as it could happened for some assessment work. In this case, the teacher will also receive the relevant information after the play for marking purposes and to know how the students did. The key problem to overtake in Learning Analytics is to be able to extract relevant information of the learning process of the students based on their interaction data, ultimately wanting to answer questions as tricky as “is the student really learning?” or “is the game helping the student to learn?”. It is important as well for this purpose to give real-time feedback to the student and mainly to the teacher. The ideal goal of this project would be to have an extensible software independent of the game. That is, a software that is able to perform some analytics and display some visualizations purely based on the signals that it receives from a game which it has no previous knowledge of. Ideally, this software would be configurable without having the need to program. This way, the desired analysis and visualizations could be specified and obtained in an effortless, clear and quick manner. For this purpose, we must first stablish some basic agreements in the characteristics of the data tracking system. The particular way that we obtain the data in will deeply determine our possibilities both in analysis and visualization, as it will imply the amount of information to be received and how rich that information is. The analysis will be then developed based on that data obtained and their particularities. The result visualizations should also fit the needs of different viewers: both for students and teachers, as part of the educational use of the game, as well as for developers or managers, 8 who would be more interested in the proper functioning of the game but may also want to know whether the game is fulfilling its intended learning outcomes. Although the focus of this project is on analysis and visualization, the examples developed could be fit into an architecture that controls the whole process of Gaming Learning Analytics. 9 Gaming Learning Analytics Gaming Learning Analytics is the process of analyzing the interaction of students with serious games trying to obtain the relevant information about the learning process of the student. The ultimate goal of this analysis is to understand how a student learns something new and how we can design a game to help students achieve a higher outcome of their interaction with it. The impact of games is increasing lately with new technologies such as mobile devices, which allow players to access games at any time and in any context. Games provide engaging and motivational content that challenges players, instead of forces them, to perform better. This has naturally increased the interest of games for educational purposes, trying to design games that provide good educational experiences pushing players to go beyond their current competence levels [Koster 2004]. Serious games are not new, but they have gained interested in the last years. Since their origins, they have proved to be educationally effective in several specialized domains (medicine, military or business) and teachers are now starting to use videogames for educational purposes as the students get more engaged on them rather than on the usual homework [Fernández-Manjón 2014a]. The generalization of Massive Online Open Courses (MOOCs) is another point in favor of serious games as they provide interactive content that engages its users. In long-term projects, videogames have also proved to be effective such as in the two year project of the game PlayForward: Elm City Stories that aims to make adolescents aware of the risk of the human immunodeficiency virus by teaching them skills and knowledge to prevent it [Fiellin et al. 2016]. This example shows how results obtained with serious games can be empirically tested (in this case, using community-based randomize controlled trials) providing valid and reliable data. The use of games in education is also interesting as part of the now more common evidencebased education. While manual evaluation is often tedious and subjective, the use of educational technology makes a bigger amount of data available for its analysis through statistics, machine learning and different visualizations techniques. This could simplify the teachers’ assessment tasks, but for that purpose it is first needed that teachers trust the games’ effectivity in showing learning skills [Freire et al. 2016]. The availability of assessment, tracking or classroom management are some of the reason that could lead teachers to select a game to be used in classrooms, so providing a transparent evaluation system for education is key [Takeuchi and Vaala 2014]. Despite these good features, the educational community is adopting serious games slower than expected. The reasons for this are several. Serious games usually have high development costs and most of them are funded by research projects or governmental agencies. Teachers prefer the traditional evaluation methods as they find difficult to integrate other activities with their teaching in some cases due to a lack of adequate training, having also concerns on how to make games available for students [Takeuchi and Vaala 2014]. As videogames are still seen as non-learning tools, they are usually just a complementary content for motivational purposes with no actual impact on the final mark. But probably the main reason for this slow adoption is the lack of knowledge on how students interact with games and how their learning process actually occurs. This is also a consequence of the lack of existing tools to improve our understanding of the educational impact that games have on students [Freire et al. 2016]. 10 These issues, however, are not unavoidable. Their development and maintenance cost is being reduced by the raising of tools such as Unity3D or Unreal that allow to develop highquality games in an easy manner, and playable on multiple platforms without changing their details, isolating games from changes in technology [Freire et al. 2016]. Games’ deployment in educational settings is also eased by new technologies such as HTML5 which allows games to be played on modern browsers regardless of the operating system and with no further software installation. The previously mentioned extended use of mobile devices also facilitates this, as most players could play games on their own game devices (laptops, smartphones or tablets) without the need for specific laboratories [Entertainment Software Association (ESA) 2015]. Teachers should also be provided with further insight into how students play and learn as well as with supporting tools so they can know what is happening during a game session in the classroom. The lack of knowledge of these issues could lead to misinterpretation of the data. Teachers’ quality is sometimes being measured purely based on the results of tests that do not necessary show neither if the student is actually learning nor if the teacher is good or not. This is an incorrect use of the results obtained from analyzed data that does not take the whole picture into account [Bowe 2016]. Usually, games that are used with educational purposes are simply computer tests in the usual Q&A format acting as message broadcasters to disseminate information. Basic information collection has always been done with Learning Management Systems, providing some insight into students’ actions. Nevertheless, actual videogames can also provide lots of information about the students’ learning process. As games are more interactive than usual static learning materials (e.g. text documents, slides, quizzes) they have the potential to reveal much more information through the students’ interaction with them. Instead of simply analyzing the final scores, the detailed gameplay can provide more valuable information of how players actually interacted with the game, where they got stuck or where they found problems to understand a key concept [Freire et al. 2016]. In order to be able to analyze this information games should no longer be a black box and instead allow the relevant data to be obtained for its later analysis. This can happen either with a white box game that allows access to the game internal state or if the game sends the relevant data to a remote server using some logging framework [Fernández-Manjón 2013]. In this whole process, it may be necessary to work with vast amounts of data (what we usually refer to as big data) captured from users behaviors. However, in contrast to what happens in other areas of study such as publicity or economics, for Learning Analytics it is not so important to have a huge amount of data but to have useful data, i.e. data that actually shows if the student is closer to achieve the learning outcome of the serious game [Serrano-Laguna et al. 2012]. The key point is not to have a large amount of data but to be able to clean up the data, figure out what useful information is in there and more importantly how to use that information. For that purpose, it may be necessary that the collected data is then revised by a human to add the actual meaning to that tracked information [Bowe 2016]. Still, a vast amount of data may be generated even by short gameplay sessions as game interactions typically comprise a very short feedback cycle of interaction-reaction [Van Eck 2006]. 17 may also want to go in depth into concrete and specific information of a single student.  For game designers or developers, general statistics about the use of the game will be required to give a general overview of the game use. Specific information like places where most mistakes are made would usually be useful as well, as they may show a defect or a spot for improvement in the design of the game.  Managers of the game could be most interested in knowing the peak times of use of the game, to be able to predict them in the future and control the use of the resources of the game. The information collected may be used for different purposes, again depending on the stakeholder. From the designers’ perspective, it could be useful to improve the game design and quality to make the game achieve with greater accuracy the learning outcomes desired. For students, it may lead to personalization and adaptation of each student’s learning environment to better suit their necessities. Teachers could also benefit from this information either for formative or summative assessment or for predicting the best course of action in the future. Educators will usually have complete information of initial conditions of the students and their final results so they will be able to track what works and what does not work, and adjust accordingly. It is also important to notice that different stakeholders would have different levels of access and anonymization, e.g. students should only receive their personal information (maybe together with some metrics that compare their personal results to those of the rest of the users in the class/game history), while the teacher could receive all the detailed information of every student. Also, developers or managers will receive the information of all the game sessions but these will be usually anonymized as they do not need to know the particular details of a user session but the aggregated results of all the users [Freire et al. 2016]. The main three steps previously described as part of the GLA process may be seen conceptually in the high-level diagram below: 18 Figure 4. GLA high-level diagram In the following we would look in detail at tracking and collection tools as part of a complete GLA architecture, but still this project has its main focus on the analytics and visualization part. In particular, we will work in the examples taking into account the different possible stakeholder of the results. This would in most cases be the teacher, as they are the stakeholder that best understands the learning process of the student which is the final aim of LA. Knowing how the students are doing in the gameplay, teachers will be able to both help the students having trouble with the game not to get stuck and continue playing and also provide new tasks for fast learners who have already completed the given task. However, the other stakeholders mentioned (student, developers or managers) will also be considered and dashboards developed to fit their particular needs. Although the previous scheme may seem clear, it is important to notice that the whole process of analytics and visualization deeply depends on the level of knowledge that we have of the game. That is, different levels of knowledge would lead to different analysis and, therefore, different result visualizations. Consequently, if we know the complete game model we may perform more sophisticated analytics taking it into account and hence our visualizations will then contain broader and deeper information. However, we would like to be able to perform some analytics on a serious game without having to know its complete model. In this case, assuming that we cannot access the game as a white box, the only information that we would have is the one provided in the traces sent by the game. It is those traces what we would have to analyze trying to obtain information as broad and rich as possible. This shall then be done without knowing the internal structure of the game and therefore we would usually be able to obtain less information than with the previous approach. The variety of the information obtained will 19 then deeply depend on the format that the traces sent by the game follow, and how rich and wide information that format allows to track. It is still interesting to see how far we can get with the latest approach as the real long-term aim will be to display an analytics and visualization tool independent of the game, which means that we will not have any information of its internal model. With no further data, we will have to obtain all the information to analyze and visualize by means of the traces that that particular game sends. Although our analysis and visualizations will necessarily be more general, we could still provide some visualizations by default that comprise the relevant information that we may obtain from the game traces. These visualizations may also be suited to the different stakeholders previously mentioned. A more conceptual scheme that captures these ideas may be seen in the graph below. Figure 5. Conceptual scheme of GLA Current state of Learning Analytics There are still open issues in the field of LA. For instance, it could be relevant to determine how to automatically distinguish mistakes derived from game exploration from mistakes derived from actual conceptual errors. Also, traces across different types of games or long term learning across games are issues that still need to be explored in greater detail [Fernández-Manjón 2014b]. It is also important to consider some issues such as: 20  Ethical and legal aspects.  Security issues.  Ownership of information (which we have to inform the user of).  Anonymization of information. All those aspects become especially relevant if we are working with kids which will be commonly the case in LA or if we are working in the medical domain [Fernández-Manjón 2013]. Although there are still some problems to overtake, the general perception is that serious games will play an essential role in the future of education so LA is an essential tool to help in its improvement [Serrano-Laguna et al. 2014]. In that sense, it is key to ensure that LA is informed by pedagogy and that support is given for research into the efficacy of LA and into the appropriate pedagogies for it [LACE 2016]. A first example of the work that is being currently done in the field of GLA is the web service GameAnalytics.com [GameAnalytics 2015]. This tool for game designers aims to provide them with a wide variety of already defined dashboards to monitor what players are doing with their game at real time. It has basic free plans and is available for many platforms such as iOS, Android or Unity. It also allows to develop personalized dashboards, obtain the raw data or custom the interactions to track. An example dashboard developed with GameAnalytics.com is the following: Figure 6. GameAnalytics’ dashboard The current development in the field of LA has raised the interest of several companies and developers. Apereo and its Learning Analytics Initiative (“LAI”) [Apereo 2016a] is one clear example of it. This initiative aims to create an Open Learning Analytics infrastructure that supports the whole process from data collection to summary and results communication. With their Learning Analytics Processor [Apereo 2015], they aim to manage the whole process from the “academic early alert systems” to the final data visualizations. Their current work is divided into five areas of LA: collection, storage, analysis, communication and action. These areas are represented as parts of the Learning Analytics Diamond, developed by Aaron Zeckoski, as part of the LAI: 21 Figure 7. Learning Analytics Diamond One of their major developed tools is an open source Learning Record Store. Several of their components have been used by different colleges and universities and “through controlled randomized studies”, they “found statistically significant evidence that their early alert and intervention system had a positive impact on student success factors such as final course grades” [Apereo 2016]. Another sign of this current impact appears in the ADL (Advanced Distributed Learning) [ADL 2016a] Initiative, created by the Office of the Under Secretary of Defense for Personnel and Readiness as part of the Department of Defense of the United States of America research and development for learning science and technologies. This initiative seeks to develop and implement tools for high-quality learning. Among their developments there is a broad set of resources that include an open source learning record store, dashboards and others. All these resources are developed around their key definition of the Experience API (“xAPI”) standard [ADL 2016b], previously known as the Tin Can API. The xAPI is a widely used e-learning specification. It is quite flexible as it allows to track all kind of learning activities. Although xAPI was initially developed for learning experiences, it may also be used to track all kind of activities. The experience API’s set of web-service APIs supports “a simple object-based model for describing, recording and accessing one’s experience or performance within a formal or informal learning activity”. The specification of the standard allows to work with data about learning experiences including its creation, storage or access. The use of xAPI is widely extended. Some companies are creating personalized learning experiences for their employees and use xAPI to track them. To start using it there are available platforms that provide a simple way to start a xAPI project. One of them is the xAPI apps [Training Evidence Systems 2016] that allows companies to connect apps and with it create and deliver “xAPI driven learning experiences”. There are also several free courses to get familiar with the xAPI syntax, such as the Curatr course’s “An Introduction to xAPI” [Curatr 2016]. 22 This standard is open source and uses JavaScript Object Notation (JSON) for its data format. The main communication token in xAPI is a statement. A flow of statements is an activity stream that allows reporting completed experiences and not only final results. A statement contains an actor, a verb and an object. Other properties may also be included like context properties (for instance, the timestamp), learning activity results or attachments. An example of a xAPI statement, containing its three main component (actor, verb and object) can be seen below. This example has been developed using ADL’s tool xAPI Lab [ADL 2016c]: Figure 8. xAPI example statement RAGE [The Open University of the Netherlands, University of Trento, Hull College of Further Education, Universidad Complutense de Madrid, The University of Bolton, INMARK, Instituto de Engenhariade Sistemas e Computadores, Investigacao e Desenvolvimiento im Lis 2015], that stands for Realising and Applied Gaming Eco-system, is a project funded by the European Union’s Directorate-General for Justice and Consumers. It is part of its ‘Fundamental Rights and Citizenship Programme’ with funds from the European Union’s Horizon 2020 research and innovation programme. RAGE aims to “develop, transform and enrich advanced technologies from the leisure games industry into self-contained gaming assets that support game studios at developing applied games easier, faster and more cost-effectively”. As part of the RAGE project, ADL has developed a first vocabulary designed for the Serious Games xAPI profile, aiming to cover all possible interactions that happen within a game environment. This Serious Games vocabulary [ADL 2016d], that also includes some terms not original for the serious games community, is divided into three main categories: verbs, activity types and extensions. These categories directly correspond to the fields: verb, object and the subfield extensions respectively, in the xAPI statements. Verbs aim 23 to cover all possible actions within a game, for instance: started, completed, increased, decreased, set, used or selected. The activity types comprise game features such as: alternative, enemy, health, cut scene, level, menu, score or variable among others. Current extensions include progress and value, to specify the progress in a completable action and the value of a variable in those verbs that require it in their result. A key open issue in the field of Gaming Learning Analytics is to standardize the way to represent players’ interactions. The game industry has not solved this issue as it is protective with their Game Analytics practices and they usually rely on proprietary systems [Serrano- Laguna et al. 2016]. Ángel Serrano started to develop a Serious Games Interactions Model [Serrano-Laguna 2016] to track serious games, as part of his PhD work. This model included a set of game objects and interactions (completable, reachable, variable, target) to full specify the possible actions within a serious game. Each object or interaction has a set of predefined types, a set of actions possible, some requirements and considerations, and metrics. The model has been revised over the last months and gone through different versions till a more definite one, fully explained in a paper finished as of June of 2016 [Serrano-Laguna et al. 2016]. This includes the collaboration of ADL as xAPI was the choice for a Learning Analytics standard to implement the model, thanks to its perfect capability to fit with the model later described or its lack of constraints on the vocabulary that can be used in statements, apart from its other good features already mentioned and extended use. After studying several examples of serious games, an event-based interaction model that tries to cover the main necessities identified in games was inferred. Its key elements are the user identifier (who performs the action), the action (what action is performed), the target of the action (who or what receives the action), a timestamp (when is the action performed) and an extra optional value comprising the possible parameters of the action. The types of targets and their related actions are the following:  Completables: something a player can start, progress and complete, e.g. game, session, level or race. Possible actions with it are start, progress, complete.  Alternatives: set of options to choose from, e.g. questions, menus, paths or dialog trees. Possible actions with it are select value (i.e. option) or unlock value (i.e. option).  Meaningful variables: values inside the game with significance, e.g. score, currency or health. Possible action is to set a value.  Custom interactions: to cover the events that are not able to be tracked with the previous events. The model can be extended with new types of targets and a set of associated actions. This tracking model has been opened to the collaboration of ADL [ADL 2016a], developers of xAPI, aiming to propose an interaction model together with its implementation with the xAPI specification. Although other options of Learning Analytics standards, such as IMS Caliper currently still under development, were considered, xAPI was found to be the most appropriate one to implement this model. For this final purpose, all objects, verbs and values are mapped to their corresponding xAPI value. This full implementation of the xAPI profile (a definition of new vocabularies along with the extensions) was developed as part of the RAGE project and in collaboration with ADL. 24 Starting from its key elements, they are mapped to their corresponding xAPI statement properties: user identifier to actor, action to verb, target to object, value to result and timestamp to timestamp. The proposed actions (start, progress, complete, unlock, select) are also mapped to xAPI verbs and the targets types (serious game, level, mission, question, menu, dialog tree) to their corresponding xAPI activities’ types. The xAPI attribute result allows to specify any game variable updates or any outcome related to the statement. Also, the xAPI extensions help to add extra semantics whenever verbs and activity types are not enough to fully express an interaction. The result extensions defined for the serious game profile are: progress, currency, health and position. Finally, this complete model and implementation was tried out with a case study: the serious game Countrix, developed by Ángel Serrano. This example illustrates the use of this xAPI profile with a real example of serious game and analyzes the technicalities involved in the xAPI communication, such as the communication with the Learning Record Store. The game contains a xAPI tracker that sends xAPI statements using the profile designed. Although during the rest of the project we would focus purely on the field of GLA, the analytics and visualizations required for it are no far from those made in different fields with no relation to education. For this reason, we finish this chapter with a brief remark on two examples of the work done in analytics and visualization in other fields. In particular, the fields of interest of these examples are website traffic and software development. Google is closely related to data analytics. Its Google Analytics [Google 2016] service is a tool to track and report website traffic. With this tool, Google aims to show its customers personalized information about their websites in the shape of high-level dashboards as well as more in-depth data. This information for websites includes current activity, number of visits per day and their duration, geographical location, and more high-level information such as how the users found and used the website and how to make them return to it. They also have a specific version for tracking mobile applications’ data, from the moment a user finds and downloads the app. A simple example of the use of this software is to find peak times in cinemas. The following visualization appears automatically in our Google screen when we search for a particular cinema and is developed based on historical visits to the place: Figure 9. Google Analytics: peak times But the use of Google Analytics goes beyond this to many other different fields. Another notable example of its use was to help the American Cancer Society to classify and 25 consequently discover the value of the distinct users interacting with their websites and app [Google 2015]. Thanks to the results of those analytics, donations to their website Cancer.org rose 5.4%. We can see one of the results visualizations in the following capture: Figure 10. Google Analytics: user value Bitergia [Bitergia 2016], which the Rey Juan Carlos University closely works with, is another example of the work done in the field of data analytics and visualization. Bitergia provides a technology for software development analytics aimed at companies working with Open Source and Inner Source Software. With their tool Cauldron [Bitergia 2016a] all activities happening within a GitHub repository for software development are analyzed. These include commits, issues and pull requests. The result information is then displayed in dashboards for its better understanding. An example of these dashboards [Bitergia 2016b] can be seen in the following capture: Figure 11. Bitergia's dashboard 26 Architecture The whole process of Gaming Learning Analytics and visualization previously described should be supported by an architecture that controls everything from the data collection to the results visualization. Any basic implementation of a GLA system would require, at least, the following [Freire et al. 2016]:  An instrumentation tool that stores the information of interaction in the game, to be typically sent to a server-based collector.  Collection and storage tools.  Analysis thorough reports and graphs.  Some real-time analytics to be able to make interventions during a gameplay session to maximize the learning effectiveness. This should be light weighted, e.g. interactions of each player in the last 5 minutes or number of current players.  Some aggregated analysis of data from different sessions.  Key performance indicators such as grades, completion or educational effectiveness.  Some dashboards or set of analyses and visualizations to provide a general overview of key indicators and ideally being configurable. The next open code framework, which corresponds to GLEANER, is an abstract overview of a GLA system with these characteristics [Freire et al. 2016]. GLEANER, which stands for Game LEarning ANalytics for Educational Research, is a LA framework to capture and analyze data from interaction. It traces only higher level events considering both generic and game specific traces but only those relevant for our learning objectives [e-ucm 2016a]. Figure 12. GLEANER framework This framework has several components among which the following stand out, as part of the Learning Analytics System:  The game starts the whole process and sends data to a collector.  The collector (capturer plus aggregator) consists of a web server ready to receive traces from game sessions. Then it cleans and sorts the data. 33 functions that bind the data to the graphics. It is also possible to add a CSS file for the style configuration. The data can be imported from many types of formatted files (plain text, csv, tsv, JSON, xml, html) for its display using D3 functions. Once the visualizations are set up and the data imported, the graphics can be displayed in a browser by simply opening the html file. Although this tool is very flexible, as it allows to work directly with the code and therefore, develop any desired graphic, it is precisely for this reason that each of these developments requires some quite laborious work. This is needed in order to draw the graphics completely from scratch, having to specify every single detail of them, fixing data limits, margins, data types, and so on, usually having to define several functions to create even very simple visualizations. Another option for visualization that was considered was OpenDashboard [Apereo 2016b], a tool developed by Apereo as part of their Learning Analytics Initiative, which also developed the previously mentioned OpenLRS. OpenDashboard is an open source web application that provides a framework to display visualizations on data. In OpenDashboard, a data view is called a card. Cards represent a “single discrete visualization or data view but share an API and data model”. The idea of Apereo was to provide a dashboard framework for an open LA environment. To start using OpenDashboard, it is first needed to add some data providers, i.e. the sources to receive the data from. Once the providers are set, it is convenient to create a set of preconfigured dashboards for common use. For that, new cards need to be deployed. A card may be a chart or any type of visualization graphic. To fill the card information, a JavaScript module (the AngularJs Module) needs to be created containing the basic information and configuration data of the card. Then an html file should be created with the UI markup for the card. All this information needs to be then added to the main page. Despite all these features, OpenDashboard was not the final choice of visualization tool. Among other reasons, such as the fact that OpenDashboard needs to be executed over an open protocol to communicate with learning management systems, which makes it not so easy to integrate with the current system, the main drawback was that OpenDashboard has no longer support of Apereo as the project entered incubation as of June 2015. Kibana [Elastic 2016b] is an open source analytics and visualization platform designed to work on top of the search engine of Elasticsearch. It was developed by Elastic, just like Elasticsearch, with the purpose of having a flexible browser-based interface to quickly and easily create new visualizations on the data such as charts, tables and maps and combine those creating dynamic dashboards. Kibana is able to work with vast amounts of data obtained from different sources and later export the interesting bits of data. One of the most interesting features of Kibana is that its dashboards can change dynamically to display results of queries made in real time. In the rest of this chapter we will describe the several useful and interesting features of Kibana, as it is the fact that it perfectly fits to work together with other useful tools such as Elasticsearch or Logstash. These reasons made it, despite its limitations and some drawbacks which we will also mention, the definitive choice for visualization tool. 34 To start using Kibana it is first necessary to have Elasticsearch [Elastic 2016a] working. As we mentioned before, Elasticsearch is a powerful engine to analyze and search a vast amount of data very quickly – almost at real time. Both Elasticsearch and Kibana are tools in constant development and growth which makes them particularly interesting to work with. Once we have Elasticsearch ready to work, new data can be added using the syntax of any HTTP request (verb, protocol, host, port, path, query string and body). Queries may also be made to it using this same syntax. To any request, Elasticsearch responds with an HTTP status code and a response body which is encoded using JSON format. Elasticsearch is document oriented, i.e., it stores entire documents (objects) and indexes the content of each one of them to be able to search within them. The format of the documents stored is JSON, which is the standard format used by NoSQL platforms. Here, each JSON document represents an object. The structure of Elasticsearch is the following. A document belongs to a type and types live inside an index (database), so a cluster can contain multiple indices/databases which in turn contain multiple types (tables). These types/tables hold documents (rows), each one having multiple fields (columns). A useful feature of Elasticsearch is that it allows to define mappings of fields inside an index and a type before we even have any data inside it. By doing this, the fields of the data that we add to that concrete index and type will be mapped to their correct types (e.g. date, integer or float) for their later correct processing. To start working, we may create an index and a type and add some information to it using the HTTP syntax and JSON format for the body field. There are several ways to import data into Elasticsearch. Using the simple curl command with its http syntax or, if we used Mongo, directly from it using a plugin supported by the community are some available options. A useful tool that we may consider for this is Logstash [Elastic 2016c], an open source data collection tool developed as well by Elastic, that perfectly fits to work together with both Elasticsearch and Kibana. Logstash can bring together data from multiple sources and normalize it to the preferred destinations. Logstash allows to read data from several format files such as JSON format, csv and different databases. After installing Logstash, to bring data to Elasticsearch we only need to edit the Logstash configuration file. In this file, we can specify the desired input, filters and output. For instance, if we want to transfer the data of a csv file to Elasticsearch, we would specify on the input part the path of the file and its type (here we may use an already defined type of Elasticsearch for correct mappings). To filter the data, we could give the csv column names and specify in the output part that we want to index that data to Elasticsearch into a concrete index (that may already exist or be new). Once we save and run the configuration file, we would have the data from the file into the specified index and type of Elasticsearch and so it would be ready for making visualizations with it using Kibana. After having both Elasticsearch and Kibana installed and running, if we entered our preconfigured local port (typically, http://localhost:5601) we would get access to Kibana’s initial configuration page, which would be running on that specified port. This first page asks to configure an index pattern as at least one must be configured to use Kibana. An index pattern is used by Kibana and Elasticsearch to know how to access the data. We may choose our first index pattern to contain time-based events and provide the name of an index that 35 we have previously created in Elasticsearch using any of the ways described. This is, an index pattern in Kibana corresponds to an index in Elasticsearch. The next step is that for that index, we have to specify the name of a time field. This step is compulsory for Elasticsearch and Kibana to be able to filter the data using the global time filter. For that reason, it is key that our time field, which would usually be a timestamp, has been correctly mapped to a date field when it was saved to Elasticsearch. Either if the data was saved to an already existing index or to a new one with a previously specified mapping for the date field, both options obtain the desired result and the time field is correctly mapped for its use in Kibana. Once the first index is configured, it will be added to the list of index patterns and we can access all the data and fields associated to its types. With our index configured, its contained data will already be added and ready for its visualization using Kibana. The first option that Kibana offers is Discover which allows to see all the data within the current selected index and its fields’ content as well as to make searches on it. We may also want to filter the data to just consider some concrete part of it that fulfills some requisite. In the visualizations and dashboards we also have to take into account the time filter set (by default established to the last 15 minutes) as it would only allow to visualize the data whose timestamp field belong to the established time range. Also we may need to narrow or expand the time filter for better data visualization. The Visualize option allows to create new visualizations based on either new or already saved searches. The visualizations’ types include data table, line chart, vertical bar chart, area chart, pie chart, or a single metric. They also have tile maps to associate an aggregation with geographic points. Another quite useful option for visualization are markdown widgets that allow to add text in markdown language. This could be used to add explanations of visualizations or any other extra information we want to add in our dashboards in a quick and elegant manner. In the visualizations we have both metrics to choose among (e.g. maximum, minimum or average of any numeric field, count of any field) as well as buckets and sub-buckets to create more complex graphs. The last option is Dashboards which allows to create new personalized dashboards of multiple data. In a created dashboard, we may add any already saved visualization, even if they contain data from different indices. The visualizations may be placed in any position and shape as we prefer to create a dynamic dashboard. An essential feature of Kibana is that thanks to its connection with Elasticsearch, once we have a visualization created of an index’s data, if we add any new data to that index in Elasticsearch, the visualization and all the dashboards it appears in will automatically and almost at real-time be updated to contain the new data. Moreover, although visualizations created with Kibana correspond to a particular index, they would remain in Kibana even after the index is deleted so we could reuse them. Kibana is having a huge impact in many areas and consequently the preconfigured types of charts that it allows to create are no longer enough to fulfill everyone’s needs. However, this is not an unsolvable problem as Kibana allows its users to create their own plugins and custom visualizations. Many consumers of Kibana, therefore, have developed their own plugins, most of them to create new types of visualizations apart from the seven types that Kibana has currently configured by defect. 36 Some of the existing plugins for Kibana are: Timelion [Elastic 2016d], a time series composer for Elasticsearch, an authentication plugin for Kibana [Hmalphettes 2016], a heat map chart [Stormpython 2016a], a tag cloud chart [Stormpython 2016b], a vector map chart [Stormpython 2016c], a radar or spider chart [Sirensolutions 2016], a slider widget [Raystormplace 2016a], a widget to add HTML code [Raystorm-place 2016b] or a csv exporter plugin [Minewhat 2016]. Another important feature for the later used of both Kibana’s single visualizations and dashboards is that once they are created, they can easily be exported, by default in JSON format. Kibana also provides an html code for any visualization and dashboard created so they can easily be embedded into a website and displayed in a browser by simply copying and pasting the given html code by Kibana into the html code of our website. Another available option is to share a link to them. In any case, the only requisite is that all clients must still be able to access Kibana. The option of sharing a link to a visualization or dashboard in Kibana could also be very useful in our context of work for the following. In the link that Kibana generates we have several information of that concrete visualization or dashboard including its name, its time range considered, the visualizations contained on it in the case of dashboards and the filters applied to the data. Consequently, this set of information included in any link allows the possibility to create more general visualizations, generate a link to them, and then based on those generic visualizations previously established, working solely with its generated link, add the required filters to that data creating the specific visualizations desired. The filters that we can add in the links that Kibana generates correspond to the queries that we can make directly from the Kibana web interface. The interesting feature of this is that adding the filters directly to the links makes unnecessary to access the interface to create different visualizations but instead allows to work with generic ones that can be particularized with filters to fulfill our concrete needs. Some samples of queries that we could directly add to the links are: field (numeric, boolean, string, date) equal to value, numeric or date field greater than (less than) value, numeric or date field greater than (less than) or equal to value, or field (numeric, boolean, string, date) distinct to value. Despite all its good features, Kibana has also a drawback in its security model as Kibana by itself does not support authentication or restricted access to its dashboards. To overtake this issue, Elasticsearch has developed Shield [Elastic 2016e], a product that provides security in several ways such as encrypted communications, authentication, role-based access control and auditing. With it, it is possible to create different configurable layers of security with both field and document-level security. 37 Mathematical component of the project The project has several mathematical concepts ongoing in its whole development from the very first tracking of data to the final visualization of the result information. Although this is clear throughout the whole report of the project, this section aims to make some of the most relevant parts of it even more explicit for their better understanding. A serious game, first of all, could be usually perceived, as it is in the case of many other nonserious games, as a directed graph. In this graph, each level of achievement of the game corresponds to a node and each path to reach one level from a previous level correspond to an edge. This is a coarse-grained view of the game, as levels would usually contain subparts to be also completed or required goals to be achieved before being able to move forward to the next level. With this simple approach, however, it is possible to guarantee the end of the game, if we know for sure that several premises are verified. The game model could be then characterized by the graph and each particular situation of a user during a session be described by a state or node on that graph. That is, we will not need to know the whole progress of the session but simply its current situation. This instant picture could provide a complete information about the current state of the session and therefore, if we incorporate to it some new information, with the graph we could univocally determine what the next state of the user is going to be. This instant information of the game will be given by the xAPI traces, as this event-based specification will provide the data of each interaction as the player moves forward in the game process. An overview diagram of this ideas can be seen below. Figure 15. Game structure and traces sent 38 This is a simplification of many games as we are not considering several other issues such as random events, enemies or time, but in most serious games these are not so common. Random events usually are to be avoided as they could drastically change the conditions of the game from one player to another, and we would ideally want them to have game conditions as similar as possible. Also, the presence of enemies is most common in nonserious games than in this field. The analysis of data is the key part for the process of Gaming Learning Analytics. Several data needs to be traced in games for its later analysis. This relates to Big Data as the number of traces may become significantly large, even if the number of game players is still quite low compared to non-serious games. For instance, the usual number of players to be considered could only vary between 20 and 30, corresponding to a single class session. However, even with that small number of players, the number of traces each one of them sends may be considerably large depending on both the complexity and depth of the particular game and the peculiarities of each player’s interaction with it. Therefore the size of the traces collected may become a problem itself, including issues such as their collection, storage, analysis and visualization. The specific analysis performed on the data collected compress both the data gathered and its treatment. For its gathering, it may be required to aggregate the data according to different characteristics or ignore some of this features to focus on others. The analysis itself would typically include quite a big amount of calculations such as count of errors made, duration of play sessions, evolution of score over time and other game-dependent metrics. The analytics typically comprise several-steps calculations that may require storage of partial calculus, even if they are later ignored in the final result. The visualization part of the project also contains many mathematical reasoning. Starting from the results information received to visualize after its analysis, this information is again treated mathematically to develop the desired graphics of the represented data. Commonly used calculus are: average of score or time fields, duration of game sessions, maximum and minimum values achieved in fields like score or time of play, etc. All these calculus are particularly important in GLA as most of the fields of the data that we may consider interesting to visualize are fields with a numeric value (integer or float). This is the case of scores, levels, duration, and so on. The visualization of the data may also include in many cases data filters. These could be a wide range of filters from numerical intervals to single values of fields. Again for those filters it is essential to work with numeric fields that allow to make searches such as queries on values greater or equal than a given value, or values distinct to a concrete value that we may not want to consider. This type of queries would be useful for the teachers so it is important to consider them at this stage. 39 Analysis and visualization examples In this chapter the ideas and discussions previously described are put into practice with a few examples of serious games. In particular, we would work with two different examples of games specifically developed for these issues. Firstly, several analysis were carried out on the data generated by the games. These analysis were made in Python scripts and their corresponding results stored into csv files. Those were later imported into different Elasticsearch indices and types using the tool Logstash. The analysis covered some general issues such as results of game, scores, times of play session, ranking of results, personalized data of a user, as well as others particular to the game or to the stakeholder considered. In the first examples, only students and teachers are considered as the information they may want to visualize is simpler, and therefore easier to obtain from little data. However, in later and more specific visualizations other stakeholders are considered as well. For instance, developers could be interested in information of the game sessions (total time, number of interactions per session occurring) while managers would be more interesting in the peak times of use of the game. The visualizations and dashboards were developed using Kibana. Specifically, the ones for the first example were developed using the Elasticsearch version 2.2.1, as well as Kibana’s version 4.4.2, as they were the last versions available as of March of 2016, when those first examples were developed. For the second example, although all the examples were firstly developed with those same versions, they were then updated to the last released version of Kibana. This last version, Kibana 5.0.0-alpha2, was released on the 3rd of May of 2016, and also needs the last version of Elasticsearch, Elasticsearch 5.0.0.-alpha2, that was released on the same day. Among other features, this last version of Kibana allows to customized labels in graphics (x-axis, y-axis, single metric, and so on). This simple improvement eases the communication of results with stakeholders as each graphic can have now its own explanation within it. This reduces the need of markdown widgets to add extra explanations of graphics and therefore makes the resulting dashboards clearer. The improvement between Kibana’s versions may be seen in the screen captures of the following sections, as the ones of the first examples remain in the old version of Kibana to make the change of version even more explicit. Meanwhile, all the screen captures of the second example correspond to the last available version of Kibana. 40 First example: QuizDemo QuizDemo [e-ucm 2016g] is a sample mini-game developed by Antonio Calvo with Unity with the aim to show how traces in xAPI format are captured during a game session. Although it has no complexity, it contains some of the most relevant traces present in the majority of the games such as traces of new level achieved, score updated or option chosen in multiple choice situations. After a first welcome screen, the game consists of two screens with multiple choice questions. Every time a wrong answer is selected, the score is decreased. When the right answer is finally selected, the score is increased and the next level loaded. The final screen shows the total score. For instance, the second question of the game is a visual multiple choice question: Figure 16. QuizDemo question The most interesting part of this game is that we can see the traces sent at real-time in the xAPI console at the top of the screen. Figure 17. QuizDemo xAPI console Every time we interact with the game in some way (e.g. selecting an answer) the new traces are added to that. For instance, a trace like 1462298437442, choice, Question1, Mirror 41 is sent when, at timestamp 1462298437442, in the first question, the option Mirror was selected. In order to create the visualizations, it was first necessary to obtain some further information by means of analyzing the traces sent by the game. The required analysis, that were made in Python scripts, included tracking of scores, calculation of time per session or calculation of errors made by level. Some of the developed analysis made in Kibana, after import the data to Elasticsearch, are the following: 42 Score trace This graphic aims to show the progress of the score of a user during a single session. To create it, we choose a line graph and as buckets, we split the X-Axis by timestamp and then we split lines by the field score. To have only the information of a particular session we filter the data by session, making a query that asks for the field session to be equal to this particular session id. Figure 18. QuizDemo: score trace visualization 49 Also, the new dashboards were developed considering different stakeholders. Apart from some further information for students and teachers, some dashboards were developed for game designers, developers or managers. In the following we use the term developer to comprise dashboards that would be of interest of both developers and game designers, who will work at different levels of the game but could obtain useful information from the same results. The development of these dashboards began by thinking what data would be of interested to visualize for each of the previous stakeholders, and then it was necessary to figure out how to obtain that information from the xAPI traces (adding to it the knowledge of the game model in the first approach). With those ideas in mind, their development had as starting point which question we wanted them to answer, so we make those questions explicit in the following. In each of the following dashboards, we explain the required analysis (and the particular index it corresponds to) as well as the different visualizations developed and included on it. 50 Teacher - top 30 questions with higher error ratio Analysis [questions]:  The question name is obtained from object.id.  The error ratio of each question is calculated as the number of times the question has been wrongly answered divided by the times it has been answered. Both were calculated in the analysis increasing the corresponding variables each time the question is answered. Visualization: This dashboard aims to show the questions that are most difficult for players. With that purpose the questions were ordered in descendent order of error ratio and the top 30 was selected for proper visualization. Figure 26. Countrix: ranking of questions dashboard It does not require access to the game model, but to the object.id of traces with verb.id preferred meaning an option was chosen among a set of possibilities. Whether there is an error or not can be obtained directly from the result.success field in the statements. 51 Teacher - ranking of users Analysis [players]: Each time a question is answered, we store  the timestamp from the timestamp field  the user from the actor.name field  the question name from object.id  and whether there is an error or not is calculated (this should be obtained automatically from the result.success field, which it was at that point not set by the game yet) Visualization: This dual dashboard shows the top 10 users with higher number of errors (respectively, correct answers) made, with their user id and count of errors (respectively, correct answers). Here we show the error part of the dashboard, as the other is completely analogous: Figure 27. Countrix: ranking of users dashboard As in the previous, there is no need to know the game model in order to develop this dashboard but to the xAPI fields made explicit in the analysis. 52 Teacher/Student - questions of a single user Analysis [players]: Same analysis as in the previous (ranking of users). Visualization: This dual dashboard shows the information of errors and correct answers of a single user in detail. This could be useful for teachers to obtain detailed information of a single student or for the students themselves. It contains both a table and a bar chart of the questions that were wrongly answered by the particular user; as well as the same visualizations of the questions that were correctly answered by the particular user. Here we show the error part of the dashboard, as the other is analogous: Figure 28. Countrix: errors of user dashboard This dashboard does not require access to the game model. 53 Student – individual information Analysis [players]: Same as in the previous (ranking of users). Visualization: This dashboard provides personalized information for a single user, showing he/she the results of the game session as well as different data of it. The top half of the dashboard includes:  the total count of questions answered  the count of different questions answered  his/her results in the four topics evaluated  a pie chart with the percentage of correct/wrong answers during the session  a pie chart with the percentage of correct/wrong answers of all plays of the game  the user’s final score  the average score of all sessions of the game These last two visualizations aim to provide a way to compare the users’ results with the average of all the sessions of the game. Figure 29. Countrix: student's personal information dashboard part 1 The bottom half of the dashboard shows:  the total amount of time spent in the session (in milliseconds)  the timestamp of the answers of the student  a bar chart containing all the questions answered by the user correctly  a bar chart containing all the questions answered by the user wrongly 54 Figure 30. Countrix: student's personal information dashboard part 2 Some part of this dashboard could be developed independently of the game model: timestamp and session duration, errors and correct answers (aggregated by object.id of verb.id preferred, without explicitly knowing that is a multiple-choice question), count of traces of verb preferred and different answers (with object.id as before). The student’s results in the four topics evaluated, however, does require access to the game model to be able to classify the questions into the four types. 55 Teacher – results of the students Analysis [results]: When a new session starts, we create 4 pairs with value (0,0) corresponding to the (correct answers, total answers) for the 4 topics evaluated for the user. Each time the student answers a new question, the pair of its corresponding type is updated accordingly. Finally, the results are stored following the criterion:  if number of questions answered is strictly less than 2, no data  otherwise, - if correct answers is strictly less than 0.5, failed - otherwise, passed Visualization: This dashboard for the teacher aims to provide a classification of the students in terms of academic goals achieved. Assuming each of the four types of questions corresponds to a topic to be evaluated, this dashboard first shows the results of the students in each of the four topics, according to the classification described in the analysis. Figure 31. Countrix: results of evaluation dashboard part 1 The second part of the dashboard contains the results data for more detailed evaluation: first, aggregated by results to obtain a general information of the results of the class; and then, with a complete data table with the results of each student in the four evaluated topics. 56 Figure 32. Countrix: results of evaluation dashboard part 2 This dashboard requires access to the game model to know that there are 4 types of questions and classify each question in its corresponding type. 57 Developer – general information about the game Analysis [players] It requires:  count of different actor.name  count of different object.id when verb.id is preferred  timestamp  analysis of whether there is an error or not (result.success field) Visualization It contains:  count of sessions  count of different questions answered  count of questions answered  pie chart showing percentage of errors and correct answers of the total  line chart of timestamp of answers Figure 33. Countrix: general information dashboard It does not require access to model, only to the fields: actor.name, verb.id, result.success and timestamp in xAPI statements. 58 Developer – scores obtained in the game Analysis [players]: For each user, it stores the score obtain in each statement sent by the game with object.name score and keeps only its final value. Visualization: It contains:  the average of all final scores registered in the game  the maximum and minimum scores registered  a line chart with the scores obtained in each session Figure 34. Countrix: scores dashboard This dashboard requires access to the object.id field in the xAPI statement, check that it is a variable named score and access to its value in the result.extensions.http://rage-eu.com/xapi/extensions/value field, so it does require at this point some knowledge of the vocabulary that the traces sent by the game are using. 65 Integration with RAGE project The final desired step is that these developed visualizations and dashboards are to be actually used having a greater impact. For that, it was intended to complete their integration with the architecture previously described, as part of the RAGE project. For this correct integration, we count on the help of Antonio Calvo and Dan Cristian Rotaru, who are working closer to the architecture. As we mentioned before, RAGE is a European project to improve the development of gamed applied to education. Its aim is to provide self-contained gaming assets together with several resources of high-quality knowledge through a common social space that connects every part with an interest on it: research, gaming industries, intermediaries, education providers, policy makers and end-users [The Open University of the Netherlands, University of Trento, Hull College of Further Education, Universidad Complutense de Madrid, The University of Bolton, INMARK, Instituto de Engenhariade Sistemas e Computadores, Investigacao e Desenvolvimiento im Lis 2015]. As we made explicit in the previous chapter, the visualizations and dashboards were initially developed in a now-old version of Kibana, and later moved to a newer version. Besides the reasons previously mentioned for this change, it was mainly looking forward to this integration why the developed visualizations and dashboards in Kibana were updated to this last version, as it is the version currently working in the RAGE architecture. The main focus is now set into the visualizations and dashboards developed for the game Countrix. The traces sent by this game are richer and follow the xAPI standard and, therefore, the graphics developed based on them contain greater information, and could be of interest for the aim of this project. After transferring the visualizations to Kibana 5.0.0-alpha2, in order to be able to integrate them with the architecture, it was needed to provide some further information about the analysis and visualizations developed. For that, the analysis made in Python was specified in a detail document containing the required fields in the xAPI statements needed for each of the analysis performed and what calculations were made with that data. The analysis was then to be translated into the corresponding analysis as topologies of Storm Flux. For the visualizations, the whole list of Elasticsearch indices and types was provided, specifying for each of those, all the contained fields and their corresponding types (date, integer, float, bool or string). These indices were then replicated in the RAGE server. For the visualizations and dashboards, a plugin is being developed to upload a template of a visualization or dashboard and obtain the different visualizations from it. 66 Conclusions and future work Finally, we summarize here the conclusions and contributions of the project, as well as some ideas for future work that were not possible to include in it. Conclusions The field of Gaming Learning Analytics is still growing and several issues are still to be solved. Many companies, however, are already working on it as it is perceived by many people as the future of education. The focus is then set into achieving a complete architecture that covers the whole process from capturing the interactions of a student with a serious game to visualizing the results in the shape of dashboards. In order to complete this process, it is important to ensure a solid common ground of knowledge and tools that allow to achieve better and more reliable results. One of the key tools for this is a common vocabulary and tracking model for specification and a standard API for the traces sent by a game and stored into a LRS. The model proposed by Ángel Serrano and its implementation with the Experience API aim to cover this step. To develop the analysis and visualizations, there are several open options and it is still difficult to find one that suits all the needs for our visualizations. In spite of this, Elasticsearch, Logstash and Kibana have proved to be a good combination of tools to store a big amount of data, filter it, aggregate it or perform different calculations with it, transfer it, and develop different visualizations and dashboards with it. The characteristics of the information obtained depend on several factors, among which we have seen the following that stand out: how much knowledge do we have of the game, how much information is the game sending, how complete is this information, or how much level of knowledge are we obtaining the information with. Some of these issues are still difficult to solve. The possibility of having access to the game model could provide richer information to visualize but it would make the analysis and visualization dependent of the game, and therefore much less scalable and reusable. It is for these reasons that we consider that the perspective of not having access to the game model should get the biggest attention, and with it, try to obtain as much information as possible of the game. As we have seen in the examples, this is indeed feasible as xAPI statements are quite complex statements that comprise much information. They provide an instant report of what is happening inside the game at every moment, given the information of every interaction that happens between the player and the game. The results of these analysis and visualizations may also have different uses. Different stakeholders may benefit from the same information, with maybe different levels of knowledge. While teachers could see results of what is happening in a class as well as having algorithm criteria for students’ evaluation, the students may see at the end of each play how much knowledge of a topic they have, either with individual data or by comparison with the rest of their class. Developers of the game could also obtain a lot of information to determine whether the game is working for its intended purpose or not, of if there is some spot to fix on it. The results information could also be useful for managers of the game, giving them an idea of the use of it to provide the needed infrastructure so there are no problems of collapse if too many users are playing at the same time. 67 Contributions In the several stages of the process of GLA we are heading towards having as general structures as possible to be able to provide some information for any given serious game. In this sense, the tracking model proposed by Ángel Serrano together with its implementation using ADL’s Experience API standard [Serrano-Laguna et al. 2016] achieves that intended goal for the first step of obtaining the data from the users’ interaction with the game. Following this same idea, this project aims to be a first step towards a similar generalization in the analysis and visualization steps. Particularly, the developed analysis and visualizations try to show how much information we are able to obtain having no further knowledge of the game than the one provided by the xAPI traces. The shown dashboards aim to cover the variety of possible stakeholders with their different interests in the use of serious games to prove that this approach still can work for each one of them, and that interesting results may be obtained even considering the game as a black box that merely sends traces to the outside. In particular, developers or game designers may use the obtained information to improve the game by accessing data such as verbs’ frequency of use or mean times of play sessions. The use of xAPI verbs in games could provide an insight to the models’ accuracy, as we may discover the real usefulness of the proposed verbs, if some of them are too less used may be unnecessary while if some are overused may be better split into more specific ones. The percentage of errors made by users could also show if there is some bug in the game or if some of the tasks proposed are too difficult (or too easy) for players and should be redesign. Another interesting information for developers is the use of the different objects provided. As we showed in the example with Countrix, although the questions were selected randomly from a predefined set, we found some questions with significant more appearances than others. This simple idea could extend to other examples to find defined objects in the game that are never used and therefore are not necessary and may be eliminated. The whole aggregated information of the traces sent by the game also provides an overview of the areas in the game that are explore by players, and how many times this occurs. In the examples, these corresponded to questions but in different cases may correspond to levels or zones in the game. The information collected of their use may show their reachability, potentially identifying parts of the game defined in the code but that are never actually reached in the gameplays. For managers, it is important to know that games are supplied with a stable infrastructure that can manage the amount of users that may want to play at a given moment of time. For this, the information of use of the game and peak times is essential. Identifying information such as mean number of users per minute of the day and its maximum achieved values will help managers to predict a potential risky situation and provide the game with the appropriate resources to cope with this issue. Both teachers and students will focus on the level of achievement of the intended educational goals of the game. The developed dashboards show the variety of information that we could provide to help teachers in their evaluation task but also to give them information for directly being able to help students having trouble with some concepts or to provide extra work for advanced students. Whichever the situation of the students, the feedback provided by the dashboards will give them an idea of how they are doing in the course and therefore help them to continue or change their approach to the study for the course. 68 The generalization of the process of GLA that we are seeking was another reason to try to integrate these visual results with the RAGE project. The developed architecture of RAGE covers the whole process from tracking data of the users’ interactions to visualizing results and is applicable to any given example of serious game. For this long-term purpose it was necessary to first study the whole architecture of RAGE. Being part of a European project, RAGE’s architecture is a valid and reliable example of a GLA architecture. Although it is already working and stable, the architecture is also in continuous development and improvement with the work of the e-ucm research group. Therefore, it was necessary to keep track of the changes on it, as some of them were occurring during the course of this project, and to update consequently the information gathered from it to the latest version. To get familiar with this architecture, it was necessary to deal with a broad variety of tools developed from many different companies and developers, most of them of recently creation. Although the focus of this project was set into the analysis and visualization stages of the process, the study and comprehension of the tools of all the different stages of the process was important to have a complete overview of the GLA process and its implementation in this architecture. The integration of the developed analysis and visualizations as part of this European project was key to ensure the real use and applicability of the work developed in this project. With that achievement, it is likely that the work done in this project will have a broader range of uses and could be used with different examples of serious games, providing valid results for different users. Specifically, the integration of the project with the RAGE architecture requires two steps. The analysis developed are set to be replied as Storm topologies, while the visualizations made in Kibana can be directly reused as part of the architecture with different examples of serious games. For this reason, it was also interesting to develop as many visualizations as possible with no knowledge of the game model, trying to extract all the information from the xAPI traces. To summarize, the personal contributions in the project were:  Study of the GLA process and its variations  Study of the architecture of the RAGE project  Practical application of the process of GLA with two examples of serious games This last step required the following contributions:  Design of an analysis model for the Experience API.  Implementation of the analysis in Python.  Definition of a set of Elasticsearch indices to comprise the information.  Implementation of visualizations and dashboards in Kibana.  Consideration of different stakeholders for visualizations.  Consideration of different levels of game knowledge for visualizations. 69 Future work There are several improvements that could be incorporated into the work developed but were not feasible due to the lack of time or their complexity, as they could not be easily brought to work together with the chosen tools. Some of them are made explicit in the following:  Include pop-up alerts and warnings to be shown to the teacher during a game session in the class for special cases: for instance, if a user has been inactive for too long or if a user has made too many mistakes. This way, the teacher could immediately act accordingly to help those students. Also, this could be used for advanced students who may finish too soon with their given tasks and may need some extra tasks to work on.  Incorporate tools for students’ motivation. Analyzing the students’ use of the game, they could receive motivation messages: for instance, notifying a good streak and encouraging them to continue with it. This could be used as well to give some message to students that have stayed too long without playing the game in order to motivate them to come back to it.  Broaden the scope of interactions with dashboards allowed. For instance, it could be interesting to be able to make more complex queries in a displayed dashboard such as fixing intervals of data to be considered or values to aggregate data.  Try out the set of analysis and visualizations stablished as not needing access to the game model with other already working examples of serious games and check if we could broaden the range of visualizations or dashboards to provide further general information.  Try out the set of dashboards developed with students and teachers in a real classroom context to check if the information provided covers all their interests or if some additional dashboards could be developed.  Study examples of serious games to see if we could find some common features that will allow to classify them in some categories according to their characteristics. Then we could develop some analysis and dashboards that, although they will not be gameindependent, could be used for all the games on each of the categories found. This could be a half-way approach between our goal of completely independent of the game analysis and visualizations and the ones developed for a specific serious game. 70 Appendix 1: Project timeline This appendix aims to give an overview of the progress of the project development during the last months focusing on the several meetings made. Most of the meetings were with the director of the project, Baltasar Fernández-Manjón, with Ángel Serrano, PhD student working in his research group and with Antonio Calvo and Dan Cristian Rotaru, two of the Master students also working in his research area. 1. February 15th, 2016 Meeting with Baltasar. The project will focus on Serious Games Learning Analytics and Visualization. Goal of the project (coarse-grained): starting from some data collected of the interaction of users/students with a serious games, perform different analytics on that data to obtain the relevant information for the learning purpose. The result of the analysis will finally be shown to provide information about the learning process. Start by reading paper [Freire et al. 2016] and book [Loh, Sheng, and Ifenthaler 2015] to get used to the new topic. 2. February 24th, 2016 Meeting: presentation of Ángel Serrano’s theoretical model in his thesis about Learning Analytics with the xAPI standard. This model is an attempt to describe the format that the data should be sent to the server from the game (client) using the xAPI standard. We can see the draft of the model in GitHub [Serrano-Laguna 2016] 3. March 2nd, 2016 Meeting with Baltasar. We fixed the language of the project to be English. Things to-do: - Start to write down the timeline of the project (meetings, tasks, and so on). - Start to write down the project report: o 0: Description (goal and motivation) (improve from past version) o 1: Gaming Learning Analytics o 2: Infrastructure of the project - Get familiar with the architecture of the whole project in one week. - Have a little demo of analysis and visualization working in two weeks. The project will have different visualizations depending on the context, user, and so on. There will be general analysis as well as game-specific ones. The ideal goal of the project would be to have a software that, once a game is running, can automatically detect on the Learning Record Store (LRS) every message the game sends. And so, from those messages, it can perform an analysis and show some visual results. (Future goal: think about Angel Serrano’s theoretical model and how we could formalize it, for instance with an automata with actors and so on that makes the whole representation compact.) Also, arrange a meeting with Dan and Antonio to explain to me the infrastructure of the project. In return, I will help them writing in English the description on GitHub of the architecture they are working in. 71 4. March 4th, 2016 Meeting with Dan and Antonio who are working in the infrastructure of the project. They explain the details of the infrastructure as detailed in the GitHub repositories and in the project report: tracker, A2 [e-ucm 2016d], collector, LRS [Apereo 2016c], real-time analytics, database, web frontend [e-ucm 2016b] and backend [e-ucm 2016c]. It all can be split into three connected blocks: configuration, analysis and visualization. Specifically, I get to know tools such as Kafka [e-ucm 2016f], Storm Flux [Apache 2016] for analysis, MongoDB [MongoDB 2016] for storing and D3.js Data Driven Documents [Bostock 2016] and Kibana [Elastic 2016b] for visualization. They also gave me some hints for the demo. 5. March 15th, 2016 Meeting with Dan and Antonio to solve doubts about the architecture explanation: the use they do of Storm Trident, which can be integrated with Storm Flux and so on. They show me an example of the whole process from data collection to visualization: in server https://rage.e-ucm.es it shows statements with information of the data collected. Goal: being able to specify which data, which analysis and how to store it in Mongo. They also show me OpenDashboard, a visualization tool they have just discovered made by Apareo (which also made OpenLRS) that will read the data from MongoDB. They think at this point that this tool may solve two of the three stages of the process: the configuration and visualization. To-do: investigate both Kibana and OpenDashboard and look for similarities and differences. 6. March 17th, 2016 Meeting with Baltasar. Discussion of the whole context of the project: we will have different visualizations depending on the stakeholder (student, teacher, manager). We will focus on the teacher. I explained the demo done in D3js. Goal: make something extensible (clear architecture, easy to develop –API-). Things to-do (Holy Week): - Investigate Kibana, OpenDashboard and make some more visualizations using different tools than D3js. See pros and cons of them. - Make graphic of the process to clarify ideas. - Investigate ADL (xAPI) and Apareo (OpenLRS and OpenDashboard) and write down about them. - Re-read and re-write report of project, update with new papers and information resources. 7. March 31st, 2016 Meeting with Baltasar. Report of progress made, basically working with Kibana and documenting everything I’m doing and reading about. Things to-do for the next two weeks: 72 - Explore other uses of Kibana (Bitergia read the presentations [Gonzalezbarahona 2016a] and [Gonzalez-barahona 2016b]). - Keep working and exploring visualization tools. - Investigate about the Apareo initiative. - Add to the report as a final appendix this document of meetings. - Have a demo working of the whole process: take a game that may be simple at first (e.g. QuizDemo [e-ucm 2016g] which sends traces in xAPI), detect that traces and make some visualization with information about them, for instance, the mean play time. 8. April 4th, 2016 Meeting with Dan and Antonio to talk about Kibana and how their progress is going. Things to check about Kibana (both things work fine in Kibana): - Visualizations are automatically updated at almost real-time when new data is added to the corresponding index in Elasticsearch. - Visualizations and dashboards can easily be exported and embedded into a webpage in html. They also gave me an executable file of the game QuizDemo that sends traces of game sessions in csv format, to make the demo based on this game. Idea of the demo process: make some script (e.g. in Python may be interesting) to split the traces file into sessions, obtain the useful information of them and store that information into Elasticsearch (using Logstash) and make some visualizations of it using Kibana. Another issues to work with can be related with Storm Flux, as it may be interesting to make some topologies for it. In particular, thinking about what analysis may be most interesting to visualize: mean time of play sessions, histogram of scores, levels where most mistakes are made, most common mistakes, final and mean score and so on…. Think about metrics that are interesting to see for the teacher. And once we have that metrics clear, think about what data requisites we will have then: for instance, to visualize the mean score we need the score file to be numeric. 9. April 12th, 2016 Meeting with Dan to check how the work with Kibana is going. We make some sample visualizations using the data in rage with Kibana. Issues to work on: - How to make visualizations with strings using Kibana, for instance: graph that shows the final score aggregated by user id. 10. April 20th, 2016 Meeting with Baltasar. We talk about the progress of the report so far. Specifically: - References need to be checked using the DOI in Mendeley so they are completed. - Another high-level diagram may be added, showing the division in the three main parts of the architecture (collection, storage, analysis and visualization). - Extend the xAPI explanation. 73 - Add a section in the report specifically explaining the mathematical component of the project so that it is clearer (data analysis and big data, visualization and so on). - Optionally, it may also be interesting to add a brief outline of the demos that I am working on including some snapshots of them. In the next week or two, besides fixing those things of the report, focus on continuing working with the analysis and visualization part. 11. April 25th, 2016 Meeting with Antonio and Dan to show them the work done with Kibana so far (visualizations of scores, errors, time of play). They gave me some ideas to continue working with: - Kibana plugins: to create new visualizations. List of plugins to investigate: tag cloud, heat map, vector map, html code plugin, and so on. It may not be necessary to create our own visualization graphics but good to know them. - In the link that Kibana provides to share a visualization, we can configure filters so we could have general visualizations and then filter them directly in the link, rather than on the web interface. Investigate how broad this option is: e.g. filter a numeric field on greater than or equal to values. They also suggest that I write down some sample cases of the visualizations made, explaining the steps made to configure them, so they can easily be reused and also add that work to the report. 12. May 3rd, 2016 Meeting with Baltasar and Ángel Serrano. Presentation of the new game Ángel has developed: Countrix [e-ucm 2016h]. It is a Q&A game that shows the xAPI traces following Ángel theoretical model definition. I also show them the new visualizations made as well as the use of Kibana filters to have more general visualizations that can be particularized later on. To-do: write down the work done in the first example with QuizDemo and start working with Countrix to have visualizations ready for next week. 13. May 10th, 2016 Meeting with Baltasar. We talk about the theoretical aspects of the game. Specifically, there are two levels we can approach the data from: either if we know the game model or if we do not. With that in mind, it is interesting to see how much information we can extract from the xAPI traces depending on the level of knowledge. Following this discussion, things to-do in the next week: - Write down the conceptual idea of the project, deepen into the theoretical basis of it. - Related to that, create a conceptual graphic to clarify those ideas. - Check out advances in Angel’s model with xAPI. 74 - As of analysis and visualization in practice, continue to work with Countrix trying to obtain the most possible information of the traces, from the two approaches mentioned above, and considering different stakeholders apart from the teacher: developer, manager, and maybe researcher. - Talk to Dan and Antonio about how to integrate it with the architecture. 14. May 17th, 2016 Meeting: discussion of Ángel Serrano’s theoretical model for tracking using xAPI format. Review of the model and discussion of suggestions made by ADL of changes about verbs, activity types and extensions. Some issues that appeared were: having a more general set of verbs to cover more types of games versus having a more specific subset that covers less games and can then be extended; the use of the state API to store the state of the game and not only the progress of interactions as it has been done so far; activity types too general such as completable or reachable to better become extensions of activity, being able to have more information about the same statement. Also, it is mentioned that the OpenLRS has no longer support by Apereo so it should be changed later to a different LRS, for instance the one of ADL that fully supports xAPI. 15. May 17th, 2016 Meeting with Baltasar. While going through the new dashboards developed for different stakeholders, we discuss several things: consider different scenarios of use for dashboards (for instance, in a class, the teacher or the student); visualizations including time of game session should consider whether the game has a limited time to play or not (as it is the case of Countrix) and how this influences the sessions; the stakeholder of manager would be clearer if we consider several games, but in the case of a single one the manager could also be interested in visualize information such as pick times of plays i.e. when do most students play and also the mean number of users playing per minute for instance. Next things to do: write down the details of the new dashboards developed, taking into account the level of knowledge of the game that they require; extend the explanation of Google Analytics as a clear example, maybe adding some graphics for it; general review of the report including the evolution of the project (problems found and suggested solutions). 16. May 24th, 2016 Meeting with Baltasar. We discuss the new visualizations developed (single user dashboard for student and peak times). Several things to work on: - Update to last version of Kibana to change dashboards with customized labels and tags. - Meet with Dan and Antonio to try to incorporate these visualizations to the project. - Visualizations: student, add comparison with the mean of the class. Discussion of criteria of results, adding helps or explanations to dashboards. Peak times, try to make it interactive selecting both the time interval and the aggregations. Also, make more explicit the difference between the ones that require access to game model and the ones that do not.