Here is some sample documentation you could add about your methodology:
Methodology
This project uses a deep learning approach to generate embeddings from EEG data and classify recordings.
EEG Preprocessing
The raw EEG recordings were first preprocessed to remove noise and artifacts. This included applying bandpass filters, removing line noise, and interpolating bad channels.
Windowing and Embedding Generation
The cleaned EEG signals were split into overlapping 2-second windows with a 0.5 second overlap. This resulted in windows with time sequences of 500 time points (at 1000Hz sampling rate) across 25 channels.
Foundation Model Training
A convolutional neural network foundation model was trained to predict the next 0.5 seconds of EEG signal given the previous 2 seconds. This model was trained on a large set of unlabeled EEG data to learn general representations of brain activity patterns.
Embedding Averaging
The embeddings generated by the foundation model for each 2-second window were averaged to obtain a single fixed-length embedding vector representing the full EEG recording.
Classifier Training
The averaged recording embeddings were then used as inputs to train several classifiers, including logistic regression, random forest, and neural networks. The classifiers were trained to predict diagnostic labels or other outcomes of interest.
Validation
A 10-fold cross-validation approach was used where models were trained and tested on held-out subjects to validate performance in a subject-independent manner. This helps account for individual variability in brain signals.
Let me know if you need any part of the methodology explained in more detail. The overall goal was to leverage transfer learning from a large unlabeled EEG dataset to obtain generalized embeddings as inputs for classification tasks.