Suggested Bad Channels: Seven Checks, Then Your Decision

New in 1.2
Topic | 7 min read

What it is

Suggest Bad Channels, in the Bad Channels step of Preprocess Signal, reads the whole recording in 1 s windows and checks every scalp channel against seven criteria. It lists each channel that fails one, with the value it measured and the limit that value passed.

It only suggests. No channel is marked until you choose, and the recording itself never changes.

How to use it

Picture of the Bad Channels step of Preprocess Signal, with sample data.
  1. Open Preprocess Signal for the recording and click Suggest Bad Channels under Bad channels. The check runs with its progress below the button; Cancel stops it.
  2. Read the table beside the map: each suggested channel with its reason, what was measured and the limit. On the map a suggested electrode has an orange dashed ring.
  3. Click Mark Bad or Keep for each channel, or Mark All. A channel marked bad turns red on the map; Undo takes a decision back.
  4. To mark a channel the check did not suggest, choose it in Mark a channel. The same menu marks the selected rows or clears every mark, and each marked channel can have a note.
  5. Turn on Interpolate in the result only if the analyses need every channel. It is off unless you turn it on.
  6. Click Save Preprocessing Run. Your decisions are also kept with the recording: the Viewer shows a red dot beside the name of a bad channel and an orange ring beside an undecided one, and the Electrode Map marks them the same way.

The seven checks

Flat: the longest stretch in which the signal changes by less than 0.1 µV from one sample to the next. Suggested at 5 s or longer.

Amplitude unusual: how widely the channel varies, compared with the other channels. Suggested beyond z 5, too large or too small.

High-frequency noise: how much of the channel lies above 50 Hz, compared with the other channels. Suggested over z 5; checked only when the sample rate is above 100 Hz.

Uncorrelated with other channels: the share of 1 s windows in which the channel follows no other channel (its largest correlation with any of them is under 0.4). Suggested over 1 % of the windows.

Line noise: the 50 or 60 Hz peak against the frequencies just around it, compared with the other channels. Suggested over z 4.

Clipping: the share of samples at the lowest or highest value the channel can record. Suggested over 0.1 %.

Bridged: two neighbouring electrodes whose difference barely varies, as when gel joins them. Suggested under 2 % of the usual difference between neighbours.

A z score here compares a channel with the median of all the channels, in steps of their typical spread, so one wild channel cannot hide the others. The checks follow PREP (Bigdely-Shamlo and others, 2015), EEGLAB's clean_rawdata and Tenke and Kayser (2001).

Sensitivity

Standard is the default. Lenient raises every limit and suggests fewer channels; Strict lowers them and suggests more. The table changes at once, without reading the recording again.

Lenient and Strict use: Flat 8 s and 3 s; Amplitude unusual and High-frequency noise z 6 and 4; Uncorrelated 3 % and 0.5 %; Line noise z 5 and 3; Clipping 0.5 % and 0.05 %; Bridged 1 % and 4 %.

Which channels are checked

Every voltage channel on the scalp that shares the recording's most common sample rate. At least 8 are needed, because each channel is compared with the others.

ECG, EOG, EMG and other channels off the scalp, channels at another rate and channels without a voltage unit are named under the result as not checked.

Electrode positions, for the map and the bridging check, come from Place Electrodes when the recording has a placed layout, and otherwise from the standard positions of the channel names.

What a bad channel changes

A channel marked bad is left out of the average reference, out of the colours of the scalp maps (where it is a red dot), out of the search for bad stretches and ICA, and out of the analyses and handoffs that use the saved run.

Interpolate in the result rebuilds each bad channel from the good electrodes around it with spherical splines (Perrin and others, 1989), as MNE-Python does, so the result keeps every channel.

A channel with fewer than three good neighbours, or without a known position, is left out instead of rebuilt. With more than a fifth of the channels bad, none is rebuilt.

A rebuilt channel is never part of the reference, and the saved run names the channels that were rebuilt.

Where it is kept

The last check and your decisions are kept with the recording on this device, so closing Preprocess Signal loses nothing. Suggest Bad Channels again replaces the check and keeps your decisions.

A saved preprocessing run keeps its own copy: the suggestions, each decision, the sensitivity and the version of the check.

The original file and the exports

The original recording never changes. A saved run's bad channels and suggestions are written into its Data & Processing History, its exports and its Research Handoff.

A Research Handoff of Original Raw Data keeps the channels marked bad in its data and marks them bad in metadata/channels.tsv, with why, as BIDS does: its MNE-Python loader puts them in raw.info["bads"], its EEGLAB loader in EEG.etc.eegtracelab.bad_channels.

Hide, delete, undo

Undo takes back a decision on a suggestion. Clear Bad Markings in Mark a channel's menu removes every mark at once.

Turning Interpolate in the result off leaves the bad channels out again.

How accurate it is

On 12 recordings of 64 channels from PhysioNet the checks were compared with pyprep, MNE-Python and EEGLAB's clean_rawdata, channel by channel. They agree on most channels; where they differ, the channel lies at a limit. clean_rawdata marks more channels with muscle noise near the temples: they sit just under the High-frequency noise limit of Standard, and Strict finds more of them.

Faults put into the same recordings on purpose, one in each of 7 clean channels of every file, are found at every sensitivity: flat, mains hum, disconnected, six times too large, clipped and bridged, 12 of 12 each. Added broadband noise is the hardest: Standard finds 11 of 12. Of the 600 channels left clean, Standard suggests one it should not.

Interpolation was compared with MNE-Python's: the rebuilt signals correlate at 0.998 or more inside the cap, and 0.98 to 0.99 at its edge. The validation page has the figures.

Limits

A check does not know why a channel looks wrong, and a channel that is bad only now and then may pass. Look at its traces before you decide.

A recording with fewer than 8 scalp channels of one rate, such as a headband, is not checked. Mark channels yourself in Mark a channel.

A long recording takes a while: on a Mac, 2 hours of 128 channels at 2048 Hz take under 3 minutes to check and about 2 to search for bad stretches. Cancel stops either at once.

The suggestions are for research review. They are not a clinical judgement.

Recommended for

Every recording, before you save a preprocessing run and before ICA.

Start at Standard. Strict shows borderline channels to look at; Lenient suits a noisy recording in which Standard suggests too many.

Suggested Bad Channels: Seven Checks, Then Your Decision

New in 1.2
Topic | 6 min read

What it is

Suggest Bad Channels, in the Bad Channels step of Preprocess Signal, reads the whole recording in 1 s windows and checks every scalp channel against seven criteria. It lists each channel that fails one, with the value it measured and the limit that value passed.

It only suggests. No channel is marked until you choose, and the recording itself never changes.

How to use it

Picture of the Bad Channels step of Preprocess, with sample data.
  1. Tap Again to run the seven checks on the whole recording once more, at the sensitivity the line names.
  2. The head shows the suggested channels in orange and the ones you marked in red.
  3. For each suggestion, tap Mark Bad, or Keep to leave it in.
  4. A marked channel says Marked bad; Undo takes it back.

Open Preprocess from the recording's page, or from the Viewer's More › This stretch › Preprocess, and go to Bad Channels. Choose the sensitivity, then tap Suggest Bad Channels; Cancel stops the check.

Mark All marks every suggestion at once.

To mark a channel the check did not suggest, choose it under Mark by hand › Mark a channel; choosing it again unmarks it.

Turn on Interpolate in the result only if the analyses need every channel. It is off unless you turn it on.

Save the run on the Save step. Your decisions are also kept with the recording: the Viewer shows a red dot before the name of a bad channel and an orange ring before an undecided one, and the Electrodes panel marks them the same way.

The seven checks

Flat: the longest stretch in which the signal changes by less than 0.1 µV from one sample to the next. Suggested at 5 s or longer.

Amplitude unusual: how widely the channel varies, compared with the other channels. Suggested beyond z 5, too large or too small.

High-frequency noise: how much of the channel lies above 50 Hz, compared with the other channels. Suggested over z 5; checked only when the sample rate is above 100 Hz.

Uncorrelated with other channels: the share of 1 s windows in which the channel follows no other channel (its largest correlation with any of them is under 0.4). Suggested over 1 % of the windows.

Line noise: the 50 or 60 Hz peak against the frequencies just around it, compared with the other channels. Suggested over z 4.

Clipping: the share of samples at the lowest or highest value the channel can record. Suggested over 0.1 %.

Bridged: two neighbouring electrodes whose difference barely varies, as when gel joins them. Suggested under 2 % of the usual difference between neighbours.

A z score here compares a channel with the median of all the channels, in steps of their typical spread, so one wild channel cannot hide the others. The checks follow PREP (Bigdely-Shamlo and others, 2015), EEGLAB's clean_rawdata and Tenke and Kayser (2001).

Sensitivity

Standard is the default. Lenient raises every limit and suggests fewer channels; Strict lowers them and suggests more. Choose it above Suggest Bad Channels, before the check; the result's line names it.

Lenient and Strict use: Flat 8 s and 3 s; Amplitude unusual and High-frequency noise z 6 and 4; Uncorrelated 3 % and 0.5 %; Line noise z 5 and 3; Clipping 0.5 % and 0.05 %; Bridged 1 % and 4 %.

Which channels are checked

Every voltage channel on the scalp that shares the recording's most common sample rate. At least 8 are needed, because each channel is compared with the others.

ECG, EOG, EMG and other channels off the scalp, channels at another rate and channels without a voltage unit are not checked.

Electrode positions, for the map and the bridging check, come from Place Electrodes when the recording has a placed layout, and otherwise from the standard positions of the channel names.

What a bad channel changes

A channel marked bad is left out of the average reference, out of the colours of the scalp maps (where it is a red dot), out of the search for bad stretches and ICA, and out of the analyses and handoffs that use the saved run.

Interpolate in the result rebuilds each bad channel from the good electrodes around it with spherical splines (Perrin and others, 1989), as MNE-Python does, so the result keeps every channel.

A channel with fewer than three good neighbours, or without a known position, is left out instead of rebuilt. With more than a fifth of the channels bad, none is rebuilt.

A rebuilt channel is never part of the reference, and the saved run names the channels that were rebuilt.

Where it is kept

The last check and your decisions are kept with the recording on this device, so leaving Preprocess Signal loses nothing. Again replaces the check and keeps your decisions.

A saved preprocessing run keeps its own copy: the suggestions, each decision, the sensitivity and the version of the check.

The original file and the exports

The original recording never changes. A saved run's bad channels and suggestions are written into its Data & Processing History, its exports and its Research Handoff.

A Research Handoff of Original Raw Data keeps the channels marked bad in its data and marks them bad in metadata/channels.tsv, with why, as BIDS does: its MNE-Python loader puts them in raw.info["bads"], its EEGLAB loader in EEG.etc.eegtracelab.bad_channels.

Hide, delete, undo

Undo takes back a decision on a suggestion. A channel marked by hand is unmarked in Mark a channel.

Turning Interpolate in the result off leaves the bad channels out again.

How accurate it is

On 12 recordings of 64 channels from PhysioNet the checks were compared with pyprep, MNE-Python and EEGLAB's clean_rawdata, channel by channel. They agree on most channels; where they differ, the channel lies at a limit. clean_rawdata marks more channels with muscle noise near the temples: they sit just under the High-frequency noise limit of Standard, and Strict finds more of them.

Faults put into the same recordings on purpose, one in each of 7 clean channels of every file, are found at every sensitivity: flat, mains hum, disconnected, six times too large, clipped and bridged, 12 of 12 each. Added broadband noise is the hardest: Standard finds 11 of 12. Of the 600 channels left clean, Standard suggests one it should not.

Interpolation was compared with MNE-Python's: the rebuilt signals correlate at 0.998 or more inside the cap, and 0.98 to 0.99 at its edge. The validation page has the figures.

Limits

A check does not know why a channel looks wrong, and a channel that is bad only now and then may pass. Look at its traces before you decide.

A recording with fewer than 8 scalp channels of one rate, such as a headband, is not checked. Mark channels yourself in Mark a channel.

A long recording takes a while to check; Cancel stops it at once.

The suggestions are for research review. They are not a clinical judgement.

Recommended for

Every recording, before you save a preprocessing run and before ICA.

Start at Standard. Strict shows borderline channels to look at; Lenient suits a noisy recording in which Standard suggests too many.