ICA¶
Independent Component Analysis (ICA) splits a recording into independent components: signals that are as independent from one another as possible, each with its own map over the head (or over the sensors). Artefacts such as eye blinks, eye movements, heartbeat, muscle activity or line noise are often concentrated in one or two components. You recognize them by their map and by their time course, you reject them, and the signals are rebuilt without them.
AnyWave computes the ICA with the infomax algorithm, shows the components in a signal view under your signals, and lets you reject them one by one.
The steps¶
- Compute the ICA: choose the channels, the filters and the number of components. It takes a few seconds for a standard EEG (one second for the example of these pages), and the result is written next to your recording.
- Look at the components: when the computation is over AnyWave loads the components by itself. They appear as traces with a map, in a view of their own and in the ICA Components window.
- Reject the artefact components, and undo if you change your mind.
- Come back later: the result is a file. Load it again the next time you open the recording, or load an ICA computed elsewhere.
Note
The figures of these pages use a synthetic EEG made for this documentation: 19 channels with blinks, eye movements, occipital alpha, muscle bursts and spike-and-wave trains.
Where the commands are¶
The ICA menu has three entries.

| Entry | What it does |
|---|---|
| Load ICA components | Asks for an ICA file (.mat) and loads its components, see ICA files. The ICA button of the toolbar does the same. |
| Review components maps | Opens the ICA Components window, see Look at the components. When no components are loaded yet, it first asks for an ICA file to load. |
| Compute ICA | Opens the settings of the computation, see Compute the ICA. A file must be open. |
What you need¶
- A recording with at least two channels of the same type. The ICA is computed on one type at a time: EEG, MEG, SEEG or EMG.
- Enough data. As a rule of thumb the recording should contain at least about 30 samples times the square of the number of components: with 19 components and a sampling rate of 250 Hz that is 43 seconds. AnyWave writes a warning in the log of the process when it is not the case.
- Data without large one-time artefacts (an electrode that pops, a movement): keep them out of the computation with the avoid list.
Other ways to use the ICA¶
- From a script or a batch: run the ICA from the command line.
- From your own MATLAB or Python plugin: reject components with the
ica(MATLAB) orica_command(Python) command. - In a BIDS database, the ICA results of a recording appear in the BIDS panel and can be loaded from there, see ICA files.