-
Notifications
You must be signed in to change notification settings - Fork 1
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
Create protocol for manual lesion segmentation #73
Comments
@cspino and I are working on manual correction of MS lesion in the spinal cord predicted by the model (refer to ACTRIMS abstract). So far, the proposed method is the following :
However, we identified certains things to do beforehand:
@jcohenadad Could you give me feedback on the json file data for the automatically segmented lesions |
Great summary! 👍🏻 For SCI derivatives (segmented using the SCISeg model and then manually corrected), I use the following jSON sidecar: {
"GeneratedBy": [
{
"Name": "SCISeg nnUNet3D",
"Version": "Dataset183_tSCI3SitesALPhase2Seed710",
"Date": "2024-01-16"
},
{
"Author": "Jan Valosek",
"Note": "Manually corrected",
"Date": "2024-01-18 10:42:24"
}
]
} Or, if a mask is created completely manually, I use: {
"GeneratedBy": [
{
"Author": "Jan Valosek",
"Date": "2024-01-18 10:42:24"
}
]
} Unfortunately, Also see our intranet convention here. |
This is already supported; see the |
In our case, what do you think of ? {
"GeneratedBy": [
{
"Name": "nnunet_region-based_(SC+lesion)_training_on_STIR_and_inverted_PSIR_data nnUNet2D",
"Version": "Dataset222_RegionBasedLesionSeg",
"Date": "2024-01-16"
},
{
"Author": "Pierre-Louis Benveniste",
"Note": "Manually corrected",
"Date": "2024-01-18 10:42:24"
}
]
} |
"Name": "nnunet_region-based_(SC+lesion)_training_on_STIR_and_inverted_PSIR_data nnUNet2D" --> ideally it should point to the actual model (eg: URL to the model hosted on the assets of a published release on github). Or maybe the version should point to the versioned model... i don't know what's best. But in any case we need a link, otherwise in 5 years another student might give the same name to the model, and then we have a conflict "Note": "Manually corrected", --> i don't think this field is necessary |
Release done ! Format of json files will be : {
"GeneratedBy": [
{
"Name": "2D nnUNet model stored at https://github.com/ivadomed/canproco/releases/tag/r20240125",
"Version": "2D region-based nnUNet fold 2",
"Date": "2024-01-16"
},
{
"Author": "Pierre-Louis Benveniste",
"Date": "2024-01-18 10:42:24"
}
]
} |
Great! I have a comment about naming the model #74 Also, putting the version URL under "Name" defeats the purpose of the field "Version". How about instead putting the name of the model (ie: the packaged ZIP file, like |
I used this because, in some cases, the automatic seg was okay and needed no corrections. To distinguish this, I used: "Note": "Visually verified", or, if manual correction was required: "Note": "Manually corrected", |
I agree, this is a good idea. We should probably add this information in our intranet so as to standardize our terminology @NathanMolinier BTW: Does your manual_correction script automatically identifies if there was a modification in the segmentation, and then applies either "Visually verified" or "Manually corrected"? |
Yes! The script tracks the modification times of a file to distinguish if the file was just opened or actually modified. |
The json files have the following format : {
"GeneratedBy": [
{
"Name": "2D nnUNet model model_ms_seg_sc-lesion_regionBased.zip",
"Version": "https://github.com/ivadomed/canproco/releases/tag/r20240125",
"Date": "2024-01-26"
}
]
} |
Regarding this point, I discussed with @valosekj and I think that we should stick to our standards and use the field "Name" instead of "Note". For more information about this please check this comment in manual correction. Manual correction script needs to be updated for sure regarding json sidecars. Also few JSON sidecar examples are presented in our new convention. |
The field "SpatialReference": "orig" should also be added @plbenveniste |
Great idea @NathanMolinier ! However, because of consistency, I suggest adding this field to the entire dataset and not just to these specific segmentations. An issue was created #75 |
Yes indeed ! All the json sidecars should have this "SpatialReference" 👍 |
Regarding the |
Some relevant discussions:
7570a2b796aedff16316645e6a85877486c76752
model_seg_ms_mp2rage#56We should use https://github.com/spinalcordtoolbox/manual-correction
The text was updated successfully, but these errors were encountered: