Figures
Abstract
Class imbalance and limited minority-class samples remain major challenges for developing reliable clinical diagnostic models, as insufficient observations often fail to capture complex minority-class distributions. Existing augmentation methods either rely on heuristic interpolation or suffer from instability when learning sparse and heterogeneous medical tabular data. This study proposes IFC-HFlowVAE, an iterative feedback and consensus framework built upon a flow-enhanced heterogeneous variational autoencoder for minority-class data generation. The proposed framework first models mixed-type clinical attributes through HFlowVAE and then introduces a self-circulating refinement strategy to progressively improve generated samples. To alleviate degradation during iterative refinement, SMOTE-generated samples are incorporated as structural references, followed by a localized GMM-based refinement procedure that guides samples toward more representative minority-class regions. Comprehensive experiments on seven clinical tabular datasets demonstrate that IFC-HFlowVAE improves downstream classification performance compared with existing augmentation approaches. Furthermore, fidelity analyses show that the proposed framework better preserves challenging minority-class characteristics, particularly skewed and multimodal numerical distributions.
Citation: Yuwen L, Chen S (2026) IFC-HFlowVAE: A self-enhancing generative framework with structural anchoring for imbalanced clinical data augmentation. PLoS One 21(9): e0357260. https://doi.org/10.1371/journal.pone.0357260
Editor: Zeheng Wang, Commonwealth Scientific and Industrial Research Organisation, AUSTRALIA
Received: March 8, 2026; Accepted: August 15, 2026; Published: September 3, 2026
Copyright: © 2026 Yuwen, Chen. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All relevant data and major related source code used in this study are publicly available. The datasets used for experiments were obtained from the UCI Machine Learning Repository and other open-access platforms, as listed below. The source code for IFC-HFlowVAE and the associated experimental pipeline is available at: https://github.com/JessieLu007/IFC-HFlowVAE 1. Breast Cancer Coimbra (BCC): https://archive.ics.uci.edu/dataset/451/breast+cancer+coimbra 2. PIMA Diabetes (PIMA): https://github.com/jbrownlee/Datasets, (pima-indians-diabetes.csv); it was originally curated by the National Institute of Diabetes and Digestive and Kidney Diseases and released under a CC0: Public Domain license. In case this url doesn’t work, we also include the csv version of the original data as Supporting Information (S1 Dataset). 3. TCGA-InfoWithGrade (TCGA): https://archive.ics.uci.edu/dataset/759/glioma+grading+clinical+and+matation+features+dataset 4. Thyroid Differentiation (THY): https://archive.ics.uci.edu/dataset/915/differentiated+thyroid+cancer+recurrence 5. Diabetes Risk Prediction (DRP): https://archive.ics.uci.edu/dataset/529/early+stage+diabetes+risk+prediction+dataset 6. Framingham (FRM): https://www.kaggle.com/aasheesh200/datasets 7. Hepatitis (HEP): https://archive.ics.uci.edu/dataset/46/hepatitis.
Funding: The author(s) received no specific funding for this work.
Competing interests: The authors have declared that no competing interests exist.
Introduction
The rapid digitization of healthcare has created new opportunities for automated diagnosis and prognostic modeling. In high-stakes scenarios such as diabetes management, where prevalence is projected to reach 9.7% by 2030 [1], reliable screening systems are essential for improving clinical efficiency. Recent advances in medical AI have demonstrated strong capabilities in extracting meaningful representations from complex medical data, particularly in image-based tasks such as segmentation and classification [2–4]. However, these approaches are not directly applicable to heterogeneous tabular data, where class imbalance and diverse attribute types remain major challenges [5]. Although imbalance is traditionally regarded as a sample scarcity problem [6], recent studies indicate that small and imbalanced clinical datasets impose fundamental difficulties on standard machine learning models [7]. We refer to this limitation as structural overfitting, where insufficient minority representation prevents models from learning discriminative pathological patterns and causes the minority manifold to be biased toward the majority distribution [8]. Such degradation is particularly severe when class overlap exists in clinical tabular data [9–12].
Traditional augmentation approaches, such as SMOTE and its variants [13–15], alleviate imbalance through interpolation-based sample generation. However, these heuristic strategies may introduce unrealistic synthetic patterns and increase sample density in overlapping regions [16,17]. Deep Generative Models (DGMs), including VAEs [18,19] and GAN-based models [20,21], provide a promising alternative by learning nonlinear data distributions. VAEs have also demonstrated potential in clinical applications such as survival prediction [22]. Nevertheless, DGMs often suffer from posterior collapse and mode dropping when modeling sparse and high-dimensional clinical tabular data [23]. Normalizing Flows (NF) [24] have therefore been introduced to enhance latent distribution flexibility by transforming simple priors into more expressive distributions [25,26]. Moreover, hybrid approaches such as SMOTified-GAN [27] and SmoteGAN [28] demonstrate that combining heuristic augmentation with generative modeling can improve training stability and generation quality [29].
Despite these advances, iterative generative refinement remains challenging. Recursive training can improve distribution modeling but may also introduce self-reinforcing errors, a phenomenon described as Model Autophagy Disorder (MAD) [30]. Such degradation may gradually reduce diversity and cause generated distributions to deviate from the original data manifold [31,32]. Existing global modeling approaches, including CTGAN [20], TabDDPM [33], and density-based TabKDE [34], generally model the entire distribution without explicitly considering local pathological structures. Therefore, effective iterative generation requires mechanisms that preserve structural information while enabling local distribution refinement.
In this work, we propose IFC-HFlowVAE (Iterative Feedback & Consensus framework based on Heterogeneous Flow-enhanced -VAE). The framework introduces structural anchors into generative training by incorporating SMOTE-generated samples into an augmented reference set, which provides additional guidance for iterative optimization. Furthermore, a GMM-based divide-and-conquer refinement strategy [35] is employed to capture local sub-cluster characteristics. This design is motivated by the intuition that localized modeling can reduce distribution complexity within homogeneous regions [36], and its effectiveness is evaluated empirically through fidelity assessment and downstream classification performance.
The main contributions of this work are summarized as follows:
- Framework Novelty: We propose the IFC-HFlowVAE framework, which integrates heuristic structural guidance with deep generative modeling to alleviate structural overfitting and improve minority-class representation.
- Stability Mechanism: We introduce an augmented reference set and a Weight-Progressive Feedback Loop to stabilize iterative training and reduce distribution degradation during recursive refinement.
- Heterogeneous HFlow-VAE: We develop a heterogeneous Flow-enhanced
-VAE architecture that improves latent distribution modeling while maintaining consistency between numerical and categorical attributes in medical tabular data.
- Local Refinement: We incorporate a GMM-based refinement strategy to model local pathological sub-clusters and enhance downstream classification performance through more representative synthetic samples.
Materials and methods
Clinical datasets and preprocessing
Seven clinical tabular datasets were used to evaluate IFC-HFlowVAE: Breast Cancer Coimbra (BCC), PIMA Diabetes (PIMA, see S1 Dataset), TCGA-InfoWithGrade (TCGA), Thyroid Differentiation (THY), Diabetes Risk Prediction (DRP), Framingham (FRM), and Hepatitis (HEP). The datasets were collected from the UCI Machine Learning Repository (BCC, TCGA, THY, DRP, and HEP) and Kaggle (PIMA and FRM).
The selected datasets cover diverse clinical tabular characteristics, including different attribute compositions, sample sizes, feature dimensions, and imbalance ratios. According to their dominant attribute types, datasets are categorized as numerical, categorical, or mixed-type, with detailed statistics summarized in Table 1. In all experiments, the proposed oversampling strategy targets the patient class for synthetic sample generation, regardless of its original class proportion.
The IFC iterative feedback framework
The IFC framework generates synthetic minority-class samples for imbalanced clinical tabular data through an iterative feedback process. As illustrated in Fig 1, the framework consists of two sequential components: a self-circulating generation process based on a growing reference pool and a cluster-aware refinement process for localized sampling.
Given the minority training set , IFC first constructs an initial prior pool P using either bootstrap resampling or SMOTE-based interpolation. This prior pool provides the starting reference samples for HFlowVAE training. The generator then performs multiple self-circulating stages, where each stage combines the original minority samples with weighted samples from the accumulated generation pool. The newly generated samples are added back into this pool and used as references for subsequent stages. In this work, three generation stages are explored, producing intermediate synthetic sets S1, S2, and S3.
After the global generation process, IFC applies a cluster-aware refinement procedure. The latent representations of minority samples are partitioned using Gaussian Mixture Model (GMM) clustering, and the generator is fine-tuned within each cluster to model local characteristics. Finally, synthetic samples are generated from each refined cluster according to the corresponding cluster proportions.
The following subsections provide detailed descriptions of the self-circulating feedback evolution and cluster-aware localized refinement strategies.
Self-circulating feedback evolution.
The self-circulating process shown in Fig 1 is designed to iteratively update the reference pool and improve the generated sample quality through multiple training stages. Given the minority training set , the required number of synthetic samples
is adaptively determined according to the imbalance ratio (
):
This strategy achieves approximate class balancing under severe imbalance while avoiding excessive synthetic expansion when the original class distribution is relatively balanced.
The evolution process begins with the construction of an initial prior pool P from the minority samples. Depending on the selected prior type, P is generated using either bootstrap resampling or SMOTE-based interpolation. This prior pool provides a structure-preserving initialization that guides the first-stage HFlowVAE training toward the support region of the observed minority distribution.
During each iterative stage, the training set is constructed by combining the original minority samples with a weighted subset of the accumulated candidate pool:
where denotes the growing reference pool containing the prior samples and outputs from previous stages. The weight vector
controls the contribution of different generations at stage i. After training, the newly generated samples
are appended to
and used as additional references in subsequent iterations.
Through this self-circulating mechanism, IFC gradually shifts the learning focus from heuristic initialization toward the non-linear manifold captured by HFlowVAE while maintaining consistency with the original minority distribution. In this study, the framework is instantiated with three iterative stages (). The complete procedure is described in Self-Circulating Generation Algorithm 1.
Algorithm 1 IFC Self-Circulating Generation (General T-Stage Form)
Require: Real minority training set (
), validation set
, prior type
, number of stages T, weight schedule
, where
is an i-dimensional probability vector (i.e.,
)
Ensure: Final-stage generator
1: ▷ resampling or SMOTE, |P|=N
2: ▷ growing pool of candidate sources, index 0
3: for i = 1 to T do
4: ▷
has
components summing to 1
5: ▷ Train HFlowVAE
6:
7: ▷ append this stage’s output to the pool
8: end for
9: return
Cluster-aware localized refinement.
After global self-circulating generation, IFC performs cluster-aware refinement to preserve local minority structures, as illustrated in Fig 1. The encoder of the pre-trained HFlowVAE is first used to obtain latent representations of minority samples, which are then partitioned into K clusters using a Gaussian Mixture Model (GMM). Each cluster represents a local minority sub-distribution, enabling IFC to capture heterogeneous feature combinations that may be smoothed during global generation.
For each cluster, the global HFlowVAE is fine-tuned using cluster-specific samples with warm-start initialization:
The refined cluster-specific generators subsequently generate synthetic samples according to the proportion of each cluster, and all generated subsets are aggregated as the final synthetic minority set. This localized refinement strategy allows IFC to maintain global distribution consistency while enhancing the representation of minority substructures. The detailed procedure is provided in Cluster-Aware Fine-Tuning Algorithm 2.
Algorithm 2 Cluster-Aware Fine-Tuning and Ratio-Based Sampling
Require: Base generator ,
,
, max clusters
, target synthetic count nfinal
Ensure: Synthetic minority set Xsyn
1: ▷ latent means
2:
3: if then
4: return ▷ skip fine-tuning
5: end if
6: ▷ diagonal covariance
7:
8: for k = 1 to K do
9:
10:
11:
12: end for
13:
14: return Xsyn
HFlowVAE: A Heterogeneous flow-augmented VAE for mixed-type clinical data
HFlowVAE is a heterogeneous variational autoencoder designed for mixed-type clinical tabular data. It integrates attribute-specific encoding and decoding with Normalizing Flow-based latent refinement to improve the flexibility of latent representation learning. The overall architecture of HFlowVAE is illustrated in Fig 2.
Heterogeneous encoding and decoding. Numerical and categorical attributes are processed through separate encoding branches. Numerical variables are transformed using a learnable tokenizer, while categorical variables are mapped into embedding representations. The resulting representations are concatenated and fed into an encoder MLP to obtain the posterior parameters and
.
The decoder reconstructs different attribute types using dedicated output heads. Numerical attributes are recovered through a numerical reconstruction head, while categorical attributes are reconstructed through categorical classification heads. The corresponding reconstruction losses are optimized separately according to attribute types.
Normalizing Flow latent refinement. To relax the Gaussian posterior assumption of standard VAE, HFlowVAE applies Planar Normalizing Flow [37] after the reparameterization step. The latent variable is iteratively transformed as:
where ,
, and
are learnable parameters. The Jacobian correction term is incorporated into the variational objective:
The resulting flow-based latent distribution is used in the variational objective.
Training objective. The training objective jointly optimizes heterogeneous attribute reconstruction and latent regularization. Numerical and categorical attributes are reconstructed using mean squared error (MSE) and cross-entropy losses, respectively. To automatically balance the contribution of different attribute types, the reconstruction weights are learned through homoscedastic uncertainty weighting. The final objective is formulated as:
where and
denote adaptive weights derived from homoscedastic uncertainty estimation, and
controls the strength of latent regularization.
represents the KL divergence between the flow-enhanced posterior distribution and the prior distribution.
Experimental setup
Baseline methods and classifiers.
IFC-HFlowVAE is compared with representative baselines covering diverse generative paradigms for tabular data synthesis, including interpolation-based oversampling (SMOTE [13]), deep generative models (CTGAN and TVAE [20]), diffusion-based approaches (TabDDPM [33] and Forest Diffusion [38]), and non-parametric density estimation (TabKDE [34]). These methods provide comprehensive comparisons across classical augmentation, neural generative modeling, diffusion processes, and statistical distribution estimation. A summary of the baseline methods and their corresponding generation paradigms is provided in Table 2.
The robust utility of the resulting synthetic samples is verified using three representative classifiers: Linear Support Vector Classifier (LinearSVC), Multi-Layer Perceptron (MLP), and extreme gradient boosting(XGBoost). These classifiers represent kernel-based, neural-based, and ensemble-based learning paradigms, respectively, allowing us to evaluate the classifier-agnostic quality of the generated manifolds. Due to space constraints, classifier names are abbreviated in the result tables, where SVC refers to LinearSVC and XGB refers to XGBoost.
Implementation details.
The base HFlowVAE hyperparameters (token/latent dim = 16, hidden widths = 128/128, linear numeric tokenizer, planar flow with K = 2 and KL correction enabled, with 50 warmup steps and free bits = 0.02, batch size = 64, homoscedastic uncertainty weighting, quantile transform, and ordinal encoding) were fixed. Only the changes shown in Table 3 were applied during fine-tuning.
We employed stratified K-fold cross-validation, with K = 3 for datasets with fewer than 300 samples and K = 5 otherwise, repeated over five random seeds (42, 456, 1024, 2026, 3407). For each fold, one fold was held out as the test set, and the remaining folds were further split into training (85%) and validation (15%) sets. All preprocessing steps were fitted exclusively on the training split of each fold to prevent data leakage. Early stopping was monitored on the validation set with a progress window of 5 epochs and a minimum improvement
; if the validation set contained fewer than 5 samples, a fallback threshold was applied. The PQ threshold
was set to 1.0 and the EMA rate
to 0.3.
The self-circulating process consists of three progressive stages (v1–v3) as illustrated in Fig 1. At each stage, the weight vector determines the contribution of the original minority set and previously generated synthetic subsets in the augmented reference set
. Two weight configurations are instantiated in this study and are denoted as Schedule-I and Schedule-II, respectively (Table 4).
Classification models. All classifiers were trained on identical training splits and evaluated on the corresponding test sets; their main hyperparameters are summarized in Table 5.
Evaluation metrics.
Downstream classification performance is evaluated using F1-score, G-mean, and Recall, averaged over 5-fold cross-validation with 5 random seeds (3-fold cross-validation for BCC and HEP due to limited sample sizes).
To evaluate distributional fidelity, we assess whether synthetic data preserve important characteristics of marginal distributions and attribute dependencies.
Skewness. For numerical attributes, the bias-corrected Fisher–Pearson skewness coefficient is calculated to measure whether the asymmetry of real attribute distributions is preserved in synthetic data.
Multimodality. For numerical attributes, Gaussian kernel density estimation (KDE) with Silverman’s rule for bandwidth selection is applied to identify local density peaks. The number and locations of detected modes are compared between real and synthetic data to evaluate whether latent sub-population structures are preserved.
Correlation/Association Absolute Deviation (CAD). To evaluate dependency preservation in heterogeneous tabular data, we propose CAD, which aggregates multiple association measures according to attribute types. Specifically, Kendall’s rank correlation coefficient, Cramér’s V, and correlation ratio are used for numerical–numerical, categorical–categorical, and numerical–categorical attribute pairs, respectively. Given the resulting association matrices of real and synthetic datasets ( and
), CAD is defined as:
where d denotes the number of attributes. Lower CAD values indicate better preservation of attribute dependency structures.
Results and discussion
Baseline performance
The classification difficulty of the evaluated datasets is reflected by the baseline results without augmentation (Table 6). For compact presentation, leading zeros are omitted in all reported mean and standard deviation values throughout the following tables. Datasets such as DRP, THY, and TCGA exhibit relatively high baseline performance across different classifiers, suggesting clear class separability and less severe distributional ambiguity. In contrast, datasets with limited sample sizes or more complex feature interactions present greater classification challenges.
Notably, FRM remains the most challenging dataset, where the MLP and XGB classifiers achieve extremely low F1-scores ( and
) and G-mean values (
and
), indicating substantial difficulty in recognizing minority-class patterns. Although SVC achieves a higher G-mean (
), its low F1-score (
) still reflects limited minority-class predictive capability. These results suggest that such datasets suffer from severe class overlap and insufficient minority representation, highlighting the need for effective distribution reconstruction beyond conventional classifier optimization.
Classification performance
Numerical datasets. The classification results on numerical datasets are summarized in Table 7. These datasets generally exhibit relatively stable classification performance, indicating that numerical attributes provide informative representations for distinguishing minority and majority classes. For datasets with relatively clear decision boundaries, such as TCGA and THY, most augmentation methods achieve comparable performance, suggesting that the potential improvement from synthetic data is limited when the original feature space already provides sufficient discriminative information.
For more challenging cases, such as BCC and PIMA, the impact of augmentation becomes more evident. Different generative approaches show varying degrees of improvement depending on the classifier, reflecting the dependency between synthetic data quality and downstream learning algorithms. IFC-HFlowVAE achieves competitive performance across these datasets, maintaining stable F1-score and G-mean values compared with existing augmentation methods. In particular, the consistent performance across different classifiers indicates that the proposed framework can generate minority samples with sufficient diversity while preserving useful class-related structures.
Categorical datasets. The results on categorical datasets are presented in Table 8. Compared with purely numerical datasets, categorical datasets introduce additional challenges due to discrete feature spaces and sparse combinations of categorical patterns. Therefore, effective augmentation requires not only increasing minority sample quantity but also preserving meaningful categorical dependencies.
Across the evaluated categorical datasets, the performance differences among generative methods are relatively dataset-dependent. For datasets with relatively distinguishable class structures, most methods achieve similar classification performance, whereas more difficult datasets exhibit larger variations among augmentation strategies. IFC-HFlowVAE provides competitive results across different classifiers, demonstrating that the heterogeneous latent modeling strategy can capture useful categorical representations without causing severe distributional distortion. These results support the applicability of the proposed framework for medical tabular data containing discrete clinical variables.
Mixed-type datasets. Mixed-type datasets represent the most challenging scenario because they require simultaneous modeling of numerical distributions and categorical dependencies. The classification results are reported in Table 9. Compared with single-type datasets, the performance differences among augmentation methods become more apparent, highlighting the difficulty of learning heterogeneous clinical distributions.
On FRM, all baseline classifiers show substantial degradation without augmentation, indicating severe minority-class recognition difficulty. Synthetic augmentation improves classification performance to different extents, demonstrating the necessity of reconstructing minority distributions in highly imbalanced clinical settings. Although different generative models achieve the best performance on different classifiers, IFC-HFlowVAE consistently improves upon the non-augmented baseline and remains competitive with existing state-of-the-art methods. Similarly, on HEP, the proposed framework achieves comparable performance with leading approaches across multiple classifiers.
Overall, these results indicate that the effectiveness of synthetic augmentation is strongly influenced by dataset characteristics. Rather than universally maximizing classification scores, IFC-HFlowVAE provides a stable augmentation strategy that preserves informative minority-class structures across heterogeneous medical tabular datasets.
Ablation and sensitivity analysis
For readability, the six IFC configurations are abbreviated as None-NoFT, None-FT, B-NoFT, B-FT, S-NoFT, and S-FT, corresponding to none_noft, none_ft, bootstrap_noft, bootstrap_ft, smote_noft, and smote_ft, respectively. The two weight configurations defined in Table 4 are denoted as Schedule-I and Schedule-II in the following analysis.
Effect of prior source and fine-tuning strategies. The six configurations were evaluated under a factorial design (prior source: None/bootstrap/SMOTE; fine-tuning: enabled/disabled) using cross-dataset Friedman mean ranks, where lower ranks indicate better performance (Table 10).
Across the four metric-schedule combinations, the overall ranking was: None-NoFT (3.33) < S-FT (3.41) <None-FT (3.44) < B-FT (3.49) < S-NoFT (3.66) < B-NoFT (3.67). The Friedman test showed significant differences for G-mean under both schedules (Schedule-I: , p = 0.032; Schedule-II:
, p = 0.023), while no significant differences were observed for F1-score (Schedule-I: p = 0.073; Schedule-II: p = 0.086). After Nemenyi correction, only one pairwise comparison remained significant: S-FT outperformed B-NoFT in G-mean under Schedule-II (p = 0.016).
Overall, None-NoFT achieved the best or near-best ranking, suggesting that the learned generative prior itself provides a strong augmentation capability. In contrast, self-circulation without fine-tuning (B-NoFT and S-NoFT) showed inferior performance, whereas fine-tuned variants remained comparable with the HFlowVAE-only baseline.
Sensitivity to self-circulation depth. The influence of self-circulation depth was evaluated by comparing two-stage and three-stage schedules. The Holm-corrected p-values are summarized in Table 11. None of the eight configuration-metric-schedule comparisons reached statistical significance after correction. A secondary Wilcoxon analysis pooling all self-circulating configurations showed no significant effect for F1-score under either schedule (Schedule-I: p = 0.601; Schedule-II: p = 0.072), a marginal effect for Schedule-I/G-mean (p = 0.083), and a significant effect for Schedule-II/G-mean (p = 0.018). The direction of differences depended on the schedule: stage 3 was favored under Schedule-II, whereas stage 2 was favored under Schedule-I.
And the depth trend of SMOTE-based self-circulation is summarized in Table 12. S-NoFT exhibited a significant decreasing trend across all metric-schedule combinations. S-FT showed the same trend under Schedule-I, while maintaining stable performance under Schedule-II, where stage-3 performance slightly recovered compared with stage 2 (F1-score: 0.709 vs. 0.707; G-mean: 0.768 vs. 0.767).
Sensitivity to schedule configuration. The effect of different self-circulating schedules was evaluated by comparing Schedule-I and Schedule-II under different configurations. No comparison reached statistical significance after Holm correction. Among all comparisons, S-FT at stage depth 3 showed the strongest trend toward improvement under Schedule-II, although the differences remained non-significant (F1-score: p = 0.087; G-mean: p = 0.061). These results suggest that the choice of weight configuration alone does not produce a consistent performance gain, but may influence the effectiveness of fine-tuned SMOTE-based self-circulation.
Synthesis. Overall, the ablation and sensitivity analyses demonstrate that each component contributes differently to IFC performance. The VAE-based generative prior alone (None-NoFT) provides a strong baseline and achieves the best or near-best ranking across settings. Self-circulation without fine-tuning tends to reduce performance, particularly as recursive depth increases, indicating that additional refinement requires adaptation of the generator to the evolving reference distribution.
Fine-tuning effectively mitigates this degradation, allowing self-circulating variants to remain comparable with the HFlowVAE-only baseline. Under Schedule-II, S-FT achieved the only statistically confirmed improvement over another configuration by outperforming B-NoFT in G-mean (p = 0.016). These results suggest that self-circulation is not beneficial by itself, but requires appropriate fine-tuning and reference-set design to provide stable refinement.
Fidelity analysis
For all fidelity evaluations, the representative (Seed, Fold) is selected as the one closest to the dataset median in raw-data downstream performance, avoiding favorable fold selection. Fidelity is evaluated from marginal distribution preservation (skewness, peak structure, and categorical JS distance), dependency preservation (Kendall correlation), and manifold consistency, with additional analysis on difficult-to-preserve attributes.
Marginal distribution fidelity. Table 13 summarizes five fidelity metrics used to evaluate marginal distribution preservation. Skew, Peak, and JS denote the deviation of skewness, peak mismatch rate, and Jensen–Shannon (JS) distance for numerical and categorical attributes, respectively. To further assess the preservation of challenging minority structures, Flag-Skew and Flag-Peak are calculated on numerical attributes identified as highly skewed or multimodal.
For overall fidelity, IFC achieves competitive performance across different attribute distributions. Its skewness deviation and peak mismatch are comparable to SMOTE and substantially lower than most neural generative baselines, indicating improved preservation of non-Gaussian numerical characteristics. Although TabKDE achieves the lowest numerical deviations and JS distance remains slightly better for several density-based or neural baselines, IFC maintains a balanced fidelity across numerical and categorical attributes, with a lower overall JS distance than SMOTE.
For challenging numerical attributes, IFC obtains a Flag-Skew score of 0.516 and a Flag-Peak score of 0.625, ranking closely with SMOTE (0.521 and 0.575) and substantially outperforming most neural generative methods. Only TabKDE achieves better preservation on these difficult attributes. These results suggest that IFC is capable of maintaining skewed and multimodal minority structures that are prone to being smoothed during generative modeling.
Fig 3 further presents the dataset-level skewness deviation comparison, where IFC achieves the best performance on TCGA and THY while maintaining competitive results on other datasets.
Lower values indicate better fidelity.
Fig 4 shows the corresponding comparison for difficult numerical attributes. IFC achieves competitive performance on several datasets, including BCC, PIMA, and Thyroid, where categorical distributions are strongly imbalanced. These results indicate that IFC maintains minority-class distribution characteristics beyond simple marginal approximation.
Lower values indicate better preservation of difficult numerical characteristics.
Fig 5 presents the fidelity comparison for substantially non-uniform categorical attributes. On FRM, IFC ranks third among all evaluated methods, following TabKDE and TVAE. However, on HEP, TCGA, and THY, the fidelity of IFC remains lower than most competing approaches, with performance only exceeding ForestDiff and SMOTE. This limitation is mainly observed in categorical attributes with extremely imbalanced distributions (e.g., fewer than 1% positive instances in binary attributes). In such cases, the missing categorical patterns cannot be fully recovered through latent refinement, limiting the ability of IFC to preserve rare discrete events.
Dependency preservation. To evaluate whether synthetic samples maintain feature-level dependencies, we analyze Kendall correlation differences on FRM and PIMA, two representative datasets with challenging distributions. Figs 6 and 7 compare Kendall correlation deviations between synthetic and real minority-class samples. Lighter regions indicate closer agreement with real correlations, and CAD values summarize the overall correlation deviation.
Across both datasets, IFC gradually improves dependency preservation during the generation process, with the self-circulating v2 stage generally achieving the closest correlation structure among its variants. This trend is consistent with the downstream classification results. TabKDE and SMOTE provide strong dependency preservation, while CTGAN and TabDDPM show larger deviations.
Manifold consistency. Figs 8–11 visualize the evolution and comparison of synthetic minority-class manifolds on FRM and PIMA using t-SNE. All samples are projected jointly, with real samples shown in gray and synthetic samples overlaid in the same space. KDE contours are used to characterize the distribution boundary.
The manifold evolution of IFC shows progressive alignment toward the real minority-class distribution, with the self-circulating v2 stage providing the closest overlap. Among baseline methods, TabKDE and SMOTE generally preserve the manifold structure better, whereas CTGAN and TabDDPM frequently generate samples beyond or inside the real distribution boundary. ForestDiff performs slightly better on PIMA but remains among the weakest methods overall, particularly on FRM.
Conclusion
This study proposed IFC-HFlowVAE, an iterative feedback framework for minority-class augmentation in heterogeneous medical tabular datasets. By integrating heterogeneous variational representation learning, flow-based latent refinement, and iterative sample updating, the proposed framework aims to generate synthetic samples that preserve minority-class characteristics while improving downstream predictive utility.
Extensive experiments on seven clinical datasets demonstrate that IFC-HFlowVAE achieves competitive classification performance compared with conventional oversampling methods and deep generative baselines. Fidelity analyses further show that the proposed framework can better preserve challenging minority-class characteristics, particularly complex numerical distributions that are difficult to reproduce with existing approaches.
Despite these promising results, further validation on larger and more diverse clinical datasets is required to assess the generalizability of IFC-HFlowVAE in real-world scenarios. Future work will investigate class-aware augmentation strategies that incorporate complementary information from majority classes and extend the framework toward more complex clinical data modalities.
Supporting information
S1 Dataset. PIMA Indians Diabetes dataset (CSV).
Original data curated by the National Institute of Diabetes and Digestive and Kidney Diseases, released under a CC0: Public Domain license. Provided here as Supporting Information in case of the current community-maintained mirror being unstable.
https://doi.org/10.1371/journal.pone.0357260.s001
(CSV)
Acknowledgments
The authors would like to thank the chief editor, associate editor, and anonymous reviewers for their constructive comments to improve the quality of the manuscript substantially. We also would like to acknowledge the support of the graduate students at our lab for their help in manuscript reviewing.
References
- 1. Liu J, Liu M, Chai Z, Li C, Wang Y, Shen M, et al. Projected rapid growth in diabetes disease burden and economic burden in China: a spatio-temporal study from 2020 to 2030. Lancet Reg Health West Pac. 2023;33:100700. pmid:36817869
- 2. Zhao T, Fu C, Tie M, Sham C-W, Ma H. RGSB-UNet: Hybrid Deep Learning Framework for Tumour Segmentation in Digital Pathology Images. Bioengineering (Basel). 2023;10(8):957. pmid:37627842
- 3. Zhao T, Fu C, Song W, Sham C-W. RGGC-UNet: Accurate Deep Learning Framework for Signet Ring Cell Semantic Segmentation in Pathological Images. Bioengineering (Basel). 2023;11(1):16. pmid:38247893
- 4. Zhao T, Fu C, Tian Y, Song W, Sham C-W. GSN-HVNET: A Lightweight, Multi-Task Deep Learning Framework for Nuclei Segmentation and Classification. Bioengineering (Basel). 2023;10(3):393. pmid:36978784
- 5. Putrama IM, Martinek P. Heterogeneous data integration: Challenges and opportunities. Data Brief. 2024;56:110853. pmid:39286416
- 6. Kaur H, Pannu HS, Malhi AK. A systematic review on imbalanced data challenges in machine learning: applications and solutions. ACM Computing Surveys. 2019;52(4):1–36.
- 7. Li G, Li C, Wang C, Wang Z. Suboptimal capability of individual machine learning algorithms in modeling small-scale imbalanced clinical data of local hospital. PLoS One. 2024;19(2):e0298328.
- 8. Hayaeian Shirvan M, Moattar MH, Hosseinzadeh M. Deep generative approaches for oversampling in imbalanced data classification problems: A comprehensive review and comparative analysis. Applied Soft Computing. 2025;170:112677.
- 9. Santos MS, Abreu PH, Japkowicz N, Fernández A, Santos J. A unifying view of class overlap and imbalance: Key concepts, multi-view panorama, and open avenues for research. Information Fusion. 2023;89:228–53.
- 10.
Prati RC, Batista GE, Monard MC. Class imbalances versus class overlapping: an analysis of a learning system behavior. In: 2004.
- 11. Gholampour S. Impact of Nature of Medical Data on Machine and Deep Learning for Imbalanced Datasets: Clinical Validity of SMOTE Is Questionable. MAKE. 2024;6(2):827–41.
- 12. Yang Y, Khorshidi HA, Aickelin U. A review on over-sampling techniques in classification of multi-class imbalanced datasets: insights for medical problems. Front Digit Health. 2024;6:1430245. pmid:39131184
- 13. Chawla NV, Bowyer KW, Hall LO, Kegelmeyer WP. SMOTE: Synthetic Minority Over-sampling Technique. jair. 2002;16:321–57.
- 14.
Han H, Wang WY, Mao BH. Borderline-SMOTE: A New Over-Sampling Method in Imbalanced Data Sets Learning. In: 2005.
- 15.
He H, Bai Y, Garcia EA, Li S. ADASYN: Adaptive synthetic sampling approach for imbalanced learning. In: Ieee, 2008.
- 16. Sáez JA, Luengo J, Stefanowski J, Herrera F. SMOTE–IPF: Addressing the noisy and borderline examples problem in imbalanced classification by a re-sampling method with filtering. Information Sciences. 2015;291:184–203.
- 17. Fernandez A, Garcia S, Herrera F, Chawla NV. SMOTE for Learning from Imbalanced Data: Progress and Challenges, Marking the 15-year Anniversary. jair. 2018;61:863–905.
- 18. Burgess CP, Higgins I, Pal A, Matthey L, Watters N, Desjardins G. Understanding disentangling in Beta-VAE. arXiv preprint. 2018.
- 19. Zhao S, Song J, Ermon S. Infovae: Information maximizing variational autoencoders. arXiv preprint. 2017.
- 20. Xu L, Skoularidou M, Cuesta-Infante A, Veeramachaneni K. Modeling tabular data using conditional gan. Advances in neural information processing systems. 2019;32.
- 21.
Zhao Z, Kunar A, Birke R, Chen LY. Ctab-gan: Effective table data synthesizing. In: PMLR, 2021.
- 22. Wang Y, Li C, Wang Z. Advancing precision medicine: VAE enhanced predictions of pancreatic cancer patient survival in local hospital. IEEE Access. 2024;12:3428–36.
- 23. Wang AX, Chukova SS, Simpson CR, Nguyen BP. Challenges and opportunities of generative models on tabular data. Applied Soft Computing. 2024;166:112223.
- 24. Kobyzev I, Prince SJD, Brubaker MA. Normalizing Flows: An Introduction and Review of Current Methods. IEEE Trans Pattern Anal Mach Intell. 2021;43(11):3964–79. pmid:32396070
- 25. Srinivasan R, Crisostomi M, Trotta R, Barausse E, Breschi M. Bayesian evidence estimation from posterior samples with normalizing flows. Physical Review D. 2024;110(12):123007.
- 26. Wang Y, Blei D, Cunningham JP. Posterior collapse and latent variable non-identifiability. Advances in Neural Information Processing Systems. 2021;34:5443–55.
- 27. Sharma A, Singh PK, Chandra R. SMOTified-GAN for Class Imbalanced Pattern Classification Problems. IEEE Access. 2022;10:30655–65.
- 28. Cheah PCY, Yang Y, Lee BG. Enhancing Financial Fraud Detection through Addressing Class Imbalance Using Hybrid SMOTE-GAN Techniques. IJFS. 2023;11(3):110.
- 29. Lautrup AD, Hyrup T, Zimek A, Schneider-Kamp P. Systematic Review of Generative Modelling Tools and Utility Metrics for Fully Synthetic Tabular Data. ACM Comput Surv. 2024;57(4):1–38.
- 30. Alemohammad S, Casco-Rodriguez J, Luzi L, Humayun AI, Babaei H, LeJeune D. Self-consuming generative models go mad. arXiv preprint. 2023.
- 31.
Lin S, Wang K, Zeng X, Zhao R. Explore the power of synthetic data on few-shot object detection. In: 2023.
- 32.
Bansal H, Grover A. Leaving reality to imagination: robust classification via generated datasets. arXiv preprint. 2023. https://doi.org/10.48550/arXiv.230202503
- 33.
Kotelnikov A, Baranchuk D, Rubachev I, Babenko A. Tabddpm: Modelling tabular data with diffusion models [Conference Paper]. PMLR; 2023.
- 34.
Alishahi M, Zheng Y, Wang J, Yeh CCM, Phillips JM. TabKDE: Simple and scalable tabular data generation with kernel density estimates. In: 2026. https://arxiv.org/abs/260517642
- 35. Pezoulas VC, Tachos NS, Gkois G, Olivotto I, Barlocco F, Fotiadis DI. Bayesian Inference-Based Gaussian Mixture Models With Optimal Components Estimation Towards Large-Scale Synthetic Data Generation for In Silico Clinical Trials. IEEE Open J Eng Med Biol. 2022;3:108–14. pmid:36860496
- 36.
Mohri M, Rostamizadeh A, Talwalkar A. Foundations of machine learning. MIT Press. 2018.
- 37.
Rezende D, Mohamed S. In: 2015. 1530–8.
- 38.
Jolicoeur-Martineau A, Fatras K, Kachman T. Generating and imputing tabular data via diffusion and flow-based gradient-boosted trees. In: International conference on artificial intelligence and statistics, 2024. 1288–96.