Clean a Recording: Bad Channels, ICA, Then Use the Result

New in 1.2
Topic | 3 min read

What it is

Preprocess Signal makes a cleaned copy of a recording as a saved preprocessing run; the recording itself never changes. This page is the order to do it in and what each choice does. Each step has an article of its own, under Related.

Steps

Picture of the whole cleaning flow of Preprocess Signal, from the bad channels to the saved run, with sample data.
  1. Open the recording and choose Preprocess Signal, from the Viewer's toolbar or the recording's page.
  2. Bad Channels: click Suggest Bad Channels, read why each channel is suggested, then Mark Bad or Keep. Mark a channel adds one the check missed. Leave Interpolate in the result off unless your analyses need every channel.
  3. Filters and reference: under Detrend and filters, set a detrend, the high-pass or the line-noise notch (50 or 60 Hz) if your analyses need them, then the reference. Keep current reference is the default.
  4. ICA, step 1: Find Bad Stretches leaves seconds of movement out of the fit. Add them to Excluded Windows only if the analyses should skip them too.
  5. ICA, step 2: Run ICA. A longer recording separates more: 64 channels want about 8 minutes.
  6. ICA, step 3: read the components, as a List or a Grid. The suggested ones are ticked; untick any you want to keep. Brain components are not ticked.
  7. Click Apply ICA and Save, or Save Preprocessing Run without ICA. The run is saved with every step, decision and component in its Data & Processing History.
  8. Use the run: Open in Tab to read it beside the original (Show Original draws what ICA took out), Export BDF+… for a cleaned 24-bit file, Use in Analysis for any module, or a Research Handoff for MNE-Python and EEGLAB.

Choices and what they change

Sensitivity (Standard, Lenient, Strict) sets the limits of the bad-channel checks and of the bad stretches together.

A channel marked bad is left out of the reference, the maps, ICA and the analyses of the run. With Interpolate on it is rebuilt from the channels around it after ICA, so it carries none of the components taken out.

Bad stretches are left out of the ICA fit only; Add to Excluded Windows leaves them out of the analyses as well.

Each ticked component is taken out of every good channel; each unticked one stays.

Line-noise notch takes 50 or 60 Hz out of every channel of the run, forward and backward so nothing moves in time. ICA is fitted on its own copy of the recording, so it may still list a Line noise component: ticked or not, the notch takes the line out.

With Keep current reference the cleaned channels stay in the average reference ICA used; another reference is applied after ICA.

Where it is kept

The check, your decisions, the stretches and the last fit are kept with the recording on this device, so you can leave and come back. The saved run keeps its own copy.

Limits

Every suggestion is a rule of thumb for research review. Look at the traces before you decide; nothing is a clinical judgement.

A short recording gives fewer ICA components; a recording with fewer than 8 good scalp channels cannot be checked or decomposed.

Recommended for

Any recording you will analyse: at least the bad channels. Add ICA for blinks, eye movements, heartbeats or muscle tension.

Clean a Recording: Bad Channels, ICA, Then Use the Result

New in 1.2
Topic | 3 min read

The whole flow of Preprocess Signal, in order: mark the bad channels, leave out the bad stretches, take out the artifact components with ICA, save, then look at, export or analyse the cleaned signal.

Before you start

Preprocess works on a copy. The recording you imported never changes, and you can go back to Original Raw Data at any time.

Each step has an article of its own, under Related.

The steps

  1. Open the recording and tap Preprocess. The five steps are Window, Bad Channels, Filters, ICA and Save: tap one at the top, or go through them with Back and Next.
  2. In Bad Channels, tap Suggest Bad Channels, read why each channel is suggested, then mark it Bad or Keep. Mark a channel, under Mark by hand, adds one the check missed. Leave Interpolate in the result off unless your analyses need every channel.
  3. In Filters, set a detrend, the high-pass or the line-noise notch (50 or 60 Hz) if your analyses need them, then the reference. As Recorded is the default.
  4. In ICA, Find looks for bad stretches, the seconds of movement, and leaves them out of the fit. Add to Excluded Windows, before Run ICA, only if the analyses should skip them too.
  5. Then tap Run ICA. A longer recording separates more: 64 channels want about 8 minutes.
  6. Read the components, as a Grid or a List. The suggested ones are ticked; untick any you want to keep. Brain components are not ticked.
  7. In Save, tap Apply ICA and Save, or Save Preprocessing Run without ICA. The run appears in Workspace › Preprocessing Runs and in Start Analysis as a data source, with every step, decision and component in its Data & Processing History.

Use the result

Picture of a saved preprocessing run and what can be done with it, with sample data.
  1. Saved: the run's name and what it removed. The recording itself does not change.
  2. Export Cleaned Signal writes it as EDF+ or BDF+.
  3. Add to Research Handoff packs it for MNE or EEGLAB.
  4. Open Cleaned Signal shows it in the Viewer.
  5. Use in Analysis opens Start Analysis with this run as the data source.

Export Report writes the run's report as CSV, JSON or PNG.

The saved runs are kept in Workspace › Preprocessing Runs: tap one to open its cleaned signal, or touch and hold it for Use in Analysis, Export Cleaned Signal…, Export Report, Rename, Duplicate and Delete….

The cleaned signal in the Viewer

Picture of the cleaned signal in the Viewer, with sample data.
  1. The recording's name says cleaned.
  2. The bar says what was removed.
  3. Show Original draws the signal before ICA in grey under each row, so what ICA took out stands out.

Choices and what they change

Sensitivity (Standard, Lenient, Strict) sets the limits of the bad-channel checks and of the bad stretches together.

A channel marked bad is left out of the reference, the maps, ICA and the analyses of the run. With Interpolate on it is rebuilt from the channels around it after ICA, so it carries none of the components taken out.

Bad stretches are left out of the ICA fit only; Add to Excluded Windows leaves them out of the analyses as well.

Each ticked component is taken out of every good channel; each unticked one stays.

Line-noise notch takes 50 or 60 Hz out of every channel of the run, forward and backward so nothing moves in time. ICA is fitted on its own copy of the recording, so it may still list a Line noise component: ticked or not, the notch takes the line out.

With As Recorded the cleaned channels stay in the average reference ICA used; another reference is applied after ICA.

Where it is kept

The check, your decisions, the stretches and the last fit are kept with the recording on this device, so you can leave and come back. The saved run keeps its own copy.

Limits

Every suggestion is a rule of thumb for research review. Look at the traces before you decide; nothing is a clinical judgement.

A short recording gives fewer ICA components; a recording with fewer than 8 good scalp channels cannot be checked or decomposed.

Recommended for

Any recording you will analyse: at least the bad channels. Add ICA for blinks, eye movements, heartbeats or muscle tension.