Skip to content

Conversation

@neuromechanist
Copy link
Member

@neuromechanist neuromechanist commented Nov 26, 2025

Summary

  • Add new tutorial for processing EMG data with EEGLAB
  • Demonstrates loading BIDS-format EMG data
  • Shows EMG-specific preprocessing (bandpass 20-250 Hz)
  • Explains linear envelope computation for EMG-ERP analysis
  • Includes burst-initial keystroke methodology for cleaner ERPs
  • Documents that topoplots are not meaningful for forearm EMG

Figures included

  • Raw EMG data viewer
  • Power spectral density (spectopo without topoplots)
  • Preprocessing comparison
  • Envelope computation stages
  • Why envelope is needed (raw vs envelope ERP)
  • EMG-ERP lateralization results

Key points

  • Uses 20 Hz envelope cutoff (faster response for keystroke detection)
  • Burst-initial approach: only uses keystrokes preceded by >500ms pause
  • Correct channel assignment: Ch 1-16 = LEFT, Ch 17-32 = RIGHT
  • spectopo with 'freq', [] disables meaningless topoplots for forearm EMG

Test plan

  • Verify figures display correctly in markdown
  • Manual review of tutorial content
  • Test on Jekyll local build if available

…initial approach

Key updates:
- Use 20Hz envelope cutoff for faster response in typing tasks
- Disable spectopo topoplots with freq=[] (not meaningful for EMG)
- Document burst-initial keystroke approach for rapid typing data
- Update channel assignment information
- Clarify workflow recommendation
- Add 6 tutorial figures for EMG processing workflow
- Update markdown to use consistent image paths in /assets/images/
- Figures: raw data, spectopo, preprocessing, envelope computation,
  envelope needed demo, ERP lateralization
- Add BIDS import dialog, result, and EEGLAB interface screenshots
- Add raw data viewer and spectopo screenshots
- Remove old programmatically generated figures
- Update markdown to reference new screenshots
- Fix envelope cutoff description (10 Hz -> 10-20 Hz)
- Fix variable names (left_channels -> left_wristband)
- Update figure descriptions to match actual figures
- Show raw, bandpass, rectified, and envelope stages vertically
- Two channels side-by-side (left and right wristband)
- Red dashed line marks keystroke event
- Update description to match new figure
- Remove preprocessing comparison section (envelope visualization is sufficient)
- Remove aggregate ERP visualization, keep only all-channels ERP
- Remove script sharing section
- Delete unused images: emg_erp_lateralization.png, emg_preprocessed_comparison.png
@neuromechanist neuromechanist marked this pull request as ready for review November 27, 2025 16:07
@neuromechanist neuromechanist merged commit 8502de0 into master Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants