Skip to content

Commit a187972

Browse files
Update envelope computation figure with cleaner 4-stage visualization
- 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
1 parent e5d7d1d commit a187972

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed
-508 KB
Loading

tutorials/misc/EEGLAB_and_EMG_data.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -375,14 +375,16 @@ EEG.etc.is_envelope = true;
375375
EEG.etc.envelope_cutoff = envelope_cutoff;
376376
```
377377

378-
### Visualization: Why envelope is necessary
378+
### Visualization: Linear envelope computation
379379

380380
![Envelope Computation](/assets/images/emg_envelope_computation.png)
381381

382-
This figure shows the envelope computation stages for several channels:
383-
- **Gray**: Original filtered EMG with high-frequency oscillations
384-
- **Blue**: Rectified EMG (absolute value) - all positive but noisy
385-
- **Red**: Smoothed envelope - captures muscle activation amplitude
382+
This figure shows the four processing stages for two representative channels (left and right wristband). The red dashed line marks a keystroke event:
383+
384+
1. **Raw signal** (blue): Unfiltered EMG with baseline noise and drift
385+
2. **Band-pass filter** (green): 20-250 Hz filtered EMG - removes low-frequency drift and high-frequency noise
386+
3. **Rectified** (purple): Absolute value of filtered signal - all values positive
387+
4. **Low-pass filter / linear envelope** (magenta): Smooth envelope (20 Hz cutoff) capturing muscle activation amplitude
386388

387389
![Why Envelope Needed](/assets/images/emg_envelope_needed.png)
388390

0 commit comments

Comments
 (0)