File size: 3,880 Bytes
fe3d59c
29b0c47
 
5054131
 
fe3d59c
 
 
 
 
5054131
 
fe3d59c
29b0c47
260a778
5054131
fe3d59c
29b0c47
 
260a778
5054131
29b0c47
5054131
29b0c47
 
 
 
5054131
fe3d59c
5054131
 
fe3d59c
29b0c47
 
 
b084138
 
 
 
 
 
 
 
 
 
 
 
29b0c47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b079f2c
29b0c47
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
language:
- en
license:
- cc-by-4.0
tags:
- medical
- ophthalmology
- fundus-image
- image-segmentation
- image-classification
- diabetic-retinopathy
- lesion-segmentation
task_categories:
- image-segmentation
- image-classification
- object-detection
task_ids:
- multi-class-image-classification
- semantic-segmentation
pretty_name: DDR (Diabetic Retinopathy Detection) Dataset
size_categories:
- 10K<n<100K
annotations_creators:
- expert-generated
source_datasets:
- original
paperswithcode_id: ddr
source_data_urls:
- https://www.sciencedirect.com/science/article/abs/pii/S0020025519305377
- https://www.kaggle.com/datasets/mariaherrerot/ddrdataset
---

# DDR - Diabetic Retinopathy Detection Dataset

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

---

The **DDR (Diabetic Retinopathy Detection)** dataset is a large-scale collection of retinal fundus images designed for training and evaluating algorithms in **diabetic retinopathy (DR) grading** and **lesion-level segmentation**. It provides both image-level DR labels and pixel-level annotations of pathological features, making it suitable for classification and segmentation tasks.

---

## Dataset Overview

- **Full Name:** Diabetic Retinopathy Detection and Segmentation Dataset (DDR)
- **Authors:** Yuhao Zhang, Mingxia Liu, Qianni Zhang, et al.
- **Associated Paper:**  
  *Diabetic Retinopathy Lesion Segmentation Method Based on Multi-Scale Attention and Lesion Perception*  
  Published in *Information Sciences*, Volume 501, 2019.  
  [ScienceDirect Link](https://www.sciencedirect.com/science/article/abs/pii/S0020025519305377)
- **Source:** [Kaggle - DDR Dataset](https://www.kaggle.com/datasets/mariaherrerot/ddrdataset)
- **Institution:** Chinese Academy of Sciences, Beijing, China  
- **License:** CC BY 4.0

---

## Dataset Structure

### 🧩 Categories
The dataset includes five DR severity levels, labeled according to the International Clinical Diabetic Retinopathy (ICDR) scale:

| Label | Description              |
|:------|:--------------------------|
| 0     | No Diabetic Retinopathy   |
| 1     | Mild Nonproliferative DR  |
| 2     | Moderate Nonproliferative DR |
| 3     | Severe Nonproliferative DR |
| 4     | Proliferative DR          |

Additionally, lesion masks are provided for:
- Microaneurysms  
- Hemorrhages  
- Hard exudates  
- Soft exudates  

---

## Data Summary

| Split | # Images | Annotation Type | Image Resolution |
|:------|:----------|:----------------|:-----------------|
| Train | ~9,000    | Image-level + lesion masks | 3216×2136 px (avg.) |
| Test  | ~1,000    | Image-level + lesion masks | 3216×2136 px (avg.) |

Total: ~10,000 color fundus images collected from multiple clinical sites in China.

---

## Applications

- **Diabetic Retinopathy Classification**
- **Lesion Segmentation and Detection**
- **Multi-scale Attention and Lesion-Aware Learning**
- **Retinal Disease Screening Benchmarking**

---

## Example Usage

```python
from datasets import load_dataset

dataset = load_dataset("your-username/ddr-dataset")
example = dataset["train"][0]
image = example["image"]
mask = example["segmentation_mask"]
```

Citation

If you use this dataset, please cite:

Zhang Y, Liu M, Zhang Q, et al.
Diabetic Retinopathy Lesion Segmentation Method Based on Multi-Scale Attention and Lesion Perception.
Information Sciences, 2019; 501: 511–522.
DOI: 10.1016/j.ins.2019.06.016

Acknowledgements

This dataset was originally collected and published by the Chinese Academy of Sciences and released for research use under a CC BY 4.0 license.
Kaggle rehosting by Mariah Herrero.