File size: 6,976 Bytes
0243331 f0f64bf 0243331 af3708b 0243331 0f4c92e b7c6e99 6be85e8 0243331 6be85e8 750c5f9 6be85e8 0243331 |
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 |
---
license: other
license_name: cc-by-4.0
license_link: LICENSE
---
# CSDI: A Fine-Grained Fundus Image Dataset of Cataract Severity and Diagnostic Images
The **CSDI Cataract Diagnosis Dataset** is a curated collection of 187 fundus images with expert annotations, including cataract severity scores and bilingual diagnostic descriptions (English and Chinese). This dataset supports research in automated cataract screening, grading, and fundus image interpretation using both image and text modalities.
This dataset is licensed under CC BY-NC 4.0. See [LICENSE](LICENSE) for details.
## π Dataset Overview
- **Total images**: 187
- **Image formats**: `.png` and `.jpg`
- **Annotation file**: `CSDI_annotations.csv`
- **Labels**: Cataract severity score (0β10), expert-written diagnoses, optic disc localization, optic disc clarity
## π File Structure
```
CSDI/
βββ original_images/ # Folder containing 187 fundus images (.png and .jpg)
β βββ cataract_001.png
β βββ cataract_002.jpg
β βββ ...
βββ CSDI_annotations.csv # Annotation CSV file (UTF-8 encoded)
βββ README.md # Dataset description
βββ LICENSE.md # Dataset license (CC BY 4.0)
βββ crop_fundus_images.py # Script for cropping fundus images
βββ augment_fundus_images.py # Script for image augmentation
```
## ποΈ CSV Annotation File (`CSDI_annotations.csv`)
- The CSV annotation file is encoded in **UTF-8** to ensure proper display of English and Chinese characters.
-
| Column Name | Description |
|-----------------------------|-------------|
| `id` | Image file name (e.g., `cataract_001.png`) |
| `score` | Cataract severity score (range 0β10) |
| `English_diagnosis` | Diagnosis in English |
| `Chinese_diagnosis` | Diagnosis in Chinese |
| `original_image_width` | Original image width in pixels |
| `original_image_height` | Original image height in pixels |
| `fundus_region_x1 / y1 / x2 / y2` | Coordinates of the annotated fundus region in pixels; `-1` if not visible |
| `optic_disc_clear` | Optic disc visibility (`visible` / `not visible`) |
| `optic_disc_x1 / y1 / x2 / y2` | Coordinates of the optic disc bounding box in pixels; `-1` if not visible |
> The `score` field supports both **regression** (exact score prediction) and **classification** (e.g., mild/moderate/severe).
## π Suggested Severity Levels
The cataract severity grading criteria are defined as follows, with decimal scores (to one decimal place) allowing for precise assessment within each range:
| Severity Level | Score Range | Quantity | Percentage (%) |
|------------------|-------------|----------|----------------|
| Normal | [0, 1) | 9 | 4.81 |
| Acceptable | [1, 3) | 30 | 16.04 |
| Mild | [3, 5) | 39 | 20.86 |
| Moderate | [5, 7) | 48 | 25.67 |
| Severe | [7, 10] | 61 | 32.62 |
- **0β1 (Normal):** No cataract; fundus images are clear with no lens opacity affecting image quality.
- **1β3 (Acceptable):** Acceptable cataract; images remain clear with subtle blurring, low likelihood of visual impairment.
- **3β5 (Mild):** Mild cataract; image clarity decreases, regular visual monitoring recommended, surgery unlikely immediately necessary.
- **5β7 (Moderate):** Moderate cataract; noticeable reduction in image clarity, higher probability of visual impairment, elective surgery may be considered.
- **7β10 (Severe):** Severe cataract; marked reduction in image clarity, significant impact on visual function, prompt surgical intervention advised.
---
## π Diagnostic Content
Each record contains detailed diagnostic descriptions in both Chinese and English, following a fixed sentence structure evaluating:
- **Overall Color:** Typical orange-red fundus background; deviation toward yellow-white indicates increased cataract severity.
- **Optic Disc and Vessel Clarity:** Blurring of optic disc margins and reduced vessel clarity indicate lens opacity affecting image quality.
- **Macular Area:** Accurate localization and assessment of the macula is crucial; inability to do so suggests advanced cataract.
- **Retinal Vessel Clarity and Branching:** Severity increases as visualization decreases from fine branch vessels, to major vessels and second-order branches, to only major vessels visible, to complete inability to distinguish vascular structures.
This standardized scoring system and diagnostic protocol were strictly adhered to by annotators to ensure high-quality, reliable annotations.
---
English and Chinese versions of the diagnostic descriptions are included to support multilingual and cross-lingual research applications.
## π» Code Scripts
- **crop_fundus_images.py**: Crop fundus images to remove black borders and save cropping info in CSV.
```bash
python crop_fundus_images.py -i csdi_datasets/original_images -o csdi_datasets/cropped_images -p 0 -c crop_info.csv
```
- **augment_fundus_images.py**: Apply random rotations, zoom-ins, and rotation+zoom augmentations to cropped images.
```bash
python augment_fundus_images.py
```
## π― Applications
- Automated cataract screening and grading
- Ophthalmic report generation (image-to-text)
- Fundus image quality analysis
- Cross-modal learning and medical vision-language modeling
- Optic disc detection and segmentation
## π¨βπ¬ Authors
Zixun Xie<sup>1,2,\*</sup>, Mingxin Ao<sup>3,\*</sup>, Haiming Tang<sup>1,4,\*</sup>, Xuemin Li<sup>3</sup>, Xiang Bai<sup>1,2</sup>, Shanghang Zhang<sup>1,β </sup>, Dawei Li<sup>5,β </sup>
<sup>1</sup>State Key Laboratory of Multimedia Information Processing, School of Computer Science, Peking University, China
<sup>2</sup>School of Software and Microelectronics, Peking University, China
<sup>3</sup>Department of Ophthalmology, Peking University Third Hospital, China
<sup>4</sup>School of Computing, National University of Singapore, Singapore
<sup>5</sup>School of Future Technology, Peking University, China
**\*** Equal contribution and co-first authors.
**β ** Corresponding authors.
## π¬ Contact
- Zixun Xie: `zixun.xie@stu.pku.edu.cn`
- Mingxin Ao: `mingxin256@vip.sina.com`
- Haiming Tang: `haiming@comp.nus.edu.sg`
- Xuemin Li: `lxmlxm66@sina.com`
- Xiang Bai: `x.bai@stu.pku.edu.cn`
- Shanghang Zhang: `shanghang@pku.edu.cn`
- Dawei Li: `lidawei@pku.edu.cn`
## π Citation
```bibtex
@misc{csdi2025cataract,
title = {CSDI: A Fine-Grained Fundus Image Dataset of Cataract Severity and Diagnostic Images},
author = {Xie, Zixun and Ao, Mingxin and Tang, Haiming and Li, Xuemin and Bai, Xiang and Zhang, Shanghang and Li, Dawei},
year = {2025},
note = {Under review at Scientific Data}
} |