Skip to content

Scripts for prediction of individual characteristics based on brain connectome using Emotiv Epoch Data

Notifications You must be signed in to change notification settings

mathigatti/EmotivClassifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emotiv Classifier

These are a few scripts used to generate correlation matrices and training machine learning classifiers in order to predict different individual characteristics based on the brain connectivity. These are part of my computer science thesis project.

Requirements

  • python 3
  • python libraries
    • sklearn
    • scipy
    • pandas
    • mne

Usage

Generating correlation matrices

In order to generate correlation matrices you need raw data from an EEG, in this case the scripts are prepared for EEGLab data format ( .set files ) with 14 time series (electrodes).

The script is run like this:

python correlationMatrixGenerator.py metric path_to_raw_eeg_data destination_path

Training classifiers and testing them

On classifier.py you can find a script to train a random forest classifier using correlation matrices as input in order to predict some variable from a CSV file.

python classifier.py path_to_correlation_matrices target_feature_path column_name threshold 

Here is an example training it to predict people with more than 5 hours of sleep using correlation matrices (Computed using spearman correlation on the theta band in this case).

python classifier.py matrices/spearman/theta/ users_data/individual_characteristics.csv "Hours of Sleep" 5 

About

Scripts for prediction of individual characteristics based on brain connectome using Emotiv Epoch Data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages