Deviation maps

Authors: Pauline Amrouche, Lindsey Power, Raymundo Cassani

This tutorial introduces the implementation of the computation of deviation maps in Brainstorm. This tutorial is based on the results from five subjects of the OMEGA tutorial, as such, before proceeding, please complete the OMEGA tutorial as we will build on its results.

Introduction

Electrophysiology recordings have been used to estimate the brain activity, this is to say source estimation or source mapping. In this sense, several studies have explored the potential of electrophysiology-based source mapping to identify and describe abnormal activity patterns in patients with specific clinical phenotypes compared to healthy controls. Normative modelling has been used to define the healthy range of certain biomarkers and map individual differences at the single-subject level, a concept to which we refer as deviation maps. This approach has been applied in refractory epilepsy using scalp EEG in Janiukstyte et al., 2023 and in identifying new biomarkers for mild traumatic brain injury (mTBI) using MEG in Itälinna et al., 2023 for instance.

In this tutorial, we will create dummy deviation maps from the MEG spectral features of five subjects from the OMEGA tutorial. Four subjects will serve as the reference population, against which the fifth subject will be compared.

Pre-processing

Extract spectral features

Deviation maps can be derived from any statistic defined on a common spatial scale across subjects. For example, it is possible to extract spectral features from the power spectrum computed for each vertex of the cortical surface. These spectral features include the mean, standard deviation and coefficient of variation of the power spectra obtained across overlapping short-time windows. Note that the mean of these power spectra is by definition the power spectrum density (PSD) computed with the Welch method.

For this tutorial, we will compute the standard deviation of the power spectra from short-time windows with the process Compute PSD features. We will only use the first 100 s of the time series as it is faster and should lead to similar results. Then, we project those spectral results from each individual cortex to the common anatomy. The processing time for this step is around 6 minutes.

The process Compute PSD features returns 1 to 3 files depending on the number of features extracted. This process shares several options with the process Frequency > Power spectrum density (Welch) process described in the PSD tutorial.

Once the processing is complete, you should see the one PSD file for the extracted PSD feature for each Subject folder in the Group analysis Subject.

Deviation maps process

For each of the computed spectral files (standard deviation of power), there is a value for each vertex in the cortical surface and each frequency bin, thus the next step is to create a normative distribution from the values of the reference population (4 subjects in this example). For the one subject outside of this reference population, we calculate the z-score for the same feature relative to the normative distribution. When considering a given deviation level (d), the normative distribution is considered between the d/2​ and 1−d/2​ quantile interval of the reference distribution. For example, a deviation level of 0.05 leads to the quantiles at 2.5% and 97.5% of the reference distribution. If the feature value falls outside of those quantiles, we flag the (vertex-frequency) point as deviant. This process is repeated for every vertex and frequency, creating the frequency-defined deviation map.

Important note: When choosing the deviation level, the number of subjects in the reference population must be taken into account. In this example, the normative distribution is obtained from only four subjects, as we must exclude at least 1 subject on each side of the distribution we need a minimal deviation level of 0.5. A deviation level of 0.5 is obviously too large, but this serves as a simplified example to illustrate the process. As the size of the reference population increases, the deviation level can be reduced.

We will now compute the deviation map for subject sub-0002 compared to the reference population (all other subjects).

As result there will be a new PSD file: comp. to norm: devLevel (0.50) |  bands in the sub-0002_... folder.

devMaps_results.png

Additional documentation

Tutorials

Tutorials/DeviationMaps (last edited 2024-08-28 15:30:55 by RaymundoCassani)