Fitting and Applying ICA Epoch by Epoch

  • MNE version: 0.24.0
  • operating system: macOS 13.6

Hello,

I am wondering whether it is possible to run ICA epoch by epoch so that I can have different component to exclude for each epoch.

Does it make sense to create an ICA instance for every epoch, and then run fit/apply?

Thanks

No, you would not have sufficient data points in a single epoch to fit an ICA and get decent components. Theoretically, you could fit on all the epochs and then apply on an epoch-per-epoch bases, but I don’t see the benefit in doing so. Why do you want to run the ICA epoch by epoch?

Also, you mentionned MNE version 0.24, which is now more than 2 years old. I strongly suggest you update to the latest version as many improvements and bugfixes have been added.

Mathieu

2 Likes