Repairing artifacts with ICA

Hello!

Regarding the procedure of repairing artifacts with ICA, I have found the following:

ica = ICA(n_components=15, max_iter=‘auto’, random_state=97)
ica.fit(filt_raw)

After this, will the filt_raw signal be the repaired signal ?

Thank you!

Hello,

No, it will just fit the ICA, meaning it will figure out what are the independent sources in filt_raw. Then you need to select which sources you want to keep and which sources you want to remove with ica.exclude, and finally, reconstruct the signal with ica.apply.
See this tutorial for more information: Repairing artifacts with ICA — MNE 1.1.1 documentation

Mathieu

2 Likes