Coder Social home page Coder Social logo

junaidk11 / eeglab_dsp Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 32.24 MB

Using EEGLAB to process EEG signal from a subject in a resting-wakeful state with their eyes opened and closed.

MATLAB 100.00%
eeglab-toolbox eeg-signals preprocessing matlab matlab-script eeglab-dsp eyes-opened eeglab process-eeg-signal independent-component-analysis

eeglab_dsp's Introduction

Processing EEG Signal

In this project, I employed EEGLAB to process EEG signal from a subject in a resting-wakeful state with their eyes opened and closed.

The objective was to process raw EEG data and confirm the behaviour of the subject.

Channel Locations

image

Raw EEG Data

image

  • Removed DC Off-set

    • image
  • Average Referencing and Import Epochs

    • image
  • Power Spectral Density Plot of unfiltered Data

    • image

Pre-Processing Results

  • Remove Drift at Low Frequencies

    • image
  • Remove 60 Hz Line Noise

    • image
  • Independent Component Analysis

    • image
    • image

Filtered Cleaned Data

image

Feature Extraction

  • Wavelet Transformation of O1 and Oz Electrodes
    • For my time-frequency decomposition, I used the default 3 wavelet cycle at the lowest frequency of 6Hz and the wavelet cycle increased linearly for higher frequencies by a factor of 0.5

    • image

    • image

    • Based on the time-trequency decomposition of channel O1, we can notice the decrease in power in the beta bands after the event marker and an increase in power in the gamma band in occipital region. This power transition corresponds to transitioning from Resting Eyes Closed to Resting Eyes Open[1]. At time=610ms you can notice the significant decrease in beta band and an increase in gamma band in the occipital region. Therefore, knowing that the dataset used was recorded from an individual in a resting wakeful state with their eyes open and close, the time-frequency decomposition of their cleaned brain data confirms this, based on the assumption that the subject was in a complete dark room.

    • Channel Oz is beside channel O1 and we expect the two channels to pick up the same information. Based on the assumption that the EEG recordings were made in a complete dark room, note the high-power activity in beta band at 400ms and then notice the significant increase in power in the gamma band at 420ms and decrease in power in the Beta band. This power transition corresponds to transitioning from Resting Eyes Closed to Resting Eyes Open [1].

Coherency and Synchrony

  • image

  • The channel cross-coherence plot above, note that channels O1 and Oz have good phase synchronization around the alpha and beta bands. By showing a strong coherency between the channels that are within close proximity, we can conclude functional connectivity between the two channels Oz and O1. They’re both capturing the same brain activity in response to the event of eyes opening and closing.

Power Spectral Density of Cleaned Data

image

Result

Based on the PSD plot of cleaned data, after filtering the subject’s EEG data and using ICA to remove EOG and channel noise artifacts, the power spectral density revealed that the neural activity appears to be primarily in the occipital region as shown in the topographic plot shown in PSD plot of cleaned data above. Also, note that the power spectral density has the largest peak around the alpha band, which is predominantly found in the occipital region of the brain. The existence of strong alpha waves in the dataset correspond to the subject being in a very relaxed state.

eeglab_dsp's People

Contributors

junaidk11 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.