Common Spatial Pattern
Also known as: CSP, Spatial filtering, CSP decomposition
Common Spatial Pattern (CSP) is a spatial filtering technique that identifies electrode combinations that maximize the variance difference between two classes of EEG activity, typically used in brain-computer interfaces to enhance motor imagery discrimination. Introduced by Ramoser and colleagues in 2000, CSP has become a standard feature extraction method in BCI research.
Key highlights
- Enhances signal-to-noise ratio of discriminative brain activity compared to raw EEG
- Computationally efficient; based on eigendecomposition with closed-form solution
- Interpretable spatial filters reveal where in the brain class differences originate
- Consistently improves BCI classification accuracy across many studies
Intuition
This section is available to Pro members. Upgrade to Pro
How it works
This section is available to Pro members. Upgrade to Pro
When to use it
Use CSP when designing motor imagery BCI systems and you need robust, interpretable spatial features. It is most effective for two-class problems with clear frequency-band differences. For multi-class (3+ classes), variants like Multi-class CSP or CSP-CV exist. Assumptions include stationarity within trials, sufficient data to estimate covariance reliably (typically 50+ trials per class), and known class labels during training.
Strengths & limitations
- Enhances signal-to-noise ratio of discriminative brain activity compared to raw EEG
- Computationally efficient; based on eigendecomposition with closed-form solution
- Interpretable spatial filters reveal where in the brain class differences originate
- Consistently improves BCI classification accuracy across many studies
- Requires sufficient training data (50–100+ trials per class) to estimate covariance reliably
- Assumes stationarity within trials; performance degrades with session-to-session drift
- Designed for two-class problems; extensions to multi-class are less elegant and require careful tuning
- May overfit if data is limited; regularization of covariance estimates is often needed
Common pitfalls
This section is available to Pro members. Upgrade to Pro
Applications
This section is available to Pro members. Upgrade to Pro
Frequently asked
What is the relationship between CSP and principal component analysis (PCA)?
PCA finds directions of maximum variance without considering class labels; CSP finds directions of maximum variance ratio between classes. CSP is supervised, PCA is unsupervised.
How many CSP filters should I use?
Typically 2–4 filters (using the top m eigenvalues and their negatives) for two-class problems. Use cross-validation to select m; more is not always better due to overfitting.
Can CSP be applied to single-trial real-time BCI?
Yes. Once trained offline, CSP filters apply to each single trial, projecting it onto the spatial patterns. The variance of filtered signals is computed and fed to a classifier (LDA typically). Runtime is milliseconds.
Sources
- 1.Ramoser, H., Mueller-Gerking, J., & Pfurtscheller, G. (2000). Optimal spatial filtering of single trial EEG during imagined hand movement. IEEE Transactions on Rehabilitation Engineering, 8(4), 441-446.
- 2.Koles, Z. J., Lazar, M. S., & Zhou, S. Z. (1991). Spatial patterns underlying population differences in the background EEG. Brain Topography, 2(4), 275-284.
You have read it. What now?
Cite this page
ScholarGate. (2026, June 3). Common Spatial Pattern. ScholarGate. https://scholargate.app/biomechanics/common-spatial-pattern