Epoching & Event Handling#
Analyze event-related potentials and create epochs from your Wearable Sensing continuous recordings.
Prerequisites
Your data is likely to include event markers in the ‘Trigger’ channel (sent from the Triggerhub or an MMBT-S device). Data should be filtered and cleaned with ICA if needed.
Viewing Events#
If your Wearable Sensing recording includes event markers (triggers from the device), you can view them in MNELAB:
Events appear in the info panel if present in the EDF file
Edit → Events to view all event markers
Events show timestamp and event codes
Importing Events from Separate Files#
If events are stored in a separate file (common with FIF format):
File → Import events
Select the event file (e.g.,
.fifor.eveformat)Click Open
Events will now appear in the info panel
Creating Epochs#
To analyze time-locked responses:
Tools → Create epochs
Configure parameters:
Event type: Select trigger codes of interest
Time window: e.g., -0.2 to 1.0 seconds
Baseline: e.g., -0.2 to 0 seconds
Click Create
Epoch Parameters
Time window: Defines the time range around each event
Baseline: Period used for baseline correction (typically pre-stimulus)
Event codes: Can select multiple codes or specific values
Dropping Bad Epochs#
Remove epochs with excessive artifacts:
Tools → Drop bad epochs
Configure rejection criteria:
Activate Reject: Check this box
Enter threshold: e.g., 0.0001 (corresponding to 100 uV peak-to-peak)
Click OK
Epochs exceeding the threshold will be automatically rejected.
Visualizing Evoked Responses#
Butterfly Plots#
View averaged evoked potentials across all channels:
Plot → Plot evoked
Select event types of interest
Optional settings:
Spatial colors: Color-code channels by location
GFP: Show Global Field Power
Click OK
Separate butterfly plots will appear for each event type.
Topographic Maps#
Create topomaps showing spatial distribution at specific time points:
Plot → Plot evoked topomaps
Select event type
Choose time points:
Automatic: Based on peaks
Manual: Enter specific times (e.g., “-0.2, 0.1, 0.4”)
Click OK
Joint Plots#
Combine butterfly plots with topomaps:
Plot → Plot evoked
Select event type
Enable:
GFP: Show Global Field Power
Spatial colors: Color-coded channels
Topomaps: Set to “Peaks” for automatic time selection
Click OK
Topomaps will show at the three largest GFP peaks.
Comparing Conditions#
Directly compare evoked responses between different event types:
Plot → Plot evoked comparison
Select channels to compare (e.g., frontal channels for auditory responses)
Select event types to compare
Choose Combine channels: mean or individual
Click OK
Shaded ribbons represent 95% confidence intervals.
Channel Selection for Comparisons
Use Plot → Plot channel locations to identify channel groups (frontal, central, parietal, etc.) before creating comparison plots. This helps you select appropriate channels for your analysis.
Individual Epoch Inspection#
View individual trials before averaging:
Plot → Plot epochs to view individual trials
Plot → Plot image for a 2D representation across trials
Exporting Epochs#
Save epochs for further analysis:
File → Export
Choose format:
FIF: For MNE-Python scripts
CSV: For custom analysis in other software
Power Spectral Density#
Analyze frequency content of your epochs:
Plot → Plot power spectral density
Configure settings:
Frequency range: e.g., 0.5 - 50 Hz
Method: Welch (default)
View the PSD plot showing power across frequencies
Next Steps#
After creating epochs from your Wearable Sensing data:
Compute ERPs by averaging: Tools → Average epochs
Export epochs: File → Export (choose FIF for MNE-Python compatibility)
Advanced analysis in MNE-Python for statistics and source localization