Tutorial 11: Bad channels

Authors: Francois Tadel, Elizabeth Bock, Sylvain Baillet

It is common during the acquisition to have a few sensors that are recording values that will not be usable in the data analysis. In MEG, a sensor can be damaged or unstable. In EEG, the quality of the connection between the electrode and the subject scalp is sometimes too low to record anything interesting.

It is important to identify the sensors with poor signal quality at an early stage of the pre-processing, because the efficiency of the artifact removal will depend on it. If you try to remove blink and cardiac artifacts with some bad sensors it may not work very well, and worse, it will propagate the bad signals to all the channels.

This tutorial will explain the various ways we have to handle the bad channels. Note that the recordings from this auditory experiment do not contain any bad sensors, therefore the entire tutorial is optional. If you are not interested, you can skip it and will still be able to follow the next tutorials.

Advanced

Identifying bad channels

Some bad channels are easy to detect, their signals look either completely off or totally flat compared with the other surrounding sensors. Some others are more difficult to identify. You may be able to observe that something looks wrong in various ways (the examples below are taken from other datasets):

Advanced

Selecting sensors

Advanced

Marking bad channels

Advanced

From the database explorer

Many options to change the list of bad channels are available form the database explorer.

Advanced

Epoching and averaging

At this stage of the analysis, the database contains only links to raw files. The list of bad channels is saved separately for each dataset.

When you import epochs from a continuous file, the list of bad channels will be copied from the raw file to all the imported data files. Then you will be able to redefine this list for each epoch individually, tagging more channels as bad, or including back the ones that are ok. This way it is possible to exclude from the analysis channels that are too noisy in a few trials only, for instance because of some movement artifacts.

When averaging, if an epoch contains one bad channel, this bad channel is excluded from the average but all the other channels are kept. It means that not all the channels have the same number of trials for calculating the average. This allows to keep more data in the studies with a low number of trials and lots of noise.

Advanced

On the hard drive

The list of bad channels is saved for each data file separately, in the field ChannelFlag. This vector indicates for each channel #i if it is good (ChannelFlag(i)= 1) or bad (ChannelFlag(i)= -1).

Right-click on a link to a continuous file > File > View file contents:

bad_file.gif








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


Tutorials/BadChannels (last edited 2015-07-09 21:29:23 by FrancoisTadel)