remove_eog_artifact_from_eeg

remove_artifact_with_last_square_between_two_signals_example()[source]

Example of removeing an artifact from a signal using the last square method:

Context:

EEG signal can be conain artifact because of the eyes movement (EOG signal).

Goal:

Remove the eye movement artifact

Method:

Use the last square template matching to remove the EOG artifact.

last square template matching:

\[\beta = (X^TX)^{-1}X^Ty\]
\[res = y - X\beta\]
_images/Artifact_with_EEG_EOG.png

color map of the EOG, EEG, and residual signal:

_images/color_map_eeg_eog.png