Skip to content

A work on segmenting brain tumors on BraTS Dataset using Pre-trained and Fully-trained 3D U-Nets with commonly used loss functions to assess the effect of loss function on generalization error.

License

Notifications You must be signed in to change notification settings

Neurojedi/Brain-Tumor-Segmentation-using-3DUNet

Repository files navigation

Brain Tumor Segmentation using 3D U-Net (Under Construction 🛠️)

This repository contains code for training two different U-Net based architectures using various loss functions and optimizers on the Medical Segmentation Decathlon dataset. The first model is an adaptation of an assignment from the AI for Medicine Specialization on Coursera, where we performed brain tumor segmentation using a small portion of the dataset. I have taken the pre-trained weights used in the assignment, expanded and improved the utility functions to enable training on the entire dataset. The model was trained either with pre-trained weights or from scratch, and during training, I employed both Adam and Ranger Optimizers. Additionally, I wanted to further evaluate loss functions, so I trained another 3D U-Net from the Deep Learning Medical Decathlon Demos for Python repository. This model was trained from scratch using a different train/validation split setting but with the same optimizer and loss function settings.

For more information about the dataset and data analysis, please refer to the Main.ipynb file. This notebook provides details about the architectures, training settings, and the results on the test set for comparison of choice in loss function and optimizer. You can also find a link to the Google Drive Folder, where all the weight files generated during training are stored.

Furthermore, you can explore the training settings I used in the notebooks organized under specific folders named after each respective loss function. Each notebook in these folders displays the training plot, and if you wish to retrain the network in a different setting, you can easily utilize the notebooks on Colab.

About

A work on segmenting brain tumors on BraTS Dataset using Pre-trained and Fully-trained 3D U-Nets with commonly used loss functions to assess the effect of loss function on generalization error.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published