beingzy commited on
Commit
3151c84
·
verified ·
1 Parent(s): 47ac4e2

update README.md

Browse files

include more details, such as usage and instruction.

Files changed (1) hide show
  1. README.md +115 -18
README.md CHANGED
@@ -1,29 +1,126 @@
1
  ---
2
- license: mit
3
- tags:
4
- - biology
5
- - pathology
6
- - TCGA
7
- - Prostate
8
- pretty_name: Refined TCGA-PRAD Prostate Cancer Pathology Dataset
9
- size_categories:
10
- - 1K<n<10K
11
  ---
12
 
13
- Dataset Description: A Second Opinion on TCGA PRAD Prostate Dataset Labels Supported by ROI-Level Annotations
14
- Motivation:
15
- We discovered that some diagnostic labels in the TCGA's PRAD prostate cancer dataset were incorrect, and some are incomplete in terms of describing the Gleason patterns presented on the slides. This presents a significant issue, as many recent AI pathology studies show models achieving higher accuracy on the TCGA dataset. However, if the labels are wrong, a higher accuracy on incorrect labels could suggest that the model is performing worse than it actually is when compared to true labels. To address this, Codatta collaborated with DPath and expert-level pathologists to re-annotate some of the TCGA PRAD dataset, improving the label quality and ensuring more reliable data for AI model training.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  | Type | Counts |
17
  |--------------------------|--------|
18
  | TCGA WSI Total | 435 |
19
  | Agree with TCGA label | 190 |
20
  | Disagree with TCGA label | 245 |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
- Re-Annotation Process:
23
- To support our new slide-level labels, pathologists meticulously labeled the corresponding regions of interest (ROIs) within each slide. For example, when a slide was labeled as Gleason Grade 4+3, the regions containing Gleason Grade 4 tumor and Gleason Grade 3 tumor were separately marked. This provided a clear indication of the relative proportion of these tumor grades within the slide, helping clarify the grading structure. Each label also includes a paragraph of reasoning, offering a chain of thought that explains how the pathologist arrived at the label, ensuring transparency and justification for the second-opinion annotations.
 
 
 
24
 
25
- Improvements Over TCGA Labels:
26
- In addition to correcting TCGA's slide-level labels, we made the grading system more detailed. The TCGA labels only distinguish between primary and secondary grades for prostate cancer. Our annotations introduce a "Minor" category, which provides a more nuanced understanding of the tumor composition. For example, a slide labeled as Gleason Grade 4+3 might also be annotated with Minor Grade 5, indicating that less than 5% of the slide contains Grade 5 tumor, which is valuable for prognosis and treatment planning.
 
 
27
 
28
- How to Use:
29
- This dataset includes two key files to facilitate its use: (1) an Excel file containing comprehensive slide-level information, including the slide name, diagnosis, label, and the number of regions of interest (ROIs) for each slide, and (2) a JSON file that provides the ROI coordinates for each slide. The Excel file serves as a detailed reference for understanding the annotations and slide-level statistics. The JSON file can be directly opened with QuPath or other whole slide image (WSI) viewers, allowing users to visualize the ROIs interactively on the slides. This setup makes it easy to explore the data, validate the annotations, and integrate the dataset into AI training pipelines or pathology workflows.
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: README
3
+ emoji: 👁
4
+ colorFrom: indigo
5
+ colorTo: gray
6
+ sdk: static
7
+ pinned: false
 
 
 
8
  ---
9
 
10
+
11
+ # Dataset: A Second Opinion on TCGA PRAD Prostate Dataset Labels with ROI-Level Annotations
12
+
13
+ ## Overview
14
+ This dataset provides enhanced and corrected Gleason grading annotations for the TCGA PRAD prostate cancer dataset, supported by Region of Interest (ROI)-level spatial annotations. Developed in collaboration with **[Codatta](https://codatta.io)** and **[DPath.ai](https://dpath.ai)**, where **[DPath.ai](https://dpath.ai)** launched a dedicated community via **[Codatta](https://codatta.io)** to assemble a network of pathologists, this dataset improved accuracies and granularity of information in the original **[TCGA-PRAD](https://portal.gdc.cancer.gov/projects/TCGA-PRAD)** slide-level labels. The collaborative effort enabled pathologists worldwide to contribute annotations, improving label reliability for AI model training and advancing pathology research. Unlike traditional labeling marketplaces, collaborators a.k.a pathologists retain ownership of the dataset, ensuring their contributions remain recognized, potentially rewarded and valuable within the community. Please cite the dataset in any publication or work using the provided citation format to acknowledge the collaborative efforts of **[Codatta](https://codatta.io)**, **[DPath.ai](https://dpath.ai)**, and the contributing pathologists.
15
+
16
+ ## Motivation
17
+ We discovered significant inconsistencies in the diagnostic labels of the TCGA PRAD dataset, where:
18
+ * Some labels could be enhanced with additional opinons (labels).
19
+ * Some labels lacked granular descriptions of the Gleason patterns.
20
+
21
+ This presents a challenge for AI pathology models, as reported high accuracy might reflect learning from improved labels. To address this:
22
+ * Pathologists re-annotated slides to improve label quality.
23
+ * ROI annotations were introduced to clearly differentiate Gleason tumor grades.
24
+ * Each annotation is supported by detailed reasoning, providing transparency and justification for corrections.
25
+
26
+ ## Dataset Contents
27
+ This dataset includes two primary files:
28
+ 1. Slide-Level Labels ([PRAD.csv](https://huggingface.co/datasets/Codatta/Refined-TCGA-PRAD-Prostate-Cancer-Pathology-Dataset/blob/main/dataset/PRAD/PRAD.csv))
29
+ * Contains comprehensive metadata and diagnostic details:
30
+ * `slide_id`: Unique slide identifier.
31
+ * `slide_name`: TCGA Whole Slide Image (WSI) name.
32
+ * `label`: Corrected Gleason grade (e.g., 4+3, 5+4).
33
+ * `diagnosis`: Pathologist-provided reasoning for the label.
34
+ * `num_rois`: Number of labeled Regions of Interest (ROIs) per slide.
35
+
36
+ 2. ROI-Level Annotations (**.geojson**)
37
+ * Provides spatial coordinates for tumor regions:
38
+ * Each ROI corresponds to specific Gleason grades (e.g., Grade 3, Grade 4).
39
+ * Compatible with tools like QuPath for interactive visualization.
40
+
41
+ ## Key Statistics
42
  | Type | Counts |
43
  |--------------------------|--------|
44
  | TCGA WSI Total | 435 |
45
  | Agree with TCGA label | 190 |
46
  | Disagree with TCGA label | 245 |
47
+ > We are currently in the process of uploading data files to meet the quantities mentioned above. This is an ongoing effort to balance community impact and data quality.
48
+
49
+
50
+ ## Re-Annotation Process
51
+ 1. **Curation of Cases for Enhancement**: An expert committee identified slides requiring review.
52
+ 2. **Annotation**: Junior pathologists performed initial ROI-level annotations.
53
+ 3. **Expert Review**: Senior pathologists validated and refined the annotations.
54
+ 4. **Enhancements**:
55
+ * Granular ROI labeling for tumor regions.
56
+ * GIntroduction of Minor Grades: For example, Minor Grade 5 indicates <5% of Gleason Grade 5 tumor presence.
57
+ * GPathologist Reasoning: Each label includes a detailed explanation of the annotation process.
58
+ Some labels can be improved by adding alternative opinions to enhance the labels further.
59
+
60
+ ## Improvements Over TCGA Labels
61
+ * **Accuracy**: Enhanced slide-level Gleason labels with additional opinions and improved granularity.
62
+ * **Granularity**: Clear ROI-level annotations for primary, secondary, and minor tumor grades.
63
+ * **Transparency**: Pathologist-provided reasoning ensures a chain of thought for label decisions.
64
+
65
+ **Example**:
66
+ * Original TCGA label: Gleason Grade 4+3.
67
+ * Enhanced label: Gleason Grade 4+3 + Minor Grade 5.
68
+
69
+ ## Usage
70
+ ### For AI Training Pipelines
71
+ Combine Whole Slide Images (WSI) from TCGA PRAD with this dataset's slide-level labels (PRAD.csv) and ROI annotations (.geojson) to generate high-quality [X, y] pairs.
72
+ ### For Pathology Research
73
+ Use the ROI annotations in WSI viewers (e.g., QuPath) to interactively visualize labeled tumor regions.
74
+ Explore detailed reasoning behind Gleason grade decisions to understand tumor composition.
75
+ ### How to Load the Dataset
76
+ 1. **CSV File**
77
+ Use pandas to explore slide-level metadata:
78
+ ```python
79
+ import pandas as pd
80
+ df = pd.read_csv("PRAD.csv")
81
+ print(df.head())
82
+ ```
83
+
84
+ 2. **GeoJSON File**
85
+ Load ROIs using tools like QuPath or GeoPandas:
86
+ ```python
87
+ import geopandas as gpd
88
+ roi_data = gpd.read_file("annotations.geojson")
89
+ roi_data.plot()
90
+ ```
91
+
92
+ 3. TCGA Whole Slide Images
93
+ Original WSI files can be downloaded from the GDC Portal.
94
+ Match WSI filenames with the `slide_name` column in `PRAD.csv` for integration.
95
+
96
+ ## Example Workflow
97
+ Download **[TCGA PRAD](https://portal.gdc.cancer.gov/projects/TCGA-PRAD)** slides from the GDC Portal.
98
+ **Load** [`PRAD.csv`](https://huggingface.co/datasets/Codatta/Refined-TCGA-PRAD-Prostate-Cancer-Pathology-Dataset/blob/main/dataset/PRAD/PRAD.csv) to access corrected labels and reasoning.
99
+ Visualize ROI annotations using the .geojson files.
100
+ Train AI models with X = WSI images, y = ROI annotations + slide-level labels.
101
+
102
+ ## Licensing
103
+ This dataset is provided under a **Creative Commons Attribution 4.0 International (CC BY 4.0)** license.
104
 
105
+ ## Credits
106
+ This dataset is a collaboration between:
107
+ * [Codatta](https://codatta.io) and the network of anynmous pathologists
108
+ * [DPath.ai](https://dpath.ai)
109
+ Special thanks to the Hugging Face community for hosting this dataset.
110
 
111
+ ## Contact
112
+ For questions, suggestions, or collaborations (launch custom data sourcing and labeling tasks), please reach out via:
113
+ * **Email**: hello@codatta.io
114
+ * **Website**: https://codatta.ai
115
 
116
+ ## Citing This Work
117
+ If you use this dataset in your research or application, please cite it as:
118
+ ```
119
+ @dataset{codatta_tcga_prad_roi,
120
+ title={A Second Opinion on TCGA PRAD Prostate Dataset Labels with ROI-Level Annotations},
121
+ author={codatta, DPath, and Expert Pathologists},
122
+ year={2024},
123
+ publisher={Hugging Face},
124
+ url={https://huggingface.co/datasets/codatta/TCGA-PRAD-annotations}
125
+ }
126
+ ```