# Eye artifact removal using ICA

**URL:** <https://mne.discourse.group/t/eye-artifact-removal-using-ica/1579>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [July 27, 2018, 8:25pm UTC](https://mne.discourse.group/t/eye-artifact-removal-using-ica/1579 "2018-07-27T20:25:30Z")\
**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:** [July 27, 2018, 8:25pm UTC](https://mne.discourse.group/t/eye-artifact-removal-using-ica/1579/1 "2018-07-27T20:25:30Z")

</div>

External Email - Use Caution

Hi all,

I am trying to remove all eye artifacts from an EEG recording with an EOG  
channel using ICA (following the tutorial on MNE). I applied a bandpass  
filter (1 and 40Hz) to the signal and removed the default average  
reference. Then I fit ICA as follows:

picks = mne.pick\_types(raw.info, eeg= True, eog= True, stim= False,  
exclude= 'bads')  
ica= ICA(n\_components=25, method='fastica', random\_state=1)  
ica.fit(raw, picks=picks, decim=3)

n\_max\_eog=2  
eog\_epochs=create\_eog\_epochs(raw, ch\_name='EXG1')  
eog\_inds, scores= ica.find\_bads\_eog(eog\_epochs)

As an output, this says only 2 EOG events detected (when there are many  
more blinks). I can add the reject criteria with reject=dict(eog=threshold)  
but I do not know what threshold to choose. I am relatively new to MNE.

I am attaching the link to the file, if it helps.  
Giannis\_72518\_Active.bdf  
\<[https://drive.google.com/file/d/1Jyh\_BBPGrnghIcNo1bDYD4yxevu\_B4UI/view?usp=drive\_web](https://drive.google.com/file/d/1Jyh_BBPGrnghIcNo1bDYD4yxevu_B4UI/view?usp=drive_web)\>  
Thanks for all your help! Really appreciate it.

-Neelesh  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20180727/e1ee7747/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180727/e1ee7747/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:** [July 28, 2018, 6:55am UTC](https://mne.discourse.group/t/eye-artifact-removal-using-ica/1579/2 "2018-07-28T06:55:30Z")

</div>

External Email - Use Caution

hi Neelesh,

you look at ICA components and one looks like the EOG artifacts  
just exclude it manually by setting ica.exclude attribute.

HTH  
Alex
