py_neuromodulation icon indicating copy to clipboard operation
py_neuromodulation copied to clipboard

👋 will this package support your connectomics with 🦓CEBRA approach?

Open MMathisLab opened this issue 1 year ago • 2 comments

Hey @timonmerk et al, firstly thanks SO MUCH for using CEBRA in your awesome paper, https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10543023/pdf/nihpp-rs3212709v1.pdf. I am currently working on teaching material, and I was wondering if you have a demo notebook, or such, for how you used CEBRA in your paper?

" In brief, voxel-wise correlations between decoding performance and whole-brain connectivity maps seeded from channel MNI coordinates were calculated to identify an optimal connectomic template fingerprint for movement decoding (so called connectomic decoding network map) across all subjects (Fig. 2i). This allows for an optimized a priori channel selection in realtime, by identifying the individual recording channel that has most network overlap with the optimal template. Finally, we have transformed neural features from the selected channel into a lower dimensional embedding. For this, a five-layer convolutional neural network with a temporal filter length of 1 s was trained using the InfoNCE (Noise-Contrastive Estimation) contrastive loss function. The resulting embeddings showed exceptionally high consistency across subjects as investigated with linear identifiability"

i.e., j and k here: Screenshot 2024-04-27 at 3 54 34 PM

Sorry if I missed it in the code, but a quick serach doesn't have cebra in this code base! Not a worry if you are waiting for formal publication, etc -- totally get it -- just figured I'd ask 🥰. Thanks again for using CEBRA -- truly one of my fav. uses so far 🦓🚀

MMathisLab avatar Apr 27 '24 13:04 MMathisLab

Many thanks @MMathisLab! It was really great to use CEBRA and we could also show that it improved the leave-one-patient and leave-one-cohort out performances significantly by quite a big factor over the other tested methods in the revision!

We are however still in the revision process and currently work a lot to make the repo more useable. I think we will also add an option to add CEBRA as a dev dependency. But still keep the feature-estimation only methods lightweight without having the need to install e.g. PyTorch.

But I definitely have an example notebook on my ToDo list that shows the predictions using CEBRA without patient-individual training. Luckily the Pittsburgh cohort data was all published openly so I could add a reproducible example within that cohort. Is there a specific deadline for the teaching? Then I could prioritise this notebook and will let you know once it's upstream.

timonmerk avatar Apr 28 '24 20:04 timonmerk

Sorry for my delay! No major rush :) I showed them your cool preprint last week, so would be also in future years :D

MMathisLab avatar May 12 '24 19:05 MMathisLab

Ok, finally coming back to the example @MMathisLab. I added a CEBRA decoding example to the documentation and examples folder where the connectomic across-patient decoding is presented. It took me quite some time since hosting pure .ipynb in sphinx-gallery isn't so straightforward as I expected!

timonmerk avatar Jun 05 '24 14:06 timonmerk