pradeep-xpert commited on
Commit
de0e348
·
verified ·
1 Parent(s): d138996

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. HC_NEU_006_dataset.csv +0 -0
  2. HC_NEU_006_schema.json +111 -0
  3. README.md +404 -0
HC_NEU_006_dataset.csv ADDED
The diff for this file is too large to render. See raw diff
 
HC_NEU_006_schema.json ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "patient_id": "str",
3
+ "headache_subtype": "str",
4
+ "sex": "str",
5
+ "age_at_baseline": "int64",
6
+ "race_ethnicity": "str",
7
+ "education_years": "int64",
8
+ "geographic_region": "str",
9
+ "bmi": "float64",
10
+ "obesity_flag": "int64",
11
+ "anxiety_disorder_flag": "int64",
12
+ "depression_flag": "int64",
13
+ "fibromyalgia_flag": "int64",
14
+ "sleep_disorder_flag": "int64",
15
+ "hypertension_flag": "int64",
16
+ "ocp_use_flag": "int64",
17
+ "psychiatric_medication_flag": "int64",
18
+ "prior_er_visit_flag": "int64",
19
+ "headache_specialist_flag": "int64",
20
+ "headache_days_per_month": "int64",
21
+ "migraine_days_per_month": "int64",
22
+ "headache_duration_hours": "float64",
23
+ "pain_intensity_nrs": "float64",
24
+ "pain_location": "str",
25
+ "pain_character": "str",
26
+ "aggravation_by_activity": "int64",
27
+ "nausea_flag": "int64",
28
+ "vomiting_flag": "int64",
29
+ "photophobia_flag": "int64",
30
+ "phonophobia_flag": "int64",
31
+ "osmophobia_flag": "int64",
32
+ "allodynia_score_asc12": "int64",
33
+ "cutaneous_allodynia_flag": "int64",
34
+ "chronification_risk_score": "float64",
35
+ "prodrome_flag": "int64",
36
+ "prodrome_duration_hours": "float64",
37
+ "prodrome_symptoms": "str",
38
+ "aura_flag": "int64",
39
+ "aura_type": "str",
40
+ "aura_duration_minutes": "int64",
41
+ "visual_aura_subtype": "str",
42
+ "spreading_depression_proxy": "float64",
43
+ "postdrome_flag": "int64",
44
+ "postdrome_duration_hours": "float64",
45
+ "postdrome_symptoms": "str",
46
+ "trigger_stress": "int64",
47
+ "trigger_sleep_disruption": "int64",
48
+ "trigger_hormonal": "int64",
49
+ "trigger_weather_barometric": "int64",
50
+ "trigger_skipped_meals": "int64",
51
+ "trigger_bright_light": "int64",
52
+ "trigger_strong_odors": "int64",
53
+ "trigger_dehydration": "int64",
54
+ "trigger_alcohol": "int64",
55
+ "trigger_caffeine_withdrawal": "int64",
56
+ "trigger_dietary_tyramine": "int64",
57
+ "trigger_physical_exertion": "int64",
58
+ "n_triggers_reported": "int64",
59
+ "trigger_screen_time_hours": "float64",
60
+ "trigger_reliability_score": "float64",
61
+ "menstrual_cycle_day": "int64",
62
+ "perimenstrual_attack_flag": "int64",
63
+ "acute_treatment_name": "str",
64
+ "acute_treatment_class": "str",
65
+ "acute_dose_mg": "int64",
66
+ "time_to_treat_hours": "float64",
67
+ "pain_free_2hr_flag": "int64",
68
+ "pain_relief_2hr_flag": "int64",
69
+ "most_bothersome_symptom_relief": "int64",
70
+ "sustained_pain_free_24hr": "int64",
71
+ "rescue_medication_flag": "int64",
72
+ "medication_overuse_days": "int64",
73
+ "medication_overuse_headache_flag": "int64",
74
+ "treatment_satisfaction_score": "float64",
75
+ "preventive_medication": "str",
76
+ "preventive_class": "str",
77
+ "preventive_dose_mg": "int64",
78
+ "botox_units": "int64",
79
+ "preventive_duration_months": "int64",
80
+ "preventive_adherence_pct": "float64",
81
+ "monthly_mmd_reduction": "float64",
82
+ "responder_50pct_flag": "int64",
83
+ "responder_75pct_flag": "int64",
84
+ "cgrp_mechanism_flag": "int64",
85
+ "preventive_discontinuation_flag": "int64",
86
+ "discontinuation_reason": "str",
87
+ "midas_score": "int64",
88
+ "midas_grade": "str",
89
+ "hit6_score": "int64",
90
+ "promis_pain_interference_t": "float64",
91
+ "work_days_lost_per_month": "float64",
92
+ "presenteeism_days_per_month": "float64",
93
+ "global_productivity_loss_pct": "float64",
94
+ "sf12_pcs": "float64",
95
+ "sf12_mcs": "float64",
96
+ "phq9_score": "int64",
97
+ "gad7_score": "int64",
98
+ "psqi_score": "int64",
99
+ "caregiver_burden_score": "float64",
100
+ "healthcare_visits_per_year": "int64",
101
+ "annual_migraine_cost_usd": "float64",
102
+ "plasma_cgrp_pg_ml": "float64",
103
+ "plasma_cgrp_ictal_flag": "int64",
104
+ "cgrp_response_index": "float64",
105
+ "plasma_serotonin_ng_ml": "float64",
106
+ "cortisol_am_ug_dl": "float64",
107
+ "magnesium_serum_mg_dl": "float64",
108
+ "magnesium_deficiency_flag": "int64",
109
+ "inflammatory_index": "float64",
110
+ "autonomic_dysfunction_score": "float64"
111
+ }
README.md ADDED
@@ -0,0 +1,404 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ task_categories:
4
+ - tabular-classification
5
+ - tabular-regression
6
+ language:
7
+ - en
8
+ tags:
9
+ - synthetic
10
+ - migraine
11
+ - headache
12
+ - chronic-migraine
13
+ - ichd-3
14
+ - ampp
15
+ - cameo
16
+ - cgrp
17
+ - cgrp-mab
18
+ - erenumab
19
+ - fremanezumab
20
+ - galcanezumab
21
+ - eptinezumab
22
+ - atogepant
23
+ - triptan
24
+ - sumatriptan
25
+ - rimegepant
26
+ - ubrogepant
27
+ - lasmiditan
28
+ - aura
29
+ - midas
30
+ - hit-6
31
+ - neurology
32
+ - clinical-trial
33
+ - tension-headache
34
+ - cluster-headache
35
+ - medication-overuse-headache
36
+ pretty_name: "HC-NEU-006 — Migraine & Chronic Headache Dataset (Sample)"
37
+ size_categories:
38
+ - 1K<n<10K
39
+ ---
40
+
41
+ # HC-NEU-006 — Migraine & Chronic Headache Dataset (Sample)
42
+
43
+ A schema-identical preview of **HC-NEU-006**, the XpertSystems.ai
44
+ synthetic **migraine and chronic headache patient cohort** dataset for
45
+ clinical trial research, CGRP-era treatment outcome modeling, ICHD-3
46
+ subtype classification ML, AMPP / CaMEO-comparable headache analytics,
47
+ and migraine-specific machine learning. The full product covers 10,000
48
+ patients; this sample is HF-sized at 3,000 patients.
49
+
50
+ > **Built by** XpertSystems.ai — Synthetic Data Platform
51
+ > **Contact** [pradeep@xpertsystems.ai](mailto:pradeep@xpertsystems.ai) · [xpertsystems.ai](https://xpertsystems.ai)
52
+ > **License** CC-BY-NC-4.0 (sample); commercial license available for the full product.
53
+
54
+ ---
55
+
56
+ ## What HC-NEU-006 does — and how it grows the Healthcare/Neurology vertical
57
+
58
+ HC-NEU-006 is the **sixth Healthcare / Neurology SKU** in the
59
+ XpertSystems catalog. After AD, PD, Epilepsy, MS, and Stroke, the
60
+ catalog now extends into **chronic episodic neurology** — diseases
61
+ managed primarily through pharmacological symptom and prevention
62
+ strategies, rather than acute interventional or neuroprotective trials.
63
+
64
+ | SKU | Disease | US Patients | Annual Pharma R&D | Architecture |
65
+ |---|---|---|---|---|
66
+ | HC-NEU-001 | Alzheimer's | 6.9M | $8B | Single longitudinal |
67
+ | HC-NEU-002 | Parkinson's | 1.0M | $5B | Single longitudinal |
68
+ | HC-NEU-003 | Epilepsy | 3.4M | $3B | Cross-sectional |
69
+ | HC-NEU-004 | Multiple Sclerosis | 1.0M | $6B | Multi-table relational |
70
+ | HC-NEU-005 | Stroke | 7.0M | $3B | Cross-sectional |
71
+ | HC-NEU-006 | **Migraine & Headache** | **39M** | **$5B+** | **Cross-sectional** |
72
+
73
+ **Migraine is the single largest neurology cohort by patient count** —
74
+ ~39M Americans, with ~9M chronic migraine sufferers. The CGRP era
75
+ (Erenumab/Fremanezumab/Galcanezumab/Eptinezumab + Ubrogepant/Rimegepant/
76
+ Atogepant) has transformed migraine treatment over the last 6 years,
77
+ creating a huge market for clinical research and real-world data.
78
+
79
+ This is the substrate **migraine pharma R&D teams, CGRP-era market
80
+ analytics, headache specialist clinic analytics, and migraine-specific
81
+ ML teams** have been waiting for: a coherent cross-sectional dataset
82
+ where ICHD-3 subtype × triggers × CGRP biomarkers × acute treatments
83
+ × CGRP mAb preventive response × disability outcomes all interact
84
+ with **STRIVE / HALO / EVOLVE / PROMISE-2 trial-grade calibration**.
85
+
86
+ | Buyer Persona | Use Case |
87
+ |---|---|
88
+ | Migraine Pharma R&D | CGRP mAb comparator modeling, trial design |
89
+ | CGRP-Era Market Analytics | Treatment-switching pattern analytics |
90
+ | Headache Specialist Clinic | AMPP / CaMEO-comparable benchmarking |
91
+ | MIDAS / HIT-6 Modeling | Disability outcome ML training |
92
+ | Trigger-Pattern ML | 13-trigger × headache-day prediction |
93
+ | Pediatric & Cluster Headache | Subtype-specific cohort enrichment |
94
+ | Migraine Digital Therapeutic | Treatment-response wearable ML |
95
+ | Real-World Evidence (RWE) | CGRP mAb adherence + discontinuation analytics |
96
+ | Migraine Genetics | Aura subtype + family history phenotype ML |
97
+
98
+ ---
99
+
100
+ ## What's inside
101
+
102
+ **Single cross-sectional dataframe**, one row per patient. 9 clinical
103
+ modules concatenated horizontally.
104
+
105
+ | Output | Rows (sample) | Columns | Size |
106
+ |---|---:|---:|---|
107
+ | `HC_NEU_006_dataset.csv` | 3,000 | 109 | ~1.5 MB |
108
+
109
+ Schema provided in `HC_NEU_006_schema.json`.
110
+
111
+ ### Module structure (109 columns total)
112
+
113
+ | Module | Cols | Coverage |
114
+ |---|---:|---|
115
+ | Demographics | 8 | sex, age, race/ethnicity, education, region, BMI |
116
+ | Comorbidities | 10 | obesity, anxiety, depression, fibromyalgia, sleep, HTN, OCP, psych med, ER, specialist |
117
+ | Headache characterization | 15 | subtype, HDM, MDM, duration, pain intensity/location/character, nausea, photophobia, allodynia |
118
+ | Prodrome/aura | 9 | flags, duration, symptoms, aura type, visual aura subtype, postdrome |
119
+ | Triggers | 17 | 13-class trigger panel + n_triggers + screen time + menstrual cycle |
120
+ | Acute treatment | 12 | 11-agent panel, class, dose, time-to-treat, pain-free/relief 2hr, rescue, MOH |
121
+ | Preventive treatment | 12 | 11-agent panel, class, dose, MMD reduction, 50/75% responder, adherence, discontinuation |
122
+ | Disability/QoL | 14 | MIDAS, HIT-6, SF-12 PCS/MCS, PHQ-9, GAD-7, PSQI, work loss, productivity, cost |
123
+ | Biomarkers | 8 | plasma CGRP, ictal flag, serotonin, cortisol, magnesium, inflammatory, autonomic |
124
+
125
+ ---
126
+
127
+ ## Calibration sources
128
+
129
+ Every distribution is anchored to **named clinical references**. The
130
+ headline anchors are **AMPP** (American Migraine Prevalence and Prevention
131
+ Study), **CaMEO** (Chronic Migraine Epidemiology and Outcomes Study),
132
+ and the four pivotal **CGRP mAb trials** (STRIVE / HALO / EVOLVE /
133
+ PROMISE-2). Other anchors:
134
+
135
+ - **ICHD-3 Diagnostic Criteria (Headache Classification Committee 2018)** —
136
+ 6-class headache subtype taxonomy.
137
+ - **AMPP Study (Bigal 2008 + Lipton 2007)** — US migraine prevalence,
138
+ triggers, demographics.
139
+ - **CaMEO Study (Buse 2013 + Lipton 2014)** — chronic migraine
140
+ epidemiology, longitudinal outcomes.
141
+ - **STRIVE Trial (Goadsby 2017 NEJM)** — Erenumab Phase 3, MMD reduction,
142
+ 50% responder rate.
143
+ - **HALO-EM/CM Trials (Silberstein 2017 NEJM)** — Fremanezumab Phase 3.
144
+ - **EVOLVE-1/2 Trials (Stauffer 2018 JAMA)** — Galcanezumab Phase 3.
145
+ - **PROMISE-2 Trial (Lipton 2020 Neurology)** — Eptinezumab Phase 3.
146
+ - **ACHIEVE-I/II Trials** — Ubrogepant Phase 3 (acute gepant).
147
+ - **Bigal 2006 Neurology** — Obesity-migraine bidirectional risk.
148
+ - **Edvinsson 2018 Cephalalgia + Goadsby 1990** — Plasma CGRP biomarker
149
+ norms.
150
+ - **Cernuda-Morollón 2013** — Chronic migraine CGRP elevation.
151
+ - **Mauskop 2012 Headache + Welch 2001** — Magnesium-migraine link.
152
+ - **Lipton 2014** — AMPP trigger frequency study.
153
+ - **Ferrari 2001 Lancet** — Triptan efficacy meta-analysis.
154
+
155
+ ---
156
+
157
+ ## Validation scorecard
158
+
159
+ The wrapper ships a 10-metric AMPP/CaMEO/CGRP-trial-anchored scorecard
160
+ (`validation_scorecard.json`) that re-scores the dataset on every
161
+ generation. Default seed 42 result:
162
+
163
+ | ID | Metric | Target | Observed | Source |
164
+ |---|---|---|---:|---|
165
+ | M01 | Chronic Migraine Share | 0.15–0.25 | **0.199** | **ICHD-3 / AMPP** |
166
+ | M02 | Episodic Migraine HDM Mean | 3–8 | **4.70** | **CaMEO (Buse 2013)** |
167
+ | M03 | Chronic Migraine HDM Mean | 14–22 | **18.39** | **ICHD-3 (≥15)** |
168
+ | M04 | Pain Intensity NRS Mean | 5–8 | **6.33** | AMPP + CaMEO |
169
+ | M05 | CGRP mAb MMD Reduction | 2.5–4.5 days | **3.71** | **STRIVE / HALO / EVOLVE / PROMISE-2** |
170
+ | M06 | Plasma CGRP Mean | 40–110 pg/mL | **54.97** | Edvinsson 2018 + Cernuda-Morollón |
171
+ | M07 | Obesity (Chronic Migraine) | 0.20–0.40 | **0.275** | **Bigal 2006 Neurology** |
172
+ | M08 | Magnesium Deficiency | 0.30–0.60 | **0.430** | Mauskop 2012 / Welch 2001 |
173
+ | M09 | Stress Trigger Reported | 0.60–0.90 | **0.803** | AMPP (Lipton 2014) |
174
+ | M10 | Female Patient Share | 0.62–0.82 | **0.690** | AMPP / GBD Migraine 2019 |
175
+
176
+ **Grade: A+ (100/100). Verified across seeds 42, 7, 123, 2024, 99, 1.**
177
+
178
+ **Standout calibration**: M01 chronic migraine share lands within
179
+ 0.13 percentage points of the ICHD-3 / AMPP 20% target. **M05 CGRP mAb
180
+ MMD reduction (3.71 days) lands within 0.21 days of the STRIVE / HALO /
181
+ EVOLVE / PROMISE-2 pooled mean of 3.5 days** — the exact CGRP-era
182
+ clinical efficacy benchmark. M03 chronic migraine HDM (18.39) lands
183
+ directly in the ICHD-3 ≥15 range center.
184
+
185
+ ---
186
+
187
+ ## Suggested use cases
188
+
189
+ - **CGRP-era treatment-response modeling** — patient features +
190
+ preventive class → MMD reduction prediction with STRIVE-calibrated
191
+ CGRP mAb response.
192
+ - **ICHD-3 subtype classification** — 6-class headache subtype ML from
193
+ symptom + aura + duration features.
194
+ - **Disability outcome forecasting** — MIDAS + HIT-6 prediction from
195
+ baseline features and treatment regimen.
196
+ - **Trigger-pattern ML** — 13-trigger feature space × headache_days_per_month
197
+ for trigger-impact modeling.
198
+ - **Aura subtype detection** — visual aura sub-typing (scintillating
199
+ scotoma vs fortification spectra vs blurred vision) from prodrome +
200
+ duration features.
201
+ - **CGRP biomarker validation** — plasma CGRP × headache_subtype ×
202
+ treatment_class × MMD outcome for biomarker development.
203
+ - **Medication overuse headache (MOH) risk modeling** — acute
204
+ medication frequency + class × MOH progression prediction.
205
+ - **AMPP / CaMEO comparable cohort analytics** — for healthcare data
206
+ scientists building published-study-comparable models without IRB
207
+ registry access.
208
+ - **Health economics / HEOR** — work_days_lost + productivity +
209
+ annual_migraine_cost_usd for migraine cost-effectiveness modeling.
210
+ - **Migraine + comorbidity multi-modal** — anxiety / depression /
211
+ fibromyalgia / sleep_disorder co-occurrence ML.
212
+
213
+ ---
214
+
215
+ ## Loading
216
+
217
+ ```python
218
+ from datasets import load_dataset
219
+
220
+ ds = load_dataset(
221
+ "xpertsystems/hcneu006-sample",
222
+ data_files="HC_NEU_006_dataset.csv",
223
+ split="train",
224
+ )
225
+ ```
226
+
227
+ Or with pandas directly:
228
+
229
+ ```python
230
+ import pandas as pd
231
+ from huggingface_hub import hf_hub_download
232
+
233
+ path = hf_hub_download(
234
+ repo_id="xpertsystems/hcneu006-sample",
235
+ filename="HC_NEU_006_dataset.csv",
236
+ repo_type="dataset",
237
+ )
238
+ df = pd.read_csv(path)
239
+ ```
240
+
241
+ The dataset ships with `HC_NEU_006_schema.json` providing per-column
242
+ dtypes for pipeline integration:
243
+
244
+ ```python
245
+ import json
246
+ schema = json.load(open("HC_NEU_006_schema.json"))
247
+ # {"patient_id": "object", "headache_subtype": "object", "headache_days_per_month": "int64", ...}
248
+ ```
249
+
250
+ Cross-sectional, one row per patient — like HC-NEU-003 (Epilepsy) and
251
+ HC-NEU-005 (Stroke). For longitudinal trajectory analysis on individual
252
+ patients, use the full product which carries 24-month monthly diary
253
+ sub-records.
254
+
255
+ ---
256
+
257
+ ## Schema highlights
258
+
259
+ **Demographics** — `patient_id`, `headache_subtype` (6-class ICHD-3),
260
+ `sex`, `age_at_baseline`, `race_ethnicity`, `education_years`,
261
+ `geographic_region`, `bmi`, `obesity_flag`.
262
+
263
+ **Comorbidities (10 flags)** — anxiety, depression, fibromyalgia,
264
+ sleep_disorder, hypertension, OCP_use, psychiatric_medication, prior_er_visit,
265
+ headache_specialist.
266
+
267
+ **Headache characterization** — `headache_days_per_month`,
268
+ `migraine_days_per_month`, `headache_duration_hours`, `pain_intensity_nrs`
269
+ (0-10), `pain_location`, `pain_character` (Throbbing/Pulsating/Pressing/
270
+ Stabbing), `aggravation_by_activity`, `nausea_flag`, `vomiting_flag`,
271
+ `photophobia_flag`, `phonophobia_flag`, `osmophobia_flag`,
272
+ `allodynia_score_asc12`, `cutaneous_allodynia_flag`,
273
+ `chronification_risk_score`.
274
+
275
+ **Prodrome/aura** — `prodrome_flag`, `prodrome_duration_hours`,
276
+ `prodrome_symptoms`, `aura_flag`, `aura_type`, `aura_duration_minutes`,
277
+ `visual_aura_subtype` ∈ {Scintillating_Scotoma, Fortification_Spectra,
278
+ Blurred_Vision, NaN}, `spreading_depression_proxy`, `postdrome_flag`,
279
+ `postdrome_duration_hours`, `postdrome_symptoms`.
280
+
281
+ **Triggers (13-class)** — stress, sleep_disruption, hormonal,
282
+ weather_barometric, skipped_meals, bright_light, strong_odors,
283
+ dehydration, alcohol, caffeine_withdrawal, dietary_tyramine,
284
+ physical_exertion, screen_time + `n_triggers_reported`,
285
+ `trigger_reliability_score`, `menstrual_cycle_day`,
286
+ `perimenstrual_attack_flag`.
287
+
288
+ **Acute treatment** — `acute_treatment_name` (11 agents),
289
+ `acute_treatment_class` ∈ {NSAID, Triptan, Gepant, Dittan, Ergotamine,
290
+ Analgesic, None}, `acute_dose_mg`, `time_to_treat_hours`,
291
+ `pain_free_2hr_flag`, `pain_relief_2hr_flag`,
292
+ `most_bothersome_symptom_relief`, `sustained_pain_free_24hr`,
293
+ `rescue_medication_flag`, `medication_overuse_days`,
294
+ `medication_overuse_headache_flag`, `treatment_satisfaction_score`.
295
+
296
+ **Preventive treatment** — `preventive_medication` (11 agents),
297
+ `preventive_class` ∈ {BetaBlocker, AED, TCA, CGRP_mAb, CGRP_Gepant,
298
+ Botox, None}, `preventive_dose_mg`, `botox_units`,
299
+ `preventive_duration_months`, `preventive_adherence_pct`,
300
+ `monthly_mmd_reduction`, `responder_50pct_flag`, `responder_75pct_flag`,
301
+ `cgrp_mechanism_flag`, `preventive_discontinuation_flag`,
302
+ `discontinuation_reason`.
303
+
304
+ **Disability/QoL** — `midas_score`, `midas_grade` ∈ {Grade_I (0-5),
305
+ Grade_II (6-10), Grade_III (11-20), Grade_IV (≥21)}, `hit6_score`
306
+ (36-78), `promis_pain_interference_t`, `work_days_lost_per_month`,
307
+ `presenteeism_days_per_month`, `global_productivity_loss_pct`,
308
+ `sf12_pcs`, `sf12_mcs`, `phq9_score` (0-27), `gad7_score` (0-21),
309
+ `psqi_score`, `caregiver_burden_score`, `healthcare_visits_per_year`,
310
+ `annual_migraine_cost_usd`.
311
+
312
+ **Biomarkers** — `plasma_cgrp_pg_ml`, `plasma_cgrp_ictal_flag`,
313
+ `cgrp_response_index`, `plasma_serotonin_ng_ml`, `cortisol_am_ug_dl`,
314
+ `magnesium_serum_mg_dl`, `magnesium_deficiency_flag`,
315
+ `inflammatory_index`, `autonomic_dysfunction_score`.
316
+
317
+ ---
318
+
319
+ ## Calibration notes & limitations
320
+
321
+ In the spirit of honest synthetic data, a few things buyers of the sample
322
+ should know:
323
+
324
+ 1. **Generator bug fix applied: missing `obesity_flag` column.** The
325
+ upstream generator's `generate_comorbidities()` does not create
326
+ `obesity_flag`, but `generate_headache_baseline()` references it.
327
+ The wrapper monkey-patches `generate_comorbidities` to add
328
+ `obesity_flag` with Bigal 2006-calibrated prevalence (CM ~30%,
329
+ EM/TTH ~20%). Underlying generator file unmodified. Without this
330
+ patch, the generator crashes with KeyError.
331
+
332
+ 2. **Pain-relief 2hr = 100% and rescue medication = 100% are generator
333
+ quirks.** The upstream `generate_acute_treatment()` module sets
334
+ these flags as constants rather than sampling from the
335
+ `pain_free_2hr` rate dictionary. **Treat the
336
+ `pain_relief_2hr_flag`, `rescue_medication_flag` columns as
337
+ placeholders** until the full product release. The scorecard does
338
+ NOT validate these. For acute treatment efficacy ML, use the
339
+ `acute_treatment_class` field and reference Ferrari 2001 published
340
+ rates externally.
341
+
342
+ 3. **CGRP mAb 50% responder = 100% is a generator quirk.** Same root
343
+ cause as above — `responder_50pct_flag` is set deterministically
344
+ rather than sampled from the trial-anchored response rate. STRIVE /
345
+ HALO / EVOLVE / PROMISE-2 trials report 41-62% 50% responder rates
346
+ for CGRP mAbs vs ~25-30% placebo. The scorecard validates
347
+ `monthly_mmd_reduction` (which IS correctly calibrated, M05) as
348
+ the primary CGRP mAb efficacy metric.
349
+
350
+ 4. **Anxiety = 100% and depression = 0% are generator quirks.** The
351
+ `rng_bool()` helper uses `np.random.random()` (module-level) while
352
+ the broader codebase passes `rng` for seeded reproducibility. This
353
+ creates inconsistent state. **Do not use the
354
+ `anxiety_disorder_flag` or `depression_flag` columns directly for
355
+ comorbidity prevalence work.** For psychiatric comorbidity ML, use
356
+ the `phq9_score` (continuous, 0-27) and `gad7_score` (continuous,
357
+ 0-21) columns instead.
358
+
359
+ 5. **Severe HIT-6 (≥60) is 2.8%** vs clinical expectations of 30-50%.
360
+ The HIT-6 distribution in this sample is shifted lower than expected
361
+ for a migraine clinical cohort. For HIT-6 modeling, validate the
362
+ raw distribution before training.
363
+
364
+ 6. **Fibromyalgia flag = 0% is a generator quirk.** Same `rng_bool`
365
+ inconsistency. For migraine-fibromyalgia comorbidity ML, the full
366
+ product fixes this.
367
+
368
+ 7. **Preventive discontinuation = 0% is unrealistic.** Real-world CGRP
369
+ mAb 1-year discontinuation rates are 30-50% (Hepp 2020, Nahas
370
+ 2020). Generator does not model discontinuation; the full product
371
+ does.
372
+
373
+ 8. **Plasma CGRP varies bimodally by seed (55 to 96 pg/mL means).**
374
+ The generator's CGRP distribution mixes interictal (~30-50) and
375
+ ictal (~70-110) modes. The scorecard tolerance (35 pg/mL) spans
376
+ both modes; for ictal-only or interictal-only analysis, filter on
377
+ `plasma_cgrp_ictal_flag`.
378
+
379
+ 9. **MIDAS grade label is `Grade_I/II/III/IV`** (not the literature
380
+ convention `I_None/II_Mild/III_Moderate/IV_Severe`). Grade IV =
381
+ MIDAS ≥21 = severe disability per ICHD-3.
382
+
383
+ 10. **Deterministic seeding.** Wrapper passes user-specified seed
384
+ into `CONFIG["seed"]` and `np.random.seed()`. Seed sweep verifies
385
+ Grade A+ across {42, 7, 123, 2024, 99, 1}.
386
+
387
+ ---
388
+
389
+ ## Commercial / full product
390
+
391
+ The full **HC-NEU-006** product covers 10,000 patients with calibrated
392
+ CGRP mAb 50% responder rates per STRIVE/HALO/EVOLVE/PROMISE-2 (not
393
+ deterministic 100%), realistic acute-treatment pain-free 2hr response
394
+ sampling per Ferrari 2001 meta-analysis, fixed psychiatric comorbidity
395
+ sampling, preventive discontinuation modeling per Hepp 2020 / Nahas
396
+ 2020 real-world data, 24-month monthly diary sub-records for
397
+ longitudinal analysis, configurable cohort enrichment (chronic-only,
398
+ pediatric, cluster headache, MOH, perimenstrual migraine), and
399
+ patient-level outcome modeling. Available under commercial license —
400
+ contact [pradeep@xpertsystems.ai](mailto:pradeep@xpertsystems.ai).
401
+
402
+ XpertSystems.ai also publishes synthetic data products across Oil & Gas
403
+ (17 SKUs), Cybersecurity, Insurance & Risk, and Materials & Energy.
404
+ Catalog: [huggingface.co/xpertsystems](https://huggingface.co/xpertsystems).