Hi Yi Qing,
I'll address all your questions within the text:
While I'm not 100% sure, it looks like you pressed the start button, which is solely for smart interpolation. Please select your label and image TAR file and press the AI button for training.
Sie erhalten nicht oft eine E-Mail von 2271...@student.uwa.edu.au. Erfahren Sie, warum dies wichtig ist
Hi!
An update, it gave an error
Same for another set of example data I tried:
Instead of putting all files in a TAR file, you can use individual files for training and upload them to different projects. In this case, only one image and one label file are allowed in each project. Unfortunately, you cannot upload different labels in different files. In your case, both "Blood" and "AAA" must be in the same file and have different values (e.g. 1,2,...). In 3D Slicer you can add multiple labels to a segmentation project. This is necessary in all cases, regardless of whether you use TAR files or individual files.
Would this be the way to do training with my files: (this is just one patient)
That's fine. Most Biomedisa users are unfamiliar with coding. Biomedisa was developed for this purpose. Although you didn't train a network here, but used a trained network for automated segmentation, everything worked fine. You have installed Biomedisa properly, your GPU has been detected, and segmentation has completed successfully. The result “final.testing_axial_crop_pat13.nii.gz” should be located where your image data is located, i.e. in your Downloads directory.
Thank you so much, I will patiently wait for your respond!
From: Yi Qing Low (22718812) <2271...@student.uwa.edu.au>
Sent: Saturday, 13 April 2024 3:33 PM
To: Philipp Loesel <philipp...@anu.edu.au>
Subject: Re: Biomedisa researchHello Philip,
Hope you had a great week and is currently doing well.
I just have a few questions about Biomedisa for deep learning - as I am not familiar with coding.I followed the instruction on github for deep learning.
Something like this showed up:
I need help in locating the way to visualise the trained data, ie how do I know if the deep learning succeeded ?
You did everything absolutely right. Yes, it is normal for training to take several hours. The computation time mainly depends on the number of volumetric training images, the number of training epochs used, and the number of GPUs available. This dataset from the Biomedisa gallery contains 10 volumetric training images, the default number of epochs is 100 (can be changed in the settings), and Biomedisa currently uses 2 NVIDIA V100 for training.
On the Biomedisa website, I attempted to perform deep learning to see how the app works:I uploaded the two files (one uploaded as image, another as label), then ticked the check box before clicking the AI button, is it normal for the processing duration to take more than 2 hours or have I made a mistake somewhere?
Since you have fully segmented 35 CT scans, you basically have two valid options:
For my research project, I have 35 patients' CT scans (.nrrd) with labelled (using 3D Slicer) AAA and its lumen (also .nrrd), as shown like this:
Each patient have different shape and size AAA.From my understanding, do I upload the CT scan and its correspond labels to the app > click the AI button, then repeat for the next 24 patients, then use 5 patients as validation and the last 5 for prediction (via the Prediction button).
In general you are much more flexible using the command line, currently not all features are available online, you avoid uploading the data to the server and predicting multiple images is a bit annoying as you have to upload them all individually (I'm in the process of changing that). On the other hand, with Biomedisa online you don't need to install anything and you don't even need a GPU (but neither seems to be a problem in your particular case), however I can help you figure out what's going on and give you some recommendations on what you can try to improve your results when you use Biomedisa online.
And lastly, with the above two methods (command line and on the website), which method do you reckon is more suitable for my data?
Thank you so much and I look forward to your input.
With regards,Yi Qing.
From: Philipp Loesel <philipp...@anu.edu.au>
Sent: Friday, 13 October 2023 2:51 PM
To: Yi Qing Low (22718812) <2271...@student.uwa.edu.au>
Subject: Re: Biomedisa researchHi YiQing,
thank you for notifying me. The server crashed. I have to check what went wrong.
But it should be fine now. Please let me know if you recognize any further problems.
Cheers,
Philipp
Am 13/10/23 um 16:30 schrieb Yi Qing Low (22718812):
Sie erhalten nicht oft eine E-Mail von 2271...@student.uwa.edu.au. Erfahren Sie, warum dies wichtig ist
Hi Dr Philipp,
Hope you are well.
I am a student studying her Masters in Biomedical Engineering in The University of Western Australia. I am interested in working with your Biomedisa platform for my research project (fully automated segmentation of abdominal aortic aneurysm medical images), as I read that your software can perform deep learning for fully automating segmentation.You may have heard from my classmate Anushree two months ago.
I attempted to enter the Biomediaa website at https://biomedisa.org/ but encountered this issue and just wanted to let you know.
Kind regards,YiQing.
_________________________________________________ Dr. Philipp Loesel Department of Materials Physics Research School of Physics (RSPhys) The Australian National University (ANU) 58 Mills Road, Cockcroft, Room C3.24 Acton ACT 2601 Australia phone: +61 2612 57583 email: philipp...@anu.edu.au https://physics.anu.edu.au/contact/people/profile.php?ID=3160 https://biomedisa.org
_________________________________________________ Dr. Philipp Loesel Department of Materials Physics Research School of Physics (RSPhys) The Australian National University (ANU) 58 Mills Road, Cockcroft, Room C4.40 Acton ACT 2601 Australia email: philipp...@anu.edu.au https://physics.anu.edu.au/contact/people/profile.php?ID=3160 https://biomedisa.info/
Hi Yi Qing,
Hi Philip,
"Instead of putting all files in a TAR file, you can use individual files for training and upload them to different projects. In this case, only one image and one label file are allowed in each project. Unfortunately, you cannot upload different labels in different files. In your case, both "Blood" and "AAA" must be in the same file and have different values (e.g. 1,2,...). In 3D Slicer you can add multiple labels to a segmentation project. This is necessary in all cases, regardless of whether you use TAR files or individual files."
Just to clarify, I am training a neural network to segment different patients. To make the training process more efficient, I would have to convert the patient scans into TAR file and their label scans into TAR file as well
in one TAR file would have the 21 patients for testing (if I am using the evaluation approach) a TAR file for their corresponding label file (Blood and AAA in same file)
another TAR with 7 patients + their labels for validation
And this can be done on the app and on command line?
Is there a way to save the final trained files e.g.final.testing_axial_crop_pat13 so I can view it in 3D as well? Viewing the file in 3D slicer shows a black and white image
Yes, now things are getting a little more advanced. Only when using Amira/Avizo label files to train the neural network, the header information is saved and automatically included in the prediction result. In all other cases, the result is saved as a TIFF without header information. However, in both cases, online and from the command line, you can specify another file with the header information, which will then be included in your result.
Command-line:
Use -hf="C:\full_path_to\Myreference_file.nrrd"
Your segmentation result should then also be an NRRD file (or a .nii.gz file for the heart examples from the gallery). When you import the result into 3D Slicer, select “Segmentation” as description. Then it should look like this:
Hi Yi Qing,
You need to extract a single label file from the training labels,
e.g. training_axial_crop_pat0-label.nii.gz, and upload it
as "label" to a Biomedisa project. Then replace final_heart_file.nrrd
with training_axial_crop_pat0-label.nii.gz in the "Header
file" field of the neural network.
--
You received this message because you are subscribed to the Google Groups "Biomedisa" group.
To unsubscribe from this group and stop receiving emails from it, send an email to biomedisa+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/biomedisa/ME2PR01MB26737D7137F4521378668E40BB082%40ME2PR01MB2673.ausprd01.prod.outlook.com.
Hi Yi Qing,
In this case, you need to change the header file in the neural network settings to example-label.nii.gz. Your label.nii.gz does not exist yet and the filename of the predicted file will be automatically set to final.image.nii.gz. You need to specify the header file in order to transfer the header information from the already existing label file example-label.nii.gz to your result. If you do not specify it, your result will be final.image.tif. But then you won't be able to import it as a Segmentation into 3D Slicer.
Hi Yi Qing,
That's pretty much correct, except that you don't need a "Validation split" if you use separate validation data. Validation splitting would split your training data into training and validation data. However, once you specify dedicated validation data, any validation split will be ignored. Dedicated validation data is prioritized.
The prediction of TAR files is not yet available. You must upload
all images individually. But that will change in the near future.
Also, the image files and the network for prediction do not need
to be in the same project.
Just to clarify, "Validation data" must be enabled in the
"label_val.tar" settings and the "Header file" field is in the
trained network settings.
Hi Yi Qing,
The online version of Biomedisa does not currently have the
ability to calculate Dice Score and ASSD like the local
command-line version. However, there are plans to include them,
and there are also plans to add the img_resize function.
But I can't say when that will happen. Any support is warmly
welcome.
Best wishes,
Philipp