← Back to home

EEG Simulator

A sibling to the PET scanner simulator. Describe a recording in a few lines, record it from dipole sources inside a layered head, contaminate it with the artifacts every lab knows, and then do what an analyst does: re-reference, filter, remove components, average and localize. Every view is computed from the same simulated data, and the simulator always knows the truth, so you can check every answer.

Working
The idea: from a synapse to a number in a file

An EEG sample is the end of a chain of five physical steps. Synaptic currents in thousands of aligned pyramidal cells add up to a current dipole. The dipole drives volume currents through the brain, the cerebrospinal fluid, the skull and the scalp, so a potential appears everywhere on the head. Electrodes sample that potential at standard positions. A differential amplifier measures each electrode against a reference and rejects what they share. A digitizer samples the result in time and rounds it to whole steps. Each stage below is interactive; each one leaves a fingerprint you will meet again in the recording.

Pyramidal cells and the dipole they form animated; the current loop of an excitatory synapse on the apical dendrite

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. Positive current enters the apical dendrites at the synapses (a current sink in the extracellular space, so negative there), flows down inside the cell and leaves near the soma (a source). Seen from far away the loop is a current dipole.

Scalp map for the active patch, computed with the same head model the rest of the simulator uses. Synchronous cells add linearly, N of them making N times one cell's dipole; asynchronous cells add like a random walk, as the square root of N. That is why EEG sees synchrony, not activity. The numbers are order-of-magnitude estimates.