Difference between revisions of "BESA Research Spectral Analysis"

From BESA® Wiki
Jump to: navigation, search
 
(28 intermediate revisions by 5 users not shown)
Line 1: Line 1:
== <span style="color:#3366ff;"><span style="color:#00000a;">Spectral Analysis</span></span> ==
+
{{BESAInfobox
 +
|title = Module information
 +
|module = BESA Research Basic or higher
 +
|version = BESA Research 6.1 or higher
 +
}}
 +
 
 +
=Spectral Analysis - Introduction ==
  
 
There are two different types of spectral analysis in BESA Research:
 
There are two different types of spectral analysis in BESA Research:
  
1. A Fast Fourier Transform (FFT) computes the total spectral content of a certain data interval, usually a few seconds or minutes long. This interval can be
+
# A '''Fast Fourier Transform (FFT)''' computes the total spectral content of a certain data interval, usually a few seconds or minutes long. This interval can be
 +
#* a short data block of interest, typically a few seconds
 +
#* an extended time range, e.g. between two markers or the whole data file ('mean FFT')
 +
# '''Density spectral arrays (DSA)''' provide an overview of the temporal evolution of spectral activity over longer epochs (here: 15, 20 or 30 minutes) or the whole data file. DSA is useful for reviewing long recordings, since epochs where changes of frequency distribution or amplitudes occur can be identified at a glance.
  
* a short data block of interest, typically a few seconds
+
== FFT ==
* an extended time range, e.g. between two markers or the whole data file ('mean FFT')
+
  
2. Density spectral arrays (DSA) provide an overview of the temporal evolution of spectral activity over longer epochs (here: 15, 20 or 30 minutes) or the whole data file. DSA is useful for reviewing long recordings, since epochs where changes of frequency distribution or amplitudes occur can be identified at a glance.
+
The Fast Fourier Transformation (FFT) can be applied to a marked region, the data displayed on the screen, over a larger time range in the data between two markers, over marked epochs, or the whole EEG, in order to examine the frequency content of a signal. Results of the FFT can be viewed in a variety of ways, including amplitude and power spectra, amplitude and power in frequency bands, and these results may be printed or written to data files in ASCII format. The previously calculated FFT spectrum may be redisplayed. The current FFT can be saved to a binary file and reloaded. Topographic maps of amplitude, power, and phase can be plotted.
  
  
=== FFT ===
+
'''FFT Computation and Display'''
 
+
The Fast Fourier Transformation (FFT) can be applied to a marked region, the data displayed on the screen, over a larger time range in the data between two markers, over marked epochs, or the whole EEG, in order to examine the frequency content of a signal. Results of the FFT can be viewed in a variety of ways, including amplitude and power spectra, amplitude and power in frequency bands, and these results may be printed or written to data files in ASCII format. The previously calculated FFT spectrum may be redisplayed. The current FFT can be saved to a binary file and reloaded. Topographic maps of amplitude, power, and phase can be plotted.
+
 
+
==== FFT Computation and Display ====
+
  
 
Two FFT computations are available in BESA Research:
 
Two FFT computations are available in BESA Research:
  
* The FFT over a short data block of interest
+
* [[#FFT over a short data block of interest | The FFT over a short data block of interest]]
* The Mean FFT over an extended time range
+
* [[#Mean FFT Spectrum over an extended time range | The Mean FFT over an extended time range]]
  
  
'''FFT over a short data block of interest'''
+
=== FFT over a short data block of interest ===
  
 
To start an FFT calculation, highlight a data block by left mouse click and drag. If no block is highlighted, the FFT will be performed over the time range shown on the display. Apply one of the following:
 
To start an FFT calculation, highlight a data block by left mouse click and drag. If no block is highlighted, the FFT will be performed over the time range shown on the display. Apply one of the following:
  
 
# Right-click into the marked block and select the item ''FFT''.
 
# Right-click into the marked block and select the item ''FFT''.
# Type the HotKey <span style="color:#3366ff;">''''F''''</span>.
+
# Type the HotKey <span style="color:#3366ff;">'''F'''</span>.
# Select the item ''FFT-Spectrum'' in the <span style="color:#3366ff;">'''Process '''</span>menu (<span style="color:#3366ff;">'''Alt+P F'''</span>).
+
# Select the item ''FFT-Spectrum'' in the <span style="color:#3366ff;">'''Process'''</span> menu (<span style="color:#3366ff;">'''Alt+P, F'''</span>).
  
  
 +
[[Image:Spectral (2).gif ]] &nbsp;&nbsp;&nbsp;&nbsp; [[Image:Spectral (1).gif ]]
  
[[Image:Spectral (2).gif ]]
 
  
[[Image:Spectral (1).gif ]]
+
'''Note:''' It is not possible to select the FFT process if the region to be processed contains less than 128 samples. This can occur, for instance, if the time range of a highlighted region is too short.
  
 +
'''Note''': When an FFT is selected, BESA Research displays the results for the current montage on the screen. In the background, the program also performs the FFT on 81 standard interpolated, average referenced channels in the case of EEG and on the average referenced data in the case of MEG. When FFT results are saved to a file, you have the choice of saving either the current montage or the 81 interpolated, average referenced channels (only for EEG). Maps of the FFT results are always based on the average referenced data. This is necessary to ensure that electrodes are given equal weights in the nonlinear transformation to power or amplitude (= root of power).
  
<div style="color:#00000a;"></div>
+
For an FFT over a marked block or the whole screen, no parameters have to be specified. Internally, BESA Research preprocesses the selected data segment for the FFT in two steps:
  
<div style="color:#00000a;"></div>
+
# A window function is multiplied with the data to attenuate the amplitudes at the ends to zero
 +
# The number of samples is increased by interpolation (if necessary) to make it a power of 2.
  
<div style="color:#00000a;"></div>
+
This preprocessing of a highlighted data segment is illustrated in the figure below:
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">'''Note:'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> It is not possible to select the FFT process if the region to be processed contains less than 128 samples. This can occur, for instance, if the time range of a highlighted region is too short.</span></span>
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">'''Note'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">: When an FFT is selected, BESA Research displays the results for the current montage on the screen. In the background, the program also performs the FFT on 81 standard interpolated, average referenced channels in the case of EEG and on the average referenced data in the case of MEG. When FFT results are saved to a file, you have the choice of saving either the current montage, or the 81 interpolated, average referenced channels (only for EEG). Maps of the FFT results are always based on the average referenced data. This is necessary to ensure that electrodes are given equal weights in the nonlinear transformation to power or amplitude (=root of power).</span></span>
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">For an FFT over a marked block or the whole screen, no parameters have to be specified. Internally, BESA Research preprocesses the selected data segment for the FFT in two steps:</span></span>
+
 
+
# <span style="color:#3366ff;"><span style="color:#00000a;">A window function is multiplied with the data to attenuate the amplitudes at the ends to zero</span></span>
+
# <span style="color:#3366ff;"><span style="color:#00000a;">The number of samples is increased by interpolation (if necessary) to make it a power of 2.</span></span>
+
 
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">This preprocessing of a highlighted data segment is illustrated in the figure below:</span></span>
+
 
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
  
 
[[Image:Spectral (3).gif ]]
 
[[Image:Spectral (3).gif ]]
  
 +
The highlighted block constitutes 80% of a window of width 100%. A cosine squared (cos²) window of width 20% of the total is applied at the edges, so that the signal amplitude is attenuated to 50% at the edges of the marked block, and zero at the edges of the window. Then we take the number of time samples in the window and select the next higher power of 2 (up to 2^15 = 32768). Using spline interpolation, the data in the window are converted to this larger number of points, and the FFT is applied. If the number of points is greater than 32768, spline interpolation is used to reduce the number to 32768. In this case, to avoid aliasing, the data are low-pass filtered at a frequency corresponding to ¼ of the new sampling rate.
  
<span style="color:#3366ff;"><span style="color:#00000a;">The highlighted block constitutes 80% of a window of width 100%. A cosine squared (cos²) window of width 20% of the total is applied at the edges, so that the signal amplitude is attenuated to 50% at the edges of the marked block, and zero at the edges of the window. Then we take the number of time samples in the window, and select the next higher power of 2 (up to 8196). Using spline interpolation, the data in the window are converted to this larger number of points, and the FFT is applied. If the number of points is greater than 8196, spline interpolation is used to reduce the number to 8196. In this case, to avoid aliasing, the data are low-pass filtered at a frequency corresponding to ¼ of the new sampling rate.</span></span>
+
If the FFT is applied to the data displayed on the screen, windowing is similar to that for the highlighted block, except that no data outside the block are included: the cosine squared window is applied so that the signal amplitude is attenuated to zero at the edges of the display.
  
<span style="color:#3366ff;"><span style="color:#00000a;">If the FFT is applied to the data displayed on the screen, windowing is similar to that for the highlighted block, except that no data outside the block are included: the cosine squared window is applied so that the signal amplitude is attenuated to zero at the edges of the display.</span></span>
+
=== Mean FFT Spectrum over an extended time range ===
  
 +
To start a mean FFT over an extended time range, e.g. between markers or over the whole data file, select the item ''Mean FFT-Spectrum'' in the <span style="color:#3366ff;">'''Process'''</span> menu (<span style="color:#3366ff;">'''Alt+P M'''</span>).
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''Mean FFT Spectrum over an extended time range'''</span></span>
+
[[Image:MeanFFT_Dialog.png]]
  
<span style="color:#3366ff;"><span style="color:#00000a;">To start a mean FFT over an extended time range, e.g. between markers or over the whole data file, select the item </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''Mean FFT-Spectrum''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> in the </span></span><span style="color:#3366ff;">'''Process'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> menu (</span></span><span style="color:#3366ff;">'''Alt+P M'''</span><span style="color:#3366ff;"><span style="color:#00000a;">).</span></span>
 
  
 +
In the upper section of the ''Mean FFT'' dialog box the range on which the FFT is performed can be set:
  
<div style="color:#00000a;">[[Image:Spectral (4).gif ]]</div>
+
# on the whole EEG
 +
# on all marked epochs within the EEG
 +
# on all marked epochs with a specific label
 +
# on a time range delimited by two markers
 +
# on all epochs delimited by two markers
 +
# over triggers generated by the ERP module; mean FFT over triggers is only available if the mean FFT is called from the ERP module
  
<span style="color:#3366ff;"><span style="color:#00000a;">In the upper section of the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''Mean FFT''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> dialog box the range on which the FFT is performed can be set:</span></span>
+
Ranges that are not currently available (e.g. if no epochs or no markers are defined) are greyed out.
  
# <div style="margin-left:1.259cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">on the whole EEG</span></span></div>
+
The mean FFT consists of a set of FFTs from overlapping data segments spanning the selected time range. Each data segment has a fixed width, defined as a power of 2 sampling points, that can be selected under <span style="color:#3366ff;">'''Block Size / Points per Block'''</span>: In the center of the options window, the number of points per FFT block is selected. Selection can be 128, 256, 512, or 1024 points. The block width influences in particular the contribution to the spectrum of low frequencies: the wider the block, the lower the frequencies that can be represented. The lowest frequency is given by 1/(block width in seconds). Thus, if you have recorded data with a high sampling rate, a wider window is necessary to compute low frequencies. Note: For each block size in samples, the corresponding width in seconds is specified in brackets.
# <div style="margin-left:1.259cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">on all marked epochs within the EEG</span></span></div>
+
# <div style="margin-left:1.259cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">on all marked epochs with a specific label</span></span></div>
+
# <div style="margin-left:1.259cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">on a time range delimited by two markers</span></span></div>
+
# <div style="margin-left:1.259cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">on all epochs delimited by two markers</span></span></div>
+
# <div style="margin-left:1.259cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">over triggers generated by the ERP module; mean FFT over triggers is only available if the mean FFT is called from the ERP module</span></span></div>
+
  
 +
The lower section of the options window determines amplitude and gradient thresholds for including a block in the mean FFT. If signal amplitudes exceed the amplitude threshold or the difference of two consecutive signal amplitudes exceeds the gradient threshold, the block will be omitted. Different thresholds may be set for each channel type (in the above example, scalp and polygraphic channels).
  
<div style="color:#00000a;margin-left:0.635cm;margin-right:0cm;"></div>
+
Press '''OK''' in the options window to start the computation of the mean FFT. Computation can be interrupted by pressing any key. The interrupt has to be confirmed and may be cancelled to resume the mean FFT calculation.
 +
The section “FFT Covariance” allows to compute the FFT covariance over the data range selected.
 +
If the check box “Covariance Spectrum” is checked, a text file (BESA vectorized ASCII format) will be written after the computation. The file can be loaded into BESA Research again or can be analysed externally.
 +
The file has the naming convention: [basename]FFTCovSvdBack_[MtgName].avr
 +
Internally, the mean FFT is performed over the current montage. The covariance matrix is computed in frequency space.
 +
The steps are:
 +
For each epoch to be added to the mean covariance matrix:
 +
# Average reference for EEG, MAG, and GRA data (if the single montage channels box is not checked)
 +
# Resample data to 256 Hz
 +
# Compute FFT
 +
# Add to FFT covariance matrix (either sum over all channels, or individually for each montage channel if that box is checked)
 +
Then, a singular value decomposition is performed on the FFT covariance of each channel, to obtain the (complex) eigenvectors. The newly arranged matrix of eigenvectors is then inverse Fourier transformed to obtain waveforms for each of the components. These are written to file.
  
<div style="color:#00000a;margin-left:0.635cm;margin-right:0cm;"></div>
+
Note on computational steps: Each data segment overlaps 50% with the next segment and is multiplied by a cosine squared (cos² window, as shown at the bottom of the figure below). This combination of overlap and windowing ensures that each time point contributes equally to the mean spectrum (since cos²(x) + sin²(x) = 1). Because mean spectra are computed, phase information is not available.
  
<div style="color:#00000a;margin-left:0.635cm;margin-right:0cm;"></div>
+
[[Image:Spectral (5).gif ]]
  
<div style="color:#00000a;margin-left:0.635cm;margin-right:0cm;"></div>
 
  
<div style="color:#00000a;margin-left:0.635cm;margin-right:0cm;"></div>
+
'''Note''' that time ranges marked as artifacts are not included in the computation of the mean FFT. These time ranges are not excluded when computing the FFT of a marked block or of the displayed data.
  
<div style="color:#00000a;margin-left:0.635cm;margin-right:0cm;"></div>
+
The section “FFT Covariance” allows to compute the FFT covariance over the data range selected.  
  
<span style="color:#3366ff;"><span style="color:#00000a;">Ranges which are not currently available (e.g. if no epochs or no markers are defined) are grayed out.</span></span>
+
If the check box “Covariance Spectrum” is checked, a text file (BESA vectorized ASCII format) will be written after the computation. The file can be loaded into BESA Research again or can be analysed externally.
  
<span style="color:#3366ff;"><span style="color:#00000a;">The mean FFT consists of a set of FFTs from overlapping data segments spanning the selected time range. Each data segment has a fixed width, defined as a power of 2 sampling points, that can be selected under </span></span><span style="color:#3366ff;">'''Block Size / Points per Block'''</span><span style="color:#3366ff;"><span style="color:#00000a;">: In the center of the options window, the number of points per FFT block is selected. Selection can be 128, 256, 512, or 1024 points. The block width influences in particular the contribution to the spectrum of low frequencies: the wider the block, the lower the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">frequencies that can be represented. The lowest frequency is given by 2/(block width in seconds). Thus, if you have recorded data with a high sampling rate, a wider window is necessary to compute low frequencies. Note: For each block size in samples the corresponding width in seconds is specified in brackets.</span></span>
+
The file has the naming convention: [basename]FFTCovSvdBack_[MtgName].avr
  
<span style="color:#3366ff;"><span style="color:#00000a;">The lower section of the options window determines amplitude and gradient thresholds for including a block in the mean FFT. If signal amplitudes exceed the amplitude threshold or the difference of two consecutive signal amplitudes exceeds the gradient threshold, the block will be omitted. Different thresholds may be set for each channel type (in the above example, scalp and polygraphic channels).</span></span>
+
Internally, the mean FFT is performed over the current montage. The covariance matrix is computed in frequency space.
  
<span style="color:#3366ff;"><span style="color:#00000a;">Press </span></span><span style="color:#3366ff;">'''OK'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> in the options window to start computation of the mean FFT. Computation can be interrupted by pressing any key. The interrupt has to be confirmed and may be canceled to resume mean FFT calculation.</span></span>
+
The steps are:  
 +
For each epoch to be added to the mean covariance matrix:
 +
    1) Average reference for EEG, MAG, and GRA data (if the single montage channels box is                               
 +
      not checked)
 +
    2) Resample date to 256 Hz
 +
    3) Compute FFT
 +
    4) Add to FFT covariance matrix (either sum over all channels, or individually for     
 +
      each montage channel if that box is checked)
  
 +
Then, a singular value decomposition is performed on the FFT covariance of each channel, to obtain the (complex) eigenvectors. The newly arranged matrix of eigenvectors is then inverse Fourier transformed to obtain waveforms for each of the components. These are written to file.
  
<span style="color:#3366ff;"><span style="color:#00000a;">Note on computational steps: Each data segment overlaps 50% with the next segment, and is multiplied by a cosine squared (cos² window, as shown at the bottom of the figure below. This combination of overlap and windowing ensures that each time point contributes equally to the mean spectrum (since cos² (x) + sin²(x) = 1). Because mean spectra are computed, phase information is not available.</span></span>
+
=== Redisplaying the previous FFT ===
  
 +
The results of the previously calculated FFT spectrum can be redisplayed by selecting the item ''Previous FFT-Spectrum'' in the <span style="color:#3366ff;">'''Process '''</span>menu or by typing the hotkey <span style="color:#3366ff;">'''Ctrl+F'''</span>. It is not possible to recall the previous FFT if there was a change in
  
<div style="color:#00000a;"></div>
+
* the montage for which the FFT was calculated
 +
* additional or artifact channels
 +
* bad or interpolated channels
 +
* the channel configuration
  
<div style="color:#00000a;"></div>
+
after the last FFT was calculated.
  
<div style="color:#00000a;"></div>
+
=== <span style="color:#3366ff;"><span style="color:#00000a;">Mapping the Results of the FFT</span></span> ===
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
[[Image:Spectral (5).gif ]]
+
 
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">Note that time ranges marked as artifacts are not included in the computation of the mean FFT. These time ranges are not excluded when computing the FFT of a marked block or of the displayed data.</span></span>
+
 
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">'''Redisplaying the previous FFT'''</span></span>
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">The results of the previously calculated FFT spectrum can be redisplayed by selecting the item </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''Previous FFT-Spectrum''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> in the </span></span><span style="color:#3366ff;">'''Process '''</span><span style="color:#3366ff;"><span style="color:#00000a;">menu or by typing the hotkey ‘</span></span><span style="color:#3366ff;">'''CTRL-F’'''</span><span style="color:#3366ff;"><span style="color:#00000a;">. It is not possible to recall the previous FFT if there was a change in</span></span>
+
 
+
* <span style="color:#3366ff;"><span style="color:#00000a;">the montage for which the FFT was calculated</span></span>
+
* <span style="color:#3366ff;"><span style="color:#00000a;">additional or artifact channels</span></span>
+
* <span style="color:#3366ff;"><span style="color:#00000a;">bad or interpolated channels</span></span>
+
* <span style="color:#3366ff;"><span style="color:#00000a;">the channel configuration</span></span>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">after the last FFT was calculated.</span></span>
+
 
+
 
+
==== <span style="color:#3366ff;"><span style="color:#00000a;">Mapping the Results of the FFT</span></span> ====
+
  
 
<span style="color:#3366ff;"><span style="color:#00000a;">Amplitude, power, mean band amplitude or power, and phase delays can be mapped. How to map FFT results is described in the chapter </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''"Mapping / FFT Mapping''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">".</span></span>
 
<span style="color:#3366ff;"><span style="color:#00000a;">Amplitude, power, mean band amplitude or power, and phase delays can be mapped. How to map FFT results is described in the chapter </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''"Mapping / FFT Mapping''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">".</span></span>
  
==== <span style="color:#3366ff;"><span style="color:#00000a;">FFT 'View' Menu: Adjusting the FFT Display</span></span> ====
+
=== FFT 'View' Menu: Adjusting the FFT Display ===
  
  
Line 192: Line 138:
  
  
<span style="color:#3366ff;"><span style="color:#00000a;">The FFT spectrum of each channel in the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''current montage'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> is displayed in a window on the left of the screen. At the bottom is the frequency scale. To the right, the dominant frequency is shown for each channel, together with the amplitude or power at this frequency. The dominant frequency is determined between the lower boundary of the first frequency band and the maximum displayed frequency.</span></span>
+
The FFT spectrum of each channel in the '''current montage''' is displayed in a window on the left of the screen. At the bottom is the frequency scale. To the right, the dominant frequency is shown for each channel, together with the amplitude or power at this frequency. The dominant frequency is determined between the lower boundary of the first frequency band and the maximum displayed frequency.
  
 
<div style="color:#00000a;"></div>
 
  
 
[[Image:Spectral (7).gif ]]
 
[[Image:Spectral (7).gif ]]
  
<span style="color:#3366ff;"><span style="color:#00000a;">''FFT result window with display of amplitude spectrum with sum of amplitudes in bands, color coding, and frequency range 1-30 Hz. The montage is TR_Temporal Region.''</span></span>
+
''FFT result window with a display of amplitude spectrum with the sum of amplitudes in bands, color coding, and frequency range 1-30 Hz. The montage is TR_Temporal Region.''
 
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">Using the </span></span><span style="color:#3366ff;">'''View'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> Menu, the following options can be selected:</span></span>
+
 
+
* <div style="margin-left:1.259cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">Results can be displayed as </span></span><span style="color:#3366ff;"><span style="color:#00000a;"><u>'''A</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">mplitude'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> (</span></span><span style="color:#3366ff;">'''Alt+V A'''</span><span style="color:#3366ff;"><span style="color:#00000a;">) or </span></span><span style="color:#3366ff;"><span style="color:#00000a;"><u>'''P</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">ower'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> (</span></span><span style="color:#3366ff;">'''Alt+V&nbsp;P)'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> spectra. At the top of the display (cf. example below) is the text </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''"Amp. Spectrum"''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> or</span></span><span style="color:#3366ff;"><span style="color:#00000a;">'' "Power Spectrum". ''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">Click on the text to toggle between the two types of display.</span></span></div>
+
* <div style="margin-left:1.259cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">The graphical display of amplitude or power spectra can be </span></span><span style="color:#3366ff;"><span style="color:#00000a;"><u>'''N</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">ormalized'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> (</span></span><span style="color:#3366ff;">'''Alt+V N'''</span><span style="color:#3366ff;"><span style="color:#00000a;">), such that all displayed values are scaled relative to the dominant frequency separately for each channel (i.e. amplitudes cannot be compared between channels). Without this option set, values in each channel group (scalp, source, MEG, Pgr, ICR) are scaled to the channel in this group which has the largest amplitude in its dominant frequency (i.e. amplitude relationships among channels within one channel group are upheld).</span></span></div>
+
* <div style="margin-left:1.259cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">Amplitude or power values can be displayed on a </span></span><span style="color:#3366ff;"><span style="color:#00000a;"><u>'''L</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">ogarithmic scale'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> (</span></span><span style="color:#3366ff;">'''Alt+V L'''</span><span style="color:#3366ff;"><span style="color:#00000a;">). Amplitude values are displayed over two log units, power values over four log units. Thus, for amplitudes, values </span></span><span style="color:#3366ff;"><span style="color:#00000a;">less than 1/100 (two log units) of the maximum are set to zero. For power, values less than 1/10000 (4 log units) of the maximum are set to zero.</span></span></div>
+
* <div style="margin-left:1.259cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">The sum of </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''a</span></span><span style="color:#3366ff;"><span style="color:#00000a;"><u>m</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">plitudes'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> or </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''p</span></span><span style="color:#3366ff;"><span style="color:#00000a;"><u>o</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">wers'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> in each frequency band can be displayed (</span></span><span style="color:#3366ff;">'''Alt+V M'''</span><span style="color:#3366ff;"><span style="color:#00000a;">, or </span></span><span style="color:#3366ff;">'''Alt+V'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> </span></span><span style="color:#3366ff;">'''O'''</span><span style="color:#3366ff;"><span style="color:#00000a;">).</span></span></div>
+
* <div style="margin-left:1.259cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">Spectra are shown as a curve of amplitude/power vs. frequency. If </span></span><span style="color:#3366ff;"><span style="color:#00000a;"><u>'''C</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">olor coding'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> is selected (</span></span><span style="color:#3366ff;">'''Alt+V C'''</span><span style="color:#3366ff;"><span style="color:#00000a;">), then the areas underneath the curve are colored differently for each frequency band. Colors can be changed in the FFT Options menu (</span></span><span style="color:#3366ff;">'''FFT/FFT Options Menu'''</span><span style="color:#3366ff;"><span style="color:#00000a;">).</span></span></div>
+
* <div style="margin-left:1.259cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">The frequency scale can be set to one of the three predefined display frequencies </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''1-</span></span><span style="color:#3366ff;"><span style="color:#00000a;"><u>3</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">0 Hz, 1-</span></span><span style="color:#3366ff;"><span style="color:#00000a;"><u>5</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">0'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Hz'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">, (</span></span><span style="color:#3366ff;">'''Alt+V 3'''</span><span style="color:#3366ff;"><span style="color:#00000a;">, or </span></span><span style="color:#3366ff;">'''Alt+V 5'''</span><span style="color:#3366ff;"><span style="color:#00000a;">) </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''or 1-half of the sampling frequency'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">, e.g. 1-100 Hz in the above screenshot of the </span></span><span style="color:#3366ff;">'''View'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> menu. Alternatively, any user-defined </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Frequency </span></span><span style="color:#3366ff;"><span style="color:#00000a;"><u>B</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">and '''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">(</span></span><span style="color:#3366ff;">'''Alt+V B'''</span><span style="color:#3366ff;"><span style="color:#00000a;">) can be displayed. The upper and lower boundary of the frequency band is set to the next whole-numbered multiple of the frequency resolution. The DC component is always set to zero.</span></span></div>
+
* <div style="margin-left:1.259cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">'''Info-box'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">. Click with the right mouse button on a particular frequency in the spectrum of one of the channels to obtain a box with the following information: Channel name, frequency, and amplitude/power at that frequency.</span></span></div>
+
 
+
  
  
<div style="color:#00000a;"></div>
+
Using the <span style="color:#3366ff;">'''View'''</span> Menu, the following options can be selected:
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''Note:'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> The number of channels shown in the FFT display is the same as the number shown in the EEG display. If you change the EEG display (e.g. by changing the number of scalp electrodes or switching off polygraphic channels), the FFT display is updated automatically. The update can be performed without recalculation. If additional channels or artifact channels reconstructed by BESA Research artifact correction are switched on/off, or the status of bad or interpolated channels changes, the FFT is recalculated. Recalculation is only possible if the FFT was calculated over a block or the whole screen. The mean FFT window has to be closed in this case. Recalculation is also not possible if the FFT was loaded from file. If you change the montage in the EEG display, the FFT window will always be removed: different montages require recalculation of the FFT.</span></span>
+
* Results can be displayed as <u>'''A</u>mplitude''' (<span style="color:#3366ff;">'''Alt+V A'''</span>) or <u>'''P</u>ower''' (<span style="color:#3366ff;">'''Alt+V&nbsp;P)'''</span> spectra. At the top of the display (cf. example below) is the text ''"Amp. Spectrum"'' or'' "Power Spectrum". ''Click on the text to toggle between the two types of display.
 +
* The graphical display of amplitude or power spectra can be <u>'''N</u>ormalized''' (<span style="color:#3366ff;">'''Alt+V N'''</span>), such that all displayed values are scaled relative to the dominant frequency separately for each channel (i.e. amplitudes cannot be compared between channels). Without this option set, values in each channel group (scalp, source, MEG, Pgr, ICR) are scaled to the channel in this group that has the largest amplitude in its dominant frequency (i.e. amplitude relationships among channels within one channel group are upheld).
 +
* Amplitude or power values can be displayed on a <u>'''L</u>ogarithmic scale''' (<span style="color:#3366ff;">'''Alt+V L'''</span>). Amplitude values are displayed over two log units, power values over four log units. Thus, for amplitudes, values less than 1/100 (two log units) of the maximum are set to zero. For power, values less than 1/10000 (4 log units) of the maximum are set to zero.
 +
* The sum of '''a<u>m</u>plitudes''' or '''p<u>o</u>wers''' in each frequency band can be displayed (<span style="color:#3366ff;">'''Alt+V M'''</span>, or <span style="color:#3366ff;">'''Alt+V'''</span> <span style="color:#3366ff;">'''O'''</span>).
 +
* Spectra are shown as a curve of amplitude/power vs. frequency. If <u>'''C</u>olor coding''' is selected (<span style="color:#3366ff;">'''Alt+V C'''</span>), then the areas underneath the curve are colored differently for each frequency band. Colors can be changed in the FFT Options menu (<span style="color:#3366ff;">'''FFT/FFT Options Menu'''</span>).
 +
* The frequency scale can be set to one of the three predefined display frequencies '''1-<u>3</u>0 Hz, 1-<u>5</u>0''' '''Hz''', (<span style="color:#3366ff;">'''Alt+V 3'''</span>, or <span style="color:#3366ff;">'''Alt+V 5'''</span>) '''or 1-half of the sampling frequency''', e.g. 1-100 Hz in the above screenshot of the <span style="color:#3366ff;">'''View'''</span> menu. Alternatively, any user-defined '''Frequency <u>B</u>and '''(<span style="color:#3366ff;">'''Alt+V B'''</span>) can be displayed. The upper and lower boundary of the frequency band is set to the next whole-numbered multiple of the frequency resolution. The DC component is always set to zero.
 +
* '''Info-box'''. Click with the right mouse button on a particular frequency in the spectrum of one of the channels to obtain a box with the following information: Channel name, frequency, and amplitude/power at that frequency.
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''Note'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">: Bad channels in the original montage are displayed in an attenuated color. The spectrum of bad channels is zero for each frequency. As the dominant frequency, its amplitude and the sum of amplitudes or powers in each frequency band cannot be determined, a horizontal bar is shown for each missing value.</span></span>
 
  
 +
'''Note:''' The number of channels shown in the FFT display is the same as the number shown in the EEG display. If you change the EEG display (e.g. by changing the number of scalp electrodes or switching off polygraphic channels), the FFT display is updated automatically. The update can be performed without recalculation. If additional channels or artifact channels reconstructed by BESA Research artifact correction are switched on/off, or the status of bad or interpolated channels changes, the FFT is recalculated. Recalculation is only possible if the FFT was calculated over a block or the whole screen. The mean FFT window has to be closed in this case. Recalculation is also not possible if the FFT was loaded from a file. If you change the montage in the EEG display, the FFT window will always be removed: different montages require recalculation of the FFT.
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''Notes about display resolution: frequencies and pixels'''</span></span>
+
'''Note''': Bad channels in the original montage are displayed in an attenuated color. The spectrum of bad channels is zero for each frequency. As the dominant frequency, its amplitude and the sum of amplitudes or powers in each frequency band cannot be determined, a horizontal bar is shown for each missing value.
  
<span style="color:#3366ff;"><span style="color:#00000a;">When plotting the results of the FFT on the screen, there is a subtle interaction with the screen resolution which can affect the frequency and amplitude/power values displayed when generating maps or looking in the Info-box. Note that two types of situation can arise, depending on whether the number of frequency steps (= half the no. of sampling points in the data window) is greater or less than the number of screen pixels.</span></span>
 
  
<span style="color:#3366ff;"><span style="color:#00000a;">If the number of frequency steps is less than or equal to the number of screen pixels, the amplitude at each frequency can be displayed correctly.</span></span>
+
'''Notes about display resolution: frequencies and pixels'''
  
<span style="color:#3366ff;"><span style="color:#00000a;">If the number of frequency steps is greater than the number of screen pixels, then there are not enough pixels to display each amplitude. In this case, the amplitude displayed at each pixel is the maximum amplitude in the range of frequencies covered by that pixel. For a given pixel, this </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''maximum'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> amplitude can differ among channels. Thus, depending on the channel to which the mouse is pointing, the frequency displayed in maps (left click) or in the Info-box (right click) can vary, even if the horizontal position of the mouse is the same.</span></span>
+
When plotting the results of the FFT on the screen, there is a subtle interaction with the screen resolution which can affect the frequency and amplitude/power values displayed when generating maps or looking in the Info-box. Note that two types of situations can arise, depending on whether the number of frequency steps (= half the no. of sampling points in the data window) is greater or less than the number of screen pixels.
  
 +
If the number of frequency steps is less than or equal to the number of screen pixels, the amplitude at each frequency can be displayed correctly.
  
==== <span style="color:#3366ff;"><span style="color:#00000a;">FFT 'File' Menu: Saving, Loading and Printing Results of the FFT</span></span> ====
+
If the number of frequency steps is greater than the number of screen pixels, then there are not enough pixels to display each amplitude. In this case, the amplitude displayed at each pixel is the maximum amplitude in the range of frequencies covered by that pixel. For a given pixel, this '''maximum''' amplitude can differ among channels. Thus, depending on the channel to which the mouse is pointing, the frequency displayed in maps (left click) or in the Info-box (right-click) can vary, even if the horizontal position of the mouse is the same.
  
 +
=== FFT 'File' Menu: Saving, Loading and Printing Results of the FFT ===
  
 +
<br>
 
[[Image:Spectral (8).gif ]]
 
[[Image:Spectral (8).gif ]]
  
  
<div style="color:#00000a;margin-left:0.635cm;margin-right:0cm;"></div>
+
'''Loading and Saving FFT'''
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''Loading and Saving FFT'''</span></span>
+
Select '''Load...''' (<span style="color:#3366ff;">'''Alt+F L'''</span>) to load an FFT file that has been saved to a binary file using '''Save...''' (<span style="color:#3366ff;">'''Alt+F S'''</span>). An FFT spectrum should be redisplayed with the file from which it was calculated. An FFT file cannot be loaded if electrode configuration and bad channels of the current file do not match with the electrode configuration and bad channels of the saved FFT spectrum. The montage of the current EEG is changed to the montage of the loaded FFT. Filter settings that were active at the time when the FFT was calculated are not reset but are indicated correctly in the FFT printout.
  
<span style="color:#3366ff;"><span style="color:#00000a;">Select</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''' Load'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">... (</span></span><span style="color:#3366ff;">'''Alt+F L'''</span><span style="color:#3366ff;"><span style="color:#00000a;">) to load an FFT file that has been saved to a binary file using </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Save'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">... (</span></span><span style="color:#3366ff;">'''Alt+F S'''</span><span style="color:#3366ff;"><span style="color:#00000a;">). An FFT spectrum should be redisplayed with the file from which it was calculated. An FFT file cannot be loaded if electrode configuration and bad channels of the current file do not match with the electrode configuration and bad channels of the saved FFT spectrum. The montage of the current EEG is changed</span></span>
+
The heading of the printout shows the name of the loaded FFT file and the name of the EEG for which the FFT was calculated. If the loaded file contains a mean FFT spectrum, the mean FFT options are adjusted to the settings used to calculate the loaded mean FFT spectrum.
  
<span style="color:#3366ff;"><span style="color:#00000a;">to the montage of the loaded FFT. Filter settings that were active at the time when the FFT was calculated are not reset, but are indicated correctly in the FFT printout.</span></span>
 
  
<span style="color:#3366ff;"><span style="color:#00000a;">The heading of the printout shows the name of the loaded FFT file and the name of the EEG for which the FFT was calculated. If the loaded file contains a mean FFT spectrum, the mean FFT options are adjusted to the settings used to calculate the loaded mean FFT spectrum.</span></span>
+
'''Averaging FFT spectra'''
  
 
+
Select '''Load and Average...''' (<span style="color:#3366ff;">'''Alt+F V'''</span>) to compute averages of previously saved FFT spectra. In the appearing window, select an FFT spectrum (<span style="color:#ff9c00;">'''*.fft'''</span>) from the list on the left and press the arrow button (-->) to copy it to the list of FFTs to be averaged on the right. Press <span style="color:#3366ff;">'''OK'''</span> to calculate and display the averaged FFT spectrum.
<span style="color:#3366ff;"><span style="color:#00000a;">'''Averaging FFT spectra'''</span></span>
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">Select </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Load and Average'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">... (</span></span><span style="color:#3366ff;">'''Alt+F V'''</span><span style="color:#3366ff;"><span style="color:#00000a;">) to compute averages of previously saved FFT spectra. In the appearing window, select an FFT spectrum (</span></span><span style="color:#ff9c00;">'''<nowiki>*.fft</nowiki>'''</span><span style="color:#3366ff;"><span style="color:#00000a;">) from the list on the left and press the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:|top]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> button to copy it to the list of FFTs to be averaged on the right. Press</span></span><span style="color:#3366ff;">''' OK'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> to calculate and display the averaged FFT spectrum.</span></span>
+
  
  
Line 255: Line 191:
  
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''Note:'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> Averaging of FFT spectra is only possible if the spectra were computed using the same epoch length (marked block or whole screen), montage, and sampling rate.</span></span>
+
'''Note:''' Averaging of FFT spectra is only possible if the spectra were computed using the same epoch length (marked block or whole screen), montage, and sampling rate.
  
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''Exporting FFT spectral data'''</span></span>
+
'''Exporting FFT spectral data'''
  
<span style="color:#3366ff;"><span style="color:#00000a;">Select </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Export FFT Data'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> in the </span></span><span style="color:#3366ff;">'''File'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> menu (</span></span><span style="color:#3366ff;">'''Alt+F&nbsp;F'''</span><span style="color:#3366ff;"><span style="color:#00000a;">). You can select two different output montages:</span></span>
+
Select '''Export FFT Data''' in the <span style="color:#3366ff;">'''File'''</span> menu (<span style="color:#3366ff;">'''Alt+F&nbsp;F'''</span>). You can select two different output montages:
  
* <span style="color:#3366ff;"><span style="color:#00000a;">Output </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''81 </span></span><span style="color:#3366ff;"><span style="color:#00000a;"><u>I</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">nterpolated'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> average referenced data (to a standard configuration of 81 electrodes, only available for EEG data) (</span></span><span style="color:#3366ff;">'''Alt +F FI'''</span><span style="color:#3366ff;"><span style="color:#00000a;">), or</span></span>
+
* Output '''81 <u>I</u>nterpolated''' average referenced data (to a standard configuration of 81 electrodes, only available for EEG data) (<span style="color:#3366ff;">'''Alt+F FI'''</span>), or
* <span style="color:#3366ff;"><span style="color:#00000a;">Output </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Current </span></span><span style="color:#3366ff;"><span style="color:#00000a;"><u>M</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">ontage'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> data (</span></span><span style="color:#3366ff;">'''Alt+F FM'''</span><span style="color:#3366ff;"><span style="color:#00000a;">)</span></span>
+
* Output '''Current <u>M</u>ontage''' data (<span style="color:#3366ff;">'''Alt+F FM'''</span>)
  
  
<div style="color:#00000a;"></div>
+
Select one of two output formats:
  
<span style="color:#3366ff;"><span style="color:#00000a;">Select one of two output formats:</span></span>
+
* Write the data in''' Vectorized '''format:
 +
** Line 1 of the output file contains the number of frequency steps (Npts), a starting value for BESA Research’s time scale (TSB), the frequency step (DI), scaling in bins per microvolt (SB), a scaling value for the BESA Research display (SC), and the number of channels (Nchan) as shown in the following example:
 +
*** <tt>Npts= 1023 TSB= 0.10 DI= 0.100 SB= 1.000 SC= 100.0 Nchan= 23</tt>
 +
** Line 2 lists the channel labels.
 +
** Each successive line contains the amplitude/power values at each frequency for one channel.
  
* <span style="color:#3366ff;"><span style="color:#00000a;">Write the data in</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''' Vectorized '''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">format: Line 1 of the output file contains the number of frequency steps (Npts), a starting value for BESA Research’s time scale (TSB), the frequency step (DI), scaling in bins per microvolt (SB), a scaling value for the BESA Research display (SC), and the number of channels (Nchan) as shown in the following example:</span></span>
+
* Write the data in '''<u>M</u>ultiplexed''' format:
 +
** Line 1 contains the frequency step size in Hz.
 +
** Line 2 lists the channel labels.
 +
** Each subsequent line contains amplitude/power values for all channels (in the sequence given in line 2) for one frequency.
  
<div style="color:#00000a;"></div>
 
  
<div style="margin-left:0cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">"Npts= 1023 TSB= 0.10 DI= 0.100 SB= 1.000 SC= 100.0 Nchan= 23".</span></span></div>
+
Both vectorized and multiplexed files may be reread into BESA Research in the same way as time-domain averages. Vectorized files may be read directly using the <span style="color:#3366ff;">'''File / Open'''</span> menu. Multiplexed files may be read using the ASCII import menu item <span style="color:#3366ff;">'''File / Import ASCII file'''</span>.
  
<div style="margin-left:0 cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">Line 2 lists the channel labels. Each successive line contains the amplitude/power values at each frequency for one channel.</span></span></div>
+
For each of these output formats and montages, different data can be saved:
  
 +
* '''<u>A</u>mplitude Spectrum''' (<span style="color:#3366ff;">'''Alt+F FA'''</span>),
 +
* '''<u>P</u>ower Spectrum''' <span style="color:#3366ff;">'''(Alt+F FP'''</span>), or
 +
* '''<u>R</u>eal + Imaginary Part''' (<span style="color:#3366ff;">'''Alt+F FR'''</span>). In this case, amplitudes of the real and imaginary components are written to two separate files.
  
* <span style="color:#3366ff;"><span style="color:#00000a;">Write the data in</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''' </span></span><span style="color:#3366ff;"><span style="color:#00000a;"><u>M</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">ultiplexed'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> format: Line 1 contains the frequency step size in Hz. Line 2 lists the channel labels. Each subsequent line contains amplitude/power values for all channels (in the sequence given in line 2) for one frequency.</span></span>
 
  
<div style="color:#00000a;"></div>
+
File name extensions for each type of output file are given in the following table:
  
<span style="color:#3366ff;"><span style="color:#00000a;">Both vectorized and multiplexed files may be reread into BESA Research in the same way as time-domain averages. Vectorized files may be read directly using the </span></span><span style="color:#3366ff;">'''File / Open'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> menu. Multiplexed files may be read using the ASCII import menu item </span></span><span style="color:#3366ff;">'''File / Import ASCII file'''</span><span style="color:#3366ff;"><span style="color:#00000a;">.</span></span>
+
<!-- [[Image:Spectral (11).gif]] -->
 +
{| class="wikitable"
 +
!
 +
! current montage
 +
! average reference
 +
! mean in bands
 +
|-
 +
| amplitude spectrum
 +
| style="text-align: center;" | *.fma
 +
| style="text-align: center;" | *.faa
 +
| style="text-align: center;" | *.fba
 +
|-
 +
| power spectrum
 +
| style="text-align: center;" | *.fmp
 +
| style="text-align: center;" | *.fap
 +
| style="text-align: center;" | *.fbp
 +
|-
 +
| real components
 +
| style="text-align: center;" | *.fmr
 +
| style="text-align: center;" | *.far
 +
| style="text-align: center;" | N/A
 +
|-
 +
| imaginary components
 +
| style="text-align: center;" | *.fmi
 +
| style="text-align: center;" | *.fai
 +
| style="text-align: center;" | N/A
 +
|}
  
<span style="color:#3366ff;"><span style="color:#00000a;">For each of these output formats and montages, different data can be saved:</span></span>
 
  
* <span style="color:#3366ff;"><span style="color:#00000a;"><u>'''A</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">mplitude Spectrum'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> (</span></span><span style="color:#3366ff;">'''Alt+F FA'''</span><span style="color:#3366ff;"><span style="color:#00000a;">),</span></span>
+
'''Exporting band amplitudes and power'''
* <span style="color:#3366ff;"><span style="color:#00000a;"><u>'''P</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">ower Spectrum'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> </span></span><span style="color:#3366ff;">'''(Alt+F FP'''</span><span style="color:#3366ff;"><span style="color:#00000a;">), or</span></span>
+
* <span style="color:#3366ff;"><span style="color:#00000a;"><u>'''R</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">eal + Imaginary Part'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> (</span></span><span style="color:#3366ff;">'''Alt+F FR'''</span><span style="color:#3366ff;"><span style="color:#00000a;">). In this case, amplitudes of the real and imaginary components are written to two separate files.</span></span>
+
  
 +
Select '''Export <u>P</u>ower in Bands''' (<span style="color:#3366ff;">'''Alt+F P'''</span>) or '''Export <u>A</u>mplitude in Bands''' (<span style="color:#3366ff;">'''Alt+F&nbsp;A'''</span>). An ASCII file is produced with one channel per line, and each line contains the value for each frequency band.
  
<div style="color:#00000a;"></div>
 
  
<span style="color:#3366ff;"><span style="color:#00000a;">DOS file name extensions for each type of output file are given in the following table:</span></span>
+
'''Sending FFT data to MATLAB'''
  
 +
Select''' Send to MATLAB '''(<span style="color:#3366ff;">'''Alt+F M'''</span>) to transfer the current FFT data to MATLAB. This menu entry is available only when MATLAB is installed. Details on the MATLAB interface are provided in the chapter [[MATLAB_Interface | MATLAB Interface]].
  
[[Image:Spectral (11).gif]]
 
  
 +
[[Image:Spectral (12).gif]]
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''Exporting band amplitudes and power'''</span></span>
+
A dialog window opens that allows to specify:
  
<span style="color:#3366ff;"><span style="color:#00000a;">Select </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Export </span></span><span style="color:#3366ff;"><span style="color:#00000a;"><u>P</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">ower in Bands'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> (</span></span><span style="color:#3366ff;">'''Alt+F P'''</span><span style="color:#3366ff;"><span style="color:#00000a;">) or </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Export </span></span><span style="color:#3366ff;"><span style="color:#00000a;"><u>A</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">mplitude in Bands'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> (</span></span><span style="color:#3366ff;">'''Alt+F&nbsp;A'''</span><span style="color:#3366ff;"><span style="color:#00000a;">). An ASCII file is produced with one channel per line, and each line contains the value for each frequency band.</span></span>
+
* the type of data to be transferred (Amplitude, Power, or Complex FFT data)
 +
* whether each frequency bin should be transferred or frequencies should be pooled in bands
 +
* the montage for which the FFT should be sent
  
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''Sending FFT data to MATLAB'''</span></span>
+
When hitting <span style="color:#3366ff;">'''OK'''</span>, the sent data will be made available in MATLAB in struct variable <span style="color:#ff9c00;">'''besa_fft'''</span>. For details on the data transfer from BESA Research to MATLAB, please refer to the chapter [[MATLAB_Interface | MATLAB Interface]].
  
<span style="color:#3366ff;"><span style="color:#00000a;">Select</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''' Send to MATLAB '''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">(</span></span><span style="color:#3366ff;">'''Alt+F M'''</span><span style="color:#3366ff;"><span style="color:#00000a;">) to transfer the current FFT data to MATLAB. This menu entry is available only when MATLAB is installed. Details on the MATLAB interface are provided in Help Chapter </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''“MATLAB”.''</span></span>
 
  
 +
'''Printing results of the FFT'''
  
[[Image:Spectral (12).gif]]
+
Select <span style="color:#3366ff;">'''File / Print'''</span> to print the FFT display and FFT maps. BESA Research uses the standard WINDOWS printer output. You may change your printer settings temporarily for your current BESA Research session. In the printer setup, you can choose the orientation (landscape or portrait) and the resolution. If you have any problems with printing, try to set the resolution to 300*300. If you want to change the printer setup permanently, please select the Printer Control from the WINDOWS main control group.
  
<span style="color:#3366ff;"><span style="color:#00000a;">A dialog window opens that allows to specify:</span></span>
+
A preview of the printout can be generated with <span style="color:#3366ff;">'''File / Print Preview'''</span>. Click on the <span style="color:#3366ff;">''''OK''''</span> button to return to the program.
  
* <span style="color:#3366ff;"><span style="color:#00000a;">the type of data to be transferred (Amplitude, Power, or Complex FFT data)</span></span>
 
* <span style="color:#3366ff;"><span style="color:#00000a;">whether each frequency bin should be transferred or frequencies should be pooled in bands</span></span>
 
* <span style="color:#3366ff;"><span style="color:#00000a;">the montage for which the FFT should be sent</span></span>
 
  
 +
'''Closing FFT'''
  
<span style="color:#3366ff;"><span style="color:#00000a;">When hitting </span></span><span style="color:#3366ff;">'''OK'''</span><span style="color:#3366ff;"><span style="color:#00000a;">, the sent data will be made available in MATLAB in struct variable </span></span><span style="color:#ff9c00;">'''besa_fft'''</span><span style="color:#3366ff;"><span style="color:#00000a;">. For details on the data transfer from BESA Research to MATLAB, please refer to Help Chapter </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''“The MATLAB interface”.''</span></span>
+
To remove the FFT window (without saving the results), select ''Close'' in the<span style="color:#3366ff;">''' File'''</span> menu (<span style="color:#3366ff;">'''Alt+F C'''</span>), or simply type the <span style="color:#3366ff;">'''Esc'''</span> key.
  
 +
=== FFT ‘Options’ Menu ===
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''Printing results of the FFT'''</span></span>
+
The <span style="color:#3366ff;">'''Options'''</span> menu allows to define FFT mapping options, to set colors for the display of each frequency band, and to define and name up to 7 bands. When working with BESA Research, the band colors, names, and frequency ranges of the last session are stored in the file <span style="color:#ff9c00;">'''BESA.set'''</span>. These values are then used in the next BESA Research session.
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">Select </span></span><span style="color:#3366ff;">'''File / Print'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> to print the FFT display and FFT maps. BESA Research uses the standard WINDOWS printer output. You may change your printer settings temporarily for your current BESA Research session. In the printer setup, you can choose the orientation (landscape or portrait) and the resolution. If you have any problems with printing, try to set the resolution to 300*300. If you want to change the printer setup permanently, please select the Printer Control from the WINDOWS main control group.</span></span>
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">A preview of the printout can be generated with </span></span><span style="color:#3366ff;">'''File / Print Preview'''</span><span style="color:#3366ff;"><span style="color:#00000a;">. Click on the </span></span><span style="color:#3366ff;">''''OK''''</span><span style="color:#3366ff;"><span style="color:#00000a;"> button to return to the program.</span></span>
+
 
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">'''Closing FFT'''</span></span>
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">To remove the FFT window (without saving the results), select </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''Close''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> in the</span></span><span style="color:#3366ff;">''' File'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> menu (</span></span><span style="color:#3366ff;">'''Alt+F C'''</span><span style="color:#3366ff;"><span style="color:#00000a;">), or simply type the </span></span><span style="color:#3366ff;">'''<Esc> '''</span><span style="color:#3366ff;"><span style="color:#00000a;">key.</span></span>
+
 
+
==== <span style="color:#3366ff;"><span style="color:#00000a;">FFT ‘Options’ Menu</span></span> ====
+
  
 
[[Image:Spectral (13).gif]]
 
[[Image:Spectral (13).gif]]
  
  
<span style="color:#3366ff;"><span style="color:#00000a;">The</span></span><span style="color:#3366ff;">''' Options '''</span><span style="color:#3366ff;"><span style="color:#00000a;">menu allows to define FFT mapping options, to set colors for the display of each frequency band, and to define and name up to 7 bands. When working with BESA Research, the band colors, names, and frequency ranges of the last session are stored in the file </span></span><span style="color:#ff9c00;">'''BESA.set'''</span><span style="color:#3366ff;"><span style="color:#00000a;">. These values are then used in the next BESA Research session.</span></span>
+
'''Mapping options'''
  
 +
In the Mapping submenu two entries toggle different mapping modes:
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''Mapping options'''</span></span>
+
[[Image:Spectral (14).gif]]
  
<span style="color:#3366ff;"><span style="color:#00000a;">In the Mapping submenu two entries toggle different mapping modes:</span></span>
+
* The entry '''3D Whole Head Mapping''' toggles between 3D and 2D mapping.
 +
* The entry '''Top Meridian Projection''' toggles between top meridian projection and whole head mapping.
  
  
<div style="color:#00000a;">[[Image:Spectral (14).gif]]</div>
+
'''Defining band colors'''
 
+
* <span style="color:#3366ff;"><span style="color:#00000a;">The entry </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''3D Whole Head Mapping'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> toggles between 3D and 2D mapping.</span></span>
+
* <span style="color:#3366ff;"><span style="color:#00000a;">The entry </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Top Meridian Projection'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> toggles between top meridian projection and whole head mapping.</span></span>
+
 
+
 
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">'''Defining band colors'''</span></span>
+
  
 
[[Image:Spectral (15).gif]]
 
[[Image:Spectral (15).gif]]
  
 +
Select <span style="color:#3366ff;">'''Options / Band Color'''</span> (<span style="color:#3366ff;">'''Alt+O C'''</span>), and then the name of the band to define (e.g. <u>'''T</u>heta''': <span style="color:#3366ff;">'''Alt+O CT'''</span>). A window is presented with a palette of colors, allowing the choice of a color for the display.
  
<span style="color:#3366ff;"><span style="color:#00000a;">Select </span></span><span style="color:#3366ff;">'''Options / Band Color'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> (</span></span><span style="color:#3366ff;">'''Alt+O C'''</span><span style="color:#3366ff;"><span style="color:#00000a;">), and then the name of the band to define (e.g. </span></span><span style="color:#3366ff;"><span style="color:#00000a;"><u>'''T</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">heta'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">: </span></span><span style="color:#3366ff;">'''Alt+O CT'''</span><span style="color:#3366ff;"><span style="color:#00000a;">). A window is presented with a palette of colors, allowing the choice of a color for the display.</span></span>
+
Select''' <u>D</u>efault <u>C</u>olors''' (<span style="color:#3366ff;">'''Alt+O CD'''</span>) to select the default colors for the bands (predefined in <span style="color:#ff9c00;">'''BESA.ini'''</span>).
  
<span style="color:#3366ff;"><span style="color:#00000a;">Select</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''' </span></span><span style="color:#3366ff;"><span style="color:#00000a;"><u>D</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">efault </span></span><span style="color:#3366ff;"><span style="color:#00000a;"><u>C</u></span></span><span style="color:#3366ff;"><span style="color:#00000a;">olors'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> (</span></span><span style="color:#3366ff;">'''Alt+O CD'''</span><span style="color:#3366ff;"><span style="color:#00000a;">) to select the default colors for the bands (predefined in </span></span><span style="color:#ff9c00;">'''BESA.ini'''</span><span style="color:#3366ff;"><span style="color:#00000a;">).</span></span>
 
  
 +
'''Defining band names and widths'''
  
<div style="color:#00000a;"></div>
+
Select '''Options / Band Name and Width''' to define up to 7 band names and frequency ranges. A window showing names and frequency limits is displayed, allowing redefinition of the frequency bands. Overlapping frequency ranges can be defined. Upper/lower limits of FFT bands can be set up to the maximum frequency that can be displayed in the current FFT (which is usually half of the sampling rate). Press the <span style="color:#3366ff;">'''Default'''</span> button to select the default definitions as predefined in the file BESA.ini and shown in the following table:
  
<div style="color:#00000a;"></div>
+
[[Image:Spectral (16).gif]]
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''Defining band names and widths'''</span></span>
+
=== FFT Mouse Controls ===
  
<span style="color:#3366ff;"><span style="color:#00000a;">Select </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Options / Band Name and Width'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> to define up to 7 band names and frequency ranges. A window showing names and frequency limits is displayed, allowing redefinition of the frequency bands. Overlapping frequency ranges can be defined. Upper/lower limits of FFT bands can be set up to the maximum frequency that can be displayed in the current FFT (which is usually half of the sampling rate). Press the </span></span><span style="color:#3366ff;">'''Default'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> button to select the default definitions as predefined in the file BESA.ini and shown in the following table:</span></span>
 
 
 
[[Image:Spectral (16).gif]]
 
  
==== <span style="color:#3366ff;"><span style="color:#00000a;">FFT Mouse Controls</span></span> ====
+
'''Single left click'''
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''Single left click'''</span></span>* <span style="color:#3366ff;"><span style="color:#00000a;">on the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''displayed peak frequency'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> or peak amplitude values of a channel or on the channel labels or head symbols at the left of the FFT window: Sets a cursor at the peak (dominant) </span></span><span style="color:#3366ff;"><span style="color:#00000a;">frequency of the selected channel and displays a map of the topography at the marked frequency (only if the channel is not defined as bad).</span></span>
+
* on the '''displayed peak frequency''' or peak amplitude values of a channel or on the channel labels or head symbols at the left of the FFT window: Sets a cursor at the peak (dominant) frequency of the selected channel and displays a map of the topography at the marked frequency (only if the channel is not defined as bad).
 +
* on the string indicating the '''spectrum type '''(Amp. Spectrum or Power Spectrum): Toggles between the display of amplitude and power spectrum.
 +
* on the string indicating the map type (EEG or MEG): Toggles between EEG and MEG FFT maps (only for combined MEG and EEG measurements).&nbsp;
 +
* on the '''displayed spectrum''': Sets a cursor and draws a FFT map of the topography at the marked frequency. The availability of this function by single left mouse click depends on the settings in the main window’s <span style="color:#3366ff;">'''Options / Mapping'''</span> submenu (<span style="color:#3366ff;">'''Options / Mapping / Enable Direct Mapping by Single Click'''</span>).
  
* <span style="color:#3366ff;"><span style="color:#00000a;">on the string indicating the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''spectrum type '''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">(Amp. Spectrum or Power Spectrum): Toggles between display of amplitude and power spectrum.</span></span>
+
'''Note:''' The mouse pointer changes to a hand in areas of the FFT window where left mouse clicks initiate an action.
* <span style="color:#3366ff;"><span style="color:#00000a;">on the string indicating the map type (EEG or MEG): Toggles between EEG and MEG FFT maps (only for combined MEG and EEG measurements).&nbsp;</span></span>
+
* <span style="color:#3366ff;"><span style="color:#00000a;">on the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''displayed spectrum'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">: Sets a cursor and draws a FFT map of the topography at the marked frequency. The availability of this function by single left mouse click depends on the settings in the main window’s </span></span><span style="color:#3366ff;">'''Options / Mapping'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> submenu (</span></span><span style="color:#3366ff;">'''Options / Mapping / Enable Direct Mapping by Single Click'''</span><span style="color:#3366ff;"><span style="color:#00000a;">).</span></span>
+
  
  
<div style="color:#00000a;"></div>
+
'''Double left click'''
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''Note:'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> The mouse pointer changes to a hand in areas of the FFT window where left mouse clicks initiate an action.</span></span>
+
* on the '''displayed spectrum''': Sets a cursor and draws a map of the topography at the marked frequency. The availability of this function by single left mouse click depends on the settings in the main window’s <span style="color:#3366ff;">'''Options / Mapping'''</span> submenu (<span style="color:#3366ff;">'''Options / Mapping / Enable Direct Mapping by Double Click'''</span>).
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''Double left click'''</span></span>
 
* <span style="color:#3366ff;"><span style="color:#00000a;">on the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''displayed spectrum'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">: Sets a cursor and draws a map of the topography at the marked frequency. The availability of this function by single left mouse click depends on the settings in the main window’s</span></span><span style="color:#3366ff;">''' Options / Mapping'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> submenu (</span></span><span style="color:#3366ff;">'''Options / Mapping / Enable Direct Mapping by Double Click'''</span><span style="color:#3366ff;"><span style="color:#00000a;">).</span></span>
 
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''Right click'''</span></span>
+
'''Right click'''
* <span style="color:#3366ff;"><span style="color:#00000a;">on the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''displayed spectrum'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">: Opens an info-box indicating channel name, frequency, and amplitude/power at that frequency.</span></span>
+
  
 +
* on the '''displayed spectrum''': Opens an info-box indicating channel name, frequency, and amplitude/power at that frequency.
  
=== <span style="color:#3366ff;"><span style="color:#00000a;">Density Spectral Arrays (DSA) </span></span> ===
+
== Density Spectral Arrays (DSA) ==
  
==== Introduction ====
+
=== Introduction ===
  
The Density Spectral Arrays (DSA) module displays a compressed two-dimensional time-frequency display of the activity in the data file. It focuses on the frequency range of 1 Hz&nbsp;- 25 Hz which includes the commonly observed oscillatory rhythms in the human brain. This allows for a quick overview of the sections where events of interest occur, e.g. in the analysis of epileptic seizures or in sleep research. DSA values are computed for every second in the data file using a windowed FFT with a window length of 2s. By default, the DSA module uses a standardized brain source montage to separate the activities of both hemispheres and the different brain regions using 15 regional sources. This spatial filtering prior to the application of the time-frequency transformation helps to identify brain regions where oscillatory activity originates. The DSA can be invoked by hitting the [[Image:Spectral (17).gif]] button or from the <span style="color:#3366ff;">'''Process'''</span> menu.
+
The Density Spectral Arrays (DSA) module displays a compressed two-dimensional time-frequency display of the activity in the data file. It focuses on the frequency range of 1 Hz - 25 Hz which includes the commonly observed oscillatory rhythms in the human brain. This allows for a quick overview of the sections where events of interest occur, e.g. in the analysis of epileptic seizures or in sleep research. DSA values are computed for every second in the data file using a windowed FFT with a window length of 2s. By default, the DSA module uses a standardized brain source montage to separate the activities of both hemispheres and the different brain regions using 15 regional sources. This spatial filtering prior to the application of the time-frequency transformation helps to identify brain regions where oscillatory activity originates. The DSA can be invoked by hitting the [[Image:Spectral (17).gif]] button or from the <span style="color:#3366ff;">'''Process'''</span> menu.
  
  
Line 406: Line 355:
 
[[Image:Spectral (19).gif]]
 
[[Image:Spectral (19).gif]]
  
 +
''Standard DSA display of an EEG containing four seizures. For each brain hemisphere, the sum of activities is shown.''
  
<span style="color:#3366ff;"><span style="color:#00000a;">''Standard DSA display of an EEG containing four seizures. For each brain hemisphere, the sum of activities is shown.''</span></span>
 
  
 +
'''Using DSA to navigate'''
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''Using DSA to navigate'''</span></span>
+
With a '''left mouse click''' into the DSA display, you can navigate to the selected EEG event. The data review window display jumps to the selected time in the record.
  
<span style="color:#3366ff;"><span style="color:#00000a;">With a </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''left mouse click'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> into the DSA display, you can navigate to the selected EEG event. The data review window display jumps to the selected time in the record.</span></span>
 
  
 +
'''DSA display modes'''
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''DSA display modes'''</span></span>
+
Three modes of DSA display are possible:
  
<span style="color:#3366ff;"><span style="color:#00000a;">Three modes of DSA display are possible:</span></span>
+
# Hemispheric Comparison, which sums up all the lateral activities of each hemisphere
 +
# Regional Comparison, which gives account of the activity within five gross brain regions
 +
# Current Montage, which shows the activity in each channel of the selected montage at the time the DSA window was opened. For MEG data, only the Current Montage option is available.
  
# <span style="color:#3366ff;"><span style="color:#00000a;">Hemispheric Comparison, which sums up all the lateral activities of each hemisphere</span></span>
+
For the first two modes, the signals are first transformed to the standardized brain source montage ''[[BESA_Research_Montage_Editor#Standard_Source_Montage_-_BR_Brain_Regions|BR_Brain Regions]]'' (see chapter '''[[Review#Remontaging|Review / Remontaging]]''') before the summation of the spectral parameters is performed. This transformation of the data to a source montage optimally separates the activities from the different brain regions that generate overlapping signals at the scalp surface. DSA of scalp channels can be seen by selecting a recording (traditional) montage and selecting mode 3, current montage.
# <span style="color:#3366ff;"><span style="color:#00000a;">Regional Comparison, which gives account of the activity within five gross brain regions</span></span>
+
# <span style="color:#3366ff;"><span style="color:#00000a;">Current Montage, which shows the activity in each channel of the selected montage at the time the DSA window was opened. For MEG data, only the Current Montage option is available.</span></span>
+
  
 +
The way in which signals are sub-sampled to obtain the density display can be modified, from the fastest sub-sampling to an averaged or maximum signal display. The color-coded display of the spectral values in frequency bins can be normalized to the percentage value relative to the sum over all frequency bins of each channel.
  
<div style="color:#00000a;"></div>
+
The current position in the data file is indicated by the vertical dashed lines in the display.
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">For the first two modes, the signals are first transformed to the standardized brain source montage </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''BR_Brain Regions''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> (see chapter </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''"Review / Remontaging"''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">) before the summation of the spectral parameters is performed. This transformation of the data to a source montage optimally separates the activities from the different brain regions that generate overlapping signals at the scalp surface. DSA of scalp channels can be seen by selecting a recording (traditional) montage and selecting mode 3, current montage.</span></span>
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">The way in which signals are sub-sampled to obtain the density display can be modified, from the fastest sub-sampling to an averaged or maximum signal display. The color-coded display of the spectral values in frequency bins can be normalized to the percentage value relative to the sum over all frequency bins of each channel.</span></span>
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">The current position in the data file is indicated by the vertical dashed lines in the display.</span></span>
+
  
 
[[Image:Spectral (20).gif]]
 
[[Image:Spectral (20).gif]]
  
<span style="color:#3366ff;"><span style="color:#00000a;">The time scale shows minutes as small gray ticks (in real time - not time measured from file start). In the "</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''Hemispheric Comparison''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">" mode, the time scale appears in the middle, whereas it is displayed below the channels otherwise. Thicker gray ticks indicate five-minute marks, larger black ticks ten-minute-marks, and segment borders are displayed in red.</span></span>
+
The time scale shows minutes as small grey ticks (in real-time - not time measured from file start). In the "''Hemispheric Comparison''" mode, the time scale appears in the middle, whereas it is displayed below the channels otherwise. Thicker gray ticks indicate five-minute marks, larger black ticks ten-minute-marks, and segment borders are displayed in red.
  
 +
=== Setting the DSA Display Mode ===
  
==== <span style="color:#3366ff;"><span style="color:#00000a;">Setting the DSA Display Mode</span></span> ====
+
The data can be remontaged for display in three different ways using the first three toolbar buttons.
  
<span style="color:#3366ff;"><span style="color:#00000a;">The data can be remontaged for display in three different ways using the first three toolbar buttons.</span></span>
 
  
 +
[[Image:Spectral (21).gif]] '''Hemispheric Comparison (default option)'''
  
[[Image:Spectral (21).gif]]<span style="color:#3366ff;"><span style="color:#00000a;"> </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Hemispheric Comparison (default option)'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> &nbsp;</span></span>
+
Hemispheric comparison is activated by clicking on the '''leftmost''' toolbar button. The integrated activity of each hemisphere is shown. In this mode, the DSA window aligns with the event bar at the bottom of the main window to relate activity to the events marked in the event bar. The integrated activity of each hemisphere is calculated by first transforming the data to the standardized source montage ''BR_Brain'' ''Regions'', which is also available from the "<span style="color:#3366ff;">'''Src'''</span>" button in the BESA Research main window (see chapter ''"Review / Remontaging").'' Then the signals of all source channels in the left ('''L''') and the right ('''R''') hemispheres are summed up separately. This transformation of the data to a source montage optimally separates the activities from the different brain regions that are overlapped and smeared at the scalp surface.
  
<span style="color:#3366ff;"><span style="color:#00000a;">Hemispheric comparison is activated by clicking on the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''leftmost'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> toolbar button. The integrated activity of each hemisphere is shown. In this mode, the DSA window aligns with the event bar at the bottom of the main window to relate activity to the events marked in the event bar. The integrated activity of each hemisphere is calculated by first transforming the data to the standardized source montage </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''BR_Brain''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''Regions''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">, which is also available from the "</span></span><span style="color:#3366ff;">'''Src'''</span><span style="color:#3366ff;"><span style="color:#00000a;">" button in the BESA Research main window (see chapter </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''"Review / Remontaging").''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> Then the signals of all source channels in the left (</span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''L'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">) and the right (</span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''R'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">) hemispheres are summed up separately. This transformation of the data to a source montage optimally separates the activities from the different brain regions that are overlapped and smeared at the scalp surface.</span></span>
+
For MEG data, this option is not available.
  
<span style="color:#3366ff;"><span style="color:#00000a;">For MEG data, this option is not available.</span></span>
 
  
 +
[[Image:Spectral (22).gif]]''' Regional Comparison &nbsp;'''
  
[[Image:Spectral (22).gif]]<span style="color:#3366ff;"><span style="color:#00000a;">''' Regional Comparison &nbsp;'''</span></span>
+
This option is activated by clicking on the''' second''' toolbar button. The integrated activity of five brain regions is shown. The regions are:
  
<span style="color:#3366ff;"><span style="color:#00000a;">This option is activated by clicking on the</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''' second'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> toolbar button. The integrated activity of five brain regions is shown. The regions are:</span></span>
+
* '''FcpL, FcpR''', which sum all lateralized activity in the upper parts of the brain
 +
* '''TmpL, TmpR''', which sum all activity in the temporal regions of the brain
 +
* '''SagM''', which sum all activity in the sagittal midline regions of the brain (only shown if tick mark ''"Midline Channels"'' is on in <span style="color:#3366ff;">'''Montage Options'''</span>).
  
* <span style="color:#3366ff;"><span style="color:#00000a;">'''FcpL, FcpR'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">, which sum all lateralized activity in the upper parts of the brain</span></span>
+
In this mode, the DSA window is displayed in the right portion of the BESA Research main window. The integrated activity of each region is calculated by first transforming the data to the standardized source montage ''BR_Brain Regions'', which is also available from the <span style="color:#3366ff;">'''"Src" '''</span>button in the BESA Research main window (see chapter ''"Review / Remontaging''").
* <span style="color:#3366ff;"><span style="color:#00000a;">'''TmpL, TmpR'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">, which sum all activity in the temporal regions of the brain</span></span>
+
* <span style="color:#3366ff;"><span style="color:#00000a;">'''SagM'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">, which sum all activity in the sagittal midline regions of the brain (only shown if tick mark </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''"Midline Channels"''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> is on in </span></span><span style="color:#3366ff;">'''Montage Options'''</span><span style="color:#3366ff;"><span style="color:#00000a;">).</span></span>
+
  
 +
Then the signals of the source channels which belong to the corresponding region are summed up.
  
<div style="color:#00000a;"></div>
+
For MEG data, this option is not available.
  
<span style="color:#3366ff;"><span style="color:#00000a;">In this mode, the DSA window is displayed in the right portion of the BESA Research main window. The integrated activity of each region is calculated by first transforming the data to the standardized source montage </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''BR_Brain Regions''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">, which is also available from the </span></span><span style="color:#3366ff;">'''"Src" '''</span><span style="color:#3366ff;"><span style="color:#00000a;">button in the BESA Research main window (see chapter </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''"Review / Remontaging''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">").</span></span>
 
  
<span style="color:#3366ff;"><span style="color:#00000a;">Then the signals of the source channels which belong to the corresponding region are summed up.</span></span>
+
[[Image:Spectral (23).gif]] '''Current Montage'''
  
<span style="color:#3366ff;"><span style="color:#00000a;">For MEG data, this option is not available.</span></span>
+
With the '''third''' toolbar button, the Current Montage option is selected to display the spectra of the channels of the montage that was selected when the DSA window was opened. In this mode, the DSA window is displayed in the right portion of the BESA Research main window. If the current montage is changed in the BESA Research main window, the DSA display remains unchanged -''' Ändern'''.
  
  
<div style="color:#00000a;"></div>
+
[[Image:Spectral (24).gif]] '''Source Montage'''
  
[[Image:Spectral (23).gif]]<span style="color:#3366ff;"><span style="color:#00000a;"> </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Current Montage'''</span></span>
+
The four following buttons, which appear only in the hemispheric comparison window, allow for the selection of the montage underlying the display, based on the source montage ''BR_Brain Regions''. One of the buttons is always down, with '''BR''' as default.
  
<span style="color:#3366ff;"><span style="color:#00000a;">With the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''third'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> toolbar button, the Current Montage option is selected to display the spectra of the channels of the montage that was selected when the DSA window was opened. In this mode, the DSA window is displayed in the right portion of the BESA Research main window. If the current montage is changed in the BESA Research main window, the DSA display remains unchanged -</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''' Ändern'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">.</span></span>
+
In the case of '''BR''' (''Brain Regions''), the averages of all left-hand and right-hand side channels of the montage ''BR_Brain Regions'' are shown in the upper and lower channel, respectively, as indicated by the labels''' L''' and '''R'''.
  
 +
For '''TL''' (''Temporal Lobe''), the averages of the most important channels of the source montage ''TR_Temporal Regions'' are calculated and displayed in the upper and lower channels labelled '''L''' and '''R'''. The channels in question are TAL and TPL for the left-hand side and TAR and TPR for the right-hand side.
  
<div style="color:#00000a;"></div>
+
'''FP''' (''Frontoparietal'') is based on the source montage ''BR_Brain Regions'' and averages the source channels FL, CL, PL and FR, CR, PR, respectively, displaying them in channels '''L''' and '''R.'''
  
[[Image:Spectral (24).gif]]<span style="color:#3366ff;"><span style="color:#00000a;"> </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Source Montage'''</span></span>
+
'''SG''' (''Sagittal'') also uses the source montage ''BR_Brain Regions''. The mean of the frontal sagittal channels FpM, FM and CM is displayed in the upper channel F, the mean of the posterior sagittal channels CM, OpM and CM is shown in the lower channel '''P'''.
  
<span style="color:#3366ff;"><span style="color:#00000a;">The four following buttons, which appear only in the hemispheric comparison window, allow for the selection of the montage underlying the display, based on the source montage </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''BR_Brain Regions''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">. One of the buttons is always down, with </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''BR'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> as default.</span></span>
 
  
<span style="color:#3366ff;"><span style="color:#00000a;">In the case of </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''BR'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> (</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''Brain Regions''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">), the averages of all left-hand and right-hand side channels of the montage </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''BR_Brain Regions''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> are shown in the upper and lower channel, respectively, as indicated by the labels</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''' L'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> and </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''R'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">.</span></span>
+
[[Image:Spectral (25).gif]] '''Visualizing Differences'''
  
<span style="color:#3366ff;"><span style="color:#00000a;">For </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''TL'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> (</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''Temporal Lobe''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">), the averages of the most important channels of the source montage </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''TR_Temporal Regions''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> are calculated and displayed in the upper and lower channels labelled </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''L'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> and </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''R'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">. The channels in question are TAL and TPL for the left-hand side and TAR and TPR for the right-hand side.</span></span>
+
Many features of interest are lateralized in the brain and show up clearly when hemispheric regions are compared directly. This is achieved using the <span style="color:#3366ff;">'''Delta'''</span> toolbar button:
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''FP'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> (</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''Frontoparietal''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">) is based on the source montage </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''BR_Brain Regions''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> and averages the source channels FL, CL, PL and FR, CR, PR, respectively, displaying them in channels </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''L'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> and </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''R.'''</span></span>
+
This button enables subtraction of hemispherically homologue regions and is available for the standardized montage options "''Hemispheric Comparison"'' and "''Regional Comparison".''
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''SG'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> (</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''Sagittal''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">) also uses the source montage </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''BR_Brain Regions''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">. The mean of the frontal sagittal channels FpM, FM and CM is displayed in the upper channel F, the mean of the posterior sagittal channels CM, OpM and CM is shown in the lower channel </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''P'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">.</span></span>
+
'''Hemispheric Difference'''
  
 +
<div style="margin-left:1.27cm;margin-right:0cm;">The integrated activities of the hemispheres (calculated as in the ''Hemispheric Comparison'' option) are subtracted from one another. The differences between the activities are displayed. The channel '''L+''' shows signal at the frequencies and latencies where activity was higher in the left hemisphere. Frequencies and latencies where activity was higher in the right hemisphere show up in channel '''R+.'''</div>
  
<div style="color:#00000a;"></div>
+
'''Regional Difference'''
  
[[Image:Spectral (25).gif]]<span style="color:#3366ff;"><span style="color:#00000a;"> </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Visualizing Differences'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> &nbsp;</span></span>
+
<div style="margin-left:1.27cm;margin-right:0cm;">The integrated activity of four brain regions is calculated as in the ''Regional Comparison'' option excluding the midline sagittal region. Then the activities of homologous regions are subtracted from one another and this difference is displayed on the side where the activity is larger: Thus, the channel '''FcpL+''' only shows signal at frequencies and latencies where activity was higher in ''FcpL'' than in ''FcpR''. The signals in the other channels are calculated accordingly.</div>
  
<span style="color:#3366ff;"><span style="color:#00000a;">Many features of interest are lateralized in the brain and show up clearly when hemispheric regions are compared directly. This is achieved using the </span></span><span style="color:#3366ff;">'''Delta'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> toolbar button:</span></span>
 
  
<span style="color:#3366ff;"><span style="color:#00000a;">This button enables subtraction of hemispherically homologue regions and is available for the standardized montage options "</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''Hemispheric Comparison"''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> and "</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''Regional Comparison".''</span></span>
+
[[Image:Spectral (26).gif]] '''Epochs'''
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''Hemispheric Difference'''</span></span>
+
The epoch buttons allow the choice of time interval for browsing through the data.''' '''Either the whole file ("''All")'' or intervals of 15, 20 or 30 minutes, with one additional''' '''minute of overlap with the following window, are shown. The default is 20 minutes,''' '''which corresponds best to the length of the standard EEG. For continuous data files,''' '''interval start times are chosen in relation to the full hour (e.g. 18:00, 18:20 and''' '''18:40 for the 20-minute window). Only the first and last windows are positioned such''' '''as to start and end with file start and end, respectively.
  
<div style="margin-left:1.27cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">The integrated activities of the hemispheres (calculated as in the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''Hemispheric Comparison''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> option) are subtracted from one another. The differences between the activities are displayed. The channel </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''L+'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> shows signal at the frequencies and latencies where activity was higher in the left hemisphere. Frequencies and latencies where activity was higher in the right hemisphere show up in channel </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''R+.'''</span></span></div>
+
The default epoch is "All" for files shorter than 20 minutes and "20" for longer files. For files no longer than 15 minutes, all buttons are greyed (with "All" automatically selected). Otherwise, "All" and those buttons which allow paging are enabled.
  
<span style="color:#3366ff;"><span style="color:#00000a;">'''Regional Difference'''</span></span>
+
In the case of "All" and files of long duration, a progress bar may appear. Hitting "<span style="color:#3366ff;">'''Abort'''</span>" will result in the display of those portions of the data that have already been calculated.
  
<div style="margin-left:1.27cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">The integrated activity of four brain regions is calculated as in the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''Regional Comparison''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> option excluding the midline sagittal region. Then the activities of homologous regions are subtracted from one another and this difference is displayed on the side where the activity is larger: Thus, the channel </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''FcpL+'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> only shows signal at frequencies and latencies where activity was higher in </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''FcpL''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> than in </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''FcpR''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">. The signals in the other channels are calculated accordingly.</span></span></div>
+
The epoch buttons are grayed in the zoom mode.
  
  
<div style="color:#00000a;"></div>
+
[[Image:Spectral (27).gif]] '''Paging'''
  
[[Image:Spectral (26).gif]]<span style="color:#3366ff;"><span style="color:#00000a;">''' Epochs'''</span></span>
+
Page backward / forward one interval of the currently selected length. The page buttons are enabled only if the position in the file, and the file length, allow to browse to an earlier / later interval.
  
<span style="color:#3366ff;"><span style="color:#00000a;">The epoch buttons allow the choice of time interval for browsing through the data.</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''' '''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">Either the whole file ("</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''All")''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> or intervals of 15, 20 or 30 minutes, with one additional</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''' '''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">minute of overlap with the following window, are shown. The default is 20 minutes,</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''' '''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">which corresponds best to the length of the standard EEG. For </span></span><span style="color:#3366ff;"><span style="color:#00000a;">continuous data files,</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''' '''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">interval start times are chosen in relation to the full hour (e.g. 18:00, 18:20 and</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''' '''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">18:40 for the 20-minute window). Only the first and last window are positioned such</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''' '''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">as to start and end with file start and end, respectively.</span></span>
+
The page buttons are grayed in the zoom mode.
  
<span style="color:#3366ff;"><span style="color:#00000a;">The default epoch is "All" for files shorter than 20 minutes and "20" for longer files. For files no longer than 15 minutes, all buttons are grayed (with "All" automatically selected). Otherwise, "All" and those buttons which allow paging are enabled.</span></span>
+
=== Display Options ===
  
<span style="color:#3366ff;"><span style="color:#00000a;">In the case of "All" and files of long duration, a progress bar may appear. Hitting "</span></span><span style="color:#3366ff;">'''Abort'''</span><span style="color:#3366ff;"><span style="color:#00000a;">" will result in the display of those portions of the data that have already been calculated.</span></span>
+
To emphasize features of interest, the DSA display can be optimized to normalize and scale the spectral data in different ways.
  
<span style="color:#3366ff;"><span style="color:#00000a;">The epoch buttons are grayed in the zoom mode.</span></span>
 
  
 +
[[Image:Spectral (28).gif]] '''Percentage Button'''
  
[[Image:Spectral (27).gif]]<span style="color:#3366ff;"><span style="color:#00000a;"> </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Paging'''</span></span>
+
The status of the <span style="color:#3366ff;">'''percentage'''</span> button on the toolbar determines how the color-coded display of the intensity values in frequency bins is normalized. The options are:
  
<span style="color:#3366ff;"><span style="color:#00000a;">Page backward / forward one interval of the currently selected length. The page buttons are enabled only if the position in the file, and the file length, allow to browse to an earlier / later interval.</span></span>
 
  
<span style="color:#3366ff;"><span style="color:#00000a;">The page buttons are grayed in the zoom mode.</span></span>
+
* '''Absolute Value''' (button is up):
  
 +
If this option is selected, the absolute amplitude or power intensity values are displayed.
  
==== <span style="color:#3366ff;"><span style="color:#00000a;">Display Options</span></span> ====
 
  
<span style="color:#3366ff;"><span style="color:#00000a;">To emphasize features of interest, the DSA display can be optimized to normalize and scale the spectral data in different ways.</span></span>
+
* '''Percentage''' (default option, button is down)
  
 +
If this option is selected, the intensity value for each sampling time and frequency is normalized to the summed intensities over all frequency bins averaged over all channels for that sampling time. Thus, the displayed DSA amplitude/power for one frequency bin is its contribution (in %) to the overall activity at that sampling time.
  
[[Image:Spectral (28).gif]]<span style="color:#3366ff;"><span style="color:#00000a;"> </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Percentage Button'''</span></span>
+
The effect when applying the percentage normalization to data is shown in the example below, where the hemispheric difference with and without percentage normalization is shown:
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">The status of the</span></span><span style="color:#3366ff;">''' percentage '''</span><span style="color:#3366ff;"><span style="color:#00000a;">button on the toolbar determines how the color-coded display of the intensity values in frequency bins is normalized. The options are:</span></span>
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">'''Absolute Value'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> (button is up):</span></span>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="margin-left:0cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">If this option is selected, the absolute amplitude or power intensity values are displayed.</span></span></div>
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">'''Percentage'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> (default option, button is down)</span></span>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="margin-left:0 cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">If this option is selected, the intensity value for each sampling time and frequency is normalized to the summed intensities over all frequency bins averaged over all channels for that sampling time. Thus, the displayed DSA amplitude/power for one frequency bin is its contribution (in %) to the overall activity at that sampling time.</span></span></div>
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">The effect when applying the percentage normalization to data is shown in the example below, where hemispheric difference with and without percentage normalization is shown:</span></span>
+
 
+
  
 
[[Image:Spectral (29).gif]]
 
[[Image:Spectral (29).gif]]
 
 
<div style="color:#00000a;"></div>
 
  
 
[[Image:Spectral (30).gif]]
 
[[Image:Spectral (30).gif]]
  
 +
''Hemispheric difference display without percentage normalization (top) and with percentage normalization (bottom). The decreasing 9 to 7-Hz seizure activity in the right hemisphere emerges better from the background with percentage normalization.''
  
<span style="color:#3366ff;"><span style="color:#00000a;">''Hemispheric difference display without percentage normalization (top) and with percentage normalization (bottom). The decreasing 9 to 7-Hz seizure activity in the right hemisphere emerges better from the background with percentage normalization.''</span></span>
 
  
 +
[[Image:Spectral (31).gif]] '''Amplitude Button'''
  
[[Image:Spectral (31).gif]]]<span style="color:#3366ff;"><span style="color:#00000a;">''' Amplitude Button &nbsp;'''</span></span>
+
The amplitude button toggles between the display of amplitude and power. The default setting is on amplitude (button is pressed).
  
<span style="color:#3366ff;"><span style="color:#00000a;">The amplitude button toggles between display of amplitude and power. The default setting is on amplitude (button is pressed).</span></span>
+
If amplitude is selected, displayed intensities are in µV/Hz, fT/Hz, fT/(cmHz), or nAm/Hz.
  
<span style="color:#3366ff;"><span style="color:#00000a;">If amplitude is selected, displayed intensities are in µV/Hz, fT/Hz, fT/(cmHz), or nAm/Hz.</span></span>
+
If power is selected, displayed intensities are in µV²/Hz, fT²/Hz, fT²/(cm²Hz), or nAm²/Hz.
  
<span style="color:#3366ff;"><span style="color:#00000a;">If power is selected, displayed intensities are in µV²/Hz, fT²/Hz, fT²/(cm²Hz), or nAm²/Hz.</span></span>
 
  
 +
[[Image:Spectral (32).gif]] '''Original Data and Baseline Normalization'''
  
[[Image:Spectral (32).gif]]]<span style="color:#3366ff;"><span style="color:#00000a;"> </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Original Data and Baseline Normalization'''</span></span>
+
By default, the original data are shown (button D down). If option B (baseline normalization) is chosen, amplitude/power for each sampling time and frequency and each remontaged channel is normalized by the sum over all sampling times for the given frequency.
  
<span style="color:#3366ff;"><span style="color:#00000a;">By default, the original data are shown (button D down). If option B (baseline normalization) is chosen, amplitude/power for each sampling time and frequency and each remontaged channel is normalized by the sum over all sampling times for the given frequency.</span></span>
+
This can sometimes help to suppress or intermittent or continuous signals of constant frequency.
  
<span style="color:#3366ff;"><span style="color:#00000a;">This can sometimes help to suppress or intermittent or continuous signals of constant frequency.</span></span>
+
[[Image:Spectral (33).gif]]
  
 +
[[Image:Spectral (34).gif]]
  
[[Image:Spectral (33).gif]]]
+
''Hemispheric comparison display without (top) and with (bottom) additional baseline normalization, which enhances the contrast between seizures and background for this example.''
  
  
[[Image:Spectral (34).gif]]]
+
[[Image:Spectral (35).gif]] '''Setting the Display Sampling'''
  
 +
Since the data file features far more sampling times than pixels available for DSA display, a sub-sampling is required to compress data file sections into the pixels shown in the DSA. The method how this is achieved can be chosen with the sampling popup menu. Using the sampling button in the toolbar, the type of sampling of data for the display can be chosen.
  
<span style="color:#3366ff;"><span style="color:#00000a;">''Hemispheric comparison display without (top) and with (bottom) additional baseline normalization, which enhances the contrast between seizures and background for this example.''</span></span>
+
Three options are possible:
  
 +
* '''Sub-sample Epochs:'''
  
<div style="color:#00000a;"></div>
+
For each displayed pixel, one sample second in the middle of the represented time interval is selected. For this sample second, the activities are displayed. This is the fastest way to obtain the DSA display. The principle is illustrated in the graphics. In this example, only every fourth sample is computed for the DSA display.
  
[[Image:Spectral (35).gif]]]<span style="color:#3366ff;"><span style="color:#00000a;">''' Setting the Display Sampling &nbsp;'''</span></span>
+
[[Image:Spectral (36).gif]]
  
<span style="color:#3366ff;"><span style="color:#00000a;">Since the data file features far more sampling times than pixels available for DSA display, a sub-sampling is required to compress data file sections into the pixels shown in the DSA. The method how this is achieved can be chosen with the sampling popup menu. Using the sampling button in the toolbar, the type of sampling of data for the display can be chosen.</span></span>
 
  
<span style="color:#3366ff;"><span style="color:#00000a;">Three options are possible:</span></span>
+
* '''Average Epochs''' (default option):
  
* <span style="color:#3366ff;"><span style="color:#00000a;">'''Sub-sample Epochs:'''</span></span>
+
For each displayed pixel, the average over all seconds which are summarized in that pixel is calculated for each frequency bin. In this way, it is ensured that sudden bursts of activity are not accidentally missed out. The principle is illustrated in the graphics.
  
<div style="color:#00000a;"></div>
+
[[Image:Spectral (37).gif]]
  
<div style="margin-left:0.635cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">For each displayed pixel, one sample second in the middle of the represented time interval is selected. For this sample second, the activities are displayed. This is the fastest way to obtain the DSA display. The principle is illustrated in the graphics. In this example, only every fourth sample is computed for the DSA display.</span></span></div>
 
  
 +
* '''Select Maximum:'''
  
<div style="margin-left:0.635cm;margin-right:0cm;">[[Image:Spectral (36).gif]]]</div>
+
For each displayed pixel, the maximum over all seconds which are summarized in that pixel is calculated for each frequency bin. This enhances the impact of sudden bursts of activity in the display. The principle is illustrated in the graphics.
  
 +
[[Image:Spectral (38).gif]]
  
* <span style="color:#3366ff;"><span style="color:#00000a;">'''Average Epochs'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> (default option):</span></span>
 
  
<div style="color:#00000a;"></div>
+
[[Image:Spectral (39).gif]] '''Scaling Buttons'''
  
