Bad channels
Panel: Tools ▸ Bad channels
Requires: (no feature flag)
Applies to: channels with scalp positions
A channel may be unusable — a disconnected electrode, one with failing contact, one saturated by an artifact. Phasic can flag these and reconstruct them from the surrounding electrodes.
Interpolation is transparent to the channel set. The channel count, order and names are unchanged; only the samples of the flagged channels differ. This is why it runs before the montage and does not own the displayed channels.
Detection
Detection uses robust statistics — a channel is judged against the spread of the array, using measures that a single extreme artifact cannot distort. Criteria:
| Criterion | Meaning |
|---|---|
| Flat | Spread far below the array median, or near zero absolutely — a dead, railed or disconnected electrode |
| Noisy | Spread far above the array median — a high-amplitude outlier |
| Line noise | Dominated by mains interference relative to its neighbours |
| Uncorrelated | Poorly correlated with the rest of the array, where genuine brain signal would correlate |
Each has a conservative default threshold. Detection is a suggestion: it flags candidates and you decide. Nothing is interpolated without being marked bad.
Interpolation
A flagged channel is replaced by a spherical-spline interpolation of the good channels (Perrin, Pernier, Bertrand & Echallier, 1989) — the same method MNE and EEGLAB use, so results are comparable with those tools.
The interpolated value is a smooth function over the sphere fitted to the good electrodes. Because the fit is linear in the data, it reduces to a fixed weighted sum of the good channels, which is why interpolation composes with montages rather than fighting them.
Requirements and limits
Interpolation needs electrode positions. A channel whose name matches no known position,
and which has no position from a BIDS electrodes.tsv sidecar, cannot be interpolated —
there is no geometry to interpolate from.
Interpolation invents nothing. A reconstructed channel contains a smooth estimate from its neighbours, not recovered data. If an electrode recorded nothing useful, its interpolation carries no information that was not already in the surrounding channels. Treat a reconstructed channel as what it is: a plausible fill, not a measurement.
Interpolating many neighbouring channels degrades quickly. With a whole region flagged, there are no nearby good electrodes for the fit to use.