MedFlow: Class-Aware Multi-Scale Generation for Medical Time-Series Synthesis

Yanhao Huang, Shibo Feng, Wanjin Feng, Peilin Zhao, Chunyan Miao
9/4/2026
cs.AI
diffusion-flow

No confident code implementation found for this paper.

Abstract

Synthetic medical time-series generation can alleviate data scarcity and support the development of reliable clinical prediction models. However, existing methods mainly focus on matching the overall distribution and temporal dynamics of real data, which does not necessarily ensure strong downstream utility on imbalanced medical datasets.

Show full abstract

Clinically informative patterns often occur at heterogeneous temporal scales, while rare minority-class characteristics can be obscured by dominant population patterns. To address these challenges, we propose MedFlow, a class-aware multi-scale flow matching framework for medical time-series synthesis. MedFlow employs a vector-quantized multi-scale tokenizer to represent medical sequences at complementary temporal resolutions, capturing both coarse clinical trends and fine-grained dynamics. We further introduce Token Marginal Guidance, which incorporates class-conditional token statistics directly into the flow matching process to steer generation toward class-specific regions of the learned tokens. This mechanism strengthens minority-class patterns, while preserving the global and tail distributions of real data. Experiments on four public datasets covering electronic health records, EEG, and ECG signals demonstrate that MedFlow consistently outperforms recent state-of-the-art diffusion-based baselines across downstream prediction tasks. On average, it improves AUPRC by 5.8%, reduces Context-FID by 88.6%, and achieves 3.8$\times$ higher sampling throughput.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{huang2026medflow,
  title  = {MedFlow: Class-Aware Multi-Scale Generation for Medical Time-Series Synthesis},
  author = {Yanhao Huang and Shibo Feng and Wanjin Feng and Peilin Zhao and Chunyan Miao},
  year   = {2026},
  eprint = {2609.04804},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.04804v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.04804.svg)](https://codeofpaper.com/paper/2609.04804)

Discussion