Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

In this directory, we test the synchronization of tones and evoked response in EEG.

Notifications You must be signed in to change notification settings

dr2633/EEG-Preprocessing

Open more actions menu

Repository files navigation

EEG Preprocessing Pipeline

This repository contains a preprocessing pipeline for EEG data using the MNE library in Python. The pipeline performs various steps to clean and prepare the EEG data for further analysis.

Pipeline Steps

  1. Loading Data: The raw EEG data is loaded from a FIF file using MNE. Load the data directly from the Box folder.
  • Raw data is stored in the directory 'data'
  • Segmented data for each trial is stored in 'segmented_data'
  • Script for extracting event markers for segmenting trials is available in 'scripts'
  1. Independent Component Analysis (ICA):

    • ICA is applied to the raw data to identify and separate independent components.
    • The ICA components and their sources are plotted and saved for visual inspection.
    • Components representing artifacts are manually selected and excluded.
    • The excluded components are saved to a JSON file for reproducibility.
  2. Filtering:

    • A notch filter at 60 Hz is applied to remove power line noise.
    • A bandpass filter with a lower frequency of 0.1 Hz and an upper frequency of 40.0 Hz is applied to remove low-frequency drifts and high-frequency noise.
  3. Re-referencing:

    • The data is re-referenced using the 'VREF' channel.
    • Channels starting with 'E' are extracted.
  4. EOG Regression:

    • The channel types of 'E126' and 'E127' are changed to 'eog' for EOG regression.
    • Common average reference is applied to the data.
    • Word annotation metadata is loaded from a TSV file.
    • Word epochs are created based on the word onsets obtained from the annotation metadata.
    • EOG regression is performed on the word epochs to remove EOG artifacts.
    • The regression coefficients are plotted as a topomap.
    • The cleaned evoked response is computed and saved.

About

In this directory, we test the synchronization of tones and evoked response in EEG.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.