Am i allowed to interepolate EEG data using Rbf ?

Hello everyone,
Although this doesnt have to a lot to do with MNE library specifically, i still used the read_raw_edf function to import my recorded EEG dataset. And i am truely thankfull for you guys for having such a great library. As for my question: I am trying to visualize EEG data on a 3D Scalp. I have managed to project the sensor locations on a 3D head model and assign a colormap to the projected vertices. And now i came to the problem of interpolating the data. Usualy in 2D its easly done using contour lines but for 3D visualization that doesnt work, so after searching for some answers on how to interpolate the data i couldnt really find the “preferred” interpolation method so i decided to use radial basis function interpolation. I have compared it with a 2D visualization and it seemed pretty spot on but i am still not sure since i really couldnt find any paper related to this topic so i decided to ask you, providing the following evidence if it allowed to use the Rbf to interpolate EEG data. Any help or references would be appriciated. The following link shows the result with an animation: Radial Basis Function Interpolation of EEG Data on a scalp in python - YouTube
further more i link a picture of a comparison to the built-in Mne function for a heatmap and my model:


P.S. : i am just trying to visualize the data as they are, without preprocessing or averging. I just want to know if the applied method is allowed
Thank you very much for your time

1 Like

Hi @Amin, cool video! Would you be interested in submitting a PR to mne to allow plotting scalp maps in 3d like you did? I think it would be very useful to the mne community!
As to your question - Rbf looks good, I certainly wouldn’t say it is not allowed. After all - we are only interpolating between sensors for visualisation, we are not interpolating missing channels data.

Hello! thanks for your answer. Sure that sounds great, i would just like to ask for a little bit of time (around 1-2 Weeks) so i can proparly document it and repolish it if thats okay. I will set up a github link as well as soon as i can and link it here.

1 Like

I am very sorry for the late response, i had some issues with other stuff, so i couldnt work on the project for a long time. Anyways this is the raw code, i still need to document it. Please excuse me if there is some thing unclear or unfinished, feel free to ask me about it. Ill try my best to respond as quick as i can.

1 Like