Struggling with ICA

Hey everyone!

I’m currently using ICA to filter our any artifacts from my dataset.

Here’s the issue:

Prior, I applied bandpass/stop filters with a Notch filter to minimize power line interference at 50Hz. When I look at my PSD plot, there is no spike at 50 Hz

Yet when I conduct ICA and look at individual components, I’m seeing a singular spike at 50 Hz.

Why is this the case?

I’m linking a Jupyter notebook below for inspection if you’re willing to help out!

I’d highly value any advice!

you are doing ica.plot_properties(raw, ...) in cell 19. So even though ICA was computed based on filtered data, the plotting function is applying the ICA to the unfiltered data, which is why you see the power line spike.

oml, that as to be the most obvious mistake – right under my eyes yet I couldn’t see it.

Thanks for your help!