Next Article in Journal
Determination of the Geometric Parameters of Electrode Systems for Electrical Impedance Myography: A Preliminary Study
Previous Article in Journal
Use of a Single Wearable Sensor to Evaluate the Effects of Gait and Pelvis Asymmetries on the Components of the Timed Up and Go Test, in Persons with Unilateral Lower Limb Amputation
Previous Article in Special Issue
Evaluating the Effect of Stimuli Color and Frequency on SSVEP
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Artifacts in EEG-Based BCI Therapies: Friend or Foe?

by
Eric James McDermott
1,2,
Philipp Raggam
1,2,3,
Sven Kirsch
4,
Paolo Belardinelli
1,2,5,
Ulf Ziemann
1,2,* and
Christoph Zrenner
1,2,6,7,*
1
Department of Neurology & Stroke, University Hospital Tübingen, 72076 Tubingen, Germany
2
Hertie Institute for Clinical Brain Research, University of Tübingen, 72076 Tubingen, Germany
3
Research Group Neuroinformatics, Faculty of Computer Science, University of Vienna, 1010 Wien, Austria
4
Institut für Games, Hochschule der Medien, 70569 Stuttgart, Germany
5
CIMeC, Center for Mind/Brain Sciences, University of Trento, 38123 Trento, Italy
6
Department of Psychiatry, University of Toronto, Toronto, ON M5T 1R8, Canada
7
Temerty Centre for Therapeutic Brain Intervention, Centre for Addiction and Mental Health, Toronto, ON M6J 1H4, Canada
*
Authors to whom correspondence should be addressed.
Sensors 2022, 22(1), 96; https://doi.org/10.3390/s22010096
Submission received: 15 November 2021 / Revised: 10 December 2021 / Accepted: 11 December 2021 / Published: 24 December 2021

Abstract

:
EEG-based brain–computer interfaces (BCI) have promising therapeutic potential beyond traditional neurofeedback training, such as enabling personalized and optimized virtual reality (VR) neurorehabilitation paradigms where the timing and parameters of the visual experience is synchronized with specific brain states. While BCI algorithms are often designed to focus on whichever portion of a signal is most informative, in these brain-state-synchronized applications, it is of critical importance that the resulting decoder is sensitive to physiological brain activity representative of various mental states, and not to artifacts, such as those arising from naturalistic movements. In this study, we compare the relative classification accuracy with which different motor tasks can be decoded from both extracted brain activity and artifacts contained in the EEG signal. EEG data were collected from 17 chronic stroke patients while performing six different head, hand, and arm movements in a realistic VR-based neurorehabilitation paradigm. Results show that the artifactual component of the EEG signal is significantly more informative than brain activity with respect to classification accuracy. This finding is consistent across different feature extraction methods and classification pipelines. While informative brain signals can be recovered with suitable cleaning procedures, we recommend that features should not be designed solely to maximize classification accuracy, as this could select for remaining artifactual components. We also propose the use of machine learning approaches that are interpretable to verify that classification is driven by physiological brain states. In summary, whereas informative artifacts are a helpful friend in BCI-based communication applications, they can be a problematic foe in the estimation of physiological brain states.

1. Introduction

1.1. Motivation

Brain–computer interfaces (BCI) are becoming increasingly applied in rehabilitative settings. At the root of every BCI is the transformation of recorded activity into quantifiable outputs. Yet, brain activity, recorded as data measured from electroencephalogram (EEG), is in general mixed with artifacts such as those arising from muscle activity during the same time period [1]. Since the voltage potentials of muscle activity measured with surface electrodes are several orders of magnitude higher than those generated by brain activity, this can cause BCI algorithms to learn to generate optimal output based on artifacts [2]. While this may be acceptable (and even increase accuracy rates) in the use of BCI as an actuator (for example, in letter selection or wheelchair operation), the classification result is then not a reflection of high-level neuronal brain state but rather of concurrently generated artifacts.
The mixing of brain signals and artifacts can be problematic in BCI applications designed to detect a specific brain state, such as in personalized neurorehabilitation [3]. Therefore, in these cases, it is essential to first distinguish between brain and artifact, especially when decoding brain activity during movement execution. The problem in distinguishing movement-related artifacts from movement-related neuronal activity is precisely that the artifacts are not random noise: they contaminate the signal of interest (i.e., the higher-level brain state) in a predictable way, and may thereby be even more informative from the point of view of an automated classifier. We therefore consider it relevant to compare classification accuracy from the artifact components of the EEG signal in relation to brain signal components. In this study, we (1) characterize movement artifacts from different movement primitives, (2) separate data into brain signal and muscle- and eye-based artifact signals, (3) use machine learning classifiers to predict movement from both brain and artifact components, and (4) interpret the results to understand what features the classifier identifies as informative.

1.2. EEG Artifacts and Processing Pipelines

The most obvious artifacts arise from muscle activity or eye movements, however, cardiac and sweat-related artifacts [4] as well as 50/60 Hz power line noise [5] also play a relevant role. Even though the application of EEG in rehabilitation paradigms is expanding, there is no general consensus on the procedure for dealing with artifacts, especially those arising from naturalistic movements during the EEG recording. Typically, processing pipelines include a step to remove bad channels and then perform either principal component analysis (PCA) or independent component analysis (ICA) with the components selected manually by visual inspection [2,6,7,8]. However, important methodological details are often omitted in literature [1,2,8,9].
A typical subsequent step in standard state of the art EEG signal classification pipelines is to use spatial filters to increase class separability [10]. One of the most robust and effective methods is the common spatial pattern (CSP) algorithm, which finds spatial pattern projections that maximize the variance between classes [11,12]. However, since this method blindly maximizes separation, it could be susceptible to maximizing the importance of co-occurring artifacts. Apart from CSP, a large variety of different EEG preprocessing pipelines have been put forward using different parameters [13,14] and it has become a separate area of study to compare the accuracy of automated detection algorithms.
In general, artifacts are considered in the literature to be detrimental to classification accuracy [1], even though their advantage in special cases is acknowledged [15,16], such as the use of eye blinks or facial muscles to control computers. Whether or not EEG artifacts are problematic in BCI-based neurorehabilitation during naturalistic movements is an open question that we address in this study.

1.3. Study Design

BCIs in neurorehabilitation are typically related to recovering a specific lost or impaired function (see a recent review for extensive background information [17]). We therefore designed our paradigm to test the influence of physiologically relevant movements that are frequently impaired by stroke on the EEG signal. Our participants were guided through a virtual reality (VR) paradigm, in which they observed the task environment and their arms from a first-person point of view perspective. We chose a VR-based paradigm because the combination of EEG and VR allows for a future “closed-loop” application where the EEG signal influences the VR paradigm in real time to optimize treatment outcome. Additionally, VR paradigms are also reported to be more engaging, motivating, and fun than their traditional therapeutic counterparts [18,19], and we have successfully created a similar closed-loop system using electromyography (EMG) [20].
In order to investigate the relative contribution of brain signal vs. artifact signal to decoding accuracy, we separate the EEG signal into an artifact part and a brain activity part using ICA with an automated algorithm. We then test how well the specific naturalistic movement that occurred during the respective trial is predicted from each set of data. This is done with two different feature extraction methods (one quantifying average spectral power per channel, and the other considering the time course of the activity) and two multiclass linear machine learning classifiers. Simultaneous to the EEG recording, we also recorded EMG from the upper limb and neck muscles as a “benchmark” for the classification accuracy that can be achieved from the muscle activity during the movement.

2. Materials and Methods

2.1. Participants

The study protocol was approved by the local Ethics Review Committee of the Medical Faculty of Eberhard Karls University Tübingen (Protocol BNP-2019-11). The study was conducted in accordance with the latest version of the Declaration of Helsinki. After giving written informed consent, 17 patients who had previously been diagnosed with stroke were included in the study, fulfilling the following pre-established inclusion criteria: (i) age of 18–80 years; (ii) participant had an ischemic stroke more than 12 months ago; (iii) participant has a motor impairment of the arm and/or hand as a result of the stroke; and (iv) participant is otherwise in good physical and mental health.

2.2. Experimental Setup

Scalp EEG was recorded using a 64-channel EEG cap (Easycap GmbH, Munich) in a 10–5 system layout [21] with an additional concentration of electrodes over the motor cortex (see Appendix A, Figure A1). Muscle activity was recorded using 7 bipolar surface EMG electrodes (Kendall): five electrodes were placed on the arm used in the task on the brachioradialis, extensor digitorum, flexor digitorum profundus, biceps, and deltoid, and two more electrodes were placed on the left and right sternocleidomastoid. EEG and EMG signals were acquired simultaneously using a biosignal amplifier (NeurOne Tesla, Bittium, Finland) at a sample rate of 1 kHz in DC. Participants were seated in a comfortable chair, while visual stimulation was provided using the HTC Vive Virtual Reality Headset (https://vive.com/, accessed 1 November 2021). Hand positioning and movement was measured using the Valve Index Knuckle Controllers (https://store.steampowered.com/valveindex/, accessed 1 November 2021). Timestamps and event triggers were sent into the NeurOne data stream through a user data protocol (UDP) at the start and end of the reference phase, wait period, and task. Synchronization between the task and EMG/EEG activity was achieved through timestamp alignment.

2.3. Virtual Reality Presentation

Tasks were implemented using Unreal Engine 4 (https://www.unrealengine.com/, accessed 1 November 2021), and were presented to the participant through the VR headset. Prior to beginning the experiment, a proper fit of the headset was achieved for each patient, and verbal confirmation of a “clear image” was obtained. Hand position calibration was performed before the experimental session began by establishing a comfortable position on the chair of the arm, thereby allowing each task to be presented within the patient’s reach.

2.4. Task Protocol

Two 3-min eyes-open resting-state EEG measurements were recorded in sequence, with and without wearing the VR headset, in order to visually inspect the data quality. Patients were then given written instructions accompanied by verbal explanations on how to perform each task. Then, a practice round was carried out where patients performed each task under verbal guidance until executed correctly. Six different tasks in total were performed, requiring the execution of a particular movement sequence. Each task began with a 2-s fixation phase, where the respective task was indicated by the virtual environment, and during which patients moved toward the starting positions. A 4-s preparation phase followed, which required the patient to maintain a steady head and hand position at the starting position. This 4-s countdown was programmed to automatically restart if any movement was detected during the fixation phase. Once the fixation phase was completed, the patient was free to perform the task without a time limit. A 2-s rest phase then followed, after which the next task was initiated, beginning again with the fixation phase. The lamp task was not included in subsequent analysis due to the trial duration of a button press being too short. The remaining five tasks were used for EEG classification. Representations of each task can be seen below in Figure 1.
These phases taken together represent the process for a single trial (see Figure 2). In a single run, 10 trials of each task movement were required, followed by a break. Study participants performed 3 runs, fewer if they found it too strenuous. Tasks were presented in random order, with the constraint that the same task would not appear more than twice in a row.

2.5. Data Preprocessing

Data processing was performed using custom scripts in MATLAB R2020a (https://www.mathworks.com/products/matlab.html, accessed 1 November 2021), using EEGLab Toolbox 2020_0 [22], and FastICA toolbox v. 2.5 [23]. EEG and EMG data were downsampled to 500 Hz, high-pass filtered with a cut-off frequency of 0.5 Hz and notch-filtered to attenuate 50 Hz electrical line noise. The data was then epoched according to the triggers sent during the tasks. In particular, for each single trial, a preparation epoch was extracted between onset of the fixation timer and the onset of the task, and an execution epoch was extracted between the task onset and completion. Checks were also performed to ensure that no false triggers were present and/or used. Finally, data was split into EMG and EEG pathways, as seen within the full pipeline visualized in Figure 3.

2.5.1. EMG Data

The resulting epochs were of differing lengths, due to variance in the duration of movement execution. EMG data consisted of 7 bipolar channel recordings, 5 ‘arm’ electrodes and 2 ‘neck’ electrodes. To prepare features from the EMG data for the machine learning classifier task, the data was first high-pass filtered with a cut-off frequency of 10 Hz. Then, the envelope of the data was computed using a root mean square (RMS) sliding window of 250 ms. This envelope was then Gaussian smoothed with a 100 ms sliding window. Next, the duration of each envelope was normalized and resampled to contain 1000 time points. This data was then binned by averaging over every 100 time points for each trial, creating a vector containing 10 elements. This procedure was performed for each channel, resulting in 70 feature vectors per participant, per trial, which was used for subsequent classification. The process is visualized in Figure 4.

2.5.2. EEG Data

Given the nature of a study examining artifacts, we purposefully chose not to remove any of the trials or electrodes in our preprocessing pipeline. EEG data were downsampled to 500 Hz, and then high-pass filtered with a cut-off frequency of 0.5 Hz. The data was then notch filtered and then re-referenced to a common average reference. The EEG data was further processed by a baselining in the form of subtracting the mean from each trial epoch. The next step involved performing ICA over each participant’s complete set of task execution data (aggregated across all tasks). We then used an automated process (EEGLAB’s IClabel function) to classify the resulting independent components. Components were ranked according to type (brain, muscle, eye, artifact, cardiac, and other), and in order of their variance. Using IClabel, we selected the top 10 ranked ‘brain’ independent components, as well as the top 10 ranked ‘artifact’ (combined ‘muscle’ and ‘eye’) independent components to extract the respective signal portions. This resulted in our 3 EEG conditions: brain-only, artifact-only, and all.
At this point, our EEG processing pipeline split into two approaches: the bandpower approach and the time-frequency approach.

2.5.3. The Time-Frequency Approach

For each condition separately, time frequency analysis (TFA) was performed using FFT in the range of 3–40 Hz across each participant, task, and individual trial. We selected 5 different frequency bands: theta (3–7 Hz), alpha (7–13 Hz), low beta (13–16 Hz), beta (16–26 Hz), and gamma (26–40 Hz), and then averaged across each of these ranges for all trials within a task for each participant. In the brain and artifact conditions, this trial-averaged TF data was then binned to create 10 time bins for each of the 5 frequency bands for each of the 10 components over each task and each participant, creating 500 (10 × 5 × 10) features for each participant. Whereas in the ‘all’ condition, all 64 components remained, creating 3200 (10 × 5 × 64) features for each participant. To reduce the risk of overfitting, the dimensionality of the data for each condition was reduced to 70 features (to include 14 features for each of the 5 frequency bands) using PCA separately for each task and participant. This data was then passed to the classifier to obtain prediction accuracy. We were also able to examine the classification results of each frequency band independently.

2.5.4. The Bandpower Approach

For each condition separately, the EEG signals were bandpass filtered in each of six frequency bands: theta (3–7 Hz), alpha (7–13 Hz), low beta (13–16 Hz), beta (16–26 Hz), gamma (26–40 Hz), and ‘all’ (3–40 Hz). The channel-specific bandpower for every single trial was calculated for the band-passed data using the equation:
10 l o g 10 1 T t T x t 2 ,
where x t represents the task signal of a single trial at time point t with the length T, over each participant and task. These single values were then the features, resulting in 64 features in total (one for each channel) for each trial and each task. Likewise, we were also able to obtain classification accuracy for each frequency band. To obtain topographical plots, we averaged the trials for each channel.

2.5.5. Common Spatial Patterns (CSP)

The CSP algorithm uses spatial pattern projections to maximize the discriminability between classes. CSP is in general designed for a two-class problem. Here, the MNE (https://mne.tools/stable/index.html, accessed 1 November 2021) decoding package CSP was used and adapted for the current study’s multiclass-problem [24]. The covariance matrix of the epoched EEG signals from the classes were calculated and sorted by their eigenvalues, in order to find the projections with the highest variances between the classes. For the covariance matrix calculation, the Ledoit—Wolf shrinkage estimator was applied. The number of components (i.e., spatial projections) chosen was four, resulting in a feature reduction from 64 to four. These components were then plotted as topographies and visually compared with the ‘brain’-only-derived independent components. The goal of implementing the CSP algorithm was to inspect the spatial projections (i.e., components) of cleaned EEG signals for artifacts, hence it was only applied to the ‘brain’-only-derived independent components.

2.6. Classifier Properties

2.6.1. The Time-Frequency Approach

We input the feature vectors into MATLABs fitcecoc (https://www.mathworks.com/help/stats/fitcecoc.html, accessed 1 November 2021), which is a “multiclass error-correcting output codes (ECOC)” model that inherently takes a multiclass problem and reduces it to a set of binary learners through the use of support vector machines (SVM). ECOC models have shown to improve accuracy with respect to other multiclass models [25]. In our classifier, we chose to take an all-versus-one approach instead of one-vs-one approach. In general, 70 features were used for the TFA approach and EMG, and 14 features were used when examining individual frequency bands from the TFA approach. No hyperparameter optimization was performed, as this was not the aim of the current study. For an example of a VR-EEG optimized signal analysis pipeline, please see [3]. The classifier pipeline used an 80–20% train-test split, where the model variables were created in the training phase, and then never before seen testing data was used for the testing accuracy. We bootstrapped our model 100 times, using a new 80–20% split of the data each time.

2.6.2. The Bandpower Approach

For this approach, the classification of the tasks was performed in Python (https://www.python.org/, accessed 1 November 2021) using the scikit-learn package (https://scikit-learn.org/stable/, accessed 1 November 2021). The resulting 64 features were fed into a linear classifier (multiclass linear discriminant analysis, LDA) that used a singular value decomposition solver, which is recommended for data with a large number of features. For the classification, a 10-times 10-fold cross-validation (CV) approach was used. In CV, the dataset was split into 10 pieces, using each piece once as test data and the other 9 pieces as training data (90–10% split), and repeating that procedure 10 times, which resulted in 100 classification accuracy values per participant and frequency band. Participants with less than 10 trials in a condition were excluded for both approaches (2 participants).

3. Results

3.1. Summary

EEG data recorded during the execution of five different movements was demixed into an artifact portion and a brain signal component portion using ICA. We then compared how informative each dataset is with regard to predicting (post hoc) the movement that had been executed during the respective trial. Two different methods were used for feature extraction (time frequency and bandpower analyses). The data consisting of artifact components was consistently more predictive in both methods (70%, 81%) than the data consisting of brain-signal components (56%, 69%), respectively. Using all available data, our highest EEG-only classification accuracy was 87%, this increased to 92% when using CSP (not visualized). EMG data was collected to serve as a benchmark for the classification accuracy (93%) that can be achieved from direct measures of muscle activity.

3.2. EMG Analysis

As muscle activity greatly influences EEG during movement, EMG data was recorded as a benchmark for how informative pure muscle activity is for movement classification. Preprocessing of EMG data resulted in distinct patterns of activation for each of the movements that can be visualized by plotting the average rate of change of muscle activity during task execution. Two examples of how the movement sequence maps to a corresponding “EMG fingerprint” are shown in Figure 5 (see Appendix A, Figure A2 for complete participant data).

3.3. Artifact Characterization

Relevant sources of artifacts with respect to BCI signal processing are eye blinks, eye movements, and tonic or phasic muscle activity. Representative examples of artifact ICA component topographies are shown in Figure 6, as visualized using EEGLAB’s IClabel extension.

3.4. Classification Accuracy

One major undertaking of this research was to determine the extent to which classification algorithms would use artifact activity to predict classes. To address this question, we separated EEG activity into ‘brain-only’ and ‘artifact-only’ using an objective ICA process: EEGlab’s IClabel algorithm. Furthermore, we had two baseline conditions to compare with: the EMG and ‘All ICs’. In an effort to make the process more robust to preprocessing bias, we also chose two separate approaches for our feature generation. Our returned classifier accuracy with both feature generation methods show a significant advantage for the ‘artifact-only’ condition versus the ‘brain-only’ condition. Furthermore, we found additional significant differences when using ‘All ICs’ and then again when using the EMG feature data. These group results can be seen in Figure 7, and participant level results can be found in the Appendix A, Figure A3.
In addition to the overall condition comparison, we performed a subanalysis focusing on the differing frequency bands. Here, we observe that overall accuracy values are lower for the brain-only condition in both approaches, and that the theta band returns the highest accuracy in the artifact-only condition, while the gamma band returns the highest accuracy in the brain-only condition, as seen in Figure 8.

3.5. Interpretation of Classifier Results

3.5.1. Motivation

Beyond performing a simple comparison of artifact versus brain-derived activity with respect to classification accuracy, we also sought to understand which features were utilized by the classification algorithm in order to maximize class separability between classes. To do this, we interpreted the weight vectors produced within the TFA approach and re-projected them into sensor space. Additionally, in the bandpower approach, we averaged over each channel’s activity for all trials (in a given frequency band) to create topographies for each of the three conditions (all data, artifact, brain).

3.5.2. Visualization of TFA Approach

We interpreted the binary weight vectors returned from the all-vs-one classification algorithm by re-representing them in the sensor space using methods found in [26]. To begin, we first multiplied the weights with the coefficients saved in the PCA step of our pipeline, projecting back to a 500 dimension space (10 IC × 5 frequency band × 10 time bins), as seen for a single participant and single task in Figure 9.
This re-projection shows us the time-frequency domain of each of the 10 brain components as weighted by the classification model. If we then take the values from one of these frequency bands and multiply them by the ICA matrix, we can visualize the topography, as seen for the alpha band in Figure 10 (top) below.
With this in mind, we then multiplied this by the covariance matrix of the epoched task data, allowing us to visualize the sensor space for that single task. These task-based topographies can be thought of as an “ideal” topography over time that maximizes the ability to separate the task (i.e., the ‘painting’ task, where the participant moves the arm back-and-forth; shown here is the left arm) from the others with respect to classification accuracy weight vectors, as seen in Figure 10 (bottom).

3.5.3. Visualization of Bandpower Approach

The bandpower approach provided us with the opportunity to average across all trials for a given channel in a given frequency band, and then plot these results as a topography for each task. Doing so revealed to us activity localized in the frontal channels in the artifact condition, and over the motor cortex in the brain condition. However, the topographies also showed us that in the condition containing all available data, activity (in this case the high beta frequency) very closely mimics that of the artifact condition, as seen in Figure 11.

3.6. Common Spatial Patterns (CSP) for Feature Selection

In an effort to further scrutinize the activity remaining within the brain-labeled ICs, we used CSP, a common state of the art methodology that finds spatial patterns which maximize the variance between classes. Our rationale was that since artifacts have in general led to the greatest classification accuracy, if they remained somehow present in the data, this algorithm might be susceptible to utilizing the artifact-contaminated data in its components. In Figure 12, the subfigures on the left represent an instance of ‘cleaned’ brain-activity from a patient, while on the right, we see remaining artifacts despite the same pipeline from another patient. In detail, subfigures a1 and a2 show continuous EEG signal before (blue) and after (red) applying ICA for artifact removal. The top 10 brain-labeled ICs are found in subfigures b1 and b2, and top 4 spatial projections of the CSP algorithm are visualized in c1 and c2. It appears that artifact-contaminated channels could be successfully cleaned with the ICA approach, as the top 10 brain ICs from both patients show topographies typical of brain activity. Critically, however, after the CSP step, we see from the projections that artifact removal was not entirely successful for the patient’s data as visualized in c2. In particular, the first CSP component, which is the projection with the highest variance, has a topography typically seen from eye movement artifact.

4. Discussion

4.1. Implications

As EEG-based BCIs are becoming increasingly relevant in research, clinical, and consumer applications, it also becomes increasingly important to understand the origin of the signal features which underlie the utilized output, especially in scenarios where the BCI is designed to identify a physiological brain state. As the results of this study show, state of the art automated EEG cleaning pipelines using ICA are an effective method to remove EEG artifacts from data recorded from patients with stroke wearing a VR headset and performing naturalistic movements in a neurorehabilitation setting. Across two different feature extraction methods, classifier visualization shows that topographies consistent with brain activity are recovered from the cleaned data as the most informative features.
On the other hand, when the EEG data are not cleaned, the most informative features show artifact topographies in both feature extraction methods. This pattern can also be seen in the classification accuracy when comparing the brain signal vs. the artifact portion of the EEG data, as artifact components are consistently more informative and are therefore selected by a classifier if available. Furthermore, even after the cleaning process, it is possible to ‘recover’ remaining artifact information in some subjects when using methods that further reduce dimensionality based on class separability, such as CSP. An example of this can be seen in Figure 12, where from the previously cleaned data, one CSP extracts brain signals and one CSP extracts artifacts.

4.2. Comparison with Previous Work

In terms of decoding accuracy, our average group accuracy for the time-frequency and bandpower approaches were respectively 78% and 87% when considering all data. This is comparable with current state of the art motor system BCI-based classifiers, where (for example) similar motor task classification resulted in an accuracy of 82% using a neural network in a five-class problem [27], 65–71% when using four-class directional hand movement [28,29], 73–77% in various mental imagery tasks [30,31], and 77% when determining finger movements using electrocorticography [32].
In terms of artifact removal, we consider the standard types of EEG artifact as defined by the EEGLAB toolbox ICLabel [33], namely ‘brain’, ‘muscle’, ‘eye’, ‘heart’, ‘channel noise’, ‘line noise’ and ‘other’. IClabel uses a neural network and is trained with over 6000 EEG recordings containing over 200,000 independent components. Use of ICLabel enables the implementation of automated artifact rejection pipelines as would be required for practical use, and it also reduces any subjective bias of individual experimenters.

4.3. Significance

This finding has significant therapeutic relevance for BCI-based neurorehabilitation, where the goal is to use brain activity to induce neural plasticity at the circuit level [17]. In such an approach, the timing (or the type) of a stimulus delivered through the VR-based therapy system is determined in real time by the individual fluctuating EEG-defined brain state, such as to achieve an optimized therapeutic outcome. For example, it has been shown that the phase of the sensorimotor brain oscillation at the time of transcranial magnetic stimulation (TMS) predicts the amplitude of evoked responses and determines whether long-term potentiation (LTP)-like plasticity is induced or not [34]; similar methods are being developed for real-time EEG-dependent VR-based stimulation [3].
The results of this study highlight the risk of inadvertently using artifact signal components to inform the therapy, which would likely not only lead to a reduced therapeutic effect, but would also be difficult to detect, as the BCI appears to function adequately. Moreover, sophisticated machine learning approaches to improve the BCI’s classification performance such as CSP can actually be counterproductive from the point of view of a BCI-based motor neurorehabilitation paradigm.

4.4. Limitations

We consider a limitation of this study to be the generalizability of this main result beyond the scenario of decoding EEG-signals during naturalistic movements. In our study, the different neurophysiological states of interest are correlated with different motor trajectories. This of course makes artifacts especially informative and therefore problematic, but this is precisely the problem in BCI-based motor neurorehabilitation paradigms. Though our study also relies on the separability of EEG data into an ’artifact’ part and a ’brain signal’ part using ICA, a perfect separation is not possible with real data. Additionally, whereas we have balanced the number of ICA components, it is still possible that this overlap is asymmetric, with more cross contamination coming from one class than the other. Nevertheless, ICA is a standard approach for EEG cleaning and we consider this the most relevant method in practice.

4.5. Conclusions

This study highlights the need to consider the influence of movement-related artifacts when designing BCI-based neurorehabilitation paradigms to detect neurophysiological brain states. Standard EEG cleaning methods with ICA can be used to aggressively remove noise-related components if a sufficient number of EEG channels are available. When using machine learning approaches to analyze the data, we suggest visualizing the spectra and topographies of the most informative features used by the classifiers as a matter of best practice. Finally, when decoding physiological brain states for therapeutic applications, feature extraction should be informed by physiology, rather than automatically optimized to maximize classification accuracy.

Author Contributions

Conceptualization: E.J.M., U.Z. and C.Z.; data curation: E.J.M. and P.R.; formal analysis: E.J.M. and P.R.; funding acquisition: U.Z. and C.Z.; investigation: E.J.M., P.R., S.K., P.B., U.Z. and C.Z.; methodology: E.J.M., P.R., S.K. and C.Z.; project administration: E.J.M. and C.Z.; resources: U.Z. and C.Z.; software: E.J.M. and S.K.; supervision: U.Z. and C.Z.; validation: E.J.M. and P.R.; visualization: E.J.M., P.R. and C.Z.; writing—original draft: E.J.M. and C.Z.; and writing— review and editing: E.J.M., P.R., P.B., U.Z. and C.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This project received funding from the German Federal Ministry of Education and Research (BMBF, grant agreement No 13GW0213A) to C.Z., E.J.M. and P.R., C.Z. acknowledges support from the Clinician Scientist Program at the Faculty of Medicine at the University of Tübingen.

Institutional Review Board Statement

The study was conducted according to the guidelines of the Declaration of Helsinki, and approved by the Ethics Review Committee of the Medical Faculty of Eberhard Karls University Tübingen (Protocol BNP-2019-11).

Informed Consent Statement

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

Data Availability Statement

Data is available upon request.

Acknowledgments

We thank Mareike Spieker and Sandra Metzl.

Conflicts of Interest

C.Z. reports a transfer of research grant in the EXIST program from the German Federal Ministry for Economic Affairs and Energy (03EFJBW169) that resulted in the incorporation of a startup company, sync2brain GmbH, of which C.Z. is a shareholder. U.Z. reports grants from the German Research Foundation (DFG), grants from Bristol Myers Squibb, Janssen Pharmaceuticals NV, Servier, Biogen Idec, personal consulting fees from Pfizer GmbH, Bayer Vital GmbH, CorTec GmbH, and Medtronic GmbH, all outside the submitted work. The other authors declare no conflict of interest. The listed funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

Appendix A

Figure A1. EasyCap 64-channel layout, with additional electrodes over the motor cortex.
Figure A1. EasyCap 64-channel layout, with additional electrodes over the motor cortex.
Sensors 22 00096 g0a1
Figure A2. Complete EMG traces. Rate of change of muscle activation during the task recorded from 7 different EMG channels, by task, averaged across participants, task duration normalized. Each column represents a task: painting, faucet, head (slow), lamp, complex, head (fast). Each row represents a bipolar EMG channel, recorded from the following muscles: biceps, deltoid, extensor digitorum, flexor digitorum profundus, sternocleidomastoid (left, right).
Figure A2. Complete EMG traces. Rate of change of muscle activation during the task recorded from 7 different EMG channels, by task, averaged across participants, task duration normalized. Each column represents a task: painting, faucet, head (slow), lamp, complex, head (fast). Each row represents a bipolar EMG channel, recorded from the following muscles: biceps, deltoid, extensor digitorum, flexor digitorum profundus, sternocleidomastoid (left, right).
Sensors 22 00096 g0a2
Figure A3. Participant-level classification accuracy. Displayed from time-frequency analysis (a) and bandpower analysis (b)—also compared with EMG. Multi-class classification between 5 equally likely movements, chance level indicated with dotted line.
Figure A3. Participant-level classification accuracy. Displayed from time-frequency analysis (a) and bandpower analysis (b)—also compared with EMG. Multi-class classification between 5 equally likely movements, chance level indicated with dotted line.
Sensors 22 00096 g0a3

References

  1. Fatourechi, M.; Bashashati, A.; Ward, R.; Birch, G. EMG and EOG artifacts in brain computer interface systems: A survey. Clin. Neurophysiol. 2007, 118, 480–494. [Google Scholar] [CrossRef]
  2. Vaughan, T.; Heetderks, W.; Trejo, L.; Rymer, W.; Weinrich, M.; Moore, M.; Kübler, A.; Dobkin, B.; Birbaumer, N.; Donchin, E.; et al. Brain-computer interface technology: A review of the Second International Meeting. IEEE Trans. Neural Syst. Rehabil. Eng. 2003, 11, 94–109. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  3. McDermott, E.J.; Metsomaa, J.; Belardinelli, P.; Grosse-Wentrup, M.; Ziemann, U.; Zrenner, C. Predicting motor behavior: An efficient EEG signal processing pipeline to detect brain states with potential therapeutic relevance for VR-based neurorehabilitation. Virtual Real. 2021, 25, 1–23. [Google Scholar] [CrossRef]
  4. Barlow, J. Artifact processing (rejection and minimization) in EEG data processing. In Handbook of Electroencephalography and Clinical Neurophysiology; Revised series vol. 2; Elsevier: Amsterdam, The Netherlands, 1986; pp. 15–62. [Google Scholar]
  5. Fisch, B.; Spehlmann, R. Fisch and Spehlmann’s EEG Primer: Basic Principles of Digital and Analog EEG; Elsevier: Amsterdam, The Netherlands, 1999. [Google Scholar]
  6. Kim, J.; Caire, G.; Molisch, A. Quality-aware streaming and scheduling for device-to-device video delivery. IEEE/ACM Trans. Netw. 2015, 24, 2319–2331. [Google Scholar] [CrossRef]
  7. Snider, J.; Plank, M.; Lee, D.; Poizner, H. Simultaneous neural and movement recording in large-scale immersive virtual environments. IEEE Trans. Biomed. Circuits Syst. 2013, 7, 713–721. [Google Scholar] [CrossRef]
  8. Steinisch, M.; Tana, M.; Comani, S. A post-stroke rehabilitation system integrating robotics, VR and high-resolution EEG imaging. IEEE Trans. Neural Syst. Rehabil. Eng. 2013, 21, 849–859. [Google Scholar] [CrossRef]
  9. Teo, W.; Muthalib, M.; Yamin, S.; Hendy, A.; Bramstedt, K.; Kotsopoulos, E.; Perrey, S.; Ayaz, H. Does a combination of virtual reality, neuromodulation and neuroimaging provide a comprehensive platform for neurorehabilitation? A narrative review of the literature. Front. Hum. Neurosci. 2016, 10, 284. [Google Scholar] [CrossRef]
  10. Lotte, F.; Guan, C. Regularizing common spatial patterns to improve BCI designs: Unified theory and new algorithms. IEEE Trans. Biomed. Eng. 2010, 58, 355–362. [Google Scholar] [CrossRef] [Green Version]
  11. Ramoser, H.; Muller-Gerking, J.; Pfurtscheller, G. Optimal spatial filtering of single trial EEG during imagined hand movement. IEEE Trans. Rehabil. Eng. 2000, 8, 441–446. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  12. Wang, Y.; Gao, S.; Gao, X. Common spatial pattern method for channel selection in motor imagery based brain-computer interface. In Proceedings of the 2005 IEEE Engineering in Medicine and Biology 27th Annual Conference, Shanghai, China, 17–18 January 2006. [Google Scholar]
  13. Barua, S.; Begum, S. A review on machine learning algorithms in handling EEG artifacts. In Proceedings of the Swedish AI Society (SAIS) Workshop SAIS, Stockholm, Sweden, 22–23 May 2014. [Google Scholar]
  14. Urigüen, J.A.; Garcia-Zapirain, B. EEG artifact removal—State-of-the-art and guidelines. J. Neural Eng. 2015, 12, 031001. [Google Scholar] [CrossRef]
  15. Chambayil, B.; Singla, R.; Jha, R. Virtual keyboard BCI using Eye blinks in EEG. In Proceedings of the 2010 IEEE 6th International Conference on Wireless and Mobile Computing, Networking and Communications, Niagara Falls, ON, Canada, 11–13 October 2010. [Google Scholar]
  16. Ma, W.; Tran, D.; Le, T.; Lin, H.; Zhou, S.-M. Using EEG artifacts for BCI applications. In Proceedings of the 2014 International Joint Conference on Neural Networks (IJCNN), Beijing, China, 6–11 July 2014. [Google Scholar]
  17. Mane, R.; Chouhan, T.; Guan, C. BCI for stroke rehabilitation: Motor and beyond. J. Neural Eng. 2020, 17, 041001. [Google Scholar] [CrossRef] [PubMed]
  18. Laver, K.; Lange, B.; George, S.; Deutsch, J.; Saposnik, G.; Crotty, M. Virtual reality for stroke rehabilitation. Stroke 2018, 49, 160–161. [Google Scholar] [CrossRef]
  19. McDermott, E.J.; Himmelbach, M. Effects of arm weight and target height on hand selection: A low-cost virtual reality paradigm. PLoS ONE 2019, 14, e0207326. [Google Scholar] [CrossRef] [Green Version]
  20. McDermott, E.J.; Zwiener, T.; Ziemann, U.; Zrenner, C. Real-time decoding of 5 finger movements from 2 EMG channels for mixed reality human-computer interaction. bioRxiv 2021. [Google Scholar] [CrossRef]
  21. Oostenveld, R.; Praamstra, P. The five percent electrode system for high-resolution EEG and ERP measurements. Clin. Neurophysiol. 2001, 112, 713–719. [Google Scholar] [CrossRef]
  22. Delorme, A.; Makeig, S. EEGLAB: An open source toolbox for analysis of single-trial EEG dynamics including independent component analysis. J. Neurosci. Methods 2004, 134, 9–21. [Google Scholar] [CrossRef] [Green Version]
  23. Hyvarinen, A. Fast and robust fixed-point algorithms for independent component analysis. IEEE Trans. Neural Netw. 1999, 10, 626–634. [Google Scholar] [CrossRef] [Green Version]
  24. Grosse-Wentrup, M.; Buss, M. Multiclass common spatial patterns and information theoretic feature extraction. IEEE Trans. Biomed. Eng. 2008, 55, 1991–2000. [Google Scholar] [CrossRef] [PubMed]
  25. Fürnkranz, J. Round robin classification. J. Mach. Learn. Res. 2002, 2, 721–747. [Google Scholar]
  26. Haufe, S.; Meinecke, F.; Görgen, K.; Dähne, S.; Haynes, J.-D.; Blankertz, B.; Bießmann, F. On the interpretation of weight vectors of linear models in multivariate neuroimaging. NeuroImage 2014, 87, 96–110. [Google Scholar] [CrossRef] [Green Version]
  27. Lee, B.-H.; Jeong, J.-H.; Shim, K.-H.; Lee, S.-W. Classification of high-dimensional motor imagery tasks based on an end-to-end role assigned convolutional neural network. In Proceedings of the 2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Barcelona, Spain, 4–8 May 2020. [Google Scholar]
  28. Shenoy, H.; Vinod, A.; Guan, C. Multi-direction hand movement classification using EEG-based source space analysis. In Proceedings of the 38th Annual International Conference IEEE Engineering Medicine and Biology Society (EMBC), Orlando, FL, USA, 16–20 August 2016; pp. 4551–4554. [Google Scholar]
  29. Shenoy, H.; Vinod, A.; Guan, C. EEG source space analysis of the supervised factor analytic approach for the classification of multi-directional arm movement. J. Neural Eng. 2017, 14, 46008. [Google Scholar] [CrossRef] [PubMed]
  30. Li, X.; Chen, X.; Yan, Y.; Wei, W.; Wang, Z.J. Classification of EEG signals using a multiple kernel learning support vector machine. Sensors 2014, 14, 12784–12802. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  31. Lee, B.-H.; Jeong, J.-H.; Lee, S.-W. SessionNet: Feature similarity-based weighted ensemble learning for motor imagery classification. IEEE Access 2020, 8, 134524–134535. [Google Scholar] [CrossRef]
  32. Shenoy, P.; Miller, K.J.; Ojemann, J.G.; Rao, R.P. Finger movement classification for an electrocorticographic BCI. In Proceedings of the 2007 3rd International IEEE/EMBS Conference on Neural Engineering, Kohala Coast, HI, USA, 2–5 May 2007. [Google Scholar]
  33. Pion-Tonachini, L.; Kreutz-Delgado, K.; Makeig, S. ICLabel: An automated electroencephalographic independent component classifier, dataset, and website. NeuroImage 2019, 198, 181–197. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  34. Zrenner, D.; Desideri, D.; Belardinelli, P.; Ziemann, U. Real-time EEG-defined excitability states determine efficacy of TMS-induced plasticity in human motor cortex. Brain Stimul. 2018, 11, 74–389. [Google Scholar] [CrossRef]
Figure 1. The five tasks with VR visualization and movement depiction. Painting: wrist extension, followed by flexion, followed by extension. Faucet: forearm supination of >20°, followed by a pronation. Glass: a complex movement consisting of an elbow extension, a grasp, elbow flexion, elbow extension, and a release of the grasp. Head Slow: smooth pursuit of the head while tracking a target moving to the right, then left, then right. Head Fast: saccadic movement of the head toward a target appearing to the right, then left, then right. Lamp: button press with the index finger or thumb (only included in EMG analysis).
Figure 1. The five tasks with VR visualization and movement depiction. Painting: wrist extension, followed by flexion, followed by extension. Faucet: forearm supination of >20°, followed by a pronation. Glass: a complex movement consisting of an elbow extension, a grasp, elbow flexion, elbow extension, and a release of the grasp. Head Slow: smooth pursuit of the head while tracking a target moving to the right, then left, then right. Head Fast: saccadic movement of the head toward a target appearing to the right, then left, then right. Lamp: button press with the index finger or thumb (only included in EMG analysis).
Sensors 22 00096 g001
Figure 2. Visualization of one complete trial, along with timings. Rest phase between trials not shown.
Figure 2. Visualization of one complete trial, along with timings. Rest phase between trials not shown.
Sensors 22 00096 g002
Figure 3. Method pipeline, data split into EMG and EEG pathways.
Figure 3. Method pipeline, data split into EMG and EEG pathways.
Sensors 22 00096 g003
Figure 4. EMG processing steps. (a) RMS of high-passed EMG data. (b) Positive portion of the envelope. (c) Gaussian smoothed and broken into equal 100-point time bins. (d) Averaged time bins, resulting in 10 values, plotted here as a line.
Figure 4. EMG processing steps. (a) RMS of high-passed EMG data. (b) Positive portion of the envelope. (c) Gaussian smoothed and broken into equal 100-point time bins. (d) Averaged time bins, resulting in 10 values, plotted here as a line.
Sensors 22 00096 g004
Figure 5. Visualization of EMG activity during task execution (duration normalized) showing the average rate of change of EMG activity across all study participants, arbitrary units. (a) Biceps muscle activity during faucet rotation task. (b) Extensor digitorum muscle activity during back-and-forth painting task. Hand positions at different phases of the task illustrated below.
Figure 5. Visualization of EMG activity during task execution (duration normalized) showing the average rate of change of EMG activity across all study participants, arbitrary units. (a) Biceps muscle activity during faucet rotation task. (b) Extensor digitorum muscle activity during back-and-forth painting task. Hand positions at different phases of the task illustrated below.
Sensors 22 00096 g005
Figure 6. (a) Example output from EEGLABs IClabel function, indicating the probability of each IC’s class. Here, ICA components 1, 4, 6, and 9 are classified as eye and muscle activity, whereas 2, 3, 5, 7, 8, 10, 11, and 12 are classified as brain activity. Profiles of outlined ICs 1, 2, and 4 are shown in detail. (b) Detailed view of IC 1, eye. (c) Detailed view of IC 2, brain. (d) Detailed view of IC 4, muscle.
Figure 6. (a) Example output from EEGLABs IClabel function, indicating the probability of each IC’s class. Here, ICA components 1, 4, 6, and 9 are classified as eye and muscle activity, whereas 2, 3, 5, 7, 8, 10, 11, and 12 are classified as brain activity. Profiles of outlined ICs 1, 2, and 4 are shown in detail. (b) Detailed view of IC 1, eye. (c) Detailed view of IC 2, brain. (d) Detailed view of IC 4, muscle.
Sensors 22 00096 g006
Figure 7. Comparison of classifier conditions. Group averaged classification accuracy is displayed for each of the separate conditions in a 5-class all-vs-one classification. ‘Brain’ and ‘Artifact’ consisted of 10 ICs across 10 bins of time, in 5 frequency bands, with dimensionality reduction to 70 features. ‘All ICs’ was calculated by the same procedure, only with all ICs available. ‘EMG’ used 7 channels on the side of movement, binned into 10 time bins each for features. Significance levels: * < 0.05, ** < 0.01, *** < 0.001.
Figure 7. Comparison of classifier conditions. Group averaged classification accuracy is displayed for each of the separate conditions in a 5-class all-vs-one classification. ‘Brain’ and ‘Artifact’ consisted of 10 ICs across 10 bins of time, in 5 frequency bands, with dimensionality reduction to 70 features. ‘All ICs’ was calculated by the same procedure, only with all ICs available. ‘EMG’ used 7 channels on the side of movement, binned into 10 time bins each for features. Significance levels: * < 0.05, ** < 0.01, *** < 0.001.
Sensors 22 00096 g007
Figure 8. Frequency-based analysis of EEG conditions. Results from the time frequency analysis approach (a) and bandpower (b) in each of 5 frequency bands. The artifact and brain conditions consisted of 10 ICs. The time frequency approach used 14 features for each frequency; the bandpower approach used 64 features. Significance levels: * < 0.05, ** < 0.01, *** < 0.001, n.s.-non significant.
Figure 8. Frequency-based analysis of EEG conditions. Results from the time frequency analysis approach (a) and bandpower (b) in each of 5 frequency bands. The artifact and brain conditions consisted of 10 ICs. The time frequency approach used 14 features for each frequency; the bandpower approach used 64 features. Significance levels: * < 0.05, ** < 0.01, *** < 0.001, n.s.-non significant.
Sensors 22 00096 g008
Figure 9. Reprojection of the time-frequency domain of 10 brain components as weighted by the classification model. The y-axis contains the ICs, whereas the x-axis is split into 10 time bins for each of the 5 chosen frequency bands, separated by vertical black lines. Maximum activations can be seen as red, minimum activations as blue.
Figure 9. Reprojection of the time-frequency domain of 10 brain components as weighted by the classification model. The y-axis contains the ICs, whereas the x-axis is split into 10 time bins for each of the 5 chosen frequency bands, separated by vertical black lines. Maximum activations can be seen as red, minimum activations as blue.
Sensors 22 00096 g009
Figure 10. Classifier visualization of the TFA approach. (Top): these topographies represent the total ICA matrix multiplied with the first time bin of the TFA for the high beta frequency band. (Bottom): these topographies represent the further multiplication by the single task’s (here: ‘painting’) averaged covariance matrix. These topographies can be thought of as the ‘ideal’ topography over time that maximizes the ability to separate the task from others with respect to the classification weight vectors. This patient used the left hand.
Figure 10. Classifier visualization of the TFA approach. (Top): these topographies represent the total ICA matrix multiplied with the first time bin of the TFA for the high beta frequency band. (Bottom): these topographies represent the further multiplication by the single task’s (here: ‘painting’) averaged covariance matrix. These topographies can be thought of as the ‘ideal’ topography over time that maximizes the ability to separate the task from others with respect to the classification weight vectors. This patient used the left hand.
Sensors 22 00096 g010
Figure 11. Group averaged bandpower per condition over high beta frequency. Rows represent tasks (painting, faucet, glass, head slow, head fast). (a) Using all available data. (b) Artifact-only condition. (c) Brain-only condition.
Figure 11. Group averaged bandpower per condition over high beta frequency. Rows represent tasks (painting, faucet, glass, head slow, head fast). (a) Using all available data. (b) Artifact-only condition. (c) Brain-only condition.
Sensors 22 00096 g011
Figure 12. EEG signals before (raw EEG, blue) and after (clean EEG, red) artifact removal with ICA from patient 1 (a1) and patient 2 (a2). The top 10 brain ICs are shown in (b1,b2), and the top 4 spatial pattern projections after applying the CSP algorithm are shown in (c1,c2). The topographies show successful removal of artifacts in patient 1, while artifacts are present in the topographies of patient 2.
Figure 12. EEG signals before (raw EEG, blue) and after (clean EEG, red) artifact removal with ICA from patient 1 (a1) and patient 2 (a2). The top 10 brain ICs are shown in (b1,b2), and the top 4 spatial pattern projections after applying the CSP algorithm are shown in (c1,c2). The topographies show successful removal of artifacts in patient 1, while artifacts are present in the topographies of patient 2.
Sensors 22 00096 g012
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

McDermott, E.J.; Raggam, P.; Kirsch, S.; Belardinelli, P.; Ziemann, U.; Zrenner, C. Artifacts in EEG-Based BCI Therapies: Friend or Foe? Sensors 2022, 22, 96. https://doi.org/10.3390/s22010096

AMA Style

McDermott EJ, Raggam P, Kirsch S, Belardinelli P, Ziemann U, Zrenner C. Artifacts in EEG-Based BCI Therapies: Friend or Foe? Sensors. 2022; 22(1):96. https://doi.org/10.3390/s22010096

Chicago/Turabian Style

McDermott, Eric James, Philipp Raggam, Sven Kirsch, Paolo Belardinelli, Ulf Ziemann, and Christoph Zrenner. 2022. "Artifacts in EEG-Based BCI Therapies: Friend or Foe?" Sensors 22, no. 1: 96. https://doi.org/10.3390/s22010096

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