<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.besa.de/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.besa.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jamie</id>
		<title>BESA® Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.besa.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jamie"/>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Special:Contributions/Jamie"/>
		<updated>2026-06-27T22:14:36Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.10</generator>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Pipeline_for_simultaneous_EEG-fMRI_recording</id>
		<title>Pipeline for simultaneous EEG-fMRI recording</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Pipeline_for_simultaneous_EEG-fMRI_recording"/>
				<updated>2019-04-08T10:29:44Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* fMRI gradient removal */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = 7.0 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=Pipeline for simultaneous EEG-fMRI recording=&lt;br /&gt;
== Before you start ==&lt;br /&gt;
 &lt;br /&gt;
* Check if you have a clock synchronization between EEG and MRI systems&lt;br /&gt;
* Be sure that you have jitter between trials in ERP experiment (i.e. random value of ±200ms). Some further guidelines about paradigm creation can be found here: (Rusiniak et al., 2013a).&lt;br /&gt;
* Try to limit subject movement to minimum.&lt;br /&gt;
* Make sure electrode to skin impedance is as low as possible.&lt;br /&gt;
* Design EEG-fMRI recording session to be long enough for proper artifact creation. Usually the experiment should last at least 6 minutes.&lt;br /&gt;
* Especially for the first few registrations repeat the experiment outside of the bore to compare results. &lt;br /&gt;
&lt;br /&gt;
==Pipeline overview==&lt;br /&gt;
The recommended pipeline of processing EEG data registered during fMRI session looks as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:EEG-fMRI pipeline.png]]&lt;br /&gt;
&lt;br /&gt;
'''Please note that some steps are grouped with colors:'''&lt;br /&gt;
* orange color indicates steps that are part of typical processing of ERP data.&lt;br /&gt;
* blue color indicates optional, yet strongly recommended EEG-MRI data co-registration. &lt;br /&gt;
* yellow color marks the steps related to fMRI gradient artifact removal&lt;br /&gt;
* green steps are reserved for BCG (and blink) artifact correction&lt;br /&gt;
* violet color indicates steps for time-frequency analysis. Here also information about rejected epochs is provided for averaging purpose.&lt;br /&gt;
&lt;br /&gt;
==fMRI gradient removal==&lt;br /&gt;
Please note that you need hardware clock synchronization between EEG equipment and MRI scanner before removing fMRI gradient artifact. Do not perform any sampling rate change (especially do not downsample data!) before performing this preprocessing step. Clock synchronization assures alignment between triggers present in EEG data and start of fMRI volume acquisition as well as consistent span between samples containing artifact. That means that every epoch containing fMRI induced artifact is identical. &lt;br /&gt;
To remove fMRI gradient select the menu entry '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Artifact\fMRI artifact...&amp;lt;/span&amp;gt;'''. The following dialog box will appear:&lt;br /&gt;
&lt;br /&gt;
[[File:FMRI_dialogbox.PNG]]&lt;br /&gt;
&lt;br /&gt;
Some of the parameters are strongly dependent on fMRI acquisition:&lt;br /&gt;
* Length of fMRI volume - it should be exactly the time of volume acquisition (time when MR gradients are ON for one volume acquisition). For continuous fMRI sessions this value is automatically detected. If you use sparse acquisition (between fMRI volumes there is a short period of silence), use time of volume acquisition parameter.   &lt;br /&gt;
* fMRI trigger code - code in the EEG recording provided by MR scanner.&lt;br /&gt;
* Delay between marker and start of volume acquisition - a delay between marker in EEG provided by MR scanner and real start of fMRI volume acquisition.  This value can be also used if sparse acquistion is used and scanning starts with some delays &lt;br /&gt;
* Number of scans to skip - if dummy scans (MR volumes acquired to stabilize magnetization) have corresponding markers in EEG data adjust this value to match number of real volumes used for fMRI analysis.&lt;br /&gt;
* Realignment file - direct output file from first step of fMRI analysis (realignment). We support native realignment file as generated by SPM, FSL, AFNI and Brainvoyager.&lt;br /&gt;
&lt;br /&gt;
Other parameters should be carefully selected depending on the data:&lt;br /&gt;
* Number of artifact occurrence averages - The default value is 16. That means that 8 preceding and 8 proceeding artifact occurrences are used to create averaged template. Note that if odd number is used (ie. 17) the signal from volume that is being currently corrected is also used for averaging. If a larger number is selected then the artifact is more stable and more differentiated from EEG data. However if there is a lot of movement during the recording session the artifact template will be incorrect. A smaller number of artifact occurrences for averaging or more advanced methods of artifact removal should be selected in such situation.&lt;br /&gt;
* Movement threshold - this parameter is only used for two advanced methods: ''Allen et al. 2000 Modified'' and ''Mossmann et al. 2009''. When changing this value check how the template creation matrix looks. If you note that matrix is very segmented (as below) you might consider increasing the threshold value.&lt;br /&gt;
&lt;br /&gt;
[[File:FMRI_distorted_matrix.PNG]]&lt;br /&gt;
&lt;br /&gt;
If you wish  you can downsample data and export file with fMRI artifact gradient removed after using aforementioned tool by pressing '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;WrS&amp;lt;/span&amp;gt;''' button:&lt;br /&gt;
&lt;br /&gt;
[[file:FMRI export.PNG]]&lt;br /&gt;
&lt;br /&gt;
==BCG artifact correction==&lt;br /&gt;
First scroll through data and mark bad electrodes and bad blocks of data. Note that especially at the beginning of the recording there might be fragments of data still contaminated with fMRI gradient artifact, as shown below. It is correct behavior since MRI machine use so-called dummy scans that are not for data collection but magnetization stabilization. These volumes are also not usually bound with triggers in the data. If you use paradigm it should start after these scans. The most typical approach is to start stimuli presentation after fMRI session starts (experiment should be triggered by MRI scanner)&lt;br /&gt;
&lt;br /&gt;
[[File:FMRI dummy.PNG|800px]]  &lt;br /&gt;
&lt;br /&gt;
===Recommendation for artifact template creation===&lt;br /&gt;
For BCG artifact removal we recommend using PCA based template creation. ICA approach is a bit difficult for this matter since BCG artifact is a complex signal distortion (constituted usually from more than three components). Also the main assumption of ICA is violated - components are dependent. Keep in mind that BCG artifact is induced by, Hall effect, pulsating skin and head movement. All of described phenomena are related to the heart beat. On top of it the part related to the movement can consist of up to six components in the worst scenario (head movement and head rotation, both possible in three dimensions). &lt;br /&gt;
===How to create template===&lt;br /&gt;
&lt;br /&gt;
Before attempting artifact creation, it is wise to set filtration to match artifact frequency. For BCG following filter settings should be sufficient:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Filter &lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Cutoff frequency&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Filter slope&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Filter type&lt;br /&gt;
|-&lt;br /&gt;
| Low Cutoff&lt;br /&gt;
| 1&lt;br /&gt;
| zero phase&lt;br /&gt;
| 12 dB/oct&lt;br /&gt;
|-&lt;br /&gt;
| High Cutoff&lt;br /&gt;
| 20&lt;br /&gt;
| zero phase&lt;br /&gt;
| 24 dB/oct&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Mark a block of data where BCG is clearly noticeable. you can either use EKG channel or just all channels as the BCG is very prominent (check example below). If you decide to use EKG channel rembmer that BCG artifact starts around 200-300 ms after QRS complex visible in EKG. &lt;br /&gt;
&lt;br /&gt;
[[File:Fmri BCG.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
Go to menu '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Search&amp;lt;/span&amp;gt;''' and verify if '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Search, Average, View&amp;lt;/span&amp;gt;''' option is checked. If not, please enable it. &lt;br /&gt;
&lt;br /&gt;
Press '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;SaV&amp;lt;/span&amp;gt;''' button in toolbar to start creation of artifact template. In the displayed dialog use settings as below to perform searching for artifact occurrences similar to the selected block, using all channels with criterion for similarity of 65% correlation, after applying predefined filters. When you press OK search will start. &lt;br /&gt;
&lt;br /&gt;
[[File:FMRI SaV.PNG]]&lt;br /&gt;
&lt;br /&gt;
When search is finished you will see averaged artifact in buffor on left side of the data window, as shown below. If you start scrolling through data the averaged block disappear. You can switch it on at anytime by menu '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;View/Averaged Buffers&amp;lt;/span&amp;gt;'''. Note that you have blue vertical lines (if you selected to assign BCG artifacts to pattern 1) in trigger line at the bottom of screen. For good artifact correction they should cover almost whole file. Also at the bottom of averaged buffer you can see the number of averages (277 for example).  Make sure that this number is relatively big to be sure the artifact template is correctly created.  &lt;br /&gt;
&lt;br /&gt;
[[File:FMRI BCG averaged.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
===How to select proper number of components for artifact correction===&lt;br /&gt;
Finally click right mouse button over the averaged buffer and select '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Whole Segment&amp;lt;/span&amp;gt;'''. Click with right mouse button over yellow tinted area and select '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Define Artifact Topography&amp;lt;/span&amp;gt;'''. A new window will popup. Check EKG box and select number of components used for artifact correction. The component number is followed by the number how much signal variability is explained by the component, expressed in percentage. A question without answer is how many components should be reduced, since it really depends on the data. As a good starting point you may select all components that explain more than 1% of BCG variance (so basically select number  with variance lower than 1% - as in example below 5(0.68)). Note that data will be automatically updated to the current settings. You can adjust this number at any further stage of data processing.&lt;br /&gt;
&lt;br /&gt;
[[File:FMRI components.PNG]]&lt;br /&gt;
&lt;br /&gt;
==Final data processing==&lt;br /&gt;
&lt;br /&gt;
If you need you can perform also blink artifact correction using similar approach to the EKG reduction (but select only one component at the final stage, since it is very well established artifact). &lt;br /&gt;
&lt;br /&gt;
Now you can proceed with further data processing. There are some minor differences in comparison with general BESA pipeline:&lt;br /&gt;
* if you want to perform averaging you will be similarly asked if you want to turn off artifact correction. Please do so, by pressing '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Yes&amp;lt;/span&amp;gt;''' button. The artifact correction should be turned on again just after averaging. When averaged file is open go to menu '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Artifact/Load...&amp;lt;/span&amp;gt;''' and select file with exact name of your data file but with extension &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;.atf&amp;lt;/span&amp;gt;. When artifact coefficient file is loaded go to menu '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Artifact\Options&amp;lt;/span&amp;gt;''' and change method of brain activity modeling to Surrogate. Please verify if selected number of artifact components used for reduction can be lowered. &lt;br /&gt;
* As you might noticed we recommend performing source localization while artifact correction is off, and load artifact coefficients directly to the source analysis module. For EEG-fMRI data however it is acceptable to use artifact corrected data as input to the source analysis module.&lt;br /&gt;
* if you want to perform '''Time-domain beamformer''' accessed from ERP module (average tab) you will be prompted if artifact correction should be turned off. We recommend to perform beamformer with artifact correction off, but for EEG-fMRI data set please keep it on (press '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;No&amp;lt;/span&amp;gt;''' button), since big BCG artifact will affect results. &lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
 &lt;br /&gt;
==Good practice==&lt;br /&gt;
Please keep in mind that simultaneous EEG-fMRI recording is a difficult yet powerful technique. The following rules could help one to perform a successful experiment:&lt;br /&gt;
* Remember that proper '''EEG and MRI hardware clock syncrhonization''' is esential for fMRI gradient artifact removal. BESA Research internaly perform checks if the synchronizaiton is sufficient however it is user responsibility to maintain hardware configuraiton. Under any circumstances '''do not change EEG data sampling rate''' prior fMRI gradient removal procedure.   &lt;br /&gt;
* For an ERP experiment remember to introduce temporal '''jitter between trials''' (e.g. a random value in the range of ±200 ms). Also, applying a pure EEG or a pure fMRI paradigm will probably have the effect that one of the modalities will not show satisfying results. Proper paradigm preparation is essential for success. Some further guidelines can be found here: (Rusiniak et al., 2013a).&lt;br /&gt;
* Inform your subject how important it is '''not to move'''.&lt;br /&gt;
* Keep electrode to skin '''impedance as low as possible'''.&lt;br /&gt;
* The EEG-fMRI recording session should be long enough to allow for proper artifact creation. Usually the experiment should '''last at least 6 minutes'''.&lt;br /&gt;
* At the same time try to '''limit the time of experiment to a minimum''' and preferably perform EEG-fMRI registration before other sequences to limit movement due to an inconvenient supine position.&lt;br /&gt;
* From the standard position, move the '''subject about 4 cm towards caudal direction''' to reduce artifacts: The MRI laser crosshair should be not in the Nasion position but in the middle of forehead (Mullinger et al., 2011).&lt;br /&gt;
* Especially for the first few registrations '''repeat the experiment outside of the MR bore''' to compare results.&lt;br /&gt;
==References==&lt;br /&gt;
* Abreu, R., Leal, A., Figueiredo, P., 2018. EEG-Informed fMRI: A Review of Data Analysis Methods. Front. Hum. Neurosci. 12, 29. https://doi.org/10.3389/fnhum.2018.00029&lt;br /&gt;
* Allen, P.J., Josephs, O., Turner, R., 2000. A Method for Removing Imaging Artifact from Continuous EEG Recorded during Functional MRI. NeuroImage 12, 230–239. https://doi.org/10.1006/nimg.2000.0599&lt;br /&gt;
* Moosmann, M., Schönfelder, V.H., Specht, K., Scheeringa, R., Nordby, H., Hugdahl, K., 2009. Realignment parameter-informed artefact correction for simultaneous EEG–fMRI recordings. NeuroImage 45, 1144–1150. https://doi.org/10.1016/j.neuroimage.2009.01.024BESA® Research 7.0&lt;br /&gt;
* Mullinger, K.J., Yan, W.X., Bowtell, R., 2011. Reducing the gradient artefact in simultaneous EEG-fMRI by adjusting the subject’s axial position. NeuroImage 54, 1942–1950.&lt;br /&gt;
* Rusiniak, M., Lewandowska, M., Wolak, T., Pluta, A., Milner, R., Ganc, M., Włodarczyk, A., Senderski, A., Śliwa, L., Skarżyński, H., 2013a. A modified oddball paradigm for investigation of neural correlates of attention: a simultaneous ERP–fMRI study. Magn. Reson. Mater. Phys. Biol. Med. 26, 511–526. https://doi.org/10.1007/s10334-013-0374-7&lt;br /&gt;
* Rusiniak, M., Wolak, T., Lewandowska, M., Cieśla, K., Skarzynski, H., 2013b. The relation between EPI sequence parameters and electroencephalographic data during simultaneus EEG-fMRI registration: an initial report., in: ESMRMB 2013 Congress, Book of Abstracts, Saturday. Presented at the ESMRMB, Springer, Toulouse, p. 661. https://doi.org/10.1007/s10334-013-0384-5&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-04-08T09:38:13Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Brain Atlases */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
===Short mathematical introduction===&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
===Applying the Beamformer===&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the time-domain beamformer from the Average tab of the Paradigm dialog box'''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the&lt;br /&gt;
'''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is&lt;br /&gt;
superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF44.png|500px|thumb|c|none|Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple-source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in&lt;br /&gt;
the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png|700px|thumb|c|none|Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the&lt;br /&gt;
beamformer image).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png|700px|thumb|c|none|Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the location (blue square in the figure) is not considered for the multiple-source beamformer.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is&lt;br /&gt;
performed.&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
===Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image===&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a&lt;br /&gt;
source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for '''&amp;lt;u&amp;gt;source coherence&amp;lt;/u&amp;gt;''' analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press '''N''' key when there is no source in the current source array or&lt;br /&gt;
there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press '''N''' key when there is more than one regional or dipole source in&lt;br /&gt;
the current source array.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting ''Hide Image'' entry in the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (vmp) format from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* For scaling options, use [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volume tab of the Image Settings &amp;lt;u&amp;gt;dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter [[#Regularization_of_distributed_volume_images|''Regularization of distributed volume images'']] for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:CorticalLOR.png‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
==SESAME==&lt;br /&gt;
&lt;br /&gt;
SESAME (Sequential Semi-Analytic Monte-Carlo Estimation) is a Bayesian approach for estimating sources that uses Markov-Chain Monte-Carlo method for efficient computation of the probability distribution as described in Sommariva, S., &amp;amp; Sorrentino, A. &amp;quot;Sequential Monte Carlo samplers for semi-linear inverse problems and application to magnetoencephalography.&amp;quot; Inverse Problems 30.11 (2014): 114020. It allows to automatically estimate simultaneously the number of dipoles, their locations and time courses requiring virtually no user input.&lt;br /&gt;
The algorithm is divided in two blocks:&lt;br /&gt;
&lt;br /&gt;
* The first block consists of a Monte Carlo sampling algorithm that produces, with an adaptive number of iterations, a set of samples representing the posterior distribution for the number of dipoles and the dipole locations.&lt;br /&gt;
* The second block estimates the source time courses, given the number of dipoles and the dipole locations.&lt;br /&gt;
&lt;br /&gt;
The Monte Carlo algorithm in the first block works by letting a set of weighted samples evolve with each iteration. At each iteration, the samples (a multi-dipole state) approximates the n-th element of a sequence of distributions p1, …, pN, that reaches the desired posterior distribution (pN = p(x|y)). The sequence is built as pN = p(x) p(y|x) α(n), such that α(1) = 0, α(N) = 1. The actual sequence of values of alpha is determined online. Dipole moments are estimated after the number of dipoles and the dipole locations have been estimated with the Monte Carlo procedure. This continues until a steady state is reached.&lt;br /&gt;
The SESAME image in BESA Research displays the final probability of source location along with an estimate for number of sources. Using the menu function &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image / Export Image As...'''&amp;lt;/span&amp;gt; you have the option to save this SESAME image.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
*'''Grid spacing:''' Due to memory and computational limitations, it is recommended to use SESAME with a grid spacing of 5 mm or more.&lt;br /&gt;
*'''Fit Interval:'''  SESAME requires a fit interval of more than 2 samples to start the computation.&lt;br /&gt;
*'''Computation time:''' Computation speed during SESAME calculation depends on the grid spacing (computation is faster with larger grid spacing) and number of channels.&lt;br /&gt;
&lt;br /&gt;
==Brain Atlas==&lt;br /&gt;
&lt;br /&gt;
===Introduction===&lt;br /&gt;
&lt;br /&gt;
Brain atlas is a priori data that can be applied over any discrete or distributed source image displayed in the 3D window. It is a reference value that strongly depends on the selected brain atlas and should not be used as medical reference since individual brains may differ from the brain atlas.&lt;br /&gt;
&lt;br /&gt;
[[Image:BrainAtlas1.png]]&lt;br /&gt;
&lt;br /&gt;
===Brain Atlases===&lt;br /&gt;
&lt;br /&gt;
In BESA Research the atlases listed below are provided. BESA is not the author &amp;lt;u&amp;gt;of the atlases; please cite the appropriate publications if you use any of the atlases in your publication.&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Brainnetome''' This is one of the most modern brain probabilistic atlas where structural, functional, and connectivity information was used to perform cortical parcellation. It was introduce by Fan and colleagues ('''2016'''), and is still work in progress. The atlas was created using data from 40 healthy adults taking part in the Human Connectome Project. In March 2018, the atlas consists of 246 structures labeled independently for each hemisphere. In BESA we provide the max probability map with labeling. Please visit the Brainnetome webpage to see more details related to the indicated brain regions (i.e. behavioral domains, paradigm classes and regions connectivity).&lt;br /&gt;
&lt;br /&gt;
'''AAL''' Automated Anatomical Labeling atlas was created in 2002 by Tzourio-Mazoyer and collegues ('''2002'''). It is the mostly used atlas nowadays. The atlas is based on the averaged brain of one subject (young male) who was scanned 27 times. The atlas resolution is 1mm isometric. The brain sulci were drawn manually on every 2mm slice and then brain regions were automatically assigned. The atlas consists of 116 regions which are asymmetrical between hemispheres. The atlas is implemented as in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''SPM12'''&amp;lt;/span&amp;gt; toolbox.&lt;br /&gt;
&lt;br /&gt;
'''Brodmann''' The Brodmann map was created by Brodmann ('''1909'''). The brain regions were differentiated by cytoarchitecture of each cortical area using the Nissi method of cell staining. The digitalization of the original Brodmann map was performed by Damasio and Damasio ('''1989'''). The digitalized atlas consists of 44 fields that are symmetric between hemispheres. BESA used the atlas implementation as in Chris Roden’s &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''MRICro'''&amp;lt;/span&amp;gt; software.&lt;br /&gt;
&lt;br /&gt;
'''AAL2015''' Automated Anatomical Labeling revision 2015. This is the updated AAL atlas. In comparison to the previous version (AAL) mainly the frontal lobe shows a higher degree of parcellation (Rolls, Joliot, and Tzourio-Mazoyer 2015). The atlas is implemented as in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''SPM12'''&amp;lt;/span&amp;gt; toolbox.&lt;br /&gt;
&lt;br /&gt;
'''Talairach''' Atlas was created in 1988 by Talairach and Tournoux ('''1988''') and it is based on the post mortem brain slices of a 60 year old right handed European female. It was created by drawing and matching regions with the Brodmann map. The atlas is available at 5 tissue levels, however we used only the volumetric gyrus level as it is the most known in neuroscience and is the most appropriate for EEG. The atlas consists of 55 regions that are symmetric between hemispheres. The native resolution of the atlas was 0.43x0.43x2- 5mm. Please note that the poor resolution in Z direction is a direct consequence atlas definition, and since it is a post-mortem atlas it will not correctly match the brain template&lt;br /&gt;
(noticeable mainly on brain edges). The atlas digitalization was performed by Lancaster and colleagues ('''2000''') resulting in a “golden standard” for neuroscience. The atlas was first implemented in a software called &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''talairach daemon'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Visualization modes===&lt;br /&gt;
&lt;br /&gt;
'''Just Labels.''' Displayed are only Talairach Coordinates, the currently used brain atlas and the region name where the crosshair is placed. No atlas overlay will be visible on the 3D image.&lt;br /&gt;
&lt;br /&gt;
'''brainCOLOR.''' All information is displayed as in “Just Labels” mode but also the atlas is visible as an overlay over the MRI. The coloring is performed using the algorithm introduced by Klein and colleagues (Klein et al. 2010). With this method of coloring the regions which are part of the same lobe are colored in a similar color but with different color shade. The shade is computed by the algorithm to make these regions visually differentiable from each other as much as possible.&lt;br /&gt;
&lt;br /&gt;
'''Individual Color.''' In this mode the native brain atlas color is used if provided by the authors of the brain atlas (i.e. Yeo7). Where this was not available BESA autogenerated colors for the atlas using an approach similar to political map coloring. This approach aims to differentiate most regions that are adjacent to each other and no presumptions on lobes is applied.&lt;br /&gt;
&lt;br /&gt;
'''Contour.''' Only region contours (borders between atlas regions) are drawn with blue color. This is the default mode in BESA Research.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
* Brodmann, Korbinian. 1909. Vergleichende Lokalisationslehre Der Großhirnrinde. Leipzig: Barth. https://www.livivo.de/doc/437605.&lt;br /&gt;
* Damasio, Hanna, and Antonio R. Damasio. 1989. Lesion Analysis in Neuropsychology. Oxford University Press, USA.&lt;br /&gt;
* Fan, Lingzhong, Hai Li, Junjie Zhuo, Yu Zhang, Jiaojian Wang, Liangfu Chen, Zhengyi Yang, et al. 2016. “The Human Brainnetome Atlas: A New Brain Atlas Based on Connectional Architecture.” Cerebral Cortex 26 (8): 3508–26. https://doi.org/10.1093/cercor/bhw157.&lt;br /&gt;
* Klein, Arno, Andrew Worth, Jason Tourville, Bennett Landman, Tito Dal Canton, Satrajit S. Ghosh, and David Shattuck. 2010. “An Interactive Tool for Constructing Optimal Brain Colormaps.” http://braincolor.mindboggle.info/docs/SFN2010_BrainCOLORmap_poster_ArnoKlein.pdf.&lt;br /&gt;
* Lancaster, Jack L., Marty G. Woldorff, Lawrence M. Parsons, Mario Liotti, Catarina S. Freitas, Lacy Rainey, Peter V. Kochunov, Dan Nickerson, Shawn A. Mikiten, and Peter T. Fox. 2000. “Automated Talairach Atlas Labels for Functional Brain Mapping.” Human Brain Mapping 10 (3): 120–131.&lt;br /&gt;
*Rolls, Edmund T., Marc Joliot, and Nathalie Tzourio-Mazoyer. 2015. “Implementation of a New Parcellation of the Orbitofrontal Cortex in the Automated Anatomical Labeling Atlas.” NeuroImage 122 (November): 1–5. https://doi.org/10.1016/j.neuroimage.2015.07.075.&lt;br /&gt;
* Talairach, J, and P Tournoux. 1988. Co-Planar Stereotaxic Atlas of the Human Brain. 3-Dimensional Proportional System: An Approach to Cerebral Imaging. Thieme.&lt;br /&gt;
*Thomas Yeo, B. T., F. M. Krienen, J. Sepulcre, M. R. Sabuncu, D. Lashkari, M. Hollinshead, J. L. Roffman, et al. 2011. “The Organization of the Human Cerebral Cortex Estimated by Intrinsic Functional Connectivity.” Journal of Neurophysiology 106 (3): 1125–65. https://doi.org/10.1152/jn.00338.2011.&lt;br /&gt;
* Tzourio-Mazoyer, N., B. Landeau, D. Papathanassiou, F. Crivello, O. Etard, N. Delcroix, B. Mazoyer, and M. Joliot. 2002. “Automated Anatomical Labeling of Activations in SPM Using a Macroscopic Anatomical Parcellation of the MNI MRI Single-Subject Brain.” NeuroImage 15 (1): 273–89. https://doi.org/10.1006/nimg.2001.0978.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-04-08T09:25:59Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Brain Atlas */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
===Short mathematical introduction===&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
===Applying the Beamformer===&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the time-domain beamformer from the Average tab of the Paradigm dialog box'''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the&lt;br /&gt;
'''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is&lt;br /&gt;
superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF44.png|500px|thumb|c|none|Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple-source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in&lt;br /&gt;
the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png|700px|thumb|c|none|Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the&lt;br /&gt;
beamformer image).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png|700px|thumb|c|none|Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the location (blue square in the figure) is not considered for the multiple-source beamformer.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is&lt;br /&gt;
performed.&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
===Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image===&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a&lt;br /&gt;
source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for '''&amp;lt;u&amp;gt;source coherence&amp;lt;/u&amp;gt;''' analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press '''N''' key when there is no source in the current source array or&lt;br /&gt;
there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press '''N''' key when there is more than one regional or dipole source in&lt;br /&gt;
the current source array.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting ''Hide Image'' entry in the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (vmp) format from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* For scaling options, use [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volume tab of the Image Settings &amp;lt;u&amp;gt;dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter [[#Regularization_of_distributed_volume_images|''Regularization of distributed volume images'']] for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:CorticalLOR.png‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
==SESAME==&lt;br /&gt;
&lt;br /&gt;
SESAME (Sequential Semi-Analytic Monte-Carlo Estimation) is a Bayesian approach for estimating sources that uses Markov-Chain Monte-Carlo method for efficient computation of the probability distribution as described in Sommariva, S., &amp;amp; Sorrentino, A. &amp;quot;Sequential Monte Carlo samplers for semi-linear inverse problems and application to magnetoencephalography.&amp;quot; Inverse Problems 30.11 (2014): 114020. It allows to automatically estimate simultaneously the number of dipoles, their locations and time courses requiring virtually no user input.&lt;br /&gt;
The algorithm is divided in two blocks:&lt;br /&gt;
&lt;br /&gt;
* The first block consists of a Monte Carlo sampling algorithm that produces, with an adaptive number of iterations, a set of samples representing the posterior distribution for the number of dipoles and the dipole locations.&lt;br /&gt;
* The second block estimates the source time courses, given the number of dipoles and the dipole locations.&lt;br /&gt;
&lt;br /&gt;
The Monte Carlo algorithm in the first block works by letting a set of weighted samples evolve with each iteration. At each iteration, the samples (a multi-dipole state) approximates the n-th element of a sequence of distributions p1, …, pN, that reaches the desired posterior distribution (pN = p(x|y)). The sequence is built as pN = p(x) p(y|x) α(n), such that α(1) = 0, α(N) = 1. The actual sequence of values of alpha is determined online. Dipole moments are estimated after the number of dipoles and the dipole locations have been estimated with the Monte Carlo procedure. This continues until a steady state is reached.&lt;br /&gt;
The SESAME image in BESA Research displays the final probability of source location along with an estimate for number of sources. Using the menu function &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image / Export Image As...'''&amp;lt;/span&amp;gt; you have the option to save this SESAME image.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
*'''Grid spacing:''' Due to memory and computational limitations, it is recommended to use SESAME with a grid spacing of 5 mm or more.&lt;br /&gt;
*'''Fit Interval:'''  SESAME requires a fit interval of more than 2 samples to start the computation.&lt;br /&gt;
*'''Computation time:''' Computation speed during SESAME calculation depends on the grid spacing (computation is faster with larger grid spacing) and number of channels.&lt;br /&gt;
&lt;br /&gt;
==Brain Atlas==&lt;br /&gt;
&lt;br /&gt;
===Introduction===&lt;br /&gt;
&lt;br /&gt;
Brain atlas is a priori data that can be applied over any discrete or distributed source image displayed in the 3D window. It is a reference value that strongly depends on the selected brain atlas and should not be used as medical reference since individual brains may differ from the brain atlas.&lt;br /&gt;
&lt;br /&gt;
[[Image:BrainAtlas1.png]]&lt;br /&gt;
&lt;br /&gt;
===Brain Atlases===&lt;br /&gt;
&lt;br /&gt;
In BESA Research the atlases listed below are provided. BESA is not the author &amp;lt;u&amp;gt;of the atlases; please cite the appropriate publications if you use any of the atlases in your publication.&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Brainnetome''' This is one of the most modern brain probabilistic atlas where structural, functional, and connectivity information was used to perform cortical parcellation. It was introduce by Fan and colleagues (2016), and is still work in progress. The atlas was created using data from 40 healthy adults taking part in the Human Connectome Project. In March 2018, the atlas consists of 246 structures labeled independently for each hemisphere. In BESA we provide the max probability map with labeling. Please visit the Brainnetome webpage to see more details related to the indicated brain regions (i.e. behavioral domains, paradigm classes and regions connectivity).&lt;br /&gt;
&lt;br /&gt;
'''AAL''' Automated Anatomical Labeling atlas was created in 2002 by Tzourio-Mazoyer and collegues (2002). It is the mostly used atlas nowadays. The atlas is based on the averaged brain of one subject (young male) who was scanned 27 times. The atlas resolution is 1mm isometric. The brain sulci were drawn manually on every 2mm slice and then brain regions were automatically assigned. The atlas consists of 116 regions which are asymmetrical between hemispheres. The atlas is implemented as in the SPM12 toolbox.&lt;br /&gt;
&lt;br /&gt;
'''Brodmann''' The Brodmann map was created by Brodmann (1909). The brain regions were differentiated by cytoarchitecture of each cortical area using the Nissi method of cell staining. The digitalization of the original Brodmann map was performed by Damasio and Damasio (1989). The digitalized atlas consists of 44 fields that are symmetric between hemispheres. BESA used the atlas implementation as in Chris Roden’s MRICro software.&lt;br /&gt;
&lt;br /&gt;
'''AAL2015''' Automated Anatomical Labeling revision 2015. This is the updated AAL atlas. In comparison to the previous version (AAL) mainly the frontal lobe shows a higher degree of parcellation (Rolls, Joliot, and Tzourio-Mazoyer 2015). The atlas is implemented as in the SPM12 toolbox.&lt;br /&gt;
&lt;br /&gt;
'''Talairach''' Atlas was created in 1988 by Talairach and Tournoux (1988) and it is based on the post mortem brain slices of a 60 year old right handed European female. It was created by drawing and matching regions with the Brodmann map. The atlas is available at 5 tissue levels, however we used only the volumetric gyrus level as it is the most known in neuroscience and is the most appropriate for EEG. The atlas consists of 55 regions that are symmetric between hemispheres. The native resolution of the atlas was 0.43x0.43x2- 5mm. Please note that the poor resolution in Z direction is a direct consequence atlas definition, and since it is a post-mortem atlas it will not correctly match the brain template&lt;br /&gt;
(noticeable mainly on brain edges). The atlas digitalization was performed by Lancaster and colleagues (2000) resulting in a “golden standard” for neuroscience. The atlas was first implemented in a software called talairach daemon.&lt;br /&gt;
&lt;br /&gt;
===Visualization modes===&lt;br /&gt;
&lt;br /&gt;
'''Just Labels.''' Displayed are only Talairach Coordinates, the currently used brain atlas and the region name where the crosshair is placed. No atlas overlay will be visible on the 3D image.&lt;br /&gt;
&lt;br /&gt;
'''brainCOLOR.''' All information is displayed as in “Just Labels” mode but also the atlas is visible as an overlay over the MRI. The coloring is performed using the algorithm introduced by Klein and colleagues (Klein et al. 2010). With this method of coloring the regions which are part of the same lobe are colored in a similar color but with different color shade. The shade is computed by the algorithm to make these regions visually differentiable from each other as much as possible.&lt;br /&gt;
&lt;br /&gt;
'''Individual Color.''' In this mode the native brain atlas color is used if provided by the authors of the brain atlas (i.e. Yeo7). Where this was not available BESA autogenerated colors for the atlas using an approach similar to political map coloring. This approach aims to differentiate most regions that are adjacent to each other and no presumptions on lobes is applied.&lt;br /&gt;
&lt;br /&gt;
'''Contour.''' Only region contours (borders between atlas regions) are drawn with blue color. This is the default mode in BESA Research.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
* Brodmann, Korbinian. 1909. Vergleichende Lokalisationslehre Der Großhirnrinde. Leipzig: Barth. https://www.livivo.de/doc/437605.&lt;br /&gt;
* Damasio, Hanna, and Antonio R. Damasio. 1989. Lesion Analysis in Neuropsychology. Oxford University Press, USA.&lt;br /&gt;
* Fan, Lingzhong, Hai Li, Junjie Zhuo, Yu Zhang, Jiaojian Wang, Liangfu Chen, Zhengyi Yang, et al. 2016. “The Human Brainnetome Atlas: A New Brain Atlas Based on Connectional Architecture.” Cerebral Cortex 26 (8): 3508–26. https://doi.org/10.1093/cercor/bhw157.&lt;br /&gt;
* Klein, Arno, Andrew Worth, Jason Tourville, Bennett Landman, Tito Dal Canton, Satrajit S. Ghosh, and David Shattuck. 2010. “An Interactive Tool for Constructing Optimal Brain Colormaps.” http://braincolor.mindboggle.info/docs/SFN2010_BrainCOLORmap_poster_ArnoKlein.pdf.&lt;br /&gt;
* Lancaster, Jack L., Marty G. Woldorff, Lawrence M. Parsons, Mario Liotti, Catarina S. Freitas, Lacy Rainey, Peter V. Kochunov, Dan Nickerson, Shawn A. Mikiten, and Peter T. Fox. 2000. “Automated Talairach Atlas Labels for Functional Brain Mapping.” Human Brain Mapping 10 (3): 120–131.&lt;br /&gt;
*Rolls, Edmund T., Marc Joliot, and Nathalie Tzourio-Mazoyer. 2015. “Implementation of a New Parcellation of the Orbitofrontal Cortex in the Automated Anatomical Labeling Atlas.” NeuroImage 122 (November): 1–5. https://doi.org/10.1016/j.neuroimage.2015.07.075.&lt;br /&gt;
* Talairach, J, and P Tournoux. 1988. Co-Planar Stereotaxic Atlas of the Human Brain. 3-Dimensional Proportional System: An Approach to Cerebral Imaging. Thieme.&lt;br /&gt;
*Thomas Yeo, B. T., F. M. Krienen, J. Sepulcre, M. R. Sabuncu, D. Lashkari, M. Hollinshead, J. L. Roffman, et al. 2011. “The Organization of the Human Cerebral Cortex Estimated by Intrinsic Functional Connectivity.” Journal of Neurophysiology 106 (3): 1125–65. https://doi.org/10.1152/jn.00338.2011.&lt;br /&gt;
* Tzourio-Mazoyer, N., B. Landeau, D. Papathanassiou, F. Crivello, O. Etard, N. Delcroix, B. Mazoyer, and M. Joliot. 2002. “Automated Anatomical Labeling of Activations in SPM Using a Macroscopic Anatomical Parcellation of the MNI MRI Single-Subject Brain.” NeuroImage 15 (1): 273–89. https://doi.org/10.1006/nimg.2001.0978.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:BrainAtlas1.png</id>
		<title>File:BrainAtlas1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:BrainAtlas1.png"/>
				<updated>2019-04-08T09:10:40Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-04-08T09:10:25Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
===Short mathematical introduction===&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
===Applying the Beamformer===&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the time-domain beamformer from the Average tab of the Paradigm dialog box'''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the&lt;br /&gt;
'''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is&lt;br /&gt;
superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF44.png|500px|thumb|c|none|Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple-source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in&lt;br /&gt;
the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png|700px|thumb|c|none|Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the&lt;br /&gt;
beamformer image).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png|700px|thumb|c|none|Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the location (blue square in the figure) is not considered for the multiple-source beamformer.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is&lt;br /&gt;
performed.&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
===Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image===&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a&lt;br /&gt;
source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for '''&amp;lt;u&amp;gt;source coherence&amp;lt;/u&amp;gt;''' analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press '''N''' key when there is no source in the current source array or&lt;br /&gt;
there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press '''N''' key when there is more than one regional or dipole source in&lt;br /&gt;
the current source array.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting ''Hide Image'' entry in the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (vmp) format from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* For scaling options, use [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volume tab of the Image Settings &amp;lt;u&amp;gt;dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter [[#Regularization_of_distributed_volume_images|''Regularization of distributed volume images'']] for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:CorticalLOR.png‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
==SESAME==&lt;br /&gt;
&lt;br /&gt;
SESAME (Sequential Semi-Analytic Monte-Carlo Estimation) is a Bayesian approach for estimating sources that uses Markov-Chain Monte-Carlo method for efficient computation of the probability distribution as described in Sommariva, S., &amp;amp; Sorrentino, A. &amp;quot;Sequential Monte Carlo samplers for semi-linear inverse problems and application to magnetoencephalography.&amp;quot; Inverse Problems 30.11 (2014): 114020. It allows to automatically estimate simultaneously the number of dipoles, their locations and time courses requiring virtually no user input.&lt;br /&gt;
The algorithm is divided in two blocks:&lt;br /&gt;
&lt;br /&gt;
* The first block consists of a Monte Carlo sampling algorithm that produces, with an adaptive number of iterations, a set of samples representing the posterior distribution for the number of dipoles and the dipole locations.&lt;br /&gt;
* The second block estimates the source time courses, given the number of dipoles and the dipole locations.&lt;br /&gt;
&lt;br /&gt;
The Monte Carlo algorithm in the first block works by letting a set of weighted samples evolve with each iteration. At each iteration, the samples (a multi-dipole state) approximates the n-th element of a sequence of distributions p1, …, pN, that reaches the desired posterior distribution (pN = p(x|y)). The sequence is built as pN = p(x) p(y|x) α(n), such that α(1) = 0, α(N) = 1. The actual sequence of values of alpha is determined online. Dipole moments are estimated after the number of dipoles and the dipole locations have been estimated with the Monte Carlo procedure. This continues until a steady state is reached.&lt;br /&gt;
The SESAME image in BESA Research displays the final probability of source location along with an estimate for number of sources. Using the menu function &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image / Export Image As...'''&amp;lt;/span&amp;gt; you have the option to save this SESAME image.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
*'''Grid spacing:''' Due to memory and computational limitations, it is recommended to use SESAME with a grid spacing of 5 mm or more.&lt;br /&gt;
*'''Fit Interval:'''  SESAME requires a fit interval of more than 2 samples to start the computation.&lt;br /&gt;
*'''Computation time:''' Computation speed during SESAME calculation depends on the grid spacing (computation is faster with larger grid spacing) and number of channels.&lt;br /&gt;
&lt;br /&gt;
==Brain Atlas==&lt;br /&gt;
&lt;br /&gt;
===Introduction===&lt;br /&gt;
&lt;br /&gt;
Brain atlas is a priori data that can be applied over any discrete or distributed source image displayed in the 3D window. It is a reference value that strongly depends on the selected brain atlas and should not be used as medical reference since individual brains may differ from the brain atlas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-03-28T14:23:37Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Short mathematical introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
===Short mathematical introduction===&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
===Applying the Beamformer===&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the time-domain beamformer from the Average tab of the Paradigm dialog box'''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the&lt;br /&gt;
'''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is&lt;br /&gt;
superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF44.png]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the&lt;br /&gt;
activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple-source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in&lt;br /&gt;
the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the&lt;br /&gt;
beamformer image).''&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png]]&lt;br /&gt;
&lt;br /&gt;
''Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The&lt;br /&gt;
source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in&lt;br /&gt;
the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the&lt;br /&gt;
location (blue square in the figure) is not considered for the multiple-source beamformer.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is&lt;br /&gt;
performed.&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
===Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image===&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a&lt;br /&gt;
source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for '''&amp;lt;u&amp;gt;source coherence&amp;lt;/u&amp;gt;''' analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press '''N''' key when there is no source in the current source array or&lt;br /&gt;
there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press '''N''' key when there is more than one regional or dipole source in&lt;br /&gt;
the current source array.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting ''Hide Image'' entry in the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (vmp) format from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* For scaling options, use [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volume tab of the Image Settings &amp;lt;u&amp;gt;dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:CorticalLOR.png‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-03-28T12:41:08Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
===Short mathematical introduction===&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
===Applying the Beamformer===&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the time-domain beamformer from the Average tab of the Paradigm dialog box'''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the&lt;br /&gt;
'''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is&lt;br /&gt;
superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF44.png]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the&lt;br /&gt;
activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple-source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in&lt;br /&gt;
the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the&lt;br /&gt;
beamformer image).''&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png]]&lt;br /&gt;
&lt;br /&gt;
''Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The&lt;br /&gt;
source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in&lt;br /&gt;
the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the&lt;br /&gt;
location (blue square in the figure) is not considered for the multiple-source beamformer.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is&lt;br /&gt;
performed.&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
===Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image===&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a&lt;br /&gt;
source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for '''&amp;lt;u&amp;gt;source coherence&amp;lt;/u&amp;gt;''' analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press '''N''' key when there is no source in the current source array or&lt;br /&gt;
there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press '''N''' key when there is more than one regional or dipole source in&lt;br /&gt;
the current source array.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting ''Hide Image'' entry in the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (vmp) format from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* For scaling options, use [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volume tab of the Image Settings &amp;lt;u&amp;gt;dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:CorticalLOR.png‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-03-28T12:04:51Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Multiple Source Beamformer (MSBF) in the Time Domain */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
===Short mathematical introduction===&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[Source_Analysis_3D_Imaging#Categories|Multiple_Source_Beamformer_(MSBF)_in_the_Time-frequency_Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
===Applying the Beamformer===&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the time-domain beamformer from the Average tab of the Paradigm dialog box'''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the&lt;br /&gt;
'''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is&lt;br /&gt;
superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF44.png]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the&lt;br /&gt;
activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple-source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in&lt;br /&gt;
the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the&lt;br /&gt;
beamformer image).''&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png]]&lt;br /&gt;
&lt;br /&gt;
''Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The&lt;br /&gt;
source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in&lt;br /&gt;
the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the&lt;br /&gt;
location (blue square in the figure) is not considered for the multiple-source beamformer.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is&lt;br /&gt;
performed.&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
===Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image===&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a&lt;br /&gt;
source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for '''&amp;lt;u&amp;gt;source coherence&amp;lt;/u&amp;gt;''' analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press '''N''' key when there is no source in the current source array or&lt;br /&gt;
there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press '''N''' key when there is more than one regional or dipole source in&lt;br /&gt;
the current source array.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting ''Hide Image'' entry in the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (vmp) format from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* For scaling options, use [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volume tab of the Image Settings &amp;lt;u&amp;gt;dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:CorticalLOR.png‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-03-28T09:38:43Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
===Short mathematical introduction===&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
===Applying the Beamformer===&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the time-domain beamformer from the Average tab of the Paradigm dialog box'''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the&lt;br /&gt;
'''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is&lt;br /&gt;
superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF44.png]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the&lt;br /&gt;
activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple-source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in&lt;br /&gt;
the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the&lt;br /&gt;
beamformer image).''&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png]]&lt;br /&gt;
&lt;br /&gt;
''Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The&lt;br /&gt;
source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in&lt;br /&gt;
the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the&lt;br /&gt;
location (blue square in the figure) is not considered for the multiple-source beamformer.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is&lt;br /&gt;
performed.&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
===Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image===&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a&lt;br /&gt;
source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for '''&amp;lt;u&amp;gt;source coherence&amp;lt;/u&amp;gt;''' analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press '''N''' key when there is no source in the current source array or&lt;br /&gt;
there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press '''N''' key when there is more than one regional or dipole source in&lt;br /&gt;
the current source array.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting ''Hide Image'' entry in the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (vmp) format from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* For scaling options, use [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volume tab of the Image Settings &amp;lt;u&amp;gt;dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:CorticalLOR.png‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-03-28T09:37:41Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
===Short mathematical introduction===&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
===Applying the Beamformer===&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the time-domain beamformer from the Average tab of the Paradigm dialog box'''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the&lt;br /&gt;
'''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is&lt;br /&gt;
superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF44.png]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the&lt;br /&gt;
activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple-source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in&lt;br /&gt;
the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the&lt;br /&gt;
beamformer image).''&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png]]&lt;br /&gt;
&lt;br /&gt;
''Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The&lt;br /&gt;
source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in&lt;br /&gt;
the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the&lt;br /&gt;
location (blue square in the figure) is not considered for the multiple-source beamformer.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is&lt;br /&gt;
performed.&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
===Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image===&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a&lt;br /&gt;
source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for '''&amp;lt;u&amp;gt;source coherence&amp;lt;/u&amp;gt;''' analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press '''N''' key when there is no source in the current source array or&lt;br /&gt;
there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press '''N''' key when there is more than one regional or dipole source in&lt;br /&gt;
the current source array.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting ''Hide Image'' entry in the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (vmp) format from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* For scaling options, use the and Image Scale toolbar buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volume tab of the Image Settings &amp;lt;u&amp;gt;dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:CorticalLOR.png‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:Msbfpic4.png</id>
		<title>File:Msbfpic4.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:Msbfpic4.png"/>
				<updated>2019-03-27T13:58:11Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:Msbfpic3.png</id>
		<title>File:Msbfpic3.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:Msbfpic3.png"/>
				<updated>2019-03-27T13:58:02Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:Msbfpic2.png</id>
		<title>File:Msbfpic2.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:Msbfpic2.png"/>
				<updated>2019-03-27T13:57:50Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:MsbfPic1.png</id>
		<title>File:MsbfPic1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:MsbfPic1.png"/>
				<updated>2019-03-27T13:57:41Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini</id>
		<title>The Initialization File: BESA.ini</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini"/>
				<updated>2019-03-27T13:46:08Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* FMRI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
'''BESA.ini File'''&lt;br /&gt;
&lt;br /&gt;
BESA Research uses settings provided in the initialization file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; whenever BESA Research is started or a new file is opened for the first time. The format of this file conforms with standard initialization files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.ini&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) of Windows. You may change the settings in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; using &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;NOTEPAD.exe&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; from the ACCESSORIES group, or other plain text editors to adapt BESA Research to '''your own everyday needs'''. The default settings provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; will be used by BESA Research whenever BESA Research or the launch program is started. It is advised that you make a backup copy of &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; before you change the default settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Location of BESA.ini'''&lt;br /&gt;
&lt;br /&gt;
You can place &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; at three possible locations:&lt;br /&gt;
&lt;br /&gt;
# '''Private''': each user on a PC should have his/her own private settings. This is normally in ''My Documents/BESA/Research_6_1''&lt;br /&gt;
# '''Public''': all users should use one setting, but they can edit &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; to change the settings. This is normally in ''Public Documents/BESA/Research_6_1''&lt;br /&gt;
# '''Administrator''': the PC administrator determines the settings. This is normally in ''C:Program Files(x86)/BESA/Research_6_1''&lt;br /&gt;
&lt;br /&gt;
The actual folder names depend on the operating system and the system language.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;When BESA starts, it first looks for the '''administrator''' version of '''BESA.ini'''. If this is not found, it looks for the '''private''' version. If this is not found, it looks for the '''public''' version. If this is not found, internal default values are used.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''There are 13 general sections, and several reader-specific sections:'''&lt;br /&gt;
&lt;br /&gt;
[Defaults] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; General settings (filters, scaling, and various other settings)&lt;br /&gt;
&lt;br /&gt;
[Folders] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Folders used by BESA Research (Examples, Montages, Scripts, Settings,...)&lt;br /&gt;
&lt;br /&gt;
[Electrodes] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Electrode renaming&lt;br /&gt;
&lt;br /&gt;
[Patterns] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;Rename patterns in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Tags'''&amp;lt;/span&amp;gt; menu&lt;br /&gt;
&lt;br /&gt;
[Artifacts] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;   Settings for artifact correction&lt;br /&gt;
&lt;br /&gt;
[KEYCONTROLS] &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;  Function key definitions&lt;br /&gt;
&lt;br /&gt;
[Search] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;Default parameters for search&lt;br /&gt;
&lt;br /&gt;
[FFT] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp; Frequency band definitions&lt;br /&gt;
&lt;br /&gt;
[Printer] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;  Printer control&lt;br /&gt;
&lt;br /&gt;
[Calibration] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;  Calibration control&lt;br /&gt;
&lt;br /&gt;
[Video] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Digital video control&lt;br /&gt;
&lt;br /&gt;
[Mapping] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;  Mapping control&lt;br /&gt;
&lt;br /&gt;
[Updates] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Options for program updates&lt;br /&gt;
&lt;br /&gt;
[Matlab] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;     Settings for the Matlab interface&lt;br /&gt;
&lt;br /&gt;
[fMRI] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;        Settings for the fMRI arfifact removal&lt;br /&gt;
&lt;br /&gt;
[Montages] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;      A setting for a default source montage&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Reader-specific settings'''&lt;br /&gt;
&lt;br /&gt;
[BrainLab]&lt;br /&gt;
&lt;br /&gt;
[Bio-Logic]&lt;br /&gt;
&lt;br /&gt;
[EDF+] [BDF] [Trackit]&lt;br /&gt;
&lt;br /&gt;
[EGI]&lt;br /&gt;
&lt;br /&gt;
[Harmonie]&lt;br /&gt;
&lt;br /&gt;
[NeuroScan Keys]&lt;br /&gt;
&lt;br /&gt;
[NKT2100]&lt;br /&gt;
&lt;br /&gt;
[Vangard]&lt;br /&gt;
&lt;br /&gt;
[XLTEK]&lt;br /&gt;
&lt;br /&gt;
== Defaults ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Defaults]:'''&lt;br /&gt;
&lt;br /&gt;
'''DatabaseAllowLocalFiles=Yes''' (If set to &amp;quot;Yes&amp;quot;, BESA Research will write filenames &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.ftg'''&amp;lt;/span&amp;gt;&amp;quot; and &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.fst&amp;quot;'''&amp;lt;/span&amp;gt; to the data folder, saving current file tag and display settings there. If set to &amp;quot;No&amp;quot;, these files are only written to the database. If set to &amp;quot;Yes&amp;quot;, you can copy these files along with the data to a new folder, and display settings and tags will be preserved.)&lt;br /&gt;
&lt;br /&gt;
'''DataBuffering=Off''' (If set to &amp;quot;On&amp;quot;, an internal buffer of length 180 s of data is kept to speed up paging). This can speed up paging, particularly when the data are in a network folder.&lt;br /&gt;
&lt;br /&gt;
'''DisplayedTime=10'''&amp;amp;nbsp;displayed time window [s] on the screen&lt;br /&gt;
&lt;br /&gt;
'''Montage=Org'''&amp;amp;nbsp;montage used when opening a new file&lt;br /&gt;
&lt;br /&gt;
'''ScpScale=50'''&amp;amp;nbsp;scale of scalp channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''PgrScale=500'''&amp;amp;nbsp;scale of polygraphic channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''IcrScale=500'''&amp;amp;nbsp;scale of intracranial channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''MegScale=500'''&amp;amp;nbsp;scale of MEG/marker channels in [fT]&lt;br /&gt;
&lt;br /&gt;
'''SrcScale=100'''&amp;amp;nbsp;scale of source of source montages&lt;br /&gt;
&lt;br /&gt;
'''BaselineCorrection=On'''&amp;amp;nbsp;baseline correction, do not switch off in AC systems&lt;br /&gt;
&lt;br /&gt;
'''ClippingPercent=&amp;amp;nbsp;'''set from 100 to 200 if you want to clip artifacts in displayed EEG (not used if empty or 0)&lt;br /&gt;
&lt;br /&gt;
'''LowFilter='''&amp;amp;nbsp;low filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''TimeConstant=0.3'''&amp;amp;nbsp;time constant for low filter cutoff frequency [sec] (fixed forward filter, 0.3 sec is equivalent to 0.53 Hz)&lt;br /&gt;
&lt;br /&gt;
'''HighFilter=70'''&amp;amp;nbsp;high filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''NotchFilter=50'''&amp;amp;nbsp;notch filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''NotchFilterStatus=Off'''&amp;amp;nbsp;notch filter is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''BandFilter=12'''&amp;amp;nbsp;band pass filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''BandFilterStatus=Off'''&amp;amp;nbsp;band pass is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''AdditionalChannelFile=''' defines the full path and name of an additional channels montage file, e.g. &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''C:\Program Files\BESA\Research_x\Montages\AdditionalChannels\EKG.sel'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''ColoredWaveforms=On'''&amp;amp;nbsp;scalp waveforms are (not) colored according to region&lt;br /&gt;
&lt;br /&gt;
'''WriteSegmentPath='''&amp;amp;nbsp;defines default path for saving segments/averages.&amp;amp;nbsp;If blank, the path of the current data file is used.&lt;br /&gt;
&lt;br /&gt;
'''ShowSubjectInfo=Off'''&amp;amp;nbsp;subject info will (not) be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following optional parameters are not defined as default and can be set manually in&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''' BESA.ini'''&amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''TextEditor=&amp;quot;Notepad.exe&amp;quot;''' defines the path to your preferred text editor. This will be used when you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Edit'''&amp;lt;/span&amp;gt; button the ''Load Coordinate Files dialog box''.&lt;br /&gt;
&lt;br /&gt;
'''NeuroScanDataNumberOfBits=32''' defines the format of NeuroScan data files ('16' for 16-bit, '32' for 32-bit). If this variable is not specified, BESA uses a heuristic to (try to) decide which of the two data formats is used. This variable overrides the heuristic. If you want to specify the NeuroScan data format for specific files, create a file, named &amp;quot;16bit&amp;quot; or &amp;quot;32bit&amp;quot;, and place it in the data folder.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesForNNChannels=25''' Scale waveforms as if a fixed number of channels were displayed in the window (here: 25). A minimum of 10 channels can be used for the scaling. This parameter is superseded if the parameter &amp;quot;''ScaleAmplitudesFixedPixelHeight&amp;quot;'' is specified.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesFixedPixelHeight=70''' Set the scale bar for amplitudes to a fixed pixel height (here: 70). If this parameter is set in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file, it supersedes the parameter &amp;quot;''ScaleAmplitudesForNNChannels''&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes'''&lt;br /&gt;
&lt;br /&gt;
Check the Menu descriptions for the various definitions of filters, montages etc. For montage preselection, use the labels as visible on the montage push-buttons.&lt;br /&gt;
&lt;br /&gt;
The additional channels file should contain all polygraphic channels (e.g. EKG, EOG, respiratory) that you want to view regularly along with the scalp channels. The entry AdditionalChannelFile must specify the full path pointing to the location of additional channel files (recommended: ''Montages\AdditionalChannels''). If no drive is specified, the installation drive of BESA is used.&lt;br /&gt;
&lt;br /&gt;
If BaselineCorrection is set to 'On', before displaying a screen of data, BESA subtracts for each channel the mean over its displayed time points. This optimizes viewing, because it ensures that the vertical position of each channel is not shifted upward or downward from the channel label at the left of the screen. There are some cases in which you will not want baseline correction, i.e. when the DC level in the data is already correctly defined. This is usually the case, for instance, when reading in files that have been processed by BESA. In this case, BaselineCorrection should be set to 'Off', because otherwise maps and source montage displays may be distorted.&lt;br /&gt;
&lt;br /&gt;
== Folders ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The [Folders] section defines where BESA Research places its files. In versions 5.1 and earlier, files were located in various subfolders of the program folder. This led to problems if the user did not have administrator rights, e.g. to create or write to a file. For compatibility with Windows 7 and higher versions, many folders are now located by default in locations where normal users can create and write files. If you wish, you can also specify paths in the [Folders] section to use the previous locations. The previous location is given for each variable.'''&lt;br /&gt;
&lt;br /&gt;
These settings allow some flexibility that can be useful if you want to tune BESA Research for use by several users, or on a network. For instance, the Examples and Montages folders might be located on a network disk. For the current defaults, the database, Examples, Montages, and Scripts are set up for use by all users on the PC on which BESA Research is installed. The settings files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.set'''&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.cfg'''&amp;lt;/span&amp;gt;, etc.) are located in private folders so that each user retains his or her own settings.&lt;br /&gt;
&lt;br /&gt;
The '''default''' settings (i.e. settings that BESA Research uses if the entries are omitted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file) are shown for each variable definition.&lt;br /&gt;
&lt;br /&gt;
The folder definitions can use '''placeholders''', labels enclosed by a % sign (e.g. %localapp%), to define paths that vary depending on the language version and on the Windows system. These are defined below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The Variables'''&lt;br /&gt;
&lt;br /&gt;
'''Database=%localapp%''' The path of the BESA Research database folder (used to be ''%progdir%System\DB'' in BESA versions up to 5.1.x). Unless the provided path ends with ''\DB'' or ''\Database'', BESA Research will automatically create a folder named ''Database'' in the provided path.&lt;br /&gt;
&lt;br /&gt;
'''Settings=%privatprog%Settings''' The path of the BESA Research settings folder (used to be ''%progdir%System'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Montages=%publicprog%Montages''' The path of the BESA Research montages folder (used to be ''%progdir%Montages'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Scripts=%publicprog%Scripts''' The path of the BESA Research Scripts folder (used to be ''%progdir%Scripts'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Examples=%publicprog%Examples''' The path of the BESA Research Examples folder (used to be ''%progdir%Examples'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''User=%privatprog%Settings''' The path for user defined settings (used to be ''%progdir%System\Userdirs'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Placeholders'''&lt;br /&gt;
&lt;br /&gt;
The strings enclosed by percent signs (%) are placeholders for the following folders in English-language versions of Windows. Folder names differ depending on Windows version, and for other language settings. BESA Research will substitute the placeholders by the appropriate folder name for the system and the system language:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows 7 and higher (English):''' &lt;br /&gt;
&lt;br /&gt;
'''%localapp%''' = &amp;quot;''C:\Users\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Desktop as &amp;quot;''Desktop\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Users\Public\Public Documents\BESA\Research_6_1''&amp;quot;. This folder is directly accessible from the Windows Explorer under &amp;quot;''Libraries\Documents\Public'' ''Documents\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Libraries\Documents\My'' ''Documents\Research_6_1''&amp;quot; or &amp;quot;''Desktop\[User]\My Documents\BESA\Research_6_1''. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows Vista (English'''): &lt;br /&gt;
&lt;br /&gt;
'''%localapp% '''&amp;lt;nowiki&amp;gt;= &amp;quot;&amp;lt;/nowiki&amp;gt;''C:\Users\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Desktop\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Users\Public\Public Documents\BESA\Research_6_1''&amp;quot;. This folder is directly accessible from the Windows Explorer under &amp;quot;''Desktop\Public\Public Documents\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Desktop\[user]\Documents\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%''' &amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows XP (English) (note: not supported by BESA Research 6.1 and higher):''' &lt;br /&gt;
&lt;br /&gt;
'''%localapp% '''&amp;lt;nowiki&amp;gt;= &amp;quot;&amp;lt;/nowiki&amp;gt;''C:\Documents and Settings\[user]\Local Settings\Application Data\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Documents and Settings\All Users\Documents\BESA\Research_6_0&amp;quot;. ''This folder is directly accessible from the Windows Explorer under &amp;quot;''My Computer\Shared'' ''Documents\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Documents and Settings\[user]\My Documents\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''My Documents\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir% &amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows 2000 (English) (note: not supported by BESA Research 6.1 and higher):'''&lt;br /&gt;
&lt;br /&gt;
'''%localapp%''' = &amp;quot;''C:\Documents and Settings\[user]\Local Settings\Application Data\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Documents and Settings\All Users\Documents\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Documents and Settings\[user]\My Documents\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer '''as &amp;quot;'''''My Documents\BESA\Research_6_0'''''&amp;quot;. '''&lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%'''&lt;br /&gt;
&lt;br /&gt;
== Electrodes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''This section allows for automatic relabeling of electrodes. For instance, the 10-20 label &amp;quot;T3&amp;quot; can be replaced by the 10-10 convention &amp;quot;T7&amp;quot;.'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Electrodes]:'''&lt;br /&gt;
&lt;br /&gt;
T7=T3&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
T8=T4&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P7=T5&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P8=T6&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
X1=ECG1&amp;amp;nbsp;define X1 channel to be ECG1&lt;br /&gt;
&lt;br /&gt;
X2=ECG2&amp;amp;nbsp;define X2 channel to be ECG2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other examples, depending on your electrode input box definition, could be:&lt;br /&gt;
&lt;br /&gt;
PG1=LO1&amp;amp;nbsp;define X3 as lateral orbital eye electrode left&lt;br /&gt;
&lt;br /&gt;
PG2=LO2&amp;amp;nbsp;bipolar LO1-LO2 defines horizontal EOG (additional channel)&lt;br /&gt;
&lt;br /&gt;
X3=IO1&amp;amp;nbsp;infraorbital, e.g. use with FP1 as additional channel for VEOG&lt;br /&gt;
&lt;br /&gt;
X9=Rsp&amp;amp;nbsp;define X9 channel to be a respiratory channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Relabeling of channel names (as stored in the EEG file header) is helpful to predefine your standard sequence of channels and to avoid the need for reading and/or editing a Channel Configuration file for every EEG file.&lt;br /&gt;
&lt;br /&gt;
'''Note 1''': For polygraphic channels, or if your EKG has been recorded differentially, you should edit and define an ''Additional Channels Montage'' according to your recording channel configuration (e.g. Fp1-IO1=vertical EOG). The Additional Channels group permits to display these channels regularly below the scalp montages with individual scales.&lt;br /&gt;
&lt;br /&gt;
'''Note 2''': EOG channels record both eye and scalp activity. In digital EEG systems, EOG electrodes should be labeled according to their position in the 10-10 system (see &amp;quot;''Electrode Conventions''&amp;quot;). This permits use of these electrodes for mapping and suppression of eye artifacts. The standard definitions above give an example of how to relabel extra channels (X1...X10, PG1, PG2) for the use of EOG, EKG and respiratory (Rsp) channels. Use an ''Additional Channels'' file to define horizontal and vertical EOG channels by using the appropriate electrodes in a bipolar montage (an example is provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''eog-ecg.mtg'''&amp;lt;/span&amp;gt; in ''Montages\AdditionalChannels''). Differentially recorded EKG and respiratory channel can be defined in the same file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Patterns ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Patterns]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define labels for each of the five patterns. The labels are shown* in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Tags'''&amp;lt;/span&amp;gt; menu,&lt;br /&gt;
* in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''TAG push-button'''&amp;lt;/span&amp;gt; popup menu, and&lt;br /&gt;
* when displaying tag info clicking with the right mouse on a tag at the bottom of the EEG or on the event bar.&lt;br /&gt;
&lt;br /&gt;
By default, no labels are defined. Define a label, e.g. for Pattern1 and Pattern2, as in the following example:&lt;br /&gt;
&lt;br /&gt;
Pattern1=Spike&lt;br /&gt;
&lt;br /&gt;
Pattern2=Sharp Wave&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Artifacts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Artifact default settings:'''&lt;br /&gt;
&lt;br /&gt;
See the chapter &amp;quot;''Artifact Correction / Reference / Artifact settings in the BESA.ini file''&amp;quot; in the online help.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Search ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Default settings for pattern search.&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Options ''Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThreshold''' = '''75%'''&lt;br /&gt;
&lt;br /&gt;
'''AmplitudeThreshold = 100 µV'''&lt;br /&gt;
&lt;br /&gt;
'''GradientThreshold = 25'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Average/View'' (SAV) Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''PreCursor = -250 ms'''&lt;br /&gt;
&lt;br /&gt;
'''PostCursor = 150 ms'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassFreq =&amp;amp;nbsp;2 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassSlope = 12 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassType = 0 (0 = zero phase, 1 = forward, 2 = backward'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassFreq = 35 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassSlope = 24 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassType = 0 (0 = zero phase, 1 = forward, 2 = backward)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdNoMarked = 60%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if no channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdOneMarked = 85%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if one channel label is marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdFourMarked = 65%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if between two channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''SelectedViewWindowWidthMultiplier = 300%'''&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearch = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, a File Save dialog will open, to allow to save the search average to a file (as with the SAW function).&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearchCheckBox = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, an additional checkbox &amp;quot;Write after search&amp;quot; is displayed at the bottom of the SAV Dialog, allowing to choose whether or not to write the search average after a search:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (1).gif ‎ ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''PreserveDefaults = Yes'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;No&amp;quot;, the SAV Dialog will open with the same boxes checked as the last time the dialog was opened during the current session.&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, the default frequency, buffer width, selected view after search, and default threshold are always checked when the dialog is opened.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== KeyControls ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the [KeyControls] section you can specify functions that can be allocated to &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function keys'''&amp;lt;/span&amp;gt; or to the ''Del'' key. Specify using the form:&lt;br /&gt;
&lt;br /&gt;
'''Fn=function''' or&lt;br /&gt;
&lt;br /&gt;
'''Del=function'''&lt;br /&gt;
&lt;br /&gt;
where &amp;quot;''n''&amp;quot; is a number between 2 and 12 (F1 is reserved for Help). For example:&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;F2 = Batch1&lt;br /&gt;
&lt;br /&gt;
Possible functions are:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Setting or removing events:'''&lt;br /&gt;
&lt;br /&gt;
'''Pattern''n''''', where ''n''&amp;lt;nowiki&amp;gt;=1-5: Sets the tag number &amp;lt;/nowiki&amp;gt;''n'' at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Epochfast:''' sets one boundary of an epoch at the cursor latency, but does not open&amp;amp;nbsp;the epoch text box to define a label.&lt;br /&gt;
&lt;br /&gt;
'''Marker:'''&amp;amp;nbsp;&amp;amp;nbsp;sets a marker at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Comment:'''&amp;amp;nbsp;sets a comment at the cursor latency and opens the comment box to enter&amp;amp;nbsp;text.&lt;br /&gt;
&lt;br /&gt;
'''Epoch:'''&amp;amp;nbsp;sets one boundary of an epoch at the cursor latency and opens the epoch&amp;amp;nbsp;text box to enter a label.&lt;br /&gt;
&lt;br /&gt;
'''Artifact:'''&amp;amp;nbsp;sets one boundary of an artifact segment at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Delete:'''&amp;amp;nbsp;&amp;amp;nbsp;deletes a tag at the cursor latency&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Batches and Montages:'''&lt;br /&gt;
&lt;br /&gt;
'''Batch''n''''', where n=1-12: Runs a predefined batch file corresponding to the number ''n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a batch, pressing it will open a ''File Open Dialog'' to select a batch. The setting you have chosen will be retained across BESA Research sessions. Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt;'''&amp;lt;/span&amp;gt; key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will always open the dialog. Hold the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' &amp;lt;ctrl&amp;gt; '''&amp;lt;/span&amp;gt;key with the function key to open the associated batch in the batch edit dialog.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Montage''n''''', where n=1-12: Sets a montage corresponding to the number'' n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a montage, pressing it will generate a message asking you to associate a montage as follows: Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt; '''&amp;lt;/span&amp;gt;key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will remove the current association, and substitute it with the current montage.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default settings after program installation are listed in the online help chapter ''Review / Reference / Controls / Mouse and Keyboard / Keyboard Controls''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== FFT ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [FFT]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define the setup in the Spectral Analysis section of the BESA Research program (FFT window, see the chapter &amp;quot;''Spectral Analysis / FFT''&amp;quot;). Up to 7 frequency bands may be defined. Five are defined by default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''FFTBand1=On'''&amp;amp;nbsp;FFT Bands 1-5 are defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand2=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand3=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand4=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand5=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand6=Off'''&amp;amp;nbsp;FFT Bands 6-7 are not defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand7=Off'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand1=Delta'''&amp;amp;nbsp;Names of the defined bands&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand2=Theta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand3=Alpha'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand4=Beta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand5=Gamma'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand1=RGB(0,0,0)''' &amp;amp;nbsp;Default color of each band&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand2=RGB(0,128,64)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand3=RGB(128,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand4=RGB(255,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand5=RGB(255,128,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand6=RGB(255,192,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand7=RGB(255,255,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand1=1'''&amp;amp;nbsp;Delta from 1-4 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand1=4'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand2=4'''&amp;amp;nbsp;Theta from 4-8 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand2=8'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand3=8''' Alpha from 8-14 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand3=14'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand4=14'''&amp;amp;nbsp;Beta from 14-30 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand4=30'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand5=30'''&amp;amp;nbsp;Gamma from 30-50 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand5=50'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These values are best set from within BESA Research, using the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Options'''&amp;lt;/span&amp;gt; menu in the FFT window (see the chapter &amp;quot;''Spectral Analysis / FFT / FFT Options Menu''&amp;quot;). Current settings are stored after each session and retrieved in the next session.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Printer ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Printer]:'''&lt;br /&gt;
&lt;br /&gt;
'''PrinterMarginPercent=100'''&amp;amp;nbsp;controls size of printout&lt;br /&gt;
&lt;br /&gt;
'''PrinterColors=256'''&amp;amp;nbsp;set to 1/2 for black&amp;amp;white, 0/256 for color printers&lt;br /&gt;
&lt;br /&gt;
'''PrinterLineMode=1'''&amp;amp;nbsp;set to 2 for thicker lines and to save printer memory&lt;br /&gt;
&lt;br /&gt;
'''PrinterMapResolution=1'''&amp;amp;nbsp;set to 2, 3, 4 to save printer memory and increase speed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Calibration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Calibration]:'''&lt;br /&gt;
&lt;br /&gt;
'''AutoCalibration=Off'''&amp;amp;nbsp;On: automatic calibration of signals &amp;gt;= 4 cycles&lt;br /&gt;
&lt;br /&gt;
'''MicrovoltCalibration=50'''&amp;amp;nbsp;peak voltage of calibration signal&lt;br /&gt;
&lt;br /&gt;
If calibration is set to'' On'', the menu item ''Calibration ''will appear in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Process '''&amp;lt;/span&amp;gt;menu. Position your current screen at an epoch containing at least 4 regular cycles of the calibration signal (in all channels!) and select Calibration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Video ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Video]:'''&lt;br /&gt;
&lt;br /&gt;
'''DVCFilePath=C:\DVC\DVPlay.exe''' holds the path to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''DVCCommandLineArguments=/S:3 /M:P /T:M''' &amp;amp;nbsp;arguments to be passed to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetLeft=0.2 &amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetRight=0.8'''&lt;br /&gt;
&lt;br /&gt;
'''CursorMinDistToBorderBeforePaging=0.02'''&lt;br /&gt;
&lt;br /&gt;
'''PageDisplayIfCursorIsBelowVideo=1'''&lt;br /&gt;
&lt;br /&gt;
'''MappingRepetitionRateWithVideoInMS=100''' &amp;amp;nbsp;gives the number of milliseconds between two maps if the mapping window is open while the video is running. If the graphics board encounters problems during the display, this value should be increased.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Mapping ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Mapping]:'''&lt;br /&gt;
&lt;br /&gt;
'''UseBitmapDrawing=Off'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if 3D maps show a strange pattern of black triangular shapes (this is frequently observed with modern Intel On-Board graphics controllers, and is a result of inadequate drivers for Open-GL).&lt;br /&gt;
&lt;br /&gt;
'''Use3DVBlending=Auto'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;Off&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window does not show up properly (this may happen with some older graphics cards).&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window shows a ragged surface boundary.&lt;br /&gt;
&lt;br /&gt;
'''MapSmoothing=0&amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
Set a non-zero value to specify a default map smoothing parameter (normally specified in ''Options/Mapping/Spline Interpolation Smoothing Constant'').&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Matlab ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings for the [Matlab] section:'''&lt;br /&gt;
&lt;br /&gt;
'''Platform=32'''&lt;br /&gt;
&lt;br /&gt;
'''Set Platform=64''' if you want to use the 64-bit version of Matlab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Updates ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This section is not normally required, but the variables here can be altered or defined to determine how BESA Research checks for dongle and program updates.&lt;br /&gt;
&lt;br /&gt;
'''DaysBetweenUpdateChecks=7'''&lt;br /&gt;
&lt;br /&gt;
Sets the number of days between automatic checks for updates. Set the value to 0 to check every time BESA Research is started. Set to -1 to turn off automatic update checks.&lt;br /&gt;
&lt;br /&gt;
'''CheckNetworkDongle=Off'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator: If set to &amp;quot;On&amp;quot;, BESA Research will check the dongle on the network for updates. Otherwise the state of the network dongle will be ignored.&lt;br /&gt;
&lt;br /&gt;
'''LocalPath'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator. This can be set to a path on the local network to the BESA update files, so that users can obtain their updates locally. The path is given to the text file &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''UpdateVersions.txt'''&amp;lt;/span&amp;gt;&amp;quot; (e.g. ''LocalPath=\\transtec-sak\zarascratch\BESA\Updates\UpdateVersions.txt''), which contains further details for the program to obtain its updates. If you want to use this feature, please contact us at [mailto:support@besa.de support@besa.de].&lt;br /&gt;
&lt;br /&gt;
The following variables are not required, because BESA Research has the paths hardwired:&lt;br /&gt;
&lt;br /&gt;
'''FTP1 (also FTP2, FTP3)'''&lt;br /&gt;
&lt;br /&gt;
ftp download server&lt;br /&gt;
&lt;br /&gt;
'''Path1 (also Path2, Path3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to UpdateVersions.txt.&lt;br /&gt;
&lt;br /&gt;
'''HaspPath1 (also HaspPath2, HaspPath3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to HASP (dongle) update files.&lt;br /&gt;
&lt;br /&gt;
'''History'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to general history file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== FMRI ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These settings define the default parameters for the fMRI artifact removal in the BESA Research (see fMRI artifact removal chapter for&lt;br /&gt;
further details).&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[FMRI]&lt;br /&gt;
&lt;br /&gt;
FMRIRemovalMode=1&lt;br /&gt;
&lt;br /&gt;
TRDelay=200&lt;br /&gt;
&lt;br /&gt;
TRLength=800&lt;br /&gt;
&lt;br /&gt;
NumberOfAverages=21&lt;br /&gt;
&lt;br /&gt;
fMRImoveThreshold=0.15&lt;br /&gt;
&lt;br /&gt;
FMRITRID=8015&lt;br /&gt;
&lt;br /&gt;
ScansToSkip=0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These values indicate:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''FMRIRemovalMode'''        ''Removal method (0: Turned off; 1: Allen et al, 2000; 2: Allen et al., 2000 Modified; 3: Moosmann et al.,2003)''&lt;br /&gt;
&lt;br /&gt;
'''TRDelay'''                ''Delay between marker and start of volume acquisition [ms]''&lt;br /&gt;
&lt;br /&gt;
'''NumberOfAverages'''       ''Number of artifact occurrence averages''&lt;br /&gt;
&lt;br /&gt;
'''fMRImoveThreshold'''      ''Movement threshold [mm]''&lt;br /&gt;
&lt;br /&gt;
'''FMRITRID'''               ''fMRI Trigger code''&lt;br /&gt;
&lt;br /&gt;
'''ScansToSkip'''            ''Number of scans to skip''&lt;br /&gt;
&lt;br /&gt;
== Reader-Specific Settings ==&lt;br /&gt;
&lt;br /&gt;
=== BrainLab ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [BrainLab]:'''&lt;br /&gt;
&lt;br /&gt;
'''BrainLabFormat=New''' this entry ensures that the newer BrainLab file format can be read by BESA Research.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bio-Logic ===&lt;br /&gt;
&lt;br /&gt;
'''FileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If there are several Bio-Logic files in a data folder, the reader can check if the files have the same settings. There are three possible options:&lt;br /&gt;
&lt;br /&gt;
* Open a dialog to ask if the files should be treated as a single data set, or as individual, separate files. &lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (2).jpg ‎]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;in this case, use '''FileSelect=Yes''' (this is the default setting) Note that the choice made in the dialog will apply to the file(s) within a BESA Research session. For a given file and session, the dialog will only be opened once, even if the file is closed and reopened.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Always concatenate such files into a single data set. In this case use '''FileSelect=All'''&lt;br /&gt;
* Always open the files as single, separate files. In this case use '''FileSelect=Single'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EDF+/BDF/Trackit ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On'''&lt;br /&gt;
&lt;br /&gt;
Set '''TriggerScan=Off '''to prevent BESA Research from scanning the file for triggers. This is done separately for EDF+, BDF, and Trackit files in sections '''[EDF+], [BDF],''' and '''[Trackit]''' in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EGI ===&lt;br /&gt;
&lt;br /&gt;
The treatment of DIN events can be modified in the''' [EGI] '''section:&lt;br /&gt;
&lt;br /&gt;
'''CombineDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you want to treat DIN events separately, and not generate combined values.&lt;br /&gt;
&lt;br /&gt;
'''SeparateDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you don’t want to treat DIN events separately.&lt;br /&gt;
&lt;br /&gt;
Thus, using the above two parameters, you can choose whether you want to treat DIN events as combined, separate, both, or completely ignored.&lt;br /&gt;
&lt;br /&gt;
'''CombineDINeventsPrefix'''&amp;lt;nowiki&amp;gt;=dinComb&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;This defines the text preceding the number when DIN events are combined. The default is “dinComb”.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Harmonie ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Harmonie] (Stellate Harmonie systems):'''&lt;br /&gt;
&lt;br /&gt;
'''SeizurePreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''SeizurePostEpoch=60'''&amp;amp;nbsp;length of the epoch following a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a push button detection&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPostEpoch=60'''&amp;amp;nbsp;length of the epoch following a push button detection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When BESA Research encounters a seizure detection event or a push button detection event in a Stellate Harmonie file, it automatically sets an epoch around the event, which makes it convenient to view just those epochs for analysis. The length of the epochs preceding and following the events can be adjusted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Neuroscan Keys ===&lt;br /&gt;
&lt;br /&gt;
'''Note that there is a setting &amp;quot;NeuroScanDataNumberOfBits&amp;quot; in the [Defaults] section of BESA.ini that is used for distinguishing the data format of Neuroscan files (16 or 32-bit).'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NeuroScan Keys] (NeuroScan systems):'''&lt;br /&gt;
&lt;br /&gt;
Event1=Movement&amp;amp;nbsp;Text corresponding to keyboard events 1 through 10&lt;br /&gt;
&lt;br /&gt;
Event2=Blink&lt;br /&gt;
&lt;br /&gt;
Event3=Talking&lt;br /&gt;
&lt;br /&gt;
Event4=Cough&lt;br /&gt;
&lt;br /&gt;
Event5=Muscle&lt;br /&gt;
&lt;br /&gt;
Event6=Jaw&lt;br /&gt;
&lt;br /&gt;
Event7=Sneeze&lt;br /&gt;
&lt;br /&gt;
Event8=Swallow&lt;br /&gt;
&lt;br /&gt;
Event9=Eye movement&lt;br /&gt;
&lt;br /&gt;
Event10=Hiccup&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NKT2100 ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NKT2100] (Nihon Kohden EEG 21xx systems):'''&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On''' &amp;amp;nbsp;&amp;amp;nbsp;Set to &amp;quot;Off&amp;quot; to prevent a scan for trigger events.&lt;br /&gt;
&lt;br /&gt;
'''Country=NotKanji'''&amp;amp;nbsp;set to NotKanji for non-Kanji characters else to Kanji&lt;br /&gt;
&lt;br /&gt;
'''KanjiCharSize=16'''&amp;amp;nbsp;Kanji character size&lt;br /&gt;
&lt;br /&gt;
'''KanjiPrinterCharSize=32'''&amp;amp;nbsp;Kanji printer character size&lt;br /&gt;
&lt;br /&gt;
'''EEG_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden EEG-2100 system&lt;br /&gt;
&lt;br /&gt;
'''DC_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden DAE-2100 system&lt;br /&gt;
&lt;br /&gt;
'''QJ_Sensitivity=100''' default sensitivity of Nihon Kohden QJ-403 system&lt;br /&gt;
&lt;br /&gt;
'''Mark_Sensitivity=100'''&amp;amp;nbsp;default sensitivity of EEG-2100 marker channels&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These settings need to be changed only if the manufacturer has specified different gains for your system. Otherwise do not alter these settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Vangard ===&lt;br /&gt;
&lt;br /&gt;
'''AlwaysOpenFileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;Yes&amp;quot; is selected, each time a Vangard file is opened, a dialog box will open, asking for a selection of the segment type to display.&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;No&amp;quot; is selected, the selection dialog is opened whenever a Vangard file is opened for the first time, or if the ''Channel and digitized head surface point information dialog box'' is opened (e.g. with &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''ctrl-L'''&amp;lt;/span&amp;gt; or ''File/Head Surface Points and Sensors/Load Coordinate Files...'' ).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== XLTEK ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=Off '''Set to &amp;quot;On&amp;quot; to scan the data file for trigger events&lt;br /&gt;
&lt;br /&gt;
'''MontageNo=2''' Set to 1 or 2. If two montages for the data file are defined, this variable determines whether the first or the second alternative should be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Research Manual]]&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini</id>
		<title>The Initialization File: BESA.ini</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini"/>
				<updated>2019-03-27T13:44:15Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Updates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
'''BESA.ini File'''&lt;br /&gt;
&lt;br /&gt;
BESA Research uses settings provided in the initialization file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; whenever BESA Research is started or a new file is opened for the first time. The format of this file conforms with standard initialization files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.ini&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) of Windows. You may change the settings in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; using &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;NOTEPAD.exe&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; from the ACCESSORIES group, or other plain text editors to adapt BESA Research to '''your own everyday needs'''. The default settings provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; will be used by BESA Research whenever BESA Research or the launch program is started. It is advised that you make a backup copy of &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; before you change the default settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Location of BESA.ini'''&lt;br /&gt;
&lt;br /&gt;
You can place &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; at three possible locations:&lt;br /&gt;
&lt;br /&gt;
# '''Private''': each user on a PC should have his/her own private settings. This is normally in ''My Documents/BESA/Research_6_1''&lt;br /&gt;
# '''Public''': all users should use one setting, but they can edit &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; to change the settings. This is normally in ''Public Documents/BESA/Research_6_1''&lt;br /&gt;
# '''Administrator''': the PC administrator determines the settings. This is normally in ''C:Program Files(x86)/BESA/Research_6_1''&lt;br /&gt;
&lt;br /&gt;
The actual folder names depend on the operating system and the system language.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;When BESA starts, it first looks for the '''administrator''' version of '''BESA.ini'''. If this is not found, it looks for the '''private''' version. If this is not found, it looks for the '''public''' version. If this is not found, internal default values are used.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''There are 13 general sections, and several reader-specific sections:'''&lt;br /&gt;
&lt;br /&gt;
[Defaults] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; General settings (filters, scaling, and various other settings)&lt;br /&gt;
&lt;br /&gt;
[Folders] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Folders used by BESA Research (Examples, Montages, Scripts, Settings,...)&lt;br /&gt;
&lt;br /&gt;
[Electrodes] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Electrode renaming&lt;br /&gt;
&lt;br /&gt;
[Patterns] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;Rename patterns in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Tags'''&amp;lt;/span&amp;gt; menu&lt;br /&gt;
&lt;br /&gt;
[Artifacts] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;   Settings for artifact correction&lt;br /&gt;
&lt;br /&gt;
[KEYCONTROLS] &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;  Function key definitions&lt;br /&gt;
&lt;br /&gt;
[Search] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;Default parameters for search&lt;br /&gt;
&lt;br /&gt;
[FFT] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp; Frequency band definitions&lt;br /&gt;
&lt;br /&gt;
[Printer] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;  Printer control&lt;br /&gt;
&lt;br /&gt;
[Calibration] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;  Calibration control&lt;br /&gt;
&lt;br /&gt;
[Video] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Digital video control&lt;br /&gt;
&lt;br /&gt;
[Mapping] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;  Mapping control&lt;br /&gt;
&lt;br /&gt;
[Updates] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Options for program updates&lt;br /&gt;
&lt;br /&gt;
[Matlab] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;     Settings for the Matlab interface&lt;br /&gt;
&lt;br /&gt;
[fMRI] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;        Settings for the fMRI arfifact removal&lt;br /&gt;
&lt;br /&gt;
[Montages] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;      A setting for a default source montage&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Reader-specific settings'''&lt;br /&gt;
&lt;br /&gt;
[BrainLab]&lt;br /&gt;
&lt;br /&gt;
[Bio-Logic]&lt;br /&gt;
&lt;br /&gt;
[EDF+] [BDF] [Trackit]&lt;br /&gt;
&lt;br /&gt;
[EGI]&lt;br /&gt;
&lt;br /&gt;
[Harmonie]&lt;br /&gt;
&lt;br /&gt;
[NeuroScan Keys]&lt;br /&gt;
&lt;br /&gt;
[NKT2100]&lt;br /&gt;
&lt;br /&gt;
[Vangard]&lt;br /&gt;
&lt;br /&gt;
[XLTEK]&lt;br /&gt;
&lt;br /&gt;
== Defaults ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Defaults]:'''&lt;br /&gt;
&lt;br /&gt;
'''DatabaseAllowLocalFiles=Yes''' (If set to &amp;quot;Yes&amp;quot;, BESA Research will write filenames &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.ftg'''&amp;lt;/span&amp;gt;&amp;quot; and &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.fst&amp;quot;'''&amp;lt;/span&amp;gt; to the data folder, saving current file tag and display settings there. If set to &amp;quot;No&amp;quot;, these files are only written to the database. If set to &amp;quot;Yes&amp;quot;, you can copy these files along with the data to a new folder, and display settings and tags will be preserved.)&lt;br /&gt;
&lt;br /&gt;
'''DataBuffering=Off''' (If set to &amp;quot;On&amp;quot;, an internal buffer of length 180 s of data is kept to speed up paging). This can speed up paging, particularly when the data are in a network folder.&lt;br /&gt;
&lt;br /&gt;
'''DisplayedTime=10'''&amp;amp;nbsp;displayed time window [s] on the screen&lt;br /&gt;
&lt;br /&gt;
'''Montage=Org'''&amp;amp;nbsp;montage used when opening a new file&lt;br /&gt;
&lt;br /&gt;
'''ScpScale=50'''&amp;amp;nbsp;scale of scalp channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''PgrScale=500'''&amp;amp;nbsp;scale of polygraphic channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''IcrScale=500'''&amp;amp;nbsp;scale of intracranial channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''MegScale=500'''&amp;amp;nbsp;scale of MEG/marker channels in [fT]&lt;br /&gt;
&lt;br /&gt;
'''SrcScale=100'''&amp;amp;nbsp;scale of source of source montages&lt;br /&gt;
&lt;br /&gt;
'''BaselineCorrection=On'''&amp;amp;nbsp;baseline correction, do not switch off in AC systems&lt;br /&gt;
&lt;br /&gt;
'''ClippingPercent=&amp;amp;nbsp;'''set from 100 to 200 if you want to clip artifacts in displayed EEG (not used if empty or 0)&lt;br /&gt;
&lt;br /&gt;
'''LowFilter='''&amp;amp;nbsp;low filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''TimeConstant=0.3'''&amp;amp;nbsp;time constant for low filter cutoff frequency [sec] (fixed forward filter, 0.3 sec is equivalent to 0.53 Hz)&lt;br /&gt;
&lt;br /&gt;
'''HighFilter=70'''&amp;amp;nbsp;high filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''NotchFilter=50'''&amp;amp;nbsp;notch filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''NotchFilterStatus=Off'''&amp;amp;nbsp;notch filter is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''BandFilter=12'''&amp;amp;nbsp;band pass filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''BandFilterStatus=Off'''&amp;amp;nbsp;band pass is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''AdditionalChannelFile=''' defines the full path and name of an additional channels montage file, e.g. &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''C:\Program Files\BESA\Research_x\Montages\AdditionalChannels\EKG.sel'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''ColoredWaveforms=On'''&amp;amp;nbsp;scalp waveforms are (not) colored according to region&lt;br /&gt;
&lt;br /&gt;
'''WriteSegmentPath='''&amp;amp;nbsp;defines default path for saving segments/averages.&amp;amp;nbsp;If blank, the path of the current data file is used.&lt;br /&gt;
&lt;br /&gt;
'''ShowSubjectInfo=Off'''&amp;amp;nbsp;subject info will (not) be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following optional parameters are not defined as default and can be set manually in&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''' BESA.ini'''&amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''TextEditor=&amp;quot;Notepad.exe&amp;quot;''' defines the path to your preferred text editor. This will be used when you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Edit'''&amp;lt;/span&amp;gt; button the ''Load Coordinate Files dialog box''.&lt;br /&gt;
&lt;br /&gt;
'''NeuroScanDataNumberOfBits=32''' defines the format of NeuroScan data files ('16' for 16-bit, '32' for 32-bit). If this variable is not specified, BESA uses a heuristic to (try to) decide which of the two data formats is used. This variable overrides the heuristic. If you want to specify the NeuroScan data format for specific files, create a file, named &amp;quot;16bit&amp;quot; or &amp;quot;32bit&amp;quot;, and place it in the data folder.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesForNNChannels=25''' Scale waveforms as if a fixed number of channels were displayed in the window (here: 25). A minimum of 10 channels can be used for the scaling. This parameter is superseded if the parameter &amp;quot;''ScaleAmplitudesFixedPixelHeight&amp;quot;'' is specified.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesFixedPixelHeight=70''' Set the scale bar for amplitudes to a fixed pixel height (here: 70). If this parameter is set in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file, it supersedes the parameter &amp;quot;''ScaleAmplitudesForNNChannels''&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes'''&lt;br /&gt;
&lt;br /&gt;
Check the Menu descriptions for the various definitions of filters, montages etc. For montage preselection, use the labels as visible on the montage push-buttons.&lt;br /&gt;
&lt;br /&gt;
The additional channels file should contain all polygraphic channels (e.g. EKG, EOG, respiratory) that you want to view regularly along with the scalp channels. The entry AdditionalChannelFile must specify the full path pointing to the location of additional channel files (recommended: ''Montages\AdditionalChannels''). If no drive is specified, the installation drive of BESA is used.&lt;br /&gt;
&lt;br /&gt;
If BaselineCorrection is set to 'On', before displaying a screen of data, BESA subtracts for each channel the mean over its displayed time points. This optimizes viewing, because it ensures that the vertical position of each channel is not shifted upward or downward from the channel label at the left of the screen. There are some cases in which you will not want baseline correction, i.e. when the DC level in the data is already correctly defined. This is usually the case, for instance, when reading in files that have been processed by BESA. In this case, BaselineCorrection should be set to 'Off', because otherwise maps and source montage displays may be distorted.&lt;br /&gt;
&lt;br /&gt;
== Folders ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The [Folders] section defines where BESA Research places its files. In versions 5.1 and earlier, files were located in various subfolders of the program folder. This led to problems if the user did not have administrator rights, e.g. to create or write to a file. For compatibility with Windows 7 and higher versions, many folders are now located by default in locations where normal users can create and write files. If you wish, you can also specify paths in the [Folders] section to use the previous locations. The previous location is given for each variable.'''&lt;br /&gt;
&lt;br /&gt;
These settings allow some flexibility that can be useful if you want to tune BESA Research for use by several users, or on a network. For instance, the Examples and Montages folders might be located on a network disk. For the current defaults, the database, Examples, Montages, and Scripts are set up for use by all users on the PC on which BESA Research is installed. The settings files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.set'''&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.cfg'''&amp;lt;/span&amp;gt;, etc.) are located in private folders so that each user retains his or her own settings.&lt;br /&gt;
&lt;br /&gt;
The '''default''' settings (i.e. settings that BESA Research uses if the entries are omitted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file) are shown for each variable definition.&lt;br /&gt;
&lt;br /&gt;
The folder definitions can use '''placeholders''', labels enclosed by a % sign (e.g. %localapp%), to define paths that vary depending on the language version and on the Windows system. These are defined below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The Variables'''&lt;br /&gt;
&lt;br /&gt;
'''Database=%localapp%''' The path of the BESA Research database folder (used to be ''%progdir%System\DB'' in BESA versions up to 5.1.x). Unless the provided path ends with ''\DB'' or ''\Database'', BESA Research will automatically create a folder named ''Database'' in the provided path.&lt;br /&gt;
&lt;br /&gt;
'''Settings=%privatprog%Settings''' The path of the BESA Research settings folder (used to be ''%progdir%System'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Montages=%publicprog%Montages''' The path of the BESA Research montages folder (used to be ''%progdir%Montages'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Scripts=%publicprog%Scripts''' The path of the BESA Research Scripts folder (used to be ''%progdir%Scripts'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Examples=%publicprog%Examples''' The path of the BESA Research Examples folder (used to be ''%progdir%Examples'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''User=%privatprog%Settings''' The path for user defined settings (used to be ''%progdir%System\Userdirs'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Placeholders'''&lt;br /&gt;
&lt;br /&gt;
The strings enclosed by percent signs (%) are placeholders for the following folders in English-language versions of Windows. Folder names differ depending on Windows version, and for other language settings. BESA Research will substitute the placeholders by the appropriate folder name for the system and the system language:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows 7 and higher (English):''' &lt;br /&gt;
&lt;br /&gt;
'''%localapp%''' = &amp;quot;''C:\Users\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Desktop as &amp;quot;''Desktop\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Users\Public\Public Documents\BESA\Research_6_1''&amp;quot;. This folder is directly accessible from the Windows Explorer under &amp;quot;''Libraries\Documents\Public'' ''Documents\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Libraries\Documents\My'' ''Documents\Research_6_1''&amp;quot; or &amp;quot;''Desktop\[User]\My Documents\BESA\Research_6_1''. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows Vista (English'''): &lt;br /&gt;
&lt;br /&gt;
'''%localapp% '''&amp;lt;nowiki&amp;gt;= &amp;quot;&amp;lt;/nowiki&amp;gt;''C:\Users\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Desktop\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Users\Public\Public Documents\BESA\Research_6_1''&amp;quot;. This folder is directly accessible from the Windows Explorer under &amp;quot;''Desktop\Public\Public Documents\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Desktop\[user]\Documents\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%''' &amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows XP (English) (note: not supported by BESA Research 6.1 and higher):''' &lt;br /&gt;
&lt;br /&gt;
'''%localapp% '''&amp;lt;nowiki&amp;gt;= &amp;quot;&amp;lt;/nowiki&amp;gt;''C:\Documents and Settings\[user]\Local Settings\Application Data\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Documents and Settings\All Users\Documents\BESA\Research_6_0&amp;quot;. ''This folder is directly accessible from the Windows Explorer under &amp;quot;''My Computer\Shared'' ''Documents\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Documents and Settings\[user]\My Documents\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''My Documents\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir% &amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows 2000 (English) (note: not supported by BESA Research 6.1 and higher):'''&lt;br /&gt;
&lt;br /&gt;
'''%localapp%''' = &amp;quot;''C:\Documents and Settings\[user]\Local Settings\Application Data\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Documents and Settings\All Users\Documents\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Documents and Settings\[user]\My Documents\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer '''as &amp;quot;'''''My Documents\BESA\Research_6_0'''''&amp;quot;. '''&lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%'''&lt;br /&gt;
&lt;br /&gt;
== Electrodes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''This section allows for automatic relabeling of electrodes. For instance, the 10-20 label &amp;quot;T3&amp;quot; can be replaced by the 10-10 convention &amp;quot;T7&amp;quot;.'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Electrodes]:'''&lt;br /&gt;
&lt;br /&gt;
T7=T3&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
T8=T4&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P7=T5&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P8=T6&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
X1=ECG1&amp;amp;nbsp;define X1 channel to be ECG1&lt;br /&gt;
&lt;br /&gt;
X2=ECG2&amp;amp;nbsp;define X2 channel to be ECG2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other examples, depending on your electrode input box definition, could be:&lt;br /&gt;
&lt;br /&gt;
PG1=LO1&amp;amp;nbsp;define X3 as lateral orbital eye electrode left&lt;br /&gt;
&lt;br /&gt;
PG2=LO2&amp;amp;nbsp;bipolar LO1-LO2 defines horizontal EOG (additional channel)&lt;br /&gt;
&lt;br /&gt;
X3=IO1&amp;amp;nbsp;infraorbital, e.g. use with FP1 as additional channel for VEOG&lt;br /&gt;
&lt;br /&gt;
X9=Rsp&amp;amp;nbsp;define X9 channel to be a respiratory channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Relabeling of channel names (as stored in the EEG file header) is helpful to predefine your standard sequence of channels and to avoid the need for reading and/or editing a Channel Configuration file for every EEG file.&lt;br /&gt;
&lt;br /&gt;
'''Note 1''': For polygraphic channels, or if your EKG has been recorded differentially, you should edit and define an ''Additional Channels Montage'' according to your recording channel configuration (e.g. Fp1-IO1=vertical EOG). The Additional Channels group permits to display these channels regularly below the scalp montages with individual scales.&lt;br /&gt;
&lt;br /&gt;
'''Note 2''': EOG channels record both eye and scalp activity. In digital EEG systems, EOG electrodes should be labeled according to their position in the 10-10 system (see &amp;quot;''Electrode Conventions''&amp;quot;). This permits use of these electrodes for mapping and suppression of eye artifacts. The standard definitions above give an example of how to relabel extra channels (X1...X10, PG1, PG2) for the use of EOG, EKG and respiratory (Rsp) channels. Use an ''Additional Channels'' file to define horizontal and vertical EOG channels by using the appropriate electrodes in a bipolar montage (an example is provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''eog-ecg.mtg'''&amp;lt;/span&amp;gt; in ''Montages\AdditionalChannels''). Differentially recorded EKG and respiratory channel can be defined in the same file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Patterns ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Patterns]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define labels for each of the five patterns. The labels are shown* in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Tags'''&amp;lt;/span&amp;gt; menu,&lt;br /&gt;
* in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''TAG push-button'''&amp;lt;/span&amp;gt; popup menu, and&lt;br /&gt;
* when displaying tag info clicking with the right mouse on a tag at the bottom of the EEG or on the event bar.&lt;br /&gt;
&lt;br /&gt;
By default, no labels are defined. Define a label, e.g. for Pattern1 and Pattern2, as in the following example:&lt;br /&gt;
&lt;br /&gt;
Pattern1=Spike&lt;br /&gt;
&lt;br /&gt;
Pattern2=Sharp Wave&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Artifacts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Artifact default settings:'''&lt;br /&gt;
&lt;br /&gt;
See the chapter &amp;quot;''Artifact Correction / Reference / Artifact settings in the BESA.ini file''&amp;quot; in the online help.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Search ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Default settings for pattern search.&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Options ''Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThreshold''' = '''75%'''&lt;br /&gt;
&lt;br /&gt;
'''AmplitudeThreshold = 100 µV'''&lt;br /&gt;
&lt;br /&gt;
'''GradientThreshold = 25'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Average/View'' (SAV) Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''PreCursor = -250 ms'''&lt;br /&gt;
&lt;br /&gt;
'''PostCursor = 150 ms'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassFreq =&amp;amp;nbsp;2 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassSlope = 12 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassType = 0 (0 = zero phase, 1 = forward, 2 = backward'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassFreq = 35 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassSlope = 24 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassType = 0 (0 = zero phase, 1 = forward, 2 = backward)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdNoMarked = 60%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if no channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdOneMarked = 85%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if one channel label is marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdFourMarked = 65%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if between two channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''SelectedViewWindowWidthMultiplier = 300%'''&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearch = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, a File Save dialog will open, to allow to save the search average to a file (as with the SAW function).&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearchCheckBox = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, an additional checkbox &amp;quot;Write after search&amp;quot; is displayed at the bottom of the SAV Dialog, allowing to choose whether or not to write the search average after a search:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (1).gif ‎ ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''PreserveDefaults = Yes'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;No&amp;quot;, the SAV Dialog will open with the same boxes checked as the last time the dialog was opened during the current session.&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, the default frequency, buffer width, selected view after search, and default threshold are always checked when the dialog is opened.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== KeyControls ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the [KeyControls] section you can specify functions that can be allocated to &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function keys'''&amp;lt;/span&amp;gt; or to the ''Del'' key. Specify using the form:&lt;br /&gt;
&lt;br /&gt;
'''Fn=function''' or&lt;br /&gt;
&lt;br /&gt;
'''Del=function'''&lt;br /&gt;
&lt;br /&gt;
where &amp;quot;''n''&amp;quot; is a number between 2 and 12 (F1 is reserved for Help). For example:&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;F2 = Batch1&lt;br /&gt;
&lt;br /&gt;
Possible functions are:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Setting or removing events:'''&lt;br /&gt;
&lt;br /&gt;
'''Pattern''n''''', where ''n''&amp;lt;nowiki&amp;gt;=1-5: Sets the tag number &amp;lt;/nowiki&amp;gt;''n'' at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Epochfast:''' sets one boundary of an epoch at the cursor latency, but does not open&amp;amp;nbsp;the epoch text box to define a label.&lt;br /&gt;
&lt;br /&gt;
'''Marker:'''&amp;amp;nbsp;&amp;amp;nbsp;sets a marker at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Comment:'''&amp;amp;nbsp;sets a comment at the cursor latency and opens the comment box to enter&amp;amp;nbsp;text.&lt;br /&gt;
&lt;br /&gt;
'''Epoch:'''&amp;amp;nbsp;sets one boundary of an epoch at the cursor latency and opens the epoch&amp;amp;nbsp;text box to enter a label.&lt;br /&gt;
&lt;br /&gt;
'''Artifact:'''&amp;amp;nbsp;sets one boundary of an artifact segment at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Delete:'''&amp;amp;nbsp;&amp;amp;nbsp;deletes a tag at the cursor latency&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Batches and Montages:'''&lt;br /&gt;
&lt;br /&gt;
'''Batch''n''''', where n=1-12: Runs a predefined batch file corresponding to the number ''n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a batch, pressing it will open a ''File Open Dialog'' to select a batch. The setting you have chosen will be retained across BESA Research sessions. Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt;'''&amp;lt;/span&amp;gt; key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will always open the dialog. Hold the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' &amp;lt;ctrl&amp;gt; '''&amp;lt;/span&amp;gt;key with the function key to open the associated batch in the batch edit dialog.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Montage''n''''', where n=1-12: Sets a montage corresponding to the number'' n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a montage, pressing it will generate a message asking you to associate a montage as follows: Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt; '''&amp;lt;/span&amp;gt;key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will remove the current association, and substitute it with the current montage.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default settings after program installation are listed in the online help chapter ''Review / Reference / Controls / Mouse and Keyboard / Keyboard Controls''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== FFT ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [FFT]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define the setup in the Spectral Analysis section of the BESA Research program (FFT window, see the chapter &amp;quot;''Spectral Analysis / FFT''&amp;quot;). Up to 7 frequency bands may be defined. Five are defined by default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''FFTBand1=On'''&amp;amp;nbsp;FFT Bands 1-5 are defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand2=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand3=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand4=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand5=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand6=Off'''&amp;amp;nbsp;FFT Bands 6-7 are not defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand7=Off'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand1=Delta'''&amp;amp;nbsp;Names of the defined bands&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand2=Theta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand3=Alpha'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand4=Beta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand5=Gamma'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand1=RGB(0,0,0)''' &amp;amp;nbsp;Default color of each band&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand2=RGB(0,128,64)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand3=RGB(128,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand4=RGB(255,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand5=RGB(255,128,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand6=RGB(255,192,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand7=RGB(255,255,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand1=1'''&amp;amp;nbsp;Delta from 1-4 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand1=4'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand2=4'''&amp;amp;nbsp;Theta from 4-8 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand2=8'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand3=8''' Alpha from 8-14 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand3=14'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand4=14'''&amp;amp;nbsp;Beta from 14-30 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand4=30'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand5=30'''&amp;amp;nbsp;Gamma from 30-50 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand5=50'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These values are best set from within BESA Research, using the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Options'''&amp;lt;/span&amp;gt; menu in the FFT window (see the chapter &amp;quot;''Spectral Analysis / FFT / FFT Options Menu''&amp;quot;). Current settings are stored after each session and retrieved in the next session.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Printer ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Printer]:'''&lt;br /&gt;
&lt;br /&gt;
'''PrinterMarginPercent=100'''&amp;amp;nbsp;controls size of printout&lt;br /&gt;
&lt;br /&gt;
'''PrinterColors=256'''&amp;amp;nbsp;set to 1/2 for black&amp;amp;white, 0/256 for color printers&lt;br /&gt;
&lt;br /&gt;
'''PrinterLineMode=1'''&amp;amp;nbsp;set to 2 for thicker lines and to save printer memory&lt;br /&gt;
&lt;br /&gt;
'''PrinterMapResolution=1'''&amp;amp;nbsp;set to 2, 3, 4 to save printer memory and increase speed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Calibration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Calibration]:'''&lt;br /&gt;
&lt;br /&gt;
'''AutoCalibration=Off'''&amp;amp;nbsp;On: automatic calibration of signals &amp;gt;= 4 cycles&lt;br /&gt;
&lt;br /&gt;
'''MicrovoltCalibration=50'''&amp;amp;nbsp;peak voltage of calibration signal&lt;br /&gt;
&lt;br /&gt;
If calibration is set to'' On'', the menu item ''Calibration ''will appear in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Process '''&amp;lt;/span&amp;gt;menu. Position your current screen at an epoch containing at least 4 regular cycles of the calibration signal (in all channels!) and select Calibration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Video ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Video]:'''&lt;br /&gt;
&lt;br /&gt;
'''DVCFilePath=C:\DVC\DVPlay.exe''' holds the path to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''DVCCommandLineArguments=/S:3 /M:P /T:M''' &amp;amp;nbsp;arguments to be passed to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetLeft=0.2 &amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetRight=0.8'''&lt;br /&gt;
&lt;br /&gt;
'''CursorMinDistToBorderBeforePaging=0.02'''&lt;br /&gt;
&lt;br /&gt;
'''PageDisplayIfCursorIsBelowVideo=1'''&lt;br /&gt;
&lt;br /&gt;
'''MappingRepetitionRateWithVideoInMS=100''' &amp;amp;nbsp;gives the number of milliseconds between two maps if the mapping window is open while the video is running. If the graphics board encounters problems during the display, this value should be increased.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Mapping ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Mapping]:'''&lt;br /&gt;
&lt;br /&gt;
'''UseBitmapDrawing=Off'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if 3D maps show a strange pattern of black triangular shapes (this is frequently observed with modern Intel On-Board graphics controllers, and is a result of inadequate drivers for Open-GL).&lt;br /&gt;
&lt;br /&gt;
'''Use3DVBlending=Auto'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;Off&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window does not show up properly (this may happen with some older graphics cards).&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window shows a ragged surface boundary.&lt;br /&gt;
&lt;br /&gt;
'''MapSmoothing=0&amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
Set a non-zero value to specify a default map smoothing parameter (normally specified in ''Options/Mapping/Spline Interpolation Smoothing Constant'').&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Matlab ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings for the [Matlab] section:'''&lt;br /&gt;
&lt;br /&gt;
'''Platform=32'''&lt;br /&gt;
&lt;br /&gt;
'''Set Platform=64''' if you want to use the 64-bit version of Matlab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Updates ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This section is not normally required, but the variables here can be altered or defined to determine how BESA Research checks for dongle and program updates.&lt;br /&gt;
&lt;br /&gt;
'''DaysBetweenUpdateChecks=7'''&lt;br /&gt;
&lt;br /&gt;
Sets the number of days between automatic checks for updates. Set the value to 0 to check every time BESA Research is started. Set to -1 to turn off automatic update checks.&lt;br /&gt;
&lt;br /&gt;
'''CheckNetworkDongle=Off'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator: If set to &amp;quot;On&amp;quot;, BESA Research will check the dongle on the network for updates. Otherwise the state of the network dongle will be ignored.&lt;br /&gt;
&lt;br /&gt;
'''LocalPath'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator. This can be set to a path on the local network to the BESA update files, so that users can obtain their updates locally. The path is given to the text file &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''UpdateVersions.txt'''&amp;lt;/span&amp;gt;&amp;quot; (e.g. ''LocalPath=\\transtec-sak\zarascratch\BESA\Updates\UpdateVersions.txt''), which contains further details for the program to obtain its updates. If you want to use this feature, please contact us at [mailto:support@besa.de support@besa.de].&lt;br /&gt;
&lt;br /&gt;
The following variables are not required, because BESA Research has the paths hardwired:&lt;br /&gt;
&lt;br /&gt;
'''FTP1 (also FTP2, FTP3)'''&lt;br /&gt;
&lt;br /&gt;
ftp download server&lt;br /&gt;
&lt;br /&gt;
'''Path1 (also Path2, Path3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to UpdateVersions.txt.&lt;br /&gt;
&lt;br /&gt;
'''HaspPath1 (also HaspPath2, HaspPath3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to HASP (dongle) update files.&lt;br /&gt;
&lt;br /&gt;
'''History'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to general history file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== FMRI ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These settings define the default parameters for the fMRI artifact removal in the BESA Research (see fMRI artifact removal chapter for&lt;br /&gt;
further details).&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[FMRI]&lt;br /&gt;
&lt;br /&gt;
FMRIRemovalMode=1&lt;br /&gt;
&lt;br /&gt;
TRDelay=200&lt;br /&gt;
&lt;br /&gt;
TRLength=800&lt;br /&gt;
&lt;br /&gt;
NumberOfAverages=21&lt;br /&gt;
&lt;br /&gt;
fMRImoveThreshold=0.15&lt;br /&gt;
&lt;br /&gt;
FMRITRID=8015&lt;br /&gt;
&lt;br /&gt;
ScansToSkip=0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These values indicate:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
FMRIRemovalMode        Removal method (0: Turned off; 1: Allen et al, 2000; 2: Allen et al., 2000 Modified; 3: Moosmann et al.,2003)&lt;br /&gt;
&lt;br /&gt;
TRDelay                Delay between marker and start of volume acquisition [ms]&lt;br /&gt;
&lt;br /&gt;
NumberOfAverages       Number of artifact occurrence averages&lt;br /&gt;
&lt;br /&gt;
fMRImoveThreshold      Movement threshold [mm]&lt;br /&gt;
&lt;br /&gt;
FMRITRID               fMRI Trigger code&lt;br /&gt;
&lt;br /&gt;
ScansToSkip            Number of scans to skip&lt;br /&gt;
&lt;br /&gt;
== Reader-Specific Settings ==&lt;br /&gt;
&lt;br /&gt;
=== BrainLab ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [BrainLab]:'''&lt;br /&gt;
&lt;br /&gt;
'''BrainLabFormat=New''' this entry ensures that the newer BrainLab file format can be read by BESA Research.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bio-Logic ===&lt;br /&gt;
&lt;br /&gt;
'''FileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If there are several Bio-Logic files in a data folder, the reader can check if the files have the same settings. There are three possible options:&lt;br /&gt;
&lt;br /&gt;
* Open a dialog to ask if the files should be treated as a single data set, or as individual, separate files. &lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (2).jpg ‎]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;in this case, use '''FileSelect=Yes''' (this is the default setting) Note that the choice made in the dialog will apply to the file(s) within a BESA Research session. For a given file and session, the dialog will only be opened once, even if the file is closed and reopened.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Always concatenate such files into a single data set. In this case use '''FileSelect=All'''&lt;br /&gt;
* Always open the files as single, separate files. In this case use '''FileSelect=Single'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EDF+/BDF/Trackit ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On'''&lt;br /&gt;
&lt;br /&gt;
Set '''TriggerScan=Off '''to prevent BESA Research from scanning the file for triggers. This is done separately for EDF+, BDF, and Trackit files in sections '''[EDF+], [BDF],''' and '''[Trackit]''' in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EGI ===&lt;br /&gt;
&lt;br /&gt;
The treatment of DIN events can be modified in the''' [EGI] '''section:&lt;br /&gt;
&lt;br /&gt;
'''CombineDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you want to treat DIN events separately, and not generate combined values.&lt;br /&gt;
&lt;br /&gt;
'''SeparateDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you don’t want to treat DIN events separately.&lt;br /&gt;
&lt;br /&gt;
Thus, using the above two parameters, you can choose whether you want to treat DIN events as combined, separate, both, or completely ignored.&lt;br /&gt;
&lt;br /&gt;
'''CombineDINeventsPrefix'''&amp;lt;nowiki&amp;gt;=dinComb&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;This defines the text preceding the number when DIN events are combined. The default is “dinComb”.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Harmonie ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Harmonie] (Stellate Harmonie systems):'''&lt;br /&gt;
&lt;br /&gt;
'''SeizurePreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''SeizurePostEpoch=60'''&amp;amp;nbsp;length of the epoch following a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a push button detection&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPostEpoch=60'''&amp;amp;nbsp;length of the epoch following a push button detection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When BESA Research encounters a seizure detection event or a push button detection event in a Stellate Harmonie file, it automatically sets an epoch around the event, which makes it convenient to view just those epochs for analysis. The length of the epochs preceding and following the events can be adjusted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Neuroscan Keys ===&lt;br /&gt;
&lt;br /&gt;
'''Note that there is a setting &amp;quot;NeuroScanDataNumberOfBits&amp;quot; in the [Defaults] section of BESA.ini that is used for distinguishing the data format of Neuroscan files (16 or 32-bit).'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NeuroScan Keys] (NeuroScan systems):'''&lt;br /&gt;
&lt;br /&gt;
Event1=Movement&amp;amp;nbsp;Text corresponding to keyboard events 1 through 10&lt;br /&gt;
&lt;br /&gt;
Event2=Blink&lt;br /&gt;
&lt;br /&gt;
Event3=Talking&lt;br /&gt;
&lt;br /&gt;
Event4=Cough&lt;br /&gt;
&lt;br /&gt;
Event5=Muscle&lt;br /&gt;
&lt;br /&gt;
Event6=Jaw&lt;br /&gt;
&lt;br /&gt;
Event7=Sneeze&lt;br /&gt;
&lt;br /&gt;
Event8=Swallow&lt;br /&gt;
&lt;br /&gt;
Event9=Eye movement&lt;br /&gt;
&lt;br /&gt;
Event10=Hiccup&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NKT2100 ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NKT2100] (Nihon Kohden EEG 21xx systems):'''&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On''' &amp;amp;nbsp;&amp;amp;nbsp;Set to &amp;quot;Off&amp;quot; to prevent a scan for trigger events.&lt;br /&gt;
&lt;br /&gt;
'''Country=NotKanji'''&amp;amp;nbsp;set to NotKanji for non-Kanji characters else to Kanji&lt;br /&gt;
&lt;br /&gt;
'''KanjiCharSize=16'''&amp;amp;nbsp;Kanji character size&lt;br /&gt;
&lt;br /&gt;
'''KanjiPrinterCharSize=32'''&amp;amp;nbsp;Kanji printer character size&lt;br /&gt;
&lt;br /&gt;
'''EEG_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden EEG-2100 system&lt;br /&gt;
&lt;br /&gt;
'''DC_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden DAE-2100 system&lt;br /&gt;
&lt;br /&gt;
'''QJ_Sensitivity=100''' default sensitivity of Nihon Kohden QJ-403 system&lt;br /&gt;
&lt;br /&gt;
'''Mark_Sensitivity=100'''&amp;amp;nbsp;default sensitivity of EEG-2100 marker channels&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These settings need to be changed only if the manufacturer has specified different gains for your system. Otherwise do not alter these settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Vangard ===&lt;br /&gt;
&lt;br /&gt;
'''AlwaysOpenFileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;Yes&amp;quot; is selected, each time a Vangard file is opened, a dialog box will open, asking for a selection of the segment type to display.&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;No&amp;quot; is selected, the selection dialog is opened whenever a Vangard file is opened for the first time, or if the ''Channel and digitized head surface point information dialog box'' is opened (e.g. with &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''ctrl-L'''&amp;lt;/span&amp;gt; or ''File/Head Surface Points and Sensors/Load Coordinate Files...'' ).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== XLTEK ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=Off '''Set to &amp;quot;On&amp;quot; to scan the data file for trigger events&lt;br /&gt;
&lt;br /&gt;
'''MontageNo=2''' Set to 1 or 2. If two montages for the data file are defined, this variable determines whether the first or the second alternative should be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Research Manual]]&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini</id>
		<title>The Initialization File: BESA.ini</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini"/>
				<updated>2019-03-27T13:29:46Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Defaults */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
'''BESA.ini File'''&lt;br /&gt;
&lt;br /&gt;
BESA Research uses settings provided in the initialization file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; whenever BESA Research is started or a new file is opened for the first time. The format of this file conforms with standard initialization files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.ini&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) of Windows. You may change the settings in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; using &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;NOTEPAD.exe&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; from the ACCESSORIES group, or other plain text editors to adapt BESA Research to '''your own everyday needs'''. The default settings provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; will be used by BESA Research whenever BESA Research or the launch program is started. It is advised that you make a backup copy of &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; before you change the default settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Location of BESA.ini'''&lt;br /&gt;
&lt;br /&gt;
You can place &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; at three possible locations:&lt;br /&gt;
&lt;br /&gt;
# '''Private''': each user on a PC should have his/her own private settings. This is normally in ''My Documents/BESA/Research_6_1''&lt;br /&gt;
# '''Public''': all users should use one setting, but they can edit &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; to change the settings. This is normally in ''Public Documents/BESA/Research_6_1''&lt;br /&gt;
# '''Administrator''': the PC administrator determines the settings. This is normally in ''C:Program Files(x86)/BESA/Research_6_1''&lt;br /&gt;
&lt;br /&gt;
The actual folder names depend on the operating system and the system language.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;When BESA starts, it first looks for the '''administrator''' version of '''BESA.ini'''. If this is not found, it looks for the '''private''' version. If this is not found, it looks for the '''public''' version. If this is not found, internal default values are used.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''There are 13 general sections, and several reader-specific sections:'''&lt;br /&gt;
&lt;br /&gt;
[Defaults] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; General settings (filters, scaling, and various other settings)&lt;br /&gt;
&lt;br /&gt;
[Folders] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Folders used by BESA Research (Examples, Montages, Scripts, Settings,...)&lt;br /&gt;
&lt;br /&gt;
[Electrodes] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Electrode renaming&lt;br /&gt;
&lt;br /&gt;
[Patterns] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;Rename patterns in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Tags'''&amp;lt;/span&amp;gt; menu&lt;br /&gt;
&lt;br /&gt;
[Artifacts] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;   Settings for artifact correction&lt;br /&gt;
&lt;br /&gt;
[KEYCONTROLS] &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;  Function key definitions&lt;br /&gt;
&lt;br /&gt;
[Search] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;Default parameters for search&lt;br /&gt;
&lt;br /&gt;
[FFT] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp; Frequency band definitions&lt;br /&gt;
&lt;br /&gt;
[Printer] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;  Printer control&lt;br /&gt;
&lt;br /&gt;
[Calibration] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;  Calibration control&lt;br /&gt;
&lt;br /&gt;
[Video] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Digital video control&lt;br /&gt;
&lt;br /&gt;
[Mapping] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;  Mapping control&lt;br /&gt;
&lt;br /&gt;
[Updates] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Options for program updates&lt;br /&gt;
&lt;br /&gt;
[Matlab] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;     Settings for the Matlab interface&lt;br /&gt;
&lt;br /&gt;
[fMRI] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;        Settings for the fMRI arfifact removal&lt;br /&gt;
&lt;br /&gt;
[Montages] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;      A setting for a default source montage&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Reader-specific settings'''&lt;br /&gt;
&lt;br /&gt;
[BrainLab]&lt;br /&gt;
&lt;br /&gt;
[Bio-Logic]&lt;br /&gt;
&lt;br /&gt;
[EDF+] [BDF] [Trackit]&lt;br /&gt;
&lt;br /&gt;
[EGI]&lt;br /&gt;
&lt;br /&gt;
[Harmonie]&lt;br /&gt;
&lt;br /&gt;
[NeuroScan Keys]&lt;br /&gt;
&lt;br /&gt;
[NKT2100]&lt;br /&gt;
&lt;br /&gt;
[Vangard]&lt;br /&gt;
&lt;br /&gt;
[XLTEK]&lt;br /&gt;
&lt;br /&gt;
== Defaults ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Defaults]:'''&lt;br /&gt;
&lt;br /&gt;
'''DatabaseAllowLocalFiles=Yes''' (If set to &amp;quot;Yes&amp;quot;, BESA Research will write filenames &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.ftg'''&amp;lt;/span&amp;gt;&amp;quot; and &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.fst&amp;quot;'''&amp;lt;/span&amp;gt; to the data folder, saving current file tag and display settings there. If set to &amp;quot;No&amp;quot;, these files are only written to the database. If set to &amp;quot;Yes&amp;quot;, you can copy these files along with the data to a new folder, and display settings and tags will be preserved.)&lt;br /&gt;
&lt;br /&gt;
'''DataBuffering=Off''' (If set to &amp;quot;On&amp;quot;, an internal buffer of length 180 s of data is kept to speed up paging). This can speed up paging, particularly when the data are in a network folder.&lt;br /&gt;
&lt;br /&gt;
'''DisplayedTime=10'''&amp;amp;nbsp;displayed time window [s] on the screen&lt;br /&gt;
&lt;br /&gt;
'''Montage=Org'''&amp;amp;nbsp;montage used when opening a new file&lt;br /&gt;
&lt;br /&gt;
'''ScpScale=50'''&amp;amp;nbsp;scale of scalp channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''PgrScale=500'''&amp;amp;nbsp;scale of polygraphic channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''IcrScale=500'''&amp;amp;nbsp;scale of intracranial channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''MegScale=500'''&amp;amp;nbsp;scale of MEG/marker channels in [fT]&lt;br /&gt;
&lt;br /&gt;
'''SrcScale=100'''&amp;amp;nbsp;scale of source of source montages&lt;br /&gt;
&lt;br /&gt;
'''BaselineCorrection=On'''&amp;amp;nbsp;baseline correction, do not switch off in AC systems&lt;br /&gt;
&lt;br /&gt;
'''ClippingPercent=&amp;amp;nbsp;'''set from 100 to 200 if you want to clip artifacts in displayed EEG (not used if empty or 0)&lt;br /&gt;
&lt;br /&gt;
'''LowFilter='''&amp;amp;nbsp;low filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''TimeConstant=0.3'''&amp;amp;nbsp;time constant for low filter cutoff frequency [sec] (fixed forward filter, 0.3 sec is equivalent to 0.53 Hz)&lt;br /&gt;
&lt;br /&gt;
'''HighFilter=70'''&amp;amp;nbsp;high filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''NotchFilter=50'''&amp;amp;nbsp;notch filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''NotchFilterStatus=Off'''&amp;amp;nbsp;notch filter is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''BandFilter=12'''&amp;amp;nbsp;band pass filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''BandFilterStatus=Off'''&amp;amp;nbsp;band pass is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''AdditionalChannelFile=''' defines the full path and name of an additional channels montage file, e.g. &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''C:\Program Files\BESA\Research_x\Montages\AdditionalChannels\EKG.sel'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''ColoredWaveforms=On'''&amp;amp;nbsp;scalp waveforms are (not) colored according to region&lt;br /&gt;
&lt;br /&gt;
'''WriteSegmentPath='''&amp;amp;nbsp;defines default path for saving segments/averages.&amp;amp;nbsp;If blank, the path of the current data file is used.&lt;br /&gt;
&lt;br /&gt;
'''ShowSubjectInfo=Off'''&amp;amp;nbsp;subject info will (not) be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following optional parameters are not defined as default and can be set manually in&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''' BESA.ini'''&amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''TextEditor=&amp;quot;Notepad.exe&amp;quot;''' defines the path to your preferred text editor. This will be used when you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Edit'''&amp;lt;/span&amp;gt; button the ''Load Coordinate Files dialog box''.&lt;br /&gt;
&lt;br /&gt;
'''NeuroScanDataNumberOfBits=32''' defines the format of NeuroScan data files ('16' for 16-bit, '32' for 32-bit). If this variable is not specified, BESA uses a heuristic to (try to) decide which of the two data formats is used. This variable overrides the heuristic. If you want to specify the NeuroScan data format for specific files, create a file, named &amp;quot;16bit&amp;quot; or &amp;quot;32bit&amp;quot;, and place it in the data folder.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesForNNChannels=25''' Scale waveforms as if a fixed number of channels were displayed in the window (here: 25). A minimum of 10 channels can be used for the scaling. This parameter is superseded if the parameter &amp;quot;''ScaleAmplitudesFixedPixelHeight&amp;quot;'' is specified.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesFixedPixelHeight=70''' Set the scale bar for amplitudes to a fixed pixel height (here: 70). If this parameter is set in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file, it supersedes the parameter &amp;quot;''ScaleAmplitudesForNNChannels''&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes'''&lt;br /&gt;
&lt;br /&gt;
Check the Menu descriptions for the various definitions of filters, montages etc. For montage preselection, use the labels as visible on the montage push-buttons.&lt;br /&gt;
&lt;br /&gt;
The additional channels file should contain all polygraphic channels (e.g. EKG, EOG, respiratory) that you want to view regularly along with the scalp channels. The entry AdditionalChannelFile must specify the full path pointing to the location of additional channel files (recommended: ''Montages\AdditionalChannels''). If no drive is specified, the installation drive of BESA is used.&lt;br /&gt;
&lt;br /&gt;
If BaselineCorrection is set to 'On', before displaying a screen of data, BESA subtracts for each channel the mean over its displayed time points. This optimizes viewing, because it ensures that the vertical position of each channel is not shifted upward or downward from the channel label at the left of the screen. There are some cases in which you will not want baseline correction, i.e. when the DC level in the data is already correctly defined. This is usually the case, for instance, when reading in files that have been processed by BESA. In this case, BaselineCorrection should be set to 'Off', because otherwise maps and source montage displays may be distorted.&lt;br /&gt;
&lt;br /&gt;
== Folders ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The [Folders] section defines where BESA Research places its files. In versions 5.1 and earlier, files were located in various subfolders of the program folder. This led to problems if the user did not have administrator rights, e.g. to create or write to a file. For compatibility with Windows 7 and higher versions, many folders are now located by default in locations where normal users can create and write files. If you wish, you can also specify paths in the [Folders] section to use the previous locations. The previous location is given for each variable.'''&lt;br /&gt;
&lt;br /&gt;
These settings allow some flexibility that can be useful if you want to tune BESA Research for use by several users, or on a network. For instance, the Examples and Montages folders might be located on a network disk. For the current defaults, the database, Examples, Montages, and Scripts are set up for use by all users on the PC on which BESA Research is installed. The settings files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.set'''&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.cfg'''&amp;lt;/span&amp;gt;, etc.) are located in private folders so that each user retains his or her own settings.&lt;br /&gt;
&lt;br /&gt;
The '''default''' settings (i.e. settings that BESA Research uses if the entries are omitted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file) are shown for each variable definition.&lt;br /&gt;
&lt;br /&gt;
The folder definitions can use '''placeholders''', labels enclosed by a % sign (e.g. %localapp%), to define paths that vary depending on the language version and on the Windows system. These are defined below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The Variables'''&lt;br /&gt;
&lt;br /&gt;
'''Database=%localapp%''' The path of the BESA Research database folder (used to be ''%progdir%System\DB'' in BESA versions up to 5.1.x). Unless the provided path ends with ''\DB'' or ''\Database'', BESA Research will automatically create a folder named ''Database'' in the provided path.&lt;br /&gt;
&lt;br /&gt;
'''Settings=%privatprog%Settings''' The path of the BESA Research settings folder (used to be ''%progdir%System'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Montages=%publicprog%Montages''' The path of the BESA Research montages folder (used to be ''%progdir%Montages'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Scripts=%publicprog%Scripts''' The path of the BESA Research Scripts folder (used to be ''%progdir%Scripts'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Examples=%publicprog%Examples''' The path of the BESA Research Examples folder (used to be ''%progdir%Examples'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''User=%privatprog%Settings''' The path for user defined settings (used to be ''%progdir%System\Userdirs'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Placeholders'''&lt;br /&gt;
&lt;br /&gt;
The strings enclosed by percent signs (%) are placeholders for the following folders in English-language versions of Windows. Folder names differ depending on Windows version, and for other language settings. BESA Research will substitute the placeholders by the appropriate folder name for the system and the system language:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows 7 and higher (English):''' &lt;br /&gt;
&lt;br /&gt;
'''%localapp%''' = &amp;quot;''C:\Users\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Desktop as &amp;quot;''Desktop\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Users\Public\Public Documents\BESA\Research_6_1''&amp;quot;. This folder is directly accessible from the Windows Explorer under &amp;quot;''Libraries\Documents\Public'' ''Documents\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Libraries\Documents\My'' ''Documents\Research_6_1''&amp;quot; or &amp;quot;''Desktop\[User]\My Documents\BESA\Research_6_1''. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows Vista (English'''): &lt;br /&gt;
&lt;br /&gt;
'''%localapp% '''&amp;lt;nowiki&amp;gt;= &amp;quot;&amp;lt;/nowiki&amp;gt;''C:\Users\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Desktop\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Users\Public\Public Documents\BESA\Research_6_1''&amp;quot;. This folder is directly accessible from the Windows Explorer under &amp;quot;''Desktop\Public\Public Documents\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Desktop\[user]\Documents\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%''' &amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows XP (English) (note: not supported by BESA Research 6.1 and higher):''' &lt;br /&gt;
&lt;br /&gt;
'''%localapp% '''&amp;lt;nowiki&amp;gt;= &amp;quot;&amp;lt;/nowiki&amp;gt;''C:\Documents and Settings\[user]\Local Settings\Application Data\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Documents and Settings\All Users\Documents\BESA\Research_6_0&amp;quot;. ''This folder is directly accessible from the Windows Explorer under &amp;quot;''My Computer\Shared'' ''Documents\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Documents and Settings\[user]\My Documents\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''My Documents\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir% &amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows 2000 (English) (note: not supported by BESA Research 6.1 and higher):'''&lt;br /&gt;
&lt;br /&gt;
'''%localapp%''' = &amp;quot;''C:\Documents and Settings\[user]\Local Settings\Application Data\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Documents and Settings\All Users\Documents\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Documents and Settings\[user]\My Documents\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer '''as &amp;quot;'''''My Documents\BESA\Research_6_0'''''&amp;quot;. '''&lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%'''&lt;br /&gt;
&lt;br /&gt;
== Electrodes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''This section allows for automatic relabeling of electrodes. For instance, the 10-20 label &amp;quot;T3&amp;quot; can be replaced by the 10-10 convention &amp;quot;T7&amp;quot;.'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Electrodes]:'''&lt;br /&gt;
&lt;br /&gt;
T7=T3&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
T8=T4&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P7=T5&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P8=T6&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
X1=ECG1&amp;amp;nbsp;define X1 channel to be ECG1&lt;br /&gt;
&lt;br /&gt;
X2=ECG2&amp;amp;nbsp;define X2 channel to be ECG2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other examples, depending on your electrode input box definition, could be:&lt;br /&gt;
&lt;br /&gt;
PG1=LO1&amp;amp;nbsp;define X3 as lateral orbital eye electrode left&lt;br /&gt;
&lt;br /&gt;
PG2=LO2&amp;amp;nbsp;bipolar LO1-LO2 defines horizontal EOG (additional channel)&lt;br /&gt;
&lt;br /&gt;
X3=IO1&amp;amp;nbsp;infraorbital, e.g. use with FP1 as additional channel for VEOG&lt;br /&gt;
&lt;br /&gt;
X9=Rsp&amp;amp;nbsp;define X9 channel to be a respiratory channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Relabeling of channel names (as stored in the EEG file header) is helpful to predefine your standard sequence of channels and to avoid the need for reading and/or editing a Channel Configuration file for every EEG file.&lt;br /&gt;
&lt;br /&gt;
'''Note 1''': For polygraphic channels, or if your EKG has been recorded differentially, you should edit and define an ''Additional Channels Montage'' according to your recording channel configuration (e.g. Fp1-IO1=vertical EOG). The Additional Channels group permits to display these channels regularly below the scalp montages with individual scales.&lt;br /&gt;
&lt;br /&gt;
'''Note 2''': EOG channels record both eye and scalp activity. In digital EEG systems, EOG electrodes should be labeled according to their position in the 10-10 system (see &amp;quot;''Electrode Conventions''&amp;quot;). This permits use of these electrodes for mapping and suppression of eye artifacts. The standard definitions above give an example of how to relabel extra channels (X1...X10, PG1, PG2) for the use of EOG, EKG and respiratory (Rsp) channels. Use an ''Additional Channels'' file to define horizontal and vertical EOG channels by using the appropriate electrodes in a bipolar montage (an example is provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''eog-ecg.mtg'''&amp;lt;/span&amp;gt; in ''Montages\AdditionalChannels''). Differentially recorded EKG and respiratory channel can be defined in the same file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Patterns ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Patterns]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define labels for each of the five patterns. The labels are shown* in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Tags'''&amp;lt;/span&amp;gt; menu,&lt;br /&gt;
* in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''TAG push-button'''&amp;lt;/span&amp;gt; popup menu, and&lt;br /&gt;
* when displaying tag info clicking with the right mouse on a tag at the bottom of the EEG or on the event bar.&lt;br /&gt;
&lt;br /&gt;
By default, no labels are defined. Define a label, e.g. for Pattern1 and Pattern2, as in the following example:&lt;br /&gt;
&lt;br /&gt;
Pattern1=Spike&lt;br /&gt;
&lt;br /&gt;
Pattern2=Sharp Wave&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Artifacts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Artifact default settings:'''&lt;br /&gt;
&lt;br /&gt;
See the chapter &amp;quot;''Artifact Correction / Reference / Artifact settings in the BESA.ini file''&amp;quot; in the online help.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Search ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Default settings for pattern search.&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Options ''Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThreshold''' = '''75%'''&lt;br /&gt;
&lt;br /&gt;
'''AmplitudeThreshold = 100 µV'''&lt;br /&gt;
&lt;br /&gt;
'''GradientThreshold = 25'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Average/View'' (SAV) Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''PreCursor = -250 ms'''&lt;br /&gt;
&lt;br /&gt;
'''PostCursor = 150 ms'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassFreq =&amp;amp;nbsp;2 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassSlope = 12 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassType = 0 (0 = zero phase, 1 = forward, 2 = backward'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassFreq = 35 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassSlope = 24 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassType = 0 (0 = zero phase, 1 = forward, 2 = backward)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdNoMarked = 60%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if no channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdOneMarked = 85%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if one channel label is marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdFourMarked = 65%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if between two channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''SelectedViewWindowWidthMultiplier = 300%'''&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearch = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, a File Save dialog will open, to allow to save the search average to a file (as with the SAW function).&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearchCheckBox = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, an additional checkbox &amp;quot;Write after search&amp;quot; is displayed at the bottom of the SAV Dialog, allowing to choose whether or not to write the search average after a search:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (1).gif ‎ ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''PreserveDefaults = Yes'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;No&amp;quot;, the SAV Dialog will open with the same boxes checked as the last time the dialog was opened during the current session.&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, the default frequency, buffer width, selected view after search, and default threshold are always checked when the dialog is opened.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== KeyControls ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the [KeyControls] section you can specify functions that can be allocated to &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function keys'''&amp;lt;/span&amp;gt; or to the ''Del'' key. Specify using the form:&lt;br /&gt;
&lt;br /&gt;
'''Fn=function''' or&lt;br /&gt;
&lt;br /&gt;
'''Del=function'''&lt;br /&gt;
&lt;br /&gt;
where &amp;quot;''n''&amp;quot; is a number between 2 and 12 (F1 is reserved for Help). For example:&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;F2 = Batch1&lt;br /&gt;
&lt;br /&gt;
Possible functions are:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Setting or removing events:'''&lt;br /&gt;
&lt;br /&gt;
'''Pattern''n''''', where ''n''&amp;lt;nowiki&amp;gt;=1-5: Sets the tag number &amp;lt;/nowiki&amp;gt;''n'' at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Epochfast:''' sets one boundary of an epoch at the cursor latency, but does not open&amp;amp;nbsp;the epoch text box to define a label.&lt;br /&gt;
&lt;br /&gt;
'''Marker:'''&amp;amp;nbsp;&amp;amp;nbsp;sets a marker at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Comment:'''&amp;amp;nbsp;sets a comment at the cursor latency and opens the comment box to enter&amp;amp;nbsp;text.&lt;br /&gt;
&lt;br /&gt;
'''Epoch:'''&amp;amp;nbsp;sets one boundary of an epoch at the cursor latency and opens the epoch&amp;amp;nbsp;text box to enter a label.&lt;br /&gt;
&lt;br /&gt;
'''Artifact:'''&amp;amp;nbsp;sets one boundary of an artifact segment at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Delete:'''&amp;amp;nbsp;&amp;amp;nbsp;deletes a tag at the cursor latency&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Batches and Montages:'''&lt;br /&gt;
&lt;br /&gt;
'''Batch''n''''', where n=1-12: Runs a predefined batch file corresponding to the number ''n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a batch, pressing it will open a ''File Open Dialog'' to select a batch. The setting you have chosen will be retained across BESA Research sessions. Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt;'''&amp;lt;/span&amp;gt; key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will always open the dialog. Hold the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' &amp;lt;ctrl&amp;gt; '''&amp;lt;/span&amp;gt;key with the function key to open the associated batch in the batch edit dialog.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Montage''n''''', where n=1-12: Sets a montage corresponding to the number'' n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a montage, pressing it will generate a message asking you to associate a montage as follows: Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt; '''&amp;lt;/span&amp;gt;key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will remove the current association, and substitute it with the current montage.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default settings after program installation are listed in the online help chapter ''Review / Reference / Controls / Mouse and Keyboard / Keyboard Controls''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== FFT ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [FFT]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define the setup in the Spectral Analysis section of the BESA Research program (FFT window, see the chapter &amp;quot;''Spectral Analysis / FFT''&amp;quot;). Up to 7 frequency bands may be defined. Five are defined by default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''FFTBand1=On'''&amp;amp;nbsp;FFT Bands 1-5 are defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand2=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand3=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand4=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand5=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand6=Off'''&amp;amp;nbsp;FFT Bands 6-7 are not defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand7=Off'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand1=Delta'''&amp;amp;nbsp;Names of the defined bands&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand2=Theta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand3=Alpha'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand4=Beta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand5=Gamma'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand1=RGB(0,0,0)''' &amp;amp;nbsp;Default color of each band&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand2=RGB(0,128,64)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand3=RGB(128,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand4=RGB(255,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand5=RGB(255,128,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand6=RGB(255,192,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand7=RGB(255,255,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand1=1'''&amp;amp;nbsp;Delta from 1-4 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand1=4'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand2=4'''&amp;amp;nbsp;Theta from 4-8 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand2=8'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand3=8''' Alpha from 8-14 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand3=14'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand4=14'''&amp;amp;nbsp;Beta from 14-30 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand4=30'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand5=30'''&amp;amp;nbsp;Gamma from 30-50 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand5=50'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These values are best set from within BESA Research, using the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Options'''&amp;lt;/span&amp;gt; menu in the FFT window (see the chapter &amp;quot;''Spectral Analysis / FFT / FFT Options Menu''&amp;quot;). Current settings are stored after each session and retrieved in the next session.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Printer ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Printer]:'''&lt;br /&gt;
&lt;br /&gt;
'''PrinterMarginPercent=100'''&amp;amp;nbsp;controls size of printout&lt;br /&gt;
&lt;br /&gt;
'''PrinterColors=256'''&amp;amp;nbsp;set to 1/2 for black&amp;amp;white, 0/256 for color printers&lt;br /&gt;
&lt;br /&gt;
'''PrinterLineMode=1'''&amp;amp;nbsp;set to 2 for thicker lines and to save printer memory&lt;br /&gt;
&lt;br /&gt;
'''PrinterMapResolution=1'''&amp;amp;nbsp;set to 2, 3, 4 to save printer memory and increase speed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Calibration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Calibration]:'''&lt;br /&gt;
&lt;br /&gt;
'''AutoCalibration=Off'''&amp;amp;nbsp;On: automatic calibration of signals &amp;gt;= 4 cycles&lt;br /&gt;
&lt;br /&gt;
'''MicrovoltCalibration=50'''&amp;amp;nbsp;peak voltage of calibration signal&lt;br /&gt;
&lt;br /&gt;
If calibration is set to'' On'', the menu item ''Calibration ''will appear in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Process '''&amp;lt;/span&amp;gt;menu. Position your current screen at an epoch containing at least 4 regular cycles of the calibration signal (in all channels!) and select Calibration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Video ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Video]:'''&lt;br /&gt;
&lt;br /&gt;
'''DVCFilePath=C:\DVC\DVPlay.exe''' holds the path to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''DVCCommandLineArguments=/S:3 /M:P /T:M''' &amp;amp;nbsp;arguments to be passed to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetLeft=0.2 &amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetRight=0.8'''&lt;br /&gt;
&lt;br /&gt;
'''CursorMinDistToBorderBeforePaging=0.02'''&lt;br /&gt;
&lt;br /&gt;
'''PageDisplayIfCursorIsBelowVideo=1'''&lt;br /&gt;
&lt;br /&gt;
'''MappingRepetitionRateWithVideoInMS=100''' &amp;amp;nbsp;gives the number of milliseconds between two maps if the mapping window is open while the video is running. If the graphics board encounters problems during the display, this value should be increased.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Mapping ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Mapping]:'''&lt;br /&gt;
&lt;br /&gt;
'''UseBitmapDrawing=Off'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if 3D maps show a strange pattern of black triangular shapes (this is frequently observed with modern Intel On-Board graphics controllers, and is a result of inadequate drivers for Open-GL).&lt;br /&gt;
&lt;br /&gt;
'''Use3DVBlending=Auto'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;Off&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window does not show up properly (this may happen with some older graphics cards).&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window shows a ragged surface boundary.&lt;br /&gt;
&lt;br /&gt;
'''MapSmoothing=0&amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
Set a non-zero value to specify a default map smoothing parameter (normally specified in ''Options/Mapping/Spline Interpolation Smoothing Constant'').&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Matlab ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings for the [Matlab] section:'''&lt;br /&gt;
&lt;br /&gt;
'''Platform=32'''&lt;br /&gt;
&lt;br /&gt;
'''Set Platform=64''' if you want to use the 64-bit version of Matlab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Updates ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This section is not normally required, but the variables here can be altered or defined to determine how BESA Research checks for dongle and program updates.&lt;br /&gt;
&lt;br /&gt;
'''DaysBetweenUpdateChecks=7'''&lt;br /&gt;
&lt;br /&gt;
Sets the number of days between automatic checks for updates. Set the value to 0 to check every time BESA Research is started. Set to -1 to turn off automatic update checks.&lt;br /&gt;
&lt;br /&gt;
'''CheckNetworkDongle=Off'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator: If set to &amp;quot;On&amp;quot;, BESA Research will check the dongle on the network for updates. Otherwise the state of the network dongle will be ignored.&lt;br /&gt;
&lt;br /&gt;
'''LocalPath'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator. This can be set to a path on the local network to the BESA update files, so that users can obtain their updates locally. The path is given to the text file &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''UpdateVersions.txt'''&amp;lt;/span&amp;gt;&amp;quot; (e.g. ''LocalPath=\\transtec-sak\zarascratch\BESA\Updates\UpdateVersions.txt''), which contains further details for the program to obtain its updates. If you want to use this feature, please contact us at [mailto:support@besa.de support@besa.de].&lt;br /&gt;
&lt;br /&gt;
The following variables are not required, because BESA Research has the paths hardwired:&lt;br /&gt;
&lt;br /&gt;
'''FTP1 (also FTP2, FTP3)'''&lt;br /&gt;
&lt;br /&gt;
ftp download server&lt;br /&gt;
&lt;br /&gt;
'''Path1 (also Path2, Path3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to UpdateVersions.txt.&lt;br /&gt;
&lt;br /&gt;
'''HaspPath1 (also HaspPath2, HaspPath3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to HASP (dongle) update files.&lt;br /&gt;
&lt;br /&gt;
'''History'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to general history file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reader-Specific Settings ==&lt;br /&gt;
&lt;br /&gt;
=== BrainLab ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [BrainLab]:'''&lt;br /&gt;
&lt;br /&gt;
'''BrainLabFormat=New''' this entry ensures that the newer BrainLab file format can be read by BESA Research.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bio-Logic ===&lt;br /&gt;
&lt;br /&gt;
'''FileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If there are several Bio-Logic files in a data folder, the reader can check if the files have the same settings. There are three possible options:&lt;br /&gt;
&lt;br /&gt;
* Open a dialog to ask if the files should be treated as a single data set, or as individual, separate files. &lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (2).jpg ‎]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;in this case, use '''FileSelect=Yes''' (this is the default setting) Note that the choice made in the dialog will apply to the file(s) within a BESA Research session. For a given file and session, the dialog will only be opened once, even if the file is closed and reopened.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Always concatenate such files into a single data set. In this case use '''FileSelect=All'''&lt;br /&gt;
* Always open the files as single, separate files. In this case use '''FileSelect=Single'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EDF+/BDF/Trackit ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On'''&lt;br /&gt;
&lt;br /&gt;
Set '''TriggerScan=Off '''to prevent BESA Research from scanning the file for triggers. This is done separately for EDF+, BDF, and Trackit files in sections '''[EDF+], [BDF],''' and '''[Trackit]''' in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EGI ===&lt;br /&gt;
&lt;br /&gt;
The treatment of DIN events can be modified in the''' [EGI] '''section:&lt;br /&gt;
&lt;br /&gt;
'''CombineDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you want to treat DIN events separately, and not generate combined values.&lt;br /&gt;
&lt;br /&gt;
'''SeparateDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you don’t want to treat DIN events separately.&lt;br /&gt;
&lt;br /&gt;
Thus, using the above two parameters, you can choose whether you want to treat DIN events as combined, separate, both, or completely ignored.&lt;br /&gt;
&lt;br /&gt;
'''CombineDINeventsPrefix'''&amp;lt;nowiki&amp;gt;=dinComb&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;This defines the text preceding the number when DIN events are combined. The default is “dinComb”.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Harmonie ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Harmonie] (Stellate Harmonie systems):'''&lt;br /&gt;
&lt;br /&gt;
'''SeizurePreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''SeizurePostEpoch=60'''&amp;amp;nbsp;length of the epoch following a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a push button detection&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPostEpoch=60'''&amp;amp;nbsp;length of the epoch following a push button detection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When BESA Research encounters a seizure detection event or a push button detection event in a Stellate Harmonie file, it automatically sets an epoch around the event, which makes it convenient to view just those epochs for analysis. The length of the epochs preceding and following the events can be adjusted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Neuroscan Keys ===&lt;br /&gt;
&lt;br /&gt;
'''Note that there is a setting &amp;quot;NeuroScanDataNumberOfBits&amp;quot; in the [Defaults] section of BESA.ini that is used for distinguishing the data format of Neuroscan files (16 or 32-bit).'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NeuroScan Keys] (NeuroScan systems):'''&lt;br /&gt;
&lt;br /&gt;
Event1=Movement&amp;amp;nbsp;Text corresponding to keyboard events 1 through 10&lt;br /&gt;
&lt;br /&gt;
Event2=Blink&lt;br /&gt;
&lt;br /&gt;
Event3=Talking&lt;br /&gt;
&lt;br /&gt;
Event4=Cough&lt;br /&gt;
&lt;br /&gt;
Event5=Muscle&lt;br /&gt;
&lt;br /&gt;
Event6=Jaw&lt;br /&gt;
&lt;br /&gt;
Event7=Sneeze&lt;br /&gt;
&lt;br /&gt;
Event8=Swallow&lt;br /&gt;
&lt;br /&gt;
Event9=Eye movement&lt;br /&gt;
&lt;br /&gt;
Event10=Hiccup&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NKT2100 ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NKT2100] (Nihon Kohden EEG 21xx systems):'''&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On''' &amp;amp;nbsp;&amp;amp;nbsp;Set to &amp;quot;Off&amp;quot; to prevent a scan for trigger events.&lt;br /&gt;
&lt;br /&gt;
'''Country=NotKanji'''&amp;amp;nbsp;set to NotKanji for non-Kanji characters else to Kanji&lt;br /&gt;
&lt;br /&gt;
'''KanjiCharSize=16'''&amp;amp;nbsp;Kanji character size&lt;br /&gt;
&lt;br /&gt;
'''KanjiPrinterCharSize=32'''&amp;amp;nbsp;Kanji printer character size&lt;br /&gt;
&lt;br /&gt;
'''EEG_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden EEG-2100 system&lt;br /&gt;
&lt;br /&gt;
'''DC_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden DAE-2100 system&lt;br /&gt;
&lt;br /&gt;
'''QJ_Sensitivity=100''' default sensitivity of Nihon Kohden QJ-403 system&lt;br /&gt;
&lt;br /&gt;
'''Mark_Sensitivity=100'''&amp;amp;nbsp;default sensitivity of EEG-2100 marker channels&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These settings need to be changed only if the manufacturer has specified different gains for your system. Otherwise do not alter these settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Vangard ===&lt;br /&gt;
&lt;br /&gt;
'''AlwaysOpenFileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;Yes&amp;quot; is selected, each time a Vangard file is opened, a dialog box will open, asking for a selection of the segment type to display.&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;No&amp;quot; is selected, the selection dialog is opened whenever a Vangard file is opened for the first time, or if the ''Channel and digitized head surface point information dialog box'' is opened (e.g. with &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''ctrl-L'''&amp;lt;/span&amp;gt; or ''File/Head Surface Points and Sensors/Load Coordinate Files...'' ).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== XLTEK ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=Off '''Set to &amp;quot;On&amp;quot; to scan the data file for trigger events&lt;br /&gt;
&lt;br /&gt;
'''MontageNo=2''' Set to 1 or 2. If two montages for the data file are defined, this variable determines whether the first or the second alternative should be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Research Manual]]&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini</id>
		<title>The Initialization File: BESA.ini</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini"/>
				<updated>2019-03-27T13:27:44Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
'''BESA.ini File'''&lt;br /&gt;
&lt;br /&gt;
BESA Research uses settings provided in the initialization file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; whenever BESA Research is started or a new file is opened for the first time. The format of this file conforms with standard initialization files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.ini&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) of Windows. You may change the settings in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; using &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;NOTEPAD.exe&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; from the ACCESSORIES group, or other plain text editors to adapt BESA Research to '''your own everyday needs'''. The default settings provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; will be used by BESA Research whenever BESA Research or the launch program is started. It is advised that you make a backup copy of &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; before you change the default settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Location of BESA.ini'''&lt;br /&gt;
&lt;br /&gt;
You can place &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; at three possible locations:&lt;br /&gt;
&lt;br /&gt;
# '''Private''': each user on a PC should have his/her own private settings. This is normally in ''My Documents/BESA/Research_6_1''&lt;br /&gt;
# '''Public''': all users should use one setting, but they can edit &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; to change the settings. This is normally in ''Public Documents/BESA/Research_6_1''&lt;br /&gt;
# '''Administrator''': the PC administrator determines the settings. This is normally in ''C:Program Files(x86)/BESA/Research_6_1''&lt;br /&gt;
&lt;br /&gt;
The actual folder names depend on the operating system and the system language.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;When BESA starts, it first looks for the '''administrator''' version of '''BESA.ini'''. If this is not found, it looks for the '''private''' version. If this is not found, it looks for the '''public''' version. If this is not found, internal default values are used.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''There are 13 general sections, and several reader-specific sections:'''&lt;br /&gt;
&lt;br /&gt;
[Defaults] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; General settings (filters, scaling, and various other settings)&lt;br /&gt;
&lt;br /&gt;
[Folders] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Folders used by BESA Research (Examples, Montages, Scripts, Settings,...)&lt;br /&gt;
&lt;br /&gt;
[Electrodes] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Electrode renaming&lt;br /&gt;
&lt;br /&gt;
[Patterns] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;Rename patterns in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Tags'''&amp;lt;/span&amp;gt; menu&lt;br /&gt;
&lt;br /&gt;
[Artifacts] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;   Settings for artifact correction&lt;br /&gt;
&lt;br /&gt;
[KEYCONTROLS] &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;  Function key definitions&lt;br /&gt;
&lt;br /&gt;
[Search] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;Default parameters for search&lt;br /&gt;
&lt;br /&gt;
[FFT] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp; Frequency band definitions&lt;br /&gt;
&lt;br /&gt;
[Printer] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;  Printer control&lt;br /&gt;
&lt;br /&gt;
[Calibration] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;  Calibration control&lt;br /&gt;
&lt;br /&gt;
[Video] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Digital video control&lt;br /&gt;
&lt;br /&gt;
[Mapping] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;  Mapping control&lt;br /&gt;
&lt;br /&gt;
[Updates] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Options for program updates&lt;br /&gt;
&lt;br /&gt;
[Matlab] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;     Settings for the Matlab interface&lt;br /&gt;
&lt;br /&gt;
[fMRI] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;        Settings for the fMRI arfifact removal&lt;br /&gt;
&lt;br /&gt;
[Montages] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;      A setting for a default source montage&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Reader-specific settings'''&lt;br /&gt;
&lt;br /&gt;
[BrainLab]&lt;br /&gt;
&lt;br /&gt;
[Bio-Logic]&lt;br /&gt;
&lt;br /&gt;
[EDF+] [BDF] [Trackit]&lt;br /&gt;
&lt;br /&gt;
[EGI]&lt;br /&gt;
&lt;br /&gt;
[Harmonie]&lt;br /&gt;
&lt;br /&gt;
[NeuroScan Keys]&lt;br /&gt;
&lt;br /&gt;
[NKT2100]&lt;br /&gt;
&lt;br /&gt;
[Vangard]&lt;br /&gt;
&lt;br /&gt;
[XLTEK]&lt;br /&gt;
&lt;br /&gt;
== Defaults ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Defaults]:'''&lt;br /&gt;
&lt;br /&gt;
'''DatabaseAllowLocalFiles=Yes''' (If set to &amp;quot;Yes&amp;quot;, BESA Research will write filenames &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.ftg'''&amp;lt;/span&amp;gt;&amp;quot; and &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.fst&amp;quot;'''&amp;lt;/span&amp;gt; to the data folder, saving current file tag and display settings there. If set to &amp;quot;No&amp;quot;, these files are only written to the database. If set to &amp;quot;Yes&amp;quot;, you can copy these files along with the data to a new folder, and display settings and tags will be preserved.)&lt;br /&gt;
&lt;br /&gt;
'''DataBuffering=Off''' (If set to &amp;quot;On&amp;quot;, an internal buffer of length 180 s of data is kept to speed up paging). This can speed up paging, particularly when the data are in a network folder.&lt;br /&gt;
&lt;br /&gt;
'''DisplayedTime=10'''&amp;amp;nbsp;displayed time window [s] on the screen&lt;br /&gt;
&lt;br /&gt;
'''Montage=Org'''&amp;amp;nbsp;montage used when opening a new file&lt;br /&gt;
&lt;br /&gt;
'''ScpScale=50'''&amp;amp;nbsp;scale of scalp channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''PgrScale=500'''&amp;amp;nbsp;scale of polygraphic channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''IcrScale=500'''&amp;amp;nbsp;scale of intracranial channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''MegScale=500'''&amp;amp;nbsp;scale of MEG/marker channels in [fT]&lt;br /&gt;
&lt;br /&gt;
'''BaselineCorrection=On'''&amp;amp;nbsp;baseline correction, do not switch off in AC systems&lt;br /&gt;
&lt;br /&gt;
'''ClippingPercent=&amp;amp;nbsp;'''set from 100 to 200 if you want to clip artifacts in displayed EEG (not used if empty or 0)&lt;br /&gt;
&lt;br /&gt;
'''LowFilter='''&amp;amp;nbsp;low filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''TimeConstant=0.3'''&amp;amp;nbsp;time constant for low filter cutoff frequency [sec] (fixed forward filter, 0.3 sec is equivalent to 0.53 Hz)&lt;br /&gt;
&lt;br /&gt;
'''HighFilter=70'''&amp;amp;nbsp;high filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''NotchFilter=50'''&amp;amp;nbsp;notch filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''NotchFilterStatus=Off'''&amp;amp;nbsp;notch filter is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''BandFilter=12'''&amp;amp;nbsp;band pass filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''BandFilterStatus=Off'''&amp;amp;nbsp;band pass is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''AdditionalChannelFile=''' defines the full path and name of an additional channels montage file, e.g. &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''C:\Program Files\BESA\Research_x\Montages\AdditionalChannels\EKG.sel'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''ColoredWaveforms=On'''&amp;amp;nbsp;scalp waveforms are (not) colored according to region&lt;br /&gt;
&lt;br /&gt;
'''WriteSegmentPath='''&amp;amp;nbsp;defines default path for saving segments/averages.&amp;amp;nbsp;If blank, the path of the current data file is used.&lt;br /&gt;
&lt;br /&gt;
'''ShowSubjectInfo=Off'''&amp;amp;nbsp;subject info will (not) be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following optional parameters are not defined as default and can be set manually in&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''' BESA.ini'''&amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''TextEditor=&amp;quot;Notepad.exe&amp;quot;''' defines the path to your preferred text editor. This will be used when you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Edit'''&amp;lt;/span&amp;gt; button the ''Load Coordinate Files dialog box''.&lt;br /&gt;
&lt;br /&gt;
'''NeuroScanDataNumberOfBits=32''' defines the format of NeuroScan data files ('16' for 16-bit, '32' for 32-bit). If this variable is not specified, BESA uses a heuristic to (try to) decide which of the two data formats is used. This variable overrides the heuristic. If you want to specify the NeuroScan data format for specific files, create a file, named &amp;quot;16bit&amp;quot; or &amp;quot;32bit&amp;quot;, and place it in the data folder.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesForNNChannels=25''' Scale waveforms as if a fixed number of channels were displayed in the window (here: 25). A minimum of 10 channels can be used for the scaling. This parameter is superseded if the parameter &amp;quot;''ScaleAmplitudesFixedPixelHeight&amp;quot;'' is specified.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesFixedPixelHeight=70''' Set the scale bar for amplitudes to a fixed pixel height (here: 70). If this parameter is set in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file, it supersedes the parameter &amp;quot;''ScaleAmplitudesForNNChannels''&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes'''&lt;br /&gt;
&lt;br /&gt;
Check the Menu descriptions for the various definitions of filters, montages etc. For montage preselection, use the labels as visible on the montage push-buttons.&lt;br /&gt;
&lt;br /&gt;
The additional channels file should contain all polygraphic channels (e.g. EKG, EOG, respiratory) that you want to view regularly along with the scalp channels. The entry AdditionalChannelFile must specify the full path pointing to the location of additional channel files (recommended: ''Montages\AdditionalChannels''). If no drive is specified, the installation drive of BESA is used.&lt;br /&gt;
&lt;br /&gt;
If BaselineCorrection is set to 'On', before displaying a screen of data, BESA subtracts for each channel the mean over its displayed time points. This optimizes viewing, because it ensures that the vertical position of each channel is not shifted upward or downward from the channel label at the left of the screen. There are some cases in which you will not want baseline correction, i.e. when the DC level in the data is already correctly defined. This is usually the case, for instance, when reading in files that have been processed by BESA. In this case, BaselineCorrection should be set to 'Off', because otherwise maps and source montage displays may be distorted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Folders ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The [Folders] section defines where BESA Research places its files. In versions 5.1 and earlier, files were located in various subfolders of the program folder. This led to problems if the user did not have administrator rights, e.g. to create or write to a file. For compatibility with Windows 7 and higher versions, many folders are now located by default in locations where normal users can create and write files. If you wish, you can also specify paths in the [Folders] section to use the previous locations. The previous location is given for each variable.'''&lt;br /&gt;
&lt;br /&gt;
These settings allow some flexibility that can be useful if you want to tune BESA Research for use by several users, or on a network. For instance, the Examples and Montages folders might be located on a network disk. For the current defaults, the database, Examples, Montages, and Scripts are set up for use by all users on the PC on which BESA Research is installed. The settings files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.set'''&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.cfg'''&amp;lt;/span&amp;gt;, etc.) are located in private folders so that each user retains his or her own settings.&lt;br /&gt;
&lt;br /&gt;
The '''default''' settings (i.e. settings that BESA Research uses if the entries are omitted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file) are shown for each variable definition.&lt;br /&gt;
&lt;br /&gt;
The folder definitions can use '''placeholders''', labels enclosed by a % sign (e.g. %localapp%), to define paths that vary depending on the language version and on the Windows system. These are defined below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The Variables'''&lt;br /&gt;
&lt;br /&gt;
'''Database=%localapp%''' The path of the BESA Research database folder (used to be ''%progdir%System\DB'' in BESA versions up to 5.1.x). Unless the provided path ends with ''\DB'' or ''\Database'', BESA Research will automatically create a folder named ''Database'' in the provided path.&lt;br /&gt;
&lt;br /&gt;
'''Settings=%privatprog%Settings''' The path of the BESA Research settings folder (used to be ''%progdir%System'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Montages=%publicprog%Montages''' The path of the BESA Research montages folder (used to be ''%progdir%Montages'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Scripts=%publicprog%Scripts''' The path of the BESA Research Scripts folder (used to be ''%progdir%Scripts'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Examples=%publicprog%Examples''' The path of the BESA Research Examples folder (used to be ''%progdir%Examples'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''User=%privatprog%Settings''' The path for user defined settings (used to be ''%progdir%System\Userdirs'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Placeholders'''&lt;br /&gt;
&lt;br /&gt;
The strings enclosed by percent signs (%) are placeholders for the following folders in English-language versions of Windows. Folder names differ depending on Windows version, and for other language settings. BESA Research will substitute the placeholders by the appropriate folder name for the system and the system language:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows 7 and higher (English):''' &lt;br /&gt;
&lt;br /&gt;
'''%localapp%''' = &amp;quot;''C:\Users\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Desktop as &amp;quot;''Desktop\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Users\Public\Public Documents\BESA\Research_6_1''&amp;quot;. This folder is directly accessible from the Windows Explorer under &amp;quot;''Libraries\Documents\Public'' ''Documents\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Libraries\Documents\My'' ''Documents\Research_6_1''&amp;quot; or &amp;quot;''Desktop\[User]\My Documents\BESA\Research_6_1''. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows Vista (English'''): &lt;br /&gt;
&lt;br /&gt;
'''%localapp% '''&amp;lt;nowiki&amp;gt;= &amp;quot;&amp;lt;/nowiki&amp;gt;''C:\Users\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Desktop\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Users\Public\Public Documents\BESA\Research_6_1''&amp;quot;. This folder is directly accessible from the Windows Explorer under &amp;quot;''Desktop\Public\Public Documents\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Desktop\[user]\Documents\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%''' &amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows XP (English) (note: not supported by BESA Research 6.1 and higher):''' &lt;br /&gt;
&lt;br /&gt;
'''%localapp% '''&amp;lt;nowiki&amp;gt;= &amp;quot;&amp;lt;/nowiki&amp;gt;''C:\Documents and Settings\[user]\Local Settings\Application Data\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Documents and Settings\All Users\Documents\BESA\Research_6_0&amp;quot;. ''This folder is directly accessible from the Windows Explorer under &amp;quot;''My Computer\Shared'' ''Documents\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Documents and Settings\[user]\My Documents\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''My Documents\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir% &amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows 2000 (English) (note: not supported by BESA Research 6.1 and higher):'''&lt;br /&gt;
&lt;br /&gt;
'''%localapp%''' = &amp;quot;''C:\Documents and Settings\[user]\Local Settings\Application Data\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Documents and Settings\All Users\Documents\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Documents and Settings\[user]\My Documents\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer '''as &amp;quot;'''''My Documents\BESA\Research_6_0'''''&amp;quot;. '''&lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%'''&lt;br /&gt;
&lt;br /&gt;
== Electrodes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''This section allows for automatic relabeling of electrodes. For instance, the 10-20 label &amp;quot;T3&amp;quot; can be replaced by the 10-10 convention &amp;quot;T7&amp;quot;.'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Electrodes]:'''&lt;br /&gt;
&lt;br /&gt;
T7=T3&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
T8=T4&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P7=T5&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P8=T6&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
X1=ECG1&amp;amp;nbsp;define X1 channel to be ECG1&lt;br /&gt;
&lt;br /&gt;
X2=ECG2&amp;amp;nbsp;define X2 channel to be ECG2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other examples, depending on your electrode input box definition, could be:&lt;br /&gt;
&lt;br /&gt;
PG1=LO1&amp;amp;nbsp;define X3 as lateral orbital eye electrode left&lt;br /&gt;
&lt;br /&gt;
PG2=LO2&amp;amp;nbsp;bipolar LO1-LO2 defines horizontal EOG (additional channel)&lt;br /&gt;
&lt;br /&gt;
X3=IO1&amp;amp;nbsp;infraorbital, e.g. use with FP1 as additional channel for VEOG&lt;br /&gt;
&lt;br /&gt;
X9=Rsp&amp;amp;nbsp;define X9 channel to be a respiratory channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Relabeling of channel names (as stored in the EEG file header) is helpful to predefine your standard sequence of channels and to avoid the need for reading and/or editing a Channel Configuration file for every EEG file.&lt;br /&gt;
&lt;br /&gt;
'''Note 1''': For polygraphic channels, or if your EKG has been recorded differentially, you should edit and define an ''Additional Channels Montage'' according to your recording channel configuration (e.g. Fp1-IO1=vertical EOG). The Additional Channels group permits to display these channels regularly below the scalp montages with individual scales.&lt;br /&gt;
&lt;br /&gt;
'''Note 2''': EOG channels record both eye and scalp activity. In digital EEG systems, EOG electrodes should be labeled according to their position in the 10-10 system (see &amp;quot;''Electrode Conventions''&amp;quot;). This permits use of these electrodes for mapping and suppression of eye artifacts. The standard definitions above give an example of how to relabel extra channels (X1...X10, PG1, PG2) for the use of EOG, EKG and respiratory (Rsp) channels. Use an ''Additional Channels'' file to define horizontal and vertical EOG channels by using the appropriate electrodes in a bipolar montage (an example is provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''eog-ecg.mtg'''&amp;lt;/span&amp;gt; in ''Montages\AdditionalChannels''). Differentially recorded EKG and respiratory channel can be defined in the same file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Patterns ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Patterns]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define labels for each of the five patterns. The labels are shown* in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Tags'''&amp;lt;/span&amp;gt; menu,&lt;br /&gt;
* in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''TAG push-button'''&amp;lt;/span&amp;gt; popup menu, and&lt;br /&gt;
* when displaying tag info clicking with the right mouse on a tag at the bottom of the EEG or on the event bar.&lt;br /&gt;
&lt;br /&gt;
By default, no labels are defined. Define a label, e.g. for Pattern1 and Pattern2, as in the following example:&lt;br /&gt;
&lt;br /&gt;
Pattern1=Spike&lt;br /&gt;
&lt;br /&gt;
Pattern2=Sharp Wave&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Artifacts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Artifact default settings:'''&lt;br /&gt;
&lt;br /&gt;
See the chapter &amp;quot;''Artifact Correction / Reference / Artifact settings in the BESA.ini file''&amp;quot; in the online help.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Search ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Default settings for pattern search.&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Options ''Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThreshold''' = '''75%'''&lt;br /&gt;
&lt;br /&gt;
'''AmplitudeThreshold = 100 µV'''&lt;br /&gt;
&lt;br /&gt;
'''GradientThreshold = 25'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Average/View'' (SAV) Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''PreCursor = -250 ms'''&lt;br /&gt;
&lt;br /&gt;
'''PostCursor = 150 ms'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassFreq =&amp;amp;nbsp;2 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassSlope = 12 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassType = 0 (0 = zero phase, 1 = forward, 2 = backward'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassFreq = 35 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassSlope = 24 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassType = 0 (0 = zero phase, 1 = forward, 2 = backward)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdNoMarked = 60%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if no channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdOneMarked = 85%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if one channel label is marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdFourMarked = 65%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if between two channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''SelectedViewWindowWidthMultiplier = 300%'''&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearch = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, a File Save dialog will open, to allow to save the search average to a file (as with the SAW function).&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearchCheckBox = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, an additional checkbox &amp;quot;Write after search&amp;quot; is displayed at the bottom of the SAV Dialog, allowing to choose whether or not to write the search average after a search:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (1).gif ‎ ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''PreserveDefaults = Yes'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;No&amp;quot;, the SAV Dialog will open with the same boxes checked as the last time the dialog was opened during the current session.&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, the default frequency, buffer width, selected view after search, and default threshold are always checked when the dialog is opened.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== KeyControls ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the [KeyControls] section you can specify functions that can be allocated to &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function keys'''&amp;lt;/span&amp;gt; or to the ''Del'' key. Specify using the form:&lt;br /&gt;
&lt;br /&gt;
'''Fn=function''' or&lt;br /&gt;
&lt;br /&gt;
'''Del=function'''&lt;br /&gt;
&lt;br /&gt;
where &amp;quot;''n''&amp;quot; is a number between 2 and 12 (F1 is reserved for Help). For example:&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;F2 = Batch1&lt;br /&gt;
&lt;br /&gt;
Possible functions are:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Setting or removing events:'''&lt;br /&gt;
&lt;br /&gt;
'''Pattern''n''''', where ''n''&amp;lt;nowiki&amp;gt;=1-5: Sets the tag number &amp;lt;/nowiki&amp;gt;''n'' at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Epochfast:''' sets one boundary of an epoch at the cursor latency, but does not open&amp;amp;nbsp;the epoch text box to define a label.&lt;br /&gt;
&lt;br /&gt;
'''Marker:'''&amp;amp;nbsp;&amp;amp;nbsp;sets a marker at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Comment:'''&amp;amp;nbsp;sets a comment at the cursor latency and opens the comment box to enter&amp;amp;nbsp;text.&lt;br /&gt;
&lt;br /&gt;
'''Epoch:'''&amp;amp;nbsp;sets one boundary of an epoch at the cursor latency and opens the epoch&amp;amp;nbsp;text box to enter a label.&lt;br /&gt;
&lt;br /&gt;
'''Artifact:'''&amp;amp;nbsp;sets one boundary of an artifact segment at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Delete:'''&amp;amp;nbsp;&amp;amp;nbsp;deletes a tag at the cursor latency&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Batches and Montages:'''&lt;br /&gt;
&lt;br /&gt;
'''Batch''n''''', where n=1-12: Runs a predefined batch file corresponding to the number ''n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a batch, pressing it will open a ''File Open Dialog'' to select a batch. The setting you have chosen will be retained across BESA Research sessions. Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt;'''&amp;lt;/span&amp;gt; key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will always open the dialog. Hold the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' &amp;lt;ctrl&amp;gt; '''&amp;lt;/span&amp;gt;key with the function key to open the associated batch in the batch edit dialog.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Montage''n''''', where n=1-12: Sets a montage corresponding to the number'' n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a montage, pressing it will generate a message asking you to associate a montage as follows: Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt; '''&amp;lt;/span&amp;gt;key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will remove the current association, and substitute it with the current montage.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default settings after program installation are listed in the online help chapter ''Review / Reference / Controls / Mouse and Keyboard / Keyboard Controls''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== FFT ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [FFT]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define the setup in the Spectral Analysis section of the BESA Research program (FFT window, see the chapter &amp;quot;''Spectral Analysis / FFT''&amp;quot;). Up to 7 frequency bands may be defined. Five are defined by default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''FFTBand1=On'''&amp;amp;nbsp;FFT Bands 1-5 are defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand2=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand3=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand4=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand5=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand6=Off'''&amp;amp;nbsp;FFT Bands 6-7 are not defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand7=Off'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand1=Delta'''&amp;amp;nbsp;Names of the defined bands&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand2=Theta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand3=Alpha'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand4=Beta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand5=Gamma'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand1=RGB(0,0,0)''' &amp;amp;nbsp;Default color of each band&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand2=RGB(0,128,64)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand3=RGB(128,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand4=RGB(255,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand5=RGB(255,128,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand6=RGB(255,192,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand7=RGB(255,255,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand1=1'''&amp;amp;nbsp;Delta from 1-4 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand1=4'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand2=4'''&amp;amp;nbsp;Theta from 4-8 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand2=8'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand3=8''' Alpha from 8-14 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand3=14'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand4=14'''&amp;amp;nbsp;Beta from 14-30 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand4=30'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand5=30'''&amp;amp;nbsp;Gamma from 30-50 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand5=50'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These values are best set from within BESA Research, using the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Options'''&amp;lt;/span&amp;gt; menu in the FFT window (see the chapter &amp;quot;''Spectral Analysis / FFT / FFT Options Menu''&amp;quot;). Current settings are stored after each session and retrieved in the next session.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Printer ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Printer]:'''&lt;br /&gt;
&lt;br /&gt;
'''PrinterMarginPercent=100'''&amp;amp;nbsp;controls size of printout&lt;br /&gt;
&lt;br /&gt;
'''PrinterColors=256'''&amp;amp;nbsp;set to 1/2 for black&amp;amp;white, 0/256 for color printers&lt;br /&gt;
&lt;br /&gt;
'''PrinterLineMode=1'''&amp;amp;nbsp;set to 2 for thicker lines and to save printer memory&lt;br /&gt;
&lt;br /&gt;
'''PrinterMapResolution=1'''&amp;amp;nbsp;set to 2, 3, 4 to save printer memory and increase speed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Calibration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Calibration]:'''&lt;br /&gt;
&lt;br /&gt;
'''AutoCalibration=Off'''&amp;amp;nbsp;On: automatic calibration of signals &amp;gt;= 4 cycles&lt;br /&gt;
&lt;br /&gt;
'''MicrovoltCalibration=50'''&amp;amp;nbsp;peak voltage of calibration signal&lt;br /&gt;
&lt;br /&gt;
If calibration is set to'' On'', the menu item ''Calibration ''will appear in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Process '''&amp;lt;/span&amp;gt;menu. Position your current screen at an epoch containing at least 4 regular cycles of the calibration signal (in all channels!) and select Calibration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Video ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Video]:'''&lt;br /&gt;
&lt;br /&gt;
'''DVCFilePath=C:\DVC\DVPlay.exe''' holds the path to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''DVCCommandLineArguments=/S:3 /M:P /T:M''' &amp;amp;nbsp;arguments to be passed to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetLeft=0.2 &amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetRight=0.8'''&lt;br /&gt;
&lt;br /&gt;
'''CursorMinDistToBorderBeforePaging=0.02'''&lt;br /&gt;
&lt;br /&gt;
'''PageDisplayIfCursorIsBelowVideo=1'''&lt;br /&gt;
&lt;br /&gt;
'''MappingRepetitionRateWithVideoInMS=100''' &amp;amp;nbsp;gives the number of milliseconds between two maps if the mapping window is open while the video is running. If the graphics board encounters problems during the display, this value should be increased.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Mapping ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Mapping]:'''&lt;br /&gt;
&lt;br /&gt;
'''UseBitmapDrawing=Off'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if 3D maps show a strange pattern of black triangular shapes (this is frequently observed with modern Intel On-Board graphics controllers, and is a result of inadequate drivers for Open-GL).&lt;br /&gt;
&lt;br /&gt;
'''Use3DVBlending=Auto'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;Off&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window does not show up properly (this may happen with some older graphics cards).&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window shows a ragged surface boundary.&lt;br /&gt;
&lt;br /&gt;
'''MapSmoothing=0&amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
Set a non-zero value to specify a default map smoothing parameter (normally specified in ''Options/Mapping/Spline Interpolation Smoothing Constant'').&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Matlab ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings for the [Matlab] section:'''&lt;br /&gt;
&lt;br /&gt;
'''Platform=32'''&lt;br /&gt;
&lt;br /&gt;
'''Set Platform=64''' if you want to use the 64-bit version of Matlab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Updates ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This section is not normally required, but the variables here can be altered or defined to determine how BESA Research checks for dongle and program updates.&lt;br /&gt;
&lt;br /&gt;
'''DaysBetweenUpdateChecks=7'''&lt;br /&gt;
&lt;br /&gt;
Sets the number of days between automatic checks for updates. Set the value to 0 to check every time BESA Research is started. Set to -1 to turn off automatic update checks.&lt;br /&gt;
&lt;br /&gt;
'''CheckNetworkDongle=Off'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator: If set to &amp;quot;On&amp;quot;, BESA Research will check the dongle on the network for updates. Otherwise the state of the network dongle will be ignored.&lt;br /&gt;
&lt;br /&gt;
'''LocalPath'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator. This can be set to a path on the local network to the BESA update files, so that users can obtain their updates locally. The path is given to the text file &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''UpdateVersions.txt'''&amp;lt;/span&amp;gt;&amp;quot; (e.g. ''LocalPath=\\transtec-sak\zarascratch\BESA\Updates\UpdateVersions.txt''), which contains further details for the program to obtain its updates. If you want to use this feature, please contact us at [mailto:support@besa.de support@besa.de].&lt;br /&gt;
&lt;br /&gt;
The following variables are not required, because BESA Research has the paths hardwired:&lt;br /&gt;
&lt;br /&gt;
'''FTP1 (also FTP2, FTP3)'''&lt;br /&gt;
&lt;br /&gt;
ftp download server&lt;br /&gt;
&lt;br /&gt;
'''Path1 (also Path2, Path3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to UpdateVersions.txt.&lt;br /&gt;
&lt;br /&gt;
'''HaspPath1 (also HaspPath2, HaspPath3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to HASP (dongle) update files.&lt;br /&gt;
&lt;br /&gt;
'''History'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to general history file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reader-Specific Settings ==&lt;br /&gt;
&lt;br /&gt;
=== BrainLab ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [BrainLab]:'''&lt;br /&gt;
&lt;br /&gt;
'''BrainLabFormat=New''' this entry ensures that the newer BrainLab file format can be read by BESA Research.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bio-Logic ===&lt;br /&gt;
&lt;br /&gt;
'''FileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If there are several Bio-Logic files in a data folder, the reader can check if the files have the same settings. There are three possible options:&lt;br /&gt;
&lt;br /&gt;
* Open a dialog to ask if the files should be treated as a single data set, or as individual, separate files. &lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (2).jpg ‎]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;in this case, use '''FileSelect=Yes''' (this is the default setting) Note that the choice made in the dialog will apply to the file(s) within a BESA Research session. For a given file and session, the dialog will only be opened once, even if the file is closed and reopened.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Always concatenate such files into a single data set. In this case use '''FileSelect=All'''&lt;br /&gt;
* Always open the files as single, separate files. In this case use '''FileSelect=Single'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EDF+/BDF/Trackit ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On'''&lt;br /&gt;
&lt;br /&gt;
Set '''TriggerScan=Off '''to prevent BESA Research from scanning the file for triggers. This is done separately for EDF+, BDF, and Trackit files in sections '''[EDF+], [BDF],''' and '''[Trackit]''' in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EGI ===&lt;br /&gt;
&lt;br /&gt;
The treatment of DIN events can be modified in the''' [EGI] '''section:&lt;br /&gt;
&lt;br /&gt;
'''CombineDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you want to treat DIN events separately, and not generate combined values.&lt;br /&gt;
&lt;br /&gt;
'''SeparateDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you don’t want to treat DIN events separately.&lt;br /&gt;
&lt;br /&gt;
Thus, using the above two parameters, you can choose whether you want to treat DIN events as combined, separate, both, or completely ignored.&lt;br /&gt;
&lt;br /&gt;
'''CombineDINeventsPrefix'''&amp;lt;nowiki&amp;gt;=dinComb&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;This defines the text preceding the number when DIN events are combined. The default is “dinComb”.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Harmonie ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Harmonie] (Stellate Harmonie systems):'''&lt;br /&gt;
&lt;br /&gt;
'''SeizurePreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''SeizurePostEpoch=60'''&amp;amp;nbsp;length of the epoch following a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a push button detection&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPostEpoch=60'''&amp;amp;nbsp;length of the epoch following a push button detection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When BESA Research encounters a seizure detection event or a push button detection event in a Stellate Harmonie file, it automatically sets an epoch around the event, which makes it convenient to view just those epochs for analysis. The length of the epochs preceding and following the events can be adjusted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Neuroscan Keys ===&lt;br /&gt;
&lt;br /&gt;
'''Note that there is a setting &amp;quot;NeuroScanDataNumberOfBits&amp;quot; in the [Defaults] section of BESA.ini that is used for distinguishing the data format of Neuroscan files (16 or 32-bit).'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NeuroScan Keys] (NeuroScan systems):'''&lt;br /&gt;
&lt;br /&gt;
Event1=Movement&amp;amp;nbsp;Text corresponding to keyboard events 1 through 10&lt;br /&gt;
&lt;br /&gt;
Event2=Blink&lt;br /&gt;
&lt;br /&gt;
Event3=Talking&lt;br /&gt;
&lt;br /&gt;
Event4=Cough&lt;br /&gt;
&lt;br /&gt;
Event5=Muscle&lt;br /&gt;
&lt;br /&gt;
Event6=Jaw&lt;br /&gt;
&lt;br /&gt;
Event7=Sneeze&lt;br /&gt;
&lt;br /&gt;
Event8=Swallow&lt;br /&gt;
&lt;br /&gt;
Event9=Eye movement&lt;br /&gt;
&lt;br /&gt;
Event10=Hiccup&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NKT2100 ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NKT2100] (Nihon Kohden EEG 21xx systems):'''&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On''' &amp;amp;nbsp;&amp;amp;nbsp;Set to &amp;quot;Off&amp;quot; to prevent a scan for trigger events.&lt;br /&gt;
&lt;br /&gt;
'''Country=NotKanji'''&amp;amp;nbsp;set to NotKanji for non-Kanji characters else to Kanji&lt;br /&gt;
&lt;br /&gt;
'''KanjiCharSize=16'''&amp;amp;nbsp;Kanji character size&lt;br /&gt;
&lt;br /&gt;
'''KanjiPrinterCharSize=32'''&amp;amp;nbsp;Kanji printer character size&lt;br /&gt;
&lt;br /&gt;
'''EEG_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden EEG-2100 system&lt;br /&gt;
&lt;br /&gt;
'''DC_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden DAE-2100 system&lt;br /&gt;
&lt;br /&gt;
'''QJ_Sensitivity=100''' default sensitivity of Nihon Kohden QJ-403 system&lt;br /&gt;
&lt;br /&gt;
'''Mark_Sensitivity=100'''&amp;amp;nbsp;default sensitivity of EEG-2100 marker channels&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These settings need to be changed only if the manufacturer has specified different gains for your system. Otherwise do not alter these settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Vangard ===&lt;br /&gt;
&lt;br /&gt;
'''AlwaysOpenFileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;Yes&amp;quot; is selected, each time a Vangard file is opened, a dialog box will open, asking for a selection of the segment type to display.&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;No&amp;quot; is selected, the selection dialog is opened whenever a Vangard file is opened for the first time, or if the ''Channel and digitized head surface point information dialog box'' is opened (e.g. with &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''ctrl-L'''&amp;lt;/span&amp;gt; or ''File/Head Surface Points and Sensors/Load Coordinate Files...'' ).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== XLTEK ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=Off '''Set to &amp;quot;On&amp;quot; to scan the data file for trigger events&lt;br /&gt;
&lt;br /&gt;
'''MontageNo=2''' Set to 1 or 2. If two montages for the data file are defined, this variable determines whether the first or the second alternative should be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Research Manual]]&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini</id>
		<title>The Initialization File: BESA.ini</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini"/>
				<updated>2019-03-27T13:23:22Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
'''BESA.ini File'''&lt;br /&gt;
&lt;br /&gt;
BESA Research uses settings provided in the initialization file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; whenever BESA Research is started or a new file is opened for the first time. The format of this file conforms with standard initialization files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.ini&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) of Windows. You may change the settings in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; using &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;NOTEPAD.exe&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; from the ACCESSORIES group, or other plain text editors to adapt BESA Research to '''your own everyday needs'''. The default settings provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; will be used by BESA Research whenever BESA Research or the launch program is started. It is advised that you make a backup copy of &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; before you change the default settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Location of BESA.ini'''&lt;br /&gt;
&lt;br /&gt;
You can place &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; at three possible locations:&lt;br /&gt;
&lt;br /&gt;
# '''Private''': each user on a PC should have his/her own private settings. This is normally in ''My Documents/BESA/Research_6_1''&lt;br /&gt;
# '''Public''': all users should use one setting, but they can edit &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; to change the settings. This is normally in ''Public Documents/BESA/Research_6_1''&lt;br /&gt;
# '''Administrator''': the PC administrator determines the settings. This is normally in ''C:Program Files(x86)/BESA/Research_6_1''&lt;br /&gt;
&lt;br /&gt;
The actual folder names depend on the operating system and the system language.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;When BESA starts, it first looks for the '''administrator''' version of '''BESA.ini'''. If this is not found, it looks for the '''private''' version. If this is not found, it looks for the '''public''' version. If this is not found, internal default values are used.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''There are 13 general sections, and several reader-specific sections:'''&lt;br /&gt;
&lt;br /&gt;
[Defaults] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; General settings (filters, scaling, and various other settings)&lt;br /&gt;
&lt;br /&gt;
[Folders] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Folders used by BESA Research (Examples, Montages, Scripts, Settings,...)&lt;br /&gt;
&lt;br /&gt;
[Electrodes] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Electrode renaming&lt;br /&gt;
&lt;br /&gt;
[Patterns] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp; Rename patterns in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Tags'''&amp;lt;/span&amp;gt; menu&lt;br /&gt;
&lt;br /&gt;
[Artifacts] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;  Settings for artifact correction&lt;br /&gt;
&lt;br /&gt;
[KEYCONTROLS] &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp; Function key definitions&lt;br /&gt;
&lt;br /&gt;
[Search] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp; Default parameters for search&lt;br /&gt;
&lt;br /&gt;
[FFT] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp; Frequency band definitions&lt;br /&gt;
&lt;br /&gt;
[Printer] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;  Printer control&lt;br /&gt;
&lt;br /&gt;
[Calibration] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;  Calibration control&lt;br /&gt;
&lt;br /&gt;
[Video] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Digital video control&lt;br /&gt;
&lt;br /&gt;
[Mapping] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;  Mapping control&lt;br /&gt;
&lt;br /&gt;
[Updates] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Options for program updates&lt;br /&gt;
&lt;br /&gt;
[Matlab] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Settings for the Matlab interface&lt;br /&gt;
&lt;br /&gt;
[fMRI] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Settings for the fMRI arfifact removal&lt;br /&gt;
&lt;br /&gt;
[Montages] &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;         A setting for a default source montage&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Reader-specific settings'''&lt;br /&gt;
&lt;br /&gt;
[BrainLab]&lt;br /&gt;
&lt;br /&gt;
[Bio-Logic]&lt;br /&gt;
&lt;br /&gt;
[EDF+] [BDF] [Trackit]&lt;br /&gt;
&lt;br /&gt;
[EGI]&lt;br /&gt;
&lt;br /&gt;
[Harmonie]&lt;br /&gt;
&lt;br /&gt;
[NeuroScan Keys]&lt;br /&gt;
&lt;br /&gt;
[NKT2100]&lt;br /&gt;
&lt;br /&gt;
[Vangard]&lt;br /&gt;
&lt;br /&gt;
[XLTEK]&lt;br /&gt;
&lt;br /&gt;
== Defaults ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Defaults]:'''&lt;br /&gt;
&lt;br /&gt;
'''DatabaseAllowLocalFiles=Yes''' (If set to &amp;quot;Yes&amp;quot;, BESA Research will write filenames &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.ftg'''&amp;lt;/span&amp;gt;&amp;quot; and &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.fst&amp;quot;'''&amp;lt;/span&amp;gt; to the data folder, saving current file tag and display settings there. If set to &amp;quot;No&amp;quot;, these files are only written to the database. If set to &amp;quot;Yes&amp;quot;, you can copy these files along with the data to a new folder, and display settings and tags will be preserved.)&lt;br /&gt;
&lt;br /&gt;
'''DataBuffering=Off''' (If set to &amp;quot;On&amp;quot;, an internal buffer of length 180 s of data is kept to speed up paging). This can speed up paging, particularly when the data are in a network folder.&lt;br /&gt;
&lt;br /&gt;
'''DisplayedTime=10'''&amp;amp;nbsp;displayed time window [s] on the screen&lt;br /&gt;
&lt;br /&gt;
'''Montage=Org'''&amp;amp;nbsp;montage used when opening a new file&lt;br /&gt;
&lt;br /&gt;
'''ScpScale=50'''&amp;amp;nbsp;scale of scalp channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''PgrScale=500'''&amp;amp;nbsp;scale of polygraphic channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''IcrScale=500'''&amp;amp;nbsp;scale of intracranial channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''MegScale=500'''&amp;amp;nbsp;scale of MEG/marker channels in [fT]&lt;br /&gt;
&lt;br /&gt;
'''BaselineCorrection=On'''&amp;amp;nbsp;baseline correction, do not switch off in AC systems&lt;br /&gt;
&lt;br /&gt;
'''ClippingPercent=&amp;amp;nbsp;'''set from 100 to 200 if you want to clip artifacts in displayed EEG (not used if empty or 0)&lt;br /&gt;
&lt;br /&gt;
'''LowFilter='''&amp;amp;nbsp;low filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''TimeConstant=0.3'''&amp;amp;nbsp;time constant for low filter cutoff frequency [sec] (fixed forward filter, 0.3 sec is equivalent to 0.53 Hz)&lt;br /&gt;
&lt;br /&gt;
'''HighFilter=70'''&amp;amp;nbsp;high filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''NotchFilter=50'''&amp;amp;nbsp;notch filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''NotchFilterStatus=Off'''&amp;amp;nbsp;notch filter is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''BandFilter=12'''&amp;amp;nbsp;band pass filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''BandFilterStatus=Off'''&amp;amp;nbsp;band pass is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''AdditionalChannelFile=''' defines the full path and name of an additional channels montage file, e.g. &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''C:\Program Files\BESA\Research_x\Montages\AdditionalChannels\EKG.sel'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''ColoredWaveforms=On'''&amp;amp;nbsp;scalp waveforms are (not) colored according to region&lt;br /&gt;
&lt;br /&gt;
'''WriteSegmentPath='''&amp;amp;nbsp;defines default path for saving segments/averages.&amp;amp;nbsp;If blank, the path of the current data file is used.&lt;br /&gt;
&lt;br /&gt;
'''ShowSubjectInfo=Off'''&amp;amp;nbsp;subject info will (not) be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following optional parameters are not defined as default and can be set manually in&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''' BESA.ini'''&amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''TextEditor=&amp;quot;Notepad.exe&amp;quot;''' defines the path to your preferred text editor. This will be used when you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Edit'''&amp;lt;/span&amp;gt; button the ''Load Coordinate Files dialog box''.&lt;br /&gt;
&lt;br /&gt;
'''NeuroScanDataNumberOfBits=32''' defines the format of NeuroScan data files ('16' for 16-bit, '32' for 32-bit). If this variable is not specified, BESA uses a heuristic to (try to) decide which of the two data formats is used. This variable overrides the heuristic. If you want to specify the NeuroScan data format for specific files, create a file, named &amp;quot;16bit&amp;quot; or &amp;quot;32bit&amp;quot;, and place it in the data folder.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesForNNChannels=25''' Scale waveforms as if a fixed number of channels were displayed in the window (here: 25). A minimum of 10 channels can be used for the scaling. This parameter is superseded if the parameter &amp;quot;''ScaleAmplitudesFixedPixelHeight&amp;quot;'' is specified.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesFixedPixelHeight=70''' Set the scale bar for amplitudes to a fixed pixel height (here: 70). If this parameter is set in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file, it supersedes the parameter &amp;quot;''ScaleAmplitudesForNNChannels''&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes'''&lt;br /&gt;
&lt;br /&gt;
Check the Menu descriptions for the various definitions of filters, montages etc. For montage preselection, use the labels as visible on the montage push-buttons.&lt;br /&gt;
&lt;br /&gt;
The additional channels file should contain all polygraphic channels (e.g. EKG, EOG, respiratory) that you want to view regularly along with the scalp channels. The entry AdditionalChannelFile must specify the full path pointing to the location of additional channel files (recommended: ''Montages\AdditionalChannels''). If no drive is specified, the installation drive of BESA is used.&lt;br /&gt;
&lt;br /&gt;
If BaselineCorrection is set to 'On', before displaying a screen of data, BESA subtracts for each channel the mean over its displayed time points. This optimizes viewing, because it ensures that the vertical position of each channel is not shifted upward or downward from the channel label at the left of the screen. There are some cases in which you will not want baseline correction, i.e. when the DC level in the data is already correctly defined. This is usually the case, for instance, when reading in files that have been processed by BESA. In this case, BaselineCorrection should be set to 'Off', because otherwise maps and source montage displays may be distorted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Folders ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The [Folders] section defines where BESA Research places its files. In versions 5.1 and earlier, files were located in various subfolders of the program folder. This led to problems if the user did not have administrator rights, e.g. to create or write to a file. For compatibility with Windows 7 and higher versions, many folders are now located by default in locations where normal users can create and write files. If you wish, you can also specify paths in the [Folders] section to use the previous locations. The previous location is given for each variable.'''&lt;br /&gt;
&lt;br /&gt;
These settings allow some flexibility that can be useful if you want to tune BESA Research for use by several users, or on a network. For instance, the Examples and Montages folders might be located on a network disk. For the current defaults, the database, Examples, Montages, and Scripts are set up for use by all users on the PC on which BESA Research is installed. The settings files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.set'''&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.cfg'''&amp;lt;/span&amp;gt;, etc.) are located in private folders so that each user retains his or her own settings.&lt;br /&gt;
&lt;br /&gt;
The '''default''' settings (i.e. settings that BESA Research uses if the entries are omitted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file) are shown for each variable definition.&lt;br /&gt;
&lt;br /&gt;
The folder definitions can use '''placeholders''', labels enclosed by a % sign (e.g. %localapp%), to define paths that vary depending on the language version and on the Windows system. These are defined below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The Variables'''&lt;br /&gt;
&lt;br /&gt;
'''Database=%localapp%''' The path of the BESA Research database folder (used to be ''%progdir%System\DB'' in BESA versions up to 5.1.x). Unless the provided path ends with ''\DB'' or ''\Database'', BESA Research will automatically create a folder named ''Database'' in the provided path.&lt;br /&gt;
&lt;br /&gt;
'''Settings=%privatprog%Settings''' The path of the BESA Research settings folder (used to be ''%progdir%System'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Montages=%publicprog%Montages''' The path of the BESA Research montages folder (used to be ''%progdir%Montages'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Scripts=%publicprog%Scripts''' The path of the BESA Research Scripts folder (used to be ''%progdir%Scripts'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Examples=%publicprog%Examples''' The path of the BESA Research Examples folder (used to be ''%progdir%Examples'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''User=%privatprog%Settings''' The path for user defined settings (used to be ''%progdir%System\Userdirs'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Placeholders'''&lt;br /&gt;
&lt;br /&gt;
The strings enclosed by percent signs (%) are placeholders for the following folders in English-language versions of Windows. Folder names differ depending on Windows version, and for other language settings. BESA Research will substitute the placeholders by the appropriate folder name for the system and the system language:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows 7 and higher (English):''' &lt;br /&gt;
&lt;br /&gt;
'''%localapp%''' = &amp;quot;''C:\Users\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Desktop as &amp;quot;''Desktop\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Users\Public\Public Documents\BESA\Research_6_1''&amp;quot;. This folder is directly accessible from the Windows Explorer under &amp;quot;''Libraries\Documents\Public'' ''Documents\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Libraries\Documents\My'' ''Documents\Research_6_1''&amp;quot; or &amp;quot;''Desktop\[User]\My Documents\BESA\Research_6_1''. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows Vista (English'''): &lt;br /&gt;
&lt;br /&gt;
'''%localapp% '''&amp;lt;nowiki&amp;gt;= &amp;quot;&amp;lt;/nowiki&amp;gt;''C:\Users\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Desktop\[user]\AppData\Local\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Users\Public\Public Documents\BESA\Research_6_1''&amp;quot;. This folder is directly accessible from the Windows Explorer under &amp;quot;''Desktop\Public\Public Documents\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_6_1''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Desktop\[user]\Documents\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\Research_6_1''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%''' &amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows XP (English) (note: not supported by BESA Research 6.1 and higher):''' &lt;br /&gt;
&lt;br /&gt;
'''%localapp% '''&amp;lt;nowiki&amp;gt;= &amp;quot;&amp;lt;/nowiki&amp;gt;''C:\Documents and Settings\[user]\Local Settings\Application Data\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Documents and Settings\All Users\Documents\BESA\Research_6_0&amp;quot;. ''This folder is directly accessible from the Windows Explorer under &amp;quot;''My Computer\Shared'' ''Documents\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Documents and Settings\[user]\My Documents\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''My Documents\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir% &amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows 2000 (English) (note: not supported by BESA Research 6.1 and higher):'''&lt;br /&gt;
&lt;br /&gt;
'''%localapp%''' = &amp;quot;''C:\Documents and Settings\[user]\Local Settings\Application Data\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Documents and Settings\All Users\Documents\BESA\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Documents and Settings\[user]\My Documents\BESA\Research_6_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer '''as &amp;quot;'''''My Documents\BESA\Research_6_0'''''&amp;quot;. '''&lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program'' ''Files\BESA\\Research_6_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%'''&lt;br /&gt;
&lt;br /&gt;
== Electrodes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''This section allows for automatic relabeling of electrodes. For instance, the 10-20 label &amp;quot;T3&amp;quot; can be replaced by the 10-10 convention &amp;quot;T7&amp;quot;.'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Electrodes]:'''&lt;br /&gt;
&lt;br /&gt;
T7=T3&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
T8=T4&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P7=T5&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P8=T6&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
X1=ECG1&amp;amp;nbsp;define X1 channel to be ECG1&lt;br /&gt;
&lt;br /&gt;
X2=ECG2&amp;amp;nbsp;define X2 channel to be ECG2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other examples, depending on your electrode input box definition, could be:&lt;br /&gt;
&lt;br /&gt;
PG1=LO1&amp;amp;nbsp;define X3 as lateral orbital eye electrode left&lt;br /&gt;
&lt;br /&gt;
PG2=LO2&amp;amp;nbsp;bipolar LO1-LO2 defines horizontal EOG (additional channel)&lt;br /&gt;
&lt;br /&gt;
X3=IO1&amp;amp;nbsp;infraorbital, e.g. use with FP1 as additional channel for VEOG&lt;br /&gt;
&lt;br /&gt;
X9=Rsp&amp;amp;nbsp;define X9 channel to be a respiratory channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Relabeling of channel names (as stored in the EEG file header) is helpful to predefine your standard sequence of channels and to avoid the need for reading and/or editing a Channel Configuration file for every EEG file.&lt;br /&gt;
&lt;br /&gt;
'''Note 1''': For polygraphic channels, or if your EKG has been recorded differentially, you should edit and define an ''Additional Channels Montage'' according to your recording channel configuration (e.g. Fp1-IO1=vertical EOG). The Additional Channels group permits to display these channels regularly below the scalp montages with individual scales.&lt;br /&gt;
&lt;br /&gt;
'''Note 2''': EOG channels record both eye and scalp activity. In digital EEG systems, EOG electrodes should be labeled according to their position in the 10-10 system (see &amp;quot;''Electrode Conventions''&amp;quot;). This permits use of these electrodes for mapping and suppression of eye artifacts. The standard definitions above give an example of how to relabel extra channels (X1...X10, PG1, PG2) for the use of EOG, EKG and respiratory (Rsp) channels. Use an ''Additional Channels'' file to define horizontal and vertical EOG channels by using the appropriate electrodes in a bipolar montage (an example is provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''eog-ecg.mtg'''&amp;lt;/span&amp;gt; in ''Montages\AdditionalChannels''). Differentially recorded EKG and respiratory channel can be defined in the same file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Patterns ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Patterns]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define labels for each of the five patterns. The labels are shown* in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Tags'''&amp;lt;/span&amp;gt; menu,&lt;br /&gt;
* in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''TAG push-button'''&amp;lt;/span&amp;gt; popup menu, and&lt;br /&gt;
* when displaying tag info clicking with the right mouse on a tag at the bottom of the EEG or on the event bar.&lt;br /&gt;
&lt;br /&gt;
By default, no labels are defined. Define a label, e.g. for Pattern1 and Pattern2, as in the following example:&lt;br /&gt;
&lt;br /&gt;
Pattern1=Spike&lt;br /&gt;
&lt;br /&gt;
Pattern2=Sharp Wave&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Artifacts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Artifact default settings:'''&lt;br /&gt;
&lt;br /&gt;
See the chapter &amp;quot;''Artifact Correction / Reference / Artifact settings in the BESA.ini file''&amp;quot; in the online help.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Search ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Default settings for pattern search.&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Options ''Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThreshold''' = '''75%'''&lt;br /&gt;
&lt;br /&gt;
'''AmplitudeThreshold = 100 µV'''&lt;br /&gt;
&lt;br /&gt;
'''GradientThreshold = 25'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Average/View'' (SAV) Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''PreCursor = -250 ms'''&lt;br /&gt;
&lt;br /&gt;
'''PostCursor = 150 ms'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassFreq =&amp;amp;nbsp;2 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassSlope = 12 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassType = 0 (0 = zero phase, 1 = forward, 2 = backward'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassFreq = 35 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassSlope = 24 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassType = 0 (0 = zero phase, 1 = forward, 2 = backward)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdNoMarked = 60%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if no channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdOneMarked = 85%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if one channel label is marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdFourMarked = 65%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if between two channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''SelectedViewWindowWidthMultiplier = 300%'''&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearch = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, a File Save dialog will open, to allow to save the search average to a file (as with the SAW function).&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearchCheckBox = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, an additional checkbox &amp;quot;Write after search&amp;quot; is displayed at the bottom of the SAV Dialog, allowing to choose whether or not to write the search average after a search:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (1).gif ‎ ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''PreserveDefaults = Yes'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;No&amp;quot;, the SAV Dialog will open with the same boxes checked as the last time the dialog was opened during the current session.&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, the default frequency, buffer width, selected view after search, and default threshold are always checked when the dialog is opened.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== KeyControls ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the [KeyControls] section you can specify functions that can be allocated to &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function keys'''&amp;lt;/span&amp;gt; or to the ''Del'' key. Specify using the form:&lt;br /&gt;
&lt;br /&gt;
'''Fn=function''' or&lt;br /&gt;
&lt;br /&gt;
'''Del=function'''&lt;br /&gt;
&lt;br /&gt;
where &amp;quot;''n''&amp;quot; is a number between 2 and 12 (F1 is reserved for Help). For example:&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;F2 = Batch1&lt;br /&gt;
&lt;br /&gt;
Possible functions are:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Setting or removing events:'''&lt;br /&gt;
&lt;br /&gt;
'''Pattern''n''''', where ''n''&amp;lt;nowiki&amp;gt;=1-5: Sets the tag number &amp;lt;/nowiki&amp;gt;''n'' at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Epochfast:''' sets one boundary of an epoch at the cursor latency, but does not open&amp;amp;nbsp;the epoch text box to define a label.&lt;br /&gt;
&lt;br /&gt;
'''Marker:'''&amp;amp;nbsp;&amp;amp;nbsp;sets a marker at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Comment:'''&amp;amp;nbsp;sets a comment at the cursor latency and opens the comment box to enter&amp;amp;nbsp;text.&lt;br /&gt;
&lt;br /&gt;
'''Epoch:'''&amp;amp;nbsp;sets one boundary of an epoch at the cursor latency and opens the epoch&amp;amp;nbsp;text box to enter a label.&lt;br /&gt;
&lt;br /&gt;
'''Artifact:'''&amp;amp;nbsp;sets one boundary of an artifact segment at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Delete:'''&amp;amp;nbsp;&amp;amp;nbsp;deletes a tag at the cursor latency&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Batches and Montages:'''&lt;br /&gt;
&lt;br /&gt;
'''Batch''n''''', where n=1-12: Runs a predefined batch file corresponding to the number ''n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a batch, pressing it will open a ''File Open Dialog'' to select a batch. The setting you have chosen will be retained across BESA Research sessions. Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt;'''&amp;lt;/span&amp;gt; key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will always open the dialog. Hold the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' &amp;lt;ctrl&amp;gt; '''&amp;lt;/span&amp;gt;key with the function key to open the associated batch in the batch edit dialog.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Montage''n''''', where n=1-12: Sets a montage corresponding to the number'' n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a montage, pressing it will generate a message asking you to associate a montage as follows: Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt; '''&amp;lt;/span&amp;gt;key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will remove the current association, and substitute it with the current montage.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default settings after program installation are listed in the online help chapter ''Review / Reference / Controls / Mouse and Keyboard / Keyboard Controls''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== FFT ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [FFT]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define the setup in the Spectral Analysis section of the BESA Research program (FFT window, see the chapter &amp;quot;''Spectral Analysis / FFT''&amp;quot;). Up to 7 frequency bands may be defined. Five are defined by default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''FFTBand1=On'''&amp;amp;nbsp;FFT Bands 1-5 are defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand2=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand3=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand4=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand5=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand6=Off'''&amp;amp;nbsp;FFT Bands 6-7 are not defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand7=Off'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand1=Delta'''&amp;amp;nbsp;Names of the defined bands&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand2=Theta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand3=Alpha'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand4=Beta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand5=Gamma'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand1=RGB(0,0,0)''' &amp;amp;nbsp;Default color of each band&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand2=RGB(0,128,64)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand3=RGB(128,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand4=RGB(255,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand5=RGB(255,128,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand6=RGB(255,192,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand7=RGB(255,255,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand1=1'''&amp;amp;nbsp;Delta from 1-4 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand1=4'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand2=4'''&amp;amp;nbsp;Theta from 4-8 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand2=8'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand3=8''' Alpha from 8-14 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand3=14'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand4=14'''&amp;amp;nbsp;Beta from 14-30 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand4=30'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand5=30'''&amp;amp;nbsp;Gamma from 30-50 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand5=50'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These values are best set from within BESA Research, using the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Options'''&amp;lt;/span&amp;gt; menu in the FFT window (see the chapter &amp;quot;''Spectral Analysis / FFT / FFT Options Menu''&amp;quot;). Current settings are stored after each session and retrieved in the next session.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Printer ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Printer]:'''&lt;br /&gt;
&lt;br /&gt;
'''PrinterMarginPercent=100'''&amp;amp;nbsp;controls size of printout&lt;br /&gt;
&lt;br /&gt;
'''PrinterColors=256'''&amp;amp;nbsp;set to 1/2 for black&amp;amp;white, 0/256 for color printers&lt;br /&gt;
&lt;br /&gt;
'''PrinterLineMode=1'''&amp;amp;nbsp;set to 2 for thicker lines and to save printer memory&lt;br /&gt;
&lt;br /&gt;
'''PrinterMapResolution=1'''&amp;amp;nbsp;set to 2, 3, 4 to save printer memory and increase speed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Calibration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Calibration]:'''&lt;br /&gt;
&lt;br /&gt;
'''AutoCalibration=Off'''&amp;amp;nbsp;On: automatic calibration of signals &amp;gt;= 4 cycles&lt;br /&gt;
&lt;br /&gt;
'''MicrovoltCalibration=50'''&amp;amp;nbsp;peak voltage of calibration signal&lt;br /&gt;
&lt;br /&gt;
If calibration is set to'' On'', the menu item ''Calibration ''will appear in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Process '''&amp;lt;/span&amp;gt;menu. Position your current screen at an epoch containing at least 4 regular cycles of the calibration signal (in all channels!) and select Calibration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Video ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Video]:'''&lt;br /&gt;
&lt;br /&gt;
'''DVCFilePath=C:\DVC\DVPlay.exe''' holds the path to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''DVCCommandLineArguments=/S:3 /M:P /T:M''' &amp;amp;nbsp;arguments to be passed to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetLeft=0.2 &amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetRight=0.8'''&lt;br /&gt;
&lt;br /&gt;
'''CursorMinDistToBorderBeforePaging=0.02'''&lt;br /&gt;
&lt;br /&gt;
'''PageDisplayIfCursorIsBelowVideo=1'''&lt;br /&gt;
&lt;br /&gt;
'''MappingRepetitionRateWithVideoInMS=100''' &amp;amp;nbsp;gives the number of milliseconds between two maps if the mapping window is open while the video is running. If the graphics board encounters problems during the display, this value should be increased.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Mapping ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Mapping]:'''&lt;br /&gt;
&lt;br /&gt;
'''UseBitmapDrawing=Off'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if 3D maps show a strange pattern of black triangular shapes (this is frequently observed with modern Intel On-Board graphics controllers, and is a result of inadequate drivers for Open-GL).&lt;br /&gt;
&lt;br /&gt;
'''Use3DVBlending=Auto'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;Off&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window does not show up properly (this may happen with some older graphics cards).&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window shows a ragged surface boundary.&lt;br /&gt;
&lt;br /&gt;
'''MapSmoothing=0&amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
Set a non-zero value to specify a default map smoothing parameter (normally specified in ''Options/Mapping/Spline Interpolation Smoothing Constant'').&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Matlab ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings for the [Matlab] section:'''&lt;br /&gt;
&lt;br /&gt;
'''Platform=32'''&lt;br /&gt;
&lt;br /&gt;
'''Set Platform=64''' if you want to use the 64-bit version of Matlab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Updates ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This section is not normally required, but the variables here can be altered or defined to determine how BESA Research checks for dongle and program updates.&lt;br /&gt;
&lt;br /&gt;
'''DaysBetweenUpdateChecks=7'''&lt;br /&gt;
&lt;br /&gt;
Sets the number of days between automatic checks for updates. Set the value to 0 to check every time BESA Research is started. Set to -1 to turn off automatic update checks.&lt;br /&gt;
&lt;br /&gt;
'''CheckNetworkDongle=Off'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator: If set to &amp;quot;On&amp;quot;, BESA Research will check the dongle on the network for updates. Otherwise the state of the network dongle will be ignored.&lt;br /&gt;
&lt;br /&gt;
'''LocalPath'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator. This can be set to a path on the local network to the BESA update files, so that users can obtain their updates locally. The path is given to the text file &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''UpdateVersions.txt'''&amp;lt;/span&amp;gt;&amp;quot; (e.g. ''LocalPath=\\transtec-sak\zarascratch\BESA\Updates\UpdateVersions.txt''), which contains further details for the program to obtain its updates. If you want to use this feature, please contact us at [mailto:support@besa.de support@besa.de].&lt;br /&gt;
&lt;br /&gt;
The following variables are not required, because BESA Research has the paths hardwired:&lt;br /&gt;
&lt;br /&gt;
'''FTP1 (also FTP2, FTP3)'''&lt;br /&gt;
&lt;br /&gt;
ftp download server&lt;br /&gt;
&lt;br /&gt;
'''Path1 (also Path2, Path3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to UpdateVersions.txt.&lt;br /&gt;
&lt;br /&gt;
'''HaspPath1 (also HaspPath2, HaspPath3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to HASP (dongle) update files.&lt;br /&gt;
&lt;br /&gt;
'''History'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to general history file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reader-Specific Settings ==&lt;br /&gt;
&lt;br /&gt;
=== BrainLab ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [BrainLab]:'''&lt;br /&gt;
&lt;br /&gt;
'''BrainLabFormat=New''' this entry ensures that the newer BrainLab file format can be read by BESA Research.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bio-Logic ===&lt;br /&gt;
&lt;br /&gt;
'''FileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If there are several Bio-Logic files in a data folder, the reader can check if the files have the same settings. There are three possible options:&lt;br /&gt;
&lt;br /&gt;
* Open a dialog to ask if the files should be treated as a single data set, or as individual, separate files. &lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (2).jpg ‎]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;in this case, use '''FileSelect=Yes''' (this is the default setting) Note that the choice made in the dialog will apply to the file(s) within a BESA Research session. For a given file and session, the dialog will only be opened once, even if the file is closed and reopened.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Always concatenate such files into a single data set. In this case use '''FileSelect=All'''&lt;br /&gt;
* Always open the files as single, separate files. In this case use '''FileSelect=Single'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EDF+/BDF/Trackit ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On'''&lt;br /&gt;
&lt;br /&gt;
Set '''TriggerScan=Off '''to prevent BESA Research from scanning the file for triggers. This is done separately for EDF+, BDF, and Trackit files in sections '''[EDF+], [BDF],''' and '''[Trackit]''' in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EGI ===&lt;br /&gt;
&lt;br /&gt;
The treatment of DIN events can be modified in the''' [EGI] '''section:&lt;br /&gt;
&lt;br /&gt;
'''CombineDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you want to treat DIN events separately, and not generate combined values.&lt;br /&gt;
&lt;br /&gt;
'''SeparateDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you don’t want to treat DIN events separately.&lt;br /&gt;
&lt;br /&gt;
Thus, using the above two parameters, you can choose whether you want to treat DIN events as combined, separate, both, or completely ignored.&lt;br /&gt;
&lt;br /&gt;
'''CombineDINeventsPrefix'''&amp;lt;nowiki&amp;gt;=dinComb&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;This defines the text preceding the number when DIN events are combined. The default is “dinComb”.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Harmonie ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Harmonie] (Stellate Harmonie systems):'''&lt;br /&gt;
&lt;br /&gt;
'''SeizurePreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''SeizurePostEpoch=60'''&amp;amp;nbsp;length of the epoch following a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a push button detection&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPostEpoch=60'''&amp;amp;nbsp;length of the epoch following a push button detection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When BESA Research encounters a seizure detection event or a push button detection event in a Stellate Harmonie file, it automatically sets an epoch around the event, which makes it convenient to view just those epochs for analysis. The length of the epochs preceding and following the events can be adjusted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Neuroscan Keys ===&lt;br /&gt;
&lt;br /&gt;
'''Note that there is a setting &amp;quot;NeuroScanDataNumberOfBits&amp;quot; in the [Defaults] section of BESA.ini that is used for distinguishing the data format of Neuroscan files (16 or 32-bit).'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NeuroScan Keys] (NeuroScan systems):'''&lt;br /&gt;
&lt;br /&gt;
Event1=Movement&amp;amp;nbsp;Text corresponding to keyboard events 1 through 10&lt;br /&gt;
&lt;br /&gt;
Event2=Blink&lt;br /&gt;
&lt;br /&gt;
Event3=Talking&lt;br /&gt;
&lt;br /&gt;
Event4=Cough&lt;br /&gt;
&lt;br /&gt;
Event5=Muscle&lt;br /&gt;
&lt;br /&gt;
Event6=Jaw&lt;br /&gt;
&lt;br /&gt;
Event7=Sneeze&lt;br /&gt;
&lt;br /&gt;
Event8=Swallow&lt;br /&gt;
&lt;br /&gt;
Event9=Eye movement&lt;br /&gt;
&lt;br /&gt;
Event10=Hiccup&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NKT2100 ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NKT2100] (Nihon Kohden EEG 21xx systems):'''&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On''' &amp;amp;nbsp;&amp;amp;nbsp;Set to &amp;quot;Off&amp;quot; to prevent a scan for trigger events.&lt;br /&gt;
&lt;br /&gt;
'''Country=NotKanji'''&amp;amp;nbsp;set to NotKanji for non-Kanji characters else to Kanji&lt;br /&gt;
&lt;br /&gt;
'''KanjiCharSize=16'''&amp;amp;nbsp;Kanji character size&lt;br /&gt;
&lt;br /&gt;
'''KanjiPrinterCharSize=32'''&amp;amp;nbsp;Kanji printer character size&lt;br /&gt;
&lt;br /&gt;
'''EEG_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden EEG-2100 system&lt;br /&gt;
&lt;br /&gt;
'''DC_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden DAE-2100 system&lt;br /&gt;
&lt;br /&gt;
'''QJ_Sensitivity=100''' default sensitivity of Nihon Kohden QJ-403 system&lt;br /&gt;
&lt;br /&gt;
'''Mark_Sensitivity=100'''&amp;amp;nbsp;default sensitivity of EEG-2100 marker channels&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These settings need to be changed only if the manufacturer has specified different gains for your system. Otherwise do not alter these settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Vangard ===&lt;br /&gt;
&lt;br /&gt;
'''AlwaysOpenFileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;Yes&amp;quot; is selected, each time a Vangard file is opened, a dialog box will open, asking for a selection of the segment type to display.&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;No&amp;quot; is selected, the selection dialog is opened whenever a Vangard file is opened for the first time, or if the ''Channel and digitized head surface point information dialog box'' is opened (e.g. with &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''ctrl-L'''&amp;lt;/span&amp;gt; or ''File/Head Surface Points and Sensors/Load Coordinate Files...'' ).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== XLTEK ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=Off '''Set to &amp;quot;On&amp;quot; to scan the data file for trigger events&lt;br /&gt;
&lt;br /&gt;
'''MontageNo=2''' Set to 1 or 2. If two montages for the data file are defined, this variable determines whether the first or the second alternative should be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Research Manual]]&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=MATLAB_Interface</id>
		<title>MATLAB Interface</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=MATLAB_Interface"/>
				<updated>2019-03-27T13:07:45Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
= MATLAB Interface =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
BESA Research has menu items ''&amp;quot;Send to MATLAB...&amp;quot;'' at various locations that allow to send data as structures to Matlab. After sending the data, BESA Research starts a Matlab script that can be used to start further data analysis on the data structure. These scripts, located in the ''Scripts\Matlab'' folder in the BESA Research installation, can be edited by the user to perform further data analysis in Matlab. For example, if &amp;quot;''Send to MATLAB''&amp;quot; is selected in the ''File Export Dialog'', a data structure &amp;quot;''besa_channels''&amp;quot; will be created. After filling the structure, the script &amp;quot;''besa_action_channels.m''&amp;quot; will be started.&lt;br /&gt;
&lt;br /&gt;
All the Matlab export functions are batchable. Thus, a complete data analysis can be performed, in which BESA Research does the preprocessing, and passes the data on to Matlab for a statistical analysis of the results.&lt;br /&gt;
&lt;br /&gt;
An example for the application of the MATLAB interface is demonstrated in the BESA Research Tutorial on Batch Scripts, Multiple Subjects &amp;amp; Conditions, MATLAB-Interface. You can download this tutorial from our website at www.besa.de/downloads/training-material/tutorials/.&lt;br /&gt;
&lt;br /&gt;
Some MATLAB scripts that can be used in conjunction with the BESA Research MATLAB interface are also available on our website at www.besa.de/downloads/matlab/. You are invited to send your own scripts for data analysis or to submit any questions or feedback here: www.besa.de/support/support-page/.&lt;br /&gt;
&lt;br /&gt;
'''Important! Please follow the instructions in the “''Installation” ''chapter! Then read the “''How the interface'' ''works” ''section to get started.'''&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
In order for the BESA-Matlab interface to work, please follow the instructions below. If you start BESA Research, and the file menu does not display the &amp;quot;''Send to MATLAB''&amp;quot; item, the interface is not installed correctly!&lt;br /&gt;
&lt;br /&gt;
'''1'''. '''Matlab must be installed.'''&lt;br /&gt;
&lt;br /&gt;
For step 2 (required for MATLAB versions 2009b and over), we need to know whether the 32-bit or 64-bit version of Matlab is installed. We also need to know the path to the Matlab installation (e.g. ''c:\Program'' ''Files\MATLAB\2009b\)''.&lt;br /&gt;
&lt;br /&gt;
'''2'''. '''PATH environment variable:'''&lt;br /&gt;
&lt;br /&gt;
For versions 2009b and over, make sure that the path to the Win32 or Win64 folder in the Matlab installation to the PATH environment variable is defined:&lt;br /&gt;
&lt;br /&gt;
* The path for the 64-bit version for Matlab 2009b is typically ''c:\Program'' ''Files\MATLAB\2009b\bin\win64''. For the 32-bit version, the path is typically ''c:\Program Files\MATLAB\2009b\bin\win32''.&lt;br /&gt;
* Open the &amp;quot;System Properties&amp;quot; Dialog by holding down the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Windows'''&amp;lt;/span&amp;gt; key and pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Pause '''&amp;lt;/span&amp;gt;button. In XP, the dialog is opened directly. In Vista and Window 7, the key combination opens the System Display. Click on the link &amp;quot;Change Settings&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Matlab (1) .gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Select the &amp;quot;Advanced&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Matlab (2) .gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Press the &amp;quot;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Environment Variables'''&amp;lt;/span&amp;gt;&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Matlab (3) .gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Under &amp;quot;System variables&amp;quot; click on the &amp;quot;Path&amp;quot; variable and press &amp;quot;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Edit'''&amp;lt;/span&amp;gt;&amp;quot;. In the resulting dialog, enter a semicolon (;) at the end of the path string, and add the path after the semicolon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Matlab (4) .gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Press &amp;quot;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;&amp;quot; to close and save the path variable. Press &amp;quot;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;&amp;quot; to close the &amp;quot;System Properties&amp;quot; Dialog.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''3. Additional configuration''' (only required after a change of your MATLAB configuration after installation of BESA Research):&lt;br /&gt;
&lt;br /&gt;
During the installation process of BESA Research, the program &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;''SetupBesaMatlabInterface.exe''&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;quot; in the BESA Research root folder was executed. Run this program again when your MATLAB configuration has changed, e.g. after updating your MATLAB version.&lt;br /&gt;
&lt;br /&gt;
In the dropdown list, select the Matlab version that you are using. &lt;br /&gt;
&lt;br /&gt;
This program does two operations: &lt;br /&gt;
&lt;br /&gt;
1. it copies the appropriate interface Dll to the BESA Research root folder and renames it to &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BesaMatlab.dll'''&amp;lt;/span&amp;gt;&amp;quot; (32-bit version) or &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BesaMatlab64.dll'''&amp;lt;/span&amp;gt;&amp;quot; (64-bit version), and &lt;br /&gt;
&lt;br /&gt;
2. if you are using a 64-bit version it creates an entry in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; as follows:&lt;br /&gt;
&lt;br /&gt;
[Matlab]&lt;br /&gt;
&lt;br /&gt;
Platform=64&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''4. Testing:'''&lt;br /&gt;
&lt;br /&gt;
Start BESA Research and check if ''Send to MATLAB ''is displayed in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' File '''&amp;lt;/span&amp;gt;menu. If it is, the interface is set up correctly. (Note that the item will be grayed if no file is open in BESA Research.)&lt;br /&gt;
&lt;br /&gt;
Test the interface: open a data file, mark a short (e.g. 1 s) time range, and select ''File / Send to Matlab'' to open the ''Export Dialog'':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Matlab1.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Matlab window should open, and BESA Research will display a progress bar:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Matlab (6) .gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the window closes, open the Matlab window, and type &amp;quot;'''&amp;lt;code&amp;gt;workspace&amp;lt;/code&amp;gt;'''&amp;quot; to open the workspace window, or &amp;quot;'''&amp;lt;code&amp;gt;desktop&amp;lt;/code&amp;gt;'''&amp;quot; to open the standard Matlab desktop.&lt;br /&gt;
&lt;br /&gt;
Examine the &amp;quot;'''&amp;lt;code&amp;gt;besa_channels&amp;lt;/code&amp;gt;'''&amp;quot; variable, which contains the data for the marked data segment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Matlab (7) .gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Troubleshooting if the interface is not working after the above steps'''&lt;br /&gt;
&lt;br /&gt;
If the ''File / Send to MATLAB''... menu item is not shown, this means that either the path (step 2 above) is not defined properly, or that the interface Dll &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BesaMatlab.dll'''&amp;lt;/span&amp;gt; or &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BesaMatlab64.dll'''&amp;lt;/span&amp;gt; is not compatible with the currently installed version of Matlab.&lt;br /&gt;
&lt;br /&gt;
If the path is correct, then please contact our support team here: [http://besa.de/contact/support/form.php http://besa.de/contact/support/form.php], including the following information:&lt;br /&gt;
* Which Matlab version are you using?&lt;br /&gt;
* Specify also if you are using the 32-bit or 64-bit version.&lt;br /&gt;
&lt;br /&gt;
== How the interface works ==&lt;br /&gt;
&lt;br /&gt;
'''The interface'''&lt;br /&gt;
&lt;br /&gt;
The interface uses libraries supplied by Matlab. Their descriptions can be found in Matlab Help under the keywords &amp;quot;Engine Library&amp;quot;. The Matlab libraries are incorporated into the interface Dll (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BesaMatlab.dll'''&amp;lt;/span&amp;gt; or &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BesaMatlab64.dll'''&amp;lt;/span&amp;gt;) that provides the interface between BESA Research and Matlab. As newer versions of Matlab are released, it may be necessary to generate new versions of the dll to match the new library versions.&lt;br /&gt;
&lt;br /&gt;
'''Matlab automation window'''&lt;br /&gt;
&lt;br /&gt;
On the first call to one of the Matlab routines, the Matlab Automation Window is opened. This is not the same as the window that is normally opened when Matlab is started directly in Windows (the window can also be opened by typing &amp;quot;Matlab /automation&amp;quot; from the command line). From the Automation Window one can run normal Matlab scripts. It is also possible to type &amp;quot;'''&amp;lt;code&amp;gt;desktop&amp;lt;/code&amp;gt;'''&amp;quot; in the Automation Window to open the standard Matlab desktop. All variables that have been sent from BESA Research are then visible there.&lt;br /&gt;
&lt;br /&gt;
'''BESA Research &amp;quot;Send to MATLAB&amp;quot; commands and scripts'''&lt;br /&gt;
&lt;br /&gt;
Send to MATLAB commands generate data structures that differ depending on the type of data that are sent. After each export the corresponding script is executed. They are available at the following locations in BESA Research:&lt;br /&gt;
* From the Main program window (&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''File'''&amp;lt;/span&amp;gt; Menu), as part of the ''Export Dialog''. Structure name ''besa_channels''. Script name ''besa_action_channels.m''.&lt;br /&gt;
* From the FFT analysis (&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''File'''&amp;lt;/span&amp;gt; Menu). Structure name ''besa_fft''. Script name ''besa_action_fft.m''.&lt;br /&gt;
* From Combine Conditions (''Run Scripts Tab''), in the export of peaks and mean amplitudes. Structure name ''besa_peak''. Script name ''besa_action_peak.m''.&lt;br /&gt;
* From Source Analysis (&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''File'''&amp;lt;/span&amp;gt; Menu), for exporting source waveforms (''besa_sourcewaveforms''), source models (''besa_sourcemodel''), data, residual and model waveforms (''besa_sa_channels''), and 3D images (''besa_image''). Script names ''besa_action_sourcewaveforms.m'', ''besa_action_sourcemodel.m'', ''besa_action_sa_channels.m'', and ''besa_action_image.m''.&lt;br /&gt;
* From Time-Frequency/Coherence Analysis (&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''File'''&amp;lt;/span&amp;gt; Menu). Structure names ''besa_tfc'', and ''besa_tfc_trials'' (for single-trial time-frequency data). Script names ''besa_action_tfc.m'' and ''besa_action_tfc_trials.m''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Some additional scripts are used for specific data types. For example, when exporting raw data, two scripts, ''besa_helper_channels_event.m'' and ''besa_helper_channels_continuousdata.m'' are used to collect events from each data block and to combine the exported data blocks into a single matrix.&lt;br /&gt;
&lt;br /&gt;
'''Command script path'''&lt;br /&gt;
&lt;br /&gt;
When the commands are executed, BESA Research automatically executes an &amp;quot;addpath&amp;quot; command in Matlab to add the ''Scripts\MATLAB'' folder (in Windows 7 typically ''C:\Users\Public\Public'' ''Documents\BESA\Research_6_0\Scripts\MATLAB'') and its first-level subfolders to the Matlab search path.&lt;br /&gt;
&lt;br /&gt;
'''Units'''&lt;br /&gt;
&lt;br /&gt;
Unless otherwise stated, distances are in meters, times are in seconds, and the head-frame (fiducial-based) coordinate system is used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Research Manual]]&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:Matlab1.png</id>
		<title>File:Matlab1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:Matlab1.png"/>
				<updated>2019-03-27T13:07:02Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=MATLAB_Interface</id>
		<title>MATLAB Interface</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=MATLAB_Interface"/>
				<updated>2019-03-27T13:03:06Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
= MATLAB Interface =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
BESA Research has menu items ''&amp;quot;Send to MATLAB...&amp;quot;'' at various locations that allow to send data as structures to Matlab. After sending the data, BESA Research starts a Matlab script that can be used to start further data analysis on the data structure. These scripts, located in the ''Scripts\Matlab'' folder in the BESA Research installation, can be edited by the user to perform further data analysis in Matlab. For example, if &amp;quot;''Send to MATLAB''&amp;quot; is selected in the ''File Export Dialog'', a data structure &amp;quot;''besa_channels''&amp;quot; will be created. After filling the structure, the script &amp;quot;''besa_action_channels.m''&amp;quot; will be started.&lt;br /&gt;
&lt;br /&gt;
All the Matlab export functions are batchable. Thus, a complete data analysis can be performed, in which BESA Research does the preprocessing, and passes the data on to Matlab for a statistical analysis of the results.&lt;br /&gt;
&lt;br /&gt;
An example for the application of the MATLAB interface is demonstrated in the BESA Research Tutorial on Batch Scripts, Multiple Subjects &amp;amp; Conditions, MATLAB-Interface. You can download this tutorial from our website at www.besa.de/downloads/training-material/tutorials/.&lt;br /&gt;
&lt;br /&gt;
Some MATLAB scripts that can be used in conjunction with the BESA Research MATLAB interface are also available on our website at www.besa.de/downloads/matlab/. You are invited to send your own scripts for data analysis or to submit any questions or feedback here: www.besa.de/support/support-page/.&lt;br /&gt;
&lt;br /&gt;
'''Important! Please follow the instructions in the “''Installation” ''chapter! Then read the “''How the interface'' ''works” ''section to get started.'''&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
In order for the BESA-Matlab interface to work, please follow the instructions below. If you start BESA Research, and the file menu does not display the &amp;quot;''Send to MATLAB''&amp;quot; item, the interface is not installed correctly!&lt;br /&gt;
&lt;br /&gt;
'''1'''. '''Matlab must be installed.'''&lt;br /&gt;
&lt;br /&gt;
For step 2 (required for MATLAB versions 2009b and over), we need to know whether the 32-bit or 64-bit version of Matlab is installed. We also need to know the path to the Matlab installation (e.g. ''c:\Program'' ''Files\MATLAB\2009b\)''.&lt;br /&gt;
&lt;br /&gt;
'''2'''. '''PATH environment variable:'''&lt;br /&gt;
&lt;br /&gt;
For versions 2009b and over, make sure that the path to the Win32 or Win64 folder in the Matlab installation to the PATH environment variable is defined:&lt;br /&gt;
&lt;br /&gt;
* The path for the 64-bit version for Matlab 2009b is typically ''c:\Program'' ''Files\MATLAB\2009b\bin\win64''. For the 32-bit version, the path is typically ''c:\Program Files\MATLAB\2009b\bin\win32''.&lt;br /&gt;
* Open the &amp;quot;System Properties&amp;quot; Dialog by holding down the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Windows'''&amp;lt;/span&amp;gt; key and pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Pause '''&amp;lt;/span&amp;gt;button. In XP, the dialog is opened directly. In Vista and Window 7, the key combination opens the System Display. Click on the link &amp;quot;Change Settings&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Matlab (1) .gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Select the &amp;quot;Advanced&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Matlab (2) .gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Press the &amp;quot;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Environment Variables'''&amp;lt;/span&amp;gt;&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Matlab (3) .gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Under &amp;quot;System variables&amp;quot; click on the &amp;quot;Path&amp;quot; variable and press &amp;quot;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Edit'''&amp;lt;/span&amp;gt;&amp;quot;. In the resulting dialog, enter a semicolon (;) at the end of the path string, and add the path after the semicolon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Matlab (4) .gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Press &amp;quot;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;&amp;quot; to close and save the path variable. Press &amp;quot;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;&amp;quot; to close the &amp;quot;System Properties&amp;quot; Dialog.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''3. Additional configuration''' (only required after a change of your MATLAB configuration after installation of BESA Research):&lt;br /&gt;
&lt;br /&gt;
During the installation process of BESA Research, the program &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;''SetupBesaMatlabInterface.exe''&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;quot; in the BESA Research root folder was executed. Run this program again when your MATLAB configuration has changed, e.g. after updating your MATLAB version.&lt;br /&gt;
&lt;br /&gt;
In the dropdown list, select the Matlab version that you are using. &lt;br /&gt;
&lt;br /&gt;
This program does two operations: &lt;br /&gt;
&lt;br /&gt;
1. it copies the appropriate interface Dll to the BESA Research root folder and renames it to &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BesaMatlab.dll'''&amp;lt;/span&amp;gt;&amp;quot; (32-bit version) or &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BesaMatlab64.dll'''&amp;lt;/span&amp;gt;&amp;quot; (64-bit version), and &lt;br /&gt;
&lt;br /&gt;
2. if you are using a 64-bit version it creates an entry in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; as follows:&lt;br /&gt;
&lt;br /&gt;
[Matlab]&lt;br /&gt;
&lt;br /&gt;
Platform=64&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''4. Testing:'''&lt;br /&gt;
&lt;br /&gt;
Start BESA Research and check if ''Send to MATLAB ''is displayed in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' File '''&amp;lt;/span&amp;gt;menu. If it is, the interface is set up correctly. (Note that the item will be grayed if no file is open in BESA Research.)&lt;br /&gt;
&lt;br /&gt;
Test the interface: open a data file, mark a short (e.g. 1 s) time range, and select ''File / Send to Matlab'' to open the ''Export Dialog'':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Matlab (5) .gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Matlab window should open, and BESA Research will display a progress bar:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Matlab (6) .gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the window closes, open the Matlab window, and type &amp;quot;'''&amp;lt;code&amp;gt;workspace&amp;lt;/code&amp;gt;'''&amp;quot; to open the workspace window, or &amp;quot;'''&amp;lt;code&amp;gt;desktop&amp;lt;/code&amp;gt;'''&amp;quot; to open the standard Matlab desktop.&lt;br /&gt;
&lt;br /&gt;
Examine the &amp;quot;'''&amp;lt;code&amp;gt;besa_channels&amp;lt;/code&amp;gt;'''&amp;quot; variable, which contains the data for the marked data segment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Matlab (7) .gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Troubleshooting if the interface is not working after the above steps'''&lt;br /&gt;
&lt;br /&gt;
If the ''File / Send to MATLAB''... menu item is not shown, this means that either the path (step 2 above) is not defined properly, or that the interface Dll &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BesaMatlab.dll'''&amp;lt;/span&amp;gt; or &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BesaMatlab64.dll'''&amp;lt;/span&amp;gt; is not compatible with the currently installed version of Matlab.&lt;br /&gt;
&lt;br /&gt;
If the path is correct, then please contact our support team here: [http://besa.de/contact/support/form.php http://besa.de/contact/support/form.php], including the following information:&lt;br /&gt;
* Which Matlab version are you using?&lt;br /&gt;
* Specify also if you are using the 32-bit or 64-bit version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How the interface works ==&lt;br /&gt;
&lt;br /&gt;
'''The interface'''&lt;br /&gt;
&lt;br /&gt;
The interface uses libraries supplied by Matlab. Their descriptions can be found in Matlab Help under the keywords &amp;quot;Engine Library&amp;quot;. The Matlab libraries are incorporated into the interface Dll (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BesaMatlab.dll'''&amp;lt;/span&amp;gt; or &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BesaMatlab64.dll'''&amp;lt;/span&amp;gt;) that provides the interface between BESA Research and Matlab. As newer versions of Matlab are released, it may be necessary to generate new versions of the dll to match the new library versions.&lt;br /&gt;
&lt;br /&gt;
'''Matlab automation window'''&lt;br /&gt;
&lt;br /&gt;
On the first call to one of the Matlab routines, the Matlab Automation Window is opened. This is not the same as the window that is normally opened when Matlab is started directly in Windows (the window can also be opened by typing &amp;quot;Matlab /automation&amp;quot; from the command line). From the Automation Window one can run normal Matlab scripts. It is also possible to type &amp;quot;'''&amp;lt;code&amp;gt;desktop&amp;lt;/code&amp;gt;'''&amp;quot; in the Automation Window to open the standard Matlab desktop. All variables that have been sent from BESA Research are then visible there.&lt;br /&gt;
&lt;br /&gt;
'''BESA Research &amp;quot;Send to MATLAB&amp;quot; commands and scripts'''&lt;br /&gt;
&lt;br /&gt;
Send to MATLAB commands generate data structures that differ depending on the type of data that are sent. After each export the corresponding script is executed. They are available at the following locations in BESA Research:&lt;br /&gt;
* From the Main program window (&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''File'''&amp;lt;/span&amp;gt; Menu), as part of the ''Export Dialog''. Structure name ''besa_channels''. Script name ''besa_action_channels.m''.&lt;br /&gt;
* From the FFT analysis (&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''File'''&amp;lt;/span&amp;gt; Menu). Structure name ''besa_fft''. Script name ''besa_action_fft.m''.&lt;br /&gt;
* From Combine Conditions (''Run Scripts Tab''), in the export of peaks and mean amplitudes. Structure name ''besa_peak''. Script name ''besa_action_peak.m''.&lt;br /&gt;
* From Source Analysis (&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''File'''&amp;lt;/span&amp;gt; Menu), for exporting source waveforms (''besa_sourcewaveforms''), source models (''besa_sourcemodel''), data, residual and model waveforms (''besa_sa_channels''), and 3D images (''besa_image''). Script names ''besa_action_sourcewaveforms.m'', ''besa_action_sourcemodel.m'', ''besa_action_sa_channels.m'', and ''besa_action_image.m''.&lt;br /&gt;
* From Time-Frequency/Coherence Analysis (&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''File'''&amp;lt;/span&amp;gt; Menu). Structure names ''besa_tfc'', and ''besa_tfc_trials'' (for single-trial time-frequency data). Script names ''besa_action_tfc.m'' and ''besa_action_tfc_trials.m''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Some additional scripts are used for specific data types. For example, when exporting raw data, two scripts, ''besa_helper_channels_event.m'' and ''besa_helper_channels_continuousdata.m'' are used to collect events from each data block and to combine the exported data blocks into a single matrix.&lt;br /&gt;
&lt;br /&gt;
'''Command script path'''&lt;br /&gt;
&lt;br /&gt;
When the commands are executed, BESA Research automatically executes an &amp;quot;addpath&amp;quot; command in Matlab to add the ''Scripts\MATLAB'' folder (in Windows 7 typically ''C:\Users\Public\Public'' ''Documents\BESA\Research_6_0\Scripts\MATLAB'') and its first-level subfolders to the Matlab search path.&lt;br /&gt;
&lt;br /&gt;
'''Units'''&lt;br /&gt;
&lt;br /&gt;
Unless otherwise stated, distances are in meters, times are in seconds, and the head-frame (fiducial-based) coordinate system is used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Research Manual]]&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Export</id>
		<title>Export</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Export"/>
				<updated>2019-03-27T12:59:49Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Export Dialog */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Exporting files from BESA ==&lt;br /&gt;
&lt;br /&gt;
Data can be exported from BESA Research in the following formats:&lt;br /&gt;
* BESA's own binary format (compressed or uncompressed)&lt;br /&gt;
* ASCII multiplexed&lt;br /&gt;
* ASCII vectorized (short files only)&lt;br /&gt;
* EDF+&lt;br /&gt;
* simple floating point matrix (e.g. for exporting data to Matlab)&lt;br /&gt;
* Send the data directly to Matlab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can export&lt;br /&gt;
* The entire data set or between markers&lt;br /&gt;
* The currently marked segment&lt;br /&gt;
* Epochs around triggers&lt;br /&gt;
* Standard deviations from binary average files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.fsg'''&amp;lt;/span&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Export is allowed to various montages:&lt;br /&gt;
* filtered or unfiltered data&lt;br /&gt;
* original data&lt;br /&gt;
* current montage (including artifact correction if applied)&lt;br /&gt;
* standard 81-electrode montage.&lt;br /&gt;
&lt;br /&gt;
On export, you can choose to change the sampling rate.&lt;br /&gt;
&lt;br /&gt;
If exporting to BESA's binary format, you can optionally append the data to a preexisting data set, if sampling rates and the number of channels match. Therefore, please use the Combine Conditions module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Export is started either&lt;br /&gt;
* select File / Export...&lt;br /&gt;
* press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''WrS '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* In both cases, you are taken to the ''Export Dialog''.&lt;br /&gt;
* for Send to Matlab only: select File / Send To MATLAB... This also opens the Export Dialog, but only the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Send To Matlab radio'''&amp;lt;/span&amp;gt; button is enabled as target format in the dialog.&lt;br /&gt;
&lt;br /&gt;
== Export Dialog ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Export1.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The dialog is started when you select'' File / Export...'' or press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''WrS'''&amp;lt;/span&amp;gt; button or select '''Write Segment''' in the right click context menu when a segment has been highlighted.&lt;br /&gt;
&lt;br /&gt;
The dialog is divided into four sections. Please read the following chapters for more details:&lt;br /&gt;
* ''Data to export''. Describes which data are to be exported.&lt;br /&gt;
* ''Montage and Filters.'' Which montage is to be exported, and whether or not filters are used.&lt;br /&gt;
* ''Target data formats''. Specify the format of the exported data.&lt;br /&gt;
* ''Resampling.'' Specify a new sampling rate in the exported data.&lt;br /&gt;
&lt;br /&gt;
== Type of data to export ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Export (2).gif ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The types of data to export are:&lt;br /&gt;
* '''Continuous data'''. The whole data set or the data between markers are exported.&lt;br /&gt;
* '''Marked segment.''' If a segment of data is highlighted, this radio button is enabled. Select Marked segment to export just this segment.&lt;br /&gt;
* '''Epochs around triggers.''' Export data segments around triggers. If this item is selected, the two buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Interval'''&amp;lt;/span&amp;gt;... and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Triggers'''&amp;lt;/span&amp;gt;... are enabled. They allow to select the interval (cf ''Edit / Default'' ''Block Epoch''...), and choose among the available triggers (see ''Edit / Trigger Values''...). Note that the default block epoch values are persistent across BESA Research sessions. The trigger selection is not persistent!&lt;br /&gt;
* '''Standard Deviations (from fsg file only).''' If the average file was generated using the BESA Research ERP module, standard deviations are saved in the file. Check this item to export these values to an ASCII file.&lt;br /&gt;
&lt;br /&gt;
'''Between markers.''' If there are markers in the file, and '''Marked segment''' is not selected, selecting '''Between markers''' will result in the export of data between markers relative to the current position in the file (as defined by the middle of the current display), either:&lt;br /&gt;
* if there is no previous marker, from the beginning of the file to the next marker, or&lt;br /&gt;
* from the previous to the next marker, or&lt;br /&gt;
* if there is no next marker, from the previous marker to the end of the file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Montages and Filters ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Export (3).gif ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The data can be exported either&lt;br /&gt;
&lt;br /&gt;
* '''Original data.''' The data are exported using the original montage&lt;br /&gt;
&lt;br /&gt;
* '''Current montage.''' The currently selected montage is exported. If extra channels, e.g. selected channels or artifact waveforms are displayed, these are exported as well. Notes:&lt;br /&gt;
** When 'Current Montage' is selected, no auxiliary files are exported. When re-importing the data into BESA Research, all channels will be defined as polygraphic.&lt;br /&gt;
** If the current data is artifact-corrected, the artifact-corrected data will be exported when 'Current Montage' is selected.&lt;br /&gt;
&lt;br /&gt;
* '''Standard 81 electrode locations.''' EEG data are interpolated to a set of 81 electrodes on a standard head (average over 24 mainly Caucasian heads).&lt;br /&gt;
&lt;br /&gt;
* Export can be performed either with or without the currently selected filters. Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Filters'''&amp;lt;/span&amp;gt;... button to change the current filter settings (see also ''Filters / Edit Filter Settings''...).&lt;br /&gt;
&lt;br /&gt;
== Target Data Formats ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Export (4).gif ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following target formats are available:&lt;br /&gt;
&lt;br /&gt;
* '''BESA binary''': Data are saved with the extension &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.foc'''&amp;lt;/span&amp;gt;&amp;quot; or &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.fsg'''&amp;lt;/span&amp;gt;&amp;quot;. You can select whether to export with no compression (recommended for averages), or compressed (recommended for raw data). Note that compression can result in loss of resolution in averaged data. See ''Data Compression.''&lt;br /&gt;
&lt;br /&gt;
* '''ASCII multiplexed''': Data are normally saved as text with the extension &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.mul'''&amp;lt;/span&amp;gt;&amp;quot;. See ''ASCII multiplexed format'' for a description of the data format. If the type of data to export is '''Epochs''' '''around triggers''', one file is exported for each trigger, and the file extension is a number, starting with &amp;quot;.000&amp;quot;, and continuing &amp;quot;.001&amp;quot;, &amp;quot;.002&amp;quot;, etc.&lt;br /&gt;
&lt;br /&gt;
* '''ASCII vectorized''': Data are normally saved as text with the extension &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.avr'''&amp;lt;/span&amp;gt;&amp;quot;. See ''ASCII Multiplexed format ''for a description of the data format. If the type of data to export is '''Epochs around triggers''', one file is exported for each trigger, and the file extension is a number, starting with &amp;quot;.000&amp;quot;, and continuing &amp;quot;.001&amp;quot;, &amp;quot;.002&amp;quot;, etc. The data are not average referenced before saving. They will only be average referenced if the data are exported using an average referenced '''Current montage'''. You are only allowed to export small segments in vectorized format. If you have selected '''Continuous data''', this item will be disabled if the data are longer than 20 s in duration.&lt;br /&gt;
&lt;br /&gt;
* '''European Data Format (EDF+)''': Data are saved with the extension &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.edf'''&amp;lt;/span&amp;gt;&amp;quot;. Export of '''Epochs around triggers''' to EDF+ is currently not possible.&lt;br /&gt;
&lt;br /&gt;
* '''Simple binary matrix''': Data are written to a floating point binary matrix with the extension &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.dat'''&amp;lt;/span&amp;gt;&amp;quot;. The matrix has the dimension no of samples x no of channels. In addition, a header file with the extension &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.generic'''&amp;lt;/span&amp;gt;&amp;quot; is also written. The header file is a text file contains information about the number of channels, sampling rate, and number of samples. These follow the specifications of the Generic File Format that can also be read by BESA Research if the Generic Reader is installed. This data format can be useful as a means of transferring data to other programs (e.g. '''MATLAB''') in a relatively compact form. If the type of data to export is '''Epochs around triggers''', the epochs are concatenated in the same target file. In this case, the header file contains a line specifying the number of epochs (cf. ''Generic File Format''). The number of samples in each epoch is the total number of samples, divided by the number of epochs.&lt;br /&gt;
&lt;br /&gt;
* '''Send To MATLAB''': The data are exported directly to MATLAB into the struct variable &amp;lt;code&amp;gt;besa_channels&amp;lt;/code&amp;gt;. For more information on the data transfer from BESA Research to MATLAB, please refer to the Help chapter [[MATLAB_Interface | MATLAB interface]].&lt;br /&gt;
&lt;br /&gt;
== Resampling ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Export (5).gif ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Check '''Resample data''' to change the sampling rate of the target data. The edit box is enabled, and you specify a sampling rate.&lt;br /&gt;
&lt;br /&gt;
Data are resampled using splines. Thus, the new sampling rate is not limited to fractions or multiples of the original rate.&lt;br /&gt;
&lt;br /&gt;
Note that if '''Resample data''' is not checked, the sampling rate of the source data is displayed.&lt;br /&gt;
&lt;br /&gt;
'''Resampling and aliasing'''. If you want to reduce the sampling rate it is important to avoid aliasing! It is recommended that a low-pass filter with a boundary frequency of not more than 1/3 of the original sampling rate is used. When you set a new sampling rate, BESA Research checks the current filter settings. If export without filters is selected, or if the current low-pass filter is set to a value that is higher than 1/3 of the sampling rate, BESA Research sets the filter, and opens a message box with a warning:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Export (6).gif ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You may adjust the filters by pressing the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Filter'''&amp;lt;/span&amp;gt; button, e.g. if the original data were already recorded with a sufficiently low low-pass filter setting, so that additional filtering is unnecessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Data Compression ==&lt;br /&gt;
&lt;br /&gt;
When exporting to BESA binary format, you can compress the data to save space. Here we describe properties and pitfalls of the compression algorithm.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How compression works'''&lt;br /&gt;
&lt;br /&gt;
The compression algorithm works on two principals:&lt;br /&gt;
* '''Data resolution can often be reduced without losing data quality.''' For instance, a data resolution of 0.1 µV or higher is unnecessary for viewing normal EEG -- 0.5 µV or 1 µV steps are sufficient. Similarly for event-related potentials: the raw data only require a resolution of 0.5 µV or 1 µV to achieve a much higher resolution after averaging.&lt;br /&gt;
* '''Differences between successive data samples''' on a signal are generally much smaller than '''the absolute values of the data'''. Thus, one start value, and then a series of subsequent differences can be stored in a much smaller space than an equivalent series of absolute values. A consequence of this principle is that smoothed signals (with high frequencies removed) can be compressed into a smaller space than signals with a lot of high frequency noise.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compression parameter'''&lt;br /&gt;
&lt;br /&gt;
The parameter you need to choose is the data resolution, or step size. Steps smaller than this size will no longer be represented in the compressed data. The BESA Research Export Module allows the following steps for the compression of EEG signals:&lt;br /&gt;
&lt;br /&gt;
0.1 µV, 0.2 µV, 0.5 µV, 1 µV&lt;br /&gt;
&lt;br /&gt;
For raw EEG data, we recommend using a step size of 0.5 µV.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Different compression parameters for different data types (pitfalls!)'''&lt;br /&gt;
&lt;br /&gt;
As described above, the step sizes make sense for EEG signals. For other types of data, other step sizes make more sense. In addition, a polygraphic signal can have the same order of signal magnitude as the EEG (e.g. an EOG or EKG signal), but it might have a completely different scale, e.g. a voice signal, recorded in mV or V. To help accommodate different orders of signal magnitude, BESA Research applies the following rules:&lt;br /&gt;
* '''MEG data:''' Step sizes (in units of fT) are 20 x the step size in µV. Thus, a step size of 0.5 µV will lead to a step size of 10 fT for MEG data.&lt;br /&gt;
* '''Polygraphic and ICR data''': The step size depends on the current amplitude scaling factor in BESA Research. A multiplication factor is used that is the current scaling factor, divided by 100. Thus, if the scale is set to 1 V, the factor is 10 mV. If you have chosen an EEG step size of 0.5 µV, the resulting step size will be 10 x 0.5 = 5 mV.&lt;br /&gt;
&lt;br /&gt;
A pitfall in compression is that if the current amplitude scaling for polygraphic or ICR data does not display the signal sensibly, compression may lead to complete loss of the signal. Note that this only applies to polygraphic and ICR channel types.&lt;br /&gt;
&lt;br /&gt;
* '''Averages:''' We recommend that averaged ERPs are not compressed. Since the signals are generally much smaller than the raw data, compression will lead to unacceptable loss of data resolution.&lt;br /&gt;
&lt;br /&gt;
[[Category:Research Manual]]&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:Export1.png</id>
		<title>File:Export1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:Export1.png"/>
				<updated>2019-03-27T12:59:23Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Export</id>
		<title>Export</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Export"/>
				<updated>2019-03-27T12:57:36Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Exporting files from BESA */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Exporting files from BESA ==&lt;br /&gt;
&lt;br /&gt;
Data can be exported from BESA Research in the following formats:&lt;br /&gt;
* BESA's own binary format (compressed or uncompressed)&lt;br /&gt;
* ASCII multiplexed&lt;br /&gt;
* ASCII vectorized (short files only)&lt;br /&gt;
* EDF+&lt;br /&gt;
* simple floating point matrix (e.g. for exporting data to Matlab)&lt;br /&gt;
* Send the data directly to Matlab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can export&lt;br /&gt;
* The entire data set or between markers&lt;br /&gt;
* The currently marked segment&lt;br /&gt;
* Epochs around triggers&lt;br /&gt;
* Standard deviations from binary average files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.fsg'''&amp;lt;/span&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Export is allowed to various montages:&lt;br /&gt;
* filtered or unfiltered data&lt;br /&gt;
* original data&lt;br /&gt;
* current montage (including artifact correction if applied)&lt;br /&gt;
* standard 81-electrode montage.&lt;br /&gt;
&lt;br /&gt;
On export, you can choose to change the sampling rate.&lt;br /&gt;
&lt;br /&gt;
If exporting to BESA's binary format, you can optionally append the data to a preexisting data set, if sampling rates and the number of channels match. Therefore, please use the Combine Conditions module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Export is started either&lt;br /&gt;
* select File / Export...&lt;br /&gt;
* press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''WrS '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* In both cases, you are taken to the ''Export Dialog''.&lt;br /&gt;
* for Send to Matlab only: select File / Send To MATLAB... This also opens the Export Dialog, but only the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Send To Matlab radio'''&amp;lt;/span&amp;gt; button is enabled as target format in the dialog.&lt;br /&gt;
&lt;br /&gt;
== Export Dialog ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Export (1).gif ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The dialog is started when you select'' File / Export...'' or press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''WrS'''&amp;lt;/span&amp;gt; button or select '''Write Segment''' in the right click context menu when a segment has been highlighted.&lt;br /&gt;
&lt;br /&gt;
The dialog is divided into four sections. Please read the following chapters for more details:&lt;br /&gt;
* ''Data to export''. Describes which data are to be exported.&lt;br /&gt;
* ''Montage and Filters.'' Which montage is to be exported, and whether or not filters are used.&lt;br /&gt;
* ''Target data formats''. Specify the format of the exported data.&lt;br /&gt;
* ''Resampling.'' Specify a new sampling rate in the exported data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Type of data to export ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Export (2).gif ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The types of data to export are:&lt;br /&gt;
* '''Continuous data'''. The whole data set or the data between markers are exported.&lt;br /&gt;
* '''Marked segment.''' If a segment of data is highlighted, this radio button is enabled. Select Marked segment to export just this segment.&lt;br /&gt;
* '''Epochs around triggers.''' Export data segments around triggers. If this item is selected, the two buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Interval'''&amp;lt;/span&amp;gt;... and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Triggers'''&amp;lt;/span&amp;gt;... are enabled. They allow to select the interval (cf ''Edit / Default'' ''Block Epoch''...), and choose among the available triggers (see ''Edit / Trigger Values''...). Note that the default block epoch values are persistent across BESA Research sessions. The trigger selection is not persistent!&lt;br /&gt;
* '''Standard Deviations (from fsg file only).''' If the average file was generated using the BESA Research ERP module, standard deviations are saved in the file. Check this item to export these values to an ASCII file.&lt;br /&gt;
&lt;br /&gt;
'''Between markers.''' If there are markers in the file, and '''Marked segment''' is not selected, selecting '''Between markers''' will result in the export of data between markers relative to the current position in the file (as defined by the middle of the current display), either:&lt;br /&gt;
* if there is no previous marker, from the beginning of the file to the next marker, or&lt;br /&gt;
* from the previous to the next marker, or&lt;br /&gt;
* if there is no next marker, from the previous marker to the end of the file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Montages and Filters ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Export (3).gif ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The data can be exported either&lt;br /&gt;
&lt;br /&gt;
* '''Original data.''' The data are exported using the original montage&lt;br /&gt;
&lt;br /&gt;
* '''Current montage.''' The currently selected montage is exported. If extra channels, e.g. selected channels or artifact waveforms are displayed, these are exported as well. Notes:&lt;br /&gt;
** When 'Current Montage' is selected, no auxiliary files are exported. When re-importing the data into BESA Research, all channels will be defined as polygraphic.&lt;br /&gt;
** If the current data is artifact-corrected, the artifact-corrected data will be exported when 'Current Montage' is selected.&lt;br /&gt;
&lt;br /&gt;
* '''Standard 81 electrode locations.''' EEG data are interpolated to a set of 81 electrodes on a standard head (average over 24 mainly Caucasian heads).&lt;br /&gt;
&lt;br /&gt;
* Export can be performed either with or without the currently selected filters. Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Filters'''&amp;lt;/span&amp;gt;... button to change the current filter settings (see also ''Filters / Edit Filter Settings''...).&lt;br /&gt;
&lt;br /&gt;
== Target Data Formats ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Export (4).gif ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following target formats are available:&lt;br /&gt;
&lt;br /&gt;
* '''BESA binary''': Data are saved with the extension &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.foc'''&amp;lt;/span&amp;gt;&amp;quot; or &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.fsg'''&amp;lt;/span&amp;gt;&amp;quot;. You can select whether to export with no compression (recommended for averages), or compressed (recommended for raw data). Note that compression can result in loss of resolution in averaged data. See ''Data Compression.''&lt;br /&gt;
&lt;br /&gt;
* '''ASCII multiplexed''': Data are normally saved as text with the extension &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.mul'''&amp;lt;/span&amp;gt;&amp;quot;. See ''ASCII multiplexed format'' for a description of the data format. If the type of data to export is '''Epochs''' '''around triggers''', one file is exported for each trigger, and the file extension is a number, starting with &amp;quot;.000&amp;quot;, and continuing &amp;quot;.001&amp;quot;, &amp;quot;.002&amp;quot;, etc.&lt;br /&gt;
&lt;br /&gt;
* '''ASCII vectorized''': Data are normally saved as text with the extension &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.avr'''&amp;lt;/span&amp;gt;&amp;quot;. See ''ASCII Multiplexed format ''for a description of the data format. If the type of data to export is '''Epochs around triggers''', one file is exported for each trigger, and the file extension is a number, starting with &amp;quot;.000&amp;quot;, and continuing &amp;quot;.001&amp;quot;, &amp;quot;.002&amp;quot;, etc. The data are not average referenced before saving. They will only be average referenced if the data are exported using an average referenced '''Current montage'''. You are only allowed to export small segments in vectorized format. If you have selected '''Continuous data''', this item will be disabled if the data are longer than 20 s in duration.&lt;br /&gt;
&lt;br /&gt;
* '''European Data Format (EDF+)''': Data are saved with the extension &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.edf'''&amp;lt;/span&amp;gt;&amp;quot;. Export of '''Epochs around triggers''' to EDF+ is currently not possible.&lt;br /&gt;
&lt;br /&gt;
* '''Simple binary matrix''': Data are written to a floating point binary matrix with the extension &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.dat'''&amp;lt;/span&amp;gt;&amp;quot;. The matrix has the dimension no of samples x no of channels. In addition, a header file with the extension &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.generic'''&amp;lt;/span&amp;gt;&amp;quot; is also written. The header file is a text file contains information about the number of channels, sampling rate, and number of samples. These follow the specifications of the Generic File Format that can also be read by BESA Research if the Generic Reader is installed. This data format can be useful as a means of transferring data to other programs (e.g. '''MATLAB''') in a relatively compact form. If the type of data to export is '''Epochs around triggers''', the epochs are concatenated in the same target file. In this case, the header file contains a line specifying the number of epochs (cf. ''Generic File Format''). The number of samples in each epoch is the total number of samples, divided by the number of epochs.&lt;br /&gt;
&lt;br /&gt;
* '''Send To MATLAB''': The data are exported directly to MATLAB into the struct variable &amp;lt;code&amp;gt;besa_channels&amp;lt;/code&amp;gt;. For more information on the data transfer from BESA Research to MATLAB, please refer to the Help chapter [[MATLAB_Interface | MATLAB interface]].&lt;br /&gt;
&lt;br /&gt;
== Resampling ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Export (5).gif ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Check '''Resample data''' to change the sampling rate of the target data. The edit box is enabled, and you specify a sampling rate.&lt;br /&gt;
&lt;br /&gt;
Data are resampled using splines. Thus, the new sampling rate is not limited to fractions or multiples of the original rate.&lt;br /&gt;
&lt;br /&gt;
Note that if '''Resample data''' is not checked, the sampling rate of the source data is displayed.&lt;br /&gt;
&lt;br /&gt;
'''Resampling and aliasing'''. If you want to reduce the sampling rate it is important to avoid aliasing! It is recommended that a low-pass filter with a boundary frequency of not more than 1/3 of the original sampling rate is used. When you set a new sampling rate, BESA Research checks the current filter settings. If export without filters is selected, or if the current low-pass filter is set to a value that is higher than 1/3 of the sampling rate, BESA Research sets the filter, and opens a message box with a warning:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Export (6).gif ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You may adjust the filters by pressing the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Filter'''&amp;lt;/span&amp;gt; button, e.g. if the original data were already recorded with a sufficiently low low-pass filter setting, so that additional filtering is unnecessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Data Compression ==&lt;br /&gt;
&lt;br /&gt;
When exporting to BESA binary format, you can compress the data to save space. Here we describe properties and pitfalls of the compression algorithm.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How compression works'''&lt;br /&gt;
&lt;br /&gt;
The compression algorithm works on two principals:&lt;br /&gt;
* '''Data resolution can often be reduced without losing data quality.''' For instance, a data resolution of 0.1 µV or higher is unnecessary for viewing normal EEG -- 0.5 µV or 1 µV steps are sufficient. Similarly for event-related potentials: the raw data only require a resolution of 0.5 µV or 1 µV to achieve a much higher resolution after averaging.&lt;br /&gt;
* '''Differences between successive data samples''' on a signal are generally much smaller than '''the absolute values of the data'''. Thus, one start value, and then a series of subsequent differences can be stored in a much smaller space than an equivalent series of absolute values. A consequence of this principle is that smoothed signals (with high frequencies removed) can be compressed into a smaller space than signals with a lot of high frequency noise.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Compression parameter'''&lt;br /&gt;
&lt;br /&gt;
The parameter you need to choose is the data resolution, or step size. Steps smaller than this size will no longer be represented in the compressed data. The BESA Research Export Module allows the following steps for the compression of EEG signals:&lt;br /&gt;
&lt;br /&gt;
0.1 µV, 0.2 µV, 0.5 µV, 1 µV&lt;br /&gt;
&lt;br /&gt;
For raw EEG data, we recommend using a step size of 0.5 µV.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Different compression parameters for different data types (pitfalls!)'''&lt;br /&gt;
&lt;br /&gt;
As described above, the step sizes make sense for EEG signals. For other types of data, other step sizes make more sense. In addition, a polygraphic signal can have the same order of signal magnitude as the EEG (e.g. an EOG or EKG signal), but it might have a completely different scale, e.g. a voice signal, recorded in mV or V. To help accommodate different orders of signal magnitude, BESA Research applies the following rules:&lt;br /&gt;
* '''MEG data:''' Step sizes (in units of fT) are 20 x the step size in µV. Thus, a step size of 0.5 µV will lead to a step size of 10 fT for MEG data.&lt;br /&gt;
* '''Polygraphic and ICR data''': The step size depends on the current amplitude scaling factor in BESA Research. A multiplication factor is used that is the current scaling factor, divided by 100. Thus, if the scale is set to 1 V, the factor is 10 mV. If you have chosen an EEG step size of 0.5 µV, the resulting step size will be 10 x 0.5 = 5 mV.&lt;br /&gt;
&lt;br /&gt;
A pitfall in compression is that if the current amplitude scaling for polygraphic or ICR data does not display the signal sensibly, compression may lead to complete loss of the signal. Note that this only applies to polygraphic and ICR channel types.&lt;br /&gt;
&lt;br /&gt;
* '''Averages:''' We recommend that averaged ERPs are not compressed. Since the signals are generally much smaller than the raw data, compression will lead to unacceptable loss of data resolution.&lt;br /&gt;
&lt;br /&gt;
[[Category:Research Manual]]&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Integration_with_MRI_and_fMRI</id>
		<title>Integration with MRI and fMRI</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Integration_with_MRI_and_fMRI"/>
				<updated>2019-03-27T12:54:15Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* How to Generate a Brain Surface Mesh */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher and BESA MRI&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- = BESA Research Integration with MRI and fMRI = --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Both for developing and evaluating dipole source models of EEG or MEG activity, it is useful to have access to structural MRI or fMRI data.&lt;br /&gt;
&lt;br /&gt;
The BESA MRI software allows to preprocess structural MRI data so that the individual anatomical information contained in the MRI can be utilized in BESA Research. BESA MRI makes it possible ...&lt;br /&gt;
* ... to align the EEG and MEG sensors with the structural MRI data.&lt;br /&gt;
* ... to read and display the aligned, individual Talairach structural MRIs directly in the BESA Research Source Analysis module. In this way, source analysis results can be presented on top of the aligned MRIs, which allows us to evaluate the anatomical regions to which the reconstructed sources may correspond.&lt;br /&gt;
* ... to use an individual, realistically shaped FEM head model for source analysis in BESA Research. FEM head models take into account the individual volume conduction properties of the subject's head derived from the structural MRI data. This allows for more accurate source analysis (Yvert 1997, Lanfer 2012).&lt;br /&gt;
&lt;br /&gt;
To offer an easy integration with fMRI data we have, in collaboration with Rainer Goebel, optimized the interface between BESA Research and BrainVoyagerQX. &lt;br /&gt;
&lt;br /&gt;
With these tools, we can ...&lt;br /&gt;
* ... use fMRI BOLD regions or MRI structures to initialize dipole models.&lt;br /&gt;
* ... visualize dipoles from BESA Research models together with the structural MRI in BrainVoyager in order to evaluate the regions to which the dipoles may correspond.&lt;br /&gt;
* ... combine the localization advantages of (f)MRI with the high temporal resolution of EEG and MEG, for instance by using (f)MRI to place the sources, and the source waveforms of BESA Research to provide feedback about the time course of the source activity.&lt;br /&gt;
* ... overlay source analysis results obtained in BESA Research with fMRI data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' For simpler coregistration, we recommend to use BrainVoyagerQX rather than the older BrainVoyager, but BESA Research will work with both program versions.&lt;br /&gt;
&lt;br /&gt;
The chapters below describe the steps necessary to integrate the MRI and fMRI data with BESA Research. Detailed instructions on (f)MRI import and processing in Brain Voyager is provided by the '''BrainVoyager Getting Started Guide''' that can be downloaded from the Brain Innovation website (https://www.brainvoyager.com/downloads/downloads.html).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Aligning Coordinate Systems'''&lt;br /&gt;
&lt;br /&gt;
* For a given BESA data set, the electrode and other head surface points need to be aligned to the MRI coordinates.&lt;br /&gt;
* The basic steps necessary to align the EEG electrode locations, the MEG sensors and the MRI are described in Section “[[Integration_with_MRI_and_fMRI#Setting_Up_Coregistration_Using_BrainVoyager|How Coregistration is done]]”.&lt;br /&gt;
* Detailed instructions on how to align EEG / MEG and MRI data using BESA MRI can be found in the coregistration quick guide which is available on the BESA homepage ((http://www.besa.de/downloads/quick-guides/).&lt;br /&gt;
* Detailed instructions on how to align EEG / MEG and MRI data using BrainVoyager are described in Section “[[Integration_with_MRI_and_fMRI#Setting_Up_Coregistration_Using_BrainVoyager|How To set up Coregistration between BESA and BrainVoyager]]”.&lt;br /&gt;
* In BESA Research, all necessary settings with regard to the alignment are made in the [[Integration_with_MRI_and_fMRI#The_Coregistration_Dialog|Coregistration Dialog]].&lt;br /&gt;
* Requirements with respect to the MRI data for a good coregistration can be found in Section “''MRI Requirements for Good Coregistration”.''&lt;br /&gt;
* Requirements with respect to EEG and MEG data for a good coregistration can be found in Section “''EEG/MEG Data Requirements for Good Coregistration”.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Generating an individual, realistically shaped FEM head model'''&lt;br /&gt;
&lt;br /&gt;
* The generation of a FEM head model that can be used in BESA Research is done in BESA MRI as an additional step following the EEG / MEG to MRI coregistration.&lt;br /&gt;
* Detailed instructions on how to generate the FEM head model can be found in the coregistration quick guide which is available on the BESA homepage (http://www.besa.de/downloads/quick-guides/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Co-locating dipoles and MRI locations'''&lt;br /&gt;
&lt;br /&gt;
* After aligning the EEG / MEG and the MRI data it is possible to co-locate dipoles and MRI locations. This means, it is possible to visualize the dipoles and to specify the dipole parameters in the MRI coordinate system.&lt;br /&gt;
* “[[Integration_with_MRI_and_fMRI#Co-locating_Sources_and_MRI_in_the_BESA_Research_Source_Module|How to Co-locate sources and MRI in the BESA Research Source Module]]&amp;quot; describes how in the BESA Research Source Analysis module dipoles can directly be visualized in the space of the individual MRI.&lt;br /&gt;
* “[[Integration_with_MRI_and_fMRI#Send_a_Dipole_from_BESA_Research_to_BrainVoyager|How to Send a Dipole from BESA Research to BrainVoyager]]” describes how to send a source model from BESA Research to BrainVoyager for further inspection.&lt;br /&gt;
* “[[Integration_with_MRI_and_fMRI#Define_a_Dipole_in_BESA_Research_at_a_Location_Defined_in_the_MRI|How to Define a Dipole in BESA Research at a Location Defined in the MRI]]” describes how to insert a dipole at a location defined in the MRI in BrainVoyager.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''References'''&lt;br /&gt;
&lt;br /&gt;
Lanfer, B., I. Paul-Jordanov, M. Scherg, and C. H. Wolters. “Influence of Interior Cerebrospinal Fluid Compartments on EEG Source Analysis.” In Proceedings BMT 2012, Vol. 57. Jena: De Gruyter, 2012. doi:10.1515/bmt-2012-4020.&lt;br /&gt;
&lt;br /&gt;
Yvert, B., O. Bertrand, M. Thévenet, J. F. Echallier, and J. Pernier. “A Systematic Evaluation of the Spherical Model Accuracy in EEG Dipole Localization.” Electroencephalography and Clinical Neurophysiology 102, no. 5 (May 1997): 452–59. doi:16/S0921-884X(97)96611-X.&lt;br /&gt;
&lt;br /&gt;
== How Coregistration is done ==&lt;br /&gt;
&lt;br /&gt;
This section outlines the basic steps to coregister the EEG / MEG data to an individual MRI. These steps are necessary to load an individual MRI into BESA Research.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''What happens:'''&lt;br /&gt;
&lt;br /&gt;
* EEG / MEG sensor locations and the MRI data are defined in different coordinate systems. Setting up coregistration is the process of aligning the two coordinate systems.&lt;br /&gt;
* BESA Research uses the ''Coregistration Dialog'' to coordinate the alignment procedure.&lt;br /&gt;
* Alignment is done with the ''AC-PC-transformed MRI''.&lt;br /&gt;
* BESA Research displays the ''Talairach-transformed MRI'' in the source analysis module.&lt;br /&gt;
* A coregistration file (with the extension &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.sfh'''&amp;lt;/span&amp;gt;&amp;quot;) is used to mediate between BESA Research and BESA MRI (or BrainVoyagerQX):&lt;br /&gt;
* BESA Research writes the coregistration file which contains the coordinates of head surface points (fiducials, electrodes, other digitized surface points).&lt;br /&gt;
* The coordinates are read into BESA MRI (or BrainVoyager), and aligned with the AC-PC-transformed MRI. The alignment information is then appended to the ''coregistration file''. The names of the AC-PC MRI (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.vmr&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) and the surface mesh (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.srf&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;), and, if available, the Talairach transformation, are also appended.&lt;br /&gt;
* BESA Research reads the coregistration file and appends the name of the Talairach-transformed MRI and head surface. If a brain surface has been created, this is also appended.&lt;br /&gt;
* Subsequently, BESA Research reads the coregistration file automatically when loading the data file.&lt;br /&gt;
* In the BESA Research source module, the individual MRI is displayed instead of the standard MRI. Talairach coordinates of dipoles are the &amp;quot;real&amp;quot; Talairach coordinates as defined, e.g., in BrainVoyager.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The steps you have to take (once for each data set):'''&lt;br /&gt;
&lt;br /&gt;
* From the BESA Research ''Coregistration Dialog'', write a coregistration file. Switch to BESA MRI (or BrainVoyagerQX).&lt;br /&gt;
* If BESA MRI is used follow the steps in the coregistration quickguide which is available on the BESA homepage (http://www.besa.de/downloads/quick-guides/).&lt;br /&gt;
* If BrainVoyager is used follow the steps in Section “''How to set up coregistration between BESA and BrainVoyager”.''&lt;br /&gt;
* Back in BESA Research, reload the altered '''coregistration file'''. When using BESA MRI the file names of the generated surface and volume data files will be automatically filled in. When using BrainVoyager file names are only filled in automatically when the files are named according to the file naming conventions. Otherwise, file names have to be set manually.&lt;br /&gt;
* The coregistration file is now associated with the data file in the BESA Research database and will be used automatically the next time the file is opened in BESA Research. If the database entry is cleared, and the data are reloaded, you must make sure the coregistration file is also loaded (either using the ''Coregistration Dialog'' or the ''Channel and digitized head surface point information Dialog'').&lt;br /&gt;
&lt;br /&gt;
==  Alignment of BESA and MRICoordinate Systems  ==&lt;br /&gt;
&lt;br /&gt;
=== The Coregistration Dialog ===&lt;br /&gt;
&lt;br /&gt;
The dialog is opened either from the ''Channel and digitized head surface point information'' (&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-L'''&amp;lt;/span&amp;gt;) ''dialog ''by pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Edit/Coreg'''&amp;lt;/span&amp;gt; button, or from the main menu (&amp;quot;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''File/MRI&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Coregistration...'''&amp;lt;/span&amp;gt;&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the coregistration dialog is invoked from an EEG data set in which no digitized electrode coordinates are available (i.e. standard electrode positions located on a sphere are assumed), BESA Research presents a warning message, saying that for MRI coregistration realistic electrode coordinates produce better results. BESA Research has a list of such realistic standard coordinates (i.e. located on a pre-defined standard head surface) for various electrodes available in file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Default.sfp'''&amp;lt;/span&amp;gt;, which is located in the Standard Electrode folder. If all electrodes in the dataset are listed in this file, a dialog window suggests to apply this file to the current data set, i.e. to switch from standard sphere coordinates to the standard realistic electrode coordinates in file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Default.sfp'''&amp;lt;/span&amp;gt;. If the suggestion is accepted, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''default.sfp'''&amp;lt;/span&amp;gt; is assigned to the dataset (see Channel and digitized head surface point information (&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-L'''&amp;lt;/span&amp;gt;) dialog).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The Dialog:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (1).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Select MRI prog'''&amp;lt;/span&amp;gt; button to select your preferred MRI program. The current choice is between ''BESA MRI.exe'' and ''BrainVoyagerQX.exe''. The path to the MRI program is saved (in ''System\BESA.set'') and will be remembered by BESA Research. The top right hand button (now showing '''BESA MRI''') shows the current selection.&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''BESA MRI'''&amp;lt;/span&amp;gt; button to start the process of aligning the BESA Research and MRI coordinate systems. If no coregistration (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.sfh&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) file is defined in the dialog (empty ''Surface coregistration file edit box''), BESA Research will first prompt for a file name. We recommend saving this file to the folder where the MRIs are kept. The MRI program will then be started. When you return to the ''Coregistration Dialog'', BESA Research checks if the ''Coregistration File'' has changed. If so, the dialog is updated with the new information.&lt;br /&gt;
* Press the top &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Browse... '''&amp;lt;/span&amp;gt;button to select a preexisting ''Coregistration File''.&lt;br /&gt;
* The entries in the edit boxes below show the files that will be used in the BESA Research Source Analysis module when the individual MRI is loaded. When using BESA MRI the file names will be automatically filled in. If you are using BrainVoagerQX and you are following our (and the BrainVoyagerQX) recommended naming conventions for files, and the files exist, then the names will be filled in automatically after you have completed the alignment procedure in BrainVoyagerQX. Otherwise you may have to browse for the files.&lt;br /&gt;
* Below the edit boxes the FEM field states whether all necessary information for the individual FEM head model were found in the coregistration file. If the field says ''Individual FEM for EEG'' ''defined!'' then all necessary data was found and the individual FEM EEG head model can be used in the BESA Research Source Analysis module. A similar message indicates whether the FEM MEG head model is available.&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;Note that the MRI and the surfaces are Talairach-transformed! Alignment between BESA Research and the individual MRI is done with the MRI transformed to the AC-PC coordinate system, but the BESA Research Source Analysis module uses the Talairach-transformed image data and surfaces.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting Up Coregistration Using BrainVoyager ===&lt;br /&gt;
&lt;br /&gt;
It is assumed that you know how to load an MRI as a 3D data set into BrainVoyagerQX, and how to clean the image so that regions outside the head are black. We also assume knowledge of how to create AC-PC-aligned and Talairach-transformed MRIs.&lt;br /&gt;
&lt;br /&gt;
Perform the following steps:&lt;br /&gt;
&lt;br /&gt;
* BESA Research. Start the ''Coregistration Dialog''. Export the Coregistration File (head surface points) from your data by pressing the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''BrainVoyagerQX'''&amp;lt;/span&amp;gt; button in the dialog. Save the file to the directory where your MRI is located. BrainVoyagerQX is started.&lt;br /&gt;
* BrainVoyagerQX. Load the MRI corresponding to the EEG/MEG data. For optimal performance, the MRI should be cleaned so that regions outside the head are black. Prepare an AC-PC-transformed MRI and a Talairach MRI. For each, generate a surface mesh. Save these files following our recommended naming conventions (see chapter “[[Integration_with_MRI_and_fMRI#MRI_file_Name_Conventions|MRI File Name Conventions]]”). Save the Talairach coordinate file (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.tal&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;). If these steps have already been performed, load the ACPC MRI and load the ACPC mesh. If you want to generate a brain surface mesh, see chapter “[[Integration_with_MRI_and_fMRI#How_to_Generate_a_Brain_Surface_Mesh|How to Generate a Brain Surface Mesh]]”.&lt;br /&gt;
* BrainVoyagerQX. Load the Coregistration File (''EEG-MEG BESA/Load Surface Points''). The points will be displayed, but they are not aligned to the head:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (2).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. Define fiducial points on the head surface. Right click on the 3D head display and select the ''Fiducials Dialog'' in the drop-down menu:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (3).gif ‎]]  [[Image:MRI Integration (4).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. Rotate the head (by holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Shift '''&amp;lt;/span&amp;gt;button down and clicking and dragging with the mouse) so that the Nasion is clearly visible. Move the mouse to the Nasion, and press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl+Left Click'''&amp;lt;/span&amp;gt;. The coordinates of the Nasion are inserted into the dialog. Repeat for the left preauricular point, and then for the right preauricular point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (5).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;Note: if you have defined your fiducials differently in your BESA Research data (e.g. ear holes), click on the corresponding points in the MRI. If you have additional head surface points (step 8), accuracy in pinpointing the fiducials is not critical.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. In the Fiducials Dialog, press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit fiducials'''&amp;lt;/span&amp;gt; button. The head surface points are now more or less aligned to the head.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (6).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. Now select '''''EEG-MEG BESA/Fit Surface Points...'''''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (7).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you do not see the right half of the dialog, press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Advanced &amp;gt;&amp;gt;'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Specify the distances of the digitization points from the skin. In the illustration above, the digitization points for electrodes are estimated to be 8 mm from the surface of the head. For the purpose of accurate alignment, the distance of digitization points from skin section of the dialog needs to be filled in correctly. We recommend that &amp;quot;Restrain solution around fiducials&amp;quot; is checked, and a reasonable limit (here 3 mm) of the restraint is defined. Then press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (8).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BrainVoyager fits the points to the head, stretching x, y, and z coordinates to obtain a better fit than before.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;Note: The fit performed during this step accounts for scaling inequalities between the x, y, and z axes in the MRI. Coregistration gains in accuracy over the use of fiducials alone a) because more head surface points are used, and b) because the scaling inequalities are accounted for.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Alignment is now completed. If you only want to display the structural MRI in the BESA Source Module, you can return to the BESA Coregistration Dialog.&lt;br /&gt;
* BESA Research. When you switch back to the Coregistration Dialog, BESA Research will try to fill in the names of the Talairach MRI and surface meshes. If the names are not filled in, use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Browse...'''&amp;lt;/span&amp;gt; buttons to select the MRI and surface meshes. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; to save the Coregistration File. Alignment is completed!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The alignment steps need only be performed once for a given MRI and EEG/MEG data set. Otherwise, after starting BrainVoyager, just load the MRI, the surface mesh, and the surface points (see “[[Integration_with_MRI_and_fMRI#Coregistration_with_BrainVoyager_after_Alignment_has_been_Done |How to Set Up Coregistration with BrainVoyager after Alignment has been Done]]”). Now the following actions are possible: see chapters&lt;br /&gt;
&lt;br /&gt;
* [[Integration_with_MRI_and_fMRI#Co-locating_Sources_and_MRI_in_the_BESA_Research_Source_Module|How to Co-Locate Sources and MRI in the BESA Research Source Module]]&lt;br /&gt;
* [[Integration_with_MRI_and_fMRI#Send_a_Dipole_from_BESA_Research_to_BrainVoyager|How to Send a Dipole from BESA Research to BrainVoyager]]&lt;br /&gt;
* [[Integration_with_MRI_and_fMRI#Define_a_Dipole_in_BESA_Research_at_a_Location_Defined_in_the_MRI|How to Define a Dipole in BESA Research at a Location Defined in the MRI]]&lt;br /&gt;
&lt;br /&gt;
=== MRI file Name Conventions ===&lt;br /&gt;
&lt;br /&gt;
If you follow the naming conventions for file names as described here, BESA Research detects the file names it requires, and the ''Coregistration Dialog'' is filled in automatically.&lt;br /&gt;
&lt;br /&gt;
Please note that BESA MRI automatically uses these naming conventions for the generated files.&lt;br /&gt;
&lt;br /&gt;
* '''The AC-PC MRI file name''' should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_ACPC.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, and the corresponding surface mesh name should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_ACPC.srf'''&amp;lt;/span&amp;gt;&amp;quot;. After alignment, BrainVoyagerQX writes these names to the Coregistration File.&lt;br /&gt;
* '''The Talairach MRI file name '''should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, and the corresponding surface mesh name should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL.srf'''&amp;lt;/span&amp;gt;&amp;quot;. If defined, the brain surface mesh should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL_WM.srf'''&amp;lt;/span&amp;gt;&amp;quot; ('''WM''' = '''w'''hite '''m'''atter).&lt;br /&gt;
* '''How BESA Research finds the Talairach files.''' When BESA Research rereads the Coregistration File after alignment of the coordinate systems, it finds the ACPC file names and defines the corresponding TAL file names. If these files exist, the names are entered into the Coregistration Dialog. For instance, if the Coregistration File contains the name &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI'''&amp;lt;/span&amp;gt; &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''PB_ACPC.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, BESA Research will look for the files &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_TAL.srf'''&amp;lt;/span&amp;gt;&amp;quot;, and &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_TAL_WM.srf'''&amp;lt;/span&amp;gt;&amp;quot;. If these files exist, they are entered into the dialog.&lt;br /&gt;
* '''Older BrainVoyager version.''' If you use BrainVoyager.exe to align coordinate systems, the file names are not saved with the Coregistration File. In this case, browse for the Talairach or the ACPC MRI from the Coregistration Dialog. BESA Research will use the rules as described above to insert the correct file names into the dialog.&lt;br /&gt;
* '''Missing Talairach coordinates.''' If, after aligning coordinate systems, the Talairach coordinates are missing from the Coregistration File (you forgot to load the Talairach coordinates in BrainVoyagerQX, or you used BrainVoyager.exe), BESA Research will look for a file ending with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_ACPC.tal'''&amp;lt;/span&amp;gt;&amp;quot;, and read the coordinates from this file. You can also browse for a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.tal&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file in the Coregistration Dialog. For instance, if the MRI file is named &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_ACPC.vmr'''&amp;lt;/span&amp;gt;&amp;quot; or &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MR_'''&amp;lt;/span&amp;gt; &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''PB_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, BESA Research will look for &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_ACPC.tal'''&amp;lt;/span&amp;gt;&amp;quot; to find the Talairach coordinates.&lt;br /&gt;
* '''File names in the Coregistration File are saved relative to the Coregistration File location, if they are in the same folder.''' If the MRIs are in the same folder as the Coregistration File they will be recorded as &amp;quot;.\filename&amp;quot; (e.g. &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.\MRI PB_tal.vmr'''&amp;lt;/span&amp;gt;&amp;quot;). This means that you can copy the Coregistration File together with the MRIs and meshes to a different folder, and BESA Research will be able to locate the files when the Coregistration File is opened. If the MRIs are saved in a different folder from the Coregistration File, the absolute paths are saved in the file. If the files are moved to new locations, you will have to restart the Coregistration Dialog and redefine the file locations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How to Generate a Brain Surface Mesh ===&lt;br /&gt;
&lt;br /&gt;
BESA Research is able to compute surface images, such as (Cortical LORETA, Cortical CLARA, Minimum Norm) using an individual cortex surface as the source space. A suitable cortex surface for this purpose can be effortlessly created using BESA MRI. Alternatively, BrainVoyager can be used for the creation of the brain surface mesh.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''BESA MRI'''&lt;br /&gt;
* The brain surface generation is performed as one work step of the BESA MRI segmentation workflow.&lt;br /&gt;
* The cortex surface reconstruction is done using a robust and accurate automatic segmentation procedure.&lt;br /&gt;
* Details on how to generate the brain surface mesh in BESA MRI can be found in the coregistration quickguide which is available on the BESA homepage (http://www.besa.de/downloads/quick-guides/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''BrainVoyager'''&lt;br /&gt;
* BrainVoyagerQX provides a semiautomatic procedure to generate meshes for the brain surface of the Talairach MRI. Please refer to the BrainVoyager Help to find out how to do this.&lt;br /&gt;
* The result of the BrainVoyager procedure is two meshes, one for the left and one for the right hemisphere.&lt;br /&gt;
* BESA Research requires a single mesh. Therefore, load first one mesh (''Meshes/Load Mesh..''.), and append the other mesh (''Meshes/Add Mesh...''). Merge these two meshes (''Meshes/Merge'' ''meshes in surface window'') and then save the result (''Meshes/Save Mesh...''). If possible, use the recommended name conventions for the resulting file (file name ends in &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL_WM.srf&amp;quot;). '''&amp;lt;/span&amp;gt;For instance, if the Talairach MRI is named &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI PB_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, name the brain surface mesh &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI PB_TAL_WM.srf'''&amp;lt;/span&amp;gt;&amp;quot;.&lt;br /&gt;
* See also the '''BrainVoyager Getting Started Guide''' that can be downloaded from the Brain Innovation website (http://brainvoyager.com/Downloads.html).&lt;br /&gt;
&lt;br /&gt;
==  Co-locating Dipoles and MRI Locations ==&lt;br /&gt;
&lt;br /&gt;
=== Co-locating Sources and MRI in the BESA Research Source Module ===&lt;br /&gt;
&lt;br /&gt;
If the alignment procedure using BESA MRI (or BrainVoyager) has been completed then you can load the individual structural MRI in the Source Module by pressing &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''''A''''&amp;lt;/span&amp;gt; or using a mouse right click and selecting '''''Display MRI'''''.&lt;br /&gt;
&lt;br /&gt;
Sources in the current model are then overlayed onto the individual MRI.&lt;br /&gt;
&lt;br /&gt;
A double-click at any location in the MRI will define a new source at the corresponding location in the BESA Research head model.&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (9).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
=== Coregistration with BrainVoyager after Alignment has been Done ===&lt;br /&gt;
&lt;br /&gt;
Alignment between BESA Research and BrainVoyager is only required once for a given BESA Research data set and the corresponding MRI. At a later time, if you want to Co-locate sources between BESA Research and BrainVoyager, perform the following steps in BrainVoyager:&lt;br /&gt;
* Load the MRI.&lt;br /&gt;
* Load the head surface mesh (''Meshes/Load Mesh..''.).&lt;br /&gt;
* Load the Coregistration File (''EEG-MEG BESA/Load Surface Points..''.).&lt;br /&gt;
&lt;br /&gt;
BrainVoyager is now ready for Co-location.&lt;br /&gt;
&lt;br /&gt;
=== Send a Dipole from BESA Research to BrainVoyager ===&lt;br /&gt;
&lt;br /&gt;
First, start BrainVoyager(QX). This can be done from the BESA Research Source Module by pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''BrainVoyager '''&amp;lt;/span&amp;gt;button. Note that in the Source Module, the ''Options / Preferences / BrainVoyager'' tab allows to define the path to BrainVoyager.&lt;br /&gt;
&lt;br /&gt;
In BrainVoyager, [[Integration_with_MRI_and_fMRI#Coregistration_with_BrainVoyager_after_Alignment_has_been_Done|set up coregistration]].&lt;br /&gt;
&lt;br /&gt;
In the BESA Research Source Module, highlight the dipole of interest.&lt;br /&gt;
&lt;br /&gt;
In the BESA Research Source Module, click on the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''BrainVoyager'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
Program control will automatically switch to BrainVoyager. The head will be cut at the section corresponding to the dipole of interest.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (10).gif‎|200px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that all dipoles in the current model are sent to BrainVoyager. The highlighted dipole (here, the red dipole) determines the plane at which the head will be cut.&lt;br /&gt;
&lt;br /&gt;
Note that the dipoles are visible in both the surface module and in the 2D view:&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (11).gif|400px]]&lt;br /&gt;
&lt;br /&gt;
=== Define a Dipole in BESA Research at a Location Defined in the MRI ===&lt;br /&gt;
&lt;br /&gt;
First set up coregistration (see chapter ''“[[Integration_with_MRI_and_fMRI#Coregistration_with_BrainVoyager_after_Alignment_has_been_Done|Coregistration with BrainVoyager after Alignment has been Done]]”'').&lt;br /&gt;
&lt;br /&gt;
In the BrainVoyager 2D MRI view, place the mouse over the point at which you would like to define a dipole. Right click at this point. If this point lies within an fRMI cluster, BrainVoyager will automatically determine its center and use it as a seeding point instead. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Send Seed Point To BESA....'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (12).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
The following Dialog is opened:&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (13).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Send to BESA'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The BESA Source Analysis window appears. The new dipole or regional source (depending on the setting in the ‘Options’ dialog in the Source Analysis window is now displayed at the corresponding location. If a dipole is seeded, BESA automatically fits its orientation. For further adjustment of the model, you may need to refit the orientation, e.g. at a certain time range, or in the presence of other sources.&lt;br /&gt;
&lt;br /&gt;
Detailed instructions on (f)MRI import and processing in Brain Voyager is provided by the '''BrainVoyager Getting Started Guide''' that can be downloaded from the Brain Innovation website ([http://brainvoyager.com/Downloads.html http://brainvoyager.com/Downloads.html]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference ==&lt;br /&gt;
&lt;br /&gt;
=== The Coregistration File (*.sfh) ===&lt;br /&gt;
&lt;br /&gt;
This file is used to mediate between BESA Research and BESA MRI (or BrainVoyager(QX)). When it is first written by BESA Research, it contains a list of the digitized head surface points (fiducials, electrodes, other digitized points), e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
NrOfPoints: 68&lt;br /&gt;
 Fid_Nz                    0.00000     103.10000       0.00000   3 255  128  255&lt;br /&gt;
 Fid_T9                  -78.40000       0.00000       0.00000   3 255  128  255&lt;br /&gt;
 Fid_T10                  73.00000       0.00000       0.00000   3 255  128  255&lt;br /&gt;
 Ele_E1                  -28.70000      23.90000     122.30000   3 255    0    0&lt;br /&gt;
 Ele_E2                  -80.40000      19.80000      75.90000   3 255    0    0&lt;br /&gt;
 Ele_E3                  -84.00000      37.90000       9.00000   3 255    0    0&lt;br /&gt;
 Ele_E4                  -17.60000      92.90000      89.10000   3 255    0    0&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
 Ele_E63                  -6.80000    -104.00000      54.40000   3 255    0    0&lt;br /&gt;
 Ele_E64                 -42.80000     -46.90000     115.60000   3 255    0    0&lt;br /&gt;
 Ele_Cz'                  -2.10000       2.20000     131.10000   3 255    0    0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each line contains a label, the coordinates in the Head Coordinate system, and parameters specifying the size and color of the sensor or head surface point as displayed in BESA MRI (or BrainVoyager).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After aligning the coordinate systems, BESA MRI (or BrainVoyagerQX) appends lines defining the transformation between the BESA Research and the MRI coordinate systems:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Trans-data(in BV-coords): 3 translation, 3 rotation (in grad), 3 scale&lt;br /&gt;
37.435 15.811 2.820 0.025 1.938 8.779  1.009 0.973 0.977&lt;br /&gt;
Fiducials:&lt;br /&gt;
41.7873  148.0180  128.0844&lt;br /&gt;
154.7772  169.4783  204.1080&lt;br /&gt;
147.0154  168.9746  54.1266&lt;br /&gt;
Midpoint (in BV-coords):&lt;br /&gt;
128.0000  128.0000  128.0000&lt;br /&gt;
Volume:  C:\BESA\Examples\ERP P300-Auditory\MRI_PB_acpc.vmr&lt;br /&gt;
Surface: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_acpc.srf&lt;br /&gt;
AC: 128 128 128&lt;br /&gt;
PC: 154 128 128&lt;br /&gt;
AP: 58 128 128&lt;br /&gt;
PP: 241 129 130&lt;br /&gt;
SP: 154 50 128&lt;br /&gt;
IP: 128 172 128&lt;br /&gt;
RP: 128 128 60&lt;br /&gt;
LP: 165 128 198&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: Older versions of BrainVoyager.exe do not append the lines starting with &amp;quot;Volume&amp;quot;. In addition, the Talairach coordinates (starting at &amp;quot;AC: ...&amp;quot;) are not appended if they were not loaded in BrainVoyagerQX.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, when the Coregistration Dialog in BESA Research has found the Talairach MRI and surface meshes, and you press the OK button, BESA Research appends the additional file names:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TalVolume: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_tal.vmr&lt;br /&gt;
TalSurface: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_tal.srf&lt;br /&gt;
TalBrainSurface: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_tal_wm.srf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA MRI already inserts the correct file names into the coregistration file when doing the coregistration. When also an EEG or MEG  FEM head model is generated then additional lines are appended to the coregistration file containing the file names of the generated FEM data files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MRI Requirements for Good Coregistration ===&lt;br /&gt;
&lt;br /&gt;
We recommend a high quality T1-weighted anatomical image with 1 mm³ voxels (e.g. 256 x 256 saggital scan with 1 mm spacing).&lt;br /&gt;
&lt;br /&gt;
In order to define the surface mesh, a clear contrast between the head surface and the outside of the head (T1-weighting) is required. Noise and measurement artifacts can influence the representation of the scalp surface. When doing the coregistration in BrainVoyager improvements in noisy images often can be achieved by cleaning up the image after first reading it using the tools provided by BrainVoyager.&lt;br /&gt;
&lt;br /&gt;
For coregistration with head surface points, it is useful to include the whole head in the image, including nose and ears. If surface points on the nose are included with the EEG/MEG data set, these points help to stabilize the fit of head surface points to the surface mesh.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EEG/MEG Data Requirements for Good Coregistration ===&lt;br /&gt;
&lt;br /&gt;
We recommend several (30 or more) digitized head surface points in addition to the fiducials, including points on the nose (nose tip and sides). These points may include electrodes. In the case of electrodes, it is important to measure the distance from the scalp to the digitization point, i.e. the electrode thickness.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Research Manual]]&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Integration_with_MRI_and_fMRI</id>
		<title>Integration with MRI and fMRI</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Integration_with_MRI_and_fMRI"/>
				<updated>2019-03-27T12:51:50Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* How Coregistration is done */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher and BESA MRI&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- = BESA Research Integration with MRI and fMRI = --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Both for developing and evaluating dipole source models of EEG or MEG activity, it is useful to have access to structural MRI or fMRI data.&lt;br /&gt;
&lt;br /&gt;
The BESA MRI software allows to preprocess structural MRI data so that the individual anatomical information contained in the MRI can be utilized in BESA Research. BESA MRI makes it possible ...&lt;br /&gt;
* ... to align the EEG and MEG sensors with the structural MRI data.&lt;br /&gt;
* ... to read and display the aligned, individual Talairach structural MRIs directly in the BESA Research Source Analysis module. In this way, source analysis results can be presented on top of the aligned MRIs, which allows us to evaluate the anatomical regions to which the reconstructed sources may correspond.&lt;br /&gt;
* ... to use an individual, realistically shaped FEM head model for source analysis in BESA Research. FEM head models take into account the individual volume conduction properties of the subject's head derived from the structural MRI data. This allows for more accurate source analysis (Yvert 1997, Lanfer 2012).&lt;br /&gt;
&lt;br /&gt;
To offer an easy integration with fMRI data we have, in collaboration with Rainer Goebel, optimized the interface between BESA Research and BrainVoyagerQX. &lt;br /&gt;
&lt;br /&gt;
With these tools, we can ...&lt;br /&gt;
* ... use fMRI BOLD regions or MRI structures to initialize dipole models.&lt;br /&gt;
* ... visualize dipoles from BESA Research models together with the structural MRI in BrainVoyager in order to evaluate the regions to which the dipoles may correspond.&lt;br /&gt;
* ... combine the localization advantages of (f)MRI with the high temporal resolution of EEG and MEG, for instance by using (f)MRI to place the sources, and the source waveforms of BESA Research to provide feedback about the time course of the source activity.&lt;br /&gt;
* ... overlay source analysis results obtained in BESA Research with fMRI data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' For simpler coregistration, we recommend to use BrainVoyagerQX rather than the older BrainVoyager, but BESA Research will work with both program versions.&lt;br /&gt;
&lt;br /&gt;
The chapters below describe the steps necessary to integrate the MRI and fMRI data with BESA Research. Detailed instructions on (f)MRI import and processing in Brain Voyager is provided by the '''BrainVoyager Getting Started Guide''' that can be downloaded from the Brain Innovation website (https://www.brainvoyager.com/downloads/downloads.html).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Aligning Coordinate Systems'''&lt;br /&gt;
&lt;br /&gt;
* For a given BESA data set, the electrode and other head surface points need to be aligned to the MRI coordinates.&lt;br /&gt;
* The basic steps necessary to align the EEG electrode locations, the MEG sensors and the MRI are described in Section “[[Integration_with_MRI_and_fMRI#Setting_Up_Coregistration_Using_BrainVoyager|How Coregistration is done]]”.&lt;br /&gt;
* Detailed instructions on how to align EEG / MEG and MRI data using BESA MRI can be found in the coregistration quick guide which is available on the BESA homepage ((http://www.besa.de/downloads/quick-guides/).&lt;br /&gt;
* Detailed instructions on how to align EEG / MEG and MRI data using BrainVoyager are described in Section “[[Integration_with_MRI_and_fMRI#Setting_Up_Coregistration_Using_BrainVoyager|How To set up Coregistration between BESA and BrainVoyager]]”.&lt;br /&gt;
* In BESA Research, all necessary settings with regard to the alignment are made in the [[Integration_with_MRI_and_fMRI#The_Coregistration_Dialog|Coregistration Dialog]].&lt;br /&gt;
* Requirements with respect to the MRI data for a good coregistration can be found in Section “''MRI Requirements for Good Coregistration”.''&lt;br /&gt;
* Requirements with respect to EEG and MEG data for a good coregistration can be found in Section “''EEG/MEG Data Requirements for Good Coregistration”.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Generating an individual, realistically shaped FEM head model'''&lt;br /&gt;
&lt;br /&gt;
* The generation of a FEM head model that can be used in BESA Research is done in BESA MRI as an additional step following the EEG / MEG to MRI coregistration.&lt;br /&gt;
* Detailed instructions on how to generate the FEM head model can be found in the coregistration quick guide which is available on the BESA homepage (http://www.besa.de/downloads/quick-guides/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Co-locating dipoles and MRI locations'''&lt;br /&gt;
&lt;br /&gt;
* After aligning the EEG / MEG and the MRI data it is possible to co-locate dipoles and MRI locations. This means, it is possible to visualize the dipoles and to specify the dipole parameters in the MRI coordinate system.&lt;br /&gt;
* “[[Integration_with_MRI_and_fMRI#Co-locating_Sources_and_MRI_in_the_BESA_Research_Source_Module|How to Co-locate sources and MRI in the BESA Research Source Module]]&amp;quot; describes how in the BESA Research Source Analysis module dipoles can directly be visualized in the space of the individual MRI.&lt;br /&gt;
* “[[Integration_with_MRI_and_fMRI#Send_a_Dipole_from_BESA_Research_to_BrainVoyager|How to Send a Dipole from BESA Research to BrainVoyager]]” describes how to send a source model from BESA Research to BrainVoyager for further inspection.&lt;br /&gt;
* “[[Integration_with_MRI_and_fMRI#Define_a_Dipole_in_BESA_Research_at_a_Location_Defined_in_the_MRI|How to Define a Dipole in BESA Research at a Location Defined in the MRI]]” describes how to insert a dipole at a location defined in the MRI in BrainVoyager.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''References'''&lt;br /&gt;
&lt;br /&gt;
Lanfer, B., I. Paul-Jordanov, M. Scherg, and C. H. Wolters. “Influence of Interior Cerebrospinal Fluid Compartments on EEG Source Analysis.” In Proceedings BMT 2012, Vol. 57. Jena: De Gruyter, 2012. doi:10.1515/bmt-2012-4020.&lt;br /&gt;
&lt;br /&gt;
Yvert, B., O. Bertrand, M. Thévenet, J. F. Echallier, and J. Pernier. “A Systematic Evaluation of the Spherical Model Accuracy in EEG Dipole Localization.” Electroencephalography and Clinical Neurophysiology 102, no. 5 (May 1997): 452–59. doi:16/S0921-884X(97)96611-X.&lt;br /&gt;
&lt;br /&gt;
== How Coregistration is done ==&lt;br /&gt;
&lt;br /&gt;
This section outlines the basic steps to coregister the EEG / MEG data to an individual MRI. These steps are necessary to load an individual MRI into BESA Research.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''What happens:'''&lt;br /&gt;
&lt;br /&gt;
* EEG / MEG sensor locations and the MRI data are defined in different coordinate systems. Setting up coregistration is the process of aligning the two coordinate systems.&lt;br /&gt;
* BESA Research uses the ''Coregistration Dialog'' to coordinate the alignment procedure.&lt;br /&gt;
* Alignment is done with the ''AC-PC-transformed MRI''.&lt;br /&gt;
* BESA Research displays the ''Talairach-transformed MRI'' in the source analysis module.&lt;br /&gt;
* A coregistration file (with the extension &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.sfh'''&amp;lt;/span&amp;gt;&amp;quot;) is used to mediate between BESA Research and BESA MRI (or BrainVoyagerQX):&lt;br /&gt;
* BESA Research writes the coregistration file which contains the coordinates of head surface points (fiducials, electrodes, other digitized surface points).&lt;br /&gt;
* The coordinates are read into BESA MRI (or BrainVoyager), and aligned with the AC-PC-transformed MRI. The alignment information is then appended to the ''coregistration file''. The names of the AC-PC MRI (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.vmr&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) and the surface mesh (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.srf&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;), and, if available, the Talairach transformation, are also appended.&lt;br /&gt;
* BESA Research reads the coregistration file and appends the name of the Talairach-transformed MRI and head surface. If a brain surface has been created, this is also appended.&lt;br /&gt;
* Subsequently, BESA Research reads the coregistration file automatically when loading the data file.&lt;br /&gt;
* In the BESA Research source module, the individual MRI is displayed instead of the standard MRI. Talairach coordinates of dipoles are the &amp;quot;real&amp;quot; Talairach coordinates as defined, e.g., in BrainVoyager.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The steps you have to take (once for each data set):'''&lt;br /&gt;
&lt;br /&gt;
* From the BESA Research ''Coregistration Dialog'', write a coregistration file. Switch to BESA MRI (or BrainVoyagerQX).&lt;br /&gt;
* If BESA MRI is used follow the steps in the coregistration quickguide which is available on the BESA homepage (http://www.besa.de/downloads/quick-guides/).&lt;br /&gt;
* If BrainVoyager is used follow the steps in Section “''How to set up coregistration between BESA and BrainVoyager”.''&lt;br /&gt;
* Back in BESA Research, reload the altered '''coregistration file'''. When using BESA MRI the file names of the generated surface and volume data files will be automatically filled in. When using BrainVoyager file names are only filled in automatically when the files are named according to the file naming conventions. Otherwise, file names have to be set manually.&lt;br /&gt;
* The coregistration file is now associated with the data file in the BESA Research database and will be used automatically the next time the file is opened in BESA Research. If the database entry is cleared, and the data are reloaded, you must make sure the coregistration file is also loaded (either using the ''Coregistration Dialog'' or the ''Channel and digitized head surface point information Dialog'').&lt;br /&gt;
&lt;br /&gt;
==  Alignment of BESA and MRICoordinate Systems  ==&lt;br /&gt;
&lt;br /&gt;
=== The Coregistration Dialog ===&lt;br /&gt;
&lt;br /&gt;
The dialog is opened either from the ''Channel and digitized head surface point information'' (&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-L'''&amp;lt;/span&amp;gt;) ''dialog ''by pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Edit/Coreg'''&amp;lt;/span&amp;gt; button, or from the main menu (&amp;quot;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''File/MRI&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Coregistration...'''&amp;lt;/span&amp;gt;&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the coregistration dialog is invoked from an EEG data set in which no digitized electrode coordinates are available (i.e. standard electrode positions located on a sphere are assumed), BESA Research presents a warning message, saying that for MRI coregistration realistic electrode coordinates produce better results. BESA Research has a list of such realistic standard coordinates (i.e. located on a pre-defined standard head surface) for various electrodes available in file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Default.sfp'''&amp;lt;/span&amp;gt;, which is located in the Standard Electrode folder. If all electrodes in the dataset are listed in this file, a dialog window suggests to apply this file to the current data set, i.e. to switch from standard sphere coordinates to the standard realistic electrode coordinates in file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Default.sfp'''&amp;lt;/span&amp;gt;. If the suggestion is accepted, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''default.sfp'''&amp;lt;/span&amp;gt; is assigned to the dataset (see Channel and digitized head surface point information (&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-L'''&amp;lt;/span&amp;gt;) dialog).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The Dialog:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (1).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Select MRI prog'''&amp;lt;/span&amp;gt; button to select your preferred MRI program. The current choice is between ''BESA MRI.exe'' and ''BrainVoyagerQX.exe''. The path to the MRI program is saved (in ''System\BESA.set'') and will be remembered by BESA Research. The top right hand button (now showing '''BESA MRI''') shows the current selection.&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''BESA MRI'''&amp;lt;/span&amp;gt; button to start the process of aligning the BESA Research and MRI coordinate systems. If no coregistration (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.sfh&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) file is defined in the dialog (empty ''Surface coregistration file edit box''), BESA Research will first prompt for a file name. We recommend saving this file to the folder where the MRIs are kept. The MRI program will then be started. When you return to the ''Coregistration Dialog'', BESA Research checks if the ''Coregistration File'' has changed. If so, the dialog is updated with the new information.&lt;br /&gt;
* Press the top &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Browse... '''&amp;lt;/span&amp;gt;button to select a preexisting ''Coregistration File''.&lt;br /&gt;
* The entries in the edit boxes below show the files that will be used in the BESA Research Source Analysis module when the individual MRI is loaded. When using BESA MRI the file names will be automatically filled in. If you are using BrainVoagerQX and you are following our (and the BrainVoyagerQX) recommended naming conventions for files, and the files exist, then the names will be filled in automatically after you have completed the alignment procedure in BrainVoyagerQX. Otherwise you may have to browse for the files.&lt;br /&gt;
* Below the edit boxes the FEM field states whether all necessary information for the individual FEM head model were found in the coregistration file. If the field says ''Individual FEM for EEG'' ''defined!'' then all necessary data was found and the individual FEM EEG head model can be used in the BESA Research Source Analysis module. A similar message indicates whether the FEM MEG head model is available.&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;Note that the MRI and the surfaces are Talairach-transformed! Alignment between BESA Research and the individual MRI is done with the MRI transformed to the AC-PC coordinate system, but the BESA Research Source Analysis module uses the Talairach-transformed image data and surfaces.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting Up Coregistration Using BrainVoyager ===&lt;br /&gt;
&lt;br /&gt;
It is assumed that you know how to load an MRI as a 3D data set into BrainVoyagerQX, and how to clean the image so that regions outside the head are black. We also assume knowledge of how to create AC-PC-aligned and Talairach-transformed MRIs.&lt;br /&gt;
&lt;br /&gt;
Perform the following steps:&lt;br /&gt;
&lt;br /&gt;
* BESA Research. Start the ''Coregistration Dialog''. Export the Coregistration File (head surface points) from your data by pressing the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''BrainVoyagerQX'''&amp;lt;/span&amp;gt; button in the dialog. Save the file to the directory where your MRI is located. BrainVoyagerQX is started.&lt;br /&gt;
* BrainVoyagerQX. Load the MRI corresponding to the EEG/MEG data. For optimal performance, the MRI should be cleaned so that regions outside the head are black. Prepare an AC-PC-transformed MRI and a Talairach MRI. For each, generate a surface mesh. Save these files following our recommended naming conventions (see chapter “[[Integration_with_MRI_and_fMRI#MRI_file_Name_Conventions|MRI File Name Conventions]]”). Save the Talairach coordinate file (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.tal&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;). If these steps have already been performed, load the ACPC MRI and load the ACPC mesh. If you want to generate a brain surface mesh, see chapter “[[Integration_with_MRI_and_fMRI#How_to_Generate_a_Brain_Surface_Mesh|How to Generate a Brain Surface Mesh]]”.&lt;br /&gt;
* BrainVoyagerQX. Load the Coregistration File (''EEG-MEG BESA/Load Surface Points''). The points will be displayed, but they are not aligned to the head:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (2).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. Define fiducial points on the head surface. Right click on the 3D head display and select the ''Fiducials Dialog'' in the drop-down menu:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (3).gif ‎]]  [[Image:MRI Integration (4).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. Rotate the head (by holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Shift '''&amp;lt;/span&amp;gt;button down and clicking and dragging with the mouse) so that the Nasion is clearly visible. Move the mouse to the Nasion, and press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl+Left Click'''&amp;lt;/span&amp;gt;. The coordinates of the Nasion are inserted into the dialog. Repeat for the left preauricular point, and then for the right preauricular point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (5).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;Note: if you have defined your fiducials differently in your BESA Research data (e.g. ear holes), click on the corresponding points in the MRI. If you have additional head surface points (step 8), accuracy in pinpointing the fiducials is not critical.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. In the Fiducials Dialog, press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit fiducials'''&amp;lt;/span&amp;gt; button. The head surface points are now more or less aligned to the head.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (6).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. Now select '''''EEG-MEG BESA/Fit Surface Points...'''''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (7).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you do not see the right half of the dialog, press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Advanced &amp;gt;&amp;gt;'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Specify the distances of the digitization points from the skin. In the illustration above, the digitization points for electrodes are estimated to be 8 mm from the surface of the head. For the purpose of accurate alignment, the distance of digitization points from skin section of the dialog needs to be filled in correctly. We recommend that &amp;quot;Restrain solution around fiducials&amp;quot; is checked, and a reasonable limit (here 3 mm) of the restraint is defined. Then press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (8).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BrainVoyager fits the points to the head, stretching x, y, and z coordinates to obtain a better fit than before.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;Note: The fit performed during this step accounts for scaling inequalities between the x, y, and z axes in the MRI. Coregistration gains in accuracy over the use of fiducials alone a) because more head surface points are used, and b) because the scaling inequalities are accounted for.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Alignment is now completed. If you only want to display the structural MRI in the BESA Source Module, you can return to the BESA Coregistration Dialog.&lt;br /&gt;
* BESA Research. When you switch back to the Coregistration Dialog, BESA Research will try to fill in the names of the Talairach MRI and surface meshes. If the names are not filled in, use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Browse...'''&amp;lt;/span&amp;gt; buttons to select the MRI and surface meshes. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; to save the Coregistration File. Alignment is completed!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The alignment steps need only be performed once for a given MRI and EEG/MEG data set. Otherwise, after starting BrainVoyager, just load the MRI, the surface mesh, and the surface points (see “[[Integration_with_MRI_and_fMRI#Coregistration_with_BrainVoyager_after_Alignment_has_been_Done |How to Set Up Coregistration with BrainVoyager after Alignment has been Done]]”). Now the following actions are possible: see chapters&lt;br /&gt;
&lt;br /&gt;
* [[Integration_with_MRI_and_fMRI#Co-locating_Sources_and_MRI_in_the_BESA_Research_Source_Module|How to Co-Locate Sources and MRI in the BESA Research Source Module]]&lt;br /&gt;
* [[Integration_with_MRI_and_fMRI#Send_a_Dipole_from_BESA_Research_to_BrainVoyager|How to Send a Dipole from BESA Research to BrainVoyager]]&lt;br /&gt;
* [[Integration_with_MRI_and_fMRI#Define_a_Dipole_in_BESA_Research_at_a_Location_Defined_in_the_MRI|How to Define a Dipole in BESA Research at a Location Defined in the MRI]]&lt;br /&gt;
&lt;br /&gt;
=== MRI file Name Conventions ===&lt;br /&gt;
&lt;br /&gt;
If you follow the naming conventions for file names as described here, BESA Research detects the file names it requires, and the ''Coregistration Dialog'' is filled in automatically.&lt;br /&gt;
&lt;br /&gt;
Please note that BESA MRI automatically uses these naming conventions for the generated files.&lt;br /&gt;
&lt;br /&gt;
* '''The AC-PC MRI file name''' should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_ACPC.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, and the corresponding surface mesh name should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_ACPC.srf'''&amp;lt;/span&amp;gt;&amp;quot;. After alignment, BrainVoyagerQX writes these names to the Coregistration File.&lt;br /&gt;
* '''The Talairach MRI file name '''should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, and the corresponding surface mesh name should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL.srf'''&amp;lt;/span&amp;gt;&amp;quot;. If defined, the brain surface mesh should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL_WM.srf'''&amp;lt;/span&amp;gt;&amp;quot; ('''WM''' = '''w'''hite '''m'''atter).&lt;br /&gt;
* '''How BESA Research finds the Talairach files.''' When BESA Research rereads the Coregistration File after alignment of the coordinate systems, it finds the ACPC file names and defines the corresponding TAL file names. If these files exist, the names are entered into the Coregistration Dialog. For instance, if the Coregistration File contains the name &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI'''&amp;lt;/span&amp;gt; &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''PB_ACPC.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, BESA Research will look for the files &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_TAL.srf'''&amp;lt;/span&amp;gt;&amp;quot;, and &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_TAL_WM.srf'''&amp;lt;/span&amp;gt;&amp;quot;. If these files exist, they are entered into the dialog.&lt;br /&gt;
* '''Older BrainVoyager version.''' If you use BrainVoyager.exe to align coordinate systems, the file names are not saved with the Coregistration File. In this case, browse for the Talairach or the ACPC MRI from the Coregistration Dialog. BESA Research will use the rules as described above to insert the correct file names into the dialog.&lt;br /&gt;
* '''Missing Talairach coordinates.''' If, after aligning coordinate systems, the Talairach coordinates are missing from the Coregistration File (you forgot to load the Talairach coordinates in BrainVoyagerQX, or you used BrainVoyager.exe), BESA Research will look for a file ending with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_ACPC.tal'''&amp;lt;/span&amp;gt;&amp;quot;, and read the coordinates from this file. You can also browse for a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.tal&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file in the Coregistration Dialog. For instance, if the MRI file is named &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_ACPC.vmr'''&amp;lt;/span&amp;gt;&amp;quot; or &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MR_'''&amp;lt;/span&amp;gt; &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''PB_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, BESA Research will look for &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_ACPC.tal'''&amp;lt;/span&amp;gt;&amp;quot; to find the Talairach coordinates.&lt;br /&gt;
* '''File names in the Coregistration File are saved relative to the Coregistration File location, if they are in the same folder.''' If the MRIs are in the same folder as the Coregistration File they will be recorded as &amp;quot;.\filename&amp;quot; (e.g. &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.\MRI PB_tal.vmr'''&amp;lt;/span&amp;gt;&amp;quot;). This means that you can copy the Coregistration File together with the MRIs and meshes to a different folder, and BESA Research will be able to locate the files when the Coregistration File is opened. If the MRIs are saved in a different folder from the Coregistration File, the absolute paths are saved in the file. If the files are moved to new locations, you will have to restart the Coregistration Dialog and redefine the file locations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How to Generate a Brain Surface Mesh ===&lt;br /&gt;
&lt;br /&gt;
BESA Research is able to compute surface images, such as (Cortical LORETA, Cortical CLARA, Minimum Norm) using an individual cortex surface as the source space. A suitable cortex surface for this purpose can be effortlessly created using BESA MRI. Alternatively, BrainVoyager can be used for the creation of the brain surface mesh.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''BESA MRI'''&lt;br /&gt;
* The brain surface generation is performed as one work step of the BESA MRI segmentation workflow.&lt;br /&gt;
* The cortex surface reconstruction is done using a robust and accurate automatic segmentation procedure.&lt;br /&gt;
* Details on how to generate the brain surface mesh in BESA MRI can be found in the coregistration quickguide which is available on the BESA homepage (http://www.besa.de/tutorials/quickguides/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''BrainVoyager'''&lt;br /&gt;
* BrainVoyagerQX provides a semiautomatic procedure to generate meshes for the brain surface of the Talairach MRI. Please refer to the BrainVoyager Help to find out how to do this.&lt;br /&gt;
* The result of the BrainVoyager procedure is two meshes, one for the left and one for the right hemisphere.&lt;br /&gt;
* BESA Research requires a single mesh. Therefore, load first one mesh (''Meshes/Load Mesh..''.), and append the other mesh (''Meshes/Add Mesh...''). Merge these two meshes (''Meshes/Merge'' ''meshes in surface window'') and then save the result (''Meshes/Save Mesh...''). If possible, use the recommended name conventions for the resulting file (file name ends in &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL_WM.srf&amp;quot;). '''&amp;lt;/span&amp;gt;For instance, if the Talairach MRI is named &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI PB_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, name the brain surface mesh &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI PB_TAL_WM.srf'''&amp;lt;/span&amp;gt;&amp;quot;.&lt;br /&gt;
* See also the '''BrainVoyager Getting Started Guide''' that can be downloaded from the Brain Innovation website (http://brainvoyager.com/Downloads.html).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Co-locating Dipoles and MRI Locations ==&lt;br /&gt;
&lt;br /&gt;
=== Co-locating Sources and MRI in the BESA Research Source Module ===&lt;br /&gt;
&lt;br /&gt;
If the alignment procedure using BESA MRI (or BrainVoyager) has been completed then you can load the individual structural MRI in the Source Module by pressing &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''''A''''&amp;lt;/span&amp;gt; or using a mouse right click and selecting '''''Display MRI'''''.&lt;br /&gt;
&lt;br /&gt;
Sources in the current model are then overlayed onto the individual MRI.&lt;br /&gt;
&lt;br /&gt;
A double-click at any location in the MRI will define a new source at the corresponding location in the BESA Research head model.&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (9).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
=== Coregistration with BrainVoyager after Alignment has been Done ===&lt;br /&gt;
&lt;br /&gt;
Alignment between BESA Research and BrainVoyager is only required once for a given BESA Research data set and the corresponding MRI. At a later time, if you want to Co-locate sources between BESA Research and BrainVoyager, perform the following steps in BrainVoyager:&lt;br /&gt;
* Load the MRI.&lt;br /&gt;
* Load the head surface mesh (''Meshes/Load Mesh..''.).&lt;br /&gt;
* Load the Coregistration File (''EEG-MEG BESA/Load Surface Points..''.).&lt;br /&gt;
&lt;br /&gt;
BrainVoyager is now ready for Co-location.&lt;br /&gt;
&lt;br /&gt;
=== Send a Dipole from BESA Research to BrainVoyager ===&lt;br /&gt;
&lt;br /&gt;
First, start BrainVoyager(QX). This can be done from the BESA Research Source Module by pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''BrainVoyager '''&amp;lt;/span&amp;gt;button. Note that in the Source Module, the ''Options / Preferences / BrainVoyager'' tab allows to define the path to BrainVoyager.&lt;br /&gt;
&lt;br /&gt;
In BrainVoyager, [[Integration_with_MRI_and_fMRI#Coregistration_with_BrainVoyager_after_Alignment_has_been_Done|set up coregistration]].&lt;br /&gt;
&lt;br /&gt;
In the BESA Research Source Module, highlight the dipole of interest.&lt;br /&gt;
&lt;br /&gt;
In the BESA Research Source Module, click on the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''BrainVoyager'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
Program control will automatically switch to BrainVoyager. The head will be cut at the section corresponding to the dipole of interest.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (10).gif‎|200px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that all dipoles in the current model are sent to BrainVoyager. The highlighted dipole (here, the red dipole) determines the plane at which the head will be cut.&lt;br /&gt;
&lt;br /&gt;
Note that the dipoles are visible in both the surface module and in the 2D view:&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (11).gif|400px]]&lt;br /&gt;
&lt;br /&gt;
=== Define a Dipole in BESA Research at a Location Defined in the MRI ===&lt;br /&gt;
&lt;br /&gt;
First set up coregistration (see chapter ''“[[Integration_with_MRI_and_fMRI#Coregistration_with_BrainVoyager_after_Alignment_has_been_Done|Coregistration with BrainVoyager after Alignment has been Done]]”'').&lt;br /&gt;
&lt;br /&gt;
In the BrainVoyager 2D MRI view, place the mouse over the point at which you would like to define a dipole. Right click at this point. If this point lies within an fRMI cluster, BrainVoyager will automatically determine its center and use it as a seeding point instead. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Send Seed Point To BESA....'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (12).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
The following Dialog is opened:&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (13).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Send to BESA'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The BESA Source Analysis window appears. The new dipole or regional source (depending on the setting in the ‘Options’ dialog in the Source Analysis window is now displayed at the corresponding location. If a dipole is seeded, BESA automatically fits its orientation. For further adjustment of the model, you may need to refit the orientation, e.g. at a certain time range, or in the presence of other sources.&lt;br /&gt;
&lt;br /&gt;
Detailed instructions on (f)MRI import and processing in Brain Voyager is provided by the '''BrainVoyager Getting Started Guide''' that can be downloaded from the Brain Innovation website ([http://brainvoyager.com/Downloads.html http://brainvoyager.com/Downloads.html]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference ==&lt;br /&gt;
&lt;br /&gt;
=== The Coregistration File (*.sfh) ===&lt;br /&gt;
&lt;br /&gt;
This file is used to mediate between BESA Research and BESA MRI (or BrainVoyager(QX)). When it is first written by BESA Research, it contains a list of the digitized head surface points (fiducials, electrodes, other digitized points), e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
NrOfPoints: 68&lt;br /&gt;
 Fid_Nz                    0.00000     103.10000       0.00000   3 255  128  255&lt;br /&gt;
 Fid_T9                  -78.40000       0.00000       0.00000   3 255  128  255&lt;br /&gt;
 Fid_T10                  73.00000       0.00000       0.00000   3 255  128  255&lt;br /&gt;
 Ele_E1                  -28.70000      23.90000     122.30000   3 255    0    0&lt;br /&gt;
 Ele_E2                  -80.40000      19.80000      75.90000   3 255    0    0&lt;br /&gt;
 Ele_E3                  -84.00000      37.90000       9.00000   3 255    0    0&lt;br /&gt;
 Ele_E4                  -17.60000      92.90000      89.10000   3 255    0    0&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
 Ele_E63                  -6.80000    -104.00000      54.40000   3 255    0    0&lt;br /&gt;
 Ele_E64                 -42.80000     -46.90000     115.60000   3 255    0    0&lt;br /&gt;
 Ele_Cz'                  -2.10000       2.20000     131.10000   3 255    0    0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each line contains a label, the coordinates in the Head Coordinate system, and parameters specifying the size and color of the sensor or head surface point as displayed in BESA MRI (or BrainVoyager).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After aligning the coordinate systems, BESA MRI (or BrainVoyagerQX) appends lines defining the transformation between the BESA Research and the MRI coordinate systems:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Trans-data(in BV-coords): 3 translation, 3 rotation (in grad), 3 scale&lt;br /&gt;
37.435 15.811 2.820 0.025 1.938 8.779  1.009 0.973 0.977&lt;br /&gt;
Fiducials:&lt;br /&gt;
41.7873  148.0180  128.0844&lt;br /&gt;
154.7772  169.4783  204.1080&lt;br /&gt;
147.0154  168.9746  54.1266&lt;br /&gt;
Midpoint (in BV-coords):&lt;br /&gt;
128.0000  128.0000  128.0000&lt;br /&gt;
Volume:  C:\BESA\Examples\ERP P300-Auditory\MRI_PB_acpc.vmr&lt;br /&gt;
Surface: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_acpc.srf&lt;br /&gt;
AC: 128 128 128&lt;br /&gt;
PC: 154 128 128&lt;br /&gt;
AP: 58 128 128&lt;br /&gt;
PP: 241 129 130&lt;br /&gt;
SP: 154 50 128&lt;br /&gt;
IP: 128 172 128&lt;br /&gt;
RP: 128 128 60&lt;br /&gt;
LP: 165 128 198&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: Older versions of BrainVoyager.exe do not append the lines starting with &amp;quot;Volume&amp;quot;. In addition, the Talairach coordinates (starting at &amp;quot;AC: ...&amp;quot;) are not appended if they were not loaded in BrainVoyagerQX.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, when the Coregistration Dialog in BESA Research has found the Talairach MRI and surface meshes, and you press the OK button, BESA Research appends the additional file names:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TalVolume: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_tal.vmr&lt;br /&gt;
TalSurface: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_tal.srf&lt;br /&gt;
TalBrainSurface: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_tal_wm.srf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA MRI already inserts the correct file names into the coregistration file when doing the coregistration. When also an EEG or MEG  FEM head model is generated then additional lines are appended to the coregistration file containing the file names of the generated FEM data files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MRI Requirements for Good Coregistration ===&lt;br /&gt;
&lt;br /&gt;
We recommend a high quality T1-weighted anatomical image with 1 mm³ voxels (e.g. 256 x 256 saggital scan with 1 mm spacing).&lt;br /&gt;
&lt;br /&gt;
In order to define the surface mesh, a clear contrast between the head surface and the outside of the head (T1-weighting) is required. Noise and measurement artifacts can influence the representation of the scalp surface. When doing the coregistration in BrainVoyager improvements in noisy images often can be achieved by cleaning up the image after first reading it using the tools provided by BrainVoyager.&lt;br /&gt;
&lt;br /&gt;
For coregistration with head surface points, it is useful to include the whole head in the image, including nose and ears. If surface points on the nose are included with the EEG/MEG data set, these points help to stabilize the fit of head surface points to the surface mesh.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EEG/MEG Data Requirements for Good Coregistration ===&lt;br /&gt;
&lt;br /&gt;
We recommend several (30 or more) digitized head surface points in addition to the fiducials, including points on the nose (nose tip and sides). These points may include electrodes. In the case of electrodes, it is important to measure the distance from the scalp to the digitization point, i.e. the electrode thickness.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Research Manual]]&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Integration_with_MRI_and_fMRI</id>
		<title>Integration with MRI and fMRI</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Integration_with_MRI_and_fMRI"/>
				<updated>2019-03-27T12:51:13Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher and BESA MRI&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- = BESA Research Integration with MRI and fMRI = --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Both for developing and evaluating dipole source models of EEG or MEG activity, it is useful to have access to structural MRI or fMRI data.&lt;br /&gt;
&lt;br /&gt;
The BESA MRI software allows to preprocess structural MRI data so that the individual anatomical information contained in the MRI can be utilized in BESA Research. BESA MRI makes it possible ...&lt;br /&gt;
* ... to align the EEG and MEG sensors with the structural MRI data.&lt;br /&gt;
* ... to read and display the aligned, individual Talairach structural MRIs directly in the BESA Research Source Analysis module. In this way, source analysis results can be presented on top of the aligned MRIs, which allows us to evaluate the anatomical regions to which the reconstructed sources may correspond.&lt;br /&gt;
* ... to use an individual, realistically shaped FEM head model for source analysis in BESA Research. FEM head models take into account the individual volume conduction properties of the subject's head derived from the structural MRI data. This allows for more accurate source analysis (Yvert 1997, Lanfer 2012).&lt;br /&gt;
&lt;br /&gt;
To offer an easy integration with fMRI data we have, in collaboration with Rainer Goebel, optimized the interface between BESA Research and BrainVoyagerQX. &lt;br /&gt;
&lt;br /&gt;
With these tools, we can ...&lt;br /&gt;
* ... use fMRI BOLD regions or MRI structures to initialize dipole models.&lt;br /&gt;
* ... visualize dipoles from BESA Research models together with the structural MRI in BrainVoyager in order to evaluate the regions to which the dipoles may correspond.&lt;br /&gt;
* ... combine the localization advantages of (f)MRI with the high temporal resolution of EEG and MEG, for instance by using (f)MRI to place the sources, and the source waveforms of BESA Research to provide feedback about the time course of the source activity.&lt;br /&gt;
* ... overlay source analysis results obtained in BESA Research with fMRI data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' For simpler coregistration, we recommend to use BrainVoyagerQX rather than the older BrainVoyager, but BESA Research will work with both program versions.&lt;br /&gt;
&lt;br /&gt;
The chapters below describe the steps necessary to integrate the MRI and fMRI data with BESA Research. Detailed instructions on (f)MRI import and processing in Brain Voyager is provided by the '''BrainVoyager Getting Started Guide''' that can be downloaded from the Brain Innovation website (https://www.brainvoyager.com/downloads/downloads.html).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Aligning Coordinate Systems'''&lt;br /&gt;
&lt;br /&gt;
* For a given BESA data set, the electrode and other head surface points need to be aligned to the MRI coordinates.&lt;br /&gt;
* The basic steps necessary to align the EEG electrode locations, the MEG sensors and the MRI are described in Section “[[Integration_with_MRI_and_fMRI#Setting_Up_Coregistration_Using_BrainVoyager|How Coregistration is done]]”.&lt;br /&gt;
* Detailed instructions on how to align EEG / MEG and MRI data using BESA MRI can be found in the coregistration quick guide which is available on the BESA homepage ((http://www.besa.de/downloads/quick-guides/).&lt;br /&gt;
* Detailed instructions on how to align EEG / MEG and MRI data using BrainVoyager are described in Section “[[Integration_with_MRI_and_fMRI#Setting_Up_Coregistration_Using_BrainVoyager|How To set up Coregistration between BESA and BrainVoyager]]”.&lt;br /&gt;
* In BESA Research, all necessary settings with regard to the alignment are made in the [[Integration_with_MRI_and_fMRI#The_Coregistration_Dialog|Coregistration Dialog]].&lt;br /&gt;
* Requirements with respect to the MRI data for a good coregistration can be found in Section “''MRI Requirements for Good Coregistration”.''&lt;br /&gt;
* Requirements with respect to EEG and MEG data for a good coregistration can be found in Section “''EEG/MEG Data Requirements for Good Coregistration”.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Generating an individual, realistically shaped FEM head model'''&lt;br /&gt;
&lt;br /&gt;
* The generation of a FEM head model that can be used in BESA Research is done in BESA MRI as an additional step following the EEG / MEG to MRI coregistration.&lt;br /&gt;
* Detailed instructions on how to generate the FEM head model can be found in the coregistration quick guide which is available on the BESA homepage (http://www.besa.de/downloads/quick-guides/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Co-locating dipoles and MRI locations'''&lt;br /&gt;
&lt;br /&gt;
* After aligning the EEG / MEG and the MRI data it is possible to co-locate dipoles and MRI locations. This means, it is possible to visualize the dipoles and to specify the dipole parameters in the MRI coordinate system.&lt;br /&gt;
* “[[Integration_with_MRI_and_fMRI#Co-locating_Sources_and_MRI_in_the_BESA_Research_Source_Module|How to Co-locate sources and MRI in the BESA Research Source Module]]&amp;quot; describes how in the BESA Research Source Analysis module dipoles can directly be visualized in the space of the individual MRI.&lt;br /&gt;
* “[[Integration_with_MRI_and_fMRI#Send_a_Dipole_from_BESA_Research_to_BrainVoyager|How to Send a Dipole from BESA Research to BrainVoyager]]” describes how to send a source model from BESA Research to BrainVoyager for further inspection.&lt;br /&gt;
* “[[Integration_with_MRI_and_fMRI#Define_a_Dipole_in_BESA_Research_at_a_Location_Defined_in_the_MRI|How to Define a Dipole in BESA Research at a Location Defined in the MRI]]” describes how to insert a dipole at a location defined in the MRI in BrainVoyager.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''References'''&lt;br /&gt;
&lt;br /&gt;
Lanfer, B., I. Paul-Jordanov, M. Scherg, and C. H. Wolters. “Influence of Interior Cerebrospinal Fluid Compartments on EEG Source Analysis.” In Proceedings BMT 2012, Vol. 57. Jena: De Gruyter, 2012. doi:10.1515/bmt-2012-4020.&lt;br /&gt;
&lt;br /&gt;
Yvert, B., O. Bertrand, M. Thévenet, J. F. Echallier, and J. Pernier. “A Systematic Evaluation of the Spherical Model Accuracy in EEG Dipole Localization.” Electroencephalography and Clinical Neurophysiology 102, no. 5 (May 1997): 452–59. doi:16/S0921-884X(97)96611-X.&lt;br /&gt;
&lt;br /&gt;
== How Coregistration is done ==&lt;br /&gt;
&lt;br /&gt;
This section outlines the basic steps to coregister the EEG / MEG data to an individual MRI. These steps are necessary to load an individual MRI into BESA Research.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''What happens:'''&lt;br /&gt;
&lt;br /&gt;
* EEG / MEG sensor locations and the MRI data are defined in different coordinate systems. Setting up coregistration is the process of aligning the two coordinate systems.&lt;br /&gt;
* BESA Research uses the ''Coregistration Dialog'' to coordinate the alignment procedure.&lt;br /&gt;
* Alignment is done with the ''AC-PC-transformed MRI''.&lt;br /&gt;
* BESA Research displays the ''Talairach-transformed MRI'' in the source analysis module.&lt;br /&gt;
* A coregistration file (with the extension &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.sfh'''&amp;lt;/span&amp;gt;&amp;quot;) is used to mediate between BESA Research and BESA MRI (or BrainVoyagerQX):&lt;br /&gt;
* BESA Research writes the coregistration file which contains the coordinates of head surface points (fiducials, electrodes, other digitized surface points).&lt;br /&gt;
* The coordinates are read into BESA MRI (or BrainVoyager), and aligned with the AC-PC-transformed MRI. The alignment information is then appended to the ''coregistration file''. The names of the AC-PC MRI (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.vmr&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) and the surface mesh (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.srf&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;), and, if available, the Talairach transformation, are also appended.&lt;br /&gt;
* BESA Research reads the coregistration file and appends the name of the Talairach-transformed MRI and head surface. If a brain surface has been created, this is also appended.&lt;br /&gt;
* Subsequently, BESA Research reads the coregistration file automatically when loading the data file.&lt;br /&gt;
* In the BESA Research source module, the individual MRI is displayed instead of the standard MRI. Talairach coordinates of dipoles are the &amp;quot;real&amp;quot; Talairach coordinates as defined, e.g., in BrainVoyager.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The steps you have to take (once for each data set):'''&lt;br /&gt;
&lt;br /&gt;
* From the BESA Research ''Coregistration Dialog'', write a coregistration file. Switch to BESA MRI (or BrainVoyagerQX).&lt;br /&gt;
* If BESA MRI is used follow the steps in the coregistration quickguide which is available on the BESA homepage (http://www.besa.de/tutorials/quickguides/).&lt;br /&gt;
* If BrainVoyager is used follow the steps in Section “''How to set up coregistration between BESA and BrainVoyager”.''&lt;br /&gt;
* Back in BESA Research, reload the altered '''coregistration file'''. When using BESA MRI the file names of the generated surface and volume data files will be automatically filled in. When using BrainVoyager file names are only filled in automatically when the files are named according to the file naming conventions. Otherwise, file names have to be set manually.&lt;br /&gt;
* The coregistration file is now associated with the data file in the BESA Research database and will be used automatically the next time the file is opened in BESA Research. If the database entry is cleared, and the data are reloaded, you must make sure the coregistration file is also loaded (either using the ''Coregistration Dialog'' or the ''Channel and digitized head surface point information Dialog'').&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Alignment of BESA and MRICoordinate Systems  ==&lt;br /&gt;
&lt;br /&gt;
=== The Coregistration Dialog ===&lt;br /&gt;
&lt;br /&gt;
The dialog is opened either from the ''Channel and digitized head surface point information'' (&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-L'''&amp;lt;/span&amp;gt;) ''dialog ''by pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Edit/Coreg'''&amp;lt;/span&amp;gt; button, or from the main menu (&amp;quot;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''File/MRI&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Coregistration...'''&amp;lt;/span&amp;gt;&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the coregistration dialog is invoked from an EEG data set in which no digitized electrode coordinates are available (i.e. standard electrode positions located on a sphere are assumed), BESA Research presents a warning message, saying that for MRI coregistration realistic electrode coordinates produce better results. BESA Research has a list of such realistic standard coordinates (i.e. located on a pre-defined standard head surface) for various electrodes available in file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Default.sfp'''&amp;lt;/span&amp;gt;, which is located in the Standard Electrode folder. If all electrodes in the dataset are listed in this file, a dialog window suggests to apply this file to the current data set, i.e. to switch from standard sphere coordinates to the standard realistic electrode coordinates in file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Default.sfp'''&amp;lt;/span&amp;gt;. If the suggestion is accepted, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''default.sfp'''&amp;lt;/span&amp;gt; is assigned to the dataset (see Channel and digitized head surface point information (&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-L'''&amp;lt;/span&amp;gt;) dialog).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The Dialog:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (1).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Select MRI prog'''&amp;lt;/span&amp;gt; button to select your preferred MRI program. The current choice is between ''BESA MRI.exe'' and ''BrainVoyagerQX.exe''. The path to the MRI program is saved (in ''System\BESA.set'') and will be remembered by BESA Research. The top right hand button (now showing '''BESA MRI''') shows the current selection.&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''BESA MRI'''&amp;lt;/span&amp;gt; button to start the process of aligning the BESA Research and MRI coordinate systems. If no coregistration (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.sfh&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) file is defined in the dialog (empty ''Surface coregistration file edit box''), BESA Research will first prompt for a file name. We recommend saving this file to the folder where the MRIs are kept. The MRI program will then be started. When you return to the ''Coregistration Dialog'', BESA Research checks if the ''Coregistration File'' has changed. If so, the dialog is updated with the new information.&lt;br /&gt;
* Press the top &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Browse... '''&amp;lt;/span&amp;gt;button to select a preexisting ''Coregistration File''.&lt;br /&gt;
* The entries in the edit boxes below show the files that will be used in the BESA Research Source Analysis module when the individual MRI is loaded. When using BESA MRI the file names will be automatically filled in. If you are using BrainVoagerQX and you are following our (and the BrainVoyagerQX) recommended naming conventions for files, and the files exist, then the names will be filled in automatically after you have completed the alignment procedure in BrainVoyagerQX. Otherwise you may have to browse for the files.&lt;br /&gt;
* Below the edit boxes the FEM field states whether all necessary information for the individual FEM head model were found in the coregistration file. If the field says ''Individual FEM for EEG'' ''defined!'' then all necessary data was found and the individual FEM EEG head model can be used in the BESA Research Source Analysis module. A similar message indicates whether the FEM MEG head model is available.&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;Note that the MRI and the surfaces are Talairach-transformed! Alignment between BESA Research and the individual MRI is done with the MRI transformed to the AC-PC coordinate system, but the BESA Research Source Analysis module uses the Talairach-transformed image data and surfaces.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting Up Coregistration Using BrainVoyager ===&lt;br /&gt;
&lt;br /&gt;
It is assumed that you know how to load an MRI as a 3D data set into BrainVoyagerQX, and how to clean the image so that regions outside the head are black. We also assume knowledge of how to create AC-PC-aligned and Talairach-transformed MRIs.&lt;br /&gt;
&lt;br /&gt;
Perform the following steps:&lt;br /&gt;
&lt;br /&gt;
* BESA Research. Start the ''Coregistration Dialog''. Export the Coregistration File (head surface points) from your data by pressing the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''BrainVoyagerQX'''&amp;lt;/span&amp;gt; button in the dialog. Save the file to the directory where your MRI is located. BrainVoyagerQX is started.&lt;br /&gt;
* BrainVoyagerQX. Load the MRI corresponding to the EEG/MEG data. For optimal performance, the MRI should be cleaned so that regions outside the head are black. Prepare an AC-PC-transformed MRI and a Talairach MRI. For each, generate a surface mesh. Save these files following our recommended naming conventions (see chapter “[[Integration_with_MRI_and_fMRI#MRI_file_Name_Conventions|MRI File Name Conventions]]”). Save the Talairach coordinate file (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.tal&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;). If these steps have already been performed, load the ACPC MRI and load the ACPC mesh. If you want to generate a brain surface mesh, see chapter “[[Integration_with_MRI_and_fMRI#How_to_Generate_a_Brain_Surface_Mesh|How to Generate a Brain Surface Mesh]]”.&lt;br /&gt;
* BrainVoyagerQX. Load the Coregistration File (''EEG-MEG BESA/Load Surface Points''). The points will be displayed, but they are not aligned to the head:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (2).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. Define fiducial points on the head surface. Right click on the 3D head display and select the ''Fiducials Dialog'' in the drop-down menu:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (3).gif ‎]]  [[Image:MRI Integration (4).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. Rotate the head (by holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Shift '''&amp;lt;/span&amp;gt;button down and clicking and dragging with the mouse) so that the Nasion is clearly visible. Move the mouse to the Nasion, and press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl+Left Click'''&amp;lt;/span&amp;gt;. The coordinates of the Nasion are inserted into the dialog. Repeat for the left preauricular point, and then for the right preauricular point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (5).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;Note: if you have defined your fiducials differently in your BESA Research data (e.g. ear holes), click on the corresponding points in the MRI. If you have additional head surface points (step 8), accuracy in pinpointing the fiducials is not critical.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. In the Fiducials Dialog, press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit fiducials'''&amp;lt;/span&amp;gt; button. The head surface points are now more or less aligned to the head.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (6).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. Now select '''''EEG-MEG BESA/Fit Surface Points...'''''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (7).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you do not see the right half of the dialog, press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Advanced &amp;gt;&amp;gt;'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Specify the distances of the digitization points from the skin. In the illustration above, the digitization points for electrodes are estimated to be 8 mm from the surface of the head. For the purpose of accurate alignment, the distance of digitization points from skin section of the dialog needs to be filled in correctly. We recommend that &amp;quot;Restrain solution around fiducials&amp;quot; is checked, and a reasonable limit (here 3 mm) of the restraint is defined. Then press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (8).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BrainVoyager fits the points to the head, stretching x, y, and z coordinates to obtain a better fit than before.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;Note: The fit performed during this step accounts for scaling inequalities between the x, y, and z axes in the MRI. Coregistration gains in accuracy over the use of fiducials alone a) because more head surface points are used, and b) because the scaling inequalities are accounted for.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Alignment is now completed. If you only want to display the structural MRI in the BESA Source Module, you can return to the BESA Coregistration Dialog.&lt;br /&gt;
* BESA Research. When you switch back to the Coregistration Dialog, BESA Research will try to fill in the names of the Talairach MRI and surface meshes. If the names are not filled in, use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Browse...'''&amp;lt;/span&amp;gt; buttons to select the MRI and surface meshes. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; to save the Coregistration File. Alignment is completed!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The alignment steps need only be performed once for a given MRI and EEG/MEG data set. Otherwise, after starting BrainVoyager, just load the MRI, the surface mesh, and the surface points (see “[[Integration_with_MRI_and_fMRI#Coregistration_with_BrainVoyager_after_Alignment_has_been_Done |How to Set Up Coregistration with BrainVoyager after Alignment has been Done]]”). Now the following actions are possible: see chapters&lt;br /&gt;
&lt;br /&gt;
* [[Integration_with_MRI_and_fMRI#Co-locating_Sources_and_MRI_in_the_BESA_Research_Source_Module|How to Co-Locate Sources and MRI in the BESA Research Source Module]]&lt;br /&gt;
* [[Integration_with_MRI_and_fMRI#Send_a_Dipole_from_BESA_Research_to_BrainVoyager|How to Send a Dipole from BESA Research to BrainVoyager]]&lt;br /&gt;
* [[Integration_with_MRI_and_fMRI#Define_a_Dipole_in_BESA_Research_at_a_Location_Defined_in_the_MRI|How to Define a Dipole in BESA Research at a Location Defined in the MRI]]&lt;br /&gt;
&lt;br /&gt;
=== MRI file Name Conventions ===&lt;br /&gt;
&lt;br /&gt;
If you follow the naming conventions for file names as described here, BESA Research detects the file names it requires, and the ''Coregistration Dialog'' is filled in automatically.&lt;br /&gt;
&lt;br /&gt;
Please note that BESA MRI automatically uses these naming conventions for the generated files.&lt;br /&gt;
&lt;br /&gt;
* '''The AC-PC MRI file name''' should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_ACPC.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, and the corresponding surface mesh name should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_ACPC.srf'''&amp;lt;/span&amp;gt;&amp;quot;. After alignment, BrainVoyagerQX writes these names to the Coregistration File.&lt;br /&gt;
* '''The Talairach MRI file name '''should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, and the corresponding surface mesh name should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL.srf'''&amp;lt;/span&amp;gt;&amp;quot;. If defined, the brain surface mesh should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL_WM.srf'''&amp;lt;/span&amp;gt;&amp;quot; ('''WM''' = '''w'''hite '''m'''atter).&lt;br /&gt;
* '''How BESA Research finds the Talairach files.''' When BESA Research rereads the Coregistration File after alignment of the coordinate systems, it finds the ACPC file names and defines the corresponding TAL file names. If these files exist, the names are entered into the Coregistration Dialog. For instance, if the Coregistration File contains the name &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI'''&amp;lt;/span&amp;gt; &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''PB_ACPC.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, BESA Research will look for the files &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_TAL.srf'''&amp;lt;/span&amp;gt;&amp;quot;, and &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_TAL_WM.srf'''&amp;lt;/span&amp;gt;&amp;quot;. If these files exist, they are entered into the dialog.&lt;br /&gt;
* '''Older BrainVoyager version.''' If you use BrainVoyager.exe to align coordinate systems, the file names are not saved with the Coregistration File. In this case, browse for the Talairach or the ACPC MRI from the Coregistration Dialog. BESA Research will use the rules as described above to insert the correct file names into the dialog.&lt;br /&gt;
* '''Missing Talairach coordinates.''' If, after aligning coordinate systems, the Talairach coordinates are missing from the Coregistration File (you forgot to load the Talairach coordinates in BrainVoyagerQX, or you used BrainVoyager.exe), BESA Research will look for a file ending with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_ACPC.tal'''&amp;lt;/span&amp;gt;&amp;quot;, and read the coordinates from this file. You can also browse for a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.tal&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file in the Coregistration Dialog. For instance, if the MRI file is named &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_ACPC.vmr'''&amp;lt;/span&amp;gt;&amp;quot; or &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MR_'''&amp;lt;/span&amp;gt; &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''PB_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, BESA Research will look for &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_ACPC.tal'''&amp;lt;/span&amp;gt;&amp;quot; to find the Talairach coordinates.&lt;br /&gt;
* '''File names in the Coregistration File are saved relative to the Coregistration File location, if they are in the same folder.''' If the MRIs are in the same folder as the Coregistration File they will be recorded as &amp;quot;.\filename&amp;quot; (e.g. &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.\MRI PB_tal.vmr'''&amp;lt;/span&amp;gt;&amp;quot;). This means that you can copy the Coregistration File together with the MRIs and meshes to a different folder, and BESA Research will be able to locate the files when the Coregistration File is opened. If the MRIs are saved in a different folder from the Coregistration File, the absolute paths are saved in the file. If the files are moved to new locations, you will have to restart the Coregistration Dialog and redefine the file locations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How to Generate a Brain Surface Mesh ===&lt;br /&gt;
&lt;br /&gt;
BESA Research is able to compute surface images, such as (Cortical LORETA, Cortical CLARA, Minimum Norm) using an individual cortex surface as the source space. A suitable cortex surface for this purpose can be effortlessly created using BESA MRI. Alternatively, BrainVoyager can be used for the creation of the brain surface mesh.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''BESA MRI'''&lt;br /&gt;
* The brain surface generation is performed as one work step of the BESA MRI segmentation workflow.&lt;br /&gt;
* The cortex surface reconstruction is done using a robust and accurate automatic segmentation procedure.&lt;br /&gt;
* Details on how to generate the brain surface mesh in BESA MRI can be found in the coregistration quickguide which is available on the BESA homepage (http://www.besa.de/tutorials/quickguides/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''BrainVoyager'''&lt;br /&gt;
* BrainVoyagerQX provides a semiautomatic procedure to generate meshes for the brain surface of the Talairach MRI. Please refer to the BrainVoyager Help to find out how to do this.&lt;br /&gt;
* The result of the BrainVoyager procedure is two meshes, one for the left and one for the right hemisphere.&lt;br /&gt;
* BESA Research requires a single mesh. Therefore, load first one mesh (''Meshes/Load Mesh..''.), and append the other mesh (''Meshes/Add Mesh...''). Merge these two meshes (''Meshes/Merge'' ''meshes in surface window'') and then save the result (''Meshes/Save Mesh...''). If possible, use the recommended name conventions for the resulting file (file name ends in &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL_WM.srf&amp;quot;). '''&amp;lt;/span&amp;gt;For instance, if the Talairach MRI is named &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI PB_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, name the brain surface mesh &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI PB_TAL_WM.srf'''&amp;lt;/span&amp;gt;&amp;quot;.&lt;br /&gt;
* See also the '''BrainVoyager Getting Started Guide''' that can be downloaded from the Brain Innovation website (http://brainvoyager.com/Downloads.html).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Co-locating Dipoles and MRI Locations ==&lt;br /&gt;
&lt;br /&gt;
=== Co-locating Sources and MRI in the BESA Research Source Module ===&lt;br /&gt;
&lt;br /&gt;
If the alignment procedure using BESA MRI (or BrainVoyager) has been completed then you can load the individual structural MRI in the Source Module by pressing &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''''A''''&amp;lt;/span&amp;gt; or using a mouse right click and selecting '''''Display MRI'''''.&lt;br /&gt;
&lt;br /&gt;
Sources in the current model are then overlayed onto the individual MRI.&lt;br /&gt;
&lt;br /&gt;
A double-click at any location in the MRI will define a new source at the corresponding location in the BESA Research head model.&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (9).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
=== Coregistration with BrainVoyager after Alignment has been Done ===&lt;br /&gt;
&lt;br /&gt;
Alignment between BESA Research and BrainVoyager is only required once for a given BESA Research data set and the corresponding MRI. At a later time, if you want to Co-locate sources between BESA Research and BrainVoyager, perform the following steps in BrainVoyager:&lt;br /&gt;
* Load the MRI.&lt;br /&gt;
* Load the head surface mesh (''Meshes/Load Mesh..''.).&lt;br /&gt;
* Load the Coregistration File (''EEG-MEG BESA/Load Surface Points..''.).&lt;br /&gt;
&lt;br /&gt;
BrainVoyager is now ready for Co-location.&lt;br /&gt;
&lt;br /&gt;
=== Send a Dipole from BESA Research to BrainVoyager ===&lt;br /&gt;
&lt;br /&gt;
First, start BrainVoyager(QX). This can be done from the BESA Research Source Module by pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''BrainVoyager '''&amp;lt;/span&amp;gt;button. Note that in the Source Module, the ''Options / Preferences / BrainVoyager'' tab allows to define the path to BrainVoyager.&lt;br /&gt;
&lt;br /&gt;
In BrainVoyager, [[Integration_with_MRI_and_fMRI#Coregistration_with_BrainVoyager_after_Alignment_has_been_Done|set up coregistration]].&lt;br /&gt;
&lt;br /&gt;
In the BESA Research Source Module, highlight the dipole of interest.&lt;br /&gt;
&lt;br /&gt;
In the BESA Research Source Module, click on the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''BrainVoyager'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
Program control will automatically switch to BrainVoyager. The head will be cut at the section corresponding to the dipole of interest.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (10).gif‎|200px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that all dipoles in the current model are sent to BrainVoyager. The highlighted dipole (here, the red dipole) determines the plane at which the head will be cut.&lt;br /&gt;
&lt;br /&gt;
Note that the dipoles are visible in both the surface module and in the 2D view:&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (11).gif|400px]]&lt;br /&gt;
&lt;br /&gt;
=== Define a Dipole in BESA Research at a Location Defined in the MRI ===&lt;br /&gt;
&lt;br /&gt;
First set up coregistration (see chapter ''“[[Integration_with_MRI_and_fMRI#Coregistration_with_BrainVoyager_after_Alignment_has_been_Done|Coregistration with BrainVoyager after Alignment has been Done]]”'').&lt;br /&gt;
&lt;br /&gt;
In the BrainVoyager 2D MRI view, place the mouse over the point at which you would like to define a dipole. Right click at this point. If this point lies within an fRMI cluster, BrainVoyager will automatically determine its center and use it as a seeding point instead. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Send Seed Point To BESA....'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (12).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
The following Dialog is opened:&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (13).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Send to BESA'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The BESA Source Analysis window appears. The new dipole or regional source (depending on the setting in the ‘Options’ dialog in the Source Analysis window is now displayed at the corresponding location. If a dipole is seeded, BESA automatically fits its orientation. For further adjustment of the model, you may need to refit the orientation, e.g. at a certain time range, or in the presence of other sources.&lt;br /&gt;
&lt;br /&gt;
Detailed instructions on (f)MRI import and processing in Brain Voyager is provided by the '''BrainVoyager Getting Started Guide''' that can be downloaded from the Brain Innovation website ([http://brainvoyager.com/Downloads.html http://brainvoyager.com/Downloads.html]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference ==&lt;br /&gt;
&lt;br /&gt;
=== The Coregistration File (*.sfh) ===&lt;br /&gt;
&lt;br /&gt;
This file is used to mediate between BESA Research and BESA MRI (or BrainVoyager(QX)). When it is first written by BESA Research, it contains a list of the digitized head surface points (fiducials, electrodes, other digitized points), e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
NrOfPoints: 68&lt;br /&gt;
 Fid_Nz                    0.00000     103.10000       0.00000   3 255  128  255&lt;br /&gt;
 Fid_T9                  -78.40000       0.00000       0.00000   3 255  128  255&lt;br /&gt;
 Fid_T10                  73.00000       0.00000       0.00000   3 255  128  255&lt;br /&gt;
 Ele_E1                  -28.70000      23.90000     122.30000   3 255    0    0&lt;br /&gt;
 Ele_E2                  -80.40000      19.80000      75.90000   3 255    0    0&lt;br /&gt;
 Ele_E3                  -84.00000      37.90000       9.00000   3 255    0    0&lt;br /&gt;
 Ele_E4                  -17.60000      92.90000      89.10000   3 255    0    0&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
 Ele_E63                  -6.80000    -104.00000      54.40000   3 255    0    0&lt;br /&gt;
 Ele_E64                 -42.80000     -46.90000     115.60000   3 255    0    0&lt;br /&gt;
 Ele_Cz'                  -2.10000       2.20000     131.10000   3 255    0    0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each line contains a label, the coordinates in the Head Coordinate system, and parameters specifying the size and color of the sensor or head surface point as displayed in BESA MRI (or BrainVoyager).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After aligning the coordinate systems, BESA MRI (or BrainVoyagerQX) appends lines defining the transformation between the BESA Research and the MRI coordinate systems:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Trans-data(in BV-coords): 3 translation, 3 rotation (in grad), 3 scale&lt;br /&gt;
37.435 15.811 2.820 0.025 1.938 8.779  1.009 0.973 0.977&lt;br /&gt;
Fiducials:&lt;br /&gt;
41.7873  148.0180  128.0844&lt;br /&gt;
154.7772  169.4783  204.1080&lt;br /&gt;
147.0154  168.9746  54.1266&lt;br /&gt;
Midpoint (in BV-coords):&lt;br /&gt;
128.0000  128.0000  128.0000&lt;br /&gt;
Volume:  C:\BESA\Examples\ERP P300-Auditory\MRI_PB_acpc.vmr&lt;br /&gt;
Surface: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_acpc.srf&lt;br /&gt;
AC: 128 128 128&lt;br /&gt;
PC: 154 128 128&lt;br /&gt;
AP: 58 128 128&lt;br /&gt;
PP: 241 129 130&lt;br /&gt;
SP: 154 50 128&lt;br /&gt;
IP: 128 172 128&lt;br /&gt;
RP: 128 128 60&lt;br /&gt;
LP: 165 128 198&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: Older versions of BrainVoyager.exe do not append the lines starting with &amp;quot;Volume&amp;quot;. In addition, the Talairach coordinates (starting at &amp;quot;AC: ...&amp;quot;) are not appended if they were not loaded in BrainVoyagerQX.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, when the Coregistration Dialog in BESA Research has found the Talairach MRI and surface meshes, and you press the OK button, BESA Research appends the additional file names:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TalVolume: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_tal.vmr&lt;br /&gt;
TalSurface: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_tal.srf&lt;br /&gt;
TalBrainSurface: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_tal_wm.srf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA MRI already inserts the correct file names into the coregistration file when doing the coregistration. When also an EEG or MEG  FEM head model is generated then additional lines are appended to the coregistration file containing the file names of the generated FEM data files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MRI Requirements for Good Coregistration ===&lt;br /&gt;
&lt;br /&gt;
We recommend a high quality T1-weighted anatomical image with 1 mm³ voxels (e.g. 256 x 256 saggital scan with 1 mm spacing).&lt;br /&gt;
&lt;br /&gt;
In order to define the surface mesh, a clear contrast between the head surface and the outside of the head (T1-weighting) is required. Noise and measurement artifacts can influence the representation of the scalp surface. When doing the coregistration in BrainVoyager improvements in noisy images often can be achieved by cleaning up the image after first reading it using the tools provided by BrainVoyager.&lt;br /&gt;
&lt;br /&gt;
For coregistration with head surface points, it is useful to include the whole head in the image, including nose and ears. If surface points on the nose are included with the EEG/MEG data set, these points help to stabilize the fit of head surface points to the surface mesh.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EEG/MEG Data Requirements for Good Coregistration ===&lt;br /&gt;
&lt;br /&gt;
We recommend several (30 or more) digitized head surface points in addition to the fiducials, including points on the nose (nose tip and sides). These points may include electrodes. In the case of electrodes, it is important to measure the distance from the scalp to the digitization point, i.e. the electrode thickness.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Research Manual]]&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-03-27T12:47:21Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Cortical LORETA */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
===Short mathematical introduction===&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
===Applying the Beamformer===&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the time-domain beamformer from the Average tab of the Paradigm dialog box'''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the&lt;br /&gt;
'''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is&lt;br /&gt;
superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF44.png]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the&lt;br /&gt;
activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple-source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in&lt;br /&gt;
the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the&lt;br /&gt;
beamformer image).''&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png]]&lt;br /&gt;
&lt;br /&gt;
''Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The&lt;br /&gt;
source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in&lt;br /&gt;
the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the&lt;br /&gt;
location (blue square in the figure) is not considered for the multiple-source beamformer.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is&lt;br /&gt;
performed.&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
===Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image===&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a&lt;br /&gt;
source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons '''&amp;lt;u&amp;gt;Switch to Maximum&amp;lt;/u&amp;gt;''' and '''&amp;lt;u&amp;gt;Add Source&amp;lt;/u&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for '''&amp;lt;u&amp;gt;source coherence&amp;lt;/u&amp;gt;''' analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press '''N''' key when there is no source in the current source array or&lt;br /&gt;
there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press '''N''' key when there is more than one regional or dipole source in&lt;br /&gt;
the current source array.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting ''Hide Image'' entry in the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (vmp) format from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* For scaling options, use the and Image Scale toolbar buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volume tab of the Image Settings &amp;lt;u&amp;gt;dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:CorticalLOR.png‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:CorticalLOR.png</id>
		<title>File:CorticalLOR.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:CorticalLOR.png"/>
				<updated>2019-03-27T12:46:37Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-03-27T12:42:51Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* swLORETA */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
===Short mathematical introduction===&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
===Applying the Beamformer===&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the time-domain beamformer from the Average tab of the Paradigm dialog box'''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the&lt;br /&gt;
'''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is&lt;br /&gt;
superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF44.png]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the&lt;br /&gt;
activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple-source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in&lt;br /&gt;
the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the&lt;br /&gt;
beamformer image).''&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png]]&lt;br /&gt;
&lt;br /&gt;
''Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The&lt;br /&gt;
source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in&lt;br /&gt;
the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the&lt;br /&gt;
location (blue square in the figure) is not considered for the multiple-source beamformer.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is&lt;br /&gt;
performed.&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
===Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image===&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a&lt;br /&gt;
source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons '''&amp;lt;u&amp;gt;Switch to Maximum&amp;lt;/u&amp;gt;''' and '''&amp;lt;u&amp;gt;Add Source&amp;lt;/u&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for '''&amp;lt;u&amp;gt;source coherence&amp;lt;/u&amp;gt;''' analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press '''N''' key when there is no source in the current source array or&lt;br /&gt;
there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press '''N''' key when there is more than one regional or dipole source in&lt;br /&gt;
the current source array.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting ''Hide Image'' entry in the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (vmp) format from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* For scaling options, use the and Image Scale toolbar buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volume tab of the Image Settings &amp;lt;u&amp;gt;dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (46).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-03-27T12:41:28Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* swLORETA */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
===Short mathematical introduction===&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
===Applying the Beamformer===&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the time-domain beamformer from the Average tab of the Paradigm dialog box'''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the&lt;br /&gt;
'''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is&lt;br /&gt;
superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF44.png]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the&lt;br /&gt;
activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple-source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in&lt;br /&gt;
the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the&lt;br /&gt;
beamformer image).''&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png]]&lt;br /&gt;
&lt;br /&gt;
''Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The&lt;br /&gt;
source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in&lt;br /&gt;
the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the&lt;br /&gt;
location (blue square in the figure) is not considered for the multiple-source beamformer.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is&lt;br /&gt;
performed.&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
===Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image===&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a&lt;br /&gt;
source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons '''&amp;lt;u&amp;gt;Switch to Maximum&amp;lt;/u&amp;gt;''' and '''&amp;lt;u&amp;gt;Add Source&amp;lt;/u&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for '''&amp;lt;u&amp;gt;source coherence&amp;lt;/u&amp;gt;''' analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press '''N''' key when there is no source in the current source array or&lt;br /&gt;
there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press '''N''' key when there is more than one regional or dipole source in&lt;br /&gt;
the current source array.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting ''Hide Image'' entry in the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (vmp) format from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* For scaling options, use the and Image Scale toolbar buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volume tab of the Image Settings &amp;lt;u&amp;gt;dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (46).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-03-27T12:40:34Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* sLORETA */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
===Short mathematical introduction===&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
===Applying the Beamformer===&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the time-domain beamformer from the Average tab of the Paradigm dialog box'''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the&lt;br /&gt;
'''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is&lt;br /&gt;
superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF44.png]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the&lt;br /&gt;
activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple-source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in&lt;br /&gt;
the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the&lt;br /&gt;
beamformer image).''&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png]]&lt;br /&gt;
&lt;br /&gt;
''Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The&lt;br /&gt;
source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in&lt;br /&gt;
the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the&lt;br /&gt;
location (blue square in the figure) is not considered for the multiple-source beamformer.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is&lt;br /&gt;
performed.&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
===Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image===&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a&lt;br /&gt;
source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons '''&amp;lt;u&amp;gt;Switch to Maximum&amp;lt;/u&amp;gt;''' and '''&amp;lt;u&amp;gt;Add Source&amp;lt;/u&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for '''&amp;lt;u&amp;gt;source coherence&amp;lt;/u&amp;gt;''' analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press '''N''' key when there is no source in the current source array or&lt;br /&gt;
there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press '''N''' key when there is more than one regional or dipole source in&lt;br /&gt;
the current source array.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting ''Hide Image'' entry in the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (vmp) format from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* For scaling options, use the and Image Scale toolbar buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volume tab of the Image Settings &amp;lt;u&amp;gt;dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (46).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-03-27T11:54:34Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
===Short mathematical introduction===&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
===Applying the Beamformer===&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the time-domain beamformer from the Average tab of the Paradigm dialog box'''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the&lt;br /&gt;
'''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is&lt;br /&gt;
superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF44.png]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the&lt;br /&gt;
activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple-source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in&lt;br /&gt;
the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the&lt;br /&gt;
beamformer image).''&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png]]&lt;br /&gt;
&lt;br /&gt;
''Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The&lt;br /&gt;
source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in&lt;br /&gt;
the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the&lt;br /&gt;
location (blue square in the figure) is not considered for the multiple-source beamformer.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is&lt;br /&gt;
performed.&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
===Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image===&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a&lt;br /&gt;
source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons '''&amp;lt;u&amp;gt;Switch to Maximum&amp;lt;/u&amp;gt;''' and '''&amp;lt;u&amp;gt;Add Source&amp;lt;/u&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for '''&amp;lt;u&amp;gt;source coherence&amp;lt;/u&amp;gt;''' analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press '''N''' key when there is no source in the current source array or&lt;br /&gt;
there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press '''N''' key when there is more than one regional or dipole source in&lt;br /&gt;
the current source array.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting ''Hide Image'' entry in the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (vmp) format from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* For scaling options, use the and Image Scale toolbar buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volume tab of the Image Settings &amp;lt;u&amp;gt;dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (46).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-03-27T11:51:40Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
===Short mathematical introduction===&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
===Applying the Beamformer===&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the time-domain beamformer from the Average tab of the Paradigm dialog box'''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the&lt;br /&gt;
'''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is&lt;br /&gt;
superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF44.png]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the&lt;br /&gt;
activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple-source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in&lt;br /&gt;
the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the&lt;br /&gt;
beamformer image).''&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png]]&lt;br /&gt;
&lt;br /&gt;
''Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The&lt;br /&gt;
source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in&lt;br /&gt;
the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the&lt;br /&gt;
location (blue square in the figure) is not considered for the multiple-source beamformer.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is&lt;br /&gt;
performed.&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
===Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image===&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a&lt;br /&gt;
source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons '''&amp;lt;u&amp;gt;Switch to Maximum&amp;lt;/u&amp;gt;''' and '''&amp;lt;u&amp;gt;Add Source&amp;lt;/u&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for '''&amp;lt;u&amp;gt;source coherence&amp;lt;/u&amp;gt;''' analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press '''N''' key when there is no source in the current source array or&lt;br /&gt;
there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press '''N''' key when there is more than one regional or dipole source in&lt;br /&gt;
the current source array.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting Hide Image entry in the Image menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (vmp) format from the Image menu.&lt;br /&gt;
* For scaling options, use the and Image Scale toolbar buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the Standard Volume tab of the Image Settings dialog box.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (46).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-03-27T11:42:36Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Applying the Beamformer */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
===Short mathematical introduction===&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
===Applying the Beamformer===&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the time-domain beamformer from the Average tab of the Paradigm dialog box'''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the&lt;br /&gt;
'''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is&lt;br /&gt;
superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF44.png]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the&lt;br /&gt;
activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple-source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in&lt;br /&gt;
the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the&lt;br /&gt;
beamformer image).''&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png]]&lt;br /&gt;
&lt;br /&gt;
''Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The&lt;br /&gt;
source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in&lt;br /&gt;
the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the&lt;br /&gt;
location (blue square in the figure) is not considered for the multiple-source beamformer.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is&lt;br /&gt;
performed.&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
===Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image===&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a&lt;br /&gt;
source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons Switch to Maximum and Add Source&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press N key when there is no source in the current source array or&lt;br /&gt;
there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press N key when there is more than one regional or dipole source in&lt;br /&gt;
the current source array.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting Hide Image entry in the Image menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (vmp) format from the Image menu.&lt;br /&gt;
* For scaling options, use the and Image Scale toolbar buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the Standard Volume tab of the Image Settings dialog box.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (46).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-03-27T11:35:57Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Multiple Source Beamformer (MSBF) in the Time Domain */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
===Short mathematical introduction===&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
===Applying the Beamformer===&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the time-domain beamformer from the Average tap of the Paradigm dialog box'''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the&lt;br /&gt;
'''&amp;lt;u&amp;gt;Average tap of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is&lt;br /&gt;
superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF44.png]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tap of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the&lt;br /&gt;
activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple-source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in&lt;br /&gt;
the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the&lt;br /&gt;
beamformer image).''&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tap of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png]]&lt;br /&gt;
&lt;br /&gt;
''Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The&lt;br /&gt;
source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in&lt;br /&gt;
the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the&lt;br /&gt;
location (blue square in the figure) is not considered for the multiple-source beamformer.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tap of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is&lt;br /&gt;
performed.&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
===Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image===&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a&lt;br /&gt;
source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons Switch to Maximum and Add Source&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press N key when there is no source in the current source array or&lt;br /&gt;
there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press N key when there is more than one regional or dipole source in&lt;br /&gt;
the current source array.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting Hide Image entry in the Image menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (vmp) format from the Image menu.&lt;br /&gt;
* For scaling options, use the and Image Scale toolbar buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the Standard Volume tab of the Image Settings dialog box.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (46).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-03-27T11:32:09Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Applying the Beamformer */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
&lt;br /&gt;
===Short mathematical introduction===&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
===Applying the Beamformer===&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the time-domain beamformer from the Average tap of the Paradigm dialog box'''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the&lt;br /&gt;
'''&amp;lt;u&amp;gt;Average tap of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is&lt;br /&gt;
superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF44.png]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tap of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the&lt;br /&gt;
activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple-source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in&lt;br /&gt;
the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the&lt;br /&gt;
beamformer image).''&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tap of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png]]&lt;br /&gt;
&lt;br /&gt;
''Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The&lt;br /&gt;
source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in&lt;br /&gt;
the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the&lt;br /&gt;
location (blue square in the figure) is not considered for the multiple-source beamformer.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tap of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is&lt;br /&gt;
performed.&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
===Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image===&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a&lt;br /&gt;
source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons Switch to Maximum and Add Source&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press N key when there is no source in the current source array or&lt;br /&gt;
there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press N key when there is more than one regional or dipole source in&lt;br /&gt;
the current source array.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting Hide Image entry in the Image menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (vmp) format from the Image menu.&lt;br /&gt;
* For scaling options, use the and Image Scale toolbar buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the Standard Volume tab of the Image Settings dialog box.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (46).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:MSBF_Button.png</id>
		<title>File:MSBF Button.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:MSBF_Button.png"/>
				<updated>2019-03-27T11:10:53Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-03-27T11:10:34Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Applying the Beamformer */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
&lt;br /&gt;
===Short mathematical introduction===&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
===Applying the Beamformer===&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the time-domain beamformer from the Average tap of the Paradigm dialog box'''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the&lt;br /&gt;
'''&amp;lt;u&amp;gt;Average tap of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is&lt;br /&gt;
superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF44.png]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tap of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the&lt;br /&gt;
activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple-source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in&lt;br /&gt;
the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the&lt;br /&gt;
beamformer image).''&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the Average tap of the Paradigm dialog box, the bilateral beamformer scan is performed. In the source analysis window, the beamformer&lt;br /&gt;
computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current&lt;br /&gt;
solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the Image menu&lt;br /&gt;
or from the Image selector button dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (46).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:MSBF66.png</id>
		<title>File:MSBF66.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:MSBF66.png"/>
				<updated>2019-03-27T11:04:55Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:MSBF55.png</id>
		<title>File:MSBF55.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:MSBF55.png"/>
				<updated>2019-03-27T11:04:43Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-03-27T11:04:10Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Multiple Source Beamformer (MSBF) in the Time Domain */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
&lt;br /&gt;
===Short mathematical introduction===&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
===Applying the Beamformer===&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the time-domain beamformer from the Average tap of the Paradigm dialog box'''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the&lt;br /&gt;
'''&amp;lt;u&amp;gt;Average tap of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is&lt;br /&gt;
superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (46).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:MSBF4.png</id>
		<title>File:MSBF4.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:MSBF4.png"/>
				<updated>2019-03-27T10:53:03Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:MSBF3.png</id>
		<title>File:MSBF3.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:MSBF3.png"/>
				<updated>2019-03-27T10:52:52Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:MSBF2.png</id>
		<title>File:MSBF2.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:MSBF2.png"/>
				<updated>2019-03-27T10:52:35Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-03-27T10:52:19Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: /* Multiple Source Beamformer (MSBF) in the Time Domain */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
where '''C-1''' is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally&lt;br /&gt;
additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source&lt;br /&gt;
waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF2.png]]&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals.&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF3.png]]&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing&lt;br /&gt;
distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power.&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the ''[[#See also|General Settings]]''. A value q(r) is defined as described in&lt;br /&gt;
the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
[[File:MSBF1.png]]&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (46).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:MSBF1.png</id>
		<title>File:MSBF1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:MSBF1.png"/>
				<updated>2019-03-27T10:40:47Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: Jamie uploaded a new version of &amp;amp;quot;File:MSBF1.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:MSBF1.png</id>
		<title>File:MSBF1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:MSBF1.png"/>
				<updated>2019-03-27T10:38:49Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2019-03-27T10:38:23Z</updated>
		
		<summary type="html">&lt;p&gt;Jamie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 6: &amp;quot;''Time-frequency analysis and Source coherence''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG&lt;br /&gt;
&lt;br /&gt;
channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[#See also|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, r or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:* The spatial weighting matrix V: This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
&lt;br /&gt;
* Regularization: The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter “''Regularization of Distributed Volume Images” ''for more information.&lt;br /&gt;
* Standardization: Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* Iterations: Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter “''User-Defined Volume Tab”'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
* One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
* Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor of dataset Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (42).gif]]&lt;br /&gt;
&lt;br /&gt;
''Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (46).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Two methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Jamie</name></author>	</entry>

	</feed>