An official website of the United States government
Here's how you know
Official websites use .gov
A
.gov website belongs to an official
government organization in the United States.
Secure .gov websites use HTTPS
A lock (
) or https:// means you've safely
connected to the .gov website. Share sensitive
information only on official, secure websites.
Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Input:Y: matrix of auxiliary variables (e.g., EOG or ECG data)
Output:Z: matrix of cleaned EEG data
Center and whiten the X.
Initialize the weight matrices A and B randomly.
repeat
Compute the canonical weights by maximizing the correlation between X and Y with respect to A. ▹: weights used to linearly combine the EEG signal for one component
Compute the canonical weights by maximizing the correlation between X and Y with respect to B.▹:weights used to linearly combine the auxiliary signal for one component