# How to handle multiple bad segments in a long	continuous signal for artifact correction with ICA

**URL:** <https://mne.discourse.group/t/how-to-handle-multiple-bad-segments-in-a-long-continuous-signal-for-artifact-correction-with-ica/2287>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [August 13, 2020, 10:13am UTC](https://mne.discourse.group/t/how-to-handle-multiple-bad-segments-in-a-long-continuous-signal-for-artifact-correction-with-ica/2287 "2020-08-13T10:13:45Z")\
**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:** [August 13, 2020, 10:13am UTC](https://mne.discourse.group/t/how-to-handle-multiple-bad-segments-in-a-long-continuous-signal-for-artifact-correction-with-ica/2287/1 "2020-08-13T10:13:45Z")

</div>

External Email - Use Caution

Dear Group,

I want to clean the artifact in a long continuous EEG signal. The recording  
is about 1.5 hours.

However, there are multiple bad segments within the signals and have been  
marked as bad using the mne annot tool.

But I am not sure whether I should mark these segments as bad before ICA.

Appreciate for advice.

-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200813/1f06ce8c/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200813/1f06ce8c/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:** [August 13, 2020, 4:10pm UTC](https://mne.discourse.group/t/how-to-handle-multiple-bad-segments-in-a-long-continuous-signal-for-artifact-correction-with-ica/2287/2 "2020-08-13T16:10:53Z")

</div>

External Email - Use Caution

Yes, definitely exclude bad segments before doing ICA! Otherwise your  
ICA will be slower and the decomposition worse because the bad segments  
will waste components (of which there is a fixed maximum number).
