Tutorial 14: Additional bad segments

Authors: Francois Tadel, Elizabeth Bock, Sylvain Baillet

We have already corrected the recordings for the artifacts at fixed frequencies (power lines) and for some standard and reproducible artifacts (heartbeats and saccades). There are many other possible sources of noise that can make the recordings unusable in our analysis. This tutorial introduces how to identify and mark those bad segments of recordings.

Manual inspection

It is very important to make sure that you removed all the noisy sections of the recordings before running any fancy analysis on your recordings. In terms of quality control, there is no automatic method that will give you results as good as a manual screening of the recordings.

We recommend you always take a few minutes to scroll through all your files to identify and tag all the noisy segments. Do this full screening after you're done with all the other pre-processing steps (filtering and SSP/ICA cleaning) to remove what has not been corrected with other techniques. It may save you hours in the rest of your analysis. It is very irritating to discover after processing all your data that you have to redo everything because you have left some huge artifacts in the recordings.

At the beginning, it is not easy to separate what is too noisy from what is acceptable. This is usually an iterative process: at the first attempt you guess, you average the trials and estimate the sources and finally realize that are some eye movements left that are masking your effect of interest. You have to delete everything, add some bad segments and try again. On the contrary, if you reject too much data at the beginning, you may not have enough trials to observe your effect correctly. The balance is not easy to find, but you'll get good at it quickly. Brainstorm offer tools to do those operations quickly, so a few trials and errors are not dramatic. Just make sure you check the quality of your data at every step of the analysis, so that you don't go too far in the wrong direction.

To review your recordings and check for major artifacts, you can for instance:

When you identify something that doesn't look good:

Automatic detection

We have developed some tools to help with this screening procedure. The process "Artifacts > Detect other artifacts" identifies epochs of time that contain typical artifacts from eye movement, subject movement or muscle artifact. While it is still advised that you visually inspect all of your data, this process can help identify areas that contain artifacts which you may want to mark as bad segments in the recording.

Currently, the process runs only on continuous raw links and identifies artifacts in two frequency bands. These bands are specifically chosen because of the predictability of artifacts in these bands. Note that the alpha band (8-12 Hz) is specifically avoided here since some alpha oscillations can be quite high in amplitude and falsely detected as artifact.

This process is currently being tested. If you find a bug or have other comments related to its performance, please provide comments here or on the user forum.

We recommend you use the markers that this process creates as suggestions, not as the actual reality. Do not use this method fully automatically, always review its results.

Run #01

We will now run this process on the run #01:

bad_detect_process.gif

Running the process

Note: Before running this detection it is highly recommended that you run the cleaning processes for cardiac and eye blink artifacts.

To use the process, drop the Link to raw file in the Process1 tab -> click Run -> Events -> Detect artifact epochs [test]. Here you have the options window:

artifact_detect_pipeline_editor.png

After running the process, event types are created, one for each frequency band. They contain extended events indicating the start and end of the epoch. The time resolution is 1 second and therefore the epoch may, in fact, be a bit longer than the actual artifact. You can manually refine the time definition if you wish and mark some or all events as bad.

artifact_detect_events.png

Recommendations for usage

SSP_for_artifact1-7Hz.png

Mark as bad

Bad segments [REMOVE]

Saccades

Detection and removal (run #02)

Elekta jumps

Description of the problem.

Applying MaxFilter/SSS to the recordings with jumps on one sensor propagates the jump to all the sensor, then you have to reject the epoch.

Two options:








Feedback: Comments, bug reports, suggestions, questions
Email address (if you expect an answer):


Tutorials/BadSegments (last edited 2015-07-07 18:39:25 by FrancoisTadel)