Blink-Identified Robust Detrending for EEG / ERP Data in MATLAB
The method has been developed for use in the MATLAB computing environment. Matlab can be downloaded here.
The method has been developed for analyzing EEG data with EEGLAB and ERPLAB. EEGLAB can be downloaded here. ERPLAB can be downloaded here.
Simply download a copy of the BIRD.m and nt_detrend.m files, and add them to your MATLAB path. If you already have a folder added to the MATLAB path, you can place the files there and MATLAB will read them.
An example script and dataset is provided to outline the steps for running BIRD. The current version of BIRD is designed for ERP analyses. It thus assumes that a file has been loaded into EEGLAB, that an EVENTLIST has been created, and that bins have been assigned with a BDF file. It uses a VEOG channel to detect blinks, and so a VEOG channel must be specified. The general steps are as follows:
- Load in data into EEGLAB
- Perform chosen pre-processing steps (low-pass filtering, re-referencing)
- Create VEOG channel (lower eye channel - upper eye channel) if one hasn't been created
- Create EVENTLIST for ERPLAB
- Assign bins with BDF file
- Create opts structure specifying BIRD options
- Run BIRD on EEG data