← Back to home

MEG Simulator

A sibling to the EEG simulator and the PET scanner simulator. Describe a recording in a few lines, record the magnetic field of current dipoles in the head with SQUIDs in a helmet or with OPMs on the scalp, let the elevator, the traffic, the heart and the eyes in, and then do what an MEG lab does: shield, compensate, project, separate, filter, average and localize. The simulator always knows the truth, so every answer can be checked.

Working
The idea: a field a billion times weaker than the Earth's

When tens of thousands of pyramidal cells in a patch of cortex receive synaptic input at the same moment, the currents flowing inside their apical dendrites add up to a current dipole of a few tens of nanoampere-metres. Its magnetic field leaves the head undistorted by the skull and is about 100 femtotesla a few centimetres away: a billionth of the Earth's field, and a millionth of the field of a car passing in the street. Measuring it takes the most sensitive detectors there are, SQUIDs, coupled to pickup coils in a helmet; liquid helium in a dewar to keep them superconducting; a magnetically shielded room to keep the world out; and head position coils and a digitizer to know where the head is. Optically pumped magnetometers (OPMs) are a newer way to do the same thing at room temperature, on the scalp. Click a part of the system, or a stage below, to see how it works.

The system click a part to read about it

Pyramidal cells and the current dipole they form animated; current flows down the apical dendrites

A fold of cortex. Pyramidal cells stand perpendicular to the cortical surface, so on the crown of a gyrus they point at the scalp and on the wall of a sulcus they lie along it. An excitatory synapse on the apical dendrite lets positive charge in; it flows down inside the cell (the primary current, blue arrows) and returns through the surrounding tissue (the volume current, grey). Seen from a few centimetres away the loop is a current dipole, and its magnetic field circles the primary current (dots: field out of the page, crosses: into it).

Magnetometer field map and EEG potential map of the active patch, from the same head model as the rest of the simulator. Synchronous cells add linearly; asynchronous ones add like a random walk, as the square root of their number. A radial patch on a gyral crown is nearly invisible to MEG; two opposed sulcal walls cancel for both methods.