# ECG artifact reduction using ICA & ctps

**URL:** <https://mne.discourse.group/t/ecg-artifact-reduction-using-ica-ctps/1388>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [December 27, 2017, 5:42pm UTC](https://mne.discourse.group/t/ecg-artifact-reduction-using-ica-ctps/1388 "2017-12-27T17:42:02Z")\
**Posts on this page:** 2\
**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:** [December 27, 2017, 5:42pm UTC](https://mne.discourse.group/t/ecg-artifact-reduction-using-ica-ctps/1388/1 "2017-12-27T17:42:02Z")

</div>

Hello all mne\_analysis

I try to reject ECG artifact in EEG using MNE library  
(ref URL :  
[https://martinos.org/mne/stable/auto\_tutorials/plot\_artifacts\_correction\_ica.html?highlight=ecg](https://martinos.org/mne/stable/auto_tutorials/plot_artifacts_correction_ica.html?highlight=ecg)  
)

first, I decompose EEG signal to independent components

and set some parameters(n\_components, method, decim, random\_state) for ICA

Do you guys know how to set parameter or any reference for ICA parameter?

I use ICA parameter like:

n\_components = (half of channels)  
method = 'fastica'  
decim = 3 (just follow artifact correction manuel above)  
random\_state = (half of channels)

and my uasge using ICA paramter above:  
ica = ICA(n\_components=n\_components, method=method,  
random\_state=random\_state)  
ica.fit(raw, picks=picks\_eeg, decim=decim)

do you guys have any know-how?

Thanks

Do Dae Guk | Signal and System Lab.

Inje Univ. | Department of Biomedical engineering | the Degree of Bachelor

#302 Building A, Inje-Ro 197, Gimhae, Gyung-nam, South Korea, 621-749

Tel. +82-55-320-3797 | Fax. +82-55-327-3292

C.P +82-10-8353-7985

E-mail : eornrsayclub at [gmail.com](http://gmail.com) \<eornrsayclub at [naver.com](http://naver.com)\> |  
eornrsayclub at [naver.com](http://naver.com)  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20171228/d9dcba97/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20171228/d9dcba97/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:** [December 28, 2017, 2:37pm UTC](https://mne.discourse.group/t/ecg-artifact-reduction-using-ica-ctps/1388/2 "2017-12-28T14:37:06Z")

</div>

hi,

unfortunately I can only personally advise you to look at the components  
and assess if you correctly capture artifacts with the parameters you used.

Best,  
Alex
