GithubHelp home page GithubHelp logo

aican-research / h2g-net Goto Github PK

View Code? Open in Web Editor NEW
19.0 5.0 4.0 42.21 MB

🚀 H2G-Net: Segmentation of breast cancer region from whole slide images

License: MIT License

Python 43.42% Groovy 3.79% Makefile 0.07% TeX 52.28% Dockerfile 0.44%
h2g-net cnn tensorflow-keras digital-pathology computational-pathology u-net agu-net mobilenetv2 breast-cancer clustering

h2g-net's Introduction

H2G-Net

License Paper Poster

This repository contains the code relevant for the proposed design H2G-Net, which was introduced in the manuscript "H2G-Net: A multi-resolution refinement approach for segmentation of breast cancer region in gigapixel histopathological images", published in Frontiers in Medicine.

The work was also presented at a region conference (HMN RHF 2022), where it won best poster award!

Brief summary of the paper and contributions

We propose a cascaded convolutional neural network for semantic segmentation of breast cancer tumours from whole slide images (WSIs). It is a two-stage design. In the first stage (detection stage), we apply a patch-wise classifier across the image which produces a tumour probability heatmap. In the second stage (refinement stage), we merge the resultant heatmap with a low-resolution version of the original WSI, before we send it to a new convolutional autoencoder that produces a final segmentation of the tumour ROI.

  • The paper proposed a hierarchically-balanced sampling scheme to adjust for the many data imbalance problems:

  • Second, a two-stage cascaded convolutional neural network design, H2G-Net, was proposed that utilizes a refinement network to refine generated patch-wise predictions to improve low-resolution segmentation of breast cancer region.

  • The final model has been integrated into the open software FastPathology and only takes ~1 minute to use on a full whole slide image using the CPU.

  • Developed annotated dataset of 624 whole slide images of breast cancer.

Test the model on your own data

You can easily test the H2G-Net model using FAST. First make sure you have all requirements for FAST installed. Then install FAST using pip, and run the breast tumour segmentation pipeline from your terminal. This will download the model, run it on the WSI you specify and visualize the results.

pip install pyfast
runPipeline --datahub breast-tumour-segmentation --file path/to/your/whole-slide-image.vsi

Or you can test the model in the graphical user interface FastPathology which allows you to run the model on multiple images, change the visualization of the segmentation and export the segmentation to disk.

Code info

Other useful scripts and tips for importing/exporting predictions/annotations to/from QuPath <-> FastPathology can be found in the NoCodeSeg repository.

Disclaimer: The source code is provided as is, only to demonstrate how to define the architecture and design used in the paper. The code itself requires modifications to run on a new dataset, as it contains various hard-coded solutions, but all components are provided, as well as the code for training and evaluating the refinement model.

How to cite

Please, cite our paper if you find the work useful:

@article{10.3389/fmed.2022.971873,
  author={Pedersen, André and Smistad, Erik and Rise, Tor V. and Dale, Vibeke G. and Pettersen, Henrik S. and Nordmo, Tor-Arne S. and Bouget, David and Reinertsen, Ingerid and Valla, Marit},
  title={H2G-Net: A multi-resolution refinement approach for segmentation of breast cancer region in gigapixel histopathological images},
  journal={Frontiers in Medicine},
  volume={9},
  year={2022},
  url={https://www.frontiersin.org/articles/10.3389/fmed.2022.971873},
  doi={10.3389/fmed.2022.971873},
  issn={2296-858X}
}

Contact

Please, contact [email protected] for any further questions.

Acknowledgements

Code for the AGU-Net and DAGU-Net architectures were based on the publication:

@misc{bouget2021meningioma,
  title={Meningioma segmentation in T1-weighted MRI leveraging global context and attention mechanisms},
  author={David Bouget and André Pedersen and Sayied Abdol Mohieb Hosainey and Ole Solheim and Ingerid Reinertsen},
  year={2021},
  eprint={2101.07715},
  archivePrefix={arXiv},
  primaryClass={eess.IV}
}

Code for the DoubleU-Net architectures were based on the official GitHub repository, based on this publication:

@INPROCEEDINGS{9183321,
  author={D. {Jha} and M. A. {Riegler} and D. {Johansen} and P. {Halvorsen} and H. D. {Johansen}},
  booktitle={2020 IEEE 33rd International Symposium on Computer-Based Medical Systems (CBMS)}, 
  title={DoubleU-Net: A Deep Convolutional Neural Network for Medical Image Segmentation}, 
  year={2020},
  pages={558-564}
}

h2g-net's People

Contributors

andreped avatar smistad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

h2g-net's Issues

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.