Next Article in Journal
High-Precision Numerical Research on Flow and Structure Noise of Underwater Vehicle
Next Article in Special Issue
Flexible Convolver for Convolutional Neural Networks Deployment onto Hardware-Oriented Applications
Previous Article in Journal
Using Digital Twin in a Shipbuilding Project
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Evaluation of the User Adaptation in a BCI Game Environment †

by
Kosmas Glavas
1,
Georgios Prapas
1,
Katerina D. Tzimourta
1,
Nikolaos Giannakeas
2 and
Markos G. Tsipouras
1,*
1
Department of Electrical and Computer Engineering, University of Western Macedonia, Campus ZEP Kozani, 50100 Kozani, Greece
2
Department of Informatics and Telecommunication, University of Ioannina, 45110 Arta, Greece
*
Author to whom correspondence should be addressed.
This paper is an extended version of our paper published in 2022 45th International Conference on Telecommunications and Signal Processing (TSP), Prague, Czech Republic, 13–15 July 2022.
Appl. Sci. 2022, 12(24), 12722; https://doi.org/10.3390/app122412722
Submission received: 17 November 2022 / Revised: 5 December 2022 / Accepted: 7 December 2022 / Published: 12 December 2022

Abstract

:
Brain-computer interface (BCI) technology is a developing field of study with numerous applications. The purpose of this paper is to discuss the use of brain signals as a direct communication pathway to an external device. In this work, Zombie Jumper is developed, which consists of 2 brain commands, imagining moving forward and blinking. The goal of the game is to jump over static or moving “zombie” characters in order to complete the level. To record the raw EEG data, a Muse 2 headband is used, and the OpenViBE platform is employed to process and classify the brain signals. The Unity engine is used to build the game, and the lab streaming layer (LSL) protocol is the connective link between Muse 2, OpenViBE and the Unity engine for this BCI-controlled game. A total of 37 subjects tested the game and played it at least 20 times. The average classification accuracy was 98.74%, ranging from 97.06% to 99.72%. Finally, playing the game for longer periods of time resulted in greater control.

1. Introduction

A brain-computer interface (BCI) [1,2] is a specialized communication system that enables people to interact with applications [3] by sending commands or messages without any muscle or nerve activity. There are many fields that can benefit from the development of BCIs, such as medical applications [4], games [5], and tourism [6]. In the medical field, BCIs can be used for detecting and diagnosing brain or sleep disorders; in gaming, many new applications have been developed for educational purposes or for expanding the gaming experience for people with movement disabilities. Lastly, tourism can benefit from controlling augmented or virtual touristic environments.
Depending on the placement of the sensors, BCI systems are divided into two categories: invasive and non-invasive [7,8]. If the electrodes used for acquiring the brain signals are placed as an array within the skull, then the system is categorized as an invasive BCI. Otherwise, if the electrodes are placed on the scalp, then the system is non-invasive. The advantage of the first category is that the signal has better quality, with reduced artifacts and noise. Because neurosurgery is a dangerous and costly procedure, patients with major neural disabilities such as blindness or paralysis are the primary targets of invasive BCI. There are several advantages of the non-invasive category, such as portability, low cost and the safety of the procedure. The most common non-invasive technique is electroencephalography (EEG). By definition, an EEG provides a recording of the electrical activity of the brain from the surface of the scalp. EEG devices can be either commercial or clinical. Clinical devices usually have 64 or 32 electrodes, and they are used in medical applications [9]. Commercial devices are cheaper and more accessible, and the number of electrodes on those devices varies from 1 to 64. The following Table 1 presents a list of commercial EEG headsets from the literature.
The EEG devices that are presented in the table above have been employed by researchers to control mechatronic devices. Emotiv Epoc+ was used by Aguiar et al. [10] to control a robotic arm. Emotiv Insight was employed by Espiritu et al. [11] to command a wheelchair with brain commands. Neurosky MindWave was used by Katona et al. [12] to control a mobile robot. Lastly, Unicorn Hybrid Black was employed by Belkacem and Lakas [13] to achieve robot-drone interactions.
A BCI system consists of 5 major components [14], as is presented in Figure 1:
(1)
Signal acquisition;
(2)
Signal processing;
(3)
Feature extraction;
(4)
Feature translation;
(5)
Device output.
Brain activity [15] is measured and recorded by signal acquisition, and the raw data are de-noised by signal pre-processing. The next step is signal processing for filtering the signal in order to extract several features for the classification process. Then the classifier translates the brain signals into application commands. Many BCI applications provide feedback and re-training to the user.
In this work, a BCI-controlled game is developed. The name of the 2D game is Zombie Jumper, and the goal is to overcome obstacles using two mental commands. The Unity engine is used to build the game, and OpenViBE is used to process and classify the EEG signals. OpenViBE is also used for real-time classification, and through a lab streaming layer (LSL) stream, it sends data to the game. A Muse 2 headband is used to acquire EEG data from the 37 participants that tested the game.

2. Related Work

Several papers were published in the last few years that intend to connect BCIs with video games. The main target of these studies is to develop games that can be played by brain signal commands. In the following papers from the literature, the main technique that was used is attention and meditation levels to control the BCI and play the games. In the works of [16,17,18], the authors chose Neurosky devices with one sensor to acquire the EEG data, while [19,20,21] chose headsets with more EEG sensors, including the Emotiv Insight headset with 5 sensors, the EMOTIV EPOC+ headset with 14 sensors, and the Muse 2 headband with 4 sensors, respectively.
Wu et al. [16] developed an android racing BCI game controlled by Mindset, a commercially available EEG headset. NeuroSky Mindset is an EEG headband with only 1 sensor, and it is mostly used for attention-meditation values. The employed racing game is controlled by the user’s neural mind states. The user can alter the speed of the car and the map of the game with his attention and meditation level. To finish the game, the user must complete 2 map circles, and the map can dynamically change depending on the mean meditation level. For a mean meditation between 0 and 35, the most difficult map is loaded; for mean meditation values between 36 and 70, the intermediate one is loaded, and for 71 to 100, the easiest one is loaded. If the mean meditation level is high, then the user is nervous. The car’s speed is proportional to the attention level, so the higher the attention level of the player, the faster he can finish the game. For the testing phase, 5 subjects played the game; 1 of them managed to load the difficult map, 3 managed to load the intermediate map, and 1 loaded the easiest map. Their mean meditation scores were 27, 39, 47, 55, and 79.
Vasiljevic et al. [17] designed the Mental War game controlled by the NeuroSky MindWave headset, which has 1 electrode. The developed game is a tug-of-war game based on the user’s attention level. The game has 3 different modes: single player, competitive and collaborative. In single-player mode, the user competes against the computer, and there are 3 difficulty levels: easy, medium and hard. In competitive mode, which is multiplayer, users battle against each other, and the player with the greater attention level will pull the others to his side. In collaborative mode, users can team up and battle against the computer or a different team of players. The team’s attention level is the mean of the sum of each individual’s attention level. Therefore, if a team member has a low attention score, the others should score very high for their team to win. In the testing phase, 24 subjects participated in several scenarios to improve and evaluate the game. Attention levels and the duration of the game were the two evaluation metrics. The average attention score for the single-player mode was 53.49%, while for the multiplayer (competitive and collaborative) modes, the average score was 52.42%. The average duration of the single player mode was 90.99 s, and for the multiplayer mode, the average duration was 56.22 s.
Rosca et al. [19] developed a game called Mental Pool Game powered by the Unity engine and controlled by an Emotiv Insight headset with 5 EEG sensors. In this work, neutral state and attention level are used for playing the game. The user can control the speed and strength of a white ball with his attention level. Practically, these in-game features are proportional to the attention of the player. Moreover, they used the 3-axis gyroscope of the Emotiv headset to update the white ball’s position on the table in order to match the player’s position. To test the game, 3 healthy participants played the Mental Pool Game. Before the actual experiment, the subjects trained offline for the neutral and attention states. For the attention level, the subjects were instructed to visualize the movement of a cube. The participants played 1 round of each game until the exhaustion of the balls on the pool table.
Wang et al. [18] designed a parkour game based on EEG and electrooculograms (EOG). MindWave Mobile was employed for this BCI application. This headset consists of an earphone, an ear clip, and a sensor arm. The game has four levels, and the in-game avatar can run, jump to avoid obstacles, and collect coins. The avatar has three lives with which to complete one level, and the game rewards the user every time he jumps over an obstacle, collects coins, and finishes a level. More specifically, the attention level is associated with the avatar’s speed, meaning that an increase in attention level leads to an increase in the avatar’s speed. Additionally, blinking corresponds to in-game jumping. To test their application, 5 subjects played the game. To evaluate their experiment, they used two different algorithms and the following metrics: maximum meditation degree, maximum attention degree, and the time to pass the first stage. The average time to pass the first stage for the first algorithm was 34.6 s, and for the second one, it was 30.2 s.
Alchalabi et al. [20] developed a serious game to improve the focusing ability of people that suffer from ADHD. To acquire the EEG data, they used the EMOTIV EPOC+ headset, which has 14 EEG channels. The designed 3D game has two different commands, push and neutral state, and the objective of the game is to collect all the available cubes. The push command is related to the attention level, while the neutral command is related to the meditation level of the user. When the user is focused, the avatar is moving forward, and when the user relaxes, the avatar stops moving. Additionally, the user can rotate the avatar using the gyroscope from the Emotiv headset. Four healthy subjects participated in the experiment. In the beginning, they were trained for the 2 mental states, and after completing the training phase, they were introduced to the game. They played the game with 2 protocols: mental commands and a keyboard. It was observed that users had greater engagement and higher attention levels when playing with the mental commands.

3. Materials and Methods

3.1. Materials

The goal of this work is to develop a low-cost BCI-controlled game in order to train users to adapt to BCI environments. In the following subsection, the hardware and software used are presented.

3.1.1. EEG Headset

To acquire the raw EEG data, the Muse 2 [22] headband (Figure 2) is used, which is a 4-electrode commercial EEG headset. The 4 electrodes are placed in the frontal cortex, two on the left (TP9 and AF7) and two on the right (AF8 and TP10). Muse 2 is a portable, flexible and low-cost EEG headband, and it connects with the computer via Bluetooth.

3.1.2. BlueMuse

BlueMuse [23] is a streaming app for the Muse 2 headband. The connection between the computer and the EEG device is made via Bluetooth. It has many features that make it easier for the user, such as the automatic detection of available EEGs that are within a distance recognized by Bluetooth. Additionally, the application supports the simultaneous flow of data from several Muses, which facilitates the creation of various applications that need two or more devices at the same time. Data streaming is achieved via the lab streaming layer (LSL) protocol.

3.1.3. Lab Streaming Layer

LSL [24] is an open-source system used to stream, receive, synchronize, and record time series data streams acquired from numerous acquisition devices available in the network. The LSL protocol provides secure data transmission due to the inheritance of the TCP protocol. It reduces complexity over cross-platform application connectivity and minimizes data loss. For this work, BlueMuse connects with the Muse 2 headband via Bluetooth and automatically creates an LSL stream for transmitting the raw EEG data. The LSL stream is connected to OpenViBE’s acquisition server in order to record and then process and classify the brain signals.

3.1.4. OpenViBE

The BCI-controlled game is employed on the OpenViBE platform, which is an open-source software for recording, processing and classifying EEG data either offline or in real-time. OpenViBE has several integrated algorithms, and it also provides drivers for BCI headsets to connect with other applications and engines.

3.2. Methods

In the following subsection, the methods of the proposed BCI system are presented. In Figure 3, the flowchart diagram for the offline and the online process is shown.

3.2.1. Offline Processing

For recording raw EEG data, OpenViBE’s acquisition server was employed. A simple scenario was created that obtains the raw EEG data and stores them in a CSV file, excluding 2 channels from the Muse 2 headband (timestamp and AUX). When the recording phase was completed, a new scenario was designed in order to process the data and extract features to classify them. The brain signal was imported, and a pre-filter was applied. This filter was a Chebyshev bandpass filter between 8 and 30 Hz. This was used to cut noise, artifacts and low-frequency bands such as delta and theta waves. After the Chebyshev filter was applied, the signal was epoched in 1 s time windows with no overlap. The time window for this BCI application had to be short so the user could control the game avatar accurately. The final time window was decided through a trial-and-error process. Fast Fourier transform (FFT) was used for spectral analysis. Then, the EEG spectrum was split into 3 bands:
(1)
Alpha waves 8–12 Hz.
(2)
Beta low waves 12–20 Hz.
(3)
Beta high waves 20–30 Hz.
Finally, the average spectral amplitude per band was calculated and used as an input for the classifier. The offline processing scenario that is described is presented in Figure 4.

3.2.2. Classification

To classify the data, two algorithms were tested, linear discriminant analysis (LDA) and multi-layer perceptron (MLP). These algorithms are already integrated by OpenViBE. The obtained features from the processing phase were used as input to the classifiers.
LDA [25] is a common technique used for supervised classification problems. It can be used to reduce dimensions, visualize data and interpret the importance of the given features. LDA finds the projection hyperplane in order to minimize the interclass variance and maximize the distance of the projected means of the classes. Basically, the classifier finds a linear combination of features that can group data or separate them into two or more classes.
MLP [25,26] is a neural network. It has three different layers: the input layer, the hidden layer and the output layer. The input signal is sent to the input layer to be processed. The computational power of this algorithm derives from the hidden layers. They are located between the input and output layers, and their number varies depending on the problem. The neurons in this classification algorithm are trained with the back-propagation learning algorithm. The output layer is responsible for predicting and classifying data. Multi-layer perceptrons are more commonly used in pattern classification.
In Table 2 the classification accuracy and the confusion matrix of the offline classification process for the subjects that participated in the experiment are presented. The average classification accuracy for LDA is 98.75% while for Multi-layer Perceptron is 98.74%.

3.2.3. Online Scenario

After the completion of the offline processing and the training of the classification algorithm, a new scenario was created for the online testing. The parameters of this scenario were the same as in the previous scenario except for the time segmentation, which was not required. As an input, the acquisition client was used for importing the real-time signal obtained by the Muse 2 headband. The classified instances were transported through an LSL stream to be used for the BCI application. The real-time classification scenario is presented in Figure 5.

4. Game Design

The developed 2D game was designed in the Unity platform [27], which is a popular developing engine used for game development. Unity can produce BCI applications when the appropriate libraries and tools are imported. For this work, the liblsl library was used to connect Unity with the BCI. More specifically, LSL creates a live stream that allows the application to receive data from the EEG device. The data transmitted through this LSL stream are the classification results from OpenViBE’s real-time classification scenario. Basically, these data were translated into in-game commands, replacing the standard Unity input commands (keyboard input). Appropriate C-sharp scripts handled an LSL stream and read the transmitted data sample by sample.
In the designed game, the player must control the avatar accurately in order to overcome obstacles, monsters and ghosts and reach the end of the level. There are two levels: in the first one, the obstacles are static, and only the avatar is moving toward them, while in the second, both the avatar and the obstacles are moving. In order to make the game more competitive and fun, a scoreboard on the top left of the screen was employed. The score was updated based on the distance that the player moved and the number of obstacles that were successfully overcome. There were 2 available commands: move forward and jump. In order to move forward, the user has to imagine forward movement and look ahead. For jumping, the user has to perform a hard intentional blink. The game interface is presented in the following Figure 6.

5. Results and Discussion

5.1. Dataset

To evaluate the BCI experiment, 37 subjects, 20 males and 17 females with varying ages between 19 and 61, played the game. All participants were healthy with normal or corrected vision and signed a formal consent in order to use their recordings for this research. An experienced researcher instructed them to sit in a chair and minimize their movements to perform 2 separate EEG recordings. For the first recording, subjects had to perform intentional hard blinks every 2 s for 5 min. For the second recording, subjects were instructed to look ahead and imagine moving forward for 5 min. During the recording phase, participants were isolated in a quiet room in order to minimize external noise. All 74 recordings were included in the offline processing without excluding data with a total of 580 feature vectors as input to the classifier for every subject. The average classification accuracy was 98.74%, ranging from 97.06% to 99.72% (Table 2).

5.2. Game Testing

Moving on to online testing, players were introduced to the BCI game and Unity environment because they had zero experience in BCI experiments. With the aid of a researcher, subjects became familiar with the equipment and the whole procedure. After the training phase, they had to play level 1 of the game strictly 20 times in order to evaluate their performance. The game score was chosen as an evaluation metric, which increased proportionally to the distance covered and the obstacles that the player overcame. The 20 scores were split into 2 sets of 10; then, the average score of these 2 sets was calculated to examine how the user adapts to the game. To make the whole experiment more competitive and fun, subjects were informed that the 18 best players would advance to test level 2 of the game.
Table 3 presents the level 1 game scores from the 37 subjects. The maximum score for level 1 is 100. The average overall score for all subjects is 52.70. The best performance is 66.85 by Sub17, while the worst one is 25 by Sub22. 18 subjects were able to finish level 1 at least 1 time; 5 of them managed to finish it twice, and only Sub17, the player with the best overall score, finished it 3 times. It is observed that 78% of the players (29 out of 37) improved their performance in the second set of 10 tries. This observation indicates that most of the players adapted to the BCI-controlled game and became better after they familiarized themselves with it. The main difficulty for some players was synchronizing the jump command because of the 1-second delay of the commands due to the 1-second time windows chosen for the classifier.
Table 4 presents the level 2 game scores from the 18 best subjects qualified from level 1. The maximum score for level 2 is 150. The average overall score for all subjects is 70.35. The highest score achieved in this level is 87.9 by Sub32. The worst score is 51.05 by Sub20. A total of 8 subjects managed to finish the level at least 1 time, 4 subjects finished it twice, and 1 subject finished it 3 times. The results show that 55.55% of the players (10 out of 18) adapted to this level’s difficulty and improved their performance in the second set of tries. Level 2 is designed with increased difficulty compared to level 1 in order to test user adaptation in a more difficult BCI scenario. The results confirm that level 2 is indeed more challenging because the 18 players who advanced from level 1 have an average decrease of 13.33% in their level 2 scores.
A paired samples t-test was conducted to determine the effect of adaptation between the 2 sets of 10 tries for each level. The results for level 1 indicate a significant difference between average score 1 (M = 48.66, SD = 11.04) and average score 2 ((M = 56.29, SD = 10.15), (t(37) = 0.583, p < 0.01)). The results for level 2 indicate a not significant difference between average score 1 (M = 68.85; SD = 12.11) and average score 2 ((M = 71.85, SD = 11.65), (t(18) = 0.265, p = 0.287)).
A comparative study between this work and other papers from the literature is presented in the following Table 5. The majority of the papers designed a BCI-controlled game with 2 mental commands using a commercially available EEG headset.
Wu et al. [16], Vasiljevic et al. [17], and Wang et al. [18] used the NeuroSky headset, which has 1 electrode, to acquire the EEG signals. Rosca et al. [19] and Alchalabi et al. [20] used Emotiv headsets with 5 and 14 electrodes, respectively. In this experiment, the Muse 2 headband was chosen, which is a 4-electrode EEG device rarely studied in the literature.
According to the majority of the papers in the literature, the subjects played the game only once, except Alchalabi et al. [20], where the subjects played the game two times, and Vasiljevic et al. [17], where repetitions per subject were not mentioned. In this work, user adaptation and improvement are the main focus; thus, subjects played the game 20 times (in 2 sets of 10) in order to measure their improvement.
Wu et al. [16] calculated the mean meditation of the players, and depending on the value, the difficulty of the game changes. Rosca et al. [19] did not present any evaluation metrics for the mental pool game they designed. The evaluation metrics from the works of Vasiljevic et al. [17] and Wang et al. [18] mainly focused on the game duration and on attention-meditation level. Alchalabi et al. [20] used several metrics for their game, such as focus, stress, relaxation, interest, excitement and engagement, in order to help ADHD patients. In this work, a more thorough approach is employed, as the game is tested on 37 subjects, while in other studies, the average number of subjects is 8.2. Additionally, user adaptation and improvement are taken into consideration as a user evaluation metric. Lastly, classification accuracy is presented as an offline metric, and the game score is presented as an online evaluation metric.

6. Conclusions

In this paper, Zombie Jumper was developed, which is a BCI-controlled game. The game consists of two commands, moving forward and jumping. To record the raw EEG data, a Muse 2 headband was used. The OpenViBE platform was employed to process and classify the brain signals, and the Unity engine was used to build the game. Lastly, in order to make the game BCI controlled, the LSL protocol was used as the connective link. To evaluate the experiment, 37 subjects tested the game. They played the first level 20 times, and the best 18 of them proceeded to the next level. It was observed that most of the participants adapted to the BCI game, significantly improving their performance while playing the game. All subjects were interviewed after their session and stated that they enjoyed Zombie Jumper.
For the classification process, two algorithms were tested, MLP and LDA. The accuracy of MLP was 98.74%, and this value was 98.75% for LDA. One of the goals of this work was to examine user adaptation and improvement. The results showed that users gradually improved their performance after each repetition. Level 1 average improvement was 7.63%, while for level 2, the average improvement was 2%. Lastly, the overall average level 1 score was 52.70, while the overall average level 2 score was 70.35.
In the future, the goal is to extend Zombie Jumper to be completely controlled by BCI. More difficult levels will be developed, and multiple characters will be added. Furthermore, the goal is to increase the number of commands allowing the character to perform extra moves. The BCI application in this study was based on a 2D game. Further research will be focused on the use of BCI in various research areas, such as the control of virtual or augmented environments, and commanding autonomous vehicles, such as electrical wheelchairs.

Author Contributions

Conceptualization, M.G.T.; methodology, K.G., G.P., K.D.T., N.G. and M.G.T.; software, K.G. and G.P.; validation, K.G. and G.P.; data curation, K.G. and G.P.; writing—original draft preparation, K.G. and G.P.; writing—review and editing, K.G., G.P., K.D.T., N.G. and M.G.T.; supervision, M.G.T.; project administration, M.G.T. All authors have read and agreed to the published version of the manuscript.

Funding

This work is partially supported from the project “AGROTOUR–New Technologies and Innovative Approaches to Agri-Food and Tourism to Boost Regional Excellence in Western Macedonia” (MIS 5047196), which is implemented under the Action “Reinforcement of the Research and Innovation Infrastructure”, funded by the Operational Programme ”Competitiveness, Entrepreneurship and Innovation” (NSRF 2014-2020), and co-financed by Greece and the European Union (European Regional Development Fund). Additionally, this work has been co-financed by the European Union and Greek national funds through Operational Program Competitiveness, Entrepreneurship and Innovation under the call RESEARCH—CREATE—INNOVATE: “Intelli– WheelChair” (Project Code: T2EΔ K-02438).

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
BCIBrain–computer interface
HCIHuman–computer interface
EEGElectroencephalography
EOGElectrooculography
LSLLab streaming layer
FFTFast Fourier transform
LDALinear discriminant analysis
MLPMulti-layer perceptron

References

  1. Minguillon, J.; Lopez-Gordo, M.A.; Pelayo, F. Trends in EEG-BCI for daily-life: Requirements for artifact removal. Biomed. Signal Process. Control 2017, 31, 407–418. [Google Scholar] [CrossRef]
  2. Abiri, R.; Borhani, S.; Sellers, E.W.; Jiang, Y.; Zhao, X. A comprehensive review of EEG-based brain–computer interface paradigms. J. Neural Eng. 2019, 16, 011001. [Google Scholar] [CrossRef]
  3. Shih, J.J.; Krusienski, D.J.; Wolpaw, J.R. Brain-computer interfaces in medicine. Mayo Clin. Proc. 2012, 87, 268–279. [Google Scholar] [CrossRef] [Green Version]
  4. Li, Y.; Pan, J.; Long, J.; Yu, T.; Wang, F.; Yu, Z.; Wu, W. Multimodal BCIs: Target detection, multidimensional control, and awareness evaluation in patients with disorder of consciousness. Proc. IEEE 2015, 104, 332–352. [Google Scholar]
  5. Prapas, G.; Glavas, K.; Tzallas, A.T.; Tzimourta, K.D.; Giannakeas, N.; Tsipouras, M.G. Motor Imagery Approach for BCI Game Development. In Proceedings of the 2022 7th South-East Europe Design Automation, Computer Engineering, Computer Networks and Social Media Conference (SEEDA-CECNSM), Ioannina, Greece, 23–25 September 2022; pp. 1–5. [Google Scholar] [CrossRef]
  6. Fu, H.L.; Fang, P.H.; Chi, C.Y.; Kuo, C.t.; Liu, M.H.; Hsu, H.M.; Hsieh, C.H.; Liang, S.F.; Hsieh, S.; Yang, C.T. Application of Brain-Computer Interface and Virtual Reality in Advancing Cultural Experience. In Proceedings of the 2020 IEEE International Conference on Visual Communications and Image Processing (VCIP), Macau, China, 1–4 December 2020; pp. 351–354. [Google Scholar] [CrossRef]
  7. Steyrl, D.; Kobler, R.J.; Müller-Putz, G.R. On similarities and differences of invasive and non-invasive electrical brain signals in brain-computer interfacing. J. Biomed. Sci. Eng. 2016, 9, 393. [Google Scholar] [CrossRef] [Green Version]
  8. Nicolas-Alonso, L.F.; Gomez-Gil, J. Brain computer interfaces, a review. Sensors 2012, 12, 1211–1279. [Google Scholar] [CrossRef] [PubMed]
  9. Waldert, S. Invasive vs. non-invasive neuronal signals for brain-machine interfaces: Will one prevail? Front. Neurosci. 2016, 10, 295. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  10. Aguiar, S.; Yanez, W.; Benítez, D. Low complexity approach for controlling a robotic arm using the Emotiv EPOC headset. In Proceedings of the 2016 IEEE International Autumn Meeting on Power, Electronics and Computing (ROPEC), Zihuatanejo, Mexico, 9–11 November 2016; IEEE: Piscataway, NJ, USA, 2016; pp. 1–6. [Google Scholar]
  11. Espiritu, N.M.D.; Chen, S.A.C.; Blasa, T.A.C.; Munsayac, F.E.T.; Arenos, R.P.; Baldovino, R.G.; Bugtai, N.T.; Co, H.S. BCI-controlled Smart Wheelchair for Amyotrophic Lateral Sclerosis Patients. In Proceedings of the 2019 7th International Conference on Robot Intelligence Technology and Applications (RiTA), Daejeon, Korea, 1–3 November 2019; pp. 258–263. [Google Scholar] [CrossRef]
  12. Katona, J.; Ujbanyi, T.; Sziladi, G.; Kovari, A. Speed control of Festo Robotino mobile robot using NeuroSky MindWave EEG headset based brain-computer interface. In Proceedings of the 2016 7th IEEE International Conference on Cognitive Infocommunications (CogInfoCom), Wrocław, Poland, 16–18 October 2016; IEEE: Piscataway, NJ, USA, 2016; pp. 000251–000256. [Google Scholar]
  13. Belkacem, A.N.; Lakas, A. A Cooperative EEG-based BCI Control System for Robot–Drone Interaction. In Proceedings of the 2021 International Wireless Communications and Mobile Computing (IWCMC), Harbin, China, 28 June–2 July 2021; IEEE: Piscataway, NJ, USA, 2021; pp. 297–302. [Google Scholar]
  14. Mousa, F.A.; El-Khoribi, R.A.; Shoman, M.E. A novel brain computer interface based on principle component analysis. Procedia Comput. Sci. 2016, 82, 49–56. [Google Scholar] [CrossRef]
  15. Sanei, S.; Chambers, J.A. EEG Signal Processing; John Wiley & Sons: Hoboken, NJ, USA, 2013. [Google Scholar]
  16. Wu, G.; Xie, Z.; Wang, X. Development of a mind-controlled Android racing game using a brain computer interface (BCI). In Proceedings of the 2014 4th IEEE International Conference on Information Science and Technology, Shenzhen, China, 26–28 April 2014; pp. 652–655. [Google Scholar] [CrossRef]
  17. Vasiljevic, G.A.M.; Miranda, L.C.d.; Menezes, B.C.d. Mental war: An attention-based single/multiplayer brain-computer interface game. In International Conference on Computational Science and Its Applications; Springer: Berlin/Heidelberg, Germany, 2018; pp. 450–465. [Google Scholar]
  18. Wang, P.; Yang, Y.; Li, J. Development of Parkour Game System Using EEG Control. In Proceedings of the 2018 International Symposium on Computer, Consumer and Control (IS3C), Taichung, Taiwan, 6–8 December 2018; pp. 258–261. [Google Scholar] [CrossRef]
  19. Rosca, S.D.; Leba, M. Design of a brain-controlled video game based on a BCI system. In MATEC Web of Conferences; EDP Sciences: Les Ulis, France, 2019; Volume 290, p. 01019. [Google Scholar]
  20. Alchalcabi, A.E.; Eddin, A.N.; Shirmohammadi, S. More attention, less deficit: Wearable EEG-based serious game for focus improvement. In Proceedings of the 2017 IEEE 5th International Conference on Serious Games and Applications for Health (SeGAH), Perth, WA, USA, 2–4 April 2017; pp. 1–8. [Google Scholar] [CrossRef]
  21. Glavas, K.; Prapas, G.; Tzimourta, K.D.; Tzallas, A.T.; Giannakeas, N.; Tsipouras, M.G. Intra-User Analysis Based on Brain-Computer Interface Controlled Game. In Proceedings of the 2022 45th International Conference on Telecommunications and Signal Processing (TSP), Virtual, 13–15 July 2022; pp. 386–390. [Google Scholar] [CrossRef]
  22. Interaxon’s Muse 2. Available online: https://choosemuse.com/muse-2/ (accessed on 7 October 2022).
  23. Kowaleski, J. BlueMuse. 2019. Available online: https://github.com/kowalej/BlueMuse (accessed on 25 May 2022).
  24. Kothe, C. Lab Streaming-Layer. 2018. Available online: https://github.com/sccn/labstreaminglayer (accessed on 25 May 2022).
  25. Marsland, S. Machine Learning: An Algorithmic Perspective; Chapman and Hall/CRC: Boca Raton, FL, USA, 2011. [Google Scholar]
  26. Raj, P.; David, P.E. The Digital Twin Paradigm for Smarter Systems and Environments: The Industry Use Cases; Academic Press: Cambridge, MA, USA, 2020. [Google Scholar]
  27. Menard, M.; Wagstaff, B. Game Development with Unity; Course Technology: Boston, MA, USA, 2012. [Google Scholar]
Figure 1. Major components of a BCI system.
Figure 1. Major components of a BCI system.
Applsci 12 12722 g001
Figure 2. Muse 2 headband with the corresponding electrodes.
Figure 2. Muse 2 headband with the corresponding electrodes.
Applsci 12 12722 g002
Figure 3. Flowchart diagram of the proposed system. The left side presents the offline processing that trains the classifier. The right side presents the online processing that uses the trained classifier to translate the mental commands into in-game movement.
Figure 3. Flowchart diagram of the proposed system. The left side presents the offline processing that trains the classifier. The right side presents the online processing that uses the trained classifier to translate the mental commands into in-game movement.
Applsci 12 12722 g003
Figure 4. Offline processing scenario to train the classifier.
Figure 4. Offline processing scenario to train the classifier.
Applsci 12 12722 g004
Figure 5. Real-time classification scenario.
Figure 5. Real-time classification scenario.
Applsci 12 12722 g005
Figure 6. Snapshot from BCI-controlled game.
Figure 6. Snapshot from BCI-controlled game.
Applsci 12 12722 g006
Table 1. Commercially available non-invasive EEG devices.
Table 1. Commercially available non-invasive EEG devices.
DeviceEEG ElectrodesSampling RatePrice
Muse 24 (AF7, AF8, TP9, TP10)256 Hz250$
Neurosky MindWave1 (FP1)512 Hz100€
Emotiv Insight5 (AF3, AF4, T7, T8)128 Hz499$
Unicorn Hybrid Black8 (Fz, C3, Cz, C4, Pz, PO7, Oz, PO8)250 Hz990$
Emotiv EPOC+14 (AF3, F7, F3, FC5, T7, P7, O1, O2, P8, T8, FC6, F4, F8, AF4)128 Hz849$
Table 2. Offline classification results for LDA and multi-layer perceptron.
Table 2. Offline classification results for LDA and multi-layer perceptron.
SubjectsLDA—BlinkingLDA—Eyes OpenedLDA—OverallPerceptron—BlinkingPerceptron—Eyes OpenedPerceptron—Overall
195.20%100%97.58%97.20%100%98.62%
299%0%99.36%98.6%100%99.14%
399%100%99.36%97.6%100%98.79%
497.2%100%98.62%98.3%100%99.13%
598.3%99.3%98.79%96.9%100%98.44%
698.3%100%99.3%97.6%100%98.79%
799%100%99.48%97.9%100%98.96%
899%100%99.48%97.2%100%98.62%
998.6%100%99.31%97.2%100%98.62%
1098.6%100%99.31%97.6%100%98.79%
1198.6%100%99.31%97.2%100%98.62%
1299%100%99.48%96.9%100%98.44%
1397.9%100%98.96%97.6%100%98.79%
1497.9%100%98.96%96.9%100%98.44%
1599%100%99.48%99.7%100%99.72%
1698.3%100%99.13%96.6%100%98.27%
1799%100%99.48%97.2%100%98.62%
1898.3%100%99.13%97.2%100%98.62%
1997.6%99.7%98.62%96.9%100%98.44%
2098.3%99.3%98.79%97.2%100%98.62%
2197.9%100%98.96%97.2%100%98.62%
22100%100%100%97.6%100%98.79%
2399%100%99.48%95.2%100%97.06%
2489.7%100%94.82%97.6%100%98.79%
2599%100%99.48%99.3%100%99.65%
2697.9%100%98.96%99.3%100%99.65%
2798.6%100%99.31%97.6%100%98.79%
2896.6%100%98.27%97.6%100%98.79%
2999%100%99.48%97.6%100%98.79%
3098.6%100%99.31%97.6%100%98.79%
3192.8%100%96.37%97.2%100%98.62%
3299%100%99.48%97.2%100%98.62%
3399%100%99.48%97.9%100%98.96%
3498.6%100%99.31%97.9%100%98.96%
3589.7%100%94.82%97.6%100%98.79%
3695.2%100%97.58%97.2%100%98.62%
3795.9%98.6%97.06%97.9%100%98.96%
Table 3. Level 1 game scores.
Table 3. Level 1 game scores.
SubjectsAverage Score 1Average Score 2ImprovementAverage Overall Score
Sub145.6053.708.10%49.65
Sub251.9063.0011.10%57.45
Sub340.5067.5027.00%54.00
Sub446.8063.3016.50%55.05
Sub547.7051.804.10%49.75
Sub653.7051.40−2.30%52.55
Sub741.9056.6014.70%49.25
Sub843.6046.603.00%45.10
Sub935.8063.3027.50%49.55
Sub1048.9047.10−1.80%48.00
Sub1144.5037.20−7.30%40.85
Sub1232.6048.0015.40%40.30
Sub1346.7548.902.15%47.80
Sub1435.6046.4010.80%41.00
Sub1566.2060.90−5.30%63.55
Sub1657.3064.807.50%61.05
Sub1764.2069.505.30%66.85
Sub1856.6059.703.10%58.15
Sub1938.9057.3018.40%48.10
Sub2050.8060.109.30%55.45
Sub2130.2040.6010.40%35.40
Sub2227.4022.60−4.80%25.00
Sub2366.8050.80−16.00%58.80
Sub2457.6064.306.70%60.95
Sub2563.5062.20−1.30%62.85
Sub2634.0041.707.70%37.85
Sub2741.0053.1012.10%47.05
Sub2851.2054.102.90%52.65
Sub2949.0065.0016.00%57.00
Sub3062.9060.70−2.20%61.80
Sub3155.9063.807.90%59.85
Sub3259.6064.304.70%61.95
Sub3352.2064.3012.10%58.25
Sub3464.3068.504.20%66.40
Sub3553.1064.6011.50%58.85
Sub3653.8066.1012.30%59.85
Sub3728.2059.2031.00%43.7
Table 4. Level 2 game score results.
Table 4. Level 2 game score results.
SubjectsAverage Score 1Average Score 2ImprovementAverage Overall Score
Sub265.2077.408.13%71.30
Sub461.6078.4011.20%70.00
Sub1562.6083.3013.8%72.95
Sub1696.6071.20−16.93%83.90
Sub1768.4073.203.20%70.80
Sub1867.1055.50−7.73%61.30
Sub2043.2058.9010.46%51.05
Sub2361.3065.202.60%63.25
Sub2482.1084.301.46%83.20
Sub2584.4578.55−3.93%81.50
Sub2973.2070.00−2.13%71.60
Sub3077.9058.10−13.20%68.00
Sub3170.2064.20−4.00%67.20
Sub3272.00103.8021.20%87.90
Sub3351.4061.106.46%56.25
Sub3461.2074.308.73%67.75
Sub3569.4067.80−1.06%68.60
Sub3671.5068.10−2.26%69.80
Table 5. Comparative study.
Table 5. Comparative study.
AuthorsSubjectsEEG DeviceMental CommandsReps per SubjEvaluation Metrics
Wu et al. [16]5NeuroSky Mindset21Avg mean meditation (49.4)
Vasiljevic et al. [17]24NeuroSky MindWave1-Avg attention single player (53.49); avg attention multiplayer (52.42)
Rosca et al. [19]3Emotiv Insight21Not presented
Wang et al. [18]5NeuroSky MindWave Mobile21Avg maximum attention 1 (73.6)
Avg maximum attention 2 (76.4)
Avg maximum meditation 1 (51)
Avg maximum meditation 2 (47.4)
Game duration 1 (34.6 s)
Game duration 2 (30.2 s)
Alchalabi et al. [20]4Emotiv Epoc+22Avg focus (0.38), Avg stress (0.49)
Avg relaxation (0.32)
Avg excitement (0.25)
Avg engagement (0.65)
This work37Muse 2 Headband220Classification accuracy (98.75%)
Game score 1 (52.70/100)
Game score 2 (70.35/150)
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Glavas, K.; Prapas, G.; Tzimourta, K.D.; Giannakeas, N.; Tsipouras, M.G. Evaluation of the User Adaptation in a BCI Game Environment. Appl. Sci. 2022, 12, 12722. https://doi.org/10.3390/app122412722

AMA Style

Glavas K, Prapas G, Tzimourta KD, Giannakeas N, Tsipouras MG. Evaluation of the User Adaptation in a BCI Game Environment. Applied Sciences. 2022; 12(24):12722. https://doi.org/10.3390/app122412722

Chicago/Turabian Style

Glavas, Kosmas, Georgios Prapas, Katerina D. Tzimourta, Nikolaos Giannakeas, and Markos G. Tsipouras. 2022. "Evaluation of the User Adaptation in a BCI Game Environment" Applied Sciences 12, no. 24: 12722. https://doi.org/10.3390/app122412722

APA Style

Glavas, K., Prapas, G., Tzimourta, K. D., Giannakeas, N., & Tsipouras, M. G. (2022). Evaluation of the User Adaptation in a BCI Game Environment. Applied Sciences, 12(24), 12722. https://doi.org/10.3390/app122412722

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop