Skip to main content

The Integrated Retinal Fundus Set (IRFundusSet) systematically integrates 46,064 RFPs from ten distinct public sources into a unified structure, implementing essential methodological steps to enable collation of archives, standardization of image pixel data, and seamless integration into a modelling pipeline.

Project description

IRFundusSet

Ocular conditions are a global concern and computational tools utilizing retinal fundus color photographs can aid in routine screening and management. Obtaining comprehensive and sufficiently sized datasets, however, is non-trivial for the intricate retinal fundus, which exhibits heterogeneities within pathologies, in addition to variations from demographics and acquisition. Moreover, retinal fundus datasets in the public space suffer fragmentation in the organization of data and definition of a healthy observation. We present Integrated Retinal Fundus Set (IRFundusSet), a dataset that consolidates, harmonizes and curates several public datasets, facilitating their consumption as a unified whole and with a consistent is_normal label. IRFundusSet comprises a Python package that automates harmonization and avails a dataset object in line with the PyTorch approach. Moreover, images are physically reviewed and a new is_normal label is annotated for a consistent definition of a healthy observation. Ten public datasets are initially considered with a total of 46064 images, of which 25406 are curated for a new is_normal label and 3515 are deemed healthy across the sources.

Curated catalogue on Zenodo

The curated catalogue is available on Zenodo here

Usage

Installation

pip install irfundusset

Data Sources

Identified datasets are in the public space and, therefore, we leave it to the researcher to access and directly download the datasets.

For testing purposes, you can download CHASEDB, which is currently the smallest source in the collection (about 3 Mb). High-Resolution Fundus (HRF) is the second smallest source (about 73Mb).

Generate integrated dataset

Once downloaded, obtain the template configuration file template_set_cohorts.ini and indicate where the datasets are located.

Then initialize your IRFundusSet data object as shown below to generated the consolidated dataset and save it to your desired location.

## Creating IRFundusSet Dataset object 
## Generates the unified dataset if it does not already exist
irf_dataset = IRFundusSet(out_dir="../output_irfundus_set",
                        ## Set output image sizes and harmonization method
                        out_img_w_size=256,
                        harmonize_method=None,
                        clahe_b4_harmonize=False,
                        ## Set which of the 10 public sources to unify 
                        in_cohorts_config="../cohorts.ini", 
                        generate_only=False,
                        force_regenerate=False, 
                        ## Setting which column to use for target label 
                        target_col=None,     
                        ## Provide transforms for X image features or y-target labels   
                        xtransform=None, 
                        ytransform=None,)
print(">> irf_dataset = ",len(irf_dataset))

User guide (Jupyter Notebook) An introductory user guide in the form of Jupyter Notebook is available at the root of this repository. The file name is irfundusset_user_guide.ipynb

License

MIT License

Citing

@misc{githinji2024irfundussetintegratedretinalfundus,
      title={IRFundusSet: An Integrated Retinal Fundus Dataset with a Harmonized Healthy Label}, 
      author={P. Bilha Githinji and Keming Zhao and Jiantao Wang and Peiwu Qin},
      year={2024},
      eprint={2402.11488},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2402.11488}, 
}

Citing only the catalogue

Githinji, P. B., Zhao, K., Wang, J., & Qin, P. (2024). Curated catalogue for IRFundusSet (Integrated Retinal Fundus Set) [Data set]. Zenodo. https://doi.org/10.5281/zenodo.10819965

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

irfundusset-1.0.1.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

irfundusset-1.0.1-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

Details for the file irfundusset-1.0.1.tar.gz.

File metadata

  • Download URL: irfundusset-1.0.1.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for irfundusset-1.0.1.tar.gz
Algorithm Hash digest
SHA256 045466c6049f4ca32a72e540449367d8de6fe7dd0cf7b44a8303cdeeba9d55f6
MD5 f48c8483cf85bb68dc9667ccebcb0332
BLAKE2b-256 e1e7a9f61ccc55112ec9b62e19c13710c353b7b365e6f826fcc7d807fd826197

See more details on using hashes here.

File details

Details for the file irfundusset-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: irfundusset-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for irfundusset-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ccd29a5e73ed86a2bc7362f48df24c44693d1cd305982d0d8e052892487bca7
MD5 7800dc533cdd0d767f1edaa9976fa25e
BLAKE2b-256 a5852eeae9b84202c381ca9435ad48db3b52f524e6f45bb21f0526076b03e02d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page