Common Spatial Pattern
   HOME

TheInfoList



OR:

Common spatial pattern (CSP) is a mathematical procedure used in signal processing for separating a multivariate signal into additive subcomponents which have maximum differences in variance between two windows.


Details

Let \mathbf_1 of size (n,t_1) and \mathbf_2 of size (n,t_2) be two windows of a multivariate signal, where n is the number of signals and t_1 and t_2 are the respective number of samples. The CSP algorithm determines the component \mathbf^\text such that the ratio of variance (or second-order
moment Moment or Moments may refer to: * Present time Music * The Moments, American R&B vocal group Albums * ''Moment'' (Dark Tranquillity album), 2020 * ''Moment'' (Speed album), 1998 * ''Moments'' (Darude album) * ''Moments'' (Christine Guldbrand ...
) is maximized between the two windows: :\mathbf=_\mathbf \frac The solution is given by computing the two covariance matrices: :\mathbf_1=\frac :\mathbf_2=\frac Then, the simultaneous diagonalization of those two matrices (also called generalized eigenvalue decomposition) is realized. We find the matrix of eigenvectors \mathbf=\begin \mathbf_1 & \cdots & \mathbf_n \end and the diagonal matrix \mathbf of
eigenvalues In linear algebra, an eigenvector () or characteristic vector of a linear transformation is a nonzero vector that changes at most by a scalar factor when that linear transformation is applied to it. The corresponding eigenvalue, often denoted b ...
\ sorted by decreasing order such that: :\mathbf^ \mathbf_1 \mathbf = \mathbf and :\mathbf^ \mathbf_2 \mathbf = \mathbf_n with \mathbf_n the
identity matrix In linear algebra, the identity matrix of size n is the n\times n square matrix with ones on the main diagonal and zeros elsewhere. Terminology and notation The identity matrix is often denoted by I_n, or simply by I if the size is immaterial o ...
. This is equivalent to the eigendecomposition of \mathbf_2^ \mathbf_1: :\mathbf_2^ \mathbf_1=\mathbf^ :\mathbf^\text will correspond to the first column of \mathbf: :\mathbf=\mathbf_1^\text


Discussion


Relation between variance ratio and eigenvalue

The eigenvectors composing \mathbf are components with variance ratio between the two windows equal to their corresponding eigenvalue: : \mathbf_i = \frac


Other components

The vectorial subspace E_i generated by the i first eigenvectors \begin \mathbf_1 & \cdots & \mathbf_i \end will be the subspace maximizing the variance ratio of all components belonging to it: :E_i=_ \begin\min_ \frac\end On the same way, the vectorial subspace F_j generated by the j last eigenvectors \begin \mathbf_ & \cdots & \mathbf_n \end will be the subspace minimizing the variance ratio of all components belonging to it: : F_j = _ \begin\max_ \frac \end


Variance or second-order moment

CSP can be applied after a mean subtraction (a.k.a. "mean centering") on signals in order to realize a variance ratio optimization. Otherwise CSP optimizes the ratio of second-order moment.


Choice of windows X1 and X2

* The standard use consists on choosing the windows to correspond to two periods of time with different activation of sources (e.g. during rest and during a specific task). * It is also possible to choose the two windows to correspond to two different frequency bands in order to find components with specific frequency pattern.S. Boudet
"Filtrage d'artefacts par analyse multicomposantes de l'électroencephalogramme de patients épileptiques."
PhD. Thesis: Unviversité de Lille 1, 07/2008
Those frequency bands can be on temporal or on frequential basis. Since the matrix \mathbf depends only of the covariance matrices, the same results can be obtained if the processing is applied on the
Fourier transform A Fourier transform (FT) is a mathematical transform that decomposes functions into frequency components, which are represented by the output of the transform as a function of frequency. Most commonly functions of time or space are transformed, ...
of the signals. * Y. Wang Y. Wang, "Reduction of cardiac artifacts in magnetoencephalogram." Proc. of the 12th Int. Conf. on Biomagnetism, 2000 has proposed a particular choice for the first window \mathbf_1 in order to extract components which have a specific period. \mathbf_1 was the mean of the different periods for the examined signals. * If there is only one window, \mathbf_2 can be considered as the identity matrix and then CSP corresponds to
Principal component analysis Principal component analysis (PCA) is a popular technique for analyzing large datasets containing a high number of dimensions/features per observation, increasing the interpretability of data while preserving the maximum amount of information, and ...
.


Relation between LDA and CSP

Linear discriminant analysis Linear discriminant analysis (LDA), normal discriminant analysis (NDA), or discriminant function analysis is a generalization of Fisher's linear discriminant, a method used in statistics and other fields, to find a linear combination of features ...
(LDA) and CSP apply in different circumstances. LDA separates data that have different means, by finding a rotation that maximizes the (normalized) distance between the centers of the two sets of data. On the other hand, CSP ignores the means. Thus CSP is good, for example, in separating the signal from the noise in an
event-related potential An event-related potential (ERP) is the measured brain response that is the direct result of a specific sense, sensory, cognition, cognitive, or motor system, motor event. More formally, it is any stereotyped electrophysiology, electrophysiologi ...
(ERP) experiment because both distributions have zero mean and there is no distinction for LDA to separate. Thus CSP finds a projection that makes the variance of the components of the average ERP as large as possible so the signal stands out above the noise.


Applications

The CSP method can be applied to multivariate signals in generally, is commonly found in application to electroencephalographic (EEG) signals. Particularly, the method is often used in brain–computer interfaces to retrieve the component signals which best transduce the cerebral activity for a specific task (e.g. hand movement).G. Pfurtscheller, C. Guger and H. Ramose
"EEG-based brain-computer interface using subject-specific spatial filters"
Engineering applications of bio-inspired artificial neural networks, Lecture Notes in Computer Science, 1999, Vol. 1607/1999, pp. 248-254
It can also be used to separate artifacts from EEG signals. CSP can be adapted for the analysis of the event-related potentials.M. Congedo, L. Korczowski, A. Delorme and F. Lopes da Silva
"Spatio-temporal common pattern: A companion method for ERP analysis in the time domain"
Journal of Neuroscience Methods, Vol. 267, pp. 74-88, 2016


See also

* Blind signal separation


References

{{reflist Signal processing