mne-icalabel icon indicating copy to clipboard operation
mne-icalabel copied to clipboard

Evaluate and support MEGNet

Open mscheltienne opened this issue 1 year ago • 2 comments

Found this randomly: https://www.sciencedirect.com/science/article/pii/S1053811921006777 Associated code: https://github.com/DeepLearningForPrecisionHealthLab/MegNET_2020

Might be interesting (I haven't read the paper yet).

mscheltienne avatar Jul 20 '23 12:07 mscheltienne

This looks cool!

adam2392 avatar Jul 20 '23 17:07 adam2392

Looks great. They use tensorflow for their model. Should be easy to convert to ONNX.

jacobf18 avatar Jul 20 '23 17:07 jacobf18

Hi! Dear MNE Developers,

I have integrated MEGnet into my MEG preprocessing workflow using data from a 256-channel CTF system. The artifact recognition hit rate is quite good, but on average, about one or two artifacts are missed per run. The artifacts identified so far include only blinks, eye movements, and heartbeats, as MEGnet was trained on labels for these three types of artifacts. To enhance the functionality, it may be necessary to retrain the model using more subjects, additional MEG systems, and with a broader range of artifact labels in order to achieve results comparable to MNE-ICAlabel. This is my experience using it, hopefully useful! :)

The attached figure displays the ICA components from one run, where components with red titles are those identified as artifacts by MEGnet. image

Best regards, Guohao

colehank avatar Oct 11 '24 14:10 colehank

Looks good, it would be awesome if you could take the time to create a PR to mne-icalabel to include MEGNet in the available algo. It would have to be a submodue in mne_icalabel/megnet defined similarly as iclabel in mne_icalabel/iclabel.

mscheltienne avatar Oct 11 '24 14:10 mscheltienne

Sure! It would be awesome to contribute to MNE. However, I haven't been deeply involved in the development of the toolkit before. I'll take some time to study the structure of mne_icalabel/iclabel and see if I can work on adding mne_icalabel/megnet.

colehank avatar Oct 12 '24 07:10 colehank

Great, we will definitely give you all the help and advice possible!

mscheltienne avatar Oct 12 '24 07:10 mscheltienne