Utilities python library for the public dataset of retinal structures: MAPLES-DR.
Project description
MAPLES-DR
MAPLES-DR (MESSIDOR Anatomical and Pathological Labels for Explainable Screening of Diabetic Retinopathy) is a public dataset which provides diagnoses for DR and ME as well as pixel-wise segmentation maps for 10 retinal structures for 198 images of MESSIDOR. This repository provides a python library of utility codes to ease the use of the database.
MAPLES-DR Dataset Content
MAPLES-DR dataset is available for download on figshare. The fundus images are not included in MAPLES-DR but one can download them from MESSIDOR Consortium's website.
If you wish to use this dataset in an academic work, we kindly ask you to cite the following paper:
@article{maples_dr,
title={MAPLES-DR: MESSIDOR Anatomical and Pathological Labels for Explainable Screening of Diabetic Retinopathy},
author={Gabriel Lepetit-Aimon and Clément Playout and Marie Carole Boucher and Renaud Duval and Michael H Brent and Farida Cheriet},
journal={Scientific Data},
volume={11},
number={1},
pages={914},
year={2024},
month={08},
publisher={Nature Publishing Group UK London},
doi={10.1038/s41597-024-03739-6}
}
MAPLES-DR Python Library
The maples_dr
python library provides a simple way to download and use the dataset. It was designed with machine learning applications in mind.
Install
pip install maples-dr
If you plan to run the examples provided as Jupyter Notebooks in the examples/
folder, you should
also install their dependencies:
pip install maples-dr[examples]
Simple Usage
Load MAPLES-DR in memory
Once imported, MAPLES-DR train or test sets can be loaded in memory with a single line of Python code.
import maples_dr
train_set = maples_dr.load_train_set()
test_set = maples_dr.load_test_set()
If necessary, the dataset archive is automatically downloaded from Figshare, extracted and cached locally. The data is then returned as a Dataset
object similar to a list of samples stored as dictionaries containing all MAPLES-DR labels.
For example, the vessel map of the first sample of the train set can be accessed with:
vessel_map = train_set[0]['vessels']
Export MAPLES-DR to a local folder
Alternatively, MAPLES-DR images can be saved in local folders:
maples_dr.export_train_set('MAPLES-DR/train/')
maples_dr.export_test_set('MAPLES-DR/test/')
For more information on how to configure image resolution and format, on how to include the fundus images along the labels, and more advanced functionalities, have a look at the documentation of maples_dr
!
Examples
The examples/
folder contains Jupyter Notebooks that demonstrate how to use the maples_dr
python library.
article_figures.ipynb
generates all the figures of MAPLES-DR paper.display_biomarkers.ipynb
usesmaples-dr
to download and visualize the anatomical and pathological structures of the retina on top of the fundus images from MAPLES-DR.
Acknowledgements
The LIV4D laboratory would like to thank Dr. Marie Carole Boucher, Dr. Michael H Brent, Dr. Renaud Duval as well as Dr. Karim Hammamji, Dr. Ananda Kalevar, Dr. Cynthia Qian, and Dr. David Wong for their time and effort labeling the MAPLES-DR dataset. We also thank Dr. Fares Antaky and Dr. Daniel Milad for participating in a inter-observer variability study that helped us assess the quality of lesions segmentations of MAPLES-DR.
This study was funded by the Natural Science and Engineering Research Council of Canada as well as Diabetes Action Canada and FROUM (Fonds de recherche en ophtalmologie de l'Université de Montréal).
The original MESSIDOR dataset was kindly provided by the Messidor program partners (see https://www.adcis.net/en/third-party/messidor/ ).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file maples_dr-1.0.0.tar.gz
.
File metadata
- Download URL: maples_dr-1.0.0.tar.gz
- Upload date:
- Size: 37.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddd1c041ca96bf70afb8cefa4350d0a537ead7ce1ea214fad85c93ca2258c751 |
|
MD5 | 4241bc4eb32d10e77919e15809be28e5 |
|
BLAKE2b-256 | e69506bc3a975fef3d958007e2d89764700fafa982f8ccc86095f92170c752b3 |
File details
Details for the file maples_dr-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: maples_dr-1.0.0-py3-none-any.whl
- Upload date:
- Size: 33.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3b810a82e469a670e3f0709c2d79f99994a4edcea43e2713546f685ed990cfe |
|
MD5 | cdc9429a4723e9de3fc44cb566a5c161 |
|
BLAKE2b-256 | ffe0d7326ca2814d154e26cc2b6b968bcd5baff2b5e922aa1dda701c138926ee |