# CSP on resting state data

**URL:** <https://mne.discourse.group/t/csp-on-resting-state-data/1949>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [September 6, 2019, 5:46am UTC](https://mne.discourse.group/t/csp-on-resting-state-data/1949 "2019-09-06T05:46:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [September 6, 2019, 5:46am UTC](https://mne.discourse.group/t/csp-on-resting-state-data/1949/1 "2019-09-06T05:46:19Z")

</div>

External Email - Use Caution

I'd like to have a general discussion on applying common spatial patterns  
on resting eeg.

I have the following questions:

Is CSP used on resting state eeg data at all? Does it have discriminative  
capacity over such data as much as it does in event-based eeg data?

If CSP can be applied to resting eeg, what is the correct way to use CSP on  
resting eeg data in a binary setting ? Can someone outline some pseudocode  
using the mne.decomposition.csp module for this scenario. (I had posted  
some of my code already on this forum. )

Thank you  
Supraja J  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20190906/0e045575/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190906/0e045575/attachment.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [September 6, 2019, 7:38am UTC](https://mne.discourse.group/t/csp-on-resting-state-data/1949/2 "2019-09-06T07:38:53Z")

</div>

External Email - Use Caution

you need 2 conditions to learn CSP filters.

what would they be on rest?

Alex

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [September 28, 2019, 9:37am UTC](https://mne.discourse.group/t/csp-on-resting-state-data/1949/3 "2019-09-28T09:37:05Z")

</div>

External Email - Use Caution

Sure. The two are two different forms of progression of a neurodegenerative  
disease (milder and more aggressive) on a sample of some N patients.

Is it possible at all to use CSP successfully with this data ? I have since  
tried many ways of serving this data to the CSP routine in MNE with little  
success.

I have tried concatenating rawarrays like mentioned in this example:  
[https://mne.tools/stable/auto\_examples/decoding/plot\_decoding\_csp\_eeg.html](https://mne.tools/stable/auto_examples/decoding/plot_decoding_csp_eeg.html).

Perhaps, it will be of great help if another such example is given for  
rest EEG of 2 different conditions on different patients.
