We use cookies and other tools to enhance your experience on our website and to analyze our web traffic.
For more information about these cookies and the data collected, please refer to our Privacy Policy.

Luna- Removing Artifacts

3 posts
Was this reply useful? Learn more...
lkamoun +1 point · over 2 years ago


I have been testing out Luna to take out EEG artifacts from the shhs1 edf files.

To remove artifacts, I am currently using the welch theorem: http://zzz.bwh.harvard.edu/luna/ref/artifacts/#artifacts

However, I can't seem to figure out how to output a cleaned eeg dataset and I was wondering if anyone could help.

Also, is it possible to remove EMG and EOG(R and L) artifacts from EEG? I have been looking around but I am not having any luck.

Any help would be appreciated. Decided to ask on the NSRR forum, because I couldn't find any forums or anyone to contact questions I had on Luna. If there is an existing forum for Luna, please tell me about it.

Thank you!

11 posts
Was this reply useful? Learn more...
shaunpurcell +1 point · over 2 years ago

Hello --

You can save modified EDFs with the WRITE command: see the Commands / Outputs section of the documentation:


We have a new gmail account for Luna queries now (yet to be documented on the Luna page, but we'll do that soonish): luna.remnrem@gmail.com

The issue of EMG/EOG artifacts in the EEG is more involved, e.g. will depend on your type of data (e.g. ICA is implemented and appropriate for hdEEG). The short answer is that there are currently no specific / fully-automated approaches for that (beyond applying the same types of statistical (CHEP-MASK) epoch-wise outlier detection on EMG and EOG channels and removing those epochs). You could also use the COH or other cross-signal functions to flag epochs with excessively high coherence/correlation w/ the EEG, and then remove those, although this is currently not something that can be done in a single Luna run).

If you had other specific, published and reasonable approaches in mind, we'd in theory be happy to consider implementing it.

3 posts
Was this reply useful? Learn more...
lkamoun +0 points · over 2 years ago

Thanks you for your guidance!