EEGLAB ببساطة
clean_rawdata و ASR
المحطة 3 · الدرس 5 · EEGLAB 2026.1
من الواجهة
- ToolsReject data using Clean Rawdata and ASR
- Remove channel drift (data not already high-pass filtered)
- Process/remove channelsIgnore 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/rejectionMax acceptable 0.5 second window std dev
20 - Remove bad data periods (when uncheck, correct using ASR)Use Riemanian distance metric (not Euclidean) - beta
- Additional removal of bad data periodsAcceptable [min max] channel RMS range (+/- std dev)Maximum out-of-bound channels (%)
-Inf 725 - Pop up scrolling data window with rejected data highlightedOK
- Frames per epochEvents
D1 asrD1 hp0.1 notch60
السكربت
EEG_asr = pop_clean_rawdata(EEG, 'FlatlineCriterion', 'off', 'ChannelCriterion', 'off', ...
'LineNoiseCriterion', 'off', 'Highpass', 'off', 'BurstCriterion', 20, ...
'WindowCriterion', 0.25, 'BurstRejection', 'on', 'Distance', 'Euclidian', ...
'WindowCriterionTolerances', [-Inf 7], 'channels_ignore', {'EOG1', 'EOG2'});
EEG_asr.setname = 'D1 asr';
fprintf('Data kept: %.1f of %.1f s (%.1f%%)\n', EEG_asr.pnts / EEG_asr.srate, ...
EEG.pnts / EEG.srate, 100 * EEG_asr.pnts / EEG.pnts);
fprintf('Boundary events: %d\n', sum(strcmp({EEG_asr.event.type}, 'boundary')));
epBefore = pop_epoch(EEG, {'square'}, [-0.2 0.8]);
epAfter = pop_epoch(EEG_asr, {'square'}, [-0.2 0.8]);
fprintf('Epochs around square: %d before ASR, %d after\n', epBefore.trials, epAfter.trials);
vis_artifacts(EEG_asr, EEG);أي قيمة أختار؟
| الإعداد | القيمة |
|---|---|
| عتبة ASR (Max acceptable 0.5 second window std dev) | 20 |
| عتبة أشد | 5 |
| أشد قيمة | 3 |
| حذف أو تصحيح | حذف |
| Remove channel drift (data not already high-pass filtered) | بدون تفعيل إذا فلترت من قبل |
| القنوات غير الدماغية (EOG و ECG) | مستبعدة |
| استخدمه | تجنّبه |
| بيانات فيها دفعات نادرة ضخمة، مثل آرتفاكت الحركة أو السلك | بيانات نظيفة أصلاً، مثل D1 |
| قبل ICA، لتعطي ICA بيانات تدريب أنظف | عندما يهمّك كل epoch والدفعات قليلة: احذفها بالعين بدلاً منه |
| بعتبة محافظة مثل 20 | بعتبة منخفضة تحذف الرمش الذي يستطيع ICA تصحيحه |
تأكّد
- نافذة العرض المتتابع
- تحقق السكربت
- زادت الأحداث
- المسار لم يتغيّر
لقسم Methods
High-amplitude bursts were identified with Artifact Subspace Reconstruction (burst criterion 20 SD; clean_rawdata plugin 2.11, EEGLAB 2026.1), and the affected periods were removed together with windows in which more than 25% of channels exceeded 7 SD ([N] s, [P]% of the data); EOG channels were excluded.