EEG-based SSVEP Signal Preprocessing and Analysis

Published:

Offline preprocessing and alignment of SSVEP signal with expected timestamp to achive higher classification accuracy. Alignment

To make the signal cleaner, a standard bandpass filter is applied to facilitate the alignent process using scipy sosfiltfilt.

Bandpass Filter

The scipy.signal.sosfiltfilt function from the SciPy library is used for filtering data. It performs a forward-backward, zero-phase digital filtering. This function uses a second-order sections (SOS) filter representation, which can provide better numerical accuracy and stability compared to traditional transfer function (ba) representations.

The sosfiltfilt function performs the filtering in two passes: once forward through the data, and once backward, which results in a zero-phase filtering effect. This is a desirable quality because it doesn’t introduce any phase distortion into the filtered signal.