Code Monkey home page Code Monkey logo

bayesuncertainty-error-correspondence's Introduction

Improving Uncertainty-Error Correspondence in Deep Bayesian Medical Image Segmentation

Increased usage of automated tools like deep learning in medical image segmentation has alleviated the bottleneck of manual contouring. This has shifted manual labour to quality assessment (QA) of automated contours which involves detecting errors and correcting them. A potential solution to semi-automated QA is to use deep Bayesian uncertainty to recommend potentially erroneous regions, thus reducing time spent on error detection. Previous work has investigated the correspondence between uncertainty and error, however, no work has been done on improving the “utility” of Bayesian uncertainty maps such that it is only present in inaccurate regions and not in the accurate ones. Our work trains the FlipOut model with the Accuracy-vsUncertainty (AvU) loss which promotes uncertainty to be present only in inaccurate regions. We apply this method on datasets of two radiotherapy body sites, namely CT scans of head and neck and prostate MRs. Uncertainty heatmaps (i.e. predictive entropy) are evaluated using ROC and Precision-Recall curves. Numerical results show that when compared to the Bayesian baseline the proposed method successfully suppresses uncertainty for accurate voxels, with similar presence of uncertainty for inaccurate voxels.

In this visual abstract, we indicate the inputs, outputs and loss functions used in our method. A 3D medical scan (e.g.CT/MR) is input into a UNet-based Bayesian neural net to produce both predicted contours (Pred) and predictive uncertainty(Unc). While the cross-entropy loss is used to improve segmentation performance, the Accuracy-vs-Uncertainty (AvU) loss is used to improve uncertainty-error correspondence. The AvU loss compares the prediction with the ground truth (GT) to extract four terms: count of accurate-and-certain nAC, accurate-and-uncertain nAU, inaccurate-and-certain nIC and inaccurateand-uncertain nIU.

Results

Visual Results

Head and Neck CTs Prostate MRs

To reproduce results

  1. This repo allows us to evaluate uncertainty-error correspondence on two radiotherapy body-sites (head and neck CTs and prostate MRs). The data is not included in this repo, but can be downloaded from the following links:

  2. Use train-hn.py and train-pros.py

  3. Evaluation functions can be found in eval-hn.py and eval-pros.py

Closing thoughts

Given that deep learning models have shown the capability of reaching near expert-level performance in medical image segmentation, their next evolution is improved robustness and clinical utility. Our work shows progress on this front for two radiotherapy datasets using a uncertainty-driven loss in a Bayesian setting. We hope the community is inspired by our positive results to further contribute to human-centric approaches to deep learning-based modeling.

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.