Published 2025
| Version 1.0
Software
Open
Preprocessing pipeline for EEG Data using EEGLAB.
Authors/Creators
Description
Preprocessing pipeline for EEG Data using EEGLAB. For data collected using BrainVision and EGI/Philips systems.
The preprocessing script performs the following steps: -
- Read data
- Downsample to 250 Hz
- Filter using 0.3 to 20 Hz band-pass filter
- Offline rereference to average of linked mastoids
- Remove channels (say in the periphery) that are not needed for analysis
- Remove bad channels; these will be interpolated later in step 9
- This will be referred to as original data below
- Run Indepedendent Components Analysis (ICA)
- Make a copy of the original data from step 6 and name it as EEG_ICA
- Downsample EEG_ICA to 100 Hz
- Filter EEG_ICA using 1 Hz high-pass filter (i.e., 1 Hz low cut off)
- Delete first 60 s and last 30 s of the recording from EEG_ICA
- Run extended Infomax ICA
- Run ICLabel and flag artefactual ICA components for rejection
- Copy ICA weights and related information from EEG_ICA to original data
- Calculate the ICA activation matrix in the original data that now contains ICA information
- Copy the result of ICLabel and component rejection markings from EEG_ICA to the original data
- The original data now has ICA information, including components marked as artefactual
- From the original data from step 7.10, remove the components marked as artefactual
- Interpolate bad channels, if any, that were removed in step 6
- Save the ICA pruned original data for further analysis
Notes
- No continuous data rejections / epoch rejections are performed. Therefore no new boundary events are introduced to the data, and therefore the overall length (i.e., duration in time) of the pruned data for analysis should be identical to that of the raw data.
- If you want to read the output of this pipeline (.set file) in R using R.matlab::readMat (or other functions that internally call this function, such as eeguana::read_set), then the option 'If set, write files in Matlab v6.5...' in EEGLAB -> Preferences must be set to true!
Reference
Delorme, A. (2023). EEG is better left alone. In Scientific Reports (Vol. 13, Issue 1). Springer Science and Business Media LLC. https://doi.org/10.1038/s41598-023-27528-0
Citation
In case you use the preprocessing pipeline with or without adaptations for your work, please cite it as follows:
Muralikrishnan, R. (2025). Preprocessing pipeline for EEG Data using EEGLAB. (Version 1.0). Zenodo. https://doi.org/10.5281/ZENODO.14988778
Files
Files
(14.2 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:59dcbe72de578a92a4c61ff0fc8c7286
|
7.2 kB | Download |
|
md5:7df6ae09ef46f8b8330dd8e44bcbe80c
|
7.0 kB | Download |