MEG current phantom (Elekta-Neuromag)

Authors: Ken Taylor, John Mosher

This tutorial explains how to import and process Elekta-Neuromag current phantom recordings. We decided to release this example for testing and cross-validation purposes. With these datasets, we can evaluate the equivalence of various forward models and dipole fitting methods in the case of simple recordings with single dipoles. The recordings are available in two file formats (native and FIF) to cross-validate the file readers available in Brainstorm and MNE. A similar page exists for the CTF phantom.

License

This tutorial dataset remains a property of its authors: Ken Taylor, John Mosher (Epilepsy Center, Cleveland Clinic Neurological Institute, Cleveland, OH USA).

If you reference this dataset in your publications, please acknowledge them and cite Brainstorm as indicated on the website. For questions, please contact us through the forum.

The phantom

A current phantom is provided with the Elekta Neuromag for checking the system performance. It contains 32 artificial dipoles and four fixed head-position indicator coils. The phantom is based on the mathematical fact that an equilateral triangular line current produces equivalent magnetic field distribution to that of a tangential current dipole in a spherical conductor, provided that the vertex of the triangle and the origin of the conducting sphere coincide. For a detailed description of how the phantom works, see here.

The phantom dipoles are energized using an internal signal generator which also feeds the HPI coils. An external multiplexer box is used to connect the signal to the individual dipoles. Only one dipole can be activated at a time. The location of the dipole is recorded relative to the center of the sphere (0,0,0)m, where X is positive toward the nasion, Y is positive toward the left ear and Z is positive toward the top of the head (see the CoordinateSystems tutorial for more details).

Use of the phantom is shown below. Note that the uncovered version is the phantom that came with the Neuromag-122, which explicitly shows the wiring. The covered version uses the same principle but somewhat different dipole locations. Further details are available in Section 7.2 of the User's Manual.

References

R.J. Ilmoniemi, M.S. Hämäläinen, and J. Knuutila, The Forward and Inverse Problems in the Spherical Model. In: Biomagnetism: Applications and Theory, eds. H. Weinberg, G. Stroink, T. Katil, Pergamon Press, 1985.

Elekta Neuromag System Hardware User's Manual, Revision G, September 2005.

Description of the experiment

Files distributed as part of the CTF phantom tutorial:

Download and installation

Generate anatomy

Access the recordings

We can now review one of the raw kojak data sets. These have been generated by sequentially activating each of the 32 phantom dipoles in a single raw file.

Close the figure and double click the link to raw file to open a list of the events. At this point, you may wish to rename your groups so that the ordering remains convenient. To do this, click group 1, click Events > Rename group, and rename it to "01". Repeat this for 2 - 9.

This step, and others like it, can also be performed by importing the data into MATLAB, running the following code below, and then exporting the data back into Brainstorm:

Trim away the singleton events by clicking on "256 (x1)", shift clicking on "7936 (x1)" and pressing the delete key. Also remove the first event from dipole 01 by clicking on it, clicking on the first time instant, and pressing the delete key. Events should now appear as per the image below:

Note: Make sure to save the modifications that you make before proceeding. If you hit the grey X to close all figures and clear memory, you will be prompted to save modifications, and you should click "Yes".

Importing the dipole events

Right click on "Link to raw file" and click "Import in database"

With the epochs loaded, we can now calculate the noise covariance from the prestims. To do this, select all 32 dipoles (click the first then shift click the last), then right click, "Noise covariance > Compute from recordings". Uncheck "MEG MAG" and hit "OK".

Average all of the epochs by selecting all 32 again, dragging them to the process box, clicking "RUN". Next click the cog, and select "Average" > "Average files". Group the files "By trial group (folder average)", and select "Arithmetic average: mean(x)", and click "Run".

Import and average

Noise covariance

Use the empty room recordings.

Source estimation

Compute a forward model and inverse model for a regular grid inside the phantom volume.

Dipole scanning

Scan the for the most significant dipole in the grid of computed dipoles estimate previously.

Dipole fitting with FieldTrip

Perform a non-linear dipole fit with the function ft_dipolefitting from the FieldTrip toolbox.

Results comparison

Condition

Method

Forward model

X

Y

Z

GOF

Nominal location

0

-18

49

mm

200uA

Scanning (5mm)

Single sphere

-1.00

-16.00

44.00

99.80%

Scanning (5mm)

Overlapping spheres

-1.00

-16.00

44.00

99.81%

Scanning (5mm)

OpenMEEG BEM

-1.00

-16.00

44.00

99.76%

Fitting

Single sphere

-1.04

-17.00

43.98

99.95%

Fitting

Overlapping spheres

-1.05

-16.98

44.00

99.95%

CTF software

-1

-17

44

99.95%

MNE software

-0.79

-17.00

43.98

99.9%

20uA

Scanning (5mm)

Single sphere

-1.00

-16.00

44.00

96.94%

Scanning (5mm)

Overlapping spheres

-1.00

-16.00

44.00

96.96%

Scanning (5mm)

OpenMEEG BEM

-1.00

-16.00

44.00

96.90%

Fitting

Single sphere

-1.75

-17.13

44.39

98.25%

Fitting

Overlapping spheres

-1.78

-17.14

44.45

98.25%

CTF software

-1

-17

44

98.38%

MNE software

-1.38

-16.31

44.01

99.1%

The nominal location indicates where the dipole is supposed to be, relative to the center of the sphere. It is measured with rulers with an overall precision of about 5mm. The range of discrepancy we observe between this nominal location and the position of the dipole estimated from the recordings is acceptable.

Advanced

Digitized head points

The head points collected with the Brainstorm digitizer are usually copied to the .ds folders and imported automatically when loading the recordings. We decided not to include them in this example because in the case of this current phantom, there is no ambiguity in the definition of the anatomical fiducials. As this refined registration with the .pos files is not part of the standard CTF workflow, not including it will make it easier to compare the workflow and results with other programs.

For additional testing purposes, the .pos file for the phantom is included in the sample_phantom.zip package, but you have to add it manually to the recordings. Do not use these points to refine automatically the registration: the fitting algorithm may fail finding the best rotation around the Z axis because the phantom is completely spherical, and the registration is already close to perfection.

Scripting

Generate Matlab script

Available in the Brainstorm distribution: brainstorm3/toolbox/script/tutorial_phantom_ctf.m

Tutorials/PhantomElekta (last edited 2016-05-09 17:59:08 by ?KenTaylor)