Edit model card

You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Model Description

Code for "Validation of neuron activation patterns for AI models in oculomics" Please email the author on songyang.an@auckland.ac.nz describing the reason for access before sending an access request.

Pre-requisites

  1. The models and results require images from the UK Biobank dataset.
  2. The input files provided in this repository only contain the image names and simple accompanying metadata.
  3. To gain access to the UK Biobank dataset, please apply for access using this link.
  4. After access permission has been granted, follow the instructions from UK Biobank, https://biobank.ctsu.ox.ac.uk/crystal/ukb/docs/ukbfetch_instruct.html, in fetching the left (field ID 21015) and right (field ID 21016) fundus photographs.
  5. The raw images from UK Biobank have black borders. The images must be squared cropped otherwise it will not be compatible with the model

Getting started

  1. Install required python packages by running pip install requirement.txt
  2. Run "1. Generate dataset summary table.py" to recreate table 1
  3. Run "2. extract neuron activations.py" to extract feature map activations from model. Note: This step requires the path to where the cropped UK Biobank images are stored For example, if the images are stored in "c:\biobank images" then run console command in the following format: python.exe "2. extract neuron activations.py" "c:\biobank images"
  4. Run "3. calculate similarities for neuron activations.py" to calculate similarity means. Note: This step relies on the outputs from step 3.
  5. Run "4. outcome 1 analysis" to generate results in table 2. This step is can be executed without steps 3, and 4, as I've included the intermediate files generated from steps 3 and 4 into the repository.
  6. Run "5. outcome 2 analysis" to generate results in table 2. This step is can be executed without steps 3, and 4, as I've included the intermediate files generated from steps 3 and 4 into the repository.

Citation

To be done

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference API
Unable to determine this model's library. Check the docs .