Simply EEGLAB
Bad channels
Station 3 · Lesson 4 · EEGLAB 2026.1
In the GUI
- PlotChannel data (scroll)
- PlotChannel spectra and maps
- Plotting frequency range [lo_Hz hi_Hz]:OK
1 64 - PlotChannel properties
- ToolsReject data using Clean Rawdata and ASR
- Remove channel drift (data not already high-pass filtered)
- Process/remove channels
- Ignore these channels (ECG, EMG, ...)
EOG1 EOG2 - Remove channel if it is flat for more than (seconds)Max acceptable high-frequency noise std devMin acceptable correlation with nearby chans [0-1]
- Perform Artifact Subspace Reconstruction bad burst correction/rejectionAdditional removal of bad data periods
- OK
Scanning for bad channels... - Overwrite it in memory (set=yes; unset=create a new dataset)
D1 badch - EditSelect dataChannel(s)on->remove theseOK
- FileSave current dataset as
D1 badch
Script
EEG_test = pop_clean_rawdata(EEG, 'FlatlineCriterion', 5, 'ChannelCriterion', 0.8, ...
'LineNoiseCriterion', 4, 'Highpass', 'off', 'BurstCriterion', 'off', ...
'WindowCriterion', 'off', 'BurstRejection', 'off', 'Distance', 'Euclidian', ...
'channels_ignore', {'EOG1', 'EOG2'});
badChans = setdiff({EEG.chanlocs.labels}, {EEG_test.chanlocs.labels}, 'stable');
fprintf('Bad channels: %s\n', strjoin(badChans, ', '));
if ~isempty(badChans)
EEG = pop_select(EEG, 'rmchannel', badChans);
end
EEG.setname = 'D1 badch';
EEG = pop_saveset(EEG, 'filename', 'D1_badch.set', 'filepath', pwd);Which value should I choose?
| Setting | Value |
|---|---|
| Flat line | 5 seconds |
| High-frequency noise | 4 standard deviations |
| Correlation with nearby channels | 0.8 |
| Eye and heart channels | Excluded from detection |
| ASR and segment removal | Off in this lesson |
Check
- Channel count
- Your list is written down
- Spectrum after removal
- The eye channels are still there
For your Methods
Bad channels were identified by visual inspection of the continuous data and channel spectra and with clean_rawdata (flatline criterion 5 s, channel correlation criterion 0.8, line noise criterion 4 SD; EOG channels excluded; clean_rawdata plugin 2.11, EEGLAB 2026.1) and removed ([0] channels).