Breaking Data Barriers in Medical Diagnosis with MSDGD Framework based on Gaussian Diffusion Generation

Fengwei Jia · Fengyuan Jia · Huale Li · Shuhan Qi · Hongli Zhu*
Tsinghua Shenzhen International Graduate School, Tsinghua University · Anhui University of Technology · Northwestern Polytechnical University · Harbin Institute of Technology (Shenzhen) · *Corresponding: [email protected]
Information Processing and Management 62 (2025) 104130 · DOI 10.1016/j.ipm.2025.104130 · Medical service data · categorical data modeling · diffusion framework

The MSD Data Barrier

  • MSD drives service research and medical decisions — but high-quality data is scarce, especially for rare conditions
  • Privacy restricts sharing; MSD is manually input and mostly discrete categories with implicit constraints between columns
  • EHR generators don't transfer: One-Hot loses information for rare categories; low-dimensional rows hide implicit features
  • Traditional methods transform a row into a vector: low-dimensional space cannot capture implicit features, and fixed column order restricts the model's perspective

Two Research Hypotheses

  • Intra-attention similarity (columns): discrete data in the same category region follows the dataset's fixed probability — e.g., gender distribution should reflect the region's population
  • Inter-attention similarity (rows): rows of the same domain have comparable distributions — e.g., cardiovascular system columns imply coronary-related subcategories
  • These justify CPD / FC (column) and FR / ER / EC (row) metrics in the experiments

Three Embedding Modules

  • ParentChild: parent code sits near the middle of its children's range — hierarchy preserved numerically, constraints enforced across columns
  • RamCol: windowed random column rearrangement — implicit inter-column relationships become neighbors
  • DimTrans: embed each column, repeat across C channels → 3D tensor [C, M, M] — three learning features merged
3
embedding modules: ParentChild · RamCol · DimTrans
3
datasets: SimTable1 · SimTable2 · real CDI
9
errors on 58,003-row real data

Datasets & Metrics

Table 1 · SimTable1 (no constraints) · SimTable2 (8×4 constraints) · CDI (15 columns, <100 categories)
  • Metrics: CPD ↓ · FC / FR ↑ (Pearson column / row fidelity) · ER / EC ↓ (subcategory error rate / count)

MSDGD Framework

Fig. 1 · ParentChild (orange) + RamCol (blue) + DimTrans (green) + diffusion training (MLP & UNet)
  • The rearranged 3D tensor feeds the diffusion model; post-processing restores tables by weighted column-average
  • M = 256 in practice: an M×W segment is extracted per iteration and converted to a [1,M,M] tensor for training

MSD-UNet + Diffusion Loop

Fig. 2 · Illustration of MSD-UNet
  • Encoders 1–5 → layer extractor → fusion layer → decoders 1–5, with skip connection over the compressed matrix
  • Forward Gaussian diffusion adds noise; a 3-layer MLP models column-relationship trends between diffusion steps; the UNet denoises

Real CDI: 97.57% Error Reduction

Table 4 · Performance metrics on the real CDI dataset
  • MSDGD: CPD 0.0053 · FC 0.8677 · FR 0.8201 · ER 0.0094 · EC 9
  • Gaussian Copula ER 0.5251 (39,460 errors) · CTGAN 0.6238 · TVAE 0.1399 (8,113) · DDPM variants 0.1573–0.2110
  • FC 0.8677 vs best DDPM variant 0.9196 (−5.64%) — a balance of representativeness and uniqueness

Against LLM Generators

Table 5 · Performance compared with LLMs
  • ChatGPT-o1: ER 0.3343 (321 errors) · ChatGLM4.0 0.4145 · LLaMA 3.3 0.3541 · Med-PaLM 2 0.2135 (301)
  • Domain-tailored generation beats scale: 33× fewer errors than the closest LLM, with full constraint control
  • Med-PaLM 2 performs well on accuracy (low ER/EC) but the weakest overall constraint consistency — LLM outputs lack controllability

Takeaways

  • 1. First diffusion-based automation of MSD input modeling — authentic, reliable, diverse medical tables
  • 2. Hierarchy encoding + column shuffling + 3D lifting solve what One-Hot and Intern encodings cannot
  • 3. Limitations: diffusion trains longer than GANs; future work on scalability, case studies, NaN/outlier feature engineering
  • Practical value: energize medical decision systems, improve analytical rigor, support emergency-department AI training while protecting patient privacy
TAKEAWAYS
1. ParentChild + RamCol + DimTrans feed a UNet diffusion for categorical medical tables
2. 97.57% error reduction on real CDI data — only 9 errors across 15 columns
3. 33× fewer errors than the best LLM generator, with full constraint control
Jia, Jia, Li, Qi & Zhu (2025). Information Processing and Management 62, 104130. DOI 10.1016/j.ipm.2025.104130 — figures reprinted from the original paper for academic presentation.