All projects

EEG emotion classification

Deep learning models that classify five emotions from raw EEG, the research behind my peer-reviewed paper.

  • Python
  • PyTorch
  • MNE-Python
  • Google Colab
In
Raw EEG recordings from the SEED-V dataset
Out
One of five emotions: happiness, sadness, disgust, neutral, fear

Three architectures compared on the same data, published in Brain Sciences (MDPI) in 2024.

What it is

Research code for classifying emotional states from EEG signals. It compares three networks built for EEG, ShallowFBCSPNet, Deep4Net and EEGNetv4, on the SEED-V dataset from BCMI.

What the pipeline does

  • Preprocesses raw recordings with MNE-Python: filtering, segmentation and feature extraction.
  • Trains and evaluates each model on the same splits, so the comparison is fair.
  • Reports results with confusion matrices and loss curves.
  • Runs on Google Colab with GPU support, so anyone can reproduce it.

The paper

The work was published as Emotion Classification from Electroencephalographic Signals Using Machine Learning in Brain Sciences (MDPI), 2024, with the code open so the results can be checked.