Next Article in Journal
The Effect of Deflections and Elastic Deformations on Geometrical Deviation and Shape Profile Measurements of Large Crankshafts with Uncontrolled Supports
Previous Article in Journal
A Compact and Flexible UHF RFID Tag Antenna for Massive IoT Devices in 5G System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Determination of the Inaccuracies of Calculated EEG Indices

Department of Multimedia Systems, Faculty of Computer Science and Information Technology, West Pomeranian University of Technology Szczecin, Żołnierska 49, 71-210 Szczecin, Poland
*
Author to whom correspondence should be addressed.
Sensors 2020, 20(19), 5715; https://doi.org/10.3390/s20195715
Submission received: 20 August 2020 / Revised: 2 October 2020 / Accepted: 6 October 2020 / Published: 8 October 2020
(This article belongs to the Section Wearables)

Abstract

:
The data obtained as a result of an EEG measurement are burdened with inaccuracies related to the measurement process itself and the need to remove recorded disturbances. The article presents an example of how to calculate the Approach-Withdraw Index (EEG-AW) and Memorization Index (MI) indices in such a way that their inaccuracy resulting from the removal of artifacts can be periodically calculated. This inaccuracy is expressed in terms of standard deviation. This allows you to determine the reliability of the obtained conclusions in the context of examining elements in a 2D computer game created in the Unity engine.

1. Introduction

The data obtained as a result of the measurement are burdened with inaccuracies related to the measurement process itself and the necessity to remove recorded disturbances (if any). These data can be used for further calculations, the result of which will be affected by this inaccuracy. The determination of the level of uncertainty for the calculation result may have a significant impact on the interpretation of the results. For example, if a parameter determined as a result of the calculation is subject to change over time, it is important to relate it to the level of inaccuracy. These changes may be due to inaccurate data recording.
Where calculations require the integration of data from different sources, the inaccuracy of the calculation result will be due to the inaccuracy of data from these sources. One type of calculation of data from many sources is transformation in vector space. A simple example is the measurement of the position of an object in two-dimensional space and the change of the coordinate system. Such a measurement can be carried out using two measuring devices with different parameters. The measurement coordinate system may be different from the target coordinate system. In this case, the coordinate system is transformed. Let us assume that one device provides very accurate values and another very inaccurate. If we start to rotate the coordinate system, the level of inaccuracies on individual axes will change. They will grow and shrink, and after a 360-degree rotation they will return to their original values.
The fact that the uncertainty values may decrease during the calculation excludes the use of methods to determine the inaccuracies in which the uncertainty should be determined from the formula for the transformation of the coordinate system. As can be seen from the deduction of the following article, coordinate inaccuracies do not transform in the same way as coordinates. This allows them to decrease even though they do not take negative values.
The formula for the transformation of the coordinate system is very widely used. It is not limited only to the rotation, changing the scale of objects. A transformation determines how the size of an object changes in particular relativity theory, transformations are Fourier, Cosine, Wave, etc. The method of determining inaccuracies for each transformation is the same. The article presents an example of how to calculate EEG indices on inaccuracies expressed by the standard deviation. By default, the Independent Component Analysis (ICA) component(s) associated with interfering signals are removed in the index calculation procedure. As a result, interference signals are a source of inaccuracies This is a source of inaccuracy, which is expressed in standard deviation. ICA is also a transformation, so the formula for the transformation of the coordinate system can be used for calculations. A similar calculation procedure can be used in any other case where any transformation is used in the calculation.
The EEG examination consists of the appropriate distribution [1,2,3] of the electrodes on the skin surface of the skull, which registers potential changes or differences in the potential of different parts of the brain and after appropriate amplification create a record in the form of an electroencephalogram. In this way, they reflect all brain processes, including other processes such as sensorimotor processing, which are related to the mental condition of a person. As a result, many neurological diseases (e.g., epilepsy can be recognized by examining EEG signals [4].
The main problem in analyzing EEG data is signal interference by physiological and technical artifacts such as eye movements, blinking, muscle activity, heartbeat, high electrode impedance, linear noise, and interference from electrical devices [4]. Artifacts can be removed by cutting out a fragment of the EEG signal. This solution causes the loss of information about the brain’s work when the artifact occurs. This becomes particularly problematic when only a few eras are available and artifacts such as blinking or movement are too frequent. Moreover, this approach is inappropriate for working with [5]:
  • Continuous EEG and activity not blocked by events [6];
  • Long-range time correlations [7];
  • Real-time Brain to Computer (BCI) interface applications [8,9] for example speed control of Festo Robotino mobile robot using NeuroSky MindWave EEG headset based brain-computer interface [10] whether the BCI system designed for human-computer based control of IoT based robot (IoRT) [11];
  • Online mental health monitoring [12].
Other proposed methods of rejecting artifacts are based on [5]:
  • Regression in the time or frequency domain [13];
  • Removing eye artifacts [12];
  • Introducing new artifacts into an EEG recording [14,15,16] and, as a result, are not suitable for real time use [12].
In addition to the above-mentioned methods, the ICA can be used for decomposition of data [12] and removal of one of the signal components associated with the given artifact [17,18]. This ensures that the EEG signal remains continuous. The disadvantage of this solution is that removing the component also removes part of the useful signal.
Figure 1 shows a fragment of the ICA component related to an ocular artifact. A rectangle marks the area where the artifact occurred. Outside this area, the ICA component represents an EEG signal not associated with an artifact.
Removing a component also removes the useful part of the information. This affects all the analysis results. Therefore, it would be important to determine to what extent the removal of the ICA artifact-related component has an impact on specific indices such as the index of interests/ motivation—Approach-Withdrawal (AW). The value of the AW index is related to the increase of interest, its drop together with the decrease of interest [19], or indicators (e.g., Memorization Index (MI). The increase of the MI value is related to enhanced memorization [20,21].
Some studies suggest that the goal-oriented approach and withdrawal behavior are governed by two basic incentive systems: the avoidance system and the approach system [22]. As a result of nature’s choice, the motivation of Approach-Withdrawal is deeply rooted in our mind, because for survival it is crucial to distinguish between pleasant and rewarding stimuli that we can approach and dangerous ones that we should avoid [23]. A lot of neuroscience research [24,25] has proven that there is a motivation for approaching the nervous circuits.
Watching users engage in fun, Malone [26] was interested in exploring the theory behind intrinsically motivating science or science in which an individual engages without motivation (reward or punishment). It describes the characteristics of environments that make them internally motivating, with individual motivations such as challenge, fantasy, curiosity, and control [27]. These features can be considered theories on how to make science enjoyable [28]. In a more recent study, Przybylski, Rigby and Ryan [29,30] identified two other game-related motivational factors, autonomy, and competence, derived from self-determination theory [31]. Games with motivating experience can be explained by the concept of flow [32], invented by Csikszentmihalyi to describe a state in which an individual experiences a challenge that expands their competence without being too difficult or too easy (engaging in challenges at the appropriate level depending on the player’s skills) and has clear objectives and immediate feedback on progress [33].
These are only examples of indexes that have been calculated, but a similar application can be used for engagement, emotion, arousal, valence, etc. indexes. To this end, a measure should be introduced to determine the degree of distortion (loss) of information related to the removal of the artifact. The measured values should be recalculated so that they determine the degree of distortion of the calculation results.
For EEG data, useful information is signal variability. Long-term slow changes of the signal are insignificant information that is removed during the detrending process. The measure of signal variability can be, among others, standard deviation. It allows measuring the level of signal variability. By giving the standard deviation, for example, for a specific index value, it is possible to determine the effect of a particular factor (for example, a deleted ICA component) on its value. However, the main problem is how to calculate the standard deviation of an index from the standard deviation of the removed component. Arithmetic operations performed on a standard deviation have a specific form, which makes it necessary to apply appropriately modified formulas during calculations. However, this will not significantly change the index calculation procedure.
This article presents a method for determining the degree of information loss associated with the removal of the artifact. Therefore, we can gain credibility from the index.

2. Materials and Methods

A possible typical calculation procedure for an EEG index is as follows:
  • Selection of the analyzed signal fragment and data synchronization;
  • Division of signal into trials or epochs;
  • Removal of biological artifacts I;
  • Pre-processing;
  • Removal of biological artifacts II;
  • Determination of Individual Alpha Frequency (IAF) [34];
  • Designation of the alpha, beta, theta bands (depending on the requirements of a particular index) [35];
  • Determination of total GFP field power [36];
  • Calculation of the index;
  • Index standardization.

2.1. Selection of the Analyzed Signal Fragment and Data Synchronization

EEG analysis calculations very often use methods with high computational complexity, and many of them are not fully automatic. Therefore, it is necessary to limit the scope of analyzed data to a certain interesting part. If data from other devices or software (eye-tracker, web-tracking, etc.) are used when analyzing the EEG signal. Data must be synchronized with each other by, for example, establishing a common start to the study from which time is counted.

2.2. The Division of the Signal into Trials or Epochs

The EEG signal is often related to certain events, fragments of films displayed. In this case, it is convenient to divide it into smaller fragments related to specific events of interest to the researcher (fragments of films). The EEG signal is then divided into uneven sections. For some types of analysis (for example ERP) the signal is divided into fragments of equal length.

2.3. Removal of Biological Artifacts I

In addition to signals from the brain, EEG electrodes also record signals from outside the brain, which are called artifacts. Artifacts generated by the body are called biological artifacts. Most often these are artifacts related to eyeball movement, muscle activity, and heart rate. They are treated as interference and removed from the EEG signal. One way to remove them is to locate them and remove the part of the EEG signal where the artifact occurs. Removing a fragment of the EEG signal means that it loses continuity and index values are not calculated for the moments when the artifact occurred.
Many methods require specific pre-treatment to detect the artifact. Therefore, this operation is performed before the actual preprocessing on the copy of the EEG signal. Once the location of the artifacts has been determined, they are removed from the actual EEG signal, which will then be further processed.

2.4. Pre-Processing

The pre-processing process involves the pre-processing of the EEG signal, which may include, for example, the removal of interference from the mains, the removal of recorded noise, the removal of slow-moving signal components, the detection of a malfunctioning EEG electrode and the possible reconstruction of its signal, etc.

2.5. Removal of Biological Artifacts II

Artifact removal methods for which preprocessing is the same as for the actual EEG signal are performed after its pre-processing. These methods include methods using Independent Component Analysis (ICA). Their most important advantage is the removal of artifacts without removing fragments of the EEG signal. It does not lose continuity, but part of the information not related to the artifacts is also removed.
ICA allows the separation of signals related to the sources they generate. Each EEG electrode receives a signal from all sources in the brain. The signal received from a given electrode is, therefore, the sum of all these signals, but their share is different. ICA decomposes the signal in such a way that instead of electrode-linked signals, signals linked to the sources that generate them are received. However, it has its limitations. Typically used ICA algorithms separate as many source-related signals as there are electrodes.
Deleting artifacts using ICA consists of finding the component that contains the artifact and deleting it in its entirety (entering zeros as a component value). This component is not only related to the signal source that generates the artifact. Due to a large number of sources, it is associated with several sources, so useful information is also removed.

2.6. Determination of Individual Alpha Frequency (IAF)

The bands in which alpha, beta, and theta waves occur are different for each person. For this reason, the IAF frequency in relation to which all other frequencies are determined is determined at the beginning. The IAF value is calculated for the part of the signal where the test person was muted. She was shown a black screen and asked to try not to think about anything.
In the example, the frequency components were determined using a continuous waveform, using an analytical Morse waveform to calculate the IAF. Power Spectral Density (PSD) was then determined:
P i , j = c i , j 2 ,
where c i , j is j-th frequency component for the i-th electrode, P i , j than PWD j-frequency component for the i-th electrode. The formula used to estimate the IAF was [37]:
IAF i = j = j 0 j 1 f j P i , j j = j 0 j 1 P i , j ,
where j 0 and j 1 are the frequency components corresponding to the frequencies closest to 7.5 Hz and 12.5 Hz respectively (in the discrete version of the transformer between the available frequencies there is a constant pitch), f j is the frequency of the j frequency component and IAF i is the IAF value for the i electrode. Ultimately, the IAF value is calculated as an average of IAF i for all electrodes.

2.7. Designation of the Alpha, Beta, Theta Bands (Depending on the Requirements of a Particular Index)

Based on the IAF frequency, alpha, beta, and/or theta bands are determined. In further steps of the calculation, based on the knowledge of the bands, exact values of alpha, beta, and/or theta, field strength, etc. can be determined.
In the example, the values of the bands are assumed to be I A F 2 , I A F + 2 fot the alpha, I A F + 2 , I A F + 16 for beta and I A F 6 , I A F 2 for theta.

2.8. Determination of Total GFP Field Power

The indexes selected for the article require the total power of the field to be calculated. It is determined by the amplitudes of the signal components throughout the band. For selected indexes, these are the alpha and theta bands.
A mid-pass filter can be used to determine GFP. The filter is used to filter out frequency components outside the frequency range for which GFP counts. You can then count the GFP from the formula [38]:
GFP band , E , j = 1 N E i E x band , i , j 2 ,
where GFP band , E , j the GFP value for a given frequency band, x band , i , j j-the EEG signal sample for the i-the electrodes considered for the selected frequency band, E is the the set of electrodes considered, N E is the number of these electrodes. The calculations take into account specific sets of electrodes (for example, on the left side of the head, on the right side of the head, etc.).

2.9. Index Calculation

Based on the GFP alpha, the Approach Withdrawal Index [35], can be confessed, and based on the GFP theory (Memorization Index) [39]. The AW index indicates how much of the stimulus is motivating and how much it is depressing for the subject [19,38]:
AW j = GFP α , right , j GFP α , left , j ,
where GFP α , right , j is GFP j-samples for electrodes placed on the right side of the head and the alpha band, and GFP α , right , j is the GFP j-sample for the electrodes on the left side of the head and the alpha band.
The MI index allows to determine how much stimulus is likely to be remembered by the subject:
MI j = GFP θ , left , j ,
where GFP θ , right , j is GFP j-of this sample for the electrodes on the right side of the head and theta band.

2.10. Index Standardization

In order to eliminate individual differences between the examined index values are normalized. Normalization is based on the signal fragment in which the test person is muted. She/He is presented with a black screen and asked to try not to think about anything.
The z-score method can be used for standardization, where standardization is done using the formula [38]:
I Z j = I j I ¯ B σ B I ,
where I Z j is the j-value of the index after normalization, I j is the j-value of the index before normalization, and I ¯ B i σ B I is the mean value and standard deviation of the indexes for the part of the signal in which the test person has muted.
Taking into account the loss of information when removing artifacts requires a change in the index calculation procedure. Bold text indicates which points in the procedure have changed:
  • Selection of the analyzed signal fragment and data synchronization;
  • Division of signal into trials or epochs;
  • Removal of biological artifacts I;
  • Pre-processing;
  • Removal of biological artifacts II;
  • Determination of Individual Alpha Frequency (IAF);
  • Designation of the alpha, beta, theta bands (depending on the requirements of a particular index);
  • Determination of the average value and covariance matrix of the deleted data for each electrode
  • Determination of total GFP field power;
  • Calculation of the index;
  • Index standardization.

2.11. Determination of the Average Value and Covariance Matrix of the Deleted Data for Each Electrode

The determination of the average value and the covariance matrix is based on the removal value of the ICA component(s). To determine them, the opposite is true for the removal of artifacts. The ICA component(s) associated with the artifact shall be left unchanged and the other components shall be zeroed.
Each frequency band will have different average values and covariance matrices, so for each alpha, beta, and theta band, they are determined separately. A mid-pass filter can be used for this purpose. The filter filters out frequency components outside the frequency range of the selected bands.
The average values are determined from the formula:
x ¯ ICA i = 1 N j = 0 N 1 x ICA i , j ,
where x ICA i , j is j-sample of i-sample of the ICA component, and N is the number of samples, and elements of the covariance matrix from the pattern:
σ x ICA i , j , x ICA k , j = 1 N j = 0 N 1 x ICA i , j x ¯ ICA i x ICA k , j x ¯ ICA k .
Counting according to the above formulae, one average value and one covariance matrix are obtained for each ICA component (i.e., ultimately one electrode). This does not take into account the variability over time of the degree of information loss. To take into account its changes over time, a time frame should be adopted in which the average value and the covariance matrix will be calculated. For each given x ICA i , j representing a moment of time j average and the covariance matrix are calculated for x ICA i , j with j ranging from j N W to j + N W where 2 N W + 1 is the width of the time frame.
The obtained average values and covariations should be recalculated to obtain values for all electrodes. This is done by the transformation from the ICA coordinate system to the electrode coordinate system. ICA is a transformation of coordinates in space where the number of dimensions equals the number of electrodes. Every moment of time that data is recorded is one point in this space (Figure 2).
The ICA algorithm determines a transformation matrix allowing, based on the knowledge of coordinates of points in the electrodes system, to calculate coordinates in the ICA coordinate system. The reverse matrix allows, based on the knowledge of coordinates of points in the ICA coordinate system, to calculate coordinates in the electrode coordinate system.
The calculated mean values and covariations are defined in the ICA coordinate system. It is necessary to convert them into electrode coordinate systems. The coordinates of the points are calculated using the formula:
x i , j = k = 0 M 1 m i , k x ICA k , j ,
where M is the number of electrodes and m i , k is the element of the transformation matrix from the ICA coordinate system to the electrode coordinate system.
The average component value of the i-th electrode is:
x ¯ i = 1 N j = 0 N 1 x i , j .
By substituting the Formula (9) will obtain:
x ¯ i = 1 N j = 0 N 1 k = 0 M 1 m i , k x ICA k , j ,
hence:
x ¯ i = k = 0 M 1 m i , k 1 N j = 0 N 1 x ICA k , j ,
that is:
x ¯ i = k = 0 M 1 m i , k x ¯ ICA k .
The above formula allows to convert the average value from one coordinate system to another.
The covariance of the i-th electrode is:
σ i , l = 1 N j = 0 N 1 x i , j x ¯ i x l , j x ¯ l .
By substituting the Formulas (9) and (13) will obtain:
σ i , l = 1 N j = 0 N 1 k = 0 M 1 m i , k x ICA k , j k = 0 M 1 m i , k x ¯ ICA k p = 0 M 1 m l , p x ICA p , j p = 0 M 1 m l , p x ¯ ICA p ,
hence:
σ i , l = 1 N j = 0 N 1 k = 0 M 1 m i , k x ICA k , j x ¯ ICA k p = 0 M 1 m l , p x ICA p , j x ¯ ICA p ,
that is:
σ i , l = k = 0 M 1 p = 0 M 1 m i , k m l , p 1 N j = 0 N 1 x ICA k , j x ¯ ICA k x ICA p , j x ¯ ICA p .
By substituting σ ICA x k , j , x p , j will get:
σ i , l = k = 0 M 1 p = 0 M 1 m i , k m l , p σ ICA x k , j , x p , j .
The Formulas (13) and (18) allow the transformation of mean values and covariance from the ICA coordinate system to the electrode coordinate system.

2.12. Determination of total GFP Field Power

When calculating GFP for signal samples, the Formula (3). For the GFP values determined, average values and variants determining the degree of information loss should be determined. This requires the determination of the formulae for the average value and the variance when summing up and raising to the second power. Average value at summation:
x l + x p ¯ = 1 N j = 0 N 1 x l , j + x p , j = 1 N j = 0 N 1 x l , j + 1 N j = 0 N 1 x p , j = x ¯ l + x ¯ p .
Covariance at summation:
σ x l + x p , x o + x k = 1 N j = 0 N 1 x l , j + x p , j x l + x p ¯ x o , j + x k , j x o + x k ¯ = 1 N j = 0 N 1 x l , j x ¯ l + x p , j x ¯ p x o , j x ¯ o + x k , j x ¯ k .
By multiplying you get:
σ x l + x p , x o + x k = 1 N j = 0 N 1 x l , j x ¯ l x o , j x ¯ o + x p , j x ¯ p x k , j x ¯ k + x l , j x ¯ l x k , j x ¯ k + x p , j x ¯ p x o , j x ¯ o .
hence:
σ x l + x p , x o + x k = σ x l , x o + σ x p , x k + σ x l , x k + σ x p , x o .
On the basis of the above formula, a formula for variance may be given when summing up:
σ x l + x p 2 = σ x l 2 + σ x p 2 + 2 σ x l , x p .
The above formula can be written differently:
σ x l + x p 2 = σ x l 2 + σ x p 2 + 2 r x l , x p σ x l σ x p ,
where r x l , x p is correlation between x l and x p .
If the correlation takes the value of zero, the Formula (23) will take the form:
σ x l + x p 2 = σ x l 2 + σ x p 2 .
When the correlation is 1:
σ x l + x p 2 = σ x l + σ x p 2 ,
and when is 1 :
σ x l + x p 2 = σ x l σ x p 2 .
The formula for the mean value at the square lift can be derived from the covariance. Covariance between x l and x p :
σ x l , x p = 1 N j = 0 N 1 x l , j x ¯ l x p , j x ¯ p .
By multiplying the elements of the above formula you will obtain:
σ x l , x p = 1 N j = 0 N 1 x l , j x p , j x l , j x ¯ p x ¯ l x p , j + x ¯ l x ¯ p .
By converting the pattern you will get:
σ x l , x p = 1 N j = 0 N 1 x l , j x p , j x ¯ l x ¯ p x ¯ l x ¯ p + 1 N j = 0 N 1 x ¯ l x ¯ p ,
hence:
σ x l , x p = x l x p ¯ 2 x ¯ l x ¯ p + N N x ¯ l x ¯ p = x l x p ¯ x ¯ l x ¯ p .
The above formula results in an average multiplication formula:
x l x p ¯ = x ¯ l x ¯ p + σ x l , x p .
Therefore, the formula for the average value at the square to the power will be as follows:
x l 2 ¯ = x ¯ l 2 + σ x l 2 .
Once the GFP has been determined, it is sufficient to know the mean value and the variance for further calculations. To square the variance, an approximate formula can be derived. Multiplication of variance:
σ x l · x p 2 = 1 N j = 0 N 1 x l , i x p , j x l x p ¯ 2 = 1 N j = 0 N 1 x l , i x p , j 2 N j = 0 N 1 x l , i x p , j x l x p ¯ + 1 N j = 0 N 1 x l x p ¯ 2 = = x l 2 x p 2 ¯ 2 x l x p ¯ 2 + x l x p ¯ 2 = x l 2 x p 2 ¯ x l x p ¯ 2 .
To square the variance:
σ x l 2 2 = x l 4 ¯ x l 2 ¯ 2 .
The result obtained is similar to the formula:
x ¯ l 2 σ x p 2 + x ¯ p 2 σ x l 2 + σ x p 2 σ x l 2 .
For σ x p 2 i σ x p 2 , you can insert average values from the Formula (33):
σ x l 2 = x l 2 ¯ x ¯ l 2 .
The Formula (36) will take the form:
x ¯ l 2 x p 2 ¯ x ¯ p 2 + x ¯ p 2 x l 2 ¯ x ¯ l 2 + x p 2 ¯ x ¯ p 2 x l 2 ¯ x ¯ l 2 = x ¯ l 2 x p 2 ¯ x ¯ l 2 x ¯ p 2 + x ¯ p 2 x l 2 ¯ x ¯ p 2 x ¯ l 2 + x p 2 ¯ · x l 2 ¯ x p 2 ¯ x ¯ l 2 x ¯ p 2 x l 2 ¯ + x ¯ p 2 x ¯ l 2 .
that is:
x ¯ l 2 σ x p 2 + x ¯ p 2 σ x l 2 + σ x p 2 σ x l 2 = x p 2 ¯ · x l 2 ¯ x ¯ l 2 x ¯ p 2 .
To square the variance:
σ x l 2 2 = x l 4 ¯ x l 2 ¯ 2 x l 2 ¯ 2 x ¯ l 4 ,
that is:
σ x l 2 2 2 x ¯ l 2 σ x l 2 + σ x l 4 .
When analyzing the EEG signal, the mean value is removed during the detrending process, so it can be assumed that 2 x ¯ l 2 = 0, hence the above formula will take the form of:
σ x l 2 2 σ x l 4 .
Table 1 shows a comparison of the actual standard deviations and those calculated from variance based on the Formula (42). The actual standard deviations were calculated for data squared. The calculated standard deviation was calculated using the Formula (42) from the variance calculated from the data. The number of data drawn was 1000, and in the case of the sinusoidal, it was 6184. The standard deviations for the randomised data are the average obtained from the draws, the number of which is given in the repetition column. As you can see, the differences between the calculated and actual values are significant, but proportional to the amplitude of changes in the data. This allows the calculated values to be used to compare the degree of information loss in individual parts of the EEG signal.
GFP is the sum of squares. First, the values are power to squared. The mean value is calculated from the Formula (33) and the variance from the approximation Formula (41). The next step is to sum up the calculated value squares. The average value is determined from the Formula (19). In the case of variance, the covariance necessary to calculate it is unknown. The covariance calculated earlier refers to the value in time. Here, on the other hand, covariance of the data on all electrodes is necessary for calculations.
It can be assumed that the variance sought is within the values determined by the Formulas (25)–(27). The loss of information will not exceed the values obtained from these formulae. Therefore, the upper limit of variance can be calculated as:
σ max , x l + x p 2 = max σ x l 2 + σ x p 2 , σ x l + σ x p 2 .
If a lower limit of variance had to be determined, the formula should be used:
σ min , x l + x p 2 = min σ x l 2 + σ x p 2 , σ x l σ x p 2 .
When calculating GFP, the mean values and variance are multiplied by the factor 1 N E . The mean value and the variance should therefore be determined by multiplying it by a factor of zero variance. Average value when multiplied:
s x l ¯ = 1 N j = 0 N 1 s x l , j = s N j = 0 N 1 x l , j = s x ¯ l .
The value of the variance in multiplication:
σ s · x l 2 = 1 N j = 0 N 1 s x l , j s x l ¯ 2 = s 2 N j = 0 N 1 x l , j x l ¯ 2 = s 2 σ x l 2 .
The average loss of information for GFP:
x ¯ j GFP band , E = 1 N E i E x ¯ band , 1 , j 2 + σ band , 1 , j 2 .
Simplified formula for calculating the upper limit of the loss of information variance for GFP:
s 1 , j = 1 N E 2 σ band , 1 , j 4 s 2 , j = 1 N E 2 max s 1 , j + σ band , 2 , j 4 , s 1 , j + σ band , 2 , j 2 2 s 3 , j = 1 N E 2 max s 2 , j + σ band , 3 , j 4 , s 2 , j + σ band , 3 , j 2 2 σ max , j 2 GFP band , E = 1 N E 2 max s N E 1 , j + σ band , N E , j 4 , s N E 1 , j + σ band , N E , j 2 2
The formula is simplified because a higher value should be chosen at the stage of each summation. Simplification may cause miscalculations when the values of variance oscillate around zero. Therefore, it is better to set a maximum for each summation separately.
The obtained values are approximate and are intended to determine in which parts of the signal is greater and in which parts of the signal is less loss of information. It is therefore not necessary to set a lower limit of variance.

2.13. Calculation of the Index

In the case of MI, the calculated GFP is an index, so there is no need for additional conversions of average values and limits of variance. Average loss of information for the MI index:
x ¯ MI j = x ¯ j GFP θ , left .
Loss of information variance for the MI index:
σ 2 MI max , j = σ 2 GFP θ , left max , j .
The AW index requires the difference between the GFP values to be determined. The mean value at subtraction can be determined from the formula:
x l x p ¯ = 1 N j = 0 N 1 x l , j x p , j = 1 N j = 0 N 1 x l , j 1 N j = 0 N 1 x p , j = x ¯ l x ¯ p .
Substraction:
σ x l x p , x o x k = 1 N j = 0 N 1 x l , j x p , j x l x p ¯ x o , j x k , j x o x k ¯ = 1 N j = 0 N 1 x l , j x ¯ l x p , j + x ¯ p x o , j x ¯ o x k , j + x ¯ k .
By multiplying you get:
σ x l x p , x o x k = 1 N j = 0 N 1 x l , j x ¯ l x o , j x ¯ o + x p , j x ¯ p x k , j x ¯ k x l , j x ¯ l x k , j x ¯ k x p , j x ¯ p x o , j x ¯ o .
hence:
σ x l x p , x o x k = σ x l , x o + σ x p , x k σ x l , x k σ x p , x o .
On the basis of the above formula, a formula for variance may be given for subtraction:
σ x l x p 2 = σ x l 2 + σ x p 2 2 σ x l , x p .
The above formula can be written differently:
σ x l x p 2 = σ x l 2 + σ x p 2 2 r x l , x p σ x l σ x p .
If the correlation is zero, the Formula (55) will take the form:
σ x l x p 2 = σ x l 2 + σ x p 2 .
When the correlation is 1, it will be:
σ x l x p 2 = σ x l σ x p 2 ,
and when is −1:
σ x l x p 2 = σ x l + σ x p 2 .
The upper variance limit for subtraction when calculating the AW index can be calculated from the formula:
σ max , x l x p 2 = max σ x l 2 + σ x p 2 , σ x l + σ x p 2 ,
and the bottom one:
σ min , x l x p 2 = min σ x l 2 + σ x p 2 , σ x l σ x p 2 .
The average loss of information for the AW index:
x ¯ AW j = x ¯ j GFP α , right x ¯ j GFP α , left .
The upper limit of the loss of information variance for the AW index:
σ 2 AW max , j = max σ max , j 2 GFP α , right + σ max , j 2 GFP α , left , σ max , j GFP α , right + σ max , j GFP α , left 2 .

2.14. Index Standardization

Index normalization is to change the position of zero and change the scale. Subtraction and multiplication are used here, where one of the factors has a variance equal to zero. Average value at subtraction:
x l s ¯ = 1 N j = 0 N 1 x l , j s = 1 N j = 0 N 1 x l , j 1 N j = 0 N 1 s = x ¯ l s .
Substraction:
σ x l s 2 = 1 N j = 0 N 1 x l , j s x l s ¯ 2 = 1 N j = 0 N 1 x l , j s x ¯ l + s 2 = 1 N j = 0 N 1 x l , j x ¯ l 2 = σ x l 2 .
It follows from the above formula that the value of the variance does not change at subtraction.
The average loss of information for a standardised index:
I ¯ Z j = I ¯ j I ¯ B σ B I ,
where I ¯ Z j is the average loss of information for the j index after normalisation, I ¯ j is the average loss of information for the j index before normalisation.
Loss of information variance for a standardised index:
σ 2 Z j = σ 2 I j σ 2 B I ,
where σ 2 Z j is a variant of loss of information for the j-th index after standardization, σ 2 I j is the variance of loss of information of the j-th index before standardization.

2.15. Description of Research

For the purpose of illustrating the method developed, a study was conducted on 20 healthy people (4 = female and 16 = male) the average age was 23 years. The person was informed about the course of the examination. Then they signed consent to participate in the study and were seated in a comfortable chair with access to the keyboard and mouse. The next step was to put on the cap and connect the electrodes to the participant’s scalp and connect them to the data recorder of the participant’s brain.
The cap (g.Nautilus Research Wearable EEG Headset) with 24 electrodes placed in AF3, AF4, F3, F4, F7, F8, FC5, FC6, P7, P8, T7, T8, O1, O2, P3, C3, C4, Pz, Fz, Cz, FPz, Fp1 P4, POz and 3 reference electrodes: AFz, FCz, CPz was used. The channels have been distributed according to the 10-10 system, the international EEG electrode distribution system [40]. The electrodes required a dampened socket to improve conductivity. In order to check whether the EEG electrodes are in good contact with the scalp, impedance values were measured with the g.Recorder program. The sampling frequency was 500 Hz.
After the above steps have been taken, a study was started. Before the game (“2D Game Kit” [41], which was downloaded from the Unity Asset Store and adapted for testing in the Unity engine), there was information how to move and the goal to achieve, i.e., three keys had to be collected, which guaranteed the entrance to the room where the last opponent was located, the so called the boss. Then, after clicking the “Play” button, a black screen appeared, lasting 60 s, during which the participant silenced themselves. After that time a picture of the spider popped up (see: Figure 3), which comes from IAPS [42]. This was used to later normalize the EEG signal. The recorded signals in the final stage were used to calculate the EEG indicators. On the basis of the respondent’s involvement and response (in relation to the game), a comparison of responses and indicators was made. This made it possible to what should be improved in order to keep the engagement in the game at a certain level.
Game was recorded at a resolution of 1920 × 1080 using programmed in-game registration. During the game, screenshots were taken at a frequency of 3 shots per seconds. Each screenshot generated a timestamp for the EEG data to determine the start and end position of each section. Screenshots were saved for later use during the data analysis phase. In addition to the EEG, the study used the Eye Tracker (Eyetribe eye-tracker with a frequency of 30 points per second was used to track the eye) to track image elements that were particularly important to the respondent and whether this is likely to be related to a decrease or increase in the engagement index.

2.16. Selection of the Analyzed Signal Fragment and Data Synchronization

The whole signal was used in the analyses, omitting only fragments of the signal just after the activation of the EEG cap and just before it was switched off. EEG cap and game event data were used in the research. It was therefore necessary to synchronise the recorded EEG data with the recorded events.
The fieldTrip library was used to synchronize EEG data with events. In turn, the following procedure was used to determine what level of engagement and memory is on a particular screenshot:
  • The time of the screenshot was determined;
  • For the indicated time between −5 s and +5 s, an index of engagement, memory, the standard deviation was determined and where the test person looked (for each EEG and eye-tracker measurement, a timestamp was generated to make it possible) Eyetribe eye-tracker with a frequency of 30 points per second was used to track the eye.

2.17. Division of Signal into Trials or Epochs

The division of an EEG signal into epochs or trials is a procedure in which specific time windows are extracted from a continuous EEG signal. Time windows are called “epochs” and are usually closed in time in relation to an event, e.g., to the visual stimulus. Therefore, if we want to isolate epochs from the signal, we should know what segments are of interest for analysis, for example a specific stimulus. In the analyzed example, the following stimuli were chosen to illustrate the method’s operation: the player starting a break in the game, the beginning of a resume after death, the attack by opponents and overcoming a static obstacle.
Removal of Biological Artifacts I. Biological artifacts were not removed at this stage.

2.18. Preprocessing

The frequency signal has been removed from the frequency range of 49 Hz , 51 Hz to eliminate interference with the power grid (50 Hz in Europe). In addition, the fixed component of the signal and local trends using the moving average have been removed.

2.19. Removal of Biological Artifacts II

ICA components related to ocular artifacts have been identified and removed. The deletion consisted in resetting the first component of ICA. The shape of the course is shown in the Figure 4.
Determination of Individual Alpha Frequency (IAF) The IAF was determined, which for the example shown was 9.79 Hz.
Determination of the Alpha, Beta, Theta Bands (Depending on the Requirements of a Particular Index). The IAF has determined the alpha bands (7.79 Hz–11.79 Hz) and theta (3.79 Hz–7.79 Hz).

2.20. Determination of the Average Value and Covariance Matrix of the Deleted Data for each Electrode

Average values and covariance for deleted data were determined for the alpha and theta bands. Due to the fact that only the first component has been removed, the average values and covariance matrices for the remaining components are zero. Figure 5 shows the mean values and standard deviations of component 1 for the alpha and theta bands. As a result of filtering the frequency components outside the selected bands, the fixed component was also removed, which resulted in the calculated average values being very close to zero. Standard deviations depend on the variability of the signal in the selected bands. This variability depends on brain activity and recorded interference. The relationship between standard deviation and brain activity makes it a measure of possible loss of information about brain function.
The obtained variance values for the removed component were converted into all electrodes. The removed component represented eye artefacts, hence its share decreases with the distance from the eyes. Figure 6 shows examples of three standard deviation diagrams that have been calculated for electrodes with different eye distances. The closest was the Fpz electrode, and the farthest was P0z.
The calculated average values assumed very low values (about 4% of the standard deviation level. For this reason, and because the average values are insignificant (only specific frequency bands are considered), their calculation is no longer necessary.

2.21. Determination of the Total Power of the GFP Field

In the example, a mid-pass filter using a continuous waveform with Morse analysis wavelet was used to determine GFP. The filter was used to filter out frequency components outside the frequency range for which GFP was calculated. For the determined values of the total power of the field, approximate values of the upper limit of variance were calculated, assuming that the mean values are equal to zero (Figure 7).

2.22. Calculation of the Index

The indices and their approximate values of the upper variance limit have been calculated. Figure 8 shows a fragment of the AW index and approximate values of the upper boundary of variance.

2.23. Index Standardization

The indices and upper limits of variance were normalized and converted into values of standard deviations. The result is shown in Figure 9. Comparing it with the Figure 8 one can see that the standard deviations have changed in proportion to the AW index. The only difference is that they have not shifted along the y axis.

2.24. Description of the Four Situations to Apply Standard Deviation

The developed method was used to investigate the player’s interest in a 2D computer game and how the memorization of elements is shaped. Four examples were chosen to show how to use standard deviation in data interpretation: the hero’s transition to the next level, the hero’s rebirth, fighting opponents and overcoming an obstacle. These examples have been chosen to present the compatibility as well as the contradiction of the engagement and memory index with the standard deviation, and whether an artifact occurred at a particular point in time (in the presented analysis, which only serves the purpose of the demonstration, the focus is on eye artefacts only).

2.25. Application of Standard Deviation

When analysing the AW and MI indices using standard deviation, it should be returned whether the standard deviation is increasing. If so, it is related to the stimulus for a specific event. In addition, it should be noted whether the standard deviation exceeds the level of the index value many times, so that we know that the removal of the ICA component has strongly influenced the index value. Additionally, it should be analyzed whether an artifact has occurred at the time. As a result, the information obtained leads us to conclude that the conclusions drawn on the basis of the index value should be treated with caution.

3. Results

Moving the hero to the next level is a situation in which the player is rewarded for their efforts. (Figure 10a).
The player’s reaction to this event may be important because it will depend on the effort they had to make to overcome the level, which allows for their indirect assessment. Additionally, there is an aspect of curiosity—what will be the next level and what challenges await?
At the time of the event there was a clear increase in AW and a very small increase in MI. The value of standard deviation has increased rapidly. Right after the event, an eye artifact occurred (Figure 10b).
Additionally, among the respondents there were found 5 erroneous, and 15 good interpretations of the AW index.
The hero’s revival is when the character comes to life at a predetermined point. In this situation, when a player was killed in the water, the revival took place in a nearby place (see Figure 11a).
The player’s influence on this event is important because we can determine to what extent the player is motivated to make another attempt to overcome the obstacle. At the time of the death event there was a drop in the AW index (a few hundred seconds before 0) and a very small increase in the MI index. However, the revival event itself caused a very small pattern of the AW index to the previous situation and an increase in the MI index after the hero’s revival. The value of standard deviation has also increased slightly. An eye artifact occurred before the event (see Figure 11b).
In addition, the AW index was found to be 0 erroneous, and so many 3 good interpretations of the AW index, while the MI index was found to be 0 wrong and 3 good.
Fighting monsters is a situation where opponents appear on our path and we have to defeat them to move on (see Figure 12a).
The player’s reaction to this event is important because it will depend on the effort of defeating opponents. As a result, we will be able to roughly estimate whether the rank of opponents is difficult, medium or easy.
Before the event occurs, the AW index records a decrease due to the fact that the player is moving on a platform where nothing is happening, i.e., they just have to squat down to avoid the obstacles of the spikes. When fighting an opponent the AW index slightly increases due to the hero’s escape from being attacked by monsters, and then slightly increases when killing enemies (a few hundredths of a second after escape). The value of standard deviation has increased rapidly. However, no artifacts were detected (see Figure 12b).
In addition, the AW index was found to be 4 erroneous, and so many 10 good interpretations of the AW index, while the MI index was found to be 4 wrong and 10 good.
Overcoming an obstacle, which is to prevent the player from falling into spikes is another challenge that the hero has to overcome in order to move on to the next stage in the game (see Figure 13a).
The player’s reaction to this event depends on the effort put into overcoming the obstacle. As a result, we will be able to determine whether the obstacles are easy, medium or difficult, just like our opponents.
When an event such as jumping to the platform to avoid spikes occurs, the AW index slightly increases, but continues to reach negative values (previously there is a large drop in value, which can be caused by pushing the box forward). After defeating the spikes you can see a slight increase in the AW index as a result of fighting the opponent. In addition, there is a slight increase in the MI index, which may be caused by focusing your eyes on a road sign that shows a ban on drinking water. The standard deviation value for both cases has increased sharply. After the event, an eye artifact occurred (see Figure 13b).
In addition, the AW index was found to be 8 erroneous, and so many 12 good interpretations of the AW index, while the MI index was found to be 4 wrong and 16 good.

4. Discussion

Analysing in the first example, the AW index chart when you move to the next level, you can see that its value increases. This is a reaction to the stimulus that starts the break in the game. Given the value of the standard deviation, which is many times higher than the level of the index value, it should be noted that the removal of the ICA component has had a very strong impact on its value. Looking at the course of the removed component you can see that this is mainly related to the elimination of the ocular artifact. Given how much impact it has had on the index, the conclusions drawn from the value of the index should be treated very carefully. The analysed event should be rejected from the research, because there is a good chance of misinterpretation of the player’s reaction. The same should be done for the MI index.
The opposite is true for the hero’s death, where the AW index decreases, but there is a slight increase in the revival. This is a reaction to the stimulus to restart the game. In addition, taking into account the standard deviation, the value of which is insignificant in relation to the index value, it should be noted that the removal of the ICA component has had very little effect on the index value. However, the MI Index has increased minimalistically since the rebirth. This is probably related to remembering an object on the screen. The standard deviation for MI is also at a low level, which indicates that the removal of the ICA component has not significantly affected the index value.
The ideal situation in which no artifact has occurred is visible when fighting monsters. This is evidenced by the low ratio of standard deviation to the AW and MI indices. Observing the values of the AW index we see a decrease, because it is a reaction to the stimulus that is an attack by enemies. When the monsters are killed, you see a slight increase. Low values of the AW index may signal that the opponent is not demanding and that it was not difficult to overcome. Referring to the MI chart you can see that its value is growing significantly. This is a reaction to a stimulus probably related to remembering how the enemy attacks. Taking into account the standard deviation, which does not exceed the index value, it should be taken into account, as in the case of rebirth, that there was no removal of the ocular artifact at that time. As a result, it is not necessary to reject an event from the study.
Referring still to the MI index chart, but for the moment of overcoming an obstacle during which the player focuses their attention on the road sign, you can see a slight increase. Taking into account the standard deviation value, which is many times higher than the level of the index value, it should be noted that the deletion of the ICA component has had a very strong impact on its value, even though it occurred a few seconds after the event. Comparing this with the graph showing the removed ICA component, it can be concluded that this is partly related to the elimination of the ocular artifact. Therefore, the analyzed event for the MI index would have to be discarded from the study as it was the case with the “player’s transition to the next level” event. In the case of the AW index, the standard deviation has much smaller values, but the values of the index itself are very little above zero. From this we can conclude that the player’s response to the stimulus was weak. Due to large values of the standard deviation in relation to the index value, the analyzed event may be qualified for rejection in case of AW index.
The results obtained for the presented situations are almost in line with our expectations, because first of all, moving from easy to next level of interest should be low. We have obtained a high AW index from the study, but due to the high standard deviation the conclusion that interest is high should be rejected. Secondly, the hero’s rebirth should have caused more interest, and this was because the player wanted to overcome the obstacle at all costs. Thirdly, fighting monsters that are defeated by one shot should cause low interest, which is confirmed. Fourthly, for the MI index, we wanted high values when overcoming an obstacle. Although the player was looking at the sign and there was a slight increase, we received a high standard deviation, which indicates, that we should reject the finding.
The presented approach can be used not only for AW or MI indices, but also for other indices, such as index of engagement, emotion, etc. Using the standard deviation we examine the reliability of conclusions. The higher the standard deviation value, the higher the variability of the signal, i.e., lower reliability. However, it should be examined whether the high standard deviation value is not related to the removed artifact.

Author Contributions

M.B.: Conceptualization, methodology, writing–review and editing, supervision; K.B.: Conceptualization, software, validation, formal analysis, writing–original draft preparation, writing–review and editing; J.D.: software, validation, visualization. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Subasi, A.; Erçelebi, E. Classification of EEG signals using neural network and logistic regression. Comput. Methods Programs Biomed. 2005, 78, 87–99. [Google Scholar] [CrossRef] [PubMed]
  2. Subasi, A. EEG signal classification using wavelet feature extraction and a mixture of expert model. Expert Syst. Appl. 2007, 32, 1084–1093. [Google Scholar] [CrossRef]
  3. Jasper, H.; Proctor, L.D. (Eds.) Reticular Formation of the Brain; Little-Brown: Boston, MA, USA, 1958. [Google Scholar]
  4. Al-Fahoum, A.S.; Al-Fraihat, A.A. Methods of EEG Signal Features Extraction Using Linear Analysis in Frequency and Time-Frequency Domains. ISRN Neurosci. 2014, 2014. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  5. Radüntz, T.; Scouten, J.; Hochmuth, O.; Meffert, B. EEG artifact elimination by extraction of ICA-component features using image processing algorithms. J. Neurosci. Methods 2015, 243, 84–93. [Google Scholar] [CrossRef] [Green Version]
  6. Vanhatalo, S.; Palva, J.M.; Holmes, M.D.; Miller, J.W.; Voipio, J.; Kaila, K. Infraslow oscillations modulate excitability and interictal epileptic activity in the human cortex during sleep. Proc. Natl. Acad. Sci. USA 2004, 101, 5053–5057. [Google Scholar] [CrossRef] [Green Version]
  7. Linkenkaer-Hansen, K.; Nikouline, V.; Palva, J.; Ilmoniemi, R. Long-range temporal correlations and scaling behavior in human brain oscillations. J. Neurosci. 2001, 21, 1370–1377. [Google Scholar] [CrossRef] [Green Version]
  8. Katona, J.; Kovari, A. A Brain—Computer Interface Project Applied in Computer Engineering. IEEE Trans. Educ. 2016, 59, 319–326. [Google Scholar] [CrossRef]
  9. Katona, J.; Kovari, A. Examining the Learning Efficiency by a Brain-Computer Interface System. Acta Polytech. Hung. 2018, 15, 251–280. [Google Scholar]
  10. 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 7th IEEE International Conference on Cognitive Infocommunications (CogInfoCom), Wroclaw, Poland, 16–18 October 2016; pp. 000251–000256. [Google Scholar]
  11. Katona, J.; Ujbanyi, T.; Sziladi, G.; Kovari, A. Electroencephalogram-Based Brain-Computer Interface for Internet of Robotic Things. Cogn. Infocommun. Theory Appl. 2018, 13, 253–275. [Google Scholar]
  12. Jung, T.; Makeig, S.; Humphries, C.; Lee, T.; Mckeown, M.; Iragui, V.; Sejnowski, T.J. Removing electroencephalographic artifacts by blind source separation. J. Neurosci. 2000, 37, 163–178. [Google Scholar] [CrossRef]
  13. Kenemans, J.; Molenaar, P.; Verbaten, M.; Slangen, J. Removal of the ocular artifact from the EEG: A comparison of time and frequency domain methods with simulated and real data. Psychophysiology 1991, 28, 114–121. [Google Scholar] [CrossRef] [PubMed]
  14. Weerts, T.; Lang, P. The effects of eye fixation and stimulus and response location on the contingent negative variation (CNV). Biol. Psychol. 1973, 1, 1–19. [Google Scholar] [CrossRef]
  15. Oster, P.; Stern, J. Measurement of eye movement electrooculography. In Techniques in Psychophysiology; Matin, I., Venables, P., Eds.; Wiley: Chichester, UK, 1980; pp. 275–309. [Google Scholar]
  16. Peters, J. Surface electrical fields generated by eye movements. Am. J. EEG Technol. 1967, 7, 27–40. [Google Scholar] [CrossRef]
  17. Fitzgibbon, S.; Powers, D.; Pope, K.; Clark, C. Removal of EEG noise and artifact using blind source separation. J. Clin. Neurophysiol. 2007, 24, 232–243. [Google Scholar] [CrossRef] [PubMed]
  18. Romero, S.; Mañanas, M.A.; Barbanoj, M.J. A comparative study of automatic techniques for ocular artifact reduction in spontaneous EEG signals based on clinical target variables: A simulation case. Comput. Biol. Med. 2008, 38, 348–360. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  19. Davidson, R.J. What does the prefrontal cortex “do” in affect: Perspectives on frontal EEG asymmetry research. Biol. Psychol. 2004, 67, 219–234. [Google Scholar] [CrossRef] [PubMed]
  20. Summerfield, C.; Mangels, J.A. Coherent theta-band EEG activity predicts item-context binding during encoding. Neuroimage 2005, 24, 692–703. [Google Scholar] [CrossRef]
  21. Werkle-Bergner, M.; Müller, V.; Shu-Chen, L.; Lindenberger, U. Cortical EEG correlates of successful memory encoding: Implications for lifespan compar-isons. Neurosci. Biobehav. Rev. 2006, 30, 839–854. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  22. Elliot, A.J.; Covington, M.V. Approach and avoidance motivation. Educ. Psychol. Rev. 2001, 13, 73–92. [Google Scholar] [CrossRef]
  23. Cosmides, L.; Tooby, J. Reasoning and natural selection. Encycl. Hum. Biol. 1991, 6, 493–503. [Google Scholar]
  24. Davidson, R.J. The neural circuitry of emotion and affective style: Prefrontal cortex and amygdala contributions. Soc. Sci. Inf. 2001, 40, 11–37. [Google Scholar] [CrossRef]
  25. Phan, K.L.; Wager, T.; Taylor, S.F.; Liberzon, I. Functional neuroanatomy of emotion: A meta-analysis of emotion activation studies in PET and fMRI. Neuroimage 2002, 16, 331–348. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  26. Malone, T.W. Toward a theory of intrinsically motivating instruction. Cogn. Sci. 1981, 5, 333–369. [Google Scholar] [CrossRef]
  27. Malone, T.W.; Lepper, M.R. Making learning fun: A taxonomy of intrinsic motivations for learning. In Aptitude, Learning, and Instruction Volume 3: Conative and Affective Process Analyses; Lawence Erlbaum Associates: Hillsdale, NJ, USA, 1987; pp. 223–253. [Google Scholar]
  28. Lepper, M.R.; Malone, T.W. Intrinsic motivation and instructional effectiveness in computer-based education. In Aptitude, Learning, and Instruction Volume 3: Conative and Affective Process Analyses; Lawence Erlbaum Associates: Hillsdale, NJ, USA, 1987; pp. 255–286. [Google Scholar]
  29. Przybylski, A.K.; Rigby, C.S.; Ryan, R.M. A motivational model of video game engagement. Rev. Gen. Psychol. 2010, 14, 154. [Google Scholar] [CrossRef] [Green Version]
  30. Ryan, R.M.; Rigby, C.S.; Przybylski, A. The motivational pull of video games: A self-determination theory approach. Motiv. Emot. 2006, 30, 344–360. [Google Scholar] [CrossRef]
  31. Ryan, R.M.; Deci, E.L. Intrinsic and extrinsic motivations: Classic definitions and new directions. Contemp. Educ. Psychol. 2000, 25, 54–67. [Google Scholar] [CrossRef]
  32. Flow, C. The Psychology of Optimal Experience; Harper & Row: New York, NY, USA, 1990. [Google Scholar]
  33. Nakamura, J.; Csikszentmihalyi, M. The concept of flow. In The Handbook of Positive Psychology; Oxford University Press: Oxford, UK, 2002; pp. 89–105. [Google Scholar]
  34. Klimesch, W. EEG alpha and theta oscillations reflect cognitive and memory performance: A review and analysis. Brain Res. Rev. 1999, 29, 169–195. [Google Scholar] [CrossRef]
  35. Vecchiato, G.; Cherubino, p.; Maglione, A.; Herrero, M.; Marinozzi, F.; Bini, F.; Trettel, A.; Babiloni, F. How to Measure Cerebral Correlates of Emotions in Marketing Relevant Tasks. Cogn. Comput. 2014, 6. [Google Scholar] [CrossRef]
  36. Vecchiato, G.; Babiloni, F.; Astolfi, L.; Toppi, J.; Cherubino, P.; Dai, G.; Kong, W.; Wei, D. Enhance of theta EEG spectral activity related to the memorization of commercial advertisings in Chinese and Italian subjects. In Proceedings of the 4th International Conference on Biomedical Engineering and Informatics (BMEI), Shanghai, China, 15–17 October 2011; pp. 1491–1494. [Google Scholar]
  37. Kong, W.; Zhao, X.; Hu, S.; Zhang, J.; Dai, G.; Vecchiato, G.; Babiloni, F. The study of memorization index based on w-gfp during the observation of tv commercials. In Proceedings of the 2012 International Conference on Systems and Informatics, Yantai, China, 19–20 May 2012. [Google Scholar]
  38. Cartocci, G.; Modica, E.; Rossi, D.; Inguscio, B.M.S.; Aricò, P.; Levy, A.C.M.; Mancini, M.; Cherubino, P.; Babiloni, F. Antismoking Campaigns’ Perception and Gender Differences: A Comparison among EEG Indices. Comput. Intell. Neurosci. 2019, 2019. [Google Scholar] [CrossRef] [Green Version]
  39. Vecchiato, G.; Maglione, A.G.; Cherubino, P.; Wasikowska, B.; Wawrzyniak, A.; Latuszynska, A.; Latuszynska, M.; Nermend, K.; Graziani, I.; Leucci, M.R.; et al. Neurophysiological Tools to Investigate Consumer’s Gender Differences during the Observation of TV Commercials. Comput. Math. Methods Med. 2014, 2014. [Google Scholar] [CrossRef]
  40. Jurcak, V.; Tsuzuki, D.; Dan, I. 10/20, 10/10, and 10/5 systems revisited: Their validity as relative head-surface-based positioning systems. Neuroimage 2007, 34, 1600–1611. [Google Scholar] [CrossRef] [PubMed]
  41. 2D Platformer–Asset Store. Available online: https://assetstore.unity.com/packages/essentials/tutorial-projects/2d-platformer-11228 (accessed on 2 September 2019).
  42. Lang, P.J.; Bradley, M.M.; Cuthbert, B.N. International Affective Picture System (IAPS): Affective Ratings of Pictures and Instruction Manual; Technical Report A-8; University of Florida: Gainesville, FL, USA, 2008. [Google Scholar]
Figure 1. Excerpt from the ICA component related to the eye artifact.
Figure 1. Excerpt from the ICA component related to the eye artifact.
Sensors 20 05715 g001
Figure 2. ICA as the transformation of the coordinate system.
Figure 2. ICA as the transformation of the coordinate system.
Sensors 20 05715 g002
Figure 3. Chronological order of events while playing a computer game.
Figure 3. Chronological order of events while playing a computer game.
Sensors 20 05715 g003
Figure 4. Excerpt from the ICA component containing eye artefacts.
Figure 4. Excerpt from the ICA component containing eye artefacts.
Sensors 20 05715 g004
Figure 5. Standard deviations and average values determined for the ICA component to be removed.
Figure 5. Standard deviations and average values determined for the ICA component to be removed.
Sensors 20 05715 g005
Figure 6. Standard deviations for electrodes at different distances from the eyes.
Figure 6. Standard deviations for electrodes at different distances from the eyes.
Sensors 20 05715 g006
Figure 7. GFP for the alpha band calculated for the electrodes on the right side of the head and its approximate values of the upper limit of standard deviations.
Figure 7. GFP for the alpha band calculated for the electrodes on the right side of the head and its approximate values of the upper limit of standard deviations.
Sensors 20 05715 g007
Figure 8. Index AW and its approximate values of the upper limit of standard deviations.
Figure 8. Index AW and its approximate values of the upper limit of standard deviations.
Sensors 20 05715 g008
Figure 9. Standardized index AW and its approximate values of the upper limit of standard deviations.
Figure 9. Standardized index AW and its approximate values of the upper limit of standard deviations.
Sensors 20 05715 g009
Figure 10. (a) The picture shows a screenshot of the game, where the hero is in the middle of the next level. In the picture, the points where the player is looking are marked with red stars. Below are the graphs (blue) of the Approach-Withdrawal and Memory Index and the standard deviation value for both indices (red line) (b) A graph showing the occurrence of an ocular artifact for an event related to the hero’s transition to the next level.
Figure 10. (a) The picture shows a screenshot of the game, where the hero is in the middle of the next level. In the picture, the points where the player is looking are marked with red stars. Below are the graphs (blue) of the Approach-Withdrawal and Memory Index and the standard deviation value for both indices (red line) (b) A graph showing the occurrence of an ocular artifact for an event related to the hero’s transition to the next level.
Sensors 20 05715 g010
Figure 11. (a) The picture shows a screenshot of the game, where the hero revives at a fixed point after death. In the picture, the points where the player is looking are marked with red stars. Below are the graphs (blue) of the Approach-Withdrawal and Memory Index and the standard deviation value for both indices (red line) (b) A graph showing the occurrence of an ocular artifact before the hero’s rebirth event.
Figure 11. (a) The picture shows a screenshot of the game, where the hero revives at a fixed point after death. In the picture, the points where the player is looking are marked with red stars. Below are the graphs (blue) of the Approach-Withdrawal and Memory Index and the standard deviation value for both indices (red line) (b) A graph showing the occurrence of an ocular artifact before the hero’s rebirth event.
Sensors 20 05715 g011
Figure 12. (a) The picture shows a screenshot of the game, where the player fights the opponent. In the picture, the points where the player is looking are marked with red stars. Below are the graphs (blue) of the Approach-Withdrawal and Memory Index and the standard deviation value for both indices (red line) (b) A graph showing the absence of an artifact for an event related to fighting an opponent.
Figure 12. (a) The picture shows a screenshot of the game, where the player fights the opponent. In the picture, the points where the player is looking are marked with red stars. Below are the graphs (blue) of the Approach-Withdrawal and Memory Index and the standard deviation value for both indices (red line) (b) A graph showing the absence of an artifact for an event related to fighting an opponent.
Sensors 20 05715 g012
Figure 13. (a) The picture shows a screenshot of the game, where the player overcomes an obstacle that is spikes. In the picture, the points where the player is looking are marked with red stars. Below are the graphs (blue) of the Approach-Withdrawal and Memory Index and the standard deviation value for both indices (red line) (b) A graph showing the occurrence of an ocular artifact after an obstacle event.
Figure 13. (a) The picture shows a screenshot of the game, where the player overcomes an obstacle that is spikes. In the picture, the points where the player is looking are marked with red stars. Below are the graphs (blue) of the Approach-Withdrawal and Memory Index and the standard deviation value for both indices (red line) (b) A graph showing the occurrence of an ocular artifact after an obstacle event.
Sensors 20 05715 g013
Table 1. Comparison of calculated and actual standard deviations.
Table 1. Comparison of calculated and actual standard deviations.
Type DataNumber Repetitions σ Calculated σ Actual
Data drawn with a normal distribution, x ¯ = 0 , σ = 1 100011.41
Data drawn with a normal distribution, x ¯ = 0 , σ = 9.81 10,000100.07141.18
Drawing data of uniform distribution, a = 0.5 , b = 0.5 10000.0830.074
Drawing data of uniform distribution, a = 5 , b = 5 10,0008.337.45
Sinusoida (amplitude 1, 20 periods)10.500.35
Sinusoida (amplitude 10, 20 periods)150.3635.43

Share and Cite

MDPI and ACS Style

Borawski, M.; Biercewicz, K.; Duda, J. Determination of the Inaccuracies of Calculated EEG Indices. Sensors 2020, 20, 5715. https://doi.org/10.3390/s20195715

AMA Style

Borawski M, Biercewicz K, Duda J. Determination of the Inaccuracies of Calculated EEG Indices. Sensors. 2020; 20(19):5715. https://doi.org/10.3390/s20195715

Chicago/Turabian Style

Borawski, Mariusz, Konrad Biercewicz, and Jarosław Duda. 2020. "Determination of the Inaccuracies of Calculated EEG Indices" Sensors 20, no. 19: 5715. https://doi.org/10.3390/s20195715

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