GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vladzalevskyi/brain-segmentation: This repository contrains source code and the report for the Brain Segmentation challenge. It was the final assignment for the Medical Image Segmentation and Analysis course at the University of Girona for the MAIA programme.

BranchesTags
Open more actions menu

Latest commit

 

History

18 Commits
18 Commits

Folders and files

NameName
Last commit message
Last commit date
dataset
dataset
 
 
figures
figures
 
 
loss
loss
 
 
models
models
 
 
notebooks
notebooks
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
MISA_Final_Project.pdf
MISA_Final_Project.pdf
 
 
README.md
README.md
 
 
brain_segmenter.py
brain_segmenter.py
 
 
config.yaml
config.yaml
 
 
train.py
train.py
 
 
utils.py
utils.py
 
 

Repository files navigation

Brain Segmentation Challenge

This repository contrains source code and the report for the Brain Segmentation challenge. It was the final assignment for the Medical Image Segmentation and Analysis course at the University of Girona for the MAIA programme.

img
Images from the IBSR18 dataset grouped by resolution

Proposed solution reached average dice of 0.937 for the best U-Net model, while also reaching an average dice of 0.828 with just SynthSeg segmentations and an average dice of 0.778 for the best multi-atlas combination strategy.

Link to the report


Authors

Alejandro Cortina Uribe github | linkedin

Vladyslav Zalevskyi github | linkedin


Challenge description

In this final project, we explored and implemented several available approaches for brain segmentation. Our goal was to produce segmentation maps with WM, GM, and CSF labels from the given set of images from the IBSR18 dataset. The segmentation problem we were tackling in this challenge is unbalanced, since the minority class CSF occupied less than 2% of total GT segmentation volumes (in part due to the way GT were created). We implemented and test various algorithms to assess their benefits, limitations, and performance on our dataset. As a baseline approach, we implemented a multi-atlas algorithm with majority and weighted voting combination strategies. Then, we used the deep learning model SynthSeg to directly obtain segmentations and evaluate them, without any fine-tuning of the model. Finally, we developed our own deep learning model using a 2D U-Net architecture trained with image patches, testing its performance when a single or two channels (anatomical prior) are used for the input.


Repository structure

  • notebooks/ - contains the notebooks used for the project

    • Please refer to PreprocessRegisterData notebook to see details of the pre-preprocessing and registration steps performed before multi-atlas segmentation.

    • And to MultiAtlasSegmentation notebook to see the implementation of the multi-atlas segmentation algorithm with different weights.

  • datasets/ - contains the dataset class and utils used to load and preprocess the data

    • patch_dataset.py - contains the dataset class used to load and preprocess the data based in Pytorch Dataset and LightningDataModule classes.
  • models/ - contains the source code for the models

    • UNetModel.py - contains the source code for the 2D U-Net model written based on the Lightning class.
  • train.py - main script used to train the models

  • brain_segmenter.py - contains the source code for the brain segmenter class that allows direct segmentation of the images using the trained models (deals with patch slicing and reconstruction as well as the model inference and simple ensembling)

  • config.py - contains the configuration parameters for the project (paths, hyperparameters, etc.)

About

This repository contrains source code and the report for the Brain Segmentation challenge. It was the final assignment for the Medical Image Segmentation and Analysis course at the University of Girona for the MAIA programme.

Topics

brain-segmentationdeep-learningmaiapythonpytorchpytorch-lightningu-net

Resources

Readme
Apache-2.0 license
Activity

Stars

6 stars

Watchers

1 watching

Forks

1 fork
Report repository

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.