Skip to content

Interpretable gender classification from retinal fundus images using BagNets

License

Notifications You must be signed in to change notification settings

berenslab/genderBagNets

Repository files navigation

genderBagNets

About

This repository contains the code associated with the MICCAI 2021 paper Interpretable gender classification from retinal fundus images using BagNets

Dependencies

All packages required for running the code in the repository are listed in the file requirements.txt

Data

The code in this repository uses data downloaded from the UK Biobank(UKB). Due to the Material Transfer Agreement of UK Biobank, we can not share the data, but researchers can apply for access and subsidized fees are available.

Code

BagNet Model - BagNet-33 model with the best validation performance is provided in modelstore/bagnet33/UKB_genderNet_bagnet33_imagenet_098_0.835.hdf5

Training and evaluation - For training and evaluation of Inceptionv3 or variants of BagNets (9, 17, 33) on UKB data refer to train_UKB.py. For evaluation of the trained models refer to evaluate.py.

Generating saliency maps - For generating saliency maps refer to the IPython notebook Heatmaps.ipynb.

Generating tSNE - For generating tSNE plot on the test set refer to the IPython notebook tSNE.ipynb

Generating kernel density plots - For generating the Kernel Density Estimates (KDEs) refer to the IPython notebook KernelDensities.ipynb.

About

Interpretable gender classification from retinal fundus images using BagNets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published