Skip to content

Channel sweep should use spatially-distributed subsets, not the first N electrodes #91

Closed

Description

@neuromechanist

Problem

The channel sweep in benchmark_dimsweep.py and benchmark_decompose.py slices full[:nc] -- the first nc electrodes in file order. For ds002718 (EEG001..EEG070) the first 16/32/48 electrodes are a spatial cluster (one region of the scalp), not a whole-head montage. So the reduced-channel decompositions and their IC scalp maps look spatially focused/odd (as seen in the Phase 3 16ch topomaps) -- they are not a physically meaningful reduced cap.

Fix

For each target channel count, pick electrodes evenly distributed across the scalp so 16/32/48/70ch each cover the whole head. Options:

  • Greedy farthest-point sampling on the 3D electrode positions (from electrodes.tsv), or
  • A standard reduced montage (e.g. a 10-20 subset) matched by position.

This keeps the channel/k sweep interpretable (each subset is a proper whole-head decomposition) and makes the topomap comparison meaningful at every channel count. Timing results are largely unaffected (same channel counts), but the IC-equivalence figures at 16/32/48ch become physically sensible.

Context

Surfaced in Phase 3 (#87): the 16ch IC topomaps target clustered regions because the first 16 electrodes are co-located. The equivalence numbers (k-factor trend) still hold; this is about the spatial validity of the reduced-channel maps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions