jdposa commited on
Commit
2429544
·
verified ·
1 Parent(s): 35f124a

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +148 -0
README.md ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: data-use-agreement
4
+ license_link: LICENSE
5
+ task_categories:
6
+ - token-classification
7
+ language:
8
+ - en
9
+ tags:
10
+ - medical
11
+ - clinical
12
+ - phi
13
+ - de-identification
14
+ - ner
15
+ - named-entity-recognition
16
+ pretty_name: "SHIELD Sample"
17
+ size_categories:
18
+ - n<1K
19
+ configs:
20
+ - config_name: sample_notes
21
+ data_files: data/sample/notes.parquet
22
+ - config_name: sample_spans
23
+ data_files: data/sample/spans.parquet
24
+ default_config_name: sample_notes
25
+ ---
26
+
27
+ > **This is a public sample of the SHIELD dataset.** It contains a small subset of the data for exploring the schema and building your pipeline. For the **full dataset**, see [shc-research-tech/shield](https://huggingface.co/datasets/shc-research-tech/shield) (requires access approval).
28
+
29
+ # SHIELD
30
+
31
+ SHIELD is a dataset of clinical text with PHI (Protected Health Information) span annotations for benchmarking de-identification and named entity recognition models. The dataset contains de-identified clinical notes from Stanford Medicine with expert-annotated PHI spans across 9 entity categories.
32
+
33
+ ## Quickstart
34
+
35
+ 1. This **public sample** is available without access approval — use it to explore the schema and build your pipeline
36
+ 2. To access the **full dataset**, complete the [access request process](#access-requirements) at [shc-research-tech/shield](https://huggingface.co/datasets/shc-research-tech/shield)
37
+
38
+ ## Dataset Structure
39
+
40
+ ### Notes Table
41
+
42
+ | Column | Type | Description |
43
+ |---|---|---|
44
+ | `note_id` | string | Unique identifier for each clinical note |
45
+ | `note_text` | string | Full text of the clinical note |
46
+ | `note_type` | string | Type of clinical note (e.g., discharge summary, radiology report) |
47
+
48
+ ### Spans Table
49
+
50
+ | Column | Type | Description |
51
+ |---|---|---|
52
+ | `span_id` | string | Unique identifier for each annotated span |
53
+ | `note_id` | string | Foreign key linking to the notes table |
54
+ | `span_start` | int | Character offset where the span begins |
55
+ | `span_end` | int | Character offset where the span ends |
56
+ | `span_label` | string | PHI category label |
57
+
58
+ ### Labels
59
+
60
+ | Label | Description |
61
+ |---|---|
62
+ | `age` | Patient age |
63
+ | `date` | Dates (admission, discharge, procedures, etc.) |
64
+ | `doctor` | Physician or provider names |
65
+ | `hospital` | Hospital or facility names |
66
+ | `id` | Medical record numbers, SSNs, or other identifiers |
67
+ | `location` | Addresses, cities, states, zip codes |
68
+ | `patient` | Patient names |
69
+ | `phone` | Phone or fax numbers |
70
+ | `web` | Email addresses, URLs, IP addresses |
71
+
72
+ ## Usage
73
+
74
+ ### Loading the public sample
75
+
76
+ ```python
77
+ from datasets import load_dataset
78
+
79
+ # Public sample (no access request needed)
80
+ sample_notes = load_dataset("shc-research-tech/shield-sample", "sample_notes")
81
+ sample_spans = load_dataset("shc-research-tech/shield-sample", "sample_spans")
82
+ ```
83
+
84
+ ### Loading the full dataset (requires access)
85
+
86
+ ```python
87
+ from datasets import load_dataset
88
+
89
+ # Full dataset (requires approved access)
90
+ full_notes = load_dataset("shc-research-tech/shield", "full_notes")
91
+ full_spans = load_dataset("shc-research-tech/shield", "full_spans")
92
+ ```
93
+
94
+ ---
95
+
96
+ ## Usage Notes
97
+
98
+ **NOTE:** You must apply using your institutional email address. If you use Gmail or other personal email addresses, you will not be granted access.
99
+
100
+ ## Access Requirements
101
+
102
+ Access to the full SHIELD dataset requires the following:
103
+
104
+ - A **Hugging Face account**. Create one at [huggingface.co/join](https://huggingface.co/join) if you don't have one. You will need to provide your Hugging Face username in the application.
105
+ - **Verified affiliation** with an Academic, Government, or Industry Research Lab. Please use your **institutional email address** when applying — do not use Gmail or personal emails.
106
+ - **CITI Training**: Completion of the CITI Program course **"Data or Specimens Only Research"** (the same course required for MIMIC-IV access on PhysioNet).
107
+ - **Signing the Data Use Agreement** (electronically via REDCap).
108
+ - **Institutional email verification** to confirm ownership of your email address.
109
+ - Providing a short **description of your intended research use** of SHIELD.
110
+
111
+ ### How to Apply
112
+
113
+ Complete our access request form on REDCap:
114
+
115
+ **[Apply for Access](https://redcap.stanford.edu/surveys/?s=LJ77HAA3HXRLTFEP)**
116
+
117
+ The application process has four steps:
118
+
119
+ 1. **Submit Access Request** — Provide your name, institution, role, Hugging Face username, intended use, and upload your CITI completion certificate.
120
+ 2. **Sign the Data Use Agreement** — Read and electronically sign the DUA. You will be automatically redirected after step 1.
121
+ 3. **Verify Your Institutional Email** — A verification link will be sent to your institutional email address. You must click the link to confirm ownership.
122
+ 4. **Admin Review** — Your request will be reviewed and you will be notified by email of the decision.
123
+
124
+ Once approved, go to [shc-research-tech/shield](https://huggingface.co/datasets/shc-research-tech/shield), check the confirmation box, and click "Request Access" to link your Hugging Face account.
125
+
126
+ These data must remain on your encrypted machine. **Redistribution of data is FORBIDDEN** and will result in immediate termination of access privileges.
127
+
128
+ ### Important Notes
129
+
130
+ - Sending SHIELD data over a non-HIPAA-compliant API is a violation of the DUA.
131
+ - If you create derived research artifacts based on SHIELD (such as additional annotations or synthetic data), please contact us to discuss appropriate hosting and licensing.
132
+ - Please allow **5 business days** to process applications.
133
+
134
+ ---
135
+
136
+ ## Contact
137
+
138
+ JD Posada (jdposada@stanford.edu)
139
+
140
+ ## Citation
141
+
142
+ ```bibtex
143
+ @inproceedings{YOUR_CITATION,
144
+ title={YOUR TITLE},
145
+ author={YOUR AUTHORS},
146
+ year={2026},
147
+ }
148
+ ```