Artifact cleaning with SSP
It is common to have portions of recordings contaminated by events coming from the subject (eye blinks, movements, heartbeats, teeth clenching, implanted stimulators...) or from the environment (stimulation equipment, elevators, cars, trains, building vibrations...). Some of them are well defined, reproducible and can be removed efficiently using Signal Space Projections (SSP). The purpose of this tutorial is to introduce this technique to correct for the cardiac and ocular artifacts.
For this tutorial, we are going to use the protocol created in the previous tutorial ?Review continuous recordings and edit markers. If you have not followed this tutorial yet, please do it now.
Signal Space Projection
The Signal-Space Projection (SSP) is one approach to rejection of external disturbances. Here is a short description of the method by Matti Hämäläinen, from the MNE 2.7 reference manual, section 4.16.
Unlike many other noise-cancellation approaches, SSP does not require additional reference sensors to record the disturbance fields. Instead, SSP relies on the fact that the magnetic field distributions generated by the sources in the brain have spatial distributions sufficiently different from those generated by external noise sources. Furthermore, it is implicitly assumed that the linear space spanned by the significant external noise patterns has a low dimension.
Without loss of generality we can always decompose any n-channel measurement b(t) into its signal and noise components as:
b(t) = bs(t) + bn(t)
Further, if we know that bn(t) is well characterized by a few field patterns b1...bm, we can express the disturbance as
bn(t) = Ucn(t) + e(t) ,
where the columns of U constitute an orthonormal basis for b1...bm, cn(t) is an m-component column vector, and the error term e(t) is small and does not exhibit any consistent spatial distributions over time, i.e., Ce = E{eeT} = I. Subsequently, we will call the column space of U the noise subspace. The basic idea of SSP is that we can actually find a small basis set b1...bm such that the conditions described above are satisfied. We can now construct the orthogonal complement operator
P⊥ = I - UUT
and apply it to b(t) yielding
b(t) ≈ P⊥bs(t) ,
since P⊥bn(t) = P⊥Ucn(t) ≈ 0. The projection operator P⊥ is called the signal-space projection operator and generally provides considerable rejection of noise, suppressing external disturbances by a factor of 10 or more. The effectiveness of SSP depends on two factors:
The basis set b1...bm should be able to characterize the disturbance field patterns completely and
The angles between the noise subspace space spanned by b1...bm and the signal vectors bs(t) should be as close to π/2 as possible.
If the first requirement is not satisfied, some noise will leak through because P⊥bn(t) ≠ 0. If the any of the brain signal vectors bs(t) is close to the noise subspace not only the noise but also the signal will be attenuated by the application of P⊥ and, consequently, there might by little gain in signal-to-noise ratio.
Since the signal-space projection modifies the signal vectors originating in the brain, it is necessary to apply the projection to the forward solution in the course of inverse computations.
For more information on the SSP method, please consult the following publications:
- C. D. Tesche, M. A. Uusitalo, R. J. Ilmoniemi, M. Huotilainen, M. Kajola, and O. Salonen, "Signal-space projections of MEG data characterize both distributed and well-localized neuronal sources," Electroencephalogr Clin Neurophysiol, vol. 95, pp. 189-200, 1995.
- M. A. Uusitalo and R. J. Ilmoniemi, "Signal-space projection method for separating MEG or EEG into components," Med Biol Eng Comput, vol. 35, pp. 135-40, 1997.
Identifying the artifact
The first step is to identify several repetitions of the artifact (the vectors b1...bm). We need to set markers in the recordings that indicate when the events that we want to correct for occur. To help with this task, it is recommended to always record with bipolar electrodes the activity of the eyes (electro-oculogram or EOG), the heart (electro-cardiogram or ECG), and possibly other sources of muscular contaminations (electromyogramor EMG). In this example, we are going to use the ECG and EOG traces to mark the cardiac activity and the eye blinks. Two methods can be used, manual or automatic.
EOG/ECG channels
Select the protocol TutorialRaw created in the previous tutorial, and select the "Functional data" view (second button in the toolbar on top of the database explorer).
- Double-click on the continuous recordings ("Link to raw file") to open the MEG recordings.
Set the length of the reviewed time window to 3 seconds (in the Event tab, text box "Duration")
Right-click on the continuous recordings again > Misc > Display time series.
In this file the channel type "Misc" groups the two channels EEG057 (ECG, in green) and EEG058 (EOG, in red). This configuration depends on the acqusition setup, and can be redefined afterwards in Brainstorm (right-click on the channel file > Edit channel file, and then change manually the string in the column Type for any channel).
- Use the shortcuts introduced in the previous tutorial to adjust the vertical scale of this display: Shift+mouse wheel, +/- keys, or the buttons on the right side of the figure.
Then go further in time to see what is happening on those channels over the time: use the ">>>" buttons, or the associated shortcuts (read the tooltips of the button)
- On the ECG, the green trace, you can recognize the very typical shape of the electric activity of the heart (P, QRS and T waves). This is a very good example, the signal is not always that clean.
- On the EOG, the red trace, there is not much happening for most of the recordings except for a few bumps (for example at 33.590 s), typical of eye blinks. This subject is sitting very still and is not blinking much. We can expect MEG recordings of a very good quality.
You can observe the contamination that is cause on the left-frontal sensors by an eye blink: move to 33.590s (you can use the text boxes in the time panel, the event tab, or the scrollbar in the figure), and select just a subset of sensors (Shift+B, or right-click on the figure > Display setup > CTF LF)
Manual marking
Create a new category of markers "blink_manual", using the menu Events > Add group. Select this new group.
Review the file, and mark the peaks you observe on the EOG trace, using the Ctrl+E keyboard shortcut. Do that for a few eye blinks.
Automatic detection
For the EOG and the ECG, and if the recordings are clean, it is easy to have an algorithm detecting those peaks automatically.
Calculating the projector
Then we concatenante those examples of the artifact, and we estimate an orthonormal basis U of this artifact subspace, from which when can finally calculate the projector that we will apply to the recordings.
Correction seperately EEG, MEG, and of Neuromag Vectorview systems, seperately MEG and EEG.