shimming-toolbox / susceptibility-to-fieldmap-fft

Fourier based method to estimate B0 variation induced by a susceptibility distribution.
GNU General Public License v3.0
2 stars 0 forks source link

Use `whole-spine` data to create susceptibility maps of the spine and the brain #6

Open NathanMolinier opened 4 months ago

NathanMolinier commented 4 months ago

Description

The objective would be to generate susceptibility maps of the spine and the brain using segmentations generated for the dataset whole-spine.

Current state

Currently, segmentations of the:

Are already available in our git-annexed version of the dataset. Additional segmentations of the brain will be created using the model wmh-synthseg.

Nilser3 commented 4 months ago

Brain multi-class segmentation

Here is a segmentation applying SynthSeg 2.0 model on T1w:

image

Command line:

mri_synthseg --i whole-spine/sub-amuAL/anat/sub-amuAL_T1w.nii.gz --o brain-seg/sub-amuAL_T1w_brain.nii.gz --robust

Inference time: ~19min per subject

So, do you agree that I apply this model on all whole-spine dataset (on T1w contrast) and store it in derivatives?

may be with this name? sub-amuAL_T1w_label-brain_dseg.nii.gz

Label intensity list :

image

from SynthSeg 2.0

feedback pls @NathanMolinier @jcohenadad

jcohenadad commented 4 months ago

Great! We also need the skull, fat, skin, muscles, cartilage, eyes-- is that possible?

NathanMolinier commented 4 months ago

sub-amuAL_T1w_label-brain_dseg.nii.gz

The name proposed seems to be fine, because i don't think we plan to split the labels into different files.

fat, muscles, cartilage is that possible?

For those, I think we should use the totalseg MRI, but I'm not sure for the rest.

Nilser3 commented 4 months ago

TotalSegmentatorMRI has 3 models for segment MRI data.

Here a test for the same subject:

  1. total_mr

image classes : here

  1. tissue_types_mr (available with a license)

image classes : skeletal_muscle.nii.gz , subcutaneous_fat.nii.gz , torso_fat.nii.gz

  1. face_mr (available with a license)

image classes : face.nii.gz

For skull and eyes:

We can explore mideface tool, here a result (cropping with dilation around brain_dseg.nii.gz) but we need to improve this processing

image

jcohenadad commented 4 months ago

hum... this is not very encouraging unfortunately 😞.

I'm wondering if we should manually segment what we need in a few subjects, and then fine-tune the total-segmentation-mri model. Do you think it would produce satisfactory results?

Nilser3 commented 4 months ago

With Samseg model we can also segment the skull and the face (partially), the only detail is that it also segments MS lesions (we will not take them into account)

image Inference time: ~15min per subject

jcohenadad commented 4 months ago

Hum, this is not very convincing... A lot of important tissue is not segmented.

I'm wondering whether we should do some manual segmentation of the skull, eyes and muscles in a few subjects (using threshold-based in-painting in Slicer, that should take a few hours) and then fine-tune the model. In the long term, that will probably save us time. Especially given that all our T1w images have the same contrast (ie: model "easy" to train).

Nilser3 commented 4 months ago

Agree, for threshold-based approach, with ExtractSkin.py script it is possible to do everything in Slicer.

image

jcohenadad commented 4 months ago

@CharlesPageot do you want to give it a try? @Nilser3 can help you navigate 3D Slicer segmentation modules

CharlesPageot commented 4 months ago

Yes for sure, I'll get familiar with the tool and give it a try!

CharlesPageot commented 4 months ago

Considering that the bottom of the images is very noisy, I focused on the head-neck region. Also, instead of a threshold-based approach, which requires a lot of manual correction, I used the 'Grow from seeds' tool to segment the body and the different air regions.

These are the general steps that I used for this first subject (sub-amuAL_T1w):

Label legend

legend Maybe we group all the labels except the body to make a single air region?

Air segments

air_segmented

Body without air

body_without_air

The whole process is about 20-30 min. If this seems correct, I'll proceed with a couple more subjects.

Nilser3 commented 4 months ago

Hi @CharlesPageot I am currently segmenting all whole-spine dataset with samseg

image the names-intinsities of the output labels can be known with FreeSurferColorLUT.txt file.

I will add these masks to the git-annex.

CharlesPageot commented 4 months ago

Perfect, thank you!

jaystock commented 2 months ago

I would be interested in helping adding tissue conductivity and permittivity to each compartment, to allow these models to be used for EM simulations such as pTx array and pulse design.

jcohenadad commented 2 months ago

I would be interested in helping adding tissue conductivity and permittivity to each compartment, to allow these models to be used for EM simulations such as pTx array and pulse design.

@jaystock these information should already be available in this other repos: https://github.com/shimming-toolbox/tissue-to-MRproperty. If not, they should be added there. Looping in @sriosq

sriosq commented 2 months ago

Hello @jaystock , I can add this 2 options as part of the repo mentioned by prof. Julien. I would only need a list of tissue types and their respective conductivity and permitivity.

jcohenadad commented 1 month ago

@jaystock Just following up on this: would you like us to implement the conductivity and permittivity to each compartment? If so, we will open an issue on https://github.com/shimming-toolbox/tissue-to-MRproperty and follow-up there

jaystock commented 1 month ago

Julien, thanks for following up on this. We did put this as a sub-aim in the BPI 7T head-neck coil grant, which would be a way that MGH could contribute. But that wouldn’t happen for a while (August 2025 at the earliest). So if you have the bandwidth to work on it now, I think it would certainly be a valuable improvement to the numerical phantoms.

One thing that Bastien and I want to try is to acquire an MPRAGE, B1 map, and B0 map on a human volunteer, run the MPRAGE through your segmentation and susceptibility map pipeline, and then use the electrical properties map to perform an EM simulation for a birdcage transmit coil, and then compare measured and simulated B0 and B1+ maps. This would be a nice thing to show in an abstract for example, and a good validation of the numerical phantom approach.

From: Julien Cohen-Adad @.> Date: Monday, October 7, 2024 at 1:30 PM To: shimming-toolbox/susceptibility-to-fieldmap-fft @.> Cc: Stockmann, Jason,PHD @.>, Mention @.> Subject: Re: [shimming-toolbox/susceptibility-to-fieldmap-fft] Use whole-spine data to create susceptibility maps of the spine and the brain (Issue #6)

    External Email - Use Caution

@jaystockhttps://secure-web.cisco.com/1QHbyaf_GvIYMP5aBjpF5-c8oQTvMrvgh__6-4CdFH-GNkftZPNomJeFLvu0dIlTfsDcLMfext6MzBRJK_P6a3YnP5e4G3d3Z6PX9ONPMY0fkKZ5415_yMD-Ll6w1jf2y_Lvki8_e2QL1ah5AC43prxB9fVQCo0LvavmNAJPBMCR0GRb15pTa4U_kngoV6GEQfuLtAvSRV0i5cAxiy5gRigNiuJp9za51uOFouwR83qFtE7k9e2ouZ55xuzvRyK_1Z4PBH9wGrjxglGAhuNYk8wrjdy2cdZAlXJa9lg4eHFG1PlJfW38Pm_Zeq4X-M3f5ekUxwrpMn8eE_AswBarNtg/https%3A%2F%2Fgithub.com%2Fjaystock Just following up on this: would you like us to implement the conductivity and permittivity to each compartment? If so, we will open an issue on https://github.com/shimming-toolbox/tissue-to-MRpropertyhttps://secure-web.cisco.com/1ubJKZNOIpmq2iLQCjpexB471awESDI6FW9rigAcjWoo2vARAbNQrB8F8z-ybEeK7E8F1HBltF8Q6n54sGACEJc-27stcxDvdc9DAJy4DZXz1DQmbloGwXKCokXycyYC9DPTL7aWGzylyVSeB8y2ezojv_P5N_aOdvdcHMY4TSZuP-QSke4kxdiJR3IM3Lt1P9pGo3iBwEO9g9SU4zslqRpWEFu9yWj6gIHqxX6gva398bP_50ZmM1V_ysYH989Ytu5hCnA7OUEXme83McovjOSndfiJTUQPpbF0X6f6d4s3NJab0yH4eS78xLb7cN1OP6YvYtdWNWpJsrWNa49wXkQ/https%3A%2F%2Fgithub.com%2Fshimming-toolbox%2Ftissue-to-MRproperty and follow-up there

— Reply to this email directly, view it on GitHubhttps://secure-web.cisco.com/1CEtDLAsNfM2t32mkAaoy62cfzs8rtoP-ptzJiP0PFRgYmy4rJR3O6RVsFwz9_DYojUVgbJZzUGklo40n1RoF2k5ErGH62BTCJ06tZ2_IUAfiWnIChi2kK02ViKkA6e3lqoeXp4MdWbilwJ-7QisRuiL4zQ0NJZLo7FWDEtQUpOCzFfEuP_LWdIhaGBIHPmHPhsvz_36JY3HhA6u7nEtYrImkTQ1s0x2o5ToVW3q-Kl6t9FJUmpt2xK0mknI3gG6W6wQj402m8WzUDUAiQGpWqETa9X_fDHSd04MoLr4WswEBtbPZn0OEeaw_qeY1oRpNweKEcbynNiQ5dLsgWvAMxg/https%3A%2F%2Fgithub.com%2Fshimming-toolbox%2Fsusceptibility-to-fieldmap-fft%2Fissues%2F6%23issuecomment-2397503310, or unsubscribehttps://secure-web.cisco.com/1UI4_ZolQQfF-lmmxITiDvbP9pFt-Ufz8fbHFHPcmxml6zaf3Dih61hD4qDmMo6UIPaHtwy1CuEQPD0Z6KPGV_2R2EvTiSzpLZCkGbhZj_1cYLPmjqOubpmAmXCQMybKkgLJaHQu6zAdYcXwJcGuCXA0t5IAHGmnnDji-nUXwybJoVhGNZbGMpA1M-88j_bQdVUbMU1u7bOEyQK8gvt3H1jdSptf-eMYCdhSSIzMEuQHMAVjnVdU4ZqT5tvEXTRfdkynr7OnSsbI0o2BQbgU_CH8hCx2cZTiaMiXiA5HeBbmUTfC9Z0cYL1V4R6D6GblN2I5yO7UgCkAJtvNJ4J-Flg/https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGCOLG7VAGG2XS42YCU27G3Z2LALPAVCNFSM6AAAAABJ6LFMY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJXGUYDGMZRGA. You are receiving this because you were mentioned.Message ID: @.***> The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline https://www.massgeneralbrigham.org/complianceline . Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.