Dataset Viewer
Auto-converted to Parquet Duplicate
patient_id
stringclasses
1 value
headache_subtype
stringclasses
1 value
sex
stringclasses
1 value
age_at_baseline
stringclasses
1 value
race_ethnicity
stringclasses
1 value
education_years
stringclasses
1 value
geographic_region
stringclasses
1 value
bmi
stringclasses
1 value
obesity_flag
stringclasses
1 value
anxiety_disorder_flag
stringclasses
1 value
depression_flag
stringclasses
1 value
fibromyalgia_flag
stringclasses
1 value
sleep_disorder_flag
stringclasses
1 value
hypertension_flag
stringclasses
1 value
ocp_use_flag
stringclasses
1 value
psychiatric_medication_flag
stringclasses
1 value
prior_er_visit_flag
stringclasses
1 value
headache_specialist_flag
stringclasses
1 value
headache_days_per_month
stringclasses
1 value
migraine_days_per_month
stringclasses
1 value
headache_duration_hours
stringclasses
1 value
pain_intensity_nrs
stringclasses
1 value
pain_location
stringclasses
1 value
pain_character
stringclasses
1 value
aggravation_by_activity
stringclasses
1 value
nausea_flag
stringclasses
1 value
vomiting_flag
stringclasses
1 value
photophobia_flag
stringclasses
1 value
phonophobia_flag
stringclasses
1 value
osmophobia_flag
stringclasses
1 value
allodynia_score_asc12
stringclasses
1 value
cutaneous_allodynia_flag
stringclasses
1 value
chronification_risk_score
stringclasses
1 value
prodrome_flag
stringclasses
1 value
prodrome_duration_hours
stringclasses
1 value
prodrome_symptoms
stringclasses
1 value
aura_flag
stringclasses
1 value
aura_type
stringclasses
1 value
aura_duration_minutes
stringclasses
1 value
visual_aura_subtype
stringclasses
1 value
spreading_depression_proxy
stringclasses
1 value
postdrome_flag
stringclasses
1 value
postdrome_duration_hours
stringclasses
1 value
postdrome_symptoms
stringclasses
1 value
trigger_stress
stringclasses
1 value
trigger_sleep_disruption
stringclasses
1 value
trigger_hormonal
stringclasses
1 value
trigger_weather_barometric
stringclasses
1 value
trigger_skipped_meals
stringclasses
1 value
trigger_bright_light
stringclasses
1 value
trigger_strong_odors
stringclasses
1 value
trigger_dehydration
stringclasses
1 value
trigger_alcohol
stringclasses
1 value
trigger_caffeine_withdrawal
stringclasses
1 value
trigger_dietary_tyramine
stringclasses
1 value
trigger_physical_exertion
stringclasses
1 value
n_triggers_reported
stringclasses
1 value
trigger_screen_time_hours
stringclasses
1 value
trigger_reliability_score
stringclasses
1 value
menstrual_cycle_day
stringclasses
1 value
perimenstrual_attack_flag
stringclasses
1 value
acute_treatment_name
stringclasses
1 value
acute_treatment_class
stringclasses
1 value
acute_dose_mg
stringclasses
1 value
time_to_treat_hours
stringclasses
1 value
pain_free_2hr_flag
stringclasses
1 value
pain_relief_2hr_flag
stringclasses
1 value
most_bothersome_symptom_relief
stringclasses
1 value
sustained_pain_free_24hr
stringclasses
1 value
rescue_medication_flag
stringclasses
1 value
medication_overuse_days
stringclasses
1 value
medication_overuse_headache_flag
stringclasses
1 value
treatment_satisfaction_score
stringclasses
1 value
preventive_medication
stringclasses
1 value
preventive_class
stringclasses
1 value
preventive_dose_mg
stringclasses
1 value
botox_units
stringclasses
1 value
preventive_duration_months
stringclasses
1 value
preventive_adherence_pct
stringclasses
1 value
monthly_mmd_reduction
stringclasses
1 value
responder_50pct_flag
stringclasses
1 value
responder_75pct_flag
stringclasses
1 value
cgrp_mechanism_flag
stringclasses
1 value
preventive_discontinuation_flag
stringclasses
1 value
discontinuation_reason
stringclasses
1 value
midas_score
stringclasses
1 value
midas_grade
stringclasses
1 value
hit6_score
stringclasses
1 value
promis_pain_interference_t
stringclasses
1 value
work_days_lost_per_month
stringclasses
1 value
presenteeism_days_per_month
stringclasses
1 value
global_productivity_loss_pct
stringclasses
1 value
sf12_pcs
stringclasses
1 value
sf12_mcs
stringclasses
1 value
phq9_score
stringclasses
1 value
gad7_score
stringclasses
1 value
psqi_score
stringclasses
1 value
caregiver_burden_score
stringclasses
1 value
healthcare_visits_per_year
stringclasses
1 value
annual_migraine_cost_usd
stringclasses
1 value
plasma_cgrp_pg_ml
stringclasses
1 value
plasma_cgrp_ictal_flag
stringclasses
1 value
cgrp_response_index
stringclasses
1 value
plasma_serotonin_ng_ml
stringclasses
1 value
cortisol_am_ug_dl
stringclasses
1 value
magnesium_serum_mg_dl
stringclasses
1 value
magnesium_deficiency_flag
stringclasses
1 value
inflammatory_index
stringclasses
1 value
autonomic_dysfunction_score
stringclasses
1 value
str
str
str
int64
str
int64
str
float64
int64
int64
int64
int64
int64
int64
int64
int64
int64
int64
int64
int64
float64
float64
str
str
int64
int64
int64
int64
int64
int64
int64
int64
float64
int64
float64
str
int64
str
int64
str
float64
int64
float64
str
int64
int64
int64
int64
int64
int64
int64
int64
int64
int64
int64
int64
int64
float64
float64
int64
int64
str
str
int64
float64
int64
int64
int64
int64
int64
int64
int64
float64
str
str
int64
int64
int64
float64
float64
int64
int64
int64
int64
str
int64
str
int64
float64
float64
float64
float64
float64
float64
int64
int64
int64
float64
int64
float64
float64
int64
float64
float64
float64
float64
int64
float64
float64

HC-NEU-006 — Migraine & Chronic Headache Dataset (Sample)

A schema-identical preview of HC-NEU-006, the XpertSystems.ai synthetic migraine and chronic headache patient cohort dataset for clinical trial research, CGRP-era treatment outcome modeling, ICHD-3 subtype classification ML, AMPP / CaMEO-comparable headache analytics, and migraine-specific machine learning. The full product covers 10,000 patients; this sample is HF-sized at 3,000 patients.

Built by XpertSystems.ai — Synthetic Data Platform Contact pradeep@xpertsystems.ai · xpertsystems.ai License CC-BY-NC-4.0 (sample); commercial license available for the full product.


What HC-NEU-006 does — and how it grows the Healthcare/Neurology vertical

HC-NEU-006 is the sixth Healthcare / Neurology SKU in the XpertSystems catalog. After AD, PD, Epilepsy, MS, and Stroke, the catalog now extends into chronic episodic neurology — diseases managed primarily through pharmacological symptom and prevention strategies, rather than acute interventional or neuroprotective trials.

SKU Disease US Patients Annual Pharma R&D Architecture
HC-NEU-001 Alzheimer's 6.9M $8B Single longitudinal
HC-NEU-002 Parkinson's 1.0M $5B Single longitudinal
HC-NEU-003 Epilepsy 3.4M $3B Cross-sectional
HC-NEU-004 Multiple Sclerosis 1.0M $6B Multi-table relational
HC-NEU-005 Stroke 7.0M $3B Cross-sectional
HC-NEU-006 Migraine & Headache 39M $5B+ Cross-sectional

Migraine is the single largest neurology cohort by patient count — ~39M Americans, with ~9M chronic migraine sufferers. The CGRP era (Erenumab/Fremanezumab/Galcanezumab/Eptinezumab + Ubrogepant/Rimegepant/ Atogepant) has transformed migraine treatment over the last 6 years, creating a huge market for clinical research and real-world data.

This is the substrate migraine pharma R&D teams, CGRP-era market analytics, headache specialist clinic analytics, and migraine-specific ML teams have been waiting for: a coherent cross-sectional dataset where ICHD-3 subtype × triggers × CGRP biomarkers × acute treatments × CGRP mAb preventive response × disability outcomes all interact with STRIVE / HALO / EVOLVE / PROMISE-2 trial-grade calibration.

Buyer Persona Use Case
Migraine Pharma R&D CGRP mAb comparator modeling, trial design
CGRP-Era Market Analytics Treatment-switching pattern analytics
Headache Specialist Clinic AMPP / CaMEO-comparable benchmarking
MIDAS / HIT-6 Modeling Disability outcome ML training
Trigger-Pattern ML 13-trigger × headache-day prediction
Pediatric & Cluster Headache Subtype-specific cohort enrichment
Migraine Digital Therapeutic Treatment-response wearable ML
Real-World Evidence (RWE) CGRP mAb adherence + discontinuation analytics
Migraine Genetics Aura subtype + family history phenotype ML

What's inside

Single cross-sectional dataframe, one row per patient. 9 clinical modules concatenated horizontally.

Output Rows (sample) Columns Size
HC_NEU_006_dataset.csv 3,000 109 ~1.5 MB

Schema provided in HC_NEU_006_schema.json.

Module structure (109 columns total)

Module Cols Coverage
Demographics 8 sex, age, race/ethnicity, education, region, BMI
Comorbidities 10 obesity, anxiety, depression, fibromyalgia, sleep, HTN, OCP, psych med, ER, specialist
Headache characterization 15 subtype, HDM, MDM, duration, pain intensity/location/character, nausea, photophobia, allodynia
Prodrome/aura 9 flags, duration, symptoms, aura type, visual aura subtype, postdrome
Triggers 17 13-class trigger panel + n_triggers + screen time + menstrual cycle
Acute treatment 12 11-agent panel, class, dose, time-to-treat, pain-free/relief 2hr, rescue, MOH
Preventive treatment 12 11-agent panel, class, dose, MMD reduction, 50/75% responder, adherence, discontinuation
Disability/QoL 14 MIDAS, HIT-6, SF-12 PCS/MCS, PHQ-9, GAD-7, PSQI, work loss, productivity, cost
Biomarkers 8 plasma CGRP, ictal flag, serotonin, cortisol, magnesium, inflammatory, autonomic

Calibration sources

Every distribution is anchored to named clinical references. The headline anchors are AMPP (American Migraine Prevalence and Prevention Study), CaMEO (Chronic Migraine Epidemiology and Outcomes Study), and the four pivotal CGRP mAb trials (STRIVE / HALO / EVOLVE / PROMISE-2). Other anchors:

  • ICHD-3 Diagnostic Criteria (Headache Classification Committee 2018) — 6-class headache subtype taxonomy.
  • AMPP Study (Bigal 2008 + Lipton 2007) — US migraine prevalence, triggers, demographics.
  • CaMEO Study (Buse 2013 + Lipton 2014) — chronic migraine epidemiology, longitudinal outcomes.
  • STRIVE Trial (Goadsby 2017 NEJM) — Erenumab Phase 3, MMD reduction, 50% responder rate.
  • HALO-EM/CM Trials (Silberstein 2017 NEJM) — Fremanezumab Phase 3.
  • EVOLVE-1/2 Trials (Stauffer 2018 JAMA) — Galcanezumab Phase 3.
  • PROMISE-2 Trial (Lipton 2020 Neurology) — Eptinezumab Phase 3.
  • ACHIEVE-I/II Trials — Ubrogepant Phase 3 (acute gepant).
  • Bigal 2006 Neurology — Obesity-migraine bidirectional risk.
  • Edvinsson 2018 Cephalalgia + Goadsby 1990 — Plasma CGRP biomarker norms.
  • Cernuda-Morollón 2013 — Chronic migraine CGRP elevation.
  • Mauskop 2012 Headache + Welch 2001 — Magnesium-migraine link.
  • Lipton 2014 — AMPP trigger frequency study.
  • Ferrari 2001 Lancet — Triptan efficacy meta-analysis.

Validation scorecard

The wrapper ships a 10-metric AMPP/CaMEO/CGRP-trial-anchored scorecard (validation_scorecard.json) that re-scores the dataset on every generation. Default seed 42 result:

ID Metric Target Observed Source
M01 Chronic Migraine Share 0.15–0.25 0.199 ICHD-3 / AMPP
M02 Episodic Migraine HDM Mean 3–8 4.70 CaMEO (Buse 2013)
M03 Chronic Migraine HDM Mean 14–22 18.39 ICHD-3 (≥15)
M04 Pain Intensity NRS Mean 5–8 6.33 AMPP + CaMEO
M05 CGRP mAb MMD Reduction 2.5–4.5 days 3.71 STRIVE / HALO / EVOLVE / PROMISE-2
M06 Plasma CGRP Mean 40–110 pg/mL 54.97 Edvinsson 2018 + Cernuda-Morollón
M07 Obesity (Chronic Migraine) 0.20–0.40 0.275 Bigal 2006 Neurology
M08 Magnesium Deficiency 0.30–0.60 0.430 Mauskop 2012 / Welch 2001
M09 Stress Trigger Reported 0.60–0.90 0.803 AMPP (Lipton 2014)
M10 Female Patient Share 0.62–0.82 0.690 AMPP / GBD Migraine 2019

Grade: A+ (100/100). Verified across seeds 42, 7, 123, 2024, 99, 1.

Standout calibration: M01 chronic migraine share lands within 0.13 percentage points of the ICHD-3 / AMPP 20% target. M05 CGRP mAb MMD reduction (3.71 days) lands within 0.21 days of the STRIVE / HALO / EVOLVE / PROMISE-2 pooled mean of 3.5 days — the exact CGRP-era clinical efficacy benchmark. M03 chronic migraine HDM (18.39) lands directly in the ICHD-3 ≥15 range center.


Suggested use cases

  • CGRP-era treatment-response modeling — patient features + preventive class → MMD reduction prediction with STRIVE-calibrated CGRP mAb response.
  • ICHD-3 subtype classification — 6-class headache subtype ML from symptom + aura + duration features.
  • Disability outcome forecasting — MIDAS + HIT-6 prediction from baseline features and treatment regimen.
  • Trigger-pattern ML — 13-trigger feature space × headache_days_per_month for trigger-impact modeling.
  • Aura subtype detection — visual aura sub-typing (scintillating scotoma vs fortification spectra vs blurred vision) from prodrome + duration features.
  • CGRP biomarker validation — plasma CGRP × headache_subtype × treatment_class × MMD outcome for biomarker development.
  • Medication overuse headache (MOH) risk modeling — acute medication frequency + class × MOH progression prediction.
  • AMPP / CaMEO comparable cohort analytics — for healthcare data scientists building published-study-comparable models without IRB registry access.
  • Health economics / HEOR — work_days_lost + productivity + annual_migraine_cost_usd for migraine cost-effectiveness modeling.
  • Migraine + comorbidity multi-modal — anxiety / depression / fibromyalgia / sleep_disorder co-occurrence ML.

Loading

from datasets import load_dataset

ds = load_dataset(
    "xpertsystems/hcneu006-sample",
    data_files="HC_NEU_006_dataset.csv",
    split="train",
)

Or with pandas directly:

import pandas as pd
from huggingface_hub import hf_hub_download

path = hf_hub_download(
    repo_id="xpertsystems/hcneu006-sample",
    filename="HC_NEU_006_dataset.csv",
    repo_type="dataset",
)
df = pd.read_csv(path)

The dataset ships with HC_NEU_006_schema.json providing per-column dtypes for pipeline integration:

import json
schema = json.load(open("HC_NEU_006_schema.json"))
# {"patient_id": "object", "headache_subtype": "object", "headache_days_per_month": "int64", ...}

Cross-sectional, one row per patient — like HC-NEU-003 (Epilepsy) and HC-NEU-005 (Stroke). For longitudinal trajectory analysis on individual patients, use the full product which carries 24-month monthly diary sub-records.


Schema highlights

Demographicspatient_id, headache_subtype (6-class ICHD-3), sex, age_at_baseline, race_ethnicity, education_years, geographic_region, bmi, obesity_flag.

Comorbidities (10 flags) — anxiety, depression, fibromyalgia, sleep_disorder, hypertension, OCP_use, psychiatric_medication, prior_er_visit, headache_specialist.

Headache characterizationheadache_days_per_month, migraine_days_per_month, headache_duration_hours, pain_intensity_nrs (0-10), pain_location, pain_character (Throbbing/Pulsating/Pressing/ Stabbing), aggravation_by_activity, nausea_flag, vomiting_flag, photophobia_flag, phonophobia_flag, osmophobia_flag, allodynia_score_asc12, cutaneous_allodynia_flag, chronification_risk_score.

Prodrome/auraprodrome_flag, prodrome_duration_hours, prodrome_symptoms, aura_flag, aura_type, aura_duration_minutes, visual_aura_subtype ∈ {Scintillating_Scotoma, Fortification_Spectra, Blurred_Vision, NaN}, spreading_depression_proxy, postdrome_flag, postdrome_duration_hours, postdrome_symptoms.

Triggers (13-class) — stress, sleep_disruption, hormonal, weather_barometric, skipped_meals, bright_light, strong_odors, dehydration, alcohol, caffeine_withdrawal, dietary_tyramine, physical_exertion, screen_time + n_triggers_reported, trigger_reliability_score, menstrual_cycle_day, perimenstrual_attack_flag.

Acute treatmentacute_treatment_name (11 agents), acute_treatment_class ∈ {NSAID, Triptan, Gepant, Dittan, Ergotamine, Analgesic, None}, acute_dose_mg, time_to_treat_hours, pain_free_2hr_flag, pain_relief_2hr_flag, most_bothersome_symptom_relief, sustained_pain_free_24hr, rescue_medication_flag, medication_overuse_days, medication_overuse_headache_flag, treatment_satisfaction_score.

Preventive treatmentpreventive_medication (11 agents), preventive_class ∈ {BetaBlocker, AED, TCA, CGRP_mAb, CGRP_Gepant, Botox, None}, preventive_dose_mg, botox_units, preventive_duration_months, preventive_adherence_pct, monthly_mmd_reduction, responder_50pct_flag, responder_75pct_flag, cgrp_mechanism_flag, preventive_discontinuation_flag, discontinuation_reason.

Disability/QoLmidas_score, midas_grade ∈ {Grade_I (0-5), Grade_II (6-10), Grade_III (11-20), Grade_IV (≥21)}, hit6_score (36-78), promis_pain_interference_t, work_days_lost_per_month, presenteeism_days_per_month, global_productivity_loss_pct, sf12_pcs, sf12_mcs, phq9_score (0-27), gad7_score (0-21), psqi_score, caregiver_burden_score, healthcare_visits_per_year, annual_migraine_cost_usd.

Biomarkersplasma_cgrp_pg_ml, plasma_cgrp_ictal_flag, cgrp_response_index, plasma_serotonin_ng_ml, cortisol_am_ug_dl, magnesium_serum_mg_dl, magnesium_deficiency_flag, inflammatory_index, autonomic_dysfunction_score.


Calibration notes & limitations

In the spirit of honest synthetic data, a few things buyers of the sample should know:

  1. Generator bug fix applied: missing obesity_flag column. The upstream generator's generate_comorbidities() does not create obesity_flag, but generate_headache_baseline() references it. The wrapper monkey-patches generate_comorbidities to add obesity_flag with Bigal 2006-calibrated prevalence (CM ~30%, EM/TTH ~20%). Underlying generator file unmodified. Without this patch, the generator crashes with KeyError.

  2. Pain-relief 2hr = 100% and rescue medication = 100% are generator quirks. The upstream generate_acute_treatment() module sets these flags as constants rather than sampling from the pain_free_2hr rate dictionary. Treat the pain_relief_2hr_flag, rescue_medication_flag columns as placeholders until the full product release. The scorecard does NOT validate these. For acute treatment efficacy ML, use the acute_treatment_class field and reference Ferrari 2001 published rates externally.

  3. CGRP mAb 50% responder = 100% is a generator quirk. Same root cause as above — responder_50pct_flag is set deterministically rather than sampled from the trial-anchored response rate. STRIVE / HALO / EVOLVE / PROMISE-2 trials report 41-62% 50% responder rates for CGRP mAbs vs ~25-30% placebo. The scorecard validates monthly_mmd_reduction (which IS correctly calibrated, M05) as the primary CGRP mAb efficacy metric.

  4. Anxiety = 100% and depression = 0% are generator quirks. The rng_bool() helper uses np.random.random() (module-level) while the broader codebase passes rng for seeded reproducibility. This creates inconsistent state. Do not use the anxiety_disorder_flag or depression_flag columns directly for comorbidity prevalence work. For psychiatric comorbidity ML, use the phq9_score (continuous, 0-27) and gad7_score (continuous, 0-21) columns instead.

  5. Severe HIT-6 (≥60) is 2.8% vs clinical expectations of 30-50%. The HIT-6 distribution in this sample is shifted lower than expected for a migraine clinical cohort. For HIT-6 modeling, validate the raw distribution before training.

  6. Fibromyalgia flag = 0% is a generator quirk. Same rng_bool inconsistency. For migraine-fibromyalgia comorbidity ML, the full product fixes this.

  7. Preventive discontinuation = 0% is unrealistic. Real-world CGRP mAb 1-year discontinuation rates are 30-50% (Hepp 2020, Nahas 2020). Generator does not model discontinuation; the full product does.

  8. Plasma CGRP varies bimodally by seed (55 to 96 pg/mL means). The generator's CGRP distribution mixes interictal (30-50) and ictal (70-110) modes. The scorecard tolerance (35 pg/mL) spans both modes; for ictal-only or interictal-only analysis, filter on plasma_cgrp_ictal_flag.

  9. MIDAS grade label is Grade_I/II/III/IV (not the literature convention I_None/II_Mild/III_Moderate/IV_Severe). Grade IV = MIDAS ≥21 = severe disability per ICHD-3.

  10. Deterministic seeding. Wrapper passes user-specified seed into CONFIG["seed"] and np.random.seed(). Seed sweep verifies Grade A+ across {42, 7, 123, 2024, 99, 1}.


Commercial / full product

The full HC-NEU-006 product covers 10,000 patients with calibrated CGRP mAb 50% responder rates per STRIVE/HALO/EVOLVE/PROMISE-2 (not deterministic 100%), realistic acute-treatment pain-free 2hr response sampling per Ferrari 2001 meta-analysis, fixed psychiatric comorbidity sampling, preventive discontinuation modeling per Hepp 2020 / Nahas 2020 real-world data, 24-month monthly diary sub-records for longitudinal analysis, configurable cohort enrichment (chronic-only, pediatric, cluster headache, MOH, perimenstrual migraine), and patient-level outcome modeling. Available under commercial license — contact pradeep@xpertsystems.ai.

XpertSystems.ai also publishes synthetic data products across Oil & Gas (17 SKUs), Cybersecurity, Insurance & Risk, and Materials & Energy. Catalog: huggingface.co/xpertsystems.

Downloads last month
23