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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- healthcare
|
| 7 |
+
- respiratory
|
| 8 |
+
- pulmonology
|
| 9 |
+
- pneumonia
|
| 10 |
+
- cap
|
| 11 |
+
- hap
|
| 12 |
+
- vap
|
| 13 |
+
- sepsis
|
| 14 |
+
- curb-65
|
| 15 |
+
- psi-score
|
| 16 |
+
- antibiotics
|
| 17 |
+
- synthetic-data
|
| 18 |
+
- ehr
|
| 19 |
+
- clinical
|
| 20 |
+
pretty_name: "HC-RES-003 Pneumonia Synthetic Dataset (Sample)"
|
| 21 |
+
size_categories:
|
| 22 |
+
- n<1K
|
| 23 |
+
task_categories:
|
| 24 |
+
- tabular-classification
|
| 25 |
+
- tabular-regression
|
| 26 |
+
- survival-analysis
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
# HC-RES-003 — Pneumonia Synthetic Dataset (Sample)
|
| 30 |
+
|
| 31 |
+
**XpertSystems.ai · Synthetic Data Factory · Respiratory Vertical**
|
| 32 |
+
|
| 33 |
+
The third SKU in the XpertSystems **Respiratory** vertical: a clinically detailed synthetic
|
| 34 |
+
pneumonia cohort spanning **Community-Acquired (CAP)**, **Hospital-Acquired (HAP)**,
|
| 35 |
+
**Ventilator-Associated (VAP)**, and **Healthcare-Associated (HCAP)** pneumonia. It covers organism
|
| 36 |
+
taxonomy & resistance (MRSA/MDR), full severity scoring (CURB-65, PSI/Fine, SMART-COP, SOFA,
|
| 37 |
+
APACHE-II, NEWS2, ARDS Berlin), vitals, labs & ABG, respiratory support (HFNC/NIV/IMV/ECMO,
|
| 38 |
+
lung-protective ventilation), guideline-based antibiotic regimens, comorbidities, and
|
| 39 |
+
hospitalization outcomes (ICU, mortality, complications, readmission, cost).
|
| 40 |
+
|
| 41 |
+
This repository contains a **500-row, single-seed sample**. The full commercial product scales to
|
| 42 |
+
20,000+ patients with CSV / Parquet / JSON delivery.
|
| 43 |
+
|
| 44 |
+
- **SKU:** HC-RES-003
|
| 45 |
+
- **Sample size:** 500 patients × 157 columns
|
| 46 |
+
- **License (sample):** CC-BY-NC-4.0 — commercial license available for the full product
|
| 47 |
+
- **Contact:** pradeep@xpertsystems.ai · https://xpertsystems.ai
|
| 48 |
+
|
| 49 |
+
---
|
| 50 |
+
|
| 51 |
+
## Validation
|
| 52 |
+
|
| 53 |
+
This sample passes XpertSystems Grade **A+** validation (overall **10.000 / 10**) with
|
| 54 |
+
deterministic reproduction across all six canonical seeds `[42, 7, 123, 2024, 99, 1]`.
|
| 55 |
+
|
| 56 |
+
Validation philosophy: **structural identities over distribution-fit tests** — including the
|
| 57 |
+
VAP > CAP mortality gradient and the procalcitonin bacterial-vs-viral separation as structural
|
| 58 |
+
floors. This engine also passes its own built-in ~15-check benchmark suite (CAP/HAP/VAP
|
| 59 |
+
distribution, PSI Class-V mortality, CURB-65=0 mortality, ICU/intubation rates, ARDS PF ratio).
|
| 60 |
+
|
| 61 |
+
### Calibration anchors
|
| 62 |
+
|
| 63 |
+
| Metric | Sample value | Target range | Source |
|
| 64 |
+
|---|---|---|---|
|
| 65 |
+
| CAP prevalence | 67.4% | 60–71% | ATS/IDSA 2019 (~60-70%) |
|
| 66 |
+
| HAP prevalence | 22.0% | 18–28% | Hospital-acquired epidemiology |
|
| 67 |
+
| VAP prevalence | 7.2% | 5–11% | Ventilator-associated epidemiology |
|
| 68 |
+
| ICU admission rate | 21.8% | 15–30% | ATS/IDSA (~18-26%) |
|
| 69 |
+
| Intubation rate | 22.2% | 14–27% | VAP-adjusted |
|
| 70 |
+
| 30-day mortality | ~8.8% | 5–12% | Overall pneumonia mortality |
|
| 71 |
+
| 30-day readmission | ~16.5% | 13–24% | CMS HRRP (~18%) |
|
| 72 |
+
| Median hospital LOS | 4.1 days | 3.5–8 | CAP/HAP LOS literature |
|
| 73 |
+
| **VAP − CAP mortality gradient** | **+0.11** | **≥0.03** | Severity ordering (physiology) |
|
| 74 |
+
| **VAP > CAP mortality holds** | **yes** | **boolean** | Severity ordering |
|
| 75 |
+
| **PCT bacterial / viral ratio** | **23.5×** | **≥3×** | Procalcitonin biomarker separation |
|
| 76 |
+
| **Column count** | **157** | **≥150** | Schema completeness (10 modules) |
|
| 77 |
+
|
| 78 |
+
---
|
| 79 |
+
|
| 80 |
+
## Schema highlights by module (157 columns)
|
| 81 |
+
|
| 82 |
+
**Demographics.** Bimodal age (pediatric + adult/elderly), sex, race, insurance, region, nursing-home
|
| 83 |
+
residence, prior 90-day hospitalization.
|
| 84 |
+
|
| 85 |
+
**Classification.** Pneumonia type (CAP/HAP/VAP/HCAP), etiology category, causative organism (type-
|
| 86 |
+
specific taxonomies), MRSA & MDR flags, ICD-10 & SNOMED, chest X-ray finding, procalcitonin, CRP,
|
| 87 |
+
WBC, blood culture, urine antigen, time-to-antibiotics.
|
| 88 |
+
|
| 89 |
+
**Vitals.** Temperature, HR, RR, SBP/DBP/MAP, SpO2, GCS, BMI, plus fever/hypotension/hypoxemia/
|
| 90 |
+
tachypnea flags.
|
| 91 |
+
|
| 92 |
+
**Severity scores.** CURB-65 (+ component flags), PSI/Fine score & risk class, SMART-COP, SOFA (6
|
| 93 |
+
subscores + total), APACHE-II, NEWS2, PF ratio, ARDS Berlin category, sepsis & septic-shock flags,
|
| 94 |
+
ATS major criteria, final severity.
|
| 95 |
+
|
| 96 |
+
**Laboratory.** CBC, neutrophil/lymphocyte ratio, electrolytes, BUN/urea, creatinine, glucose,
|
| 97 |
+
albumin, lactate, D-dimer, ferritin, IL-6, troponin, plus AKI/thrombocytopenia/hyponatremia/
|
| 98 |
+
hyperglycemia flags.
|
| 99 |
+
|
| 100 |
+
**ABG.** FiO2, PaO2, PaCO2, pH, HCO3, lactate, SaO2.
|
| 101 |
+
|
| 102 |
+
**Respiratory support.** O2 delivery device (Room Air → IMV-ECMO), intubation timing, ventilator
|
| 103 |
+
days, lung-protective settings (tidal volume, PEEP, driving/plateau pressure), prone positioning,
|
| 104 |
+
ECMO, NIV, HFNC, spontaneous breathing trial, extubation success, reintubation.
|
| 105 |
+
|
| 106 |
+
**Antibiotics.** Guideline-based empiric regimen, primary & secondary agents (dose/freq/route/
|
| 107 |
+
duration), PCT-guided de-escalation, oral switch, corticosteroids (indication, dexamethasone dose),
|
| 108 |
+
antiviral/antifungal, vasopressors, C. diff, serial procalcitonin.
|
| 109 |
+
|
| 110 |
+
**Comorbidities.** COPD, heart failure, diabetes, CKD, CAD, immunosuppression, HIV, malignancy,
|
| 111 |
+
smoking, alcohol, frailty, vaccinations, aspiration risk.
|
| 112 |
+
|
| 113 |
+
**Outcomes.** ICU admission & LOS, hospital LOS, inpatient/30d/90d mortality, time to death,
|
| 114 |
+
complications (pleural effusion, empyema, AKI, new AF, bacteremia), discharge disposition, 30/90-day
|
| 115 |
+
readmission, time to clinical stability, total cost.
|
| 116 |
+
|
| 117 |
+
---
|
| 118 |
+
|
| 119 |
+
## Files
|
| 120 |
+
|
| 121 |
+
- `hc_res_003_sample.csv` — 500-patient sample (157 columns)
|
| 122 |
+
- `generate_sample_dataset_hc_res_003.py` — reproducible generator + validation harness
|
| 123 |
+
- `validation_report.json` / `validation_report.md` — full scorecard
|
| 124 |
+
- `sweep_summary.json` — 6-seed determinism results
|
| 125 |
+
|
| 126 |
+
## Loading
|
| 127 |
+
|
| 128 |
+
```python
|
| 129 |
+
import pandas as pd
|
| 130 |
+
df = pd.read_csv("hc_res_003_sample.csv")
|
| 131 |
+
print(df[["patient_id","pneumonia_type","severity_final","curb65_score",
|
| 132 |
+
"psi_risk_class","icu_admission_flag","mortality_30d_flag"]].head())
|
| 133 |
+
```
|
| 134 |
+
|
| 135 |
+
```python
|
| 136 |
+
from datasets import load_dataset
|
| 137 |
+
ds = load_dataset("csv", data_files="hc_res_003_sample.csv")
|
| 138 |
+
```
|
| 139 |
+
|
| 140 |
+
## Use cases
|
| 141 |
+
|
| 142 |
+
- Pneumonia severity triage (CURB-65 / PSI / SMART-COP score replication & calibration)
|
| 143 |
+
- Mortality and ICU-admission risk prediction
|
| 144 |
+
- Antibiotic-stewardship and PCT-guided de-escalation modeling
|
| 145 |
+
- Bacterial-vs-viral etiology classification from biomarkers
|
| 146 |
+
- ARDS / respiratory-failure progression and ventilation-outcome modeling
|
| 147 |
+
- Readmission-risk and cost modeling
|
| 148 |
+
- ML training where real pneumonia EHR data is PHI-restricted
|
| 149 |
+
|
| 150 |
+
---
|
| 151 |
+
|
| 152 |
+
## Honest limitations & disclosed generator behavior
|
| 153 |
+
|
| 154 |
+
This is a strongly calibrated single-table engine (passes its own ~15-check suite; correct severity
|
| 155 |
+
and biomarker gradients). Standard caveats:
|
| 156 |
+
|
| 157 |
+
1. **Cross-sectional snapshot.** Unlike the asthma (HC-RES-001) and COPD (HC-RES-002) SKUs, this is a
|
| 158 |
+
single admission-level table — there is no longitudinal trajectory or per-event companion table.
|
| 159 |
+
Each row is one pneumonia episode.
|
| 160 |
+
2. **Severity proxy drives correlated modules.** Vitals, labs, and ABG are generated from a single
|
| 161 |
+
0–1 severity proxy (seeded by pneumonia type), so they co-move cleanly with severity but encode
|
| 162 |
+
somewhat tighter within-patient coupling than messy real-world data.
|
| 163 |
+
3. **Some comorbidity/complication flags are marginal draws.** Drawn at fixed (age-adjusted where
|
| 164 |
+
relevant) prevalences rather than jointly conditioned on the full clinical picture.
|
| 165 |
+
4. **Mortality is a calibrated Bernoulli.** `inpatient_mortality_flag` is drawn on a severity- and
|
| 166 |
+
type-derived probability; time-to-death is an exponential rather than a fully integrated survival
|
| 167 |
+
model. Small CURB-65=0 subsets can show noisy mortality at low n (converges to target at scale).
|
| 168 |
+
|
| 169 |
+
General caveat: cross-field correlations beyond those explicitly modeled may be weaker than in real
|
| 170 |
+
cohorts. **Not for clinical decision-making** — research/development use only.
|
| 171 |
+
|
| 172 |
+
---
|
| 173 |
+
|
| 174 |
+
## Commercial product comparison
|
| 175 |
+
|
| 176 |
+
| Capability | This sample | Full HC-RES-003 product |
|
| 177 |
+
|---|---|---|
|
| 178 |
+
| Patients | 500 | 20,000+ (configurable) |
|
| 179 |
+
| Seeds / cohorts | 1 | Multi-seed, reproducible |
|
| 180 |
+
| Formats | CSV | CSV + Parquet + JSON |
|
| 181 |
+
| Comorbidity model | Marginal draws | Jointly conditioned |
|
| 182 |
+
| Mortality | Cross-sectional Bernoulli | Integrated survival model |
|
| 183 |
+
| License | CC-BY-NC-4.0 | Commercial |
|
| 184 |
+
| Support & SLA | — | Included |
|
| 185 |
+
|
| 186 |
+
Full product, custom cohorts, or other respiratory SKUs (asthma, COPD, ILD, pulmonary hypertension,
|
| 187 |
+
sleep apnea): **pradeep@xpertsystems.ai**
|
| 188 |
+
|
| 189 |
+
---
|
| 190 |
+
|
| 191 |
+
## Citation
|
| 192 |
+
|
| 193 |
+
```bibtex
|
| 194 |
+
@dataset{xpertsystems_hc_res_003_2026,
|
| 195 |
+
title = {HC-RES-003: Pneumonia Synthetic Dataset},
|
| 196 |
+
author = {XpertSystems.ai},
|
| 197 |
+
year = {2026},
|
| 198 |
+
publisher = {XpertSystems.ai Synthetic Data Factory},
|
| 199 |
+
url = {https://xpertsystems.ai},
|
| 200 |
+
note = {Synthetic; CC-BY-NC-4.0 (sample). Calibrated to: ATS/IDSA 2019 CAP
|
| 201 |
+
guidelines; PSI/Fine score (Fine et al. 1997, NEJM); CURB-65 (Lim et al.
|
| 202 |
+
2003, Thorax); SMART-COP (Charles et al. 2008, CID); ARDSNET (NEJM 2000)
|
| 203 |
+
and Berlin ARDS definition; RECOVERY trial (Horby et al. 2021, NEJM); CDC
|
| 204 |
+
NHSN HAP/VAP surveillance; CMS HRRP readmission benchmarks; Surviving Sepsis
|
| 205 |
+
Campaign 2021. Third SKU in the XpertSystems Respiratory vertical.}
|
| 206 |
+
}
|
| 207 |
+
```
|
| 208 |
+
|
| 209 |
+
*Synthetic data generated by XpertSystems.ai. Not derived from real patient records.
|
| 210 |
+
Not for clinical use.*
|
hc_res_003_sample.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|