How to systematically detect and remove artifacts

Hello,

We are analyzing portable EEG data (MUSE). To detect and remove artifacts such as heartbeats, eyeblinks and other such artifacts we are using an automatic detection algorithm followed by manual artifact removal by the experimenters. We want to develop a way to systematically remove artifacts as well as track the percentage of total data excluded for each trial. Is there any possible way to accomplish these two goals using brainstorm?

Thank you in advance,

Sadiya

systematically remove artifacts

What would you like to do that is not described in any of the tutorials?
https://neuroimage.usc.edu/brainstorm/Tutorials/ArtifactsDetect
https://neuroimage.usc.edu/brainstorm/Tutorials/ArtifactsSsp
https://neuroimage.usc.edu/brainstorm/Tutorials/BadSegments
https://neuroimage.usc.edu/brainstorm/Tutorials/Epilepsy#Artifact_cleaning_with_ICA
https://neuroimage.usc.edu/brainstorm/Tutorials/SSPCookbook

track the percentage of total data excluded for each trial

This is something you would need to implement yourself, maybe based on the events structures:
https://neuroimage.usc.edu/brainstorm/Tutorials/EventMarkers#On_the_hard_drive
https://neuroimage.usc.edu/brainstorm/Tutorials/Scripting#Example:_Editing_events

Note that a trial is either rejected or accepted, you can't exclude just a segment of recordings from a trial. If you need further help, please describe more precisely what you would like Brainstorm to do for you.