Next Article in Journal
Exploring Personal Data Processing in Video Conferencing Apps
Previous Article in Journal
One-Step, In Situ Hydrothermal Fabrication of Cobalt-Doped ZnO/CdS Nanosheets for Optoelectronic Applications
Previous Article in Special Issue
The BciAi4SLA Project: Towards a User-Centered BCI
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Non-Linear Adapted Spatio-Temporal Filter for Single-Trial Identification of Movement-Related Cortical Potential

1
Mathematical Biology and Physiology, Department Electronics and Telecommunications, Politecnico di Torino, 10129 Turin, Italy
2
Centre for Chiropractic Research, New Zealand College of Chiropractic, Auckland 1060, New Zealand
3
Rehabilitation Innovation Centre, Health and Rehabilitation Research Institute, Auckland University of Technology, Auckland 1010, New Zealand
4
Department of Health Science and Technology, Aalborg University, 9220 Aalborg, Denmark
*
Author to whom correspondence should be addressed.
Electronics 2023, 12(5), 1246; https://doi.org/10.3390/electronics12051246
Submission received: 19 January 2023 / Revised: 24 February 2023 / Accepted: 3 March 2023 / Published: 5 March 2023

Abstract

:
The execution or imagination of a movement is reflected by a cortical potential that can be recorded by electroencephalography (EEG) as Movement-Related Cortical Potentials (MRCPs). The identification of MRCP from a single trial is a challenging possibility to get a natural control of a Brain–Computer Interface (BCI). We propose a novel method for MRCP detection based on optimal non-linear filters, processing different channels of EEG including delayed samples (getting a spatio-temporal filter). Different outputs can be obtained by changing the order of the temporal filter and of the non-linear processing of the input data. The classification performances of these filters are assessed by cross-validation on a training set, selecting the best ones (adapted to the user) and performing a majority voting from the best three to get an output using test data. The method is compared to another state-of-the-art filter recently introduced by our group when applied to EEG data recorded from 16 healthy subjects either executing or imagining 50 self-paced upper-limb palmar grasps. The new approach has a median accuracy on the overall dataset of 80%, which is significantly better than that of the previous filter (i.e., 63%). It is feasible for online BCI system design with asynchronous, self-paced applications.

1. Introduction

Neurological conditions such as locked-in syndrome [1], amyotrophic lateral sclerosis [2], stroke [3] and cerebral palsy [4] affect how the brain communicates with other organs in the body by disrupting neurological networks; they primarily affect the motor control of the muscles [5]. These conditions limit patients from communicating with the outside world, affecting their social life [6]. Brain–Computer Interfaces (BCIs) facilitate such patients’ ability to regain their social lives through non-muscular communication techniques that use brain signals to transmit information [7]. Such communications via BCI have helped researchers develop several interventions focused on rehabilitating motor control after neurological disorders [8,9,10]. Despite the potential for BCIs to be used in clinical rehabilitation, traditional average-based algorithms limit their practicality [11]. Therefore, recently, researchers started working on updating BCI algorithms from average-based to single-trial [12,13,14] for better intervention development for neurorehabilitation.
The BCI paradigm for neurorehabilitation is based on the study of specific variations of brain signals recorded via electroencephalography (EEG) to design interventions that help patients [5]. One of the most widely used signals within EEG is known as movement-related cortical potential (MRCP) [15,16,17,18]. It is a low-frequency negative shift in the EEG signal that occurs around 2 s before a voluntary movement is planned or executed [19,20]. MRCPs have been extensively studied to understand the neural basis of movement and have been found to be related to a variety of factors, including the complexity of the movement, the size of the muscle group being activated, and the direction of the movement [17,21,22]. Therefore, MRCPs have been used extensively to develop BCIs that allow patients who are otherwise incapable of communicating to interact with surroundings, as well as to assist patients with motor impairments in the process of neurorehabilitation [23]. One of the major issues is to detect MRCPs in a noisy EEG signal, which is usually done by using spatial filters.
Spatial filtering is one of the most used EEG signal processing approaches for artifact removal and improving the detection accuracy of cortical potentials [24]. MRCPs have a well-defined spatial distribution, being positioned directly over the primary motor cortex area on the scalp [25]. An ankle dorsiflexion task, for example, produces the highest MRCP over the apex (Cz of 10–20 montage) [24]. The most common spatial filters used in EEG-based BCI systems are the Laplacian [26], the Common Spatial Pattern (CSP) [27], and different Independent Component Analysis (ICA) variants [24,28]. Several studies have demonstrated the effectiveness of spatial filtering techniques for enhancing the detection of MRCP signals in a variety of contexts, including motor imagery [29], robot-assisted rehabilitation [30], and BCI applications [31]. Although these filters and ICA algorithms increased SNR and detection accuracy, there are some limitations to these methods. For example, prior information about the spatial aspects of the signal is needed to set the parameters. Furthermore, cases where the EEG signals are contaminated with artifacts, such as eye blinks or muscle activity, can result in the extraction of non-brain related components, which can lead to incorrect or unreliable results [32]. In the literature, other techniques such as matched filtering and optimized spatial filtering have also been used extensively to extract MRCPs from EEG signals [33]. Although these methods can be effective in certain scenarios, they have several disadvantages, such as complexity, sensitivity to noise, and less adaptability to changing morphology of MRCPs across individuals [34,35,36].
Therefore, an innovative non-linear EEG filter was developed for identification of MRCP during motor execution or imagination [37]. The results were promising, showing better performances than a previous state-of-the-art matched and optimized spatial filter used in the literature. Our previous study involved sixteen healthy adults seated on a chair and performing 50 motor executions and 50 motor imaginations of palmer grasps as their EEGs were recorded (for task and recording details see [37]). The proposed filter mapped the input EEG channels into a prototype waveform resembling an MRCP during movements intentions and forced the output to zero otherwise. The filter was optimized in the least mean squared sense on a training set and then tested on external data. In the proposed filter, however, there were some limitations, such as the random selection of values of frequencies of sampling cosine functions; this random choice affects the filter’s performance, which is always slightly different when it’s applied to the same data. Additionally, the proposed filter had some pre-processing issues, impeding its application in real-time systems.
Specifically, some pre-processing was performed in optimal conditions, i.e., using the test data:
1.
Whitening of the data was computed by singular value decomposition (SVD), which requires the test signal to be available; thus, the filter could not be applied in real time with the proposed implementation, but an alternative whitening is required, based only on training data;
2.
Artifact removal was based on the estimation of independent components (ICs) from which the one representing the blinks was identified and removed; all data were included to estimate the ICs, whereas, in order to keep low the computational cost and allow for real time application, the filters extracting the artifacts should be defined only using training data and kept fixed when applied on new testing signals.
Our current study is based on the same dataset as the previous one, but we modified two aspects: (1) whitening and (2) artifact removal algorithms, which were modified to make the filter suitable for real-time implementation. Moreover, a new filter is developed, called Non-Linear Spatio-Temporal Filter (NLSTF), and it is compared to the previous approach when applied to the same signals (but using only the training set for data cleaning and filter definition). It is based on the following innovations with respect to the previous method:
1.
Delayed data are also used by the filter, so that filtering is applied both in time and space;
2.
Simple non-linear functions (i.e., low order polynomials) are used;
3.
The filters are ranked in terms of their accuracy in cross-validation on training data with respect to the orders of the temporal filter and of the polynomial non-linearity;
4.
A majority voting on the best filters is finally used to process the test set.
Our hypothesis was that this new approach would improve the accuracy of the previously proposed non-linear filter and make it more appropriate for real-time use.

2. Methods

The acquisition of experimental data and the innovative processing algorithm are described below.

2.1. Experimental Data

A short introduction is provided to the experimental dataset, which is the same as in [37], where more details can be found.
Sixteen healthy subjects participated in the experiment (four men; mean age ± std: 28 ± 12 years), after signing a written informed consent and under the approval of the local ethical committee (number 20130081).
The subjects performed a grasp of the right hand using a handle with a force transducer (Noraxon USA, Scottsdale, AZ; sample rate of 2000 Hz). Maximum voluntary contraction (MVC) was measured three times, keeping the highest value. The participants performed 50 grasps at 60% MVC (with a visual feedback given through a PC) during the motor execution (ME) task. After that, the subjects performed 50 trials of motor imagination (MI) of palmer grasp. For each movement type, there was a 2–3-min break after the 25th trial. For the ME tasks, the force was used to determine the movement onset, defined as the instant where all values in a 200-ms-wide moving time window were above the baseline (assessed during the rest phase). All onsets were visually inspected.
EEG was recorded by a continuous nine-channel monopolar amplifier (Nuamps Express, Neuroscan), using Ag/AgCl ring electrodes and sampling at 500 Hz with an A/D converter with 32 bits. The following channels were considered: F3, Fz, F4, C3, Cz, C4, P3, Pz and P4. The reference was placed on the right ear lobe and the ground at the nasion. The electrode impedance was below 5 kΩ. Subjects were asked to minimize eye blinks and facial and body movements. At the beginning of each trial, a digital trigger was sent from a visual cueing program to the EEG amplifier.
Some details of the experimental acquisition procedure (i.e., visual cue, subject positioning and considered EEG channels) are provided in Figure 1.

2.2. Signal Processing

An innovative non-linear spatio-temporal filter was developed to emphasize the MRCPs. It is compared to a previous filter developed by our group [37].

2.2.1. Pre-Processing

Data were divided in training (i.e., first 70% of the trace) and testing dataset (remaining 30%).
Possible jumps in the signals were automatically identified and compensated. Low frequency drifts were removed by high-pass filtering at 0.04 Hz (Butterworth filter with 40 dB per decade of attenuation outside of the pass band) [19].
Blink artifacts were then removed, as the component extracted by the Second Order Blind-source Identification (SOBI) algorithm [38] with lowest fractal dimension (computed by Sevcik’s method [39]) [40]. The weights of the artifactual component were estimated on the training set and then kept fixed when processing the test set.
Finally, data were resampled to 50 Hz after an anti-alias low-pass filter with cut-off 20 Hz (Butterworth filter with roll-off 40 dB/decade).
An example of experimental data and pre-processing is provided in Figure 2.

2.2.2. Non-Linear Spatio-Temporal Filter

The innovative filter is referred to as a non-linear spatio-temporal filter (NLSTF). A linear least squared problem was defined with respect to the weights of the filter. As input features, the present and previous samples (up to N lags) of the EEG channels were included. Thus, both a spatial and a temporal filter were defined. Moreover, the powers of the EEG signals (up to an order Q) were also included. Cross-terms were not considered, for simplicity. The sign of the signal was preserved, e.g., x 2 ( t ) was used for samples for which x ( t ) < 0 . This way, a non-linear processing of the input data was included (but still defining a linear problem for the estimation of the weights of the filter).
Consider a target desired output y ( t ) , which is equal to a prototype of the MRCP corresponding to each movement intention of the subject in the training set and zero otherwise. The same prototype as in [37] was used, i.e., a 1-s-long wave starting from 0 and linearly increasing until the instant of a movement intention; then, it was defined as 0 from the following time sample.
The desired output was fit by a linear model
y = X W + r
where W is the vector of filter weights, r the residual error and the matrix X includes the predictors, i.e., the signals of all the N c h channels ( N c h = 9 in our case), possibly delayed (with N delayed repetitions, with N = 0 if only the present data is used) and elevated to a power (ranging from 1 to Q). A general expression for the matrix X is
X = 1 x 11 x M 1 s i g n ( x 11 ) | x 11 | Q s i g n ( x M 1 ) | x M 1 | Q 1 x 12 x M 2 s i g n ( x 12 ) | x 12 | Q s i g n ( x M 2 ) | x M 2 | Q 1 x 1 S x M S s i g n ( x 1 S ) | x 1 S | Q s i g n ( x M S ) | x M S | Q
where S is the number of samples in the training set, M = N c h · ( N + 1 ) is the number of signals (also including delayed data, if N > 0 ) and the functions s i g n and absolute value are used to keep the sign of the signals when elevated to an even power. As a simple representative example, we show this matrix in a trivial case: assume that the order of the filter is 1, the order of the non-linearity is Q = 2 and consider only one EEG channel ( N c h = 1 ); in such a case, the X matrix is
X = 1 x 1 ( t ) x 1 ( t 1 ) s i g n ( x 1 ( t ) ) x 1 2 ( t ) s i g n ( x 1 ( t 1 ) ) x 1 2 ( t 1 )
where t = 1 , , S is the sampled time and bold font indicates vectors of S sampled values (a circular shift is used for x 1 ( t 1 ) in the training set; edge effects are negligible).
In order to minimize the energy of the residual, the problem was pseudo-inverted after whitening the matrix X (which is needed to satisfy the sphericity of residuals [37]). SVD was applied in [37], but it is estimated on the signals to be processed, hindering real-time application in practice. To remove this issue, we computed the whitening matrix by solving an eigenvalue problem for the covariance of the predictors defined on training data. Eigenvectors associated to eigenvalues close to zero (i.e., smaller than 10 10 ) were removed (they could be due to the removal of an artefactual component). Moreover, a constant equal to one thousandth of the maximal eigenvalue was added to all eigenvalues, in order to regularize the computation of their reciprocal (needed for whitening). Test data were then approximately whitened by using such a whitening matrix (which was fixed and only based on training data, so that it could be applied as a pre-processing to new test data as soon as they are acquired).
In order to smooth the output of the filter, we applied a low-pass exponential filter of order 2. Then, a match filter with template extracted from the training set was applied. The template was defined as the average of aligned MRCPs on 1-s epochs preceding movement intentions and zero in the previous and following 1-s epochs. Examples of estimated templates and outputs of the corresponding match filters are shown in Figure 3.
The output of a match filter was then compared to a threshold computed based on the Receiver Operating Characteristics curve applied on the training data. A balanced classification problem was considered (both in the training and test sets) selecting 1-s long epochs either immediately before a movement intention (MRCP) or at the middle times between two consecutive movement intentions (rest; an additional epoch was taken 5 s before the first movement intention to get the same number of MRCPs and rest epochs).
The maximal order of the temporal filter was N = 5 and the maximum power of the non-linear terms was Q = 3 . Many different classifiers were then obtained, i.e., ( N + 1 ) × Q = 6 × 3 = 18 (notice that we considered also the cases N = 0 , i.e., only spatial filter, and Q = 1 , i.e., linear processing of the signals). In addition, the non-linear spatial filter considered in our previous work [37] was included in the set of classifiers. They were all tested in five-fold cross-validation on the training set to select the three classifiers with best accuracy. Finally, a majority voting on those three best classifiers was used to get the classification of the test data. In fact, we noted improvements with respect to using a single classifier (Wilcoxon sign rank test indicated a statistically significant improvement on the default tests described below, from an overall median accuracy of 77% to 80%) and not much variation when using majority voting among five instead of three classifiers (overall median accuracy of 82%, but no statistically significant variation with respect to using only three classifiers).

2.2.3. Performance Evaluation

The two algorithms (NL-SF and NLSTF) have been compared in terms of accuracy, true positive rate (TPR) and false positive rate (FPR), in motor execution (ME) or imagination (MI) conditions. The default condition, using 70% of MRCPs for training and all the nine EEG channels, was compared with the following cases (also considered in [37]):
1.
The training data was reduced to the 40% of the MRCPs;
2.
Only six channels were used, removing the electrodes F3, P4 and Fz (central channels were kept as they are the most important for MRCP detection; of the remaining channels, we removed one on the left hemisphere, another on the right hemisphere, and the last on the midline; the same choice was considered in [37]).
Furthermore, as additional test, both NL-SF and NLSTF were compared to the optimal spatial filter, OSF [19] (using the default conditions) to confirm the superior performances already found in [37] when comparing NL-SF versus OSF.
Possible statistical differences between conditions of interest were tested in paired comparisons, using the Wilcoxon signed rank test.

3. Results

Figure 2 shows an example of signals. Raw data and their counterpart after removing jumps are shown in Figure 2A; the data obtained after filtering and cleaning from artifacts are given in Figure 2B.
Examples of outputs of the filters NL-SF and NLSTF are shown in Figure 3. The same data as in Figure 2 are considered. In the case of NLSTF, the 3 optimal filters have been used to process the data (the orders of the temporal filters were 3, 0 and 1, respectively; the orders of the polynomial non-linearity were 1, 3 and 3, respectively). Templates (shown in Figure 3C) are obtained by averaging and then used by match filters, whose outputs are in Figure 3A,B.
Figure 4 considers the processing of the entire dataset (default tests). It shows the number of delayed data and the non-linearity used in the best filters selected for MRCP identification. As a majority voting among the outputs of three filters was performed for each of the 16 subjects, 48 cases are displayed for ME and for MI. Notice that there are many cases in which a temporal filter is important: a simple spatial filter is selected 12 times in ME and eight times in MI tests, so that there are four cases for ME and eight for MI in which it was not among the three best filters. Moreover, the NL-SF was selected among the three best filters only in few cases (five times in ME and never in MI conditions).
Figure 5 compares the performances of NL-SF and NLSTF in all tests, considering both default and cases with reduced number of EEG channels or training data. Notice that NLSTF has a larger median accuracy in all tested conditions. As data were split into ME and MI, sometimes, the size of the sample was not sufficient to get statistical significance. However, when pooling together the ME and MI cases, the accuracy was always statistically larger for the NLSTF (p < 0.001, p = 0.007 and p < 0.001, for the default, reduced number of channels and reduced training set cases, respectively); moreover, the TPR was always statistically larger for the NLSTF (p < 0.001, p = 0.032 and p < 0.001, respectively); on the other hand, the FPR was not statistically different.
The comparison of the non-linear filters with OSF confirmed the lower performances of the latter. Tested on default conditions, the median accuracies showed statistically significant improvements when using the non-linear filters. Specifically, the improvements of median accuracy with respect to OSF were 19.3% (p < 0.001) and 28.9% (p < 0.001) in ME and 15.4% (p = 0.0017) and 20.0% (p < 0.001) in MI, for NL-SF and NLSTF, respectively.

4. Discussion

The MRCP reflects the execution or imagination of a movement. Its automatic identification is finding many applications, e.g., in commercial systems [41], neuro-motor prosthesis [42], neurofeedback [43], identification of different movements [44]. It has been also investigated in combination with the sensory motor rhythm [45], in order to increase identification performances. Movements of different parts of the body have been investigated, e.g., hand [46], leg [19], tongue [47]. Many properties of MRCPs have been studied, finding details reflecting the speed and force of the movement [21], its trajectory [22], and the variations in case of pathology [48]. Its identification from single trials could allow for a natural control of a BCI [46] and support patients affected by neurological conditions such as locked-in syndrome [1], amyotrophic lateral sclerosis [2], stroke [3] and cerebral palsy [4].
Different methods have been proposed in the literature to identify MRCPs. Some of them have shown good performances, but they need to process epochs of EEG, making the application difficult in self-paced applications: for example, very good performances have been obtained by the Linearity Preserving Projections with Linear Discriminant Analysis [49] and by the Adaptive Riemann Kernel associated to a Support Vector Machine [50]. In this work, we focused on a filter, which has the advantage of processing the data in real time, allowing for an asynchronous control of the BCI and self-paced training.
Different filters have been proposed to focus selectively on the cortical response of the motor area (e.g., the Laplacian filter, found to be the best choice among simple filters [51]) or to emphasize the energy of the EEG during movement intention and reduce it otherwise (e.g., CSP and OSF [19]). However, those approaches do not impose the MRCPs to be similar in different trials, so that its identification after filtering could be difficult. Moreover, forcing the energy to be large during motor intention (regardless of the output waveform) makes CSP and OSF prone to outliers. In order to get similar MRCPs and avoid being biased by outliers, we introduced a non-linear spatial filter (NL-SF) that maps the EEG of a training dataset to a prototype which is the same during motor intentions and zero otherwise [37]. This method outperformed the OSF (which was the state-of-the-art alternative) when using a match filter to identify the MRCP [37].
However, the tests of our previous work were performed in optimal conditions, i.e., after cleaning the entire data [37] (indeed, the cleaning procedure was applied on the whole dataset, including also the test data). Moreover, the EEGs were whitened by SVD, which is a data driven procedure applied on the entire data. Finally, our approach included a stochastic variability, which made its output a bit different even when applied on the same data.
In the present work, we introduce a new approach which is built upon the previous NL-SF. Again, we consider a filter that maps the training EEG data to the same prototype of MRCPs, in order to facilitate its identification based on a simple match filter. The innovations with respect to the NL-SF are the introduction of a temporal filter (in addition to the spatial one) and the use of simple polynomial non-linear processing, obtaining a non-linear spatio-temporal filter (NLSTF). In this way, the new filter has two degrees of freedom: the order of the temporal filter and the order of the polynomial processing. Thus, more filters are defined and can be used to make a more stable identification of MRCPs, by majority voting on more classifications. Specifically, the best three filters were identified based on cross-validation on training data and then used to discriminate between MRCP and rest epochs. Different alternatives could also be explored in the future, e.g., an optimal weighted integration of the outputs of the best filters, considering their performances in cross-validation.
A simple pre-processing of the data was performed, removing jumps and frequency components out of the range of interest. The components affected by artifacts were also identified and removed (Figure 2). The filter was fit only on training data. Thus, the spatial filter identifying blink artifacts was defined only on training data and then kept fixed.
Then, linear problems were defined for the estimation of the weights of the spatial and temporal filters (the processing of the data was non-linear, and powers of the EEG signals were included into the predictors; however, the problems for the estimation of the weights of the filters were still linear). Whitening of the data was useful to optimize the solution of those problems: it was defined by solving an eigenvalue problem on training data and then eigenvectors and eigenvalues were kept fixed for processing test signals. This approach was applied both to NL-SF and to NLSTF, to prepare the data before filter optimization and application to test data. Examples of their outputs after template matching are shown in Figure 3. The templates were obtained by averaging on training data. The three best NLSTFs show similar templates, but small differences can affect the classification of borderline epochs. Thus, majority voting was useful to get more stable estimations (statistically significant improvements were found considering majority voting on three filters instead of using a single one; a not significant improvement in performance was obtained by majority voting with five filters).
The method is fully adapted to the specific data of the subject: not only the weights, but also the types of the filters (i.e., the orders of the temporal filter and of the non-linear processing) were chosen to improve the performances on training data. By looking at the filters most selected for the classification (Figure 4), we realize that they are very different: the order of the temporal filter, when pooling together the tests on ME and MI, is almost uniformly distributed between 0 (i.e., simple spatial filter) and 5 (the maximal order considered); concerning the non-linear processing, the least selected approach was NL-SF (which was also included among the possible choices), followed by the simple linear method. Thus, both temporal filtering and non-linear processing emerged as useful approaches to improve classification performances.
The performances of the two filters are given in terms of accuracy, TPR and FPR (Figure 5). Tests with a reduced number of EEG channels (six instead of nine) and a smaller training set (20 instead of 35 MRCPs) were also included. Both conditions (which are the same as those considered in [37]) challenge the filters, as less information is provided. However, they offer important opportunities. In fact, a BCI system with fewer EEG channels is cheaper (in terms of hardware needed, storage memory, and power consumption for recording/transmission/processing), less cumbersome, more convenient, and more stable to possible connection problems; a shorter training session is less troublesome for the user, who sometimes needs to recalibrate the system. Our tests show that the NLSTF has an accuracy that is larger than that of NL-SF in all conditions. This is due to a better sensitivity, i.e., the ability to identify the true MRCPs. On the other hand, the identification of false positives is equivalent for the two methods. The reduction of information provided to the filter had a negative effect on the performances, slightly reducing the median accuracy; however, significant effects were identified only in a few cases (i.e., lower accuracy for reduced EEG channels in MI tests and for reduced training in ME).
The tested filters outperformed OSF, which in turn was found superior to the classical filters Laplacian and CSP in detecting MRCPs [19]. These results confirm, based on the actual data (cleaned using only the training set), the importance of the non-linear processing, already found in [37] (where OSF and NL-SF were compared).
In summary, our innovative NLSTF allows to identify the MRCP (by template matching) with better performances than our previous state-of-the-art NL-SF. The improvements are also found with a low number of channels and in the case of a reduced training set. Even if the accuracy is still limited and there is some inter-subject variability, performances of our method can be improved if the patient trains by self-paced sessions [52].

5. Conclusions

We discuss an innovative non-linear filter for MRCP identification in BCI applications. A previous approach had state-of-the-art performances, but included the following problems: whitening was implemented by SVD, requiring the test signal to be available; artifact identification and removal was applied to the entire data; a stochastic choice affected the non-linear transformation, making the performance not stable. Our new method solves these problems, being completely designed on training data and using simple polynomial non-linearities. It is a non-linear spatio-temporal filter, feasible for self-paced applications. By choosing between different input data (EEGs with different delays and elevated to different powers), multiple filters are designed; thus, our approach has some degrees of freedom to better adapt to the user. The filters with best cross-validated performance are selected and used in test data by majority voting. This innovative method outperforms the previous approach when they are applied on the same data with same pre-processing. It could be of interest in online BCI system design.

Author Contributions

Conceptualization, L.M. and I.K.N.; methodology, L.M.; software, L.M.; validation, L.M.; data preparation, U.G. and I.K.N.; investigation, L.M.; writing—original draft preparation, L.M.; writing—review and editing, L.M., U.G. and I.K.N.; visualization, L.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
BCIbrain computer interface
CSPcommon spatial pattern
EEGelectroencephalogram
MEmotor execution
MImotor imagination
MRCPmovement related cortical potential
NL-SFnon-linear optimized spatial filter
NLSTFnon-linear spatio-temporal filter
OSFoptimal spatial filter
SVDsingular value decomposition

References

  1. Guger, C.; Spataro, R.; Allison, B.Z.; Heilinger, A.; Ortner, R.; Cho, W.; La Bella, V. Complete Locked-in and Locked-in Patients: Command Following Assessment and Communication with Vibro-Tactile P300 and Motor Imagery Brain–Computer Interface Tools [Original Research]. Front. Neurosci. 2017, 11, 251. [Google Scholar] [CrossRef] [PubMed]
  2. Shahriari, Y.; Vaughan, T.M.; McCane, L.M.; Allison, B.Z.; Wolpaw, J.R.; Krusienski, D.J. An exploration of BCI performance variations in people with amyotrophic lateral sclerosis using longitudinal EEG data. J. Neural Eng. 2019, 16, 056031. [Google Scholar] [CrossRef] [PubMed]
  3. Strandgaard, S.; Paulson, O. Pathophysiology of stroke. J. Cardiovasc. Pharmacol. 1990, 15, S38–S42. [Google Scholar] [CrossRef]
  4. Alcaide-Aguirre, R.E.; Warschausky, S.A.; Brown, D.; Aref, A.; Huggins, J.E. Asynchronous brain–computer interface for cognitive assessment in people with cerebral palsy. J. Neural Eng. 2017, 14, 066001. [Google Scholar] [CrossRef] [PubMed]
  5. Rezeika, A.; Benda, M.; Stawicki, P.; Gembler, F.; Saboor, A.; Volosyak, I. Brain–Computer Interface Spellers: A Review. Brain Sci. 2018, 8, 57. [Google Scholar] [CrossRef] [Green Version]
  6. Hanagasi, H.A.; Gurvit, I.H.; Ermutlu, N.; Kaptanoglu, G.; Karamursel, S.; Idrisoglu, H.A.; Emre, M.; Demiralp, T. Cognitive impairment in amyotrophic lateral sclerosis: Evidence from neuropsychological investigation and event-related potentials. Cogn. Brain Res. 2022, 14, 234–244. [Google Scholar] [CrossRef]
  7. Wolpaw, J.R.; Birbaumer, N.; McFarland, D.J.; Pfurtscheller, G.; Vaughan, T.M. Brain–computer interfaces for communication and control. Clin. Neurophysiol. 2002, 113, 767–791. [Google Scholar] [CrossRef]
  8. Kuhlman, W.N. EEG feedback training of epileptic patients: Clinical and electroencephalographic analysis. Electroencephalogr. Clin. Neurophysiol. 1978, 45, 699–710. [Google Scholar] [CrossRef]
  9. Rice, K.M.; Blanchard, E.B.; Purcell, M. Biofeedback treatments of generalized anxiety disorder: Preliminary results. Biofeedback Self-Regul. 1993, 18, 93–105. [Google Scholar] [CrossRef]
  10. Sterman, M.B. Basic concepts and clinical findings in the treatment of seizure disorders with EEG operant conditioning. Clin. Electroencephalogr. 2000, 31, 45–55. [Google Scholar] [CrossRef]
  11. Gu, Y.; Farina, D.; Murguialday, A.R.; Dremstrup, K.; Birbaumer, N. Comparison of movement related cortical potential in healthy people and amyotrophic lateral sclerosis patients. Front. Neurosci. 2013, 7, 65. [Google Scholar] [CrossRef] [Green Version]
  12. Kamavuako, E.N.; Jochumsen, M.; Niazi, I.K.; Dremstrup, K. Comparison of Features for Movement Prediction from Single-Trial Movement-Related Cortical Potentials in Healthy Subjects and Stroke Patients. Comput. Intell. Neurosci. 2015, 2015, 858015. [Google Scholar] [CrossRef] [Green Version]
  13. Li, K.; Sankar, R.; Arbel, Y.; Donchin, E. Single trial independent component analysis for P300 BCI system. In Proceedings of the Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Minneapolis, MN, USA, 3–6 September 2009. [Google Scholar]
  14. Wirth, C.; Dockree, P.M.; Harty, S.; Lacey, E.; Arvaneh, M. Towards error categorisation in BCI: Single-trial EEG classification between different errors. J. Neural Eng. 2020, 17, 016008. [Google Scholar] [CrossRef]
  15. Kita, Y.; Mori, A.; Nara, M. Two types of movement-related cortical potentials preceding wrist extension in humans. Neuroreport 2001, 12, 2221–2225. [Google Scholar] [CrossRef]
  16. MacKinnon, C.D. Recordings of movement-related potentials combined with PET, fMRI or MEG. In The Bereitschaftspotential; Springer: New York, NY, USA, 2003; pp. 95–111. [Google Scholar]
  17. Li, H.; Huang, G.; Lin, Q.; Zhao, J.L.; Lo, W.A.; Mao, Y.R.; Chen, L.; Zhang, Z.G.; Huang, D.F.; Li, L. Combining Movement-Related Cortical Potentials and Event-Related Desynchronization to Study Movement Preparation and Execution. Front. Neurol. 2018, 9, 822. [Google Scholar] [CrossRef] [Green Version]
  18. Olsen, S.; Alder, G.; Williams, M.; Chambers, S.; Jochumsen, M.; Signal, N.; Rashid, U.; Niazi, I.K.; Taylor, D. Electroencephalographic Recording of the Movement-Related Cortical Potential in Ecologically Valid Movements: A Scoping Review [Review]. Front. Neurosci. 2021, 15, 721387. [Google Scholar] [CrossRef]
  19. Niazi, I.K.; Jiang, N.; Tiberghien, O.; Nielsen, J.F.; Dremstrup, K.; Farina, D. Detection of movement intention from single-trial movement-related cortical potentials. J. Neural Eng. 2011, 8, 066009. [Google Scholar] [CrossRef]
  20. Shibasaki, H.; Barrett, G.; Halliday, E.; Halliday, A. Components of the movement-related cortical potential and their scalp topography. Electroencephalogr. Clin. Neurophysiol. 1980, 49, 213–226. [Google Scholar] [CrossRef]
  21. Jochumsen, M.; Niazi, I.K.; Mrachacz-Kersting, N.; Farina, D.; Dremstrup, K. Detection and classification of movement-related cortical potentials associated with task force and speed. J. Neural Eng. 2013, 10, 056015. [Google Scholar] [CrossRef]
  22. Kim, J.-H.; Bießmann, F.; Lee, S.-W. Decoding three-dimensional trajectory of executed and imagined arm movements from electroencephalogram signals. IEEE Trans. Neural Syst. Rehabil. Eng. 2015, 23, 867–876. [Google Scholar] [CrossRef]
  23. van Dokkum, L.E.H.; Ward, T.; Laffont, I. Brain computer interfaces for neurorehabilitation—Its current status as a rehabilitation strategy post-stroke. Ann. Phys. Rehabil. Med. 2015, 58, 3–8. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  24. Karimi, F.; Kofman, J.; Mrachacz-Kersting, N.; Farina, D.; Jiang, N. Detection of Movement Related Cortical Potentials from EEG Using Constrained ICA for Brain–Computer Interface Applications. Front. Neurosci. 2017, 11, 356. [Google Scholar] [CrossRef] [Green Version]
  25. Hassan, A.; Ghani, U.; Riaz, F.; Rehman, S.; Jochumsen, M.; Taylor, D.; Niazi, I. Using a Portable Device for Online Single-Trial MRCP Detection and Classification. In Intelligent Data Engineering and Automated Learning—IDEAL 2015; Jackowski, K., Burduk, R., Walkowiak, K., Wozniak, M., Yin, H., Eds.; Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2015; Volume 9375. [Google Scholar]
  26. McFarland, D.J.; McCane, L.M.; David, S.V.; Wolpaw, J.R. Spatial filter selection for EEG-based communication. Electroencephalogr. Clin. Neurophysiol. 1997, 103, 386–394. [Google Scholar] [CrossRef] [PubMed]
  27. Blankertz, B.; Tomioka, R.; Lemm, S.; Kawanabe, M.; Muller, K.R. Optimizing Spatial filters for Robust EEG Single-Trial Analysis. IEEE Signal Process. Mag. 2008, 25, 41–56. [Google Scholar] [CrossRef]
  28. Bell, A.J.; Sejnowski, T.J. An information-maximization approach to blind separation and blind deconvolution. Neural Comput. 1995, 7, 1129–1159. [Google Scholar] [CrossRef]
  29. Pfurtscheller, G.; Neuper, C. Motor imagery and direct brain–Computer communication. Proc. IEEE 2001, 89, 1123–1134. [Google Scholar] [CrossRef]
  30. Ramos-Murguialday, A.; Broetz, D.; Rea, M.; Laer, L.; Yilmaz, O.; Brasil, F.L.; Liberati, G.; Curado, M.R.; Garcia-Cossio, E.; Vyziotis, A.; et al. Brain-machine interface in chronic stroke rehabilitation: A controlled study. Ann. Neurol 2013, 74, 100–108. [Google Scholar] [CrossRef] [Green Version]
  31. McFarland, D.J.; Miner, L.A.; Vaughan, T.M.; Wolpaw, J.R. Mu and beta rhythm topographies during motor imagery and actual movements. Brain Topogr. 2000, 12, 177–186. [Google Scholar] [CrossRef]
  32. Delorme, A.; Sejnowski, T.; Makeig, S. Enhanced detection of artifacts in EEG data using higher-order statistics and independent component analysis. NeuroImage 2007, 34, 1443–1449. [Google Scholar] [CrossRef] [Green Version]
  33. Shakeel, A.; Navid, M.S.; Anwar, M.N.; Mazhar, S.; Jochumsen, M.; Niazi, I.K. A Review of Techniques for Detection of Movement Intention Using Movement-Related Cortical Potentials. Comput. Math. Methods Med. 2015, 2015, 346217. [Google Scholar] [CrossRef] [Green Version]
  34. Daly, J.J.; Wolpaw, J.R. Brain–Computer interfaces in neurological rehabilitation. Lancet Neurol. 2008, 7, 1032–1043. [Google Scholar] [CrossRef]
  35. Makeig, S.; Debener, S.; Onton, J.; Delorme, A. Mining event-related brain dynamics. Trends Cogn. Sci. 2004, 8, 204–210. [Google Scholar] [CrossRef] [Green Version]
  36. Winkler, I.; Brandl, S.; Horn, F.; Waldburger, E.; Allefeld, C.; Tangermann, M. Robust artifactual independent component classification for BCI practitioners. J. Neural Eng. 2004, 11, 035013. [Google Scholar] [CrossRef] [Green Version]
  37. Mascolini, A.; Niazi, I.K.; Mesin, L. Non-linear optimized spatial filter for single-trial identification of movement related cortical potential. Biocybern. Biomed. Eng. 2022, 42, 426–436. [Google Scholar]
  38. De Lathauwer, L.; Castaing, J. Second-Order Blind Identification of Underdetermined Mixtures. In Independent Component Analysis and Blind Signal Separation; Rosca, J., Erdogmus, D., Príncipe, J.C., Haykin, S., Eds.; Springer: Berlin/Heidelberg, Germany, 2006; pp. 40–47. [Google Scholar]
  39. Sevcik, C. A procedure to Estimate the Fractal Dimension of Waveforms. Complex. Int. 2018, 5, 1–19. [Google Scholar]
  40. Gomez-Herrero, G.; Clercq, W.D.; Anwar, H.; Kara, O.; Egiazarian, K.; Huffel, S.V.; Paesschen, W.V. Automatic Removal of Ocular Artifacts in the EEG without an EOG Reference Channel. In Proceedings of the 7th Nordic Signal Processing Symposium, Reykjavik, Iceland, 7–9 June 2006; pp. 130–133. [Google Scholar]
  41. Jochumsen, M.; Knoche, H.; Kjaer, T.W.; Dinesen, B.; Kidmose, P. EEG Headset Evaluation for Detection of Single-Trial Movement Intention for Brain–Computer Interfaces. Sensors 2020, 20, 2804. [Google Scholar] [CrossRef]
  42. Hochberg, L.R.; Serruya, M.D.; Friehs, G.M.; Mukand, J.A.; Saleh, M.; Caplan, A.H.; Branner, A.; Chen, D.; Penn, R.D.; Donoghue, J.P. Neuronal ensemble control of prosthetic devices by a human with tetraplegia. Nature 2006, 442, 164–171. [Google Scholar] [CrossRef]
  43. Behboodi, A.; Lee, W.A.; Bulea, T.C.; Damiano, D.L. Evaluation of Multi-layer Perceptron Neural Networks in Predicting Ankle Dorsiflexion in Healthy Adults using Movement-related Cortical Potentials for BCI-Neurofeedback Applications. In Proceedings of the IEEE International Conference on Rehabilitation Robotics (ICORR), Rotterdam, The Netherlands, 25–29 July 2022; pp. 1–5. [Google Scholar]
  44. Jochumsen, M.; Niazi, I.K. Detection and classification of single-trial movement-related cortical potentials associated with functional lower limb movements. J. Neural Eng. 2020, 17, 035009. [Google Scholar] [CrossRef]
  45. Liu, T.; Huang, G.; Jiang, N.; Yao, L.; Zhang, Z. Reduce brain computer interface inefficiency by combining sensory motor rhythm and movement-related cortical potential features. J. Neural Eng. 2020, 17, 035003. [Google Scholar] [CrossRef]
  46. Pereira, J.; Kobler, R.; Ofner, P.; Schwarz, A.; Muller-Putz, G.R. Online detection of movement during natural and self-initiated reach-and-grasp actions from EEG signals. J. Neural Eng. 2021, 18, 046095. [Google Scholar] [CrossRef]
  47. Kaeseler, R.L.; Johansson, T.W.; Struijk, L.N.S.A.; Jochumsen, M. Feature and Classification Analysis for Detection and Classification of Tongue Movements From Single-Trial Pre-Movement EEG. IEEE Trans. Neural Syst. Rehabil. Eng. 2022, 30, 678–687. [Google Scholar] [CrossRef] [PubMed]
  48. Xu, R.; Jiang, N.; Vuckovic, A.; Hasan, M.; Mrachacz-Kersting, N.; Allan, D.; Fraser, M.; Nasseroleslami, B.; Conway, B.; Dremstrup, K.; et al. Movement-related cortical potentials in paraplegic patients: Abnormal patterns and considerations for BCI-rehabilitation. Front. Neuroeng. 2014, 7, 35. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  49. Xu, R.; Jiang, N.; Lin, C.; Mrachacz-Kersting, N.; Dremstrup, K.; Farina, D. Enhanced low-latency detection of motor intention from EEG for closed-loop brain–Computer interface applications. IEEE Trans. Biomed. Eng. 2014, 61, 288–296. [Google Scholar] [PubMed] [Green Version]
  50. Barachant, A.; Bonnet, S.; Congedo, M.; Jutten, C. Riemannian geometry applied to BCI classification. In Proceedings of the 9th International Conference Latent Variable Analysis and Signal Separation, St. Malo, France, 27–30 September 2010; pp. 629–636. [Google Scholar]
  51. Jochumsen, M.; Niazi, I.K.; Mrachacz-Kersting, N.; Jiang, N.; Farina, D.; Dremstrup, K. Comparison of spatial filters and features for the detection and classification of movement-related cortical potentials in healthy individuals and stroke patients. J. Neural Eng. 2015, 12, 056003. [Google Scholar] [CrossRef]
  52. Grosse-Wentrup, M.; Mattia, D.; Oweiss, K. Using brain–Computer interfaces to induce neural plasticity and restore function. J. Neural Eng. 2011, 8, 025004. [Google Scholar] [CrossRef] [Green Version]
Figure 1. (A) Visual cue provided to the participants. The template was displayed during the whole trial. A moving cursor was shown to help the subjects to follow the template. The output of the force transducer was used as moving cursor during motor execution; in case of motor imagination task, the cursor moved over the template to cue the subjects. (B) Sketchy representation of the location of the subject during the experiment. (C) Indication of the considered EEG electrodes.
Figure 1. (A) Visual cue provided to the participants. The template was displayed during the whole trial. A moving cursor was shown to help the subjects to follow the template. The output of the force transducer was used as moving cursor during motor execution; in case of motor imagination task, the cursor moved over the template to cue the subjects. (B) Sketchy representation of the location of the subject during the experiment. (C) Indication of the considered EEG electrodes.
Electronics 12 01246 g001
Figure 2. Example of signals (second subject during motor execution). (A) Raw data (red color) and EEG after compensating for jumps (black). (B) EEG data (with jumps compensated) after band-pass filtering (red color) and artifacts removal (black).
Figure 2. Example of signals (second subject during motor execution). (A) Raw data (red color) and EEG after compensating for jumps (black). (B) EEG data (with jumps compensated) after band-pass filtering (red color) and artifacts removal (black).
Electronics 12 01246 g002
Figure 3. Example of processing (same data as in Figure 2 are used). (A) Output of the Non-Linear Optimized Spatial Filter (NL-SF) on test data, after template matching (reference prototype indicating movements onset in red). (B) Outputs of the three best Non-Linear Spatio-Temporal Filters (NLSTF) on test data, after template matching. (C) Templates of the filters (NL-SF and the 3 best NLSTFs), obtained by averaging the outputs of the filters on MRCPs of the training set.
Figure 3. Example of processing (same data as in Figure 2 are used). (A) Output of the Non-Linear Optimized Spatial Filter (NL-SF) on test data, after template matching (reference prototype indicating movements onset in red). (B) Outputs of the three best Non-Linear Spatio-Temporal Filters (NLSTF) on test data, after template matching. (C) Templates of the filters (NL-SF and the 3 best NLSTFs), obtained by averaging the outputs of the filters on MRCPs of the training set.
Electronics 12 01246 g003
Figure 4. Histograms of orders of temporal filters (A,B) and order of polynomial non-linearity (C,D) of the filters selected to be applied on test data (majority voting on the outputs of three filters) for EEGs recorded during either motor execution (ME, panels A,C) or imagination (MI, B,D). NL-SF indicates the non-linear spatial filter, sometimes preferred over a polynomial non-linearity.
Figure 4. Histograms of orders of temporal filters (A,B) and order of polynomial non-linearity (C,D) of the filters selected to be applied on test data (majority voting on the outputs of three filters) for EEGs recorded during either motor execution (ME, panels A,C) or imagination (MI, B,D). NL-SF indicates the non-linear spatial filter, sometimes preferred over a polynomial non-linearity.
Electronics 12 01246 g004
Figure 5. Performances on the testing set of the filters: non-linear spatial filter (NL-SF, gray color) and adapted non-linear spatio-temporal filter (NLSTF, black color). Accuracy, true positive rate (TPR) and false positive rate (FPR) are shown, considering either motor execution (ME) or imagination (MI). The default condition (i.e., nine EEG channels and 70% of training data) is compared with the reduction of either the number of channels (six instead of nine channels) or the size of the training set (40% of the MRCPs instead of the 70%). Box and whiskers plots are shown, indicating median, quartiles, range and outliers (using +markers). Statistical differences in paired comparisons are shown with marker * (p < 0.05) or ** (p < 0.01) and a segment joining the two tested distributions.
Figure 5. Performances on the testing set of the filters: non-linear spatial filter (NL-SF, gray color) and adapted non-linear spatio-temporal filter (NLSTF, black color). Accuracy, true positive rate (TPR) and false positive rate (FPR) are shown, considering either motor execution (ME) or imagination (MI). The default condition (i.e., nine EEG channels and 70% of training data) is compared with the reduction of either the number of channels (six instead of nine channels) or the size of the training set (40% of the MRCPs instead of the 70%). Box and whiskers plots are shown, indicating median, quartiles, range and outliers (using +markers). Statistical differences in paired comparisons are shown with marker * (p < 0.05) or ** (p < 0.01) and a segment joining the two tested distributions.
Electronics 12 01246 g005
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Mesin, L.; Ghani, U.; Niazi, I.K. Non-Linear Adapted Spatio-Temporal Filter for Single-Trial Identification of Movement-Related Cortical Potential. Electronics 2023, 12, 1246. https://doi.org/10.3390/electronics12051246

AMA Style

Mesin L, Ghani U, Niazi IK. Non-Linear Adapted Spatio-Temporal Filter for Single-Trial Identification of Movement-Related Cortical Potential. Electronics. 2023; 12(5):1246. https://doi.org/10.3390/electronics12051246

Chicago/Turabian Style

Mesin, Luca, Usman Ghani, and Imran Khan Niazi. 2023. "Non-Linear Adapted Spatio-Temporal Filter for Single-Trial Identification of Movement-Related Cortical Potential" Electronics 12, no. 5: 1246. https://doi.org/10.3390/electronics12051246

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