This repository contains the implementation of our paper (https://arxiv.org/abs/2402.07008). The code is developed by Kurtlab for the 2023 International Brain Tumor Segmentations (BraTS) Cluster of Challenges (see here.)
The aim of the BraTS Challenges is to push the state-of-the-art in brain tumor segmentation algorithms. That is, algorithms that can segment tumor subregions from multiparametric MRI scans of the brain.
We submitted to three challenges:
- Adult gliomas.
- BraTS-Africa - gliomas from patients in sub-Saharan Africa.
- Meningiomas.
Our team ranked in the top 10 of all those who submitted, including 7th place in the BraTS-Africa challenge.
Our baseline model is based on the Optimized U-Net presented by Futrega et al. from NVIDIA.
We developed a framework of optimization techniques to boost model performance. These include:
- Preprocessing the MRI data with Z-score normalization and contrast rescaling.
- Postprocessing our predictions to remove small connected components to minimize the number of false positives predicted, to account for the new performance metrics introduced in BraTS 2023.
- A transfer learning technique in which specific layers of the model are frozen before training is continued on a new dataset.
We found that this transfer learning technique successfully allowed us to transfer knowledge from the large Challenge 1 dataset of adult gliomas to the smaller and lower resolution Challenge 2 dataset for BraTS-Africa.
We performed several ablation studies to fine-tune these techniques.
The dependencies for our code are provided in the requirements.txt
file.
We provide a brief explanation of each subpackage:
datasets
- the dataset class for loading training and test data for BraTS;losses
- loss functions used in model training;model_routines
- commonly run routines for model training, validation and inference;processing
- preprocessing, postprocessing and plotting code;utils
- many utility functions used in model training and inference.
To ensure the code runs with the relative imports working correctly, navigate outside the root folder and use python -m
to run the Python module as a script. For example, if you wanted to run the training with validation model routine, you would run the following line.
python -m brats2023_updated.model_routines.train_with_val
This research was conducted by Tianyi Ren, Ethan Honey and Harshitha Rebala under the supervision of Dr Mehmet Kurt. The code was developed by Ethan Honey and Harshitha Rebala. The updated version of the code and this repository was put together by Ethan Honey. The code for the edge loss function was developed by Agamdeep Chopra.
We would particularly like to acknowledge the work of Futrega et al. and NVIDIA for their Optimized U-Net model that was a crucial part of our foundation, as well as their accompanying code.
We acknowledge MONAI for their implementations of the Dice Score and 95% Hausdorff Distance metrics. We used these in our validation code.
We acknowledge the cc3d Python library. We used their connected component tools in our postprocessing strategies.
We acknowledge Abderezaei et al. for their development of the edge loss function. We utilized this in training our model.
Finally, we would like to acknowledge the organizers of BraTS 2023, for presenting the challenges, sharing the datasets and supporting us in the development of our algorithms.
- Futrega et al. 2021. Optimized U-Net for Brain Tumor Segmentation.
- Cardoso et al. 2022. MONAI: An open-source framework for deep learning in healthcare
- Abderezaei et al. 2022. 3D Inception-Based TransMorph: Pre- and Post-operative Multi-contrast MRI Registration in Brain Tumors
- Baid et al. 2021. The RSNA-ASNR-MICCAI BraTS 2021 Benchmark on Brain Tumor Segmentation and Radiogenomic Classification
- Menze et al. 2015. "The Multimodal Brain Tumor Image Segmentation Benchmark (BRATS)," in IEEE Transactions on Medical Imaging
- Bakas et al. 2017. Advancing The Cancer Genome Atlas glioma MRI collections with expert segmentation labels and radiomic features
- Bakas et al. 2017. Segmentation Labels and Radiomic Features for the Pre-operative Scans of the TCGA-GBM collection. The Cancer Imaging Archive.
- Bakas et al. 2017. Segmentation Labels and Radiomic Features for the Pre-operative Scans of the TCGA-LGG collection. The Cancer Imaging Archive.
- Adewole et al. 2023. The Brain Tumor Segmentation (BraTS) Challenge 2023: Glioma Segmentation in Sub-Saharan Africa Patient Population (BraTS-Africa)
- LaBella et al. 2023. The ASNR-MICCAI Brain Tumor Segmentation (BraTS) Challenge 2023: Intracranial Meningioma
- Evaluate updated model performance on BraTS-GLI and BraTS-Africa
- Produce plots of predicted segmentations for the updated model