Code Monkey home page Code Monkey logo

tiagofilipesousagoncalves / deep-image-segmentation-for-breast-contour-detection Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 4.08 MB

Implementation of the paper "A novel approach to keypoint detection for the aesthetic evaluation of breast cancer surgery outcomes" by Tiago Gonçalves, Wilson Silva, Maria J. Cardoso and Jaime S. Cardoso.

License: MIT License

Python 87.84% Jupyter Notebook 12.16%
deep-learning deep-neural-networks breast-cancer aesthetic-assessment breast-cancer-surgery medical-image-segmentation u-net u-net-plus-plus keypoint-detection convolutional-neural-networks

deep-image-segmentation-for-breast-contour-detection's Introduction

Deep Image Segmentation for Breast Contour Detection

About

Implementation of the paper "A novel approach to keypoint detection for the aesthetic evaluation of breast cancer surgery outcomes" by Tiago Gonçalves, Wilson Silva, Maria J. Cardoso and Jaime S. Cardoso.

Clone this repository

To clone this repository, open a Terminal window and type:

$ git clone https://github.com/TiagoFilipeSousaGoncalves/Deep-Image-Segmentation-for-Breast-Contour-Detection.git

Then go to the repository's main directory:

$ cd Deep-Image-Segmentation-for-Breast-Contour-Detection

Dependencies

Install the necessary Python packages

We advise you to create a virtual Python environment first (Python 3.7). To install the necessary Python packages run:

$ pip install -r requirements.txt

Data

To get access to the dataset used in this paper, please send an e-mail to [email protected].

Usage

Generate Train and Test Indices for 5-Fold Cross-Validation

The original train_test_indices.pickle file is already provide. However, you may generate this file by running:

$ python generate_train_test_split_indices_cv5.py

ISBI Model

Train

First, we need to train the ISBI Model:

$ python isbi_model_train.py

Predict

Then, we generate the ISBI Model Predictions (which are needed for the rest of the models):

$ python isbi_model_predict.py

Hybrid Model

Train & Predict

We are then ready to move to the Hybrid Model, which integrates train and prediction in the same script:

$ python hybrid_model_predict.py

We must convert the Hybrid Model predictions to the same notation as ISBI Model predictions (for scoring purposes):

$ python hybrid_model_reshape_predictions.py

Segmentation Based Model

Train U-Net++

This model is based on U-Net++ Model. We first train a U-Net++ Model with our data:

$ python segmentation_based_model_unetpp_train.py

Generate Breast Masks with U-Net++

Then, we generate breast masks with the U-Net++ trained model:

$ python segmentation_based_model_unetpp_predict.py

Project ISBI Model predictions in the U-Net++ masks detected contours

Finally, we perform contour detection in the U-Net++ predicted masks and combine with the ISBI Model predictions to get a refined breast contour detection:

$ python segmentation_based_model_predict.py

Scoring and Plots

Python Scripts

To generate scores you must run the scoring scripts:

ISBI Model Scoring

$ python isbi_model_scoring_results.py

Hybrid Model Scoring

$ python hybrid_model_scoring_results.py

Segmentation Based Model Scoring

$ python segmentation_based_model_scoring_results.py

Python Jupyter Notebook

To generate scores and to plot the predictions, you may run the plot_predictions_and_get_scores.ipynb, using Jupyter-Notebook or Jupyter-Lab. To install Jupyter-Lab:

$ pip install jupyterlab

And then run:

$ jupyter-lab

Citation

If you use this repository in your research work, please cite this paper:

@article{gonccalvesnovel,
  title={A novel approach to keypoint detection for the aesthetic evaluation of breast cancer surgery outcomes},
  author={Gon{\c{c}}alves, Tiago and Silva, Wilson and Cardoso, Maria J and Cardoso, Jaime S},
  journal={Health and Technology},
  pages={1--13},
  publisher={Springer}
}

Credits and Acknowledgments

ISBI and Hybrid Models

This model and associated code are related to the paper "Deep Keypoint Detection for the Aesthetic Evaluation of Breast Cancer Surgery Outcomes" by Wilson Silva, Eduardo Castro, Maria J. Cardoso, Florian Fitzal and Jaime S. Cardoso.

U-Net++ Model

This model and associated code are related to the paper "UNet++: A Nested U-Net Architecture for Medical Image Segmentation" by Zongwei Zhou, Md Mahfuzur Rahman Siddiquee, Nima Tajbakhsh, and Jianming Liang.

deep-image-segmentation-for-breast-contour-detection's People

Contributors

dependabot[bot] avatar tiagofilipesousagoncalves avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ikram22

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.