pradeep-xpert commited on
Commit
09f5020
·
verified ·
1 Parent(s): 55d6388

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +615 -0
  2. hccar005_dataset.csv +0 -0
  3. hccar005_dataset.parquet +3 -0
README.md ADDED
@@ -0,0 +1,615 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ task_categories:
4
+ - tabular-classification
5
+ - tabular-regression
6
+ - time-series-forecasting
7
+ tags:
8
+ - synthetic-data
9
+ - healthcare
10
+ - cardiology
11
+ - coronary-artery-disease
12
+ - cad
13
+ - stable-angina
14
+ - unstable-angina
15
+ - acute-coronary-syndrome
16
+ - acs
17
+ - nstemi
18
+ - stemi
19
+ - post-pci
20
+ - post-cabg
21
+ - ccs-class
22
+ - canadian-cardiovascular-society
23
+ - angina-classification
24
+ - syntax-score
25
+ - ffr
26
+ - fractional-flow-reserve
27
+ - ifr
28
+ - pci
29
+ - percutaneous-coronary-intervention
30
+ - cabg
31
+ - coronary-artery-bypass-graft
32
+ - stent
33
+ - des
34
+ - drug-eluting-stent
35
+ - bms
36
+ - bare-metal-stent
37
+ - everolimus
38
+ - ees
39
+ - door-to-balloon
40
+ - d2b
41
+ - timi-flow
42
+ - killip
43
+ - killip-kimball
44
+ - grace-score
45
+ - timi-risk-score
46
+ - saq
47
+ - seattle-angina-questionnaire
48
+ - ischemia-trial
49
+ - courage
50
+ - syntax-trial
51
+ - freedom
52
+ - ncdr-action
53
+ - ncdr-cathpci
54
+ - sts-database
55
+ - adult-cardiac-surgery
56
+ - ccta
57
+ - coronary-ct-angiography
58
+ - nuclear-stress-test
59
+ - spect-mpi
60
+ - mibi
61
+ - duke-treadmill
62
+ - echocardiography
63
+ - lvef
64
+ - ejection-fraction
65
+ - hfref
66
+ - hfpef
67
+ - rwma
68
+ - troponin
69
+ - ck-mb
70
+ - bnp
71
+ - nt-probnp
72
+ - crp
73
+ - ldl
74
+ - lp-a
75
+ - statin
76
+ - pcsk9
77
+ - evolocumab
78
+ - alirocumab
79
+ - sglt2-inhibitor
80
+ - ace-inhibitor
81
+ - arb
82
+ - beta-blocker
83
+ - dapt
84
+ - aspirin
85
+ - ticagrelor
86
+ - clopidogrel
87
+ - prasugrel
88
+ - mace
89
+ - in-stent-restenosis
90
+ - isr
91
+ - graft-patency
92
+ - lima
93
+ - left-internal-mammary-artery
94
+ - euroscore-ii
95
+ - sts-score
96
+ - agatston
97
+ - calcium-score
98
+ - plaque-burden
99
+ - tcfa
100
+ - napkin-ring-sign
101
+ - ehr-synthetic
102
+ - longitudinal-cohort
103
+ - clinical-trial-simulation
104
+ pretty_name: HCCAR005 — Synthetic Coronary Artery Disease Dataset (Sample)
105
+ size_categories:
106
+ - 1K<n<10K
107
+ configs:
108
+ - config_name: default
109
+ data_files: hccar005_dataset.parquet
110
+ ---
111
+
112
+ # HCCAR005 — Synthetic Coronary Artery Disease Dataset (Sample Preview)
113
+
114
+ **XpertSystems.ai | Synthetic Data Factory | Healthcare / Cardiology Vertical**
115
+
116
+ A **longitudinal coronary artery disease (CAD) patient dataset** spanning
117
+ the full spectrum from subclinical disease through acute coronary
118
+ syndromes through post-revascularization follow-up. 150 patients across
119
+ **7 CAD stages** (Subclinical, Stable Angina, Unstable Angina, NSTEMI,
120
+ STEMI, Post-PCI, Post-CABG) followed annually for 10 years — yielding
121
+ 1,500 visit-level records with 140 features per row covering:
122
+
123
+ - **CAD anatomy** (3-vessel stenosis %, **FFR per vessel + iFR**, SYNTAX
124
+ score, plaque burden, lesion length, MLA, Agatston calcium score,
125
+ plaque type including TCFA)
126
+ - **Angina assessment** (CCS class, angina frequency/duration/trigger,
127
+ nitroglycerin response, NYHA functional class, **Seattle Angina
128
+ Questionnaire 5 domains**, Duke treadmill score, stress test results
129
+ + modality)
130
+ - **ACS events** (door-to-balloon, TIMI flow pre/post, thrombus burden,
131
+ Killip class, GRACE score, TIMI risk score)
132
+ - **Biomarkers** (Troponin I/T, CK-MB, BNP/NT-proBNP, CRP, visit-level
133
+ LDL/HDL/Trig with statin effect)
134
+ - **Interventions** (PCI with DES_EES/BMS, stent type/length/diameter,
135
+ num_stents, post-PCI FFR/MLA, contrast volume, radiation dose; OR
136
+ CABG with graft count, LIMA usage, pump time, cross-clamp time;
137
+ procedural success flag)
138
+ - **Imaging** (echo LVEF/LVEDV/LVESV, RWMA + territory, E/e', LAVI;
139
+ CCTA plaque volume + napkin-ring sign; nuclear stress SSS/SDS)
140
+ - **Medications** (DAPT with P2Y12 selection and duration, statin
141
+ intensity, beta-blocker, ACEi/ARB, **SGLT2i, PCSK9i**, anticoagulant)
142
+ - **Outcomes** (MACE flag + component, time-to-MACE, target vessel
143
+ revascularization, in-stent restenosis, graft patency, 30-day
144
+ readmission, CV death, all-cause mortality, LVEF change)
145
+
146
+ Calibrated benchmark-first against **ACC/AHA Stable CAD Guidelines**
147
+ (Fihn et al.), **SYNTAX Trial** (Mohr et al., Serruys et al.), **COURAGE**
148
+ (Boden et al.), **ISCHEMIA Trial** (Maron et al. 2020), **FREEDOM Trial**
149
+ (Farkouh et al.), **4th Universal Definition of MI (2018)**,
150
+ **Killip-Kimball (1967)**, **NCDR ACTION + CathPCI Registries**, **STS
151
+ Adult Cardiac Surgery Database**, **GRACE Registry** (Granger et al.
152
+ 2003), **TIMI Risk Score** (Antman et al. 2000), **Seattle Angina
153
+ Questionnaire** (Spertus et al. 1995), and **KDIGO 2012** CKD staging.
154
+
155
+ This is the **sample preview** — 150 patients × 10 annual visits over
156
+ 10 years (1,500 visit records, ~1.1 MB). The full product covers
157
+ 10,000+ patients with extended procedural detail, full medication
158
+ titration trajectories, multi-imaging modality co-occurrence, and
159
+ pre-built scenario configs for **ISCHEMIA replication, FREEDOM
160
+ DM-CAD cohort, COURAGE invasive vs OMT, EXCEL-style left-main
161
+ PCI-vs-CABG, and BIOFLOW-V stent comparison studies**.
162
+
163
+ ---
164
+
165
+ ## Dataset summary
166
+
167
+ | Table | Rows (sample) | What it contains |
168
+ |---|---:|---|
169
+ | `hccar005_dataset` | 1,500 | One row per patient × annual visit. 140 features across 8 clinical modules (baseline carried forward + angina + ACS + biomarkers + intervention + imaging + medications + outcomes). 150 unique patients × 10 annual visits each |
170
+
171
+ Provided in **CSV** and **Parquet**. Aggregate to patient level via
172
+ `groupby('patient_id')` for cross-sectional analysis. Use baseline
173
+ visit (`visit_number == 1`) for cohort entry analysis.
174
+
175
+ ---
176
+
177
+ ## Calibration sources
178
+
179
+ All ten validation metrics target named clinical / registry standards:
180
+
181
+ - **ACC/AHA Stable Ischemic Heart Disease Guidelines** (Fihn et al.
182
+ 2012; 2014 Focused Update) — CCS class definitions, GDMT framework
183
+ - **ACC/AHA STEMI / NSTE-ACS Guidelines** (Levine et al. 2015; Amsterdam
184
+ et al. 2014) — D2B targets, primary PCI criteria
185
+ - **SYNTAX Trial / Score** (Sianos et al. 2005; Mohr et al. 2013) —
186
+ SYNTAX scoring system, PCI vs CABG decision thresholds (≥33: CABG
187
+ preferred; 23-32: Heart Team; <22: PCI acceptable)
188
+ - **COURAGE Trial** (Boden et al. 2007) — invasive vs OMT framework
189
+ - **ISCHEMIA Trial** (Maron et al. 2020) — stable CAD invasive vs OMT
190
+ - **FREEDOM Trial** (Farkouh et al. 2012) — DM-CAD revascularization
191
+ - **EXCEL Trial** (Stone et al. 2016) — left main PCI vs CABG
192
+ - **4th Universal Definition of MI** (Thygesen et al. 2018) — STEMI/
193
+ NSTEMI classification, troponin kinetics
194
+ - **Killip-Kimball (1967)** — AMI hemodynamic classification
195
+ - **GRACE Registry** (Granger et al. 2003) — in-hospital mortality
196
+ prediction, score range [0, 372]
197
+ - **TIMI Risk Score** (Antman et al. 2000) — 0-7 point UA/NSTEMI score
198
+ - **Seattle Angina Questionnaire** (Spertus et al. 1995) — 5-domain
199
+ patient-reported angina assessment (0-100 scale)
200
+ - **CCS Functional Classification** — angina severity 0-4
201
+ - **NCDR ACTION + CathPCI** — door-to-balloon, stent attribute
202
+ reporting standards
203
+ - **STS Adult Cardiac Surgery Database** — CABG quality measures,
204
+ graft count, LIMA usage, pump/cross-clamp times
205
+ - **EuroSCORE II + STS Mortality Risk** — surgical risk stratification
206
+ - **KDIGO 2012** — CKD eGFR-based staging
207
+
208
+ ---
209
+
210
+ ## Validation scorecard (seed = 42)
211
+
212
+ 10/10 PASS · **Grade A+ (100%)** across all six canonical seeds (42, 7, 123, 2024, 99, 1).
213
+
214
+ | # | Metric | Observed | Target | Tol | Type | Source |
215
+ |---|---|---:|---:|---:|---|---|
216
+ | 1 | `prior_cabg_flag_equals_post_cabg_stage_rate` | 1.000 | 0.99 | ±0.01 | FLOOR | Structural |
217
+ | 2 | `prior_mi_requires_acs_or_post_stage_rate` | 1.000 | 0.99 | ±0.01 | FLOOR | ACS history consistency |
218
+ | 3 | `door_to_balloon_in_stemi_only_rate` | 1.000 | 0.99 | ±0.01 | FLOOR | NCDR ACTION |
219
+ | 4 | `d2b_met_flag_matches_d2b_under_90_rate` | 1.000 | 0.99 | ±0.01 | FLOOR | ACC/AHA STEMI |
220
+ | 5 | `pci_stent_attributes_consistent_with_arm_rate` | 1.000 | 0.99 | ±0.01 | FLOOR | NCDR CathPCI |
221
+ | 6 | `cabg_attributes_consistent_with_arm_rate` | 1.000 | 0.99 | ±0.01 | FLOOR | STS Database |
222
+ | 7 | `hfref_flag_matches_lvef_under_40_rate` | 0.999 | 0.99 | ±0.01 | FLOOR | ACC/AHA HF |
223
+ | 8 | `cv_death_implies_mortality_rate` | 1.000 | 0.99 | ±0.01 | FLOOR | Survival monotonicity |
224
+ | 9 | `mace_component_matches_mace_flag_rate` | 1.000 | 0.99 | ±0.01 | FLOOR | MACE composite |
225
+ | 10 | `risk_scores_in_published_ranges_rate` | 1.000 | 0.99 | ±0.01 | FLOOR | Multiple guidelines |
226
+
227
+ ---
228
+
229
+ ## Schema highlights (140 cols total)
230
+
231
+ ### Identity & visit (6 cols)
232
+ `patient_id` (HC-CAR-XXXXXXX), `site_id`, `visit_number` (1-10),
233
+ `visit_date`, `age_at_visit`, `years_from_baseline`.
234
+
235
+ ### Patient baseline (49 cols)
236
+ `cad_stage` (Subclinical / StableAngina / UnstableAngina / NSTEMI /
237
+ STEMI / PostPCI / PostCABG), `sex`, `age_at_baseline`, `bmi`,
238
+ `systolic_bp_mmhg`, `heart_rate_bpm`, `smoking_history`,
239
+ **comorbidities** (`diabetes_flag`, `hypertension_flag`,
240
+ `hyperlipidemia_flag`, `ckd_flag`, `ckd_stage`, `heart_failure_flag`,
241
+ `afib_flag`, `pad_flag`, `prior_mi_flag`, `prior_pci_flag`,
242
+ `prior_cabg_flag`), `egfr_ml_min_1_73m2`, `creatinine_mg_dl`,
243
+ **baseline lipids** (`ldl_mg_dl`, `hdl_mg_dl`, `triglycerides_mg_dl`,
244
+ `lp_a_nmol_l`, `hba1c_pct`, `hemoglobin_g_dl`), **CAD anatomy**
245
+ (`num_vessels_diseased`, `lm_disease_flag`, `syntax_score`,
246
+ `culprit_vessel`, `stenosis_pct_lad`, `stenosis_pct_lcx`,
247
+ `stenosis_pct_rca`, `ffr_lad`, `ffr_lcx`, `ffr_rca`, `ifr_value`,
248
+ `plaque_burden_pct`, `lesion_length_mm`, `reference_vessel_diameter_mm`,
249
+ `mla_mm2`, `calcium_score_agatston`, `plaque_type`,
250
+ `annual_stenosis_progression_pct`), `intervention_arm` (OMT / PCI_BMS /
251
+ PCI_DES / CABG / Hybrid), `euroscore_ii`, `sts_score_mortality_pct`.
252
+
253
+ ### Angina (16 cols)
254
+ `angina_class_ccs` (0-4), `angina_type` (Stable / Unstable / Silent /
255
+ Mixed), `angina_frequency_per_week`, `angina_duration_min`,
256
+ `angina_trigger`, `nitroglycerin_response`, `dyspnea_nyha_class` (1-4),
257
+ `ischemic_burden_pct_lv`, `stress_test_result`, `duke_treadmill_score`,
258
+ `stress_test_modality`, **SAQ 5 domains** (`saq_physical_limitation`,
259
+ `saq_angina_stability`, `saq_angina_frequency`,
260
+ `saq_treatment_satisfaction`, `saq_quality_of_life`).
261
+
262
+ ### ACS (10 cols)
263
+ `acs_type` (None / UA / NSTEMI / STEMI), `symptom_onset_to_door_min`,
264
+ `door_to_balloon_min`, `door_to_balloon_met_flag`, `thrombus_burden`,
265
+ `timi_flow_pre` (0-3), `timi_flow_post` (0-3), `killip_class` (1-4),
266
+ `grace_score` (0-372), `timi_risk_score` (0-7).
267
+
268
+ ### Biomarkers (9 cols)
269
+ `troponin_i_ng_ml`, `troponin_t_ng_ml`, `ck_mb_ng_ml`, `bnp_pg_ml`,
270
+ `nt_probnp_pg_ml`, `crp_mg_l`, `ldl_mg_dl_visit`, `hdl_mg_dl_visit`,
271
+ `triglycerides_mg_dl_visit`.
272
+
273
+ ### Intervention (15 cols)
274
+ `intervention_type`, `pci_target_vessel`, `stent_type` (DES_EES / BMS),
275
+ `stent_length_mm`, `stent_diameter_mm`, `post_pci_ffr`,
276
+ `post_pci_mla_mm2`, `num_stents_deployed`, `total_stent_length_mm`,
277
+ `cabg_grafts`, `lima_used_flag`, `cabg_pump_time_min`,
278
+ `cabg_xclamp_time_min`, `contrast_volume_ml`,
279
+ `radiation_dose_kerma_mgy`, `procedural_success_flag`.
280
+
281
+ ### Imaging (13 cols)
282
+ `echo_lvef_pct`, `echo_lv_edv_ml`, `echo_lv_esv_ml`, `echo_rwma_flag`,
283
+ `echo_rwma_territory`, `echo_e_e_prime_ratio`, `echo_lavi_ml_m2`,
284
+ `lvef_hfref_flag`, `ccta_plaque_volume_mm3`, `ccta_napkin_ring_flag`,
285
+ `nuclear_sss`, `nuclear_sds`, `nuclear_lvef_stress_pct`.
286
+
287
+ ### Medications (12 cols)
288
+ `aspirin_flag`, `p2y12_inhibitor` (Ticagrelor / Clopidogrel / Prasugrel
289
+ / None), `dapt_duration_months`, `statin_flag`, `statin_intensity`
290
+ (None / Low / Moderate / High), `beta_blocker_flag`, `ace_arb_flag`,
291
+ `sglt2_inhibitor_flag`, `pcsk9_inhibitor_flag`, `nitrate_use_flag`,
292
+ `anticoagulant_use`, `medication_adherence_pct`.
293
+
294
+ ### Outcomes (11 cols)
295
+ `mace_event_flag`, `mace_component` (MI / Stroke / CV_Death /
296
+ HF_Hospitalization / None), `time_to_mace_days`,
297
+ `target_vessel_revascularization_flag`, `in_stent_restenosis_flag`,
298
+ `graft_patency_flag`, `hospitalization_cv_flag`,
299
+ `readmission_30d_flag`, `mortality_flag`, `cv_death_flag`,
300
+ `lvef_change_pct`.
301
+
302
+ ---
303
+
304
+ ## Suggested use cases
305
+
306
+ - **SYNTAX Score → revascularization strategy ML** — train a Heart-
307
+ Team-style classifier (PCI vs CABG vs OMT) from SYNTAX score, LM
308
+ involvement, comorbidities, EuroSCORE II, STS score
309
+ - **FFR / iFR-guided PCI candidate selection** — classifier for
310
+ significant ischemia (FFR ≤ 0.80) from angiographic features
311
+ - **CCTA plaque characterization ML** — predict TCFA (TCFA flag in
312
+ plaque_type) and napkin-ring sign from CCTA volume features
313
+ - **In-stent restenosis prediction** — classifier for `in_stent_restenosis_flag`
314
+ from stent characteristics, lesion features, DM status (DES vs BMS
315
+ comparison)
316
+ - **Door-to-balloon prediction & quality improvement** — predict D2B
317
+ time from arrival pattern features; useful for NCDR ACTION quality
318
+ benchmarking
319
+ - **GRACE / TIMI risk score validation** — train ML to reproduce or
320
+ improve published risk models
321
+ - **DAPT duration optimization** — uplift modeling for prolonged vs
322
+ short DAPT given DAPT score, bleeding risk, stent type
323
+ - **MACE survival ML** — Cox / random survival forest on
324
+ `mace_event_flag` + `time_to_mace_days` with right-censoring
325
+ - **CABG graft patency prediction** — model `graft_patency_flag`
326
+ from LIMA usage, pump time, baseline LVEF
327
+ - **HFrEF post-MI prediction** — classifier for `lvef_hfref_flag`
328
+ from baseline + intervention features
329
+ - **Statin response prediction** — model `ldl_mg_dl_visit` from
330
+ baseline LDL + statin intensity (50% reduction for non-OMT vs
331
+ 15% for OMT in this generator)
332
+ - **PCSK9i candidate identification** — predict `pcsk9_inhibitor_flag`
333
+ prescribing patterns for population health intervention
334
+ - **SAQ-based outcome prediction** — train regressors for the 5 SAQ
335
+ domains (physical limitation, frequency, stability, treatment
336
+ satisfaction, QoL) from clinical features
337
+ - **Procedural success prediction** — classifier for
338
+ `procedural_success_flag` in PCI (post-PCI FFR ≥ 0.80) vs CABG
339
+ - **Cardio-renal-metabolic phenotyping** — unsupervised clustering
340
+ on comorbidity + biomarker patterns
341
+ - **ISCHEMIA / COURAGE cohort simulation** — filter to specific
342
+ eligibility criteria (stable angina, no LM disease, etc.) and
343
+ simulate trial cohorts
344
+
345
+ ---
346
+
347
+ ## Loading examples
348
+
349
+ ```python
350
+ from datasets import load_dataset
351
+
352
+ ds = load_dataset("xpertsystems/hccar005-sample", split="train")
353
+ print(ds.shape)
354
+ ```
355
+
356
+ ```python
357
+ import pandas as pd
358
+ from huggingface_hub import hf_hub_download
359
+
360
+ df = pd.read_parquet(hf_hub_download(
361
+ "xpertsystems/hccar005-sample", "hccar005_dataset.parquet",
362
+ repo_type="dataset",
363
+ ))
364
+
365
+ # Patient-level cohort distribution
366
+ print(df.drop_duplicates("patient_id")["cad_stage"]
367
+ .value_counts(normalize=True).round(3))
368
+ ```
369
+
370
+ ```python
371
+ # SYNTAX score → revascularization strategy
372
+ import pandas as pd
373
+ from huggingface_hub import hf_hub_download
374
+
375
+ df = pd.read_parquet(hf_hub_download(
376
+ "xpertsystems/hccar005-sample", "hccar005_dataset.parquet",
377
+ repo_type="dataset",
378
+ ))
379
+
380
+ patients = df.drop_duplicates("patient_id")
381
+
382
+ # Heart Team-style decision validation
383
+ syntax_tier = pd.cut(patients["syntax_score"],
384
+ bins=[0, 22, 32, 60],
385
+ labels=["Low (<23)", "Intermediate (23-32)", "High (≥33)"])
386
+ print(pd.crosstab(syntax_tier, patients["intervention_arm"], normalize="index").round(2))
387
+ ```
388
+
389
+ ```python
390
+ # DES vs BMS in-stent restenosis comparison
391
+ import pandas as pd
392
+ from huggingface_hub import hf_hub_download
393
+
394
+ df = pd.read_parquet(hf_hub_download(
395
+ "xpertsystems/hccar005-sample", "hccar005_dataset.parquet",
396
+ repo_type="dataset",
397
+ ))
398
+
399
+ # First-year PCI cohort
400
+ pci_v1 = df[(df["intervention_arm"].isin(["PCI_DES", "PCI_BMS"])) & (df["visit_number"] == 1)]
401
+ print("ISR rate by stent type:")
402
+ print(pci_v1.groupby("intervention_arm").agg(
403
+ n=("patient_id", "count"),
404
+ isr_rate_pct=("in_stent_restenosis_flag", lambda x: x.mean() * 100),
405
+ mean_stent_length=("stent_length_mm", "mean"),
406
+ procedural_success_pct=("procedural_success_flag", lambda x: x.mean() * 100),
407
+ ).round(2))
408
+ ```
409
+
410
+ ```python
411
+ # Seattle Angina Questionnaire (SAQ) by CCS class
412
+ import pandas as pd
413
+ from huggingface_hub import hf_hub_download
414
+
415
+ df = pd.read_parquet(hf_hub_download(
416
+ "xpertsystems/hccar005-sample", "hccar005_dataset.parquet",
417
+ repo_type="dataset",
418
+ ))
419
+
420
+ saq_cols = ["saq_physical_limitation", "saq_angina_frequency",
421
+ "saq_angina_stability", "saq_treatment_satisfaction",
422
+ "saq_quality_of_life"]
423
+ print("SAQ domains by CCS class (mean):")
424
+ print(df.groupby("angina_class_ccs")[saq_cols].mean().round(1))
425
+ ```
426
+
427
+ ```python
428
+ # MACE event analysis (aggregate to patient-level)
429
+ import pandas as pd
430
+ from huggingface_hub import hf_hub_download
431
+
432
+ df = pd.read_parquet(hf_hub_download(
433
+ "xpertsystems/hccar005-sample", "hccar005_dataset.parquet",
434
+ repo_type="dataset",
435
+ ))
436
+
437
+ # Per-patient any-MACE flag over follow-up
438
+ patient_outcomes = df.groupby("patient_id").agg(
439
+ any_mace=("mace_event_flag", "max"),
440
+ any_mortality=("mortality_flag", "max"),
441
+ cv_death=("cv_death_flag", "max"),
442
+ arm=("intervention_arm", "first"),
443
+ syntax=("syntax_score", "first"),
444
+ )
445
+ print("MACE rates by intervention arm:")
446
+ print(patient_outcomes.groupby("arm").agg(
447
+ n=("any_mace", "count"),
448
+ any_mace_pct=("any_mace", lambda x: x.mean() * 100),
449
+ mortality_pct=("any_mortality", lambda x: x.mean() * 100),
450
+ mean_syntax=("syntax", "mean"),
451
+ ).round(2))
452
+ ```
453
+
454
+ ---
455
+
456
+ ## Limitations and honest disclosures
457
+
458
+ This sample is calibrated for **structural fidelity, not bit-exact reproduction
459
+ of any specific CAD registry archive.** Specifically:
460
+
461
+ - **Visit-level outcomes (MACE, mortality, ISR, graft patency, readmission)
462
+ are FRESH RANDOM SAMPLES per visit**, NOT cumulative carry-forward. The
463
+ same patient can have `mace_event_flag=1` at visit 3 and `mace_event_flag=0`
464
+ at visit 7 (with the visit 3 event implicitly recovered from). For
465
+ patient-level event analysis, use `groupby('patient_id').max()` on
466
+ the binary outcome flags.
467
+ - **MACE per-visit rate (~13-14%) compounds over 10 visits to very high
468
+ cumulative rates** — patient-level any-MACE will exceed real-world
469
+ CAD cohort 5-year MACE (~15-25%). Disclosed; for absolute-rate
470
+ calibration use the full product or scale down per-visit hazard.
471
+ - **Imaging (echo LVEF, RWMA, CCTA, nuclear stress) is computed for ALL
472
+ visits regardless of clinical indication.** In real practice, serial
473
+ imaging is reserved for clinical change or pre-procedure planning.
474
+ Treat as "what the result would be if imaging were performed."
475
+ - **Patient baseline is FIXED at visit 1** (cad_stage, comorbidities,
476
+ intervention_arm, baseline lipids, baseline anatomy). The generator
477
+ does NOT model CAD progression to higher-stenosis or stage transitions
478
+ longitudinally. For genuine CAD progression ML, augment with a
479
+ trajectory model.
480
+ - **ACS events fire ONLY at visit 1** (the index visit). The generator
481
+ does NOT model NEW ACS events at later visits — every visit_number > 1
482
+ has `acs_type = 'None'`. For longitudinal ACS incidence ML, use the
483
+ full product or augment with a recurrent-event model.
484
+ - **Stent fields are populated ONLY at visit 1 for PCI patients.** They
485
+ are NOT carried forward to follow-up visits — `stent_type`, `stent_length_mm`,
486
+ `num_stents_deployed`, `post_pci_ffr` are all NaN at visits 2-10 even
487
+ for PCI patients. For longitudinal PCI follow-up modeling, join the
488
+ visit-1 stent data to all subsequent visits manually.
489
+ - **CABG fields similarly populated only at visit 1**, and the `Hybrid`
490
+ intervention arm goes through the PCI path in the generator (so
491
+ `cabg_grafts` is NaN for Hybrid patients despite the arm label
492
+ including "CABG").
493
+ - **The generator has a `hasattr(p, 'angina_class_ccs')` check** in the
494
+ imaging module (line 505) that ALWAYS returns False because `p` is a
495
+ dict (not an object with attributes). So `nuclear_sss` calculation
496
+ never incorporates CCS — it always falls through to the default
497
+ N(10, 6) distribution. Disclosed; if SSS-vs-CCS correlation matters
498
+ for your ML, augment.
499
+ - **eGFR uses a simplified formula** — the lambda
500
+ `creatinine = clip(9.5 / egfr, 0.5, 5.0)` (line 112) is the INVERSE
501
+ derivation (creatinine from eGFR, not eGFR from creatinine). It is
502
+ approximately correct (consistent with simplified CKD-EPI without
503
+ sex/age/race), but NOT the full published formula. For accurate eGFR
504
+ research, recompute from creatinine + age + sex + race using the
505
+ modern 2021 NKF-ASN refit.
506
+ - **HCCAR005 lacks racial/ethnic information** — the generator does
507
+ not assign race/ethnicity (unlike HCCAR001 / HCCAR003 / HCCAR004).
508
+ Disparities research will need augmentation.
509
+ - **GRACE score formula is simplified** — the generator uses
510
+ `grace = 20 + age*1.4 + killip*10 + (30 if STEMI) + ck*8`
511
+ (line 330) as an approximation, NOT the full Granger et al. 2003
512
+ logistic regression with all 8 published variables. Values are in
513
+ the published range [0, 372] but absolute calibration differs from
514
+ GRACE 2.0. Use for relative risk stratification, not absolute
515
+ in-hospital mortality probability.
516
+ - **Statin lipid effect is FIXED** at 50% LDL reduction for non-OMT
517
+ patients and 15% for OMT patients (line 382). Real-world response
518
+ varies widely (Rosuvastatin 40mg ~55%, Atorvastatin 80mg ~52%,
519
+ Pravastatin 20mg ~24%). The `statin_intensity` field (None / Low /
520
+ Moderate / High) is randomly assigned and NOT linked to the LDL
521
+ reduction magnitude. For statin response ML, augment with intensity-
522
+ specific effects.
523
+ - **PCSK9i prescribing is independent of LDL response** in the
524
+ generator. Real-world PCSK9i is reserved for patients failing to
525
+ reach LDL goals on maximally tolerated statin + ezetimibe. The
526
+ generator fires `pcsk9_inhibitor_flag` at 15% baseline rate if
527
+ LDL > 100, ignoring statin trial.
528
+ - **Time-to-MACE is a Weibull sample** with shape=1.8, scale=2000 days
529
+ (line 598), NOT linked to actual visit when MACE was flagged. Use
530
+ the visit-level `mace_event_flag` for incident analysis, not
531
+ `time_to_mace_days` for survival models.
532
+ - **CSV serialization converts None to NaN** when reading via
533
+ `pd.read_csv` default behavior. Use `keep_default_na=False` or work
534
+ with the Parquet file (which preserves nullable types correctly).
535
+ - **ISCHEMIA / COURAGE eligibility is NOT enforced** — the generator
536
+ produces a heterogeneous CAD cohort. Filter to your own inclusion
537
+ criteria for trial-replication ML.
538
+
539
+ The full HCCAR005 product addresses these by genuine CAD progression
540
+ modeling (stenosis evolution, stage transitions), longitudinal stent
541
+ carry-forward, recurrent ACS event modeling, full CKD-EPI 2021 formula,
542
+ race/ethnicity assignment with disparities encoding, intensity-specific
543
+ statin response curves, PCSK9i trial-stepped prescribing, and pre-built
544
+ scenario configs (ISCHEMIA replication, COURAGE invasive-vs-OMT,
545
+ FREEDOM DM-CAD, EXCEL left-main PCI-vs-CABG, BIOFLOW-V stent
546
+ comparison). Contact us for the licensed commercial release.
547
+
548
+ ---
549
+
550
+ ## Companion datasets
551
+
552
+ This is the fifth SKU in our **Healthcare / Cardiology** vertical. The
553
+ five-SKU set now covers the full cardiology clinical continuum:
554
+
555
+ - [**HCCAR001**](https://huggingface.co/datasets/xpertsystems/hccar001-sample)
556
+ Heart Failure Dataset — chronic HF with GDMT and devices
557
+ - [**HCCAR002**](https://huggingface.co/datasets/xpertsystems/hccar002-sample)
558
+ Acute MI Dataset — STEMI/NSTEMI/UA with serial troponin kinetics
559
+ - [**HCCAR003**](https://huggingface.co/datasets/xpertsystems/hccar003-sample)
560
+ Hypertension Dataset — longitudinal HTN cohort with ABPM, GDMT, MACE
561
+ - [**HCCAR004**](https://huggingface.co/datasets/xpertsystems/hccar004-sample)
562
+ Atrial Fibrillation Dataset — CHA2DS2-VASc/HAS-BLED, DOACs, ablation
563
+ - [**HCCAR005**](https://huggingface.co/datasets/xpertsystems/hccar005-sample)
564
+ Coronary Artery Disease Dataset (you are here) — full spectrum from
565
+ subclinical CAD through acute events through revascularization
566
+
567
+ **Pair HCCAR005 + HCCAR002** for acute-on-chronic CAD (HCCAR002 has the
568
+ serial troponin detail; HCCAR005 has the longitudinal trajectory).
569
+ **Pair HCCAR005 + HCCAR001** for ischemic cardiomyopathy progression.
570
+ **Pair HCCAR005 + HCCAR003** for HTN-driven CAD progression studies.
571
+
572
+ - [**Healthcare / Neurology**](https://huggingface.co/xpertsystems) (10 SKUs)
573
+ - [**Insurance & Risk**](https://huggingface.co/xpertsystems) (10 SKUs)
574
+ - [**Energy & Climate**](https://huggingface.co/xpertsystems) (8 SKUs)
575
+ - [**Manufacturing**](https://huggingface.co/xpertsystems) (10 SKUs)
576
+ - [**Oil & Gas**](https://huggingface.co/xpertsystems) (17 SKUs)
577
+
578
+ For the broader catalog, see https://huggingface.co/xpertsystems
579
+
580
+ ---
581
+
582
+ ## Citation
583
+
584
+ ```bibtex
585
+ @dataset{xpertsystems_hccar005_sample_2026,
586
+ author = {XpertSystems.ai},
587
+ title = {HCCAR005 Synthetic Coronary Artery Disease Dataset (Sample Preview)},
588
+ year = 2026,
589
+ publisher = {Hugging Face},
590
+ url = {https://huggingface.co/datasets/xpertsystems/hccar005-sample}
591
+ }
592
+ ```
593
+
594
+ ---
595
+
596
+ ## Contact
597
+
598
+ - **Web:** https://xpertsystems.ai
599
+ - **Email:** pradeep@xpertsystems.ai
600
+ - **Full product catalog:** Cardiology (5 SKUs), Neurology (10 SKUs),
601
+ Insurance & Risk (10 SKUs), Energy & Climate (8 SKUs), Manufacturing
602
+ (10 SKUs), Oil & Gas (17 SKUs), and more.
603
+
604
+ **Sample License:** CC-BY-NC-4.0 (Creative Commons Attribution-NonCommercial 4.0)
605
+ **Full product License:** Commercial — please contact for pricing.
606
+
607
+ **Important medical disclaimer:** This dataset contains SYNTHETIC patient
608
+ records only. No data was derived from any real patient, EHR archive,
609
+ or clinical registry. The dataset is intended for ML model development,
610
+ benchmarking, and education — NOT for clinical decision support, patient
611
+ counseling, or medical research conclusions. All clinical thresholds
612
+ (SYNTAX score tiers, D2B target, HFrEF definition, CCS classification,
613
+ revascularization criteria) are sourced from published guidelines;
614
+ users are responsible for verifying against current ACC/AHA/ESC/STS
615
+ guidelines for clinical applications.
hccar005_dataset.csv ADDED
The diff for this file is too large to render. See raw diff
 
hccar005_dataset.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36e069afc14860476b59cb0d9bbc3e6fb91970a8bcfe61fa657c1fb937a1066a
3
+ size 257420