Commit
•
cbd10c3
1
Parent(s):
691539a
Upload README.md
Browse files
README.md
ADDED
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: "Nucls_readme"
|
3 |
+
author: "TO MINH ANH"
|
4 |
+
date: "`r Sys.Date()`"
|
5 |
+
output:
|
6 |
+
html_document: default
|
7 |
+
pdf_document: default
|
8 |
+
---
|
9 |
+
|
10 |
+
```{r setup, include=FALSE}
|
11 |
+
knitr::opts_chunk$set(echo = TRUE)
|
12 |
+
```
|
13 |
+
|
14 |
+
# NuCLS Dataset
|
15 |
+
|
16 |
+
|
17 |
+
## Table of Contents
|
18 |
+
|
19 |
+
|
20 |
+
1. [Overview](#overview)
|
21 |
+
2. [Accessing the Data](#accessing-the-data)
|
22 |
+
3. [Dataset Structure](#dataset-structure)
|
23 |
+
- [Data Schema](#data-schema)
|
24 |
+
- [Data Splits](#data-splits)
|
25 |
+
4. [Usage Examples](#usage-examples)
|
26 |
+
5. [Licensing](#licensing)
|
27 |
+
6. [Limitations](#limitations)
|
28 |
+
|
29 |
+
|
30 |
+
## Overview
|
31 |
+
|
32 |
+
|
33 |
+
The [comprehensive dataset](https://sites.google.com/view/nucls/home?authuser=0) comprises over 220,000 labeled nuclei from breast cancer images sourced from [TCGA](https://www.cancer.gov/ccg/research/genome-sequencing/tcga), making it one of the largest datasets for nucleus detection, classification, and segmentation in hematoxylin and eosin-stained digital slides of breast cancer. This extensive labeling effort is the result of a collaboration among pathologists, pathology residents, and medical students, who utilized the Digital Slide Archive for annotation. The dataset serves multiple purposes, including the development and validation of algorithms for nuclear detection, classification, and segmentation. It is also valuable for conducting interrater analysis research. The dataset encompasses annotations from both single-rater and multi-rater evaluations, with this specific collection containing approximately 59,500 labeled nuclei from the corrected single-rater subset.
|
34 |
+
|
35 |
+
This [repository](https://github.com/PathologyDataScience/BCSS) contains the necessary information about the dataset associated with the following papers:
|
36 |
+
|
37 |
+
- Amgad, Mohamed, et al. "Structured Crowdsourcing Enables Convolutional Segmentation of Histology Images." Bioinformatics, vol. 35, no. 18, 2019, pp. 3461-3467, https://doi.org/10.1093/bioinformatics/btz083. Accessed 18 Mar. 2024.
|
38 |
+
|
39 |
+
- Amgad, Mohamed, et al. "NuCLS: A Scalable Crowdsourcing Approach and Dataset for Nucleus Classification and Segmentation in Breast Cancer." GigaScience, vol. 11, 2022, https://doi.org/10.1093/gigascience/giac037. Accessed 18 Mar. 2024.
|
40 |
+
|
41 |
+
#![Alt text](URL_to_image "Optional title")
|
42 |
+
|
43 |
+
|
44 |
+
## Accessing the Data
|
45 |
+
|
46 |
+
|
47 |
+
You can load the NuCLS dataset as follows:
|
48 |
+
|
49 |
+
```python
|
50 |
+
from datasets import load_dataset
|
51 |
+
dataset = load_dataset("minhanhto09/NuCLS_dataset")
|
52 |
+
```
|
53 |
+
For detailed usage instructions, please refer to this documentation.
|
54 |
+
|
55 |
+
|
56 |
+
## Dataset Structure
|
57 |
+
|
58 |
+
|
59 |
+
### Data Schema
|
60 |
+
|
61 |
+
The Corrected Single-Rater Dataset is a collection of 1,744 entries, each with an associated Field of View (FOV) image, mask image, visualization image, and a list of nuclei annotation coordinates, comprising 1,744 complete sets. In total, there are 59,485 nuclei annotations. Each image is rendered at a resolution of 0.2 microns-per-pixel, with all annotation coordinates provided in pixel units to correspond with this resolution.
|
62 |
+
|
63 |
+
A single dataset entry contains the following details:
|
64 |
+
|
65 |
+
#![An instance of the dataset](URL_to_image "An instance of the dataset")
|
66 |
+
|
67 |
+
- `rgb_image`: A high-resolution RGB image of breast cancer tissue.
|
68 |
+
|
69 |
+
- `mask_image`: A mask image with each nucleus labeled. Class labels are encoded in the first channel. The second and third channels are used to create a unique identifier for each nucleus. The field of view (gray area) is marked to delineate the annotated region.
|
70 |
+
|
71 |
+
[This file](https://drive.google.com/file/d/1vT6ZG1s3IQkB9suI21qgzF2N5zM8z0qd/view?usp=sharing) contains the nucleus label encoding, including a special 'fov' code encoding the intended annotation region.
|
72 |
+
|
73 |
+
- `visualization_image`: A visualization image that overlays the RGB and mask images to assist in interpretability.
|
74 |
+
|
75 |
+
- `annotation_coordinates`: Each instance comprises a list of annotations for the nuclei, with each annotation encompassing:
|
76 |
+
|
77 |
+
- `raw_classification`: The base category of the nucleus, with 13 possible classes such as 'tumor' or 'lymphocyte'.
|
78 |
+
|
79 |
+
- `main_classification`: A higher-level category of the nucleus, with 7 classes including 'tumor_mitotic' and 'nonTILnonMQ_stromal'.
|
80 |
+
|
81 |
+
- `super_classification`: The broadest category label for the nucleus, with 4 options including 'sTIL' or 'nonTIL_stromal'.
|
82 |
+
|
83 |
+
- `type`: The form of annotation used, either 'rectangle' or 'polyline'.
|
84 |
+
|
85 |
+
- `xmin`, `ymin`, `xmax`, `ymax`: The bounding box coordinates indicating the extent of the nucleus.
|
86 |
+
|
87 |
+
- `coords_x`, `coords_y`: The specific boundary coordinates of the nucleus.
|
88 |
+
|
89 |
+
|
90 |
+
### Data Split
|
91 |
+
|
92 |
+
|
93 |
+
The dataset is divided into six folds, each with its own training and testing set. This division is based on the source hospital to capture the variability in medical imaging practices and ensure that models trained on the dataset can generalize well across different institutions.
|
94 |
+
|
95 |
+
The dataset is divided into the following folds:
|
96 |
+
|
97 |
+
- `train_fold_1`: 1,481 examples
|
98 |
+
- `test_fold_1`: 263 examples
|
99 |
+
|
100 |
+
- `train_fold_2`: 1,239 examples
|
101 |
+
- `test_fold_2`: 505 examples
|
102 |
+
|
103 |
+
- `train_fold_3`: 1,339 examples
|
104 |
+
- `test_fold_3`: 405 examples
|
105 |
+
|
106 |
+
- `train_fold_4`: 1,450 examples
|
107 |
+
- `test_fold_4`: 294 examples
|
108 |
+
|
109 |
+
- `train_fold_5`: 1,467 examples
|
110 |
+
- `test_fold_5`: 277 examples
|
111 |
+
|
112 |
+
- `train_fold_999`: 21 examples
|
113 |
+
- `test_fold_999`: 7 examples
|
114 |
+
|
115 |
+
|
116 |
+
## Usage Example
|
117 |
+
|
118 |
+
|
119 |
+
## Licensing
|
120 |
+
|
121 |
+
|
122 |
+
The dataset is licensed by a [CC0 1.0 license](https://www.google.com/url?q=https%3A%2F%2Fcreativecommons.org%2Fpublicdomain%2Fzero%2F1.0%2F&sa=D&sntz=1&usg=AOvVaw3eAeYgtS7qVsCxTZd1Vltr).
|
123 |
+
|
124 |
+
|
125 |
+
## Limitations
|
126 |
+
|
127 |
+
|
128 |
+
Currently, the dataset comprises exclusively the corrected single-rater data. Subsequent releases should expand to incorporate both the uncorrected single-rater and multi-rater datasets.
|