<div style="margin-left:0.635cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">For each displayed pixel, the average over all seconds which are summarized in that pixel is calculated for each frequency bin. In this way, it is ensured that sudden bursts of activity are not accidentally missed out. The principle is illustrated in the graphics.</span></span></div>
+
The left button (+) scales intensities up, the right one (-) scales them down. Each time one of the buttons is pressed, scaling is increased/decreased by a factor of ³√2. This means that pressing the same button 3 times results in doubling / halving the normalization intensity.
  
  
<span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (37).gif]]]</span></span>
+
'''Zooming the Display'''
  
 +
You can use the left mouse button to drag a rectangle anywhere in the display. A popup menu containing the entries "Zoom In" and "Zoom Out" appears, from which you can choose to zoom into the selected area. In the zoom mode, the epoch and page buttons are up and grayed.
  
* <span style="color:#3366ff;"><span style="color:#00000a;">'''Select Maximum:'''</span></span>
+
[[Image:Spectral (40).gif]] Zooming out can be done using the Zoom Out button, which is shown only if the display is zoomed. The display then returns to the former view. Otherwise, dragging another rectangle reopens the popup menu.
  
<div style="color:#00000a;"></div>
 
  
<div style="margin-left:0.635cm;margin-right:0cm;"><span style="color:#3366ff;"><span style="color:#00000a;">For each displayed pixel, the maximum over all seconds which are summarized in that pixel is calculated for each frequency bin. This enhances the impact of sudden bursts of activity in the display. The principle is illustrated in the graphics.</span></span></div>
+
'''Note:''' for further details on Spectral Analysis (FFT and DSA) in BESA Research, please refer to the Help Chapter ‘''Spectral Analysis’''.
  
 
+
=== Tutorial ===
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (38).gif]]]</span></span>
+
 
+
 
+
 
+
 
+
<div style="color:#00000a;"></div>
+
 
+
[[Image:Spectral (39).gif]]]<span style="color:#3366ff;"><span style="color:#00000a;"> </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Scaling Buttons &nbsp;'''</span></span>
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">The left button (+) scales intensities up, the right one (-) scales them down. Each time one of the buttons is pressed, scaling is increased/decreased by a factor of ³</span></span><span style="color:#3366ff;"><span style="color:#00000a;">√</span></span><span style="color:#3366ff;"><span style="color:#00000a;">2. This means that pressing the same button 3 times results in doubling / halving the normalization intensity.</span></span>
+
 
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">'''Zooming the Display'''</span></span>
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">You can use the left mouse button to drag a rectangle anywhere in the display. A popup menu containing the entries "Zoom In" and "Zoom Out" appears, from which you can choose to zoom into the selected area. In the zoom mode, the epoch and page buttons are up and grayed.</span></span>
+
 
+
[[Image:Spectral (40).gif]]]<span style="color:#3366ff;"><span style="color:#00000a;"> Zooming out can be done using the Zoom Out button, which is shown only if the display is zoomed. The display then returns to the former view. Otherwise, dragging another rectangle reopens the popup menu.</span></span>
+
 
+
 
+
<span style="color:#3366ff;"><span style="color:#00000a;">'''Note:'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> for further details on Spectral Analysis (FFT and DSA) in BESA Research, please refer to the Help Chapter ‘</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''Spectral Analysis’''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">.</span></span>
+
 
+
 
+
==== <span style="color:#3366ff;"><span style="color:#00000a;">Tutorial</span></span> ====
+
  
 
<span style="color:#3366ff;"><span style="color:#00000a;">This tutorial will introduce the main features of the DSA module. A detailed description of all features can be found in the reference section.</span></span>
 
<span style="color:#3366ff;"><span style="color:#00000a;">This tutorial will introduce the main features of the DSA module. A detailed description of all features can be found in the reference section.</span></span>
Line 659: Line 561:
  
 
<span style="color:#3366ff;"><span style="color:#00000a;">3. Press the push button "</span></span><span style="color:#3366ff;">'''DSA"'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> at the top of the main window. The DSA window opens. In the DSA display, the horizontal axis represents time, whereas the vertical axis represents frequency (from 1 to 25 Hz). </span></span>
 
<span style="color:#3366ff;"><span style="color:#00000a;">3. Press the push button "</span></span><span style="color:#3366ff;">'''DSA"'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> at the top of the main window. The DSA window opens. In the DSA display, the horizontal axis represents time, whereas the vertical axis represents frequency (from 1 to 25 Hz). </span></span>
 +
  
 
<span style="color:#3366ff;"><span style="color:#00000a;">With the </span></span><span style="color:#3366ff;">'''Amplitude button'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> </span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (31).gif]]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> down, and the </span></span><span style="color:#3366ff;">'''Percentage button'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> </span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (28).gif]]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> released, the following image is obtained:</span></span>
 
<span style="color:#3366ff;"><span style="color:#00000a;">With the </span></span><span style="color:#3366ff;">'''Amplitude button'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> </span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (31).gif]]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> down, and the </span></span><span style="color:#3366ff;">'''Percentage button'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> </span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (28).gif]]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> released, the following image is obtained:</span></span>
  
<div style="color:#00000a;margin-left:1.27cm;margin-right:0cm;"></div>
+
[[Image:Spectral (41).gif]]]
 
+
<div style="color:#00000a;margin-left:1.27cm;margin-right:0cm;"></div>
+
 
+
<div style="color:#00000a;margin-left:1.27cm;margin-right:0cm;">[[Image:Spectral (41).gif]]]</div>
+
  
 
<span style="color:#3366ff;"><span style="color:#00000a;">Four seizures can be distinguished in the display (red blocks of large EEG activity). Only two source channels, L and R, are shown, one for each hemisphere. These channels are obtained by calculating the mean left and right source activities using the 5 left and 5 right regional sources of brain source montage BR_BrainRegions to reduce overlap by volume conduction.</span></span>
 
<span style="color:#3366ff;"><span style="color:#00000a;">Four seizures can be distinguished in the display (red blocks of large EEG activity). Only two source channels, L and R, are shown, one for each hemisphere. These channels are obtained by calculating the mean left and right source activities using the 5 left and 5 right regional sources of brain source montage BR_BrainRegions to reduce overlap by volume conduction.</span></span>
Line 675: Line 574:
 
<span style="color:#3366ff;"><span style="color:#00000a;">5. '''Move the mouse cursor'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> over the data display. Current time and frequency are shown below the color bar and next to the mouse cursor, respectively. </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Click'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> on the red-nose tip (~6.5 Hz) around +00:02:09 (12:02:09 AM) in the right source channel (R) to move the EEG display to this epoch at the beginning of the second seizure. A comparison of the traces of the left (traces 1-4) and right (traces 5-8) temporal lobe sources (</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''Src/TR_Temporal Region''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">) confirms the lateralization of the seizure onset to the right hemisphere.</span></span>
 
<span style="color:#3366ff;"><span style="color:#00000a;">5. '''Move the mouse cursor'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> over the data display. Current time and frequency are shown below the color bar and next to the mouse cursor, respectively. </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Click'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> on the red-nose tip (~6.5 Hz) around +00:02:09 (12:02:09 AM) in the right source channel (R) to move the EEG display to this epoch at the beginning of the second seizure. A comparison of the traces of the left (traces 1-4) and right (traces 5-8) temporal lobe sources (</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''Src/TR_Temporal Region''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">) confirms the lateralization of the seizure onset to the right hemisphere.</span></span>
  
 
+
[[Image:Spectral (43).gif]]
<div style="color:#00000a;margin-left:0.635cm;margin-right:0cm;"></div>
+
 
+
<div style="color:#00000a;margin-left:0.635cm;margin-right:0cm;">[[Image:Spectral (43).gif]]</div>
+
  
  
 
<span style="color:#3366ff;"><span style="color:#00000a;">6. '''Press'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''second-left'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> toolbar button (</span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (44).gif]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;">) to switch to the display mode </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''''Regional Comparison''''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">. The DSA display moves to the right of the main window and displays the spectral densities of five regions by summarizing the activities in the lateralized upper parts of the brain, in the temporal regions bilaterally, and in the midline regions.</span></span>
 
<span style="color:#3366ff;"><span style="color:#00000a;">6. '''Press'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''second-left'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> toolbar button (</span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (44).gif]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;">) to switch to the display mode </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''''Regional Comparison''''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">. The DSA display moves to the right of the main window and displays the spectral densities of five regions by summarizing the activities in the lateralized upper parts of the brain, in the temporal regions bilaterally, and in the midline regions.</span></span>
 
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
  
 
[[Image:Spectral (45).gif]]
 
[[Image:Spectral (45).gif]]
Line 715: Line 583:
  
 
<span style="color:#3366ff;"><span style="color:#00000a;">7. '''Press'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''third'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> toolbar button (</span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (46).gif]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;">) to switch to the display mode </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''''Current Montage'. '''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">The DSA display on the right of the main window now displays the spectral densities of all channels in the current montage. Enlarge the DSA window by using the full-screen symbol at the top right. It is very apparent now that the seizures start with an interval of increased activity in the 8-5 Hz range. This activity is most noticeable in the anterior three source channels of the right temporal lobe (TBvr_TR, TApr_TR, and TArR_TR). &nbsp;&nbsp;&nbsp;</span></span>
 
<span style="color:#3366ff;"><span style="color:#00000a;">7. '''Press'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''third'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> toolbar button (</span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (46).gif]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;">) to switch to the display mode </span></span><span style="color:#3366ff;"><span style="color:#00000a;">''''Current Montage'. '''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">The DSA display on the right of the main window now displays the spectral densities of all channels in the current montage. Enlarge the DSA window by using the full-screen symbol at the top right. It is very apparent now that the seizures start with an interval of increased activity in the 8-5 Hz range. This activity is most noticeable in the anterior three source channels of the right temporal lobe (TBvr_TR, TApr_TR, and TArR_TR). &nbsp;&nbsp;&nbsp;</span></span>
 
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
  
 
[[Image:Spectral (47).gif]]
 
[[Image:Spectral (47).gif]]
Line 768: Line 590:
  
 
<span style="color:#3366ff;"><span style="color:#00000a;">9. '''Close the DSA window'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> using the close symbol at the top right. Press pushbutton </span></span><span style="color:#3366ff;">''''Vir''''</span><span style="color:#3366ff;"><span style="color:#00000a;"> to select the virtual </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Horizontal Bipolar'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> montage. Press the pushbutton </span></span><span style="color:#3366ff;">'''DSA'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> to recalculate DSA for the new current montage, then press the Amplitude button ( </span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (31).gif]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> ) and the third toolbar button (</span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (23).gif]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;">). You can now see that the scalp montage, although optimized for temporal-basal activity shows a poor separation between hemispheres.</span></span>
 
<span style="color:#3366ff;"><span style="color:#00000a;">9. '''Close the DSA window'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> using the close symbol at the top right. Press pushbutton </span></span><span style="color:#3366ff;">''''Vir''''</span><span style="color:#3366ff;"><span style="color:#00000a;"> to select the virtual </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Horizontal Bipolar'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> montage. Press the pushbutton </span></span><span style="color:#3366ff;">'''DSA'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> to recalculate DSA for the new current montage, then press the Amplitude button ( </span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (31).gif]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> ) and the third toolbar button (</span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (23).gif]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;">). You can now see that the scalp montage, although optimized for temporal-basal activity shows a poor separation between hemispheres.</span></span>
 
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
  
 
[[Image:Spectral (49).gif]]
 
[[Image:Spectral (49).gif]]
Line 783: Line 595:
  
 
<span style="color:#3366ff;"><span style="color:#00000a;">10. '''Press'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''second-left'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> toolbar button ( </span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (44).gif]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> ) to select the menu entry </span></span><span style="color:#3366ff;">''''Regional Comparison''''</span><span style="color:#3366ff;"><span style="color:#00000a;">. </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Press'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> the </span></span><span style="color:#3366ff;">''''Delta''''</span><span style="color:#3366ff;"><span style="color:#00000a;"> button ( </span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (25).gif]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> ) to switch to regional difference. The channels now show the difference between activities in the homologous brain regions. Then </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''press'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> the </span></span><span style="color:#3366ff;">'''Display '''</span><span style="color:#3366ff;"><span style="color:#00000a;">button (</span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (50).gif]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;">) to switch to the display mode</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''' 'Percentage''''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">. Now, the relative spectral amplitude in each frequency bin and time point is displayed.</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''' Switch'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> to displaying </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''spectral power'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> by releasing the </span></span><span style="color:#3366ff;">'''Power'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> button ( </span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (31).gif]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> ). Adjust the scaling to 16% at maximum intensity using the </span></span><span style="color:#3366ff;">'''scaling'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> toolbar buttons or the </span></span><span style="color:#3366ff;">'''cursor up-down'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> keys.</span></span>
 
<span style="color:#3366ff;"><span style="color:#00000a;">10. '''Press'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''second-left'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> toolbar button ( </span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (44).gif]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> ) to select the menu entry </span></span><span style="color:#3366ff;">''''Regional Comparison''''</span><span style="color:#3366ff;"><span style="color:#00000a;">. </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''Press'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> the </span></span><span style="color:#3366ff;">''''Delta''''</span><span style="color:#3366ff;"><span style="color:#00000a;"> button ( </span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (25).gif]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> ) to switch to regional difference. The channels now show the difference between activities in the homologous brain regions. Then </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''press'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> the </span></span><span style="color:#3366ff;">'''Display '''</span><span style="color:#3366ff;"><span style="color:#00000a;">button (</span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (50).gif]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;">) to switch to the display mode</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''' 'Percentage''''</span></span><span style="color:#3366ff;"><span style="color:#00000a;">. Now, the relative spectral amplitude in each frequency bin and time point is displayed.</span></span><span style="color:#3366ff;"><span style="color:#00000a;">''' Switch'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> to displaying </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''spectral power'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> by releasing the </span></span><span style="color:#3366ff;">'''Power'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> button ( </span></span><span style="color:#3366ff;"><span style="color:#00000a;">[[Image:Spectral (31).gif]]</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> ). Adjust the scaling to 16% at maximum intensity using the </span></span><span style="color:#3366ff;">'''scaling'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> toolbar buttons or the </span></span><span style="color:#3366ff;">'''cursor up-down'''</span><span style="color:#3366ff;"><span style="color:#00000a;"> keys.</span></span>
 
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
 
<div style="color:#00000a;"></div>
 
  
 
[[Image:Spectral (51).gif]]
 
[[Image:Spectral (51).gif]]
Line 809: Line 603:
 
<span style="color:#3366ff;"><span style="color:#00000a;">11. Use the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''left mouse button'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> to drag a rectangle around the beginning of the fourth seizure in channel "TmpR+". From the popup menu that appears, select "Zoom In". The display is zoomed to show just the selected area. The seizure onset of the 4th seizure is visible as a decelerating 7Hz oscillation in the right temporal region. Use the right mouse button to zoom out again.</span></span>
 
<span style="color:#3366ff;"><span style="color:#00000a;">11. Use the </span></span><span style="color:#3366ff;"><span style="color:#00000a;">'''left mouse button'''</span></span><span style="color:#3366ff;"><span style="color:#00000a;"> to drag a rectangle around the beginning of the fourth seizure in channel "TmpR+". From the popup menu that appears, select "Zoom In". The display is zoomed to show just the selected area. The seizure onset of the 4th seizure is visible as a decelerating 7Hz oscillation in the right temporal region. Use the right mouse button to zoom out again.</span></span>
  
 +
[[Image:Spectral (52).gif]]
  
  
<div style="color:#00000a;"></div>
+
This concludes the tutorial on density spectral arrays. It gave a brief introduction into the ways in which the DSA can be used in combination with traditional and brain source montages, and demonstrated its abilities to quickly identify epochs and regions of interest in EEG data files.
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
<div style="color:#00000a;"></div>
+
 
+
[[Image:Spectral (52).gif]]
+
  
 +
[[Category:Research Manual]]
  
<span style="color:#3366ff;"><span style="color:#00000a;">This concludes the tutorial on density spectral arrays. It gave a brief introduction into the ways in which the DSA can be used in combination with traditional and brain source montages, and demonstrated its abilities to quickly identify epochs and regions of interest in EEG data files.</span></span>
+
{{BESAManualNav}}

Latest revision as of 13:42, 2 November 2021

Module information
Modules BESA Research Basic or higher
Version BESA Research 6.1 or higher

Spectral Analysis - Introduction

There are two different types of spectral analysis in BESA Research:

  1. A Fast Fourier Transform (FFT) computes the total spectral content of a certain data interval, usually a few seconds or minutes long. This interval can be
    • a short data block of interest, typically a few seconds
    • an extended time range, e.g. between two markers or the whole data file ('mean FFT')
  2. Density spectral arrays (DSA) provide an overview of the temporal evolution of spectral activity over longer epochs (here: 15, 20 or 30 minutes) or the whole data file. DSA is useful for reviewing long recordings, since epochs where changes of frequency distribution or amplitudes occur can be identified at a glance.

FFT

The Fast Fourier Transformation (FFT) can be applied to a marked region, the data displayed on the screen, over a larger time range in the data between two markers, over marked epochs, or the whole EEG, in order to examine the frequency content of a signal. Results of the FFT can be viewed in a variety of ways, including amplitude and power spectra, amplitude and power in frequency bands, and these results may be printed or written to data files in ASCII format. The previously calculated FFT spectrum may be redisplayed. The current FFT can be saved to a binary file and reloaded. Topographic maps of amplitude, power, and phase can be plotted.


FFT Computation and Display

Two FFT computations are available in BESA Research:


FFT over a short data block of interest

To start an FFT calculation, highlight a data block by left mouse click and drag. If no block is highlighted, the FFT will be performed over the time range shown on the display. Apply one of the following:

  1. Right-click into the marked block and select the item FFT.
  2. Type the HotKey F.
  3. Select the item FFT-Spectrum in the Process menu (Alt+P, F).


Spectral (2).gif      Spectral (1).gif


Note: It is not possible to select the FFT process if the region to be processed contains less than 128 samples. This can occur, for instance, if the time range of a highlighted region is too short.

Note: When an FFT is selected, BESA Research displays the results for the current montage on the screen. In the background, the program also performs the FFT on 81 standard interpolated, average referenced channels in the case of EEG and on the average referenced data in the case of MEG. When FFT results are saved to a file, you have the choice of saving either the current montage or the 81 interpolated, average referenced channels (only for EEG). Maps of the FFT results are always based on the average referenced data. This is necessary to ensure that electrodes are given equal weights in the nonlinear transformation to power or amplitude (= root of power).

For an FFT over a marked block or the whole screen, no parameters have to be specified. Internally, BESA Research preprocesses the selected data segment for the FFT in two steps:

  1. A window function is multiplied with the data to attenuate the amplitudes at the ends to zero
  2. The number of samples is increased by interpolation (if necessary) to make it a power of 2.

This preprocessing of a highlighted data segment is illustrated in the figure below:

Spectral (3).gif

The highlighted block constitutes 80% of a window of width 100%. A cosine squared (cos²) window of width 20% of the total is applied at the edges, so that the signal amplitude is attenuated to 50% at the edges of the marked block, and zero at the edges of the window. Then we take the number of time samples in the window and select the next higher power of 2 (up to 2^15 = 32768). Using spline interpolation, the data in the window are converted to this larger number of points, and the FFT is applied. If the number of points is greater than 32768, spline interpolation is used to reduce the number to 32768. In this case, to avoid aliasing, the data are low-pass filtered at a frequency corresponding to ¼ of the new sampling rate.

If the FFT is applied to the data displayed on the screen, windowing is similar to that for the highlighted block, except that no data outside the block are included: the cosine squared window is applied so that the signal amplitude is attenuated to zero at the edges of the display.

Mean FFT Spectrum over an extended time range

To start a mean FFT over an extended time range, e.g. between markers or over the whole data file, select the item Mean FFT-Spectrum in the Process menu (Alt+P M).

MeanFFT Dialog.png


In the upper section of the Mean FFT dialog box the range on which the FFT is performed can be set:

  1. on the whole EEG
  2. on all marked epochs within the EEG
  3. on all marked epochs with a specific label
  4. on a time range delimited by two markers
  5. on all epochs delimited by two markers
  6. over triggers generated by the ERP module; mean FFT over triggers is only available if the mean FFT is called from the ERP module

Ranges that are not currently available (e.g. if no epochs or no markers are defined) are greyed out.

The mean FFT consists of a set of FFTs from overlapping data segments spanning the selected time range. Each data segment has a fixed width, defined as a power of 2 sampling points, that can be selected under Block Size / Points per Block: In the center of the options window, the number of points per FFT block is selected. Selection can be 128, 256, 512, or 1024 points. The block width influences in particular the contribution to the spectrum of low frequencies: the wider the block, the lower the frequencies that can be represented. The lowest frequency is given by 1/(block width in seconds). Thus, if you have recorded data with a high sampling rate, a wider window is necessary to compute low frequencies. Note: For each block size in samples, the corresponding width in seconds is specified in brackets.

The lower section of the options window determines amplitude and gradient thresholds for including a block in the mean FFT. If signal amplitudes exceed the amplitude threshold or the difference of two consecutive signal amplitudes exceeds the gradient threshold, the block will be omitted. Different thresholds may be set for each channel type (in the above example, scalp and polygraphic channels).

Press OK in the options window to start the computation of the mean FFT. Computation can be interrupted by pressing any key. The interrupt has to be confirmed and may be cancelled to resume the mean FFT calculation. The section “FFT Covariance” allows to compute the FFT covariance over the data range selected. If the check box “Covariance Spectrum” is checked, a text file (BESA vectorized ASCII format) will be written after the computation. The file can be loaded into BESA Research again or can be analysed externally. The file has the naming convention: [basename]FFTCovSvdBack_[MtgName].avr Internally, the mean FFT is performed over the current montage. The covariance matrix is computed in frequency space. The steps are: For each epoch to be added to the mean covariance matrix:

  1. Average reference for EEG, MAG, and GRA data (if the single montage channels box is not checked)
  2. Resample data to 256 Hz
  3. Compute FFT
  4. Add to FFT covariance matrix (either sum over all channels, or individually for each montage channel if that box is checked)

Then, a singular value decomposition is performed on the FFT covariance of each channel, to obtain the (complex) eigenvectors. The newly arranged matrix of eigenvectors is then inverse Fourier transformed to obtain waveforms for each of the components. These are written to file.

Note on computational steps: Each data segment overlaps 50% with the next segment and is multiplied by a cosine squared (cos² window, as shown at the bottom of the figure below). This combination of overlap and windowing ensures that each time point contributes equally to the mean spectrum (since cos²(x) + sin²(x) = 1). Because mean spectra are computed, phase information is not available.

Spectral (5).gif


Note that time ranges marked as artifacts are not included in the computation of the mean FFT. These time ranges are not excluded when computing the FFT of a marked block or of the displayed data.

The section “FFT Covariance” allows to compute the FFT covariance over the data range selected.

If the check box “Covariance Spectrum” is checked, a text file (BESA vectorized ASCII format) will be written after the computation. The file can be loaded into BESA Research again or can be analysed externally.

The file has the naming convention: [basename]FFTCovSvdBack_[MtgName].avr

Internally, the mean FFT is performed over the current montage. The covariance matrix is computed in frequency space.

The steps are: For each epoch to be added to the mean covariance matrix:

   1) Average reference for EEG, MAG, and GRA data (if the single montage channels box is                                
      not checked)
   2) Resample date to 256 Hz
   3) Compute FFT
   4) Add to FFT covariance matrix (either sum over all channels, or individually for      
      each montage channel if that box is checked)

Then, a singular value decomposition is performed on the FFT covariance of each channel, to obtain the (complex) eigenvectors. The newly arranged matrix of eigenvectors is then inverse Fourier transformed to obtain waveforms for each of the components. These are written to file.

Redisplaying the previous FFT

The results of the previously calculated FFT spectrum can be redisplayed by selecting the item Previous FFT-Spectrum in the Process menu or by typing the hotkey Ctrl+F. It is not possible to recall the previous FFT if there was a change in

  • the montage for which the FFT was calculated
  • additional or artifact channels
  • bad or interpolated channels
  • the channel configuration

after the last FFT was calculated.

Mapping the Results of the FFT

Amplitude, power, mean band amplitude or power, and phase delays can be mapped. How to map FFT results is described in the chapter "Mapping / FFT Mapping".

FFT 'View' Menu: Adjusting the FFT Display

Spectral (6).gif


The FFT spectrum of each channel in the current montage is displayed in a window on the left of the screen. At the bottom is the frequency scale. To the right, the dominant frequency is shown for each channel, together with the amplitude or power at this frequency. The dominant frequency is determined between the lower boundary of the first frequency band and the maximum displayed frequency.


Spectral (7).gif

FFT result window with a display of amplitude spectrum with the sum of amplitudes in bands, color coding, and frequency range 1-30 Hz. The montage is TR_Temporal Region.


Using the View Menu, the following options can be selected:

  • Results can be displayed as Amplitude (Alt+V A) or Power (Alt+V P) spectra. At the top of the display (cf. example below) is the text "Amp. Spectrum" or "Power Spectrum". Click on the text to toggle between the two types of display.
  • The graphical display of amplitude or power spectra can be Normalized (Alt+V N), such that all displayed values are scaled relative to the dominant frequency separately for each channel (i.e. amplitudes cannot be compared between channels). Without this option set, values in each channel group (scalp, source, MEG, Pgr, ICR) are scaled to the channel in this group that has the largest amplitude in its dominant frequency (i.e. amplitude relationships among channels within one channel group are upheld).
  • Amplitude or power values can be displayed on a Logarithmic scale (Alt+V L). Amplitude values are displayed over two log units, power values over four log units. Thus, for amplitudes, values less than 1/100 (two log units) of the maximum are set to zero. For power, values less than 1/10000 (4 log units) of the maximum are set to zero.
  • The sum of amplitudes or powers in each frequency band can be displayed (Alt+V M, or Alt+V O).
  • Spectra are shown as a curve of amplitude/power vs. frequency. If Color coding is selected (Alt+V C), then the areas underneath the curve are colored differently for each frequency band. Colors can be changed in the FFT Options menu (FFT/FFT Options Menu).
  • The frequency scale can be set to one of the three predefined display frequencies 1-30 Hz, 1-50 Hz, (Alt+V 3, or Alt+V 5) or 1-half of the sampling frequency, e.g. 1-100 Hz in the above screenshot of the View menu. Alternatively, any user-defined Frequency Band (Alt+V B) can be displayed. The upper and lower boundary of the frequency band is set to the next whole-numbered multiple of the frequency resolution. The DC component is always set to zero.
  • Info-box. Click with the right mouse button on a particular frequency in the spectrum of one of the channels to obtain a box with the following information: Channel name, frequency, and amplitude/power at that frequency.


Note: The number of channels shown in the FFT display is the same as the number shown in the EEG display. If you change the EEG display (e.g. by changing the number of scalp electrodes or switching off polygraphic channels), the FFT display is updated automatically. The update can be performed without recalculation. If additional channels or artifact channels reconstructed by BESA Research artifact correction are switched on/off, or the status of bad or interpolated channels changes, the FFT is recalculated. Recalculation is only possible if the FFT was calculated over a block or the whole screen. The mean FFT window has to be closed in this case. Recalculation is also not possible if the FFT was loaded from a file. If you change the montage in the EEG display, the FFT window will always be removed: different montages require recalculation of the FFT.

Note: Bad channels in the original montage are displayed in an attenuated color. The spectrum of bad channels is zero for each frequency. As the dominant frequency, its amplitude and the sum of amplitudes or powers in each frequency band cannot be determined, a horizontal bar is shown for each missing value.


Notes about display resolution: frequencies and pixels

When plotting the results of the FFT on the screen, there is a subtle interaction with the screen resolution which can affect the frequency and amplitude/power values displayed when generating maps or looking in the Info-box. Note that two types of situations can arise, depending on whether the number of frequency steps (= half the no. of sampling points in the data window) is greater or less than the number of screen pixels.

If the number of frequency steps is less than or equal to the number of screen pixels, the amplitude at each frequency can be displayed correctly.

If the number of frequency steps is greater than the number of screen pixels, then there are not enough pixels to display each amplitude. In this case, the amplitude displayed at each pixel is the maximum amplitude in the range of frequencies covered by that pixel. For a given pixel, this maximum amplitude can differ among channels. Thus, depending on the channel to which the mouse is pointing, the frequency displayed in maps (left click) or in the Info-box (right-click) can vary, even if the horizontal position of the mouse is the same.

FFT 'File' Menu: Saving, Loading and Printing Results of the FFT


Spectral (8).gif


Loading and Saving FFT

Select Load... (Alt+F L) to load an FFT file that has been saved to a binary file using Save... (Alt+F S). An FFT spectrum should be redisplayed with the file from which it was calculated. An FFT file cannot be loaded if electrode configuration and bad channels of the current file do not match with the electrode configuration and bad channels of the saved FFT spectrum. The montage of the current EEG is changed to the montage of the loaded FFT. Filter settings that were active at the time when the FFT was calculated are not reset but are indicated correctly in the FFT printout.

The heading of the printout shows the name of the loaded FFT file and the name of the EEG for which the FFT was calculated. If the loaded file contains a mean FFT spectrum, the mean FFT options are adjusted to the settings used to calculate the loaded mean FFT spectrum.


Averaging FFT spectra

Select Load and Average... (Alt+F V) to compute averages of previously saved FFT spectra. In the appearing window, select an FFT spectrum (*.fft) from the list on the left and press the arrow button (-->) to copy it to the list of FFTs to be averaged on the right. Press OK to calculate and display the averaged FFT spectrum.


Spectral (2).png


Note: Averaging of FFT spectra is only possible if the spectra were computed using the same epoch length (marked block or whole screen), montage, and sampling rate.


Exporting FFT spectral data

Select Export FFT Data in the File menu (Alt+F F). You can select two different output montages:

  • Output 81 Interpolated average referenced data (to a standard configuration of 81 electrodes, only available for EEG data) (Alt+F FI), or
  • Output Current Montage data (Alt+F FM)


Select one of two output formats:

  • Write the data in Vectorized format:
    • Line 1 of the output file contains the number of frequency steps (Npts), a starting value for BESA Research’s time scale (TSB), the frequency step (DI), scaling in bins per microvolt (SB), a scaling value for the BESA Research display (SC), and the number of channels (Nchan) as shown in the following example:
      • Npts= 1023 TSB= 0.10 DI= 0.100 SB= 1.000 SC= 100.0 Nchan= 23
    • Line 2 lists the channel labels.
    • Each successive line contains the amplitude/power values at each frequency for one channel.
  • Write the data in Multiplexed format:
    • Line 1 contains the frequency step size in Hz.
    • Line 2 lists the channel labels.
    • Each subsequent line contains amplitude/power values for all channels (in the sequence given in line 2) for one frequency.


Both vectorized and multiplexed files may be reread into BESA Research in the same way as time-domain averages. Vectorized files may be read directly using the File / Open menu. Multiplexed files may be read using the ASCII import menu item File / Import ASCII file.

For each of these output formats and montages, different data can be saved:

  • Amplitude Spectrum (Alt+F FA),
  • Power Spectrum (Alt+F FP), or
  • Real + Imaginary Part (Alt+F FR). In this case, amplitudes of the real and imaginary components are written to two separate files.


File name extensions for each type of output file are given in the following table:

current montage average reference mean in bands
amplitude spectrum *.fma *.faa *.fba
power spectrum *.fmp *.fap *.fbp
real components *.fmr *.far N/A
imaginary components *.fmi *.fai N/A


Exporting band amplitudes and power

Select Export Power in Bands (Alt+F P) or Export Amplitude in Bands (Alt+F A). An ASCII file is produced with one channel per line, and each line contains the value for each frequency band.


Sending FFT data to MATLAB

Select Send to MATLAB (Alt+F M) to transfer the current FFT data to MATLAB. This menu entry is available only when MATLAB is installed. Details on the MATLAB interface are provided in the chapter MATLAB Interface.


Spectral (12).gif

A dialog window opens that allows to specify:

  • the type of data to be transferred (Amplitude, Power, or Complex FFT data)
  • whether each frequency bin should be transferred or frequencies should be pooled in bands
  • the montage for which the FFT should be sent


When hitting OK, the sent data will be made available in MATLAB in struct variable besa_fft. For details on the data transfer from BESA Research to MATLAB, please refer to the chapter MATLAB Interface.


Printing results of the FFT

Select File / Print to print the FFT display and FFT maps. BESA Research uses the standard WINDOWS printer output. You may change your printer settings temporarily for your current BESA Research session. In the printer setup, you can choose the orientation (landscape or portrait) and the resolution. If you have any problems with printing, try to set the resolution to 300*300. If you want to change the printer setup permanently, please select the Printer Control from the WINDOWS main control group.

A preview of the printout can be generated with File / Print Preview. Click on the 'OK' button to return to the program.


Closing FFT

To remove the FFT window (without saving the results), select Close in the File menu (Alt+F C), or simply type the Esc key.

FFT ‘Options’ Menu

The Options menu allows to define FFT mapping options, to set colors for the display of each frequency band, and to define and name up to 7 bands. When working with BESA Research, the band colors, names, and frequency ranges of the last session are stored in the file BESA.set. These values are then used in the next BESA Research session.

Spectral (13).gif


Mapping options

In the Mapping submenu two entries toggle different mapping modes:

Spectral (14).gif

  • The entry 3D Whole Head Mapping toggles between 3D and 2D mapping.
  • The entry Top Meridian Projection toggles between top meridian projection and whole head mapping.


Defining band colors

Spectral (15).gif

Select Options / Band Color (Alt+O C), and then the name of the band to define (e.g. Theta: Alt+O CT). A window is presented with a palette of colors, allowing the choice of a color for the display.

Select Default Colors (Alt+O CD) to select the default colors for the bands (predefined in BESA.ini).


Defining band names and widths

Select Options / Band Name and Width to define up to 7 band names and frequency ranges. A window showing names and frequency limits is displayed, allowing redefinition of the frequency bands. Overlapping frequency ranges can be defined. Upper/lower limits of FFT bands can be set up to the maximum frequency that can be displayed in the current FFT (which is usually half of the sampling rate). Press the Default button to select the default definitions as predefined in the file BESA.ini and shown in the following table:

Spectral (16).gif

FFT Mouse Controls

Single left click

  • on the displayed peak frequency or peak amplitude values of a channel or on the channel labels or head symbols at the left of the FFT window: Sets a cursor at the peak (dominant) frequency of the selected channel and displays a map of the topography at the marked frequency (only if the channel is not defined as bad).
  • on the string indicating the spectrum type (Amp. Spectrum or Power Spectrum): Toggles between the display of amplitude and power spectrum.
  • on the string indicating the map type (EEG or MEG): Toggles between EEG and MEG FFT maps (only for combined MEG and EEG measurements). 
  • on the displayed spectrum: Sets a cursor and draws a FFT map of the topography at the marked frequency. The availability of this function by single left mouse click depends on the settings in the main window’s Options / Mapping submenu (Options / Mapping / Enable Direct Mapping by Single Click).

Note: The mouse pointer changes to a hand in areas of the FFT window where left mouse clicks initiate an action.


Double left click

  • on the displayed spectrum: Sets a cursor and draws a map of the topography at the marked frequency. The availability of this function by single left mouse click depends on the settings in the main window’s Options / Mapping submenu (Options / Mapping / Enable Direct Mapping by Double Click).


Right click

  • on the displayed spectrum: Opens an info-box indicating channel name, frequency, and amplitude/power at that frequency.

Density Spectral Arrays (DSA)

Introduction

The Density Spectral Arrays (DSA) module displays a compressed two-dimensional time-frequency display of the activity in the data file. It focuses on the frequency range of 1 Hz - 25 Hz which includes the commonly observed oscillatory rhythms in the human brain. This allows for a quick overview of the sections where events of interest occur, e.g. in the analysis of epileptic seizures or in sleep research. DSA values are computed for every second in the data file using a windowed FFT with a window length of 2s. By default, the DSA module uses a standardized brain source montage to separate the activities of both hemispheres and the different brain regions using 15 regional sources. This spatial filtering prior to the application of the time-frequency transformation helps to identify brain regions where oscillatory activity originates. The DSA can be invoked by hitting the Spectral (17).gif button or from the Process menu.


Spectral (18).gif


Spectral (19).gif

Standard DSA display of an EEG containing four seizures. For each brain hemisphere, the sum of activities is shown.


Using DSA to navigate

With a left mouse click into the DSA display, you can navigate to the selected EEG event. The data review window display jumps to the selected time in the record.


DSA display modes

Three modes of DSA display are possible:

  1. Hemispheric Comparison, which sums up all the lateral activities of each hemisphere
  2. Regional Comparison, which gives account of the activity within five gross brain regions
  3. Current Montage, which shows the activity in each channel of the selected montage at the time the DSA window was opened. For MEG data, only the Current Montage option is available.

For the first two modes, the signals are first transformed to the standardized brain source montage BR_Brain Regions (see chapter Review / Remontaging) before the summation of the spectral parameters is performed. This transformation of the data to a source montage optimally separates the activities from the different brain regions that generate overlapping signals at the scalp surface. DSA of scalp channels can be seen by selecting a recording (traditional) montage and selecting mode 3, current montage.

The way in which signals are sub-sampled to obtain the density display can be modified, from the fastest sub-sampling to an averaged or maximum signal display. The color-coded display of the spectral values in frequency bins can be normalized to the percentage value relative to the sum over all frequency bins of each channel.

The current position in the data file is indicated by the vertical dashed lines in the display.

Spectral (20).gif

The time scale shows minutes as small grey ticks (in real-time - not time measured from file start). In the "Hemispheric Comparison" mode, the time scale appears in the middle, whereas it is displayed below the channels otherwise. Thicker gray ticks indicate five-minute marks, larger black ticks ten-minute-marks, and segment borders are displayed in red.

Setting the DSA Display Mode

The data can be remontaged for display in three different ways using the first three toolbar buttons.


Spectral (21).gif Hemispheric Comparison (default option)

Hemispheric comparison is activated by clicking on the leftmost toolbar button. The integrated activity of each hemisphere is shown. In this mode, the DSA window aligns with the event bar at the bottom of the main window to relate activity to the events marked in the event bar. The integrated activity of each hemisphere is calculated by first transforming the data to the standardized source montage BR_Brain Regions, which is also available from the "Src" button in the BESA Research main window (see chapter "Review / Remontaging"). Then the signals of all source channels in the left (L) and the right (R) hemispheres are summed up separately. This transformation of the data to a source montage optimally separates the activities from the different brain regions that are overlapped and smeared at the scalp surface.

For MEG data, this option is not available.


Spectral (22).gif Regional Comparison  

This option is activated by clicking on the second toolbar button. The integrated activity of five brain regions is shown. The regions are:

  • FcpL, FcpR, which sum all lateralized activity in the upper parts of the brain
  • TmpL, TmpR, which sum all activity in the temporal regions of the brain
  • SagM, which sum all activity in the sagittal midline regions of the brain (only shown if tick mark "Midline Channels" is on in Montage Options).

In this mode, the DSA window is displayed in the right portion of the BESA Research main window. The integrated activity of each region is calculated by first transforming the data to the standardized source montage BR_Brain Regions, which is also available from the "Src" button in the BESA Research main window (see chapter "Review / Remontaging").

Then the signals of the source channels which belong to the corresponding region are summed up.

For MEG data, this option is not available.


Spectral (23).gif Current Montage

With the third toolbar button, the Current Montage option is selected to display the spectra of the channels of the montage that was selected when the DSA window was opened. In this mode, the DSA window is displayed in the right portion of the BESA Research main window. If the current montage is changed in the BESA Research main window, the DSA display remains unchanged - Ändern.


Spectral (24).gif Source Montage

The four following buttons, which appear only in the hemispheric comparison window, allow for the selection of the montage underlying the display, based on the source montage BR_Brain Regions. One of the buttons is always down, with BR as default.

In the case of BR (Brain Regions), the averages of all left-hand and right-hand side channels of the montage BR_Brain Regions are shown in the upper and lower channel, respectively, as indicated by the labels L and R.

For TL (Temporal Lobe), the averages of the most important channels of the source montage TR_Temporal Regions are calculated and displayed in the upper and lower channels labelled L and R. The channels in question are TAL and TPL for the left-hand side and TAR and TPR for the right-hand side.

FP (Frontoparietal) is based on the source montage BR_Brain Regions and averages the source channels FL, CL, PL and FR, CR, PR, respectively, displaying them in channels L and R.

SG (Sagittal) also uses the source montage BR_Brain Regions. The mean of the frontal sagittal channels FpM, FM and CM is displayed in the upper channel F, the mean of the posterior sagittal channels CM, OpM and CM is shown in the lower channel P.


Spectral (25).gif Visualizing Differences

Many features of interest are lateralized in the brain and show up clearly when hemispheric regions are compared directly. This is achieved using the Delta toolbar button:

This button enables subtraction of hemispherically homologue regions and is available for the standardized montage options "Hemispheric Comparison" and "Regional Comparison".

Hemispheric Difference

The integrated activities of the hemispheres (calculated as in the Hemispheric Comparison option) are subtracted from one another. The differences between the activities are displayed. The channel L+ shows signal at the frequencies and latencies where activity was higher in the left hemisphere. Frequencies and latencies where activity was higher in the right hemisphere show up in channel R+.

Regional Difference

The integrated activity of four brain regions is calculated as in the Regional Comparison option excluding the midline sagittal region. Then the activities of homologous regions are subtracted from one another and this difference is displayed on the side where the activity is larger: Thus, the channel FcpL+ only shows signal at frequencies and latencies where activity was higher in FcpL than in FcpR. The signals in the other channels are calculated accordingly.


Spectral (26).gif Epochs

The epoch buttons allow the choice of time interval for browsing through the data. Either the whole file ("All") or intervals of 15, 20 or 30 minutes, with one additional minute of overlap with the following window, are shown. The default is 20 minutes, which corresponds best to the length of the standard EEG. For continuous data files, interval start times are chosen in relation to the full hour (e.g. 18:00, 18:20 and 18:40 for the 20-minute window). Only the first and last windows are positioned such as to start and end with file start and end, respectively.

The default epoch is "All" for files shorter than 20 minutes and "20" for longer files. For files no longer than 15 minutes, all buttons are greyed (with "All" automatically selected). Otherwise, "All" and those buttons which allow paging are enabled.

In the case of "All" and files of long duration, a progress bar may appear. Hitting "Abort" will result in the display of those portions of the data that have already been calculated.

The epoch buttons are grayed in the zoom mode.


Spectral (27).gif Paging

Page backward / forward one interval of the currently selected length. The page buttons are enabled only if the position in the file, and the file length, allow to browse to an earlier / later interval.

The page buttons are grayed in the zoom mode.

Display Options

To emphasize features of interest, the DSA display can be optimized to normalize and scale the spectral data in different ways.


Spectral (28).gif Percentage Button

The status of the percentage button on the toolbar determines how the color-coded display of the intensity values in frequency bins is normalized. The options are:


  • Absolute Value (button is up):

If this option is selected, the absolute amplitude or power intensity values are displayed.


  • Percentage (default option, button is down)

If this option is selected, the intensity value for each sampling time and frequency is normalized to the summed intensities over all frequency bins averaged over all channels for that sampling time. Thus, the displayed DSA amplitude/power for one frequency bin is its contribution (in %) to the overall activity at that sampling time.

The effect when applying the percentage normalization to data is shown in the example below, where the hemispheric difference with and without percentage normalization is shown:

Spectral (29).gif

Spectral (30).gif

Hemispheric difference display without percentage normalization (top) and with percentage normalization (bottom). The decreasing 9 to 7-Hz seizure activity in the right hemisphere emerges better from the background with percentage normalization.


Spectral (31).gif Amplitude Button

The amplitude button toggles between the display of amplitude and power. The default setting is on amplitude (button is pressed).

If amplitude is selected, displayed intensities are in µV/Hz, fT/Hz, fT/(cmHz), or nAm/Hz.

If power is selected, displayed intensities are in µV²/Hz, fT²/Hz, fT²/(cm²Hz), or nAm²/Hz.


Spectral (32).gif Original Data and Baseline Normalization

By default, the original data are shown (button D down). If option B (baseline normalization) is chosen, amplitude/power for each sampling time and frequency and each remontaged channel is normalized by the sum over all sampling times for the given frequency.

This can sometimes help to suppress or intermittent or continuous signals of constant frequency.

Spectral (33).gif

Spectral (34).gif

Hemispheric comparison display without (top) and with (bottom) additional baseline normalization, which enhances the contrast between seizures and background for this example.


Spectral (35).gif Setting the Display Sampling

Since the data file features far more sampling times than pixels available for DSA display, a sub-sampling is required to compress data file sections into the pixels shown in the DSA. The method how this is achieved can be chosen with the sampling popup menu. Using the sampling button in the toolbar, the type of sampling of data for the display can be chosen.

Three options are possible:

  • Sub-sample Epochs:

For each displayed pixel, one sample second in the middle of the represented time interval is selected. For this sample second, the activities are displayed. This is the fastest way to obtain the DSA display. The principle is illustrated in the graphics. In this example, only every fourth sample is computed for the DSA display.

Spectral (36).gif


  • Average Epochs (default option):

For each displayed pixel, the average over all seconds which are summarized in that pixel is calculated for each frequency bin. In this way, it is ensured that sudden bursts of activity are not accidentally missed out. The principle is illustrated in the graphics.

Spectral (37).gif


  • Select Maximum:

For each displayed pixel, the maximum over all seconds which are summarized in that pixel is calculated for each frequency bin. This enhances the impact of sudden bursts of activity in the display. The principle is illustrated in the graphics.

Spectral (38).gif


Spectral (39).gif Scaling Buttons

The left button (+) scales intensities up, the right one (-) scales them down. Each time one of the buttons is pressed, scaling is increased/decreased by a factor of ³√2. This means that pressing the same button 3 times results in doubling / halving the normalization intensity.


Zooming the Display

You can use the left mouse button to drag a rectangle anywhere in the display. A popup menu containing the entries "Zoom In" and "Zoom Out" appears, from which you can choose to zoom into the selected area. In the zoom mode, the epoch and page buttons are up and grayed.

Spectral (40).gif Zooming out can be done using the Zoom Out button, which is shown only if the display is zoomed. The display then returns to the former view. Otherwise, dragging another rectangle reopens the popup menu.


Note: for further details on Spectral Analysis (FFT and DSA) in BESA Research, please refer to the Help Chapter ‘Spectral Analysis’.

Tutorial

This tutorial will introduce the main features of the DSA module. A detailed description of all features can be found in the reference section.

The tutorial uses a data file with four concatenated EEG segments of epileptic seizure data (by courtesy of Prof. J. Ebersole, U Chicago). We will learn how to identify events in the data file quickly using the DSA display and how to find epochs with prominent rhythmic activities that differ between hemispheres.


1. Use the File / Open menu to browse to the folder Examples\Epilepsy\Seizures. Select the data file 'Seizure-Right-Temporal.foc' and open it. The data are shown in the originally recorded montage. By default, a time constant of 0.3 sec (i.e. Low Filter: 0.53 Hz) is enabled (unless you changed the settings in your .ini file).

2. In the main window, press pushbutton ''Src' and select the source montage 'TR_Temporal Region. This displays the left and right temporal lobe channels in the top 8 traces and reveals strongly lateralized right temporo-basal seizure activity. Press the high filter pushbutton HF and select 35 Hz to reduce the EMG artifact.

3. Press the push button "DSA" at the top of the main window. The DSA window opens. In the DSA display, the horizontal axis represents time, whereas the vertical axis represents frequency (from 1 to 25 Hz).


With the Amplitude button Spectral (31).gif] down, and the Percentage button Spectral (28).gif] released, the following image is obtained:

Spectral (41).gif]

Four seizures can be distinguished in the display (red blocks of large EEG activity). Only two source channels, L and R, are shown, one for each hemisphere. These channels are obtained by calculating the mean left and right source activities using the 5 left and 5 right regional sources of brain source montage BR_BrainRegions to reduce overlap by volume conduction.


4. Scale the DSA display up using the Scaling button in the toolbar (Spectral (42).gif). Pressing it three times decreases the threshold for maximum intensity by a factor of 2. The color map caption text changes correspondingly. Scale the display down again, either using the next toolbar button, or the 'Cursor-Down' key on the keyboard to set the amplitude scale to 79.4 nAm. This will reveal the dark 'nose-tips' at the beginning of the second and fourth seizure with frequencies decreasing from about 8 to 5 Hz and obvious lateralization to the right hemisphere.

5. Move the mouse cursor over the data display. Current time and frequency are shown below the color bar and next to the mouse cursor, respectively. Click on the red-nose tip (~6.5 Hz) around +00:02:09 (12:02:09 AM) in the right source channel (R) to move the EEG display to this epoch at the beginning of the second seizure. A comparison of the traces of the left (traces 1-4) and right (traces 5-8) temporal lobe sources (Src/TR_Temporal Region) confirms the lateralization of the seizure onset to the right hemisphere.

Spectral (43).gif


6. Press the second-left toolbar button (Spectral (44).gif) to switch to the display mode 'Regional Comparison'. The DSA display moves to the right of the main window and displays the spectral densities of five regions by summarizing the activities in the lateralized upper parts of the brain, in the temporal regions bilaterally, and in the midline regions.

Spectral (45).gif


7. Press the third toolbar button (Spectral (46).gif) to switch to the display mode 'Current Montage'. The DSA display on the right of the main window now displays the spectral densities of all channels in the current montage. Enlarge the DSA window by using the full-screen symbol at the top right. It is very apparent now that the seizures start with an interval of increased activity in the 8-5 Hz range. This activity is most noticeable in the anterior three source channels of the right temporal lobe (TBvr_TR, TApr_TR, and TArR_TR).    

Spectral (47).gif


8. Use the overlapping window icon at the top right of the window to get the window back to its original position at the right of the screen. Then press the Sampling toolbar button ( Spectral (48).gif ) to select the menu entry 'Select Maximum' from the dropdown menu which appears. This results in pronouncing maxima of intensities: for each frequency bin, the maximum over the epoch that is related to one pixel of the display is computed. In this case, the noise is enhanced by the procedure. Press the button again to go back to 'Average Epochs', which displays the average over the epoch related to one displayed pixel for each frequency bin.

9. Close the DSA window using the close symbol at the top right. Press pushbutton 'Vir' to select the virtual Horizontal Bipolar montage. Press the pushbutton DSA to recalculate DSA for the new current montage, then press the Amplitude button ( Spectral (31).gif ) and the third toolbar button (Spectral (23).gif). You can now see that the scalp montage, although optimized for temporal-basal activity shows a poor separation between hemispheres.

Spectral (49).gif


10. Press the second-left toolbar button ( Spectral (44).gif ) to select the menu entry 'Regional Comparison'. Press the 'Delta' button ( Spectral (25).gif ) to switch to regional difference. The channels now show the difference between activities in the homologous brain regions. Then press the Display button (Spectral (50).gif) to switch to the display mode 'Percentage'. Now, the relative spectral amplitude in each frequency bin and time point is displayed. Switch to displaying spectral power by releasing the Power button ( Spectral (31).gif ). Adjust the scaling to 16% at maximum intensity using the scaling toolbar buttons or the cursor up-down keys.

Spectral (51).gif


This display mode takes away most of the unwanted activity which is not lateralized, and clearly shows the dark clusters in the right hemisphere in the 7 Hz range immediately before the second and fourth seizure.

11. Use the left mouse button to drag a rectangle around the beginning of the fourth seizure in channel "TmpR+". From the popup menu that appears, select "Zoom In". The display is zoomed to show just the selected area. The seizure onset of the 4th seizure is visible as a decelerating 7Hz oscillation in the right temporal region. Use the right mouse button to zoom out again.

Spectral (52).gif


This concludes the tutorial on density spectral arrays. It gave a brief introduction into the ways in which the DSA can be used in combination with traditional and brain source montages, and demonstrated its abilities to quickly identify epochs and regions of interest in EEG data files.