Skip to content

rohilrao/BrainMRI_Segmentation_UDA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Entropy-guided Unspervised Domain Adaptation for Segmentation of Brain MRI Scans

This project is an implementation of the research paper: Entropy Guided Unsupervised Domain Adaptation for Cross-Center Hip Cartilage Segmentation from MRI. The authors of this paper have not released the source code. We make two essential changes:

  • We replace the orignal segmentation backbone with a U-Net for reasons described in our report.
  • Our target dataset (CC-359) is different from the orignal paper.
  • Snapshot of results:

    alt text

    Contents of this repo:

    Tasks performed:

    • Implement from scratch, the architecture and adversarial training methodology as described in the orginal paper (code was not released by authors)
    • Data preprocessing for efficient pytorch dataloaders.
    • Progressively train and test individual components of the network (i.e. the segmenter and discriminator networks).
    • Hyperparameter optimization for adversarial domain adaptation

    Abstract

    Image segmentation is an important part of most medical applications ranging from diagnostics to medicine research. Deep learning based segmentation suffers from the problem of domain shift. A segmentation model trained on scans from a particular center or device (source domain) performs poorly when used for a novel center or device (target domain). To that end, in this lab, we implement a paper for Entropy guided domain adaptation by Zeng et. al. that introduces an adversarial learning based domain invariant segmentation model. The proposed model consists of a segmenter that is trained in a supervised manner to segment scans from the source domain. Additionally, the model contains two auxiliary discriminator networks, that discriminate between the segmenter features maps and the output entropy maps respectively, for the source and target domain. They propose using these discriminators to adversarially train the segmenter to produce domain invariant features maps and low entropy predictions. DICE Score and Surface Dice score were used to evaluate the segmentation performance and corresponding domain shift. In this work, we show a successful implementation of the original paper with a few crucial changes. Unlike the original paper, we use the U-Net architecture for segmentation. We also use a different dataset (Calgary Campinas Brain MRI data). In addition, we contribute to this work by experimenting with some other approaches. We investigate the effect of training the feature discriminator on both the source and target domains, unlike the original paper. We also show results with the addition of direct entropy minimization. Moreover, for comparison, we also produce results by jointly training the entire network from scratch, instead of fine-tuning the segmenter, as suggested in the original paper. In general, we present various successful domain adaptation methods, especially when the domain shift is high.
    Keywords: Unsupervised Domain Adaptation, Segmentation, Brain MRI

    General Pre-requisites:

    Guide to run on Google Colab

    View the code at:

    Pre-requisites to run

    1. To run the notebooks as is you will need a pro account. Otherwise you will have to make changes to the Dataset based on available memory.
    2. After downloading the CC359 dataset you can upload the scans to your google drive with the folder structure mentioned below:
    • The folder structure used for running this notebook is:
      • base_path = '/content/gdrive/MyDrive/VMIA_Lab_Data/data/'
      • original_path = base_path + 'Original/Original/'
      • mask_path = base_path + 'Silver-standard-machine-learning/Silver-standard/'
    1. Adapt your folder structure accordingly. Alternatively make changes to the paths in the Dataset class of the code.
    2. All other instructions and pointers are also provided in the code files.

    Snapshot of different entropy guided models:

    alt text

    About

    No description, website, or topics provided.

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published