GithubHelp home page GithubHelp logo

descargan's Introduction

DeScarGAN: Disease-Specific Anomaly Detection with Weak Supervision

This is the official Pytorch implementation of the paper DeScarGAN: Disease-Specific Anomaly Detection with Weak Supervision by Julia Wolleb, Robin Sandkühler and Philippe C. Cattin.

Paper Abstract

Anomaly detection and localization in medical images is a challenging task, especially when the anomaly exhibits a change of existing structures, e.g., brain atrophy or changes in the pleural space due to pleural effusions. In this work, we present a weakly supervised and detail-preserving method that is able to detect structural changes of existing anatomical structures. In contrast to standard anomaly detection methods, our method extracts information about the disease characteristics from two groups: a group of patients affected by the same disease and a healthy control group. Together with identity-preserving mechanisms, this enables our method to extract highly disease-specific characteristics for a more detailed detection of structural changes. We designed a specific synthetic data set to evaluate and compare our method against state-of-the-art anomaly detection methods. Finally, we show the performance of our method on chest X-ray images. Our method called DeScarGAN outperforms other anomaly detection methods on the synthetic data set and by visual inspection on the chest X-ray image data set.

Datasets

For the generation of the synthetic dataset, one has to run the script create_synthetic_dataset.py. A new folder called "./warp-set" will be created and the generated images of both the diseased and healthy subjects will be stored in there seperately.

If one wants to use the Chexpert dataset, it is available for download here. The data needs to be structured as follows:

• Train
    ◦ Healthy control
    ◦ Images showing pleural effusion
• Validate
    ◦ Healthy control
    ◦ Images showing pleural effusion
• Test
    ◦ Healthy control
    ◦ Images showing pleural effusion

Training & Testing

For the script main.py, there are the following options:

--dataset: One has to determine which dataset has to be used (either “Chexpert” or “Synthetic”).

--dataset-path: The path to the data folders.

--mode: One can choose between the mode “train” or “test”. When training, the networks are saved in a generated folder “./save_nets”. During test-time, the saved models are loaded.

Plots showing the convergence of the loss functions and results are visualized using Visdom.

Citation

If you use this code, please cite

@misc{wolleb2020descargan,
    title={DeScarGAN: Disease-Specific Anomaly Detection with Weak Supervision},
    author={Julia Wolleb and Robin Sandkühler and Philippe C. Cattin},
    year={2020},
    eprint={2007.14118},
    archivePrefix={arXiv},
    primaryClass={eess.IV}}

descargan's People

Contributors

juliawolleb 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.