13339
Comment:
|
15266
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
'''[TUTORIAL UNDER DEVELOPMENT: NOT READY FOR PUBLIC USE] ''' |
|
Line 6: | Line 4: |
In this auditory oddball experiment, we would like to test for the significant differences between the brain response to the deviant beeps and the standard beeps, time sample by time sample. Until now we have been computing measures of the brain activity in time or time-frequency domain. We were able to see clear effects or slight tendencies, but these observations were always dependent on an arbitrary amplitude threshold and the configuration of the colormap. With appropriate statistical tests, we can go beyond these empirical observations and assess what are the significant effects in a more formal way. | In this auditory oddball experiment, we would like to explore what are the significant differences between the brain response to the deviant or standard beeps, time sample by time sample. To do this we will be essentially contrasting the values we obtained for both conditions, and testing if the results are significantly different from zero. |
Line 8: | Line 6: |
We are typically interested in comparing different groups of samples. We want to know what is significantly different in the brain responses between two experimental conditions or two groups of subjects. So we will be essentially computing differences, then testing if these differences are significantly different from zero. This tutorial focuses only on the first part of this problem. Computing a difference between condition A and condition B sounds trivial, but it requires some reflexion when it comes to interpreting the sign of the subtraction of two signals oscillating around zero. Many options are available, we will try to give clear directions of the use cases for each option. The statistical significance will be discussed in the next tutorial. |
This tutorial focuses only on the first part of this problem: the contrast. Computing a difference between two condition A and B sounds trivial, but it requires some reflection when it comes to interpreting the sign of the subtraction of two signals oscillating around zero. Several options are available, we will try to explain to which application cases they correspond. The statistical significance will be discussed in the next tutorial. |
Line 15: | Line 11: |
First we need to define on which signals we want to compute the difference: sensor recordings, constrained sources (one signal per grid point) or unconstrained sources (three signals per grid point). For the first two we can compare directly the signals oscillating around zero or their absolute value, for unconstrained sources we have the additional option to compare the norm of the three orientations. | First we need to define on which signals we want to compute the difference: sensor recordings, constrained sources (one signal per grid point) or unconstrained sources (three signals per grid point). For the first two we can compare the signals oscillating around zero or their absolute value, for unconstrained sources we have the additional option to use the norm of the three orientations. |
Line 17: | Line 13: |
Using the rectified signals (absolute value) gives us an idea of the amount activity in one particular brain region, but alters the frequency information and therefore cannot be used for time-frequency or connectivity analysis. Additionally, the rectified signals may not be appropriate to detect effects between different experimental conditions, as illustrated in the next section. | Using the rectified signals (absolute value) gives us an idea of the amount of activity in one particular brain region, but alters the frequency information and therefore cannot be used for time-frequency or connectivity analysis. Additionally, the rectified signals are not always appropriate to detect effects between different experimental conditions, as illustrated in the next section. |
Line 19: | Line 15: |
In general, you should not apply an absolute value (or a norm) explicitely to your data. The only application cases for rectified signals are the display of the cortical maps and the comparison of magnitudes between conditions, and both can be done on the fly. | In general, you should not apply an absolute value (or a norm) explicitly to your data. The only application cases for rectified signals are the display of the cortical maps, the comparison of magnitudes between conditions and the group analysis, and in all three cases the absolute value can be applied on the fly. |
Line 23: | Line 19: |
Now let's consider the two conditions for each available option. The examples below show the difference (deviant-standard) for one signal only, corresponding to the auditory cortex. The operator |x| represents the absolue value of x. | Now let's consider the two conditions for each available option. The examples below show the difference (deviant-standard) for one signal only, corresponding to the auditory cortex. The '''operator |x|''' represents the absolue value of x (i.e. the magnitude of x). |
Line 26: | Line 22: |
We observe some important differences between (A-B) and (|A|-|B|), in the absolute case the amplitude of the difference is not representative of the distance between the green and the red curves. In general, the sign of the signal recorded by and MEG or EEG sensor is meaningful and we need to keep it in the analysis to account for the differences between conditions.<<BR>>'''Never use an absolute value on sensor data'''. | We always observe important differences between (A-B) and (|A|-|B|). In the absolute case the amplitude of the difference is not representative of the distance between the green curve (deviant) and the red curve (standard). In general, the sign of the signal recorded by any MEG or EEG sensor is meaningful and we need to keep it in the analysis to account for the differences between conditions.<<BR>>'''Never use an absolute value on sensor data'''. |
Line 31: | Line 27: |
We also observe important differences between (A-B) and (|A|-|B|). At 175ms, we have the highest distance between the red and green curves, but it corresponds to a zero in the rectified difference. | We also observe important differences between (A-B) and (|A|-|B|). At 175ms, we reach the highest distance between the red and green curves, but it corresponds to a zero in the rectified difference. |
Line 35: | Line 31: |
'''(A-B)''' | '''(A-B)''': Correct amplitude, ambiguous sign. |
Line 37: | Line 33: |
* This measure represents better the amount of distance between the two conditions. However, its sign is ambiguous and cannot be used to claim that "A is higher than B" (A>B) or "B is stronger than A" (B>A). As illustrated in the [[http://neuroimage.usc.edu/brainstorm/Tutorials/SourceEstimation#Sign_of_constrained_minimum_norm_values|source estimation tutorial]], the sign of the current density maps depends on the orientation of the source. Therefore, depending on the orientation, (A>B) could match cases a/b/e in the table below, for which (A-B) can be either positive (a/e) or negative (b) values. <<BR>><<BR>> {{attachment:diff_sign_table.gif||height="113",width="327"}} | * This measure represents better the distance between the two conditions curves. However, its sign is ambiguous and cannot be used to claim that "the brain response is stronger in condition A than in condition B" (|A|>|B|, cases a/b/e in the table below) or "is stronger in condition B than in condition A" (|B|>|A|, cases c/d). As illustrated in the [[http://neuroimage.usc.edu/brainstorm/Tutorials/SourceEstimation#Sign_of_constrained_minimum_norm_values|source estimation tutorial]], the sign of the current density maps depends on the orientation of the source. <<BR>><<BR>> {{attachment:diff_sign_table.gif||height="113",width="327"}} |
Line 41: | Line 37: |
'''|A|-|B|''' | '''|A|-|B|''': Ambiguous amplitude, meaningful sign. |
Line 43: | Line 39: |
* This measure is insensitive to polarity so not adapted to represent the amount of difference between the two conditions, but its sign is meaningful.<<BR>>Relation (A>B) translates to cases a/b/e in the table above, for which |A|-|B| is always positive. <<BR>>Reciprocately, (B>A) translates to cases c/d, for which |A|-|B| is always negative. * The sign indicates the direction of magnitude change and avoids the ambiguity encountered in the earlier statistic (e.g. case a vs. case d) but cannot differentiate between suppression of positive and negative signals (cases a and b). This measure will also avoid the confound described above for blurring across sulcal banks but will also be less sensitive to cases in which differences in response involve differences in polarity and/or latency than the former measure (e.g. case e in the above table). |
* This measure is insensitive to polarity so not adapted to represent the distance between the two conditions, but its sign is meaningful. * The sign indicates the direction of magnitude change and avoids the ambiguity encountered in the earlier measure (case a vs case d) but cannot differentiate between suppression of positive and negative signals (cases a and b). * This measure will avoid the confound due to the ambiguity of the sign of the constrained sources, but will also be less sensitive to cases in which differences in response involve differences in polarity and/or latency than the former measure (e.g. case e in the above table). ==== Conclusion: Which one should you use? ==== * '''(A-B)''': To detect when and where the signals are different. * '''(|A|-|B|)''': When studying one particular effect, if you are interested to know which condition generates a larger response at a specific time point. It is meaningful only if you already know that A and B have the same sign. * '''(|A|^2^-|B|^2^)''': Difference of power, same properties as the difference of magnitude, but maybe more common measure than the absolue value. Many statistics exist for amplitude and power, but not for rectified signals. |
Line 47: | Line 49: |
The exact same observations apply to the unconstrained sources, using the norm of the three orientations instead of the absolute values. Considering that X and Y are the source vectors with three components each (x,y,z) for conditions A and B. | The exact same observations apply to the unconstrained sources, using the norm of the three orientations instead of the absolute values. X and Y represent the source vectors with three components each (x,y,z) for conditions A and B. |
Line 49: | Line 51: |
'''Norm(X-Y)''': This statistic will detect vector differences between the two signals which can occur if the magnitude and/or orientation changes. It differs from (Norm(X)-Norm(Y)) in being sensitive to changes in apparent source orientation, but cannot differentiate increases from decreases in amplitude. | '''Norm(X-Y)''': This measure will detect vector differences between the two signals which can occur if the magnitude and/or orientation changes. It differs from (Norm(X)-Norm(Y)) in being sensitive to changes in apparent source orientation, but cannot differentiate increases from decreases in amplitude. |
Line 51: | Line 53: |
'''Norm(X)-Norm(Y)''': This is the unconstrained equivalent to |A|-|B|, i.e. it will produce a signed value that reflects increases or decreases in magnitude from A to B and should be interpreted similarly. Unlike Norm(X-Y) it is not sensitive to rotation of the source from A to B unless there is an accompanying amplitude change. But on the other hand, because the statistic is signed, we can differentiate between increases and decreases in amplitude. | '''Norm(X)-Norm(Y)''': This is the unconstrained equivalent to |A|-|B|, i.e. it will produce a signed value that reflects increases or decreases in magnitude from A to B and should be interpreted similarly. Unlike Norm(X-Y) it is not sensitive to rotation of the source from A to B unless there is an accompanying amplitude change. But on the other hand, because the value is signed, we can differentiate between increases and decreases in amplitude. |
Line 56: | Line 58: |
The examples above only show minimum norm current density maps that haven't been normalized. But the exact same conclusions can be applied to normalized source values, as long as you do not rectify the signals during the computation the normalization. | The examples above only show minimum norm current density maps that haven't been normalized. The same logic applies to normalized source values, as long as you do not rectify the signals during the computation of the normalization. |
Line 58: | Line 60: |
As a reminder, you should normalize the source maps if you are intending to compare different subjects, it will help bringing them to the same range of values. The list below shows the valid operations for the Zscore normalization, but the same is applicable for dSPM, sLORETA and MNp. | As a reminder, you should normalize the source maps if you are intending to compare different subjects, it will help bringing them to the same range of values. The list below shows the valid operations for the Z-score normalization, but the same is applicable for dSPM, sLORETA and MNp. |
Line 70: | Line 72: |
Always avoid using the following measures, for any reason (display, differences or statistics): | Always avoid using the following measures: |
Line 76: | Line 78: |
Before running complicated statistical tests that will take hours of computation, you can start by checking what the difference of the average responses looks like. If in this difference you observe obvious effects that are clearly not what you are expecting, it's not worth moving forward with finer analysis: either the data is not clean enough or your initial hypothesis is wrong. | Before running complicated statistical tests that will take hours of computation, you can start by checking what the difference of the average responses looks like. If in this difference you cannot observe the effects you are expecting, it's not worth moving forward with finer analysis: the recordings are not clean enough, you don't have enough data or your initial hypothesis is wrong. |
Line 83: | Line 85: |
* Run the process "'''Difference > Difference A-B'''".<<BR>>Select the option "'''Use absolute values'''", which will convert the unconstrained source maps (three dipoles at each cortex location) into a flat cortical map by taking the norm of the three dipole orientations before computing the difference.<<BR>><<BR>> {{attachment:diff_process_abs.gif||height="331",width="493"}} | * Run the process "'''Difference > Difference A-B'''", select the option "'''Use absolute values'''". <<BR>>Do run the computation now, we will add more steps.<<BR>><<BR>> {{attachment:diff_process_abs.gif||height="350",width="497"}} |
Line 85: | Line 87: |
* Rename the new file in "'''deviant|norm - standard|norm'''", double-click on it and explore it in time. This is a flat cortex map (only 15000 values), with positive and negative values. It should be displayed using a colormap that shows relative values (right-click > Colormap > Uncheck the option "Absolute values"). <<BR>><<BR>> {{attachment:diff_contact_abs.gif}} * We are looking at the rectified difference (norm(deviant)-norm(standard)) so positive/red regions indicate higher activity levels for the deviant beeps, and negative/blue regions higher activity for the standard beeps. |
* Add process: "'''File > Set comment'''", New comment = "'''deviant|abs - standard|abs'''" * Add process: "'''Standardize > Baseline normalization'''", Baseline='''[-100,-1.7]ms''', Method='''Z-score''' * Add process: "'''Pre-process > Band-pass filter'''", Low-pass: '''0-40Hz''', Mirror, '''Overwrite'''<<BR>><<BR>>{{attachment:diff_abs_comment.gif}} {{attachment:diff_abs_zscore.gif}} {{attachment:diff_abs_lowpass.gif}} * Rename the new file in , double-click on it and explore it in time. This is a cortex map, with positive and negative values. It should be displayed using a colormap that shows relative values (right-click > Colormap > Uncheck the option "Absolute values"). <<BR>><<BR>> {{attachment:diff_contact_abs.gif}} * We are looking at the rectified difference (abs(deviant)-abs(standard)) so positive/red regions indicate higher activity levels for the deviant beeps, and negative/blue regions higher activity for the standard beeps. |
Line 88: | Line 96: |
* '''P50''': Maybe a stronger response in the primary auditory cortex for the standard condition. * '''MMN '''(125ms): Stronger response for the deviant (left temporal, inferior frontal). |
* '''MMN '''(125ms): Stronger response for the deviant (left temporal, left inferior frontal). |
Line 92: | Line 99: |
* '''After 200ms''': Stronger response in the deviant condition. * Plot the time series for scout A1 (relative and absolute values).<<BR>><<BR>>{{attachment:diff_scout_abs.gif}} |
* '''After 200ms''': Stronger response in the deviant condition (motor preparation and movement). * Plot the time series for scout A1 (relative and absolute values).<<BR>>The relevant information here is the sign of the difference (option Values:Relative).<<BR>><<BR>> {{attachment:diff_scout_abs.gif||height="144",width="602"}} |
Line 97: | Line 104: |
* Rename the new file in "'''deviant - standard'''", double-click on it and explore it in time. This file still has the three values for each vertex of the cortex. The values for each point and each orientation can be positive or negative, but only the norm of the three orientation is displayed on the cortex. You will only see positive values in this figure, therefore it is better to configure the colormap accordingly (right-click > Colormap > Check the option "Absolute values"). <<BR>><<BR>>{{attachment:diff_contact_rel.gif}} * We can see with much more constrast the areas and times where the two conditions are different, but we lose the capacity to say which one is stronger. This is not a very helpful display by itself, but it is the measure we will use in most cases when computing statistical tests between conditions. * Plot the time series for scout A1 (relative values and norm).<<BR>><<BR>>{{attachment:diff_scout_rel.gif}} |
* Rename the new file in "'''deviant - standard'''", double-click on it and explore it in time. This file still has the three values for each vertex of the cortex surface. The values for each point and each orientation can be positive or negative, but only the norm of the three orientation can be displayed on the cortex. You will only see positive values in this figure, therefore it is better to configure the colormap accordingly (right-click > Colormap > Check the option "Absolute values"). <<BR>><<BR>> {{attachment:diff_contact_rel.gif||height="287",width="613"}} * We can see with much more contrast the areas and times where the two conditions are different, but we lose the ability to say which one is stronger. This is not a very helpful display by itself, but it is the measure we will use in most cases when computing statistical tests between conditions. * Plot the time series for scout A1 (relative values and norm). <<BR>>The relevant information here is the norm of the three orientations (option Values:Absolute).<<BR>><<BR>> {{attachment:diff_scout_rel.gif||height="140",width="600"}} |
Line 104: | Line 111: |
* In Process2, select all the '''deviant trials''' (Files A) and all the '''standard trials''' (Files B). * Run the process "'''Test > Difference of means'''", select the option "'''Arithmetic average'''". <<BR>><<BR>> {{attachment:diff_mean_process.gif||height="341",width="419"}} * Rename the new file in "Deviant-Standard", double-click on it to display it. The difference deviant-standard does not show anymore the early responses (P50, P100) but emphasizes the difference in the later process (MMN/P200 and P300). <<BR>><<BR>> {{attachment:diff_mean_ts.gif||height="164",width="608"}} |
* In Process2, select the following files:<<BR>>Files A: all the '''deviant trials''' from both runs (78 files)<<BR>>Files B: '''all the standard trials''' from each run (384 files). * Select the process "'''File > Uniform number of files'''", with the default number of files and the option "Uniform". This will select the same number of files from FilesA and FilesB. The list with the larger number of files (FilesB) is sampled uniformly to get the same number of files on both sides.<<BR>><<BR>> {{attachment:select2_process.gif||height="427",width="440"}} * Add the process "'''Test > Difference of means'''", select the option "'''Arithmetic average'''". <<BR>>The option "weighted average" has no importance because we are averaging only single trials.<<BR>><<BR>> {{attachment:diff_mean_process.gif||height="286",width="306"}} * Run the pipeline. Rename the new file in "deviant - standard", double-click on it to display it. The difference does not show anymore the early responses (P50, P100) which are similar for the two conditions, but emphasizes the difference in the later process (MMN/P200 and P300). <<BR>><<BR>> {{attachment:diff_mean_ts.gif||height="167",width="668"}} <<BR>>'''Left''': Average of 80 deviant trials.<<BR>>'''Center''': Average of 80 standard trials.<<BR>>'''Right''': Difference of the two, computed in this process. |
Line 109: | Line 117: |
In the case of time-frequency maps, there is no sign ambiguity. | In the case of time-frequency maps there is no sign ambiguity of the values, so computing a difference is slightly simpler. There are two possible cases: difference between power maps or between normalized maps (Z-score or ERS/ERD). '''Original time-frequency maps''' * The power of the TF maps are only positive values, so you can simply compute the difference between the power maps, it will give you all the interesting information. * Use the difference of the power: power(TF(A)) - power(TF(B)) * This is what you would use for the statistics within a subject. '''Normalized time-frequency maps''' (Z-score or ERS/ERD) * The values represent deviations with respect with a baseline, they can be positive or negative. Therefore we are in the same configuration as with the sensor data. * Use the difference of the normalized values: Zscore(power(TF(A))) - Zscore(power(TF(B))) * This could be used for comparing visually two averages, or for statistics across subjects. |
Tutorial 25: Difference
Authors: Francois Tadel, Elizabeth Bock, Dimitrios Pantazis, Richard Leahy, Sylvain Baillet
In this auditory oddball experiment, we would like to explore what are the significant differences between the brain response to the deviant or standard beeps, time sample by time sample. To do this we will be essentially contrasting the values we obtained for both conditions, and testing if the results are significantly different from zero.
This tutorial focuses only on the first part of this problem: the contrast. Computing a difference between two condition A and B sounds trivial, but it requires some reflection when it comes to interpreting the sign of the subtraction of two signals oscillating around zero. Several options are available, we will try to explain to which application cases they correspond. The statistical significance will be discussed in the next tutorial.
Contents
Sign of the signals
First we need to define on which signals we want to compute the difference: sensor recordings, constrained sources (one signal per grid point) or unconstrained sources (three signals per grid point). For the first two we can compare the signals oscillating around zero or their absolute value, for unconstrained sources we have the additional option to use the norm of the three orientations.
Using the rectified signals (absolute value) gives us an idea of the amount of activity in one particular brain region, but alters the frequency information and therefore cannot be used for time-frequency or connectivity analysis. Additionally, the rectified signals are not always appropriate to detect effects between different experimental conditions, as illustrated in the next section.
In general, you should not apply an absolute value (or a norm) explicitly to your data. The only application cases for rectified signals are the display of the cortical maps, the comparison of magnitudes between conditions and the group analysis, and in all three cases the absolute value can be applied on the fly.
Now let's consider the two conditions for each available option. The examples below show the difference (deviant-standard) for one signal only, corresponding to the auditory cortex. The operator |x| represents the absolue value of x (i.e. the magnitude of x).
MEG/EEG sensor
We always observe important differences between (A-B) and (|A|-|B|). In the absolute case the amplitude of the difference is not representative of the distance between the green curve (deviant) and the red curve (standard). In general, the sign of the signal recorded by any MEG or EEG sensor is meaningful and we need to keep it in the analysis to account for the differences between conditions.
Never use an absolute value on sensor data.
Constrained sources
We also observe important differences between (A-B) and (|A|-|B|). At 175ms, we reach the highest distance between the red and green curves, but it corresponds to a zero in the rectified difference.
(A-B): Correct amplitude, ambiguous sign.
This measure represents better the distance between the two conditions curves. However, its sign is ambiguous and cannot be used to claim that "the brain response is stronger in condition A than in condition B" (|A|>|B|, cases a/b/e in the table below) or "is stronger in condition B than in condition A" (|B|>|A|, cases c/d). As illustrated in the source estimation tutorial, the sign of the current density maps depends on the orientation of the source.
This is an appropriate measure to use when the polarity of the signal is important to you, for example when suppression of a negative peak (A-B<0) would be viewed differently than suppression of a positive peak (A-B>0) or a polarity change (sign(A) different from sign(B)).
- Suppression of positive signals from A to B (case a) produces the same value as an increase in the negative signal from A to B (case d). Similarly cases b and c will produce the same value. For this reason interpretation of the results requires that you also examine the actual polarities of the two signals at locations in time and space where significant effects are detected.
|A|-|B|: Ambiguous amplitude, meaningful sign.
- This measure is insensitive to polarity so not adapted to represent the distance between the two conditions, but its sign is meaningful.
- The sign indicates the direction of magnitude change and avoids the ambiguity encountered in the earlier measure (case a vs case d) but cannot differentiate between suppression of positive and negative signals (cases a and b).
- This measure will avoid the confound due to the ambiguity of the sign of the constrained sources, but will also be less sensitive to cases in which differences in response involve differences in polarity and/or latency than the former measure (e.g. case e in the above table).
Conclusion: Which one should you use?
(A-B): To detect when and where the signals are different.
(|A|-|B|): When studying one particular effect, if you are interested to know which condition generates a larger response at a specific time point. It is meaningful only if you already know that A and B have the same sign.
(|A|2-|B|2): Difference of power, same properties as the difference of magnitude, but maybe more common measure than the absolue value. Many statistics exist for amplitude and power, but not for rectified signals.
Unconstrained sources
The exact same observations apply to the unconstrained sources, using the norm of the three orientations instead of the absolute values. X and Y represent the source vectors with three components each (x,y,z) for conditions A and B.
Norm(X-Y): This measure will detect vector differences between the two signals which can occur if the magnitude and/or orientation changes. It differs from (Norm(X)-Norm(Y)) in being sensitive to changes in apparent source orientation, but cannot differentiate increases from decreases in amplitude.
Norm(X)-Norm(Y): This is the unconstrained equivalent to |A|-|B|, i.e. it will produce a signed value that reflects increases or decreases in magnitude from A to B and should be interpreted similarly. Unlike Norm(X-Y) it is not sensitive to rotation of the source from A to B unless there is an accompanying amplitude change. But on the other hand, because the value is signed, we can differentiate between increases and decreases in amplitude.
Source normalization
The examples above only show minimum norm current density maps that haven't been normalized. The same logic applies to normalized source values, as long as you do not rectify the signals during the computation of the normalization.
As a reminder, you should normalize the source maps if you are intending to compare different subjects, it will help bringing them to the same range of values. The list below shows the valid operations for the Z-score normalization, but the same is applicable for dSPM, sLORETA and MNp.
Constrained sources:
Zscore(A) - Zscore(B): Correct amplitude, ambiguous sign.
abs(Zscore(A)) - abs(Zscore(B)): Ambiguous amplitude, meaningful sign.
Unconstrained sources:
norm(Zscore(A) - Zscore(B)): Correct amplitude, no sign.
norm(Zscore(A)) - norm(Zscore(B)): Ambiguous amplitude, meaningful sign.
Always avoid using the following measures:
- Z-score(abs(sources))
- Z-score(norm(sources))
Difference deviant-standard
Before running complicated statistical tests that will take hours of computation, you can start by checking what the difference of the average responses looks like. If in this difference you cannot observe the effects you are expecting, it's not worth moving forward with finer analysis: the recordings are not clean enough, you don't have enough data or your initial hypothesis is wrong.
Absolute difference: |A|-|B|
We are going to use the Process2 tab, at the bottom of the Brainstorm figure. It works exactly like the Process1 tab but with two lists of input files, referred to as FilesA (left) and FilesB (right).
In Process2, drag and drop the non-normalized deviant average on the left (FilesA) and the non-normalized standard average on the right (FilesB).
Run the process "Difference > Difference A-B", select the option "Use absolute values".
Do run the computation now, we will add more steps.
Add process: "File > Set comment", New comment = "deviant|abs - standard|abs"
Add process: "Standardize > Baseline normalization", Baseline=[-100,-1.7]ms, Method=Z-score
Add process: "Pre-process > Band-pass filter", Low-pass: 0-40Hz, Mirror, Overwrite
Rename the new file in , double-click on it and explore it in time. This is a cortex map, with positive and negative values. It should be displayed using a colormap that shows relative values (right-click > Colormap > Uncheck the option "Absolute values").
- We are looking at the rectified difference (abs(deviant)-abs(standard)) so positive/red regions indicate higher activity levels for the deviant beeps, and negative/blue regions higher activity for the standard beeps.
Before 50ms: The motor activity in the deviant is probably due to the previous stims.
MMN (125ms): Stronger response for the deviant (left temporal, left inferior frontal).
150ms: Stronger response in the auditory system for the standard condition.
175ms: Stronger response in the motor regions for the standard condition (motor inihibition).
After 200ms: Stronger response in the deviant condition (motor preparation and movement).
Plot the time series for scout A1 (relative and absolute values).
The relevant information here is the sign of the difference (option Values:Relative).
Relative difference: (A-B)
Run again the process "Difference > Difference A-B".
This time, do not select the option "Use absolute values", it will compute the difference separately for each orientation.
Rename the new file in "deviant - standard", double-click on it and explore it in time. This file still has the three values for each vertex of the cortex surface. The values for each point and each orientation can be positive or negative, but only the norm of the three orientation can be displayed on the cortex. You will only see positive values in this figure, therefore it is better to configure the colormap accordingly (right-click > Colormap > Check the option "Absolute values").
- We can see with much more contrast the areas and times where the two conditions are different, but we lose the ability to say which one is stronger. This is not a very helpful display by itself, but it is the measure we will use in most cases when computing statistical tests between conditions.
Plot the time series for scout A1 (relative values and norm).
The relevant information here is the norm of the three orientations (option Values:Absolute).
Difference of means
Another process can compute the average and the difference at the same time. We are going to compute the difference of all the trials from both runs at the sensor level. This is usually not recommended because the subject might have moved between the runs. Averaging the recordings across runs is not accurate but can give a good first approximation, in order to make sure we are on the right tracks.
In Process2, select the following files:
Files A: all the deviant trials from both runs (78 files)
Files B: all the standard trials from each run (384 files).Select the process "File > Uniform number of files", with the default number of files and the option "Uniform". This will select the same number of files from FilesA and FilesB. The list with the larger number of files (FilesB) is sampled uniformly to get the same number of files on both sides.
Add the process "Test > Difference of means", select the option "Arithmetic average".
The option "weighted average" has no importance because we are averaging only single trials.
Run the pipeline. Rename the new file in "deviant - standard", double-click on it to display it. The difference does not show anymore the early responses (P50, P100) which are similar for the two conditions, but emphasizes the difference in the later process (MMN/P200 and P300).
Left: Average of 80 deviant trials.
Center: Average of 80 standard trials.
Right: Difference of the two, computed in this process.
Time-frequency
In the case of time-frequency maps there is no sign ambiguity of the values, so computing a difference is slightly simpler. There are two possible cases: difference between power maps or between normalized maps (Z-score or ERS/ERD).
Original time-frequency maps
- The power of the TF maps are only positive values, so you can simply compute the difference between the power maps, it will give you all the interesting information.
- Use the difference of the power: power(TF(A)) - power(TF(B))
- This is what you would use for the statistics within a subject.
Normalized time-frequency maps (Z-score or ERS/ERD)
- The values represent deviations with respect with a baseline, they can be positive or negative. Therefore we are in the same configuration as with the sensor data.
- Use the difference of the normalized values: Zscore(power(TF(A))) - Zscore(power(TF(B)))
- This could be used for comparing visually two averages, or for statistics across subjects.