Code Monkey home page Code Monkey logo

wsmis's Introduction

Weakly Supervised Medical Images Segmentation

This is an implementation of the Weakly-Supervised Segmentation for DiseaseLocalization in Chest X-Ray Images by Ostap Viniavskiy, Maria Dobko, and Oles Dobosevych.

Overview

We proposed a three-step approach to weakly-supervised semantic segmentation, which uses only image-level labels as supervision. The method can be applied to various medical problems as well as on datasets of different nature. We demonstrated the efficiency of this approach for semantic segmentation of Pneumothorax on chest X-ray images (SIIM-ACR Pneumothorax). We also evaluated the performance on PASCAL VOC 2012 dataset.

outline

License

WSMIS is released under the GNU General Public License version 3 license.

General Pipeline

  • Step 1. Cam extraction.
    • A fully-supervised classification model (ResNet50 or VGG16) is trained on image-level labels. Grad-CAM++ is used to generate activation maps.
  • Step 2. Boundaries improvements via IRNet.
    • IRNet takes the generated CAM from Step 1. and trains ResNet50 with two output branches that predict a displacement vector field and a class boundary map, correspondingly.
  • Step 3. Segmentation.
    • Outputs from Step 2 are used as pseudo-labels for training a fully-supervised segmentation model (DeepLabv3+ or U-Net).

Some postprocessing techniques are applied in between the steps, please refer to the paper for details.

Data

Download PASCAL VOC 2012 devkit

Download SIIM-ACR Pneumothorax

Usage

Dependencies and Computing resources

All necessary modules are in the requirements.txt

pip install -r requirements.txt

This code should be compatible with Python versions >= 3.5.

All the experiments were performed on four Nvidia Tesla K80 GPUs.

Training

  1. Set parameters for the experiment config.yaml (for detailed explanation of the config file see config section below)
  2. Run the following command:
python train.py

Configurations

The description of possible configurations for training is provided in model_training/CONFIGURATIONS.md

Testing

Will be added soon

Citation

References

  • Learning Deep Features for Discriminative Localization: paper
  • Weakly Supervised Learning of Instance Segmentation with Inter-pixel Relations: paper
  • U-Net: Convolutional Networks for Biomedical Image Segmentation: paper
  • Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation: paper

wsmis's People

Contributors

marichka-dobko avatar originofamonia avatar viniavskyi-ostap avatar

Watchers

 avatar

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.