Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
    1 of 2 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.7%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: SunnyAVT
  • Language: Python
  • Default Branch: main
  • Size: 2.88 MB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created almost 5 years ago · Last pushed over 4 years ago
Metadata Files
Readme Citation

README.md

Visually Significant Cataract AI Model Test

AI classification model for Visually Significant Cataract prediction

Prerequisite

Hardware Resource Recommendations

  • CPU: Intel Core or Xeon Serial 64 bits Processors (released in recent years)
  • Memory: More than 16G
  • Disk: More than 20G free space
  • GPU: Not necessary

User

A sudo user is required for running commands in following sections.

Operating System

Recommend to use Ubuntu 18.04 LTS (64 bits), Ubuntu 16.04 LTS (64 bits), Ubuntu 20.04 LTS or later versioin. The code also can run on the virtual environment in other Linux, windows and Mac OS operation system.

System should be updated to latest version:

sudo apt-get update sudo apt-get upgrade -y

Software

Reqired System Software Packages

Recommend to use python3.7 environment, the code can run with python3.6 and python3.8 environment. sudo apt-get install -y python3.7 python-pip python3.7-tk tk-dev build-essential swig libsm6 libxrender1 libxext-dev pip recommend to be upgraded to latest version: pip install --upgrade pip If this is the 1st time to upgrade pip as normal user, logout and login will be required in order to use the new version pip installed in user home directory.

Required Python Packages

All required packages with specific versions are listed in file requirements.txt, run command to install: pip install -r requirements.txt You can also use virtual environment to setup the working environment, run command to install: sudo apt-get install python3-venv apt-get install python3.7-dev python3.7-venv python3 -m venv env source env/bin/activate pip install --upgrade pip pip install -r requirements.txt

Dataset

Please copy you validation fundus image files to one folder, e.g. ./images. The supported image file format includes: png, bbmp, jpg, or tiff.

Prediction

Usage

``` usage: python3 main.py --input DATASET_DIR [--output OUTPUT_DIR] [--threshold THRESHOLD_VALUE] [-h]

options: --input DATASETDIR The input directory for dataset image files, must be specified. --output OUTPUTDIR The result output csv file directory, optional, default to ./outputs. -h Show command line options.

examples: git clone https://github.com/SunnyAVT/visuallysignificantcataract.git cd visuallysignificantcataract python3 main.py python3 main.py --input ./images --output ./outputs python3 main.py --input ./yourimagefolder --output ./youroutputfolder ```

Result

The prediction result will be shown at the end of the program stdout. The result will be also stored in a file with name TestResult.csv in OUTPUT_DIR.

Example

There are 4 sample images under ./images directory for demo purpose: ```

python3.7 main.py --input ./images --output ./outputs Using Theano backend. loading model: paperretinaref048Resnet50cataractmodelp3.dat loading paperretinaref048Resnet50cataractmodelp3.dat model, time 0.03

100%|##########################################################| 4/4 [00:10<00:00, 3.30s/it] filename:['201696189L.jpg'], probability0:0.9404348134994507, probability1:0.05956516042351723 filename:['201698588R.jpg'], probability0:0.8374420404434204, probability1:0.1625579446554184 filename:['201699522L.jpg'], probability0:0.5960693359375, probability1:0.4039306938648224 filename:['201696189R.jpg'], probability0:0.8547605872154236, probability1:0.14523939788341522 Cataract Validation is Over, please get your results in outputs/TestResult.csv !!! ``` Note: You can replace the images in ./images directory with your test retinal fundus images, then run the same command as above for the AI cataract prediction.

Trouble shooting

1) Because of the difference in the OS, installation package or running environment, user could encounter error in setup pip install -r requirements.txt You can use try different packages module version as below. Such as, you can use tensorflow==1.15 to replace tensorflow==1.14.0 Such as, you can use numpy==1.20.1 to replace numpy==1.19.5

2) Don’t need to care about the warning message in the running, it will not affect the final results. The reason is that the code stick to use tensorflow 1.x version in order to compatible with some AI libs. resnet50.py:60: UserWarning: Update your `Conv2D` call to the Keras 2 API: `Conv2D(2048, (1, 1), name="res5b_branch2c")` x = Convolution2D(nb_filter3, 1, 1, name=conv_name_base + '2c')(x) resnet50.py:51: UserWarning: Update your `Conv2D` call to the Keras 2 API: `Conv2D(512, (1, 1), name="res5c_branch2a")` x = Convolution2D(nb_filter1, 1, 1, name=conv_name_base + '2a')(input_tensor) resnet50.py:56: UserWarning: Update your `Conv2D` call to the Keras 2 API: `Conv2D(512, (3, 3), name="res5c_branch2b", padding="same")` border_mode='same', name=conv_name_base + '2b')(x) resnet50.py:60: UserWarning: Update your `Conv2D` call to the Keras 2 API: `Conv2D(2048, (1, 1), name="res5c_branch2c")`

