Quantifying Mental Relaxation With EEG For Use in Computer Games
Quantifying Mental Relaxation With EEG For Use in Computer Games
Computer Games
T.A. Lin L.R. John
Department of Electrical Engineering MRC/UCT Medical Imaging Research Unit
University of Cape Town Department of Human Biology
RONDEBOSCH 7700, South Africa University of Cape Town
Observatory 7925, South Africa
Abstract - The aim of this study was to investigate the patients [5]. However, EEG results differ with different
potential of implementing electroencephalographic (EEG) electrode placements. This research looks into the
based measurement of mental relaxation as an interface for possibility of achieving relaxation measurement using a
a simple computer game. In this game, a simulated ball is simple one channel (Fp1-Fp2) EEG device.
controlled to move left or right based on player’s mental
relaxation level. EEG data, blood pressure, heart rate and Existing EEG based games include: Brainathlon [6],
subjective perception of relaxation were recorded from 10 which is an open source software game that provide players
subjects, participating in 9 different activities. ANOVA with a real time feedback of their current brain activities.
with repeated measures was carried out on 9 different EEG The brain activity is used to control the game play.
indices to identify the indices that are most capable of Mindball® [7], a game where players sit at each end of the
distinguishing between the various relaxation levels. The table that is laid out with two goals and a little ball. The
results showed that EEG detected difference in relaxation ball moves away from the player that is more calm and
levels that was undetected by blood pressure and heart rate relaxed. The brainwaves used to move the ball forward are
measurement. The analysis of the EEG indices showed that the alpha and theta waves; however, details of how these
the sum of indices such as alpha+theta, and waves were used is unknown (e.g. weighting).
alpha+beta+theta were good indices for measurement of ElectricGuru [8] is a free software which provides EEG
relaxation. feedback in the form of various graphics.
Keywords: EEG, mental relaxation, computer games. To our knowledge, Mindball® is the only EEG based
relaxation game implemented with pre-frontal electrodes
1. Introduction positions only. However, some users have expressed that
Mindball® does not work.
The idea of context-aware applications can be used in
games that can adapt their behavior based on the The aim of this study was to investigate methods for the
information sensed from the environment. In order to implementation of EEG based measurement of mental
produce games that are more interesting, gamers’ level of relaxation, and to demonstrate the potential of the interface
relaxation or concentration can be detected during the with a simple game, where a simulated ball is controlled to
game, and used to change the game behavior accordingly move left or right based on player’s mental relaxation level.
[1]. Previous research used heart rate, breathing rate, blood Bulk of this research concerns investigating what frequency
pressure, skin conductance level as a measurement to components of the EEG signals or the combinations of the
relaxation state [2]. However, since physical and mental frequency components best measures the user’s mental
relaxation states do not necessarily correlate, the relaxation level, as well as how viable it is to be measured
measurement of mental relaxation states could provide in real-time, so that it could be implemented in a game.
information that are more useful.
The purpose of the game is to demonstrate how well the
Electroencephalography (EEG) is the recording of ball can be controlled with EEG signals via different
electrical activities of the brain. Previous studies have relaxation level.
shown that mental relaxation state can be measured using
scalp EEG [1, 3, 4]. Alpha band is predominant in a
relaxed adult; theta band is the major component in light 2. Methodology
sleep stage, and beta band is predominant during
concentration. Alpha and theta ratio are also used to assess EEG data was gathered from subjects participating in 9
relaxation as it is shown to be different for ADD or ADHD different tests. An initial assumption was made that each
test induces perceptible relaxation levels in the participants to measure blood pressure and heart rate at the end of each
and those relaxation levels can be measured test.
physiologically, subjectively and neurologically.
2.4. Trial Procedure
2.1. Participants
The subjects were fitted with the one-channel
Ten right-handed males were recruited for the study, their ModularEEG system. Nine tests were presented in random
mean age being 26.1 +/- 7.68 years. All participants signed order. Five minutes of EEG data were recorded for each
consent forms, and were paid for their participation. test, and a 6th minute was used to measure blood pressure
According to the participants’ self-report, they had normal and heart rate. The subjects were instructed to refrain from
vision and hearing, and had no history of neurological unnecessary movement, and to relax. All subjects were
disorders. All recordings took place during the day time, familiarized with the trial procedures and equipments
within the same season of year. before commencement of the trial. At the end of the
experiment, the subjects were asked to rate the level of
2.2. List of Tests relaxation of each test in a Likert scale of 1 to 10, with 1 =
most relaxed, and 10 = least relaxed.
Nine tests were set up for the experiment, as shown in
table 1. All activities were done either at rest or with 2.5. EEG Preprocessing
mouse clicking movement with right hand only. This is to
ensure minimal artifact in the EEG data. EEG signals were sampled at 256 Hz. EEG voltage data
was cleaned offline using the EEGLAB toolbox [11] in
2.3. Equipments MATLAB to remove, by visual inspection, eye blinks and
muscle movement artifacts. The cleaned data was then
The ModularEEG hardware design from the OpenEEG Fourier transformed into its frequency spectrum, using an
website [9] was used to build the EEG device for recording. epoch size of 1 second with 20% sliding Hamming
BrainBay [10] was used to record the data into text files. window, resulting in at least 500 clean time-windows per
Disposable stick-on ECG electrodes were used for EEG test. EEG was then separated into bands (alpha, beta and
recording. A digital electro-sphygmomanometer was used theta) of absolute voltage for analysis. All indices used for
analysis are shown in table 2.
Relaxation rating
115
7
110 6
5
105
4
100
3
95 2
1
90
start 1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9
Test number
Test number
Figure 3: Systolic blood pressure after the 9
Figure 6: Subjective relaxation rating after the
different tests
9 different tests
75
SOV SS df MS F P Conclusion
Between-Subjects 10549.107 9
Table 3: Summary of significant pairs in each index. The results are labeled significant (S) or not significant (NS). The
number of pairs shows the number of significantly different pairs.
alpha beta theta Alpha/beta alpha/theta beta/theta alpha + theta beta + theta alpha + beta + theta
NS NS S S NS NS S S S
8 pairs 3 pairs 9 pairs 12 pairs 14 pairs
3.0 3.5
2.5 * 3.0
Absolute voltage ratio
2.0 2.5
Absolute voltage
1.5 2.0
1.0 1.5
0.5 1.0
0.0 0.5
-0.5 0.0
1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9
Test number Test number
Figure 7: Absolute theta voltage Figure 8: Alpha/Beta ratio
4.5
these parameters, beat-to-beat monitoring of these
4.0 parameters could possibly provide more information.
3.5
3.0
2.5
2.0
The subjective ratings of mental relaxation showed a
significant difference between resting (test 1,2,3,9) and
1.5
active (test 4,5,6,7,8) test scenarios. This shows that these
1.0
testing activities do induce various levels of mental
0.5 relaxation that are perceivable to subjects.
0.0
3
The greater difference in EEG as compared to heart rate
2
and blood pressure measurement also shows that
neurological measurement has more capability to
1
distinguish the different mental states to these activities
than the physical measurements.
0
-1
1 2 3 4 5 6 7 8 9
5. Conclusion
Test number
Figure 10: Absolute alpha + beta + theta This is the first study that attempts to measure mental
relaxation state using one channel (Fp1-Fp2) EEG for game
implementation. The EEG results indicate that the sum
alpha+theta, and sum alpha+beta+theta are good indices for
3.4 Qualitative Game testing measurement of neurological relaxation. Game testing also
reflects that these indices have the capability to measure
Two test-players ranked the indices according to the basic level of relaxation in at least half of the players.
controllability. The test-players expressed their view that However, further research should be done to investigate
the sums of indices were much more controllable than the more combinations of indices. An EEG interface to
individual indices, and the ratios were not controllable at measure mental relaxation could be used to create advanced
all. The sum of alpha and theta was then opened to a class computer games that are influenced by the state of
of 20 students for testing. About half of the students relaxation of the player.
indicated that they could perceive some control over the
ball with their relaxation levels. The quantitative results are
still being prepared.
Acknowledgements
The authors would like to thank Mr. Dean Hodgskiss for
4. Discussion his help with the hardware debugging, and to Mr. Clark Lin
for his help with the preparation of the experiments.
4.1 Result of Physical Relaxation
Diastolic blood pressure was the only measurement
showing significant difference, but this was only between References
test 7 and test 8, hence blood pressure and heart rate
measurement may not be a satisfactory indication of [1] Magerkurth C., Cheok A.D., Mandryk R.L., Nilsen T.
relaxation in this context. Perhaps only extreme physical “Pervasive Games: Bringing Computer Entertainment Back
relaxation changes such as during deep sleep, active sport to the Real World”
or intense worrying would induce measurable changes in
[2] Hofmann, S.G., Moscovitch, D.A., Litz, B.T., Kim,
H.J., Davis, L.L. and Pizzagalli, D.A. “The Worried Mind:
Autonomic and Prefrontal Activation during Worrying,”
Emotion Volume 5, Issue 4 , Pages 464-475, December
2005.
[7] http://www.medgaget.com/archives/2005/03/mindball
/the_ee.html “Mindball: The EEG game.” (Last viewed:
December 2005)
[8] http://www.realization.org/page/topics/electric_guru.h
tm ElectricGuru (Last viewed: October 2005)
http://www.mathworks.com/matlabcentral/fileexchange/loa
dFile.do?objectId=9638 (Last viewed: February 2006).
[14] http://java.sun.com/products/javacomm/index.jsp
JAVA communication API, Sun Developer Network. (Last
viewed: October 2005)