Potential pitfalls of widely used implementations of common spatial patterns

Annu Int Conf IEEE Eng Med Biol Soc. 2020 Jul:2020:196-199. doi: 10.1109/EMBC44109.2020.9176314.

Abstract

We have uncovered serious flaws in handling EEG signals with a decreased rank in implementations of the common spatial patterns (CSP). The CSP algorithm assumes covariance matrices of the signal to have full rank. However, preprocessing techniques, such as artifact removal using independent component analysis, may decrease the rank of the signal, leading to potential errors in the CSP decomposition. We inspect what could go wrong when CSP implementations do not take this into consideration on a binary motor imagery classification task. We review CSP implementations in open-source toolboxes for EEG signal analysis (FieldTrip, BBCI Toolbox, BioSig, EEGLAB, BCILAB, and MNE). We show that unprotected implementations decreased mean classification accuracy by up to 32%, with spatial filters resulting in complex numbers, for which corresponding spatial patterns do not have a clear interpretation. We encourage researchers to check their implementations and analysis pipelines.

Publication types

  • Review

MeSH terms

  • Algorithms
  • Brain-Computer Interfaces*
  • Electroencephalography
  • Imagery, Psychotherapy