Amplitude thresholds across all channels

Brainstorm offers two process that works for all the channels at the same time:

  • Detect other artifacts: But this doesn't let you set specific thresholds
  • Detect bad channels: peak-to-peak: But this works with absolute peak-to-peak amplitudes, not std-based thresholds

The process Detect custom events lets you run a detection based on the deviation higher than the std over the entire signal, but only a given channel.

I think what you need is missing, but could be added if you feel like getting a bit involved in the development. You can probably mix and match bits of existing code to create a new process, or try to extend an existing process. You could share your contribution on the brainstorm github repository if you're interested.
If you are, start by looking at the existing code, and let me know if you need more help from us.

https://neuroimage.usc.edu/brainstorm/Tutorials/Scripting
https://neuroimage.usc.edu/brainstorm/Tutorials/TutUserProcess

1 Like