File size: 6,132 Bytes
16ee0cf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8a3ec2f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
---
language:
- en
license:
- cc-by-4.0
tags:
- medical
- ophthalmology
- fundus-image
- image-classification
- multi-label
- diabetic-retinopathy
- glaucoma
- amd
- multi-disease-screening
task_categories:
- image-classification
task_ids:
- multi-label-image-classification
pretty_name: RFMiD (Retinal Fundus Multi-Disease Image Dataset)
size_categories:
- 1K<n<10K
annotations_creators:
- expert-generated
source_datasets:
- original
source_data_urls:
- https://www.mdpi.com/2306-5729/6/2/14
- https://ieee-dataport.org/open-access/retinal-fundus-multi-disease-image-dataset-rfmid
---

# 🩺 RFMiD β€” Retinal Fundus Multi-Disease Image Dataset

<table align="center">
    <tr>
        <td width="100%" align="center">
            <img src="rm_images/Merged_Fundus_Images_with_Caption.jpg" alt="Merged Dataset Samples" style="max-width: 100%; height: auto;">
            <br>
            <p><strong>Image:</strong> Dataset Samples.</p>
        </td>
    </tr>
</table>

> The **Retinal Fundus Multi-Disease Image Dataset (RFMiD)** is designed for **multi-disease detection and classification** in retinal fundus photographs.  
> It includes 3,200 high-quality color images with **46 labeled retinal disease conditions**, curated by expert ophthalmologists from India.  
> This dataset enables development of generalized deep learning models for comprehensive retinal disease screening.

---

## πŸ“˜ Overview

| Field | Details |
|-------|----------|
| **Full Name** | Retinal Fundus Multi-Disease Image Dataset (RFMiD) |
| **Focus** | Multi-label classification of retinal diseases |
| **Condition Types** | 46 disease classes including diabetic retinopathy, glaucoma, AMD, hypertensive retinopathy, myopia, and others |
| **Collection Site** | Ophthalmology centers in Maharashtra, India |
| **Devices Used** | TOPCON 3D OCT-2000 (~2144Γ—1424), Kowa VX-10Ξ± (~4288Γ—2848), TOPCON TRC-NW300 (~2048Γ—1536) |
| **Field of View (FOV)** | ~45°–50Β° |
| **Image Type** | Color fundus photographs (JPG, RGB) |
| **Total Images** | **3,200** |
| **Annotations** | Expert ophthalmologist-verified, multi-label (each image may contain multiple conditions) |
| **License** | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) |
| **Source** | [MDPI Paper](https://www.mdpi.com/2306-5729/6/2/14) Β· [IEEE Dataport](https://ieee-dataport.org/open-access/retinal-fundus-multi-disease-image-dataset-rfmid) |

---

## πŸ—‚οΈ Dataset Structure

The RFMiD dataset includes **images and corresponding metadata** files organized as follows:

```text
RFMiD/
β”‚
β”œβ”€β”€ Images/
β”‚ β”œβ”€β”€ Training_Set/
β”‚ β”‚ β”œβ”€β”€ IDRiD_001.jpg
β”‚ β”‚ β”œβ”€β”€ IDRiD_002.jpg
β”‚ β”‚ └── ...
β”‚ β”‚
β”‚ β”œβ”€β”€ Validation_Set/
β”‚ β”‚ β”œβ”€β”€ IDRiD_801.jpg
β”‚ β”‚ β”œβ”€β”€ IDRiD_802.jpg
β”‚ β”‚ └── ...
β”‚ β”‚
β”‚ └── Test_Set/
β”‚ β”œβ”€β”€ IDRiD_901.jpg
β”‚ β”œβ”€β”€ IDRiD_902.jpg
β”‚ └── ...
β”‚
β”œβ”€β”€ Groundtruths/
β”‚ β”œβ”€β”€ RFMiD_Training_Labels.csv
β”‚ β”œβ”€β”€ RFMiD_Validation_Labels.csv
β”‚ └── RFMiD_Test_Labels.csv
β”‚
└── Metadata/
└── RFMiD_Clinical_Information.csv
```

---

### πŸ“„ File Description

| File / Folder | Description |
|----------------|-------------|
| **Images/** | Contains all RGB fundus images grouped into train, validation, and test sets |
| **Groundtruths/** | CSV files with disease labels for each image ID |
| **Metadata/** | Contains additional information like patient age, gender, and diagnostic notes (if available) |

### 🧾 Label Format (CSV Example)

Each row in `RFMiD_Training_Labels.csv` includes binary indicators (0 or 1) for each of the 46 disease categories:

| ImageID | DR | ARMD | MH | DN | MYA | ... | HR | Others |
|----------|----|------|----|----|-----|-----|----|--------|
| 0001     | 1  | 0    | 0  | 1  | 0   | ... | 0  | 0      |
| 0002     | 0  | 0    | 0  | 0  | 0   | ... | 1  | 0      |

*Total columns: 46 disease labels + 1 ImageID column.*

---

## πŸ“Š Dataset Composition

| Split | Number of Images | Description |
|--------|------------------|--------------|
| **Training Set** | 1,920 | Used to train AI models |
| **Validation Set** | 640 | Used to tune hyperparameters |
| **Test Set** | 640 | Held-out evaluation set |
| **Total** | **3,200** | All high-quality fundus images |

---

## 🧠 Research Applications

### Primary Use Cases
- Multi-label retinal disease classification  
- Generalized ophthalmic AI screening  
- Rare disease detection (long-tail recognition)  
- Domain adaptation across imaging devices  
- Quality-aware retinal analysis  

### Recommended Tasks
- **Classification:** Healthy vs Abnormal  
- **Multi-label Detection:** 46 retinal diseases  
- **Transfer Learning:** Adaptation to real-world clinical data  
- **Explainability:** Visualizing disease localization with Grad-CAM or attention maps  

---

## βš™οΈ Technical Notes

- **Input format:** RGB fundus images, JPG  
- **Recommended preprocessing:** Center-cropping, illumination correction, resizing to 512Γ—512 or 1024Γ—1024  
- **Label imbalance:** Some diseases have <50 samples; use focal loss or weighted sampling  
- **Multi-device domain variation:** Apply histogram equalization or color normalization  

---

## 🧩 Quick Summary Table

| Dataset | Description (conditions, source, etc.) | Size |
|----------|----------------------------------------|------|
| **RFMiD** | Multi-disease retinal fundus dataset with 46 labeled conditions from Indian ophthalmic clinics | **3,200 images** |

---

## πŸ“š Citation

If you use this dataset, please cite:

> **Pachade, S.; Porwal, P.; Thulkar, D.; Kokare, M.; Deshmukh, G.; Sahasrabuddhe, V.; Giancardo, L.; Quellec, G.; MΓ©riaudeau, F.**  
> *Retinal Fundus Multi-Disease Image Dataset (RFMiD): A Dataset for Multi-Disease Detection Research.*  
> **Data** 2021, 6(2), 14.  
> DOI: [10.3390/data6020014](https://doi.org/10.3390/data6020014)

---

## πŸͺͺ License

This dataset is released under the **Creative Commons Attribution 4.0 International (CC BY 4.0)** license.  
You may share and adapt the dataset, provided appropriate credit is given.

---