Brain Computer Interfaces for Games

Total Page:16

File Type:pdf, Size:1020Kb

Brain Computer Interfaces for Games Masaryk University Faculty of Informatics Brain Computer Interfaces for Games Master’s Thesis Bc. Roman Konečný Brno, Fall 2017 Masaryk University Faculty of Informatics Brain Computer Interfaces for Games Master’s Thesis Bc. Roman Konečný Brno, Fall 2017 This is where a copy of the official signed thesis assignment and a copy ofthe Statement of an Author is located in the printed version of the document. Declaration Hereby I declare that this paper is my original authorial work, which I have worked out on my own. All sources, references, and literature used or excerpted during elaboration of this work are properly cited and listed in complete reference to the due source. Bc. Roman Konečný Advisor: Doc. Fotis Liarokapis PhD i Acknowledgement I want to thank all the wonderful people who have supported me in my studies and writing this thesis. I also want to thank my supervisor doc. Fotios Liarokapis, PhD for his guidance, support and kindness. iii Abstract The aim of this master’s thesis is to create a novel application for con- trolling simple computer games through EEG technology and conduct an experiment focusing on the playability of such a game on 30 test subjects. Data from the device used for the brain computer interaction should be collected and analyzed, as well as the questionnaires used for measuring the user experience. The goal of the project is to propose a suitable EEG hardware for the purposes of the application, designing and developing the application itself, running the experiment and gathering and analyzing the data that was collected, especially the correlations between the achieved results and gender. iv Keywords Brain-Computer Interface, BCI, Unity, Game, Neurosky mindwave v Contents 1 Introduction 1 2 Background 3 2.1 Brain computer interfaces ...................3 2.1.1 Introduction to Brain Computer Interfaces . .3 2.1.2 Types of BCI . .3 2.2 EEG ..............................4 2.3 BCI Approaches ........................4 2.3.1 Recording ordinary brain activity . .4 2.3.2 Event Related Potentials . .5 2.3.3 Steady-State Visual Evoked Potentials . .5 2.3.4 Motor Imagery . .5 2.3.5 Slow Cortial Potential Shifts . .6 2.4 BCI Systems ..........................6 2.4.1 Wireless BCI systems for consumer use . .6 2.4.2 Wireless BCI systems for research uses . .8 2.5 NeuroSky MindWave ..................... 12 2.6 Related work .......................... 12 2.7 Used technologies ....................... 16 2.7.1 Unity . 16 2.7.2 Visual Studio . 16 2.7.3 GIMP . 17 3 Initial project 19 3.1 Used technologies ....................... 19 3.2 BCI input method ....................... 19 3.3 Game description ....................... 22 3.4 Issues ............................. 22 4 Methodology 25 4.1 Game description ....................... 25 4.1.1 Requirements . 25 4.1.2 Game design . 26 4.2 Implementation ........................ 28 4.2.1 Used assets . 29 4.2.2 Controls . 30 vii 4.2.3 Running . 32 4.2.4 Shooting . 32 4.2.5 User interface . 33 4.2.6 Logging . 37 4.3 Future work .......................... 37 4.3.1 Sounds . 38 4.3.2 Additional game modes . 38 4.3.3 New environments and archer skins . 38 4.3.4 Online leaderboard . 39 4.3.5 Porting to other platforms . 39 5 Experiment 41 5.1 Testing group ......................... 41 5.2 Stages of the experiment .................... 41 5.3 Issues during the experiment ................. 43 6 Result Analysis 45 6.1 Procedure ........................... 45 6.2 Demographics ......................... 45 6.3 NASA Task Load Index .................... 46 6.4 Experience questionnaire ................... 48 6.5 Open questions ........................ 49 6.6 Game results ......................... 51 7 Conclusion 57 Bibliography 59 A Content of the online folder 65 viii List of Tables 2.1 Frequencies Generated By Different Types of Activities in the Brain. [28] 14 4.1 Used assets 30 6.1 Age of the participants according to gender 45 6.2 Daily use of a computer according to gender 45 6.3 Occupation of the participants according to gender 46 6.4 Highest qualification achieved according to gender 46 6.5 NASA TLX Questions 47 ix List of Figures 2.1 Emotiv EPOC [15] 7 2.2 Neural Impulse Actuator [17] 8 2.3 B-Alert X [19] 9 2.4 Quasar DSI 10/20 [21] 10 2.5 Enobio [23] 11 2.6 g.MOBIlab+ [24] 11 2.7 MindWave diagram [27] 13 2.8 2D car game using SSVEP [29] 15 2.9 Tower defense game controlled by SSVEP [31] 15 2.10 Personal edition of Unity. 16 3.1 Input using both MI and SSVEP 20 3.2 Input using SSVEP only with 4 directions 21 3.3 Input using SSVEP only with 8 directions 21 3.4 Car game prototype 23 4.1 Initial idea of aiming in the shooting part of the game — dynamic crosshair size. On the left, low meditation level crosshair is present. On the right, a small crosshair is displayed which is connected to high meditation level. 28 4.2 Mechanism for controlling the shooting — actual game screenshot. 29 4.3 UML diagram depicting the usage of the NeuroSky MindWave controlling interface in an application 31 4.4 Screen shot of the running part of the game 33 4.5 Screen shot of the shooting part of the game — successful attempt 34 4.6 Screen shot of the game menu 35 4.7 Screen shot of the leaderboard 36 4.8 Screen shot of the game UI after finishing the run 37 5.1 Female participant during the experiment 42 6.1 Chart showing the results of the NASA TLX questionnaire according to gender 48 6.2 Chart showing the results of the experience questionnaire according to gender 50 xi 6.3 Time required for finishing the game according to gender 52 6.4 Time spent using attention/meditation according to gender 53 6.5 Time required for finishing the game and time spent using attention/meditation of each participant 53 6.6 Shooting attempts according to gender 54 6.7 Attention levels according to gender 54 6.8 Meditation levels according to gender 55 xii 1 Introduction Over last two decades, the computers and computer games became common. The interaction with the computer, however, is still very limited to the usage of computer peripherals such as keyboard and mouse, which requires the user to be able to operate such devices. One approach to overcome this obstacle for the users which cannot use their hands (or feet in specific situations) is to utilize the Brain Computer Interface. This allows direct communication between the computer and human brain without the need of using any other devices and enables disabled people to use the computer or control artificial limbs. As the research in this field still continues, there are already solutions that can be used and are affordable to a broader audience. The aim of this thesis is to create a novel application for controlling simple computer games through EEG technology. The device used for collecting the brain data should be easy to use, affordable and should provide good experience for the player. The game should be tested by a group of users, evenly split between males and females, and the collected results should be analyzed. The analysis should cover both the user experience — how well they could control the game, how easy it is to adapt to this new controlling paradigm etc., and the actual game results in terms of how well the males and females did in the game. For the brain computer interaction, a NeuroSky MindWave headset was used as it provides an affordable and simple way how to connect the brain with the computer. The initial idea was to use a different BCI approach, which is discussed in chapter 3. Unfortunately, due to the issues, it was not possible to use this approach, so the entire project had to be redesigned and different technologies had to be used. The structure of the thesis is as follows: Chapter 2 provides back- ground information about Brain Computer Interfaces and technologies used for the game development. Chapter 3 describes the initial project idea, the design and the issues that forced the author to change the device. Chapter 4 describes the game, its design and the implementa- tion. Chapter 5 summarizes the testing process and the results of the testing are presented in Chapter 6. Finally, the conclusion and future work is described in Chapter 7. 1 2 Background 2.1 Brain computer interfaces 2.1.1 Introduction to Brain Computer Interfaces Brain computer interface (BCI) is a method of communication between human and computer based on neural activity generated by the brain and is independent of its normal output pathways of peripheral nerves and muscles [1]. Brain computer interfaces measure brain activity, process it and produce control signals that reflect the user’s intent that can be then by connecting the device to the computer [2]. 2.1.2 Types of BCI Brain computer interfaces can be split into three main categories. An invasive approach uses implantable micro-electrodes that are placed directly into the brain cortex during a neurosurgery and has the high- est signal quality [3]. These devices can provide functionality to para- lyzed people. Invasive BCIs are also used to restore vision of a subject by connecting the brain with external cameras and to re-enable the use of arms and legs by using brain controlled robotic prosthetics. As they rest in the grey matter, invasive devices produce the highest quality signals of BCI devices but are vulnerable to further expanding of scars on brain tissue which can lead to weakening or even losing the signal [4].
Recommended publications
  • Brain Computer Interfaces
    Studiengang Medizinische Informatik BACHELOR THESIS Brain Computer Interfaces OpenViBE as a Platform for a P300 Speller Herbert S. Kisakye Matrikelnummer: 172588 E-Mail: [email protected] Heilbronn August 6, 2012 Supervisors: Prof. Dr. Rolf Bendl Dipl.-Inform. Med. C. Maier ACKNOWLEDGEMENTS This thesis is based on research I did in the Bio-Signal Laboratory at the Heilbronn University of Applied Sciences, in the summer of 2012. Without the help of different individuals I would never have been able to achieve much I am greatly indebted to Dipl.-Inform. Christoph Maier , for his readiness to take time out of his busy schedule, working on his Doctorate, to answer questions and give me invaluable guidance. I would like to thank Prof.Dr. Rolf Bendl immensely, for pointing me in this direction of a relatively new yet exciting field. Of course this work would never have come to fruition without the people, mostly fellow students at the university, that sat through many hours of repetitive, sometimes monotonous experiments and those that helped with a few technical aspects. Thank you all so much. Lastly a special thank you to all my friends and family for the emotional support. You kept me going. Herbert Sunday Kisakye III Abstract Aside from hardware, a major component of a Brain Computer Interface is the software that provides the tools for translating raw acquired brain signals into commands to control an application or a device. There’s a range of software, some proprietary, like MATLAB and some free and open source (FOSS), accessible under the GNU General Public License (GNU GPL).
    [Show full text]
  • BCI Software Platforms
    BCI Software Platforms C. Brunner, G. Andreoni, L. Bianchi, B. Blankertz, C. Breitwieser, S. Kanoh, C. A. Kothe, A. Lecuyer,´ S. Makeig, J. Mellinger, P. Perego, Y. Renard, G. Schalk, I. P. Susila, B. Venthur, and G. R. Muller-Putz¨ Abstract In this chapter, we provide an overview of publicly available software platforms for brain-computer interfaces. We have identified seven major BCI plat- forms and one platform specifically targeted towards feedback and stimulus pre- sentation. We describe the intended target user group (which includes researchers, programmers, and end users), the most important features of each platform such as availability on different operating systems, licences, programming languages in- volved, supported devices, and so on. These seven platforms are: (1) BCI2000, (2) OpenViBE, (3) TOBI Common Implementation Platform (CIP), (4) BCILAB, (5) C. Brunner, C. Breitwieser, G. R. Muller-Putz¨ Institute for Knowledge Discovery, Graz University of Technology, Austria, e-mail: clemens. [email protected] C. Brunner, C. A. Kothe, S. Makeig Swartz Center for Computational Neuroscience, INC, UCSD, San Diego, CA, USA G. Andreoni, P. Perego INDACO, Politecnico di Milano, Milan, Italy L. Bianchi Neuroscience Department, Tor Vergata University of Rome, Rome, Italy B. Blankertz, B. Venthur Machine Learning Laboratory, Berlin Institute of Technology, Berlin, Germany S. Kanoh Department of Electronics and Intelligent Systems, Tohoku Institute of Technology, Sendai, Japan J. Mellinger Institute of Medical Psychology and Behavioral Neurobiology, University of Tubingen,¨ Germany Y. Renard, A. Lecuyer´ National Institute for Research in Computer Science and Control (INRIA), Rennes, France G. Schalk Wadsworth Center, New York State Department of Health, Albany, NY, USA I.
    [Show full text]
  • Design and Implementation of a Brain-Computer Interface System
    Design and Implementation of a Brain-Computer Interface System Bastian Venthur Design and Implementation of a Brain-Computer Interface System Dipl.-Inform. Bastian Venthur aus Berlin Von der Fakultät IV – Elektrotechnik und Informatik der Technischen Universität Berlin zur Erlangung des akademischen Grades Doktor der Ingenieurwissenschaften (Dr.-Ing.) genehmigte Dissertation Prüfungsausschuss Vorsitzender: Prof. Dr. Klaus Obermayer 1. Gutachter: Prof. Dr. Klaus-Robert Müller 2. Gutachter: Prof. Dr. Benjamin Blankertz 3. Gutachter: Prof. Dr. Stefan Jähnichen 4. Gutachter: Prof. Dr. Gerwin Schalk Tag der wissenschaftlichen Aussprache: 18.3.2015 Berlin, 2015 D83 Abstract In this dissertation we present the results of our effort to provide a modular, completely free- and open source brain-computer interface (BCI) system in Python. While other BCI systems exist, they are usually monolithic and written in a low level programming language like C++. Monolithic BCI systems cover the whole BCI processing chain from data acquisition, to signal processing, and feedback- and stimulus presentation, but they also force the user to use the whole system. This is problematic, as a researcher who is specialized, for example, in methods development will probably already have a toolbox of algorithms in a programming language he is familiar with. Being forced to use a monolithic system, means he has to migrate the tools and algorithms to the monolithic system first, and then work in an unfamiliar environment. Being written in C++, those BCI systems also make it unnecessary hard for non-computer scientists to add new functionality to those systems. Even among computer scientists, C++ is notorious for the skill level required to write decent C++ code.
    [Show full text]
  • BCI Software Platforms
    BCI Software Platforms C. Brunner, G. Andreoni, L. Bianchi, B. Blankertz, C. Breitwieser, S. Kanoh, C. A. Kothe, A. Lecuyer,´ S. Makeig, J. Mellinger, P. Perego, Y. Renard, G. Schalk, I. P. Susila, B. Venthur, and G. R. Muller-Putz¨ Abstract In this chapter, we provide an overview of publicly available software platforms for brain-computer interfaces. We have identified seven major BCI plat- forms and one platform specifically targeted towards feedback and stimulus pre- sentation. We describe the intended target user group (which includes researchers, programmers, and end users), the most important features of each platform such as availability on different operating systems, licences, programming languages in- volved, supported devices, and so on. These seven platforms are: (1) BCI2000, (2) OpenViBE, (3) TOBI Common Implementation Platform (CIP), (4) BCILAB, (5) C. Brunner, C. Breitwieser, G. R. Muller-Putz¨ Institute for Knowledge Discovery, Graz University of Technology, Austria, e-mail: clemens. [email protected] C. Brunner, C. A. Kothe, S. Makeig Swartz Center for Computational Neuroscience, INC, UCSD, San Diego, CA, USA G. Andreoni, P. Perego INDACO, Politecnico di Milano, Milan, Italy L. Bianchi Neuroscience Department, Tor Vergata University of Rome, Rome, Italy B. Blankertz, B. Venthur Machine Learning Laboratory, Berlin Institute of Technology, Berlin, Germany S. Kanoh Department of Electronics and Intelligent Systems, Tohoku Institute of Technology, Sendai, Japan J. Mellinger Institute of Medical Psychology and Behavioral Neurobiology, University of Tubingen,¨ Germany Y. Renard, A. Lecuyer´ National Institute for Research in Computer Science and Control (INRIA), Rennes, France G. Schalk Wadsworth Center, New York State Department of Health, Albany, NY, USA I.
    [Show full text]
  • Design of Classification Methods for Brain Computer Interfaces: An
    Informatics Engineering Degree Software Engineering Degree’s Final Project Design of classification methods for Brain Computer Interfaces: An application using the OpenViBE software Author Ibai Díez Oronoz 2015 Abstract Brain computer Interface (BCI) is a technology which is based on the acquisition of brain signals to be processed and interpreted by a computer, creating a direct communication pathway between the brain and an external device. This type of interfaces stablish a way to interact with the outside world by our thoughts as these interfaces allow transforming them into real actions in our environment. BCIs are often directed at assisting, augment- ing, or repairing human cognitive or sensory-motor functions. This Degree’s Final Project is focused on implementing and testing classification algo- rithms for BCIs because these algorithms are among the most important components of the translation of brain signals. Classification algorithms (CAs) are used in BCIs to pre- dict the human intention from the analysis of the signals, helping the computer to decode the human will from the signals and translate them into commands. Regarding the implementation and evaluation of these CAs, OpenViBE will be used. OpenViBE is a free software platform which is dedicated to designing, testing and us- ing BCIs and give us all the tools needed to test these algorithms. Moreover, it is a modular and multi-platform software which supports a vast selection of hardware elec- troencephalography (EEG) devices. In addition, it has different application fields such as medical, multimedia, robotics and all other domains related to BCIs and real-time neuro- science. Keywords: classification algorithms, BCI, OpenViBE, brain signal analysis.
    [Show full text]
  • Openvibe: an Open-Source Software Platform to Design, Test And
    OpenViBE: An Open-Source Software Platform to Design, Test and Use Brain-Computer Interfaces in Real and Virtual Environments Yann Renard1,∗, Fabien Lotte1, Guillaume Gibert2, Marco Congedo3, Emmanuel Maby2, Vincent Delannoy1, Olivier Bertrand2, Anatole Lecuyer´ 1,∗ 1INRIA Rennes, FRANCE 2INSERM U821, Lyon, FRANCE 3INPG Gipsa-Lab, Grenoble, FRANCE 1 ∗Corresponding authors: Yann Renard Anatole Lecuyer´ Bunraku Team Bunraku Team INRIA Rennes - Bretagne Atlantique INRIA Rennes - Bretagne Atlantique Campus universitaire de Beaulieu Campus universitaire de Beaulieu 35042 Rennes Cedex 35042 Rennes Cedex FRANCE FRANCE [email protected] [email protected] 2 Abstract This paper describes the OpenViBE software platform which enables to design, test and use Brain-Computer Interfaces. Brain-Computer Interfaces (BCI) are communication systems that enable users to send commands to computers only by means of brain activity. BCI are gaining interest among the Virtual Reality (VR) community since they have appeared as promising interaction devices for Virtual Environments (VE). The key features of the platform are 1) a high modularity, 2) embedded tools for visualization and feedback based on VR and 3D displays, 3) BCI design made available to non-programmers thanks to visual programming and 4) various tools offered to the different types of users. The platform features are illustrated in this paper with two entertaining VR applications based on a BCI. In the first one, users can move a virtual ball by imagining hand movements, while in the second one, they can control a virtual spaceship using real or imagined foot movements. Online experiments with these applications together with the evaluation of the platform computational performances showed its suitability for the design of VR applications controlled with a BCI.
    [Show full text]