Phasic← Overview

Montages and re-referencing

Panel:      Tools ▸ Montage
Requires:   (no feature flag)
Applies to: electrophysiological channels

A montage changes what each displayed channel is by recombining the recorded ones. EEG is recorded against some reference, and which reference you use changes what the signal looks like; re-referencing lets you choose after the fact.

A montage owns the displayed channel set. While one is active it determines which channels exist, their order and their names, so channel selection is not applied on top.

Kinds

Average reference

Subtracts the mean of the channels from each channel — the common average reference (CAR).

The average is taken over scalp-eligible channels only, not over everything present. In a recording combining EEG with ECG, EOG and respiration, the reference is the mean of the EEG channels; the others neither contribute to it nor are re-referenced by it.

This is what makes CAR meaningful on a mixed recording. Averaging an ECG lead into an EEG reference would inject cardiac activity into every EEG channel.

Custom reference

Re-references every channel to the mean of one or more channels you nominate — a single mastoid, a linked-mastoid pair, or any other set.

A channel referenced to itself becomes exactly flat, which is correct rather than a bug: its own signal minus itself is zero. The channel is kept in the display so the montage’s channel count stays predictable.

Nominating no channels is the identity — nothing changes.

Bipolar derivations

Each output channel is the difference between two recorded channels, as a chain of derivations along the scalp. Common in clinical review, where a bipolar montage localises activity by showing where a phase reversal occurs.

How a montage is resolved

A montage is stored as intent — “average reference”, “referenced to these channels” — and compiled against the recording’s actual channels when it is applied. Consequences:

  • An out-of-range channel is ignored rather than failing the montage
  • Repeated weights for the same source channel are merged, and weights that come out at (or near) zero are dropped
  • The same montage applies to a different recording with different channels, resolving against whatever is there

Order

The montage runs after bad-channel interpolation and before filters.

Interpolation first means a montage references repaired channels rather than broken ones — a bad channel included in an average reference would otherwise contaminate every channel.

Filters afterwards means filtering acts on the derived signal.