Skip to main content
. 2021 Mar 24;21(7):2278. doi: 10.3390/s21072278
Algorithm 1 A pseudo-code for extracting features and classifying the target and non-target.
Algorithm Feature Extraction and Classification
Inputs: ERP Dataset
Outputs: SVM model or target stimulus T
Step1: Amplitude values from 150 to 600 ms after the stimulus onset in the ERP dataset were picked.
Step2: Concatenate Picked samples for every electrode resulting in input data D, where DNd×Nf.
Step3: If training session, train linear SVM with input D and corresponding labels, and return SVM model,
Else, implement SVM classification with input D and return target stimulus T given by Equation (2).