Sure, here's an example of documentation you can use to describe the methodology of your project:
Methodology
- Data Preprocessing
The EEG recordings were preprocessed to create a foundation model that can be used to get embeddings. The preprocessing steps included:
- Filtering the EEG signals to remove noise and artifacts using a band-pass filter with a range of 1-30 Hz.
- Splitting the EEG recordings into 2-second windows.
- Averaging the embeddings across each window to get a recording embedding.
- Foundation Model Training
The foundation model was trained to predict the next 0.5 seconds from a 2-second moving window of the 25-channel EEG signal. The model was trained using a variant of the popular transformer architecture, specifically designed for time-series data. The training process involved the following steps:
- Normalizing the input data to have zero mean and unit variance.
- Splitting the data into training, validation, and test sets.
- Using 10-fold cross-validation to evaluate the performance of the model on unseen data.
- Optimizing the hyperparameters of the model using a grid search.
- Embedding Extraction
Once the foundation model was trained, it was used to extract embeddings from the EEG recordings. The process involved the following steps:
- Feeding the preprocessed EEG recordings into the foundation model.
- Extracting the embeddings from the output of the foundation model.
- Averaging the embeddings across each recording to get a single embedding per recording.
- Classifier Training
The recording embeddings were used as input to train a classifier. The classifier was trained using a variant of the popular support vector machine (SVM) algorithm, specifically designed for multiclass classification problems. The training process involved the following steps:
- Normalizing the input data to have zero mean and unit variance.
- Splitting the data into training, validation, and test sets.
- Using 10-fold cross-validation to evaluate the performance of the classifier on unseen data.
- Optimizing the hyperparameters of the classifier using a grid search.
- Evaluation
The performance of the classifier was evaluated using the test set. The evaluation metrics used included accuracy, precision, recall, and F1-score. The results showed that the classifier achieved an accuracy of X% on the test set.
- Conclusion
In this project, we proposed a method for EEG signal processing and classification using a foundation model and a classifier. The foundation model was trained to predict the next 0.5 seconds from a 2-second moving window of the 25-channel EEG signal. The recording embeddings were extracted from the foundation model and used as input to train a classifier. The classifier was trained using a variant of the popular SVM algorithm. The performance of the classifier was evaluated using the test set and showed promising results. This approach can be used for various EEG signal processing and classification tasks in the future.