Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

panargirakis/ML_Extra_Credit

Repository files navigation

Introduction

This repository contains examples of different models to solve BCI Competition Graz 2b classification challenge. It was developed with the guidance of Prof. Ali Yousefi for WPI CS 4342.

The original work was done by Mohammad Reza Razei and was extended by Panos Argyrakis.

Usage

Download the Graz 2b dataset and place all the .mat files at data/Graz/ (relative to the project directory).

Tested with Python 3.6.

Install all the requirements in requirements.txt:

pip install -r requirements.txt

Run any of:

  • LSTM.py
  • MLP.py
  • CNN.py
  • CNN_with_spectrogram.py
  • MLP_with_spectrogmam.py

Notes

The Hybrid.py network was an idea to combine a CNN with an LSTM to capture both spatial and temporal features. As of now, it does not execute.

The scripts automatically save the model from the last fold.

Some models (LSTM, MLP and CNN) are set up for automatic hyperparameter tuning. To enable, uncomment the correct lines at the bottom of the corresponding script.

The "Results" folder contains training logs, hyperparameter tuning logs and some visualizations of the dataset.

About

Extra credit work for WPI CS 4342 - Machine Learning. Worked on the BCI Competition IV dataset Graz 2b.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors