Giter Site home page Giter Site logo

cuhk-aim-group / habit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cityu-aim-group/habit

0.0 0.0 1.0 2.39 MB

This is an official PyTorch implementation of the paper "Hierarchical Bias Mitigation for Semi-Supervised Medical Image Classification"

License: MIT License

Python 100.00%

habit's Introduction

HABIT

This is an official PyTorch implementation of the paper "Hierarchical Bias Mitigation for Semi-Supervised Medical Image Classification"

Introduction

We retrospect the pseudo labeling and identify three hierarchical biases: perception bias, selection bias and confirmation bias, at feature extraction, pseudo label selection and momentum optimization stages, respectively. In this regard, we propose a HierArchical BIas miTigation (HABIT) framework to amend these biases, which consists of three customized modules including Mutual Reconciliation Network (MRNet), Recalibrated Feature Compensation (RFC) and Consistency-aware Momentum Heredity (CMH). Firstly, in the feature extraction, MRNet is devised to jointly utilize convolution and permutator-based paths with a mutual information transfer module to exchanges features and reconcile spatial perception bias for better representations. To address pseudo label selection bias, RFC adaptively recalibrates the strong and weak augmented distributions to be a rational discrepancy and augments features for minority categories to achieve the balanced training. Finally, in the momentum optimization stage, in order to reduce the confirmation bias, CMH models the consistency among different sample augmentations into network updating process to improve the dependability of the model.

Dependencies

All experiments use PyTorch library. We recommend installing following package versions:

  •    python==3.7

  •    pytorch==1.6.0

  •    MedPy==0.4.0

  •    scipy==1.5.4

Dependency packages can be installed using following command:

pip install -r requirements.txt

Quickstart

Training

python Train_HABIT.py 
    --gpu=0 
    --dataset=isic2018 
    --n-classes=7 
    --backbone=ConvMLP
    --n-labeled=350 
    --RFC=True
    --CMH=True
    -batchsize=12 
    --mu=3
    --thr=0.95 
    --n-epoches=256 
    --setting=ISIC_350

Acknowledgement

  • The implementation of baseline method is adapted from: TEAR and MLP-Mixer.

habit's People

Contributors

qiushiyang avatar

Forkers

qiushiyang

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.