Filter bank decomposition is a bandpass filter array that divides the input signal into
multiple subband components and obtains the eigenvalues of each subband component.
The parameters stored in self are used to convert X into features, and X is filtered through the filter bank to
obtain the eigenvalues of each subband component.
Filter bank analysis for SSVEP.
The SSVEP is analyzed using filter banks, that is, multiple filters are combined to decompose the SSVEP signal
into specific segments (subbands containing the original data) and obtain its characteristic data.
X is converted into features by using the parameters stored in self, and the eigenvalues of each subband
component are obtained after the input signal is filtered by the filter bank.
Decoding tool set for TDMA coding paradigm. Applicable data sets include P300 speller data set and aVEP speller
data.The main functions include: dividing the trial according to the minor event, downsampling the data,
and determining the target character (or instruction) according to the judgment result of the trial.
The data is decoded according to character large label (used to determine the encoding sequence length, which
can be any large label) characteristics, stimulus repetition cycles (fold_num), and normal form types.
feature (ndarray, shape(n_trials, n_class)) – A multidimensional array of the features of multiple attempts. The size of the array is the number of
attempts x the number of template categories. Where the number of attempts is equal to the number of
stimulus repeats * the length of the encoding sequence (key_encode_len).
fold_num (int) – The stimulation was repeated.
paradigm (str) – Type of paradigm.
Returns:
command – The character to be tested is predicted according to the class sequence of the test.
A trial-ordering method designed specifically for the classic column P300 speller.
The trials are sorted in ascending order according to the trial label of a single round of characters.
X (list) – Pre-sort data for multiple characters, where each element represents the data for all attempts of a
character.
y (list) – A multi-character trial tag, where each element represents the label value of all the tries of a character,
and the label value represents the currently blinking row or column.
Returns:
X_sort (list) – The sorted data of multiple characters is arranged in ascending order of the label value, where each element
represents the data of all attempts of a character.
Y_sort (list) – After the sorting of multiple characters, each element in the ascending order of the label value represents
the label value of all the tries of a character. The label value represents the current blinking row or
column.
A trial identification method specifically designed for the classic column P300 speller. According to the trial
label (y) and character label (key) of the labeled column in the P300 data set, the trial label is converted
into a small label that can label “target” and “non-target”.
Transform spatial filters to spatial patterns based on paper [1]_.
Referring to the method mentioned in article [1],the constructed spatial filter only shows how to combine
information from different channels to extract signals of interest from EEG signals, but if our goal is
neurophysiological interpretation or visualization of weights, activation patterns need to be constructed
from the obtained spatial filters.