Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,8 +10,19 @@ tags:
|
|
| 10 |
- audit
|
| 11 |
- healthcare
|
| 12 |
- synthetic
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
size_categories:
|
| 14 |
-
-
|
| 15 |
task_categories:
|
| 16 |
- token-classification
|
| 17 |
- text-classification
|
|
@@ -23,106 +34,217 @@ configs:
|
|
| 23 |
- split: test
|
| 24 |
path: data/test.jsonl
|
| 25 |
default: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
---
|
| 27 |
|
| 28 |
-
# phi-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
-
|
| 31 |
-
**Part of the [ExposureGuard PHI Re-identification Risk Ecosystem](https://huggingface.co/vkatg)**
|
| 32 |
|
| 33 |
-
|
| 34 |
|
| 35 |
-
|
| 36 |
|
| 37 |
-
|
| 38 |
|
| 39 |
-
|
| 40 |
|
| 41 |
-
##
|
| 42 |
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
## Schema
|
| 49 |
|
|
|
|
|
|
|
| 50 |
```json
|
| 51 |
{
|
| 52 |
"record_id": "AUDIT-000001",
|
| 53 |
-
"modality": "
|
| 54 |
"consent_level": "standard",
|
| 55 |
-
"cross_modal":
|
| 56 |
-
"original_text": "
|
| 57 |
-
"masked_text": "[
|
| 58 |
"phi_spans": [
|
| 59 |
-
{"phi_type": "NAME", "value": "John Smith", "start":
|
| 60 |
-
{"phi_type": "DOB", "value": "1962-03-14", "start":
|
| 61 |
],
|
| 62 |
"policy_contract": {
|
| 63 |
-
"chosen_policy": "
|
| 64 |
"risk_score_before": 0.72,
|
| 65 |
"risk_score_after": 0.072,
|
| 66 |
"consent_level": "standard",
|
| 67 |
-
"modality": "
|
| 68 |
"policy_version": "v1"
|
| 69 |
},
|
| 70 |
"audit": {
|
| 71 |
-
"audit_hash": "
|
| 72 |
"timestamp_unix": 1741200000,
|
| 73 |
-
"phi_types_detected": ["DOB", "MRN", "NAME"],
|
| 74 |
-
"span_count":
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
}
|
| 76 |
}
|
| 77 |
```
|
| 78 |
|
| 79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
|
| 89 |
-
|
| 90 |
|
| 91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
|
| 93 |
| Policy | Behavior |
|
| 94 |
-
|---
|
| 95 |
-
| `raw` | No masking
|
| 96 |
-
| `weak` | Generalize dates
|
|
|
|
| 97 |
| `pseudo` | MD5-keyed pseudonymization per span |
|
| 98 |
-
| `redact` | Replace all PHI with
|
| 99 |
-
| `synthetic` | Replace with fixed synthetic values |
|
| 100 |
|
| 101 |
-
|
| 102 |
|
| 103 |
-
|
| 104 |
-
|-------|------|
|
| 105 |
-
| [vkatg/exposureguard-policynet](https://huggingface.co/vkatg/exposureguard-policynet) | Trained on policy contract features |
|
| 106 |
-
| [vkatg/dcpg-cross-modal-phi-risk-scorer](https://huggingface.co/vkatg/dcpg-cross-modal-phi-risk-scorer) | Produces risk scores matching this dataset |
|
| 107 |
-
| [vkatg/exposureguard-synthrewrite-t5](https://huggingface.co/vkatg/exposureguard-synthrewrite-t5) | Downstream consumer of masked records |
|
| 108 |
|
| 109 |
-
## Related
|
| 110 |
|
| 111 |
-
- [
|
| 112 |
-
- [
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
|
| 114 |
## Citation
|
| 115 |
|
| 116 |
```bibtex
|
| 117 |
-
@
|
| 118 |
-
title
|
| 119 |
-
author
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
howpublished = {\url{https://huggingface.co/vkatg}}
|
| 123 |
}
|
| 124 |
```
|
| 125 |
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
MIT. Fully synthetic data. Contains no real patient information.
|
|
|
|
| 10 |
- audit
|
| 11 |
- healthcare
|
| 12 |
- synthetic
|
| 13 |
+
- multimodal
|
| 14 |
+
- hipaa
|
| 15 |
+
- fhir
|
| 16 |
+
- reinforcement-learning
|
| 17 |
+
- risk-scoring
|
| 18 |
+
- adversarial
|
| 19 |
+
- token-classification
|
| 20 |
+
- text-classification
|
| 21 |
+
- asr
|
| 22 |
+
- medical
|
| 23 |
+
- ehr
|
| 24 |
size_categories:
|
| 25 |
+
- 10K<n<100K
|
| 26 |
task_categories:
|
| 27 |
- token-classification
|
| 28 |
- text-classification
|
|
|
|
| 34 |
- split: test
|
| 35 |
path: data/test.jsonl
|
| 36 |
default: true
|
| 37 |
+
- config_name: multimodal_pairs
|
| 38 |
+
data_files:
|
| 39 |
+
- split: train
|
| 40 |
+
path: data/multimodal_pairs.jsonl
|
| 41 |
+
- config_name: signed
|
| 42 |
+
data_files:
|
| 43 |
+
- split: train
|
| 44 |
+
path: data/signed.jsonl
|
| 45 |
+
- config_name: fhir
|
| 46 |
+
data_files:
|
| 47 |
+
- split: train
|
| 48 |
+
path: data/fhir.jsonl
|
| 49 |
+
- config_name: adversarial
|
| 50 |
+
data_files:
|
| 51 |
+
- split: train
|
| 52 |
+
path: data/adversarial.jsonl
|
| 53 |
---
|
| 54 |
|
| 55 |
+
# multimodal-phi-masking-benchmark
|
| 56 |
+
|
| 57 |
+
[](https://doi.org/10.5281/zenodo.18865882)
|
| 58 |
+
|
| 59 |
+
10,000 synthetic clinical records paired with token-level PHI spans, masking decisions, cryptographic audit hashes, RL reward signals, and leakage scores. Five configs covering text, ASR, imaging, waveform, and audio modalities. The only public dataset pairing PHI masking decisions with FHIR R4 audit trails, RL reward signals, and a formally modeled adversarial evasion scenario.
|
| 60 |
+
|
| 61 |
+
```python
|
| 62 |
+
from datasets import load_dataset
|
| 63 |
+
|
| 64 |
+
ds = load_dataset("vkatg/multimodal-phi-masking-benchmark")
|
| 65 |
+
pairs = load_dataset("vkatg/multimodal-phi-masking-benchmark", "multimodal_pairs")
|
| 66 |
+
signed = load_dataset("vkatg/multimodal-phi-masking-benchmark", "signed")
|
| 67 |
+
fhir = load_dataset("vkatg/multimodal-phi-masking-benchmark", "fhir")
|
| 68 |
+
adv = load_dataset("vkatg/multimodal-phi-masking-benchmark", "adversarial")
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
---
|
| 72 |
+
|
| 73 |
+
## Why this dataset exists
|
| 74 |
+
|
| 75 |
+
Every PHI de-identification dataset I could find is text-only, single-document, and has no model of how masking decisions were made. You get the original text, the redacted text, and maybe some span annotations. That's useful for training a PHI detector. It's not useful for training or evaluating a masking policy, studying audit traceability, or testing cross-modal re-identification risk.
|
| 76 |
+
|
| 77 |
+
This dataset was built to fill those gaps. Each record includes the full decision chain: what PHI was detected, what risk score it produced, what policy was selected and why, how much PHI leaked through after masking, and what RL reward the decision would have earned. The multimodal pairs config adds paired records across two modalities for the same synthetic patient, which is the kind of data needed to study cross-modal linkage and re-identification risk accumulation.
|
| 78 |
+
|
| 79 |
+
---
|
| 80 |
+
|
| 81 |
+
## Configs
|
| 82 |
+
|
| 83 |
+
### `default` (5,000 records: 4,000 train / 1,000 test)
|
| 84 |
+
|
| 85 |
+
Synthetic clinical records across all five modalities with full masking decision traces.
|
| 86 |
+
|
| 87 |
+
| Modality | Count |
|
| 88 |
+
|---|---|
|
| 89 |
+
| text | 785 |
|
| 90 |
+
| waveform_proxy | 834 |
|
| 91 |
+
| asr | 794 |
|
| 92 |
+
| image_proxy | 790 |
|
| 93 |
+
| audio_proxy | 797 |
|
| 94 |
+
|
| 95 |
+
| Policy | Count |
|
| 96 |
+
|---|---|
|
| 97 |
+
| pseudo | 1,653 |
|
| 98 |
+
| raw | 1,016 |
|
| 99 |
+
| synthetic | 957 |
|
| 100 |
+
| redact | 374 |
|
| 101 |
+
|
| 102 |
+
PHI types covered: NAME (4,000), LOCATION (1,974), MRN (1,646), DATE (1,502), DOB (1,431), AGE (889), PHONE (755), ADDRESS (453), SSN (236).
|
| 103 |
+
|
| 104 |
+
Average risk before masking: 0.607. Average leakage after masking: 0.262. Average RL reward: 0.261.
|
| 105 |
+
|
| 106 |
+
### `multimodal_pairs` (4,000 records, 2,000 patients)
|
| 107 |
|
| 108 |
+
Paired records for the same synthetic patient across two different modalities. Both records share the same PHI values, making this config directly useful for studying cross-modal linkage and re-identification risk when the same patient appears in multiple data streams.
|
|
|
|
| 109 |
|
| 110 |
+
Top modality pairs: asr+audio_proxy (450), asr+image_proxy (420), image_proxy+text (402), image_proxy+waveform_proxy (398), audio_proxy+waveform_proxy (396).
|
| 111 |
|
| 112 |
+
Each record includes a `linkage` field showing shared PHI types and the cross-modal risk nudge (+0.12) that would apply if a system tracked exposure across both records.
|
| 113 |
|
| 114 |
+
### `signed` (4,000 records)
|
| 115 |
|
| 116 |
+
Same as the default train split, with ECDSA-style signature, SHA-256 record hash, and chain timestamp added per record. Useful for evaluating audit trail verification systems and compliance tooling.
|
| 117 |
|
| 118 |
+
### `fhir` (4,000 records)
|
| 119 |
|
| 120 |
+
Default train split exported as FHIR R4 AuditEvent resources. Each record includes chosen policy, risk scores before and after masking, consent level, leakage score, RL reward, and audit hash in the `entity.detail` array. The only public de-identification dataset in FHIR format.
|
| 121 |
+
|
| 122 |
+
### `adversarial` (1,000 records)
|
| 123 |
+
|
| 124 |
+
Records where PHI is deliberately fragmented to stay sub-threshold individually (avg individual risk: 0.363) but would trigger escalation when cross-modal linkage is detected (avg combined risk: 0.483, avg risk delta: +0.12). 463 of 1,000 records have `would_trigger_cross_modal: true`.
|
| 125 |
+
|
| 126 |
+
This config models the sub-threshold probing attack described in the [phi-exposure-guard](https://github.com/azithteja91/phi-exposure-guard) system: an attacker who spaces PHI to avoid individual record thresholds while accumulating linkage signal across modalities.
|
| 127 |
+
|
| 128 |
+
---
|
| 129 |
|
| 130 |
## Schema
|
| 131 |
|
| 132 |
+
### default / multimodal_pairs / signed / adversarial
|
| 133 |
+
|
| 134 |
```json
|
| 135 |
{
|
| 136 |
"record_id": "AUDIT-000001",
|
| 137 |
+
"modality": "asr",
|
| 138 |
"consent_level": "standard",
|
| 139 |
+
"cross_modal": true,
|
| 140 |
+
"original_text": "John Smith date of birth 1962-03-14 MRN MRN-482910 presenting at Mayo Clinic",
|
| 141 |
+
"masked_text": "[NAME_a3f9b2] date of birth [DOB_c81d4e] MRN [MRN_7f2a91] presenting at [LOCATION_3d8c1a]",
|
| 142 |
"phi_spans": [
|
| 143 |
+
{"phi_type": "NAME", "value": "John Smith", "start": 0, "end": 10},
|
| 144 |
+
{"phi_type": "DOB", "value": "1962-03-14", "start": 24, "end": 34}
|
| 145 |
],
|
| 146 |
"policy_contract": {
|
| 147 |
+
"chosen_policy": "pseudo",
|
| 148 |
"risk_score_before": 0.72,
|
| 149 |
"risk_score_after": 0.072,
|
| 150 |
"consent_level": "standard",
|
| 151 |
+
"modality": "asr",
|
| 152 |
"policy_version": "v1"
|
| 153 |
},
|
| 154 |
"audit": {
|
| 155 |
+
"audit_hash": "a3f9c1...",
|
| 156 |
"timestamp_unix": 1741200000,
|
| 157 |
+
"phi_types_detected": ["DOB", "LOCATION", "MRN", "NAME"],
|
| 158 |
+
"span_count": 4
|
| 159 |
+
},
|
| 160 |
+
"metrics": {
|
| 161 |
+
"leakage_score": 0.0,
|
| 162 |
+
"rl_reward": 0.312
|
| 163 |
}
|
| 164 |
}
|
| 165 |
```
|
| 166 |
|
| 167 |
+
The `adversarial` config adds:
|
| 168 |
+
```json
|
| 169 |
+
"adversarial": {
|
| 170 |
+
"individual_risk": 0.38,
|
| 171 |
+
"combined_risk": 0.50,
|
| 172 |
+
"risk_delta": 0.12,
|
| 173 |
+
"evasion_strategy": "sub_threshold_fragmentation",
|
| 174 |
+
"would_trigger_cross_modal": true
|
| 175 |
+
}
|
| 176 |
+
```
|
| 177 |
|
| 178 |
+
The `multimodal_pairs` config adds:
|
| 179 |
+
```json
|
| 180 |
+
"pair_id": "PAIR-00001",
|
| 181 |
+
"patient_idx": 1,
|
| 182 |
+
"paired_with": "image_proxy",
|
| 183 |
+
"linkage": {
|
| 184 |
+
"shared_phi_types": ["DOB", "MRN", "NAME"],
|
| 185 |
+
"cross_modal_risk_nudge": 0.12
|
| 186 |
+
}
|
| 187 |
+
```
|
| 188 |
|
| 189 |
+
The `signed` config adds:
|
| 190 |
+
```json
|
| 191 |
+
"_signature": "a3f9c1d2...",
|
| 192 |
+
"_record_hash": "7badcf09...",
|
| 193 |
+
"_chain_ts": 1741200001.234
|
| 194 |
+
```
|
| 195 |
|
| 196 |
+
### fhir
|
| 197 |
|
| 198 |
+
Standard FHIR R4 AuditEvent resource with masking-specific fields in `entity.detail`.
|
| 199 |
+
|
| 200 |
+
---
|
| 201 |
+
|
| 202 |
+
## What you can use this for
|
| 203 |
+
|
| 204 |
+
**PHI detection and masking:** the default split has span-level annotations across 9 PHI types and 5 modalities. Covers text, ASR transcripts, imaging metadata, waveform headers, and audio proxy records with modality-appropriate templates.
|
| 205 |
+
|
| 206 |
+
**Masking policy learning:** the `policy_contract`, `metrics.leakage_score`, and `metrics.rl_reward` fields give you everything needed for offline RL training or supervised policy classification without running the full adaptive controller.
|
| 207 |
+
|
| 208 |
+
**Cross-modal re-identification research:** the `multimodal_pairs` config is the only public dataset with paired cross-modal clinical records sharing the same patient PHI. Directly applicable to studying how re-identification risk accumulates when the same patient appears across multiple data streams.
|
| 209 |
+
|
| 210 |
+
**Adversarial robustness evaluation:** the `adversarial` config gives you 1,000 records specifically designed to test whether a system can detect sub-threshold evasion via cross-modal linkage. 463 of them demonstrate the evasion being caught.
|
| 211 |
+
|
| 212 |
+
**Compliance tooling:** the `signed` and `fhir` configs are ready for audit trail verification and FHIR-compatible pipeline testing.
|
| 213 |
+
|
| 214 |
+
---
|
| 215 |
+
|
| 216 |
+
## Policies
|
| 217 |
|
| 218 |
| Policy | Behavior |
|
| 219 |
+
|---|---|
|
| 220 |
+
| `raw` | No masking |
|
| 221 |
+
| `weak` | Generalize dates and ages, bracket other PHI types |
|
| 222 |
+
| `synthetic` | Replace with fixed synthetic values (Alex Morgan, MRN-000000, etc.) |
|
| 223 |
| `pseudo` | MD5-keyed pseudonymization per span |
|
| 224 |
+
| `redact` | Replace all PHI with [REDACTED] |
|
|
|
|
| 225 |
|
| 226 |
+
Policy is selected based on risk score and consent level. `minimal` consent always produces `raw`. Above that, thresholds are: raw below 0.20, weak 0.20-0.35, synthetic 0.35-0.55, pseudo 0.55-0.75, redact above 0.75.
|
| 227 |
|
| 228 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
| 229 |
|
| 230 |
+
## Related
|
| 231 |
|
| 232 |
+
- [phi-exposure-guard](https://github.com/azithteja91/phi-exposure-guard): the adaptive masking system this dataset is built around
|
| 233 |
+
- [streaming-phi-deidentification-benchmark](https://huggingface.co/datasets/vkatg/streaming-phi-deidentification-benchmark): event-level adaptive masking traces with crossmodal and adversarial scenarios
|
| 234 |
+
- [dag-remediation-traces](https://huggingface.co/datasets/vkatg/dag_remediation_traces): DAG planning traces for post-escalation remediation
|
| 235 |
+
- [dcpg-cross-modal-phi-risk-scorer](https://huggingface.co/vkatg/dcpg-cross-modal-phi-risk-scorer): the risk scoring model that produces the risk fields in this dataset
|
| 236 |
+
|
| 237 |
+
---
|
| 238 |
|
| 239 |
## Citation
|
| 240 |
|
| 241 |
```bibtex
|
| 242 |
+
@dataset{multimodal_phi_masking_benchmark,
|
| 243 |
+
title = {Multimodal PHI Masking Benchmark},
|
| 244 |
+
author = {Ganti, Venkata Krishna Azith Teja},
|
| 245 |
+
doi = {10.5281/zenodo.18865882},
|
| 246 |
+
url = {https://huggingface.co/datasets/vkatg/multimodal-phi-masking-benchmark}
|
|
|
|
| 247 |
}
|
| 248 |
```
|
| 249 |
|
| 250 |
+
MIT License. Fully synthetic data. No real patient information anywhere in this dataset.
|
|
|
|
|
|