brainstorm-tools / brainstorm3

Brainstorm software: MEG, EEG, fNIRS, ECoG, sEEG and electrophysiology
http://neuroimage.usc.edu/brainstorm
GNU General Public License v3.0
384 stars 162 forks source link

Process to perform automatic MEG automatic artifact rejection, based on ArtifactScanTool #711

Closed rcassani closed 3 months ago

rcassani commented 5 months ago

This PR has as goal to recreate the AUTO method for MEG trial rejection present in ArtifactScanTool.

This automatic method is based on thresholding the peak-to-peak amplitude (p2p) and the gradient of the signal using N times the median absolute deviations (MAD) from the median of their respective distributions across segments (for continuous files) or trials (for imported data).

image

Done with @aiwiesman