Skip to content

Developed a modular machine learning pipeline for emotion classification using EEG signals. Implemented preprocessing, feature extraction (band power), and classification with SVM. Results are automatically saved and visualized (confusion matrix, ROC, metrics). Dataset: DEAP (preprocessed EEG data).

License

Notifications You must be signed in to change notification settings

goktug-sirma/eeg-emotion-classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 EEG Emotion Classifier

Python License Status ML

A machine learning pipeline for emotion classification from EEG signals.
Currently implemented with classical ML methods (SVM) on the preprocessed DEAP dataset.

📂 Project Structure

eeg-emotion-classifier/
├── data/ # raw and processed EEG data (not included in repo)
├── src/ # preprocessing, feature extraction, models, pipeline
├── results/ # evaluation results (confusion matrix, ROC curve, metrics)
├── main.py # entry point
├── requirements.txt # dependencies
└── .gitignore

⚙️ Installation

Clone the repository and install the dependencies:

git clone https://github.com/goktug-sirma/eeg-emotion-classifier.git
cd eeg-emotion-classifier
pip install -r requirements.txt

▶️ Usage

  1. Download the DEAP dataset

    • Required files: data_preprocessed_python.zip
    • Extract the archive and place all sXX.dat files into data/raw/.
  2. Run the pipeline:

python main.py

📊 Results

Results will be added after running on real data. Expected outputs:

  • results/confusion_matrix.png
  • results/roc_curve.png
  • results/metrics.txt

🗺️ Roadmap

  • ✅ Project structure and pipeline skeleton
  • ✅ Preprocessing and feature extraction
  • ✅ SVM training and evaluation
  • ⬜ Add results with real datasets
  • ⬜ Explore cross-subject generalization
  • ⬜ Experiment with deep learning models (CNN, LSTM, Transformers)

📜 License

This project is licensed under the MIT License.

About

Developed a modular machine learning pipeline for emotion classification using EEG signals. Implemented preprocessing, feature extraction (band power), and classification with SVM. Results are automatically saved and visualized (confusion matrix, ROC, metrics). Dataset: DEAP (preprocessed EEG data).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages