Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse brain T2 segmentation #1001

Closed
paulrowley opened this issue May 12, 2020 · 11 comments
Closed

Mouse brain T2 segmentation #1001

paulrowley opened this issue May 12, 2020 · 11 comments

Comments

@paulrowley
Copy link

I’m doing some mouse brain MRI segmentation. Specifically, I hope to segment and compute hemispheric parenchymal volumes (minus ventricles) in mouse brains based on 3D T2 acquisitions at 4.7 T. I have reconstructed them to be 0.23 mm isotropic. Importantly, half of the samples are from mice that are lesioned via hypoxic-ischemic injury, so I do not think it is feasible to use prior probability masks for segmentation due to gross differences in morphology after injury.

I have tried several algorithms for segmentation, one of which is ANTS Atropos N4. The segmentation results suggest that it has difficulty differentiating between cortical grey matter and ventricles due to similarities in intensity, at least with the parameters I have used so far:

antsAtroposN4.sh -d 3 -a sample_T2.nii.gz -x sample_mask.nii.gz -c 4 -o sample_T2

Does anyone have any suggestions on how to overcome this or alternative approaches?

Thanks in advance for your thoughts.
segmentation_ex
T2_mouse_example

@ntustison
Copy link
Member

Yeah, antsAtroposN4.sh was not designed for small animal segmentation and the lack of contrast is going to make intensity-based segmentation difficult. You might want to use a registration-based approach where you use something like the Waxholm atlas at Duke to warp labels to your subjects of interest. In fact, you might want to consult some of the papers from that group who have done quite a bit of adaptation of ANTs to mouse brains.

@gdevenyi
Copy link
Contributor

The mouse imaging center has a bunch of atlases and tools as well: https://github.com/Mouse-Imaging-Centre

@paulrowley
Copy link
Author

paulrowley commented May 14, 2020 via email

@ntustison
Copy link
Member

I don't see any attachment. And please start with the simpler script antsRegistrationSyNQuick.sh and let's start from those results.

@paulrowley
Copy link
Author

Thanks for letting me know and for your help. I have attached the missing screenshots here. I'll try using that simpler script.

Screen Shot 2020-05-13 at 12 21 50

Screen Shot 2020-05-13 at 08 14 10

@ntustison
Copy link
Member

Yeah, those are garbage results. We should definitely be able to do better. Please start with the scripts and come back once you get those results.

@paulrowley
Copy link
Author

paulrowley commented May 14, 2020 via email

@paulrowley
Copy link
Author

Hi Nick,
As suggested, I used the following code:

moving_img_1=$Atlas/canon_T2star_half_rez.nii
fixed_img_1=$subj_dir/${subjID}highres.nii.gz
antsRegistrationSyN.sh -d 3 -f $fixed_img_1 -m $moving_img_1 -o WHS

I have attached screenshots of each input image as well as the warped atlas overlaying the fixed image. It looks better to me. What do you think? What would you suggest for next steps for transforming the labels nifti file to segment ROIs?

Thanks.

Paul
Screen Shot 2020-05-15 at 07 37 41
Screen Shot 2020-05-15 at 07 36 56
Screen Shot 2020-05-15 at 07 37 32

@ntustison
Copy link
Member

You can use the transforms to warp the labels to your mouse brain.

$ antsApplyTransforms -d 3 -v 1 -i ${labels} -r ${fixed_img_1} -o ${labelsWarped} -n GenericLabel -t WHS1Warp.nii.gz -t WHS0GenericAffine.mat

@paulrowley
Copy link
Author

Thank you - I warped the labels to the mouse brain with nearest neighbor interpolation and got the attached results.

$ antsApplyTransforms -d 3 -v 1 -i ${labels} -r ${fixed_img_1} -o ${labelsWarped} -n NearestNeighbor -t WHS_1Warp.nii.gz -t WHS_0GenericAffine.mat

A big improvement. Are there any tweaks in transformation parameters or additional processing you'd suggest to optimize the results?

Screen Shot 2020-05-15 at 10 20 32

@ntustison
Copy link
Member

You could try antsRegistrationSyN.sh but that will take longer. You’re the one that ultimately is to decide if the results are “good enough.” So why don’t you run a few more subjects through and see if there are any systematic improvements you’d like to see. Once you have those specifics, we’ll be in a better position to offer advice.

@cookpa cookpa closed this as completed Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants