-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
There are a few projects where binary ground truths of good quality already exist. They have been reviewed by a human and are reliable to use for training. However, given that the original mask was created using sct_deepseg_sc
, there is an over/under segmentation. Moreover, the mask is binary and we'd rather enrich the contrast-agnostic model using soft mask, in order to avoid reducing the softness of the model prediction (@naga-karthik observed it in previous experiments).
One possible strategy, is to:
- select a dataset (eg: Basel MP2RAGE),
- apply the contrast-agnostic model on the population,
- create a function that computes CSA per slice and per subject
- plots the CSA (one dot per slice and per subject) for both the contrast-agnostic (y-axis) and the native ground truth (x-axis)
- create another function that adds dilation/erosion on the native GT masks, and the kernel should be chosen such that the CSA line is bissectrice of the plot above (ie: perfect level of agreement). Note that the dilation/erosion should be soft, which is possible via scikit-image (see: https://scikit-image.org/docs/stable/api/skimage.morphology.html#skimage.morphology.dilation).
- Once the appropriate kernel is found, apply it to the GT, and call the new GT with suffix, eg:
sub-XXX_T1w_label-SC_seg-soft.nii.gz
. Orsub-XXX_T1w_label-SC_probseg.nii.gz
(although I find the latest one less intuitive, maybe we should revisit our convention @valosekj @sandrinebedard)
Metadata
Metadata
Assignees
Labels
No labels