Citation (TBD)

Please cite our paper if you find this code useful in your research. The APA entry for the paper is: Tham, Y. C., Goh, J. H. L., Anees, A., Lei, X, et al., Detecting Visually Significant Age-Related Cataract using Retinal Photograph-Based Deep Learning: Development, Validation, and Comparison with Clinical Experts (Version 2.0.4) [Computer software]. https://doi.org/10.xxx/zenodo.xxxx The BibTeX entry for the paper is: @software{Tham_Detecting_Visually_Significant, author = {Tham, Yih Chung and Goh, Jocelyn Hui Lin and Anees, Ayesha and Lei, Xiaofeng, et al.}, doi = {10.5281/zenodo.xxxx}, title = {{Detecting Visually Significant Age-Related Cataract using Retinal Photograph-Based Deep Learning: Development, Validation, and Comparison with Clinical Experts}}, url = {https://github.com/SunnyAVT/visually_significant_cataract}, version = {2.0.4} }

/etc/apt/sources.list

```

See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to

newer versions of the distribution.

deb http://archive.ubuntu.com/ubuntu/bionic main restricted

deb-src http://archive.ubuntu.com/ubuntu/ bionic main restricted

Major bug fix updates produced after the final release of the

distribution.

deb http://archive.ubuntu.com/ubuntu/bionic-updates main restricted

deb-src http://archive.ubuntu.com/ubuntu/bionic-updates main restricted

N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu

team. Also, please note that software in universe WILL NOT receive any

review or updates from the Ubuntu security team.

deb http://archive.ubuntu.com/ubuntu/bionic universe

deb-src http://archive.ubuntu.com/ubuntu/bionic universe

deb http://archive.ubuntu.com/ubuntu/bionic-updates universe

deb-src http://archive.ubuntu.com/ubuntu/bionic-updates universe

N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu

team, and may not be under a free licence. Please satisfy yourself as to

your rights to use the software. Also, please note that software in

multiverse WILL NOT receive any review or updates from the Ubuntu

security team.

deb http://archive.ubuntu.com/ubuntu/bionic multiverse

deb-src http://archive.ubuntu.com/ubuntu/ bionic multiverse

deb http://archive.ubuntu.com/ubuntu/bionic-updates multiverse

deb-src http://archive.ubuntu.com/ubuntu/bionic-updates multiverse

N.B. software from this repository may not have been tested as

extensively as that contained in the main release, although it includes

newer versions of some applications which may provide useful features.

Also, please note that software in backports WILL NOT receive any review

or updates from the Ubuntu security team.

deb http://archive.ubuntu.com/ubuntu/bionic-backports main restricted universe multiverse

deb-src http://archive.ubuntu.com/ubuntu/bionic-backports main restricted universe multiverse

Uncomment the following two lines to add software from Canonical's

'partner' repository.

This software is not part of Ubuntu, but is offered by Canonical and the

respective vendors as a service to Ubuntu users.

deb http://archive.canonical.com/ubuntu bionic partner

deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://security.ubuntu.com/ubuntu/bionic-security main restricted

deb-src http://security.ubuntu.com/ubuntu/bionic-security main restricted

deb http://security.ubuntu.com/ubuntu/bionic-security universe

deb-src http://security.ubuntu.com/ubuntu/bionic-security universe

deb http://security.ubuntu.com/ubuntu/bionic-security multiverse

deb-src http://security.ubuntu.com/ubuntu/bionic-security multiverse

```

Owner

  • Name: Sunny Lei
  • Login: SunnyAVT
  • Kind: user
  • Location: Singapore
  • Company: A-STAR

Senior Research Engineer

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
  - family-names: "Tham"
    given-names: "Yih Chung"
    orcid: "https://orcid.org/0000-0000-0000-0000"
  - family-names: "Goh"
    given-names: "Jocelyn Hui Lin"
    orcid: "https://orcid.org/0000-0000-0000-0000"
  - family-names: "Anees"
    given-names: "Ayesha"
    orcid: "https://orcid.org/0000-0000-0000-0000"
  - family-names: "Lei"
    given-names: "Xiaofeng"
    orcid: "https://orcid.org/0000-0001-9290-9198"
title: "Detecting Visually Significant Age-Related Cataract using Retinal Photograph-Based Deep Learning: Development, Validation, and Comparison with Clinical Experts"
version: 2.0.4
doi: 10.5281/zenodo.1234
date-released: 2021-xx-xx
url: "https://github.com/SunnyAVT/visually_significant_cataract"

GitHub Events

Total
Last Year

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 16
  • Total Committers: 2
  • Avg Commits per committer: 8.0
  • Development Distribution Score (DDS): 0.25
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Sunny Lei 4****T 12
Lei Xiaofeng l****g@i****g 4
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels