EEGLAB ببساطة

clean_rawdata و ASR

المحطة 3 · الدرس 5 · EEGLAB 2026.1

من الواجهة

  1. ToolsReject data using Clean Rawdata and ASR
  2. Remove channel drift (data not already high-pass filtered)
  3. Process/remove channelsIgnore these channels (ECG, EMG, ...) EOG1 EOG2
  4. Remove channel if it is flat for more than (seconds)Max acceptable high-frequency noise std devMin acceptable correlation with nearby chans [0-1]
  5. Perform Artifact Subspace Reconstruction bad burst correction/rejectionMax acceptable 0.5 second window std dev 20
  6. Remove bad data periods (when uncheck, correct using ASR)Use Riemanian distance metric (not Euclidean) - beta
  7. Additional removal of bad data periodsAcceptable [min max] channel RMS range (+/- std dev)Maximum out-of-bound channels (%) -Inf 725
  8. Pop up scrolling data window with rejected data highlightedOK
  9. 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.

النسخة الكاملة: https://simplyeeglab.pages.dev/lesson/asr/

رخصة المحتوى: CC BY-NC-SA 4.0 · MIT (code)

موقع تعليمي مستقل، غير تابع رسمياً لـ EEGLAB أو SCCN.