mne-tools / mne-bids-pipeline

Automatically process entire electrophysiological datasets using MNE-Python.
https://mne.tools/mne-bids-pipeline/
BSD 3-Clause "New" or "Revised" License
134 stars 65 forks source link

Do not interpolate bad segments using autoreject before ICA #816

Closed hoechenberger closed 8 months ago

hoechenberger commented 8 months ago

This is a fixup for #810

There, not only did we remove bad epochs, but also interpolated data before submission to ICA fitting. However, this is not what is recommended in the autoreject documentation: there, the suggestion is to only remove the bad epochs, not interpolate.

This PR fixes the behavior accordingly and updates the documentation and log messages.

I tested on a set of noise EEG data and I'm actually getting better results with this approach for the majority participants .

Before merging …

larsoner commented 8 months ago

Makes sense, thanks @hoechenberger