Level 2

Preprocessing as a Pipeline

Take a raw file to clean continuous data with a scripted, logged, defensible pipeline — and be able to explain every ordering decision.

You can now…

  • Load and BIDS-ify data
  • Find and interpolate bad channels
  • Re-reference with intent
  • Choose filter settings by analysis goal
  • Reject artifacts without biasing conditions
  • Classify ICA components and compare ICA with ASR
  • Produce a QC report per subject

Level 2 turns the individual techniques of Level 1 into a pipeline that someone else can run. It runs from opening a file to shipping a per-subject quality-control report in eight lessons: reading every common format and writing the result out as EEG-BIDS; verifying a montage and flagging bad channels against objective criteria before interpolating them; choosing a reference with intent and predicting what it does to amplitudes and maps; setting filter cutoffs from the analysis goal, including the two-pass strategy that lets ICA see one version of the data and your analysis another; rejecting artifacts without letting the threshold become an analysis choice; correcting eye movements by regression and by ICA, and classifying components from converging evidence; knowing when artifact subspace reconstruction and its relatives are the right tool; and putting the whole thing in a configuration file with a seed, a log and a report.

Two threads run through the level. The first is rank: every interpolated channel, every average reference and every projector costs a degree of freedom, and the number has to be carried from the second lesson to the sixth or ICA will manufacture components out of nothing. The second is judgment made in advance: rejection criteria, component-removal policies and subject-exclusion rules are all defensible only if they were fixed before the effect was visible. The capstone asks for a script that takes raw BIDS to cleaned continuous data plus a QC report for a full cohort, unattended, with the per-condition rejection table in plain sight.

Lessons

  1. L2.1 Loading data and BIDS

    Read every common format with MNE, set channel types and montage, convert to EEG-BIDS with mne-bids, and read events back.

    ~45 min ▤ notebook
  2. L2.2 Channel locations and bad channels

    Assign and verify montages, detect bad channels with objective criteria, interpolate, and decide how many bads is too many.

    ~60 min ◐ widget ▤ notebook
  3. L2.3 Re-referencing

    Reference dependence, linked mastoids versus average versus Cz versus REST, how topographies and polarity change, and where re-referencing sits in the pipeline.

    ~50 min ◐ widget ▤ notebook
  4. L2.4 Filtering in practice

    Goal-dependent high-pass and low-pass settings, the two-pass ICA strategy, boundary events, and when to downsample.

    ~45 min ◐ widget ▤ notebook
  5. L2.5 Artifact rejection strategies

    Amplitude and flatness criteria, autoreject, annotation-based rejection, quantifying data loss, and exclusion criteria set before looking at effects.

    ~50 min ◐ widget ▤ notebook
  6. L2.6 EOG regression and ICA

    EOG regression, ICA at intuition level, correct rank and data quantity, component classification with ICLabel as a second opinion, and avoiding over-cleaning.

    ~90 min ◐ widget ▤ notebook
  7. L2.7 ASR, SSP and alternatives

    Artifact subspace reconstruction, when it is preferable and what it risks, plus SSP and wavelet-based cleaning.

    ~45 min ▤ notebook
  8. L2.8 Pipeline order and reproducibility

    A canonical, justified order of operations, scripted with a config file, logged, with a per-subject QC report and pinned versions and seeds.

    ~60 min ▤ notebook

Capstone

C2 Capstone — Clean pipeline

~360 min6 deliverables