Skip to content

MelodyWYYang/DepressionEEGDetection

 
 

Repository files navigation

Depression Detection In EEG

About

CNN model classifying mild - moderate depression from EEG data using PyTorch.

EEG data preprocessed with Python3 on jupyter notebook. EEG data for patients at rest (open eyes and closed eyes) was taken from J. Cavanagh's 2008 study published on the OpenNeuro database. All data was already semi-preprocessed by Cavanagh's team with a low-pass filter, epoched, and marked for events. Further preprocessing was needed to remove noise, deprecated channels, and visualize all events into topoplots for CNN preparation (raw .fif data files were missing, so vectorization was impossible).

1. Setting the EEG Cap

Screen Shot 2022-04-08 at 3 39 34 PM

Using dataframe's XYZ values for each electrode, I created a map of the electrode cap and labelled it. This would set-up the heatmap to be overlaid on top of these electrodes.

2. PSD Plot

Screen Shot 2022-04-08 at 3 39 42 PM

Screen Shot 2022-04-08 at 3 39 48 PM

Screen Shot 2022-04-08 at 3 41 15 PM

Screen Shot 2022-04-08 at 3 41 25 PM

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%