There is a new and instructive MONAI Label Training From Scratch video available on YouTube that shows all the necessary training steps for a lung segmentation model. The workflow for brain tumors should be very similar.
I tried to extract brain tumor referring for link that you had been shared.
I want to automatically extract brain tumor using MONAI Label with DICOM file of one patient. So I can’t let me train this DICOM file because I have only one DICOM dataset.
I conducted extraction process of brain tumor using MONAI Label in 3D-Slicer refering for share link as follows.
I conducted MONAI Label server pressing ’green button’ next to MONAI Label server item.
I also created Master Volume after pressing ’green allow button’.
I extracted brain tumor using ’Paint’ effect and ‘Grow from Seeds’ effect in Segment Editor option.
I pressed ’Submit Label’ button.
I selected segmentation in ‘model’ part that is under ‘Submit Label’ button, and then pressed ‘train’ button.
Is that all?
Some brain tumor is hard to extract in NVIDIA AIAA module, so I want to exactly extract brain tumor using MONAI Label module.
When I conducted as process above, I thought I would rather use only Grow from Seed effect in segment editor module than use Segment editor(Grow from Seeds) option in MONAI Label module.
What I want to exactly is as follows.
I want to exactly extract brain tumor that is hard to extract in NVIDIA AIAA module using Auto-Segmentation or other method(AI-Assisted Annotation) in MONAI Label.
Additionally, I want to find the solution that select ‘model’ type. I don’t know how to appear ‘model’ type in ‘Auto Segmentation’ and ‘SmartEdit/Deepgrow’ option.
Please, let me know how to solve the problems above.
This seems to be great hardware to use MonaiLabel.
To address some of the questions above:
Question: Why does nothing show up under “Auto Segmentation” after you connected to ML server and trained?
Answer: There was a recent issue/bug when using 3D Slicer 5.0.2 and the MonaiLabel extension.
(1) please make sure that you use 3D Slicer 5.0.3 stable for your next tests.
(2) Start 3D Slicer 5.0.3 stable and install the MonaiLabel extension again.
(3) Restart Slicer.
Please report back if that does not solve your problem.
Question:
Answer:
You will need to train a machine learning model with many labeled volumes to have acceptable results. At least 3-5 different volumes (patients) are needed, you would need to label them one by one, then start the MonaiLabel training process.
If you want to do your brain tumor segmentation on one dataset only I would recommend using 3D Slicers Segment Editor - no need to involve AI
Should I install 5.0.3 stable version for using Auto Segmentation in MONAI Label?
Anyway… As you let me know above, I installed 3D-Slicer 5.0.3 stable version. After reopening 3D-Slicer, I tried to extract brain tumor using MONAI Label.
The reason that I try to run Auto Segmentation in MONAI Label is because I’d like to exactly extract brain tumor in one volume using AI-Assisted Annotation.
Brain tumor can exactly extract in one volume using Grow from Seeds effect in Segment Editor module and NVIDIA AIAA. But there is brain tumor hard to extract in one volume using Segment Editor and NVIDIA AIAA modules.
I didn’t solve problem as following yet. #1
Although you recommended that I need to use Segment Editor of 3D-Slicer when I use only one volume, I’d like to run using Auto-Segmentation(Inference mode) or SmartEdit/Deepgrow options(Inference mode) in MONAI Label.
Please, let me know how to extract brain tumor using Auto-Segmentation and SmartEdit/Deepgrow in MONAI Label module.
#2
I installed 3D-Slicer 5.0.3 version and ran MONAI Label module after reopening 3D-Slicer, but it doesn’t show up nothing in ‘Model’ item, ‘run’ button, ‘Label’ item and ‘Update’ button of Auto-Segmentation option and SmartEdit/Deepgrow option in MONAI Label module.
And I have question regarding run of MONAI Label server for extracting brain tumor.
#3
When I run MONAI server, I input command “monailabel start_server --app apps/radiology --studies datasets/Task02_57453299_VS --conf models deepedit”.
Is it right to do this?
Please understand that for using auto-segmentation there are only two options here.
(1) You will need somebody who provides a working MonaiLabel brain tumor segmentation model to you. I (probably we) can not help here yet.
or
(2) you would need to train a MonaiLabel model yourself using many brain tumor volumes (50-100 patients minimum) with a steep learning curve and unclear outcome. I would not recommend you to do this for your special problem. Use Slicers conventional segment editor for the task and wait for a MonaiLabel brain tumor segmentation model to be published in the near future.
Of course, in the meantime, you can experiment with MonaiLabel.
Did you start the server first ?
The command line looks ok, where did you get the Task02_57453299_VS parameter from, and what happens if you issue that command? Please post a screenshot of the result or the output of the command.
Yon mean that It is not easy for me to run Auto Segmentation in MONAI Label based on 3D-Slicer.
Task02_57453299_VS is a folder included one volume(DICOM file).
When I input command “monailabel start_server --app apps/radiology --studies datasets/Task02_57453299_VS --conf models deepedit”, it occurrs result as following.
Start 3D Slicer, connect to MonaiLabel in the extension,
just press the green button:
and your fields will be populated. Press “Next Sample” to load the first volume.
Please do all this and report back. You should see one of the brain tumor volumes from the Task01 dataset in 3D Slicer. It is not your volume. It is one of the downloaded series.
I simply wanted to compare brain tumor extraction results using Segment Editor(Grow from Seeds) and NVIDIA AIAA using clinical DICOM data as shown in the figure below.
So I first extracted the brain tumor using NVIDIA AIAA. However, there was a brain tumor that NVIDIA could not extract, so I posted a question on the 3D-Slicer Forum.
When I extract brain tumor using Segment Editor(Grow from Seeds), brain tumor extracts well.
but I should compare Segment Editor and NVIDIA AIAA(other AIAA).
First image is to use option of Auto-Segmentation in NVIDIA AIAA.
So, I had tried to run MONAI Label for extracting brain tumor.
Although you have helped a lot, it is not easy to extract brain tumor of the figure above using MONAI Label.
I don’t have to use the MONAI Label to extract brain tumor.
I should extract brain tumor using AIAA method such as pre-trained Auto Segmentation or Segment from boundary point(DExtr3D) included in NVIDIA AIAA.
If brain tumor of above figure don’t extract using pre-trained Auto Segmentation or DeeEdit/DeepGrow included in MONAI Label, can you suggest alterative other AIAA method?
I should compare Segment Editor module and NVIDIA AIAA(or other AIAA) module after extracting brain tumor of figure above.
@rbunn I have been stuck in a similar situation and I hope you will be able to guide me through this
I have my own pre-trained model (.pth file) that I is tested and shown to give good results
On loading the same model in 3D Slicer to conf → deepedit.py and editing the labels, I expect a well defined result when I run Auto-segment module.
But the results are completely off the track. Can you please help me on how to go about this ?