I am attempting to remove line noise and its harmonics from many EEG datasets. I have been using cleanline to do this. However, it does not work well sometimes for some datasets. For example, here are the log power spectral density plots before and after cleanline at 60, 120, 180, 240, 300, and 420 Hz.
Before Cleanline After Cleanline
The code that I used is:
EEG = pop_cleanline(EEG, 'bandwidth',2,'chanlist',[1:68] ,'computepower',1,'linefreqs',[60:60:420] ,'newversion',0,'normSpectrum',0,'p',0.01,'pad',2,'plotfigures',0,'scanforlines',0,'sigtype','Channels','taperbandwidth',2,'tau',100,'verb',1,'winsize',4,'winstep',1);
I have also tried to use a notch filter with a lower edge of 55 and an upper edge of 65, but that does not work well.
Are there any suggestions on what other method of removing line noise and harmonics that I could try? Or is CleanLine the best method? Are there ways we can adjust the parameters of cleanline to allow it to work better?
I am relatively new to eeglab and any help is much appreciated :)