betaFeedback

WorksComputer Science

Synthetic Image Oversampling for Rare-Class Representation Learning in Deep Facial Phenotyping

Abstract

Recent deep facial phenotyping methods can support the recognition of genetic syndromes, but patient images are often scarce and unevenly distributed across disorders. Synthetic facial images offer a way to supplement the training data without collecting additional patient photographs. Their usefulness, however, depends on whether they improve recognition of real patients: generated images may introduce artifacts or repeat features already represented in the training set. It is therefore necessary to examine both how much synthetic augmentation to use and which disorders benefit. We investigate disease-specific synthetic oversampling using images from the Phenotypic Disease Image Database to augment a subset of the GestaltMatcher Database. We compare increasing augmentation levels in an image-based model, GestaltMatcher-Arc, and a multimodal model, GestaltMML, while keeping the real training and patient-disjoint evaluation partitions fixed. Repeated training runs assess overall and disease-specific accuracy, and an exploratory embedding analysis examines changes in class compactness and separation. Augmentation improves mean recognition accuracy in both training setups, although gains remain modest in GestaltMatcher-Arc and continue across the tested levels in GestaltMML. These aggregate improvements are accompanied by uneven disease-level responses, including reduced accuracy for some disorders. In the embedding analysis, disorders with fewer real training images tend to gain more class separation, but geometric changes do not consistently track classification performance. Together, the findings support synthetic oversampling for limited-data facial phenotyping and emphasize the need to assess its amount and benefit for individual disorders within each training setup.

Introduction

Rare genetic disorders collectively affect a substantial population, yet individual syndromes may be encountered infrequently [1]. For disorders with characteristic craniofacial features, facial morphology can provide information for syndrome recognition and patient matching. Deep facial phenotyping uses patient photographs to support these tasks [2, 3], but its development is constrained by the availability of training images. Collections are often uneven across disorders, leaving some classes with few examples of disease-associated facial variation [4, 5, 6]. For a sparsely represented syndrome, the observed images may cover only a narrow portion of its phenotypic variation, making it difficult to learn features that generalize to other patients. The challenge is therefore to learn from limited observations of individual disorders as well as from unequal class frequencies. Acquiring more photographs is difficult for rare conditions, motivating approaches that supplement disease-specific training examples while retaining real patients as the target of recognition.

Existing systems address different aspects of this problem. DeepGestalt and GestaltMatcher learn from facial images, PEDIA incorporates image analysis into exome prioritization, and GestaltMML combines facial and clinical information [2, 3, 7, 8]. Class weighting, margin-based losses, decoupled training, and logit adjustment can reduce the influence of class imbalance [5, 9, 10, 11, 12]. However, increasing a sparse class’s loss weight still relies on the same observed examples and cannot supply additional observations of facial variation. Generative augmentation offers a complementary strategy, with applications in medical imaging [13, 14, 15, 16, 17]. Its potential advantage is to provide additional disease-specific images, but their usefulness must be established through downstream recognition. Generated images may contain artifacts, repeat existing features, or reflect biases in the source data. Even a visually plausible portrait may emphasize features that do little to distinguish its target disorder from other syndromes. More synthetic images therefore need not produce greater recognition gains. The practical question is whether augmentation improves recognition of real patients as more synthetic images are added, and how those gains are distributed across disorders. An increase in overall accuracy would be encouraging, but it would leave open whether sparsely represented disorders also benefit. Evaluating this distribution is central to judging augmentation as a response to limited and uneven training data.

We study disease-specific synthetic oversampling to address this question. The synthetic images come from the Phenotype Diseased Image Synthesis Database (PDIDB) [18], which contains facial images generated with our disease-conditioned StyleGAN3 model [14]. Its public GitHub repository documents the generation framework and links to a gallery organized by disorder. We progressively add nested portions of these disease-specific pools to a fixed real training set from the GestaltMatcher Database (GMDB) [19]. This approach increases the training examples available for underrepresented disorders without requiring additional patient photographs.

The nested subsets preserve images as augmentation increases, and fixed patient-disjoint real-data partitions allow conditions to be compared on the same evaluation cohort. Synthetic images are used only for training. We examine GestaltMatcher-Arc and GestaltMML to assess augmentation in image-based and multimodal training settings [6, 8]. In GestaltMatcher-Arc, oversampling is evaluated alongside class-frequency loss weighting, assessing augmentation within a setup that already addresses imbalance during optimization. The evaluation follows three linked questions: whether augmentation improves aggregate recognition, whether those improvements extend across individual disorders, and whether they coincide with changes in learned representations. We report overall and mean per-class accuracy, followed by disease-specific changes, to distinguish cohort-level gains from their distribution across disorders. An exploratory analysis of class compactness and separation [20] further examines whether recognition changes coincide with changes in learned representations.

Experiments on a patient-disjoint real-image evaluation set show higher mean recognition accuracy with synthetic augmentation in both training setups. GestaltMatcher-Arc exhibits modest gains and small differences among augmented conditions, whereas GestaltMML continues to improve across the tested levels. These overall gains are uneven across disorders, and the augmentation level with the highest overall accuracy does not always yield the highest mean per-class accuracy. An exploratory GestaltMatcher-Arc embedding analysis also associates fewer real training images with larger gains in class separation, although geometric changes do not consistently track classification performance. Together, these findings support assessing the value of synthetic oversampling through its effects on real-image recognition at both the cohort and disease levels. They also clarify the role of representation analysis as complementary evidence when judging whether additional synthetic images provide useful training information.

Related Work

Deep Facial Phenotyping

DeepGestalt formulates facial phenotyping as syndrome recognition from photographs [2]. GestaltMatcher learns facial descriptors for similarity-based patient matching in a shared embedding space [3]. The GestaltMatcher Database (GMDB) provides a resource for evaluating these representations across genetic disorders [19].

Multimodal methods incorporate information beyond facial appearance. GestaltMML combines facial images with clinical text for rare-disease recognition [8], while PhenoGPT2 uses both modalities for phenotype extraction and normalization [21]. Related biomedical work investigates multimodal knowledge transfer through preference optimization [22] and rare-disease diagnosis through retrieval-augmented reasoning over clinical notes [23]. Our study examines how supplementing facial training data with synthetic images affects image-based and multimodal recognition.

Long-Tailed Recognition and Synthetic Oversampling

Long-tailed recognition methods address unequal class frequencies through different stages of learning and prediction [4]. Loss-based approaches include class reweighting [5], class-dependent margins [9], and focal loss [12]. Other approaches decouple representation and classifier training [10] or adjust prediction scores through logit adjustment [11] and residual correction. REPAIR decomposes this correction into pairwise and classwise components [24]. These methods modify the influence of available examples or their prediction scores, but do not provide additional observations of underrepresented classes.

Synthetic oversampling supplements the training data with generated examples [13, 14]. Its use has been investigated in medical imaging [15, 16, 17], and GestaltGAN applies generative modeling to rare-disease facial portraits [25]. In this study, PDIDB [18] supplies synthetic faces generated with our disease-conditioned StyleGAN3 model [14]. Synthetic artifacts, repeated features, and source-data biases can limit the usefulness of these additional examples [15, 16]. We assess this usefulness by comparing nested augmentation levels on a fixed real-image evaluation partition, using disease-specific accuracy and embedding geometry to complement aggregate performance.

Methods

Study Design and Dataset

We used a curated subset of the GestaltMatcher Database (GMDB v1.1.0) [19] containing 1,847 real facial images from 10 genetic disorders. A fixed patient-disjoint partition assigned 1,289 images to training and 558 images to evaluation, corresponding to an approximately 70%/30% split. Training counts ranged from 312 images for Cornelia de Lange syndrome to 41 images for 22q11.2 deletion syndrome, giving a largest-to-smallest class ratio of 7.6. The real-data partitions were identical across models, augmentation conditions, and training seeds. Synthetic images were added only to training. Figure 1 summarizes the study design.

Study design diagram showing the GMDB data partition, synthetic augmentation conditions, models, and evaluation

Figure 1. Study design. A patient-disjoint GMDB partition contains 1,289 real training images and 558 real evaluation images. Nested PDIDB subsets augment the training data under PD25, PD50, PD75, and PD100. GestaltMatcher-Arc and GestaltMML are trained with three seeds per condition. The real partitions and synthetic subsets are fixed across training seeds.

To screen for potential overlap between synthetic training images and the real evaluation partition, we compared the full synthetic pool against all evaluation images using exact pixel-level hashes, perceptual hashes, and nearest-neighbor cosine similarity in the 512-dimensional GestaltMatcher-Arc embedding space. Embedding similarities were calibrated against real-training-to-evaluation nearest-neighbor similarities.

Synthetic Image Augmentation

We obtained synthetic facial images from the Phenotype Diseased Image Synthesis Database (PDIDB) [18], generated with our disease-conditioned StyleGAN3 model [14]. We defined five experimental conditions. Baseline used only real training images. PD25, PD50, PD75, and PD100 added approximately 25%, 50%, 75%, and 100% of each disorder’s available synthetic pool, respectively. These percentages refer to the synthetic pool, not to the size of the real training set.

The synthetic subsets were sampled once using random seed 11 and nested across augmentation conditions. These subsets were held fixed across all model-training runs, so the three training seeds did not change which synthetic images were included. Each higher augmentation condition therefore retained the images in the preceding condition and added further samples. This design compares increasing amounts from one fixed synthetic pool while avoiding variation caused by independently resampling each condition. Table 1 reports the real and synthetic image counts. The augmented conditions added 433, 866, 1,298, and 1,727 images, producing total training sets of 1,722, 2,155, 2,587, and 3,016 images. Figure 2 shows examples from the disorders with the fewest real training images.

DisorderTrainEval.PD25PD50PD75PD100
Cornelia de Lange3121354691137182
Williams-Beuren191824793140186
Noonan145624895143190
Kabuki144624081121161
KBG125544794140187
Angelman111494285127169
Rubinstein-Taybi81354489133177
Smith-Magenis71314283125166
Nicolaides-Baraitser68294284126168
22q11.2 deletion41193571106141
Total1,2895584338661,2981,727

Table 1. Dataset composition. Train and Eval. are the fixed, patient-disjoint real-image partitions. The Baseline condition consists of the real training images only, while PD25–PD100 indicate the numbers of synthetic images added under the four augmentation conditions.

PDIDB synthetic facial images

Figure 2. PDIDB synthetic facial images. Two examples are shown for each of the five disorders with the fewest real training images. Synthetic images are used only for training.

Model Training

Both models were trained under all five conditions using three model-training random seeds (11, 22, and 33) on NVIDIA A100 GPUs. These seeds controlled training stochasticity, including random parameter initialization and data shuffling, while the real-data partitions and synthetic subsets remained unchanged.

GestaltMatcher-Arc

GestaltMatcher-Arc [6] uses a ResNet-50 face backbone pretrained on Glint360K [26] with ArcFace loss [27]. We froze the convolutional backbone and trained the 512-dimensional feature projection and 10-class classifier for 50 epochs. Training used Adam optimizer with a batch size of 64 and learning rates of 5×10−45 \times10^{-4} for the projection layer and 10−310^{-3} for the classifier. A ReduceLROnPlateau scheduler used a reduction factor of 0.5 and patience of five epochs.

We used class-frequency-weighted cross-entropy with class weight

wc=0.5+0.5nmin⁡nc,(1)w_c = 0.5 + 0.5\frac{n_{\min}}{n_c}, \tag*{(1)}

where ncn_c denotes the training count for class cc and nmin⁡n_{\min} is the smallest class count. Synthetic oversampling was thus evaluated together with loss weighting. To assess whether the augmentation effect depended on class-frequency weighting, we repeated the Baseline and PD50 conditions across all three seeds using unweighted cross-entropy as an ablation study.

GestaltMML

We initialized GestaltMML [8] from dandelin/vilt-b32-mlm [28] and used a 10-class output head. Each real training image formed two image-text pairs. One contained clinical text with sex, age, ethnicity, and Human Phenotype Ontology (HPO) terms; the other used the placeholder token “*”. Each synthetic image formed one pair with the placeholder because corresponding clinical metadata were unavailable. This construction produced 2,578, 3,011, 3,444, 3,876, and 4,305 training pairs for Baseline, PD25, PD50, PD75, and PD100, respectively.

We fine-tuned the model for 10 epochs using AdamW with a learning rate of 5×10−55 \times10^{-5}, a batch size of 64, and a maximum text length of 40. During evaluation, each real image was paired once with its own clinical text, constructed from the same demographic fields and HPO terms used for the matched real training pairs. Missing demographic fields were represented as “unknown”. The placeholder-only copies were used for training and were not additional evaluation examples.

Classification Evaluation

For each training run, we selected the checkpoint with the highest overall Top-1 accuracy on the real-image evaluation partition, breaking ties in favor of the earliest epoch. The same partition was used to report classification performance.

Let NN be the number of evaluation images, C=10C = 10 the number of classes, and NcN_c the number of evaluation images in class cc. For image ii, yiy_i is the true label and y^i\hat{y}_i is the predicted label.

Overall Top-1 accuracy weights images equally:

Top1=1N∑i=1N1(y^i=yi).(2)\mathrm{Top1} = \frac{1}{N}\sum_{i=1}^{N}\mathbf{1}(\hat{y}_i = y_i). \tag*{(2)}

Mean per-class Top-1 accuracy weights classes equally:

MeanTop1=1C∑c=1C1Nc∑i:yi=c1(y^i=c).(3)\mathrm{MeanTop1} = \frac{1}{C}\sum_{c=1}^{C}\frac{1}{N_c}\sum_{i:y_i=c}\mathbf{1}(\hat{y}_i = c). \tag*{(3)}

Reporting both Top-1 summaries distinguishes performance on the observed image distribution from performance averaged equally across disorders. In this closed-set task, predictions are restricted to the ten study disorders. We also report Top-3 and Top-5 accuracy, defined by whether the true label appears among the three or five highest-ranked predictions.

Classification metrics are reported as mean and sample standard deviation across the three training seeds. For disease-specific comparisons, we calculated the percentage-point difference from Baseline within each seed and then summarized these paired differences across seeds.

Embedding Analysis

We conducted an exploratory analysis of GestaltMatcher-Arc embeddings using the seed-11 Baseline and PD50 runs. PD50 was selected after examining classification results because it had the highest mean overall Top-1 accuracy across training seeds. Both runs were analyzed on the same real evaluation images using their L2L_2-normalized, 512-dimensional embeddings.

Global class structure was summarized by the mean cosine-distance silhouette score [20]. For image ii,

s(i)=b(i)−a(i)max⁡{a(i),b(i)}.(4)s(i) = \frac{b(i)-a(i)}{\max\{a(i),b(i)\}}. \tag*{(4)}

where a(i)a(i) is the mean cosine distance to other images in the same class. For each other class, we calculated the mean cosine distance from image ii to that class; b(i)b(i) is the smallest of these means.

We additionally calculated three disease-level measures. Compactness is the mean cosine distance between a class’s embeddings and its L2L_2-normalized centroid. Nearest-centroid separation is the cosine distance from that centroid to the closest centroid of another class. The separation-to-compactness ratio divides separation by compactness. Lower compactness indicates tighter clusters, while higher separation indicates greater distance between class centroids. All quantitative measures were calculated in the original embedding space. PCA and UMAP were used only for visualization.

Statistical Analysis

For each embedding metric MM, we calculated the relative change from Baseline to PD50 as

ΔM(%)=100MPD50−MBaselineMBaseline.(5)\Delta M(\%) = 100\frac{M_{\mathrm{PD50}} - M_{\mathrm{Baseline}}}{M_{\mathrm{Baseline}}}. \tag*{(5)}

We used Spearman rank correlation with two-sided pp-values to assess associations between real training class size and relative changes in each metric. These analyses involved 10 disorders and a single training seed and were interpreted as exploratory associations.

Results

We evaluate synthetic augmentation on the same real-image cohort at each level. After screening for detectable overlap between synthetic and evaluation images, we assess whether aggregate recognition improves, how the gains are distributed across disorders, and whether augmentation is accompanied by changes in representation geometry.

Experimental Setup

We compare GestaltMatcher-Arc and GestaltMML across Baseline and four nested synthetic augmentation conditions (PD25–PD100), using the fixed patient-disjoint partition described in Section 3. Each condition was trained with seeds 11, 22, and 33. We compare augmentation effects within each model because their architectures and training procedures differ.

Synthetic–Evaluation Overlap Screening

Screening all 1,727 synthetic images against the 558 real evaluation images identified no exact pixel duplicates. Median nearest-neighbor cosine similarity was 0.591 for synthetic-to-evaluation comparisons and 0.670 for the patient-disjoint real-training-to-evaluation reference; the corresponding maxima were 0.851 and 0.898. Manual inspection of the closest perceptualhash and embedding matches found no apparent duplicate images. These checks address detectable image duplication rather than establishing independence from the generator’s original training cohort. Aggregate audit summaries are available in the code repository.

Overall Classification Performance

Figure 3 compares overall and mean per-class Top-1 accuracy across augmentation conditions. Both models achieved higher mean overall Top-1 accuracy with synthetic augmentation than at Baseline, but their responses to additional synthetic images differed.

Figure 3. Classification accuracy across augmentation conditions. Bars show mean overall and mean per-class Top-1 accuracy across three training seeds; error bars show one sample standard deviation. Checkpoints are selected and evaluated on the same fixed real-image partition.

For GestaltMatcher-Arc, mean overall Top-1 accuracy increased from 89.19±0.92%89.19 \pm0.92\% at Baseline to its highest observed value of 90.20±0.58%90.20 \pm0.58\% at PD50. Differences among augmented conditions were small relative to the variation across training seeds. Mean per-class Top-1 accuracy instead peaked at PD25, reaching 89.15±0.80%89.15 \pm0.80\% compared with 87.23±1.18%87.23 \pm1.18\% at Baseline. Thus, the condition with the highest overall accuracy differed from the condition with the highest mean per-class accuracy.

To assess sensitivity to class-frequency weighting, we repeated the Arc Baseline and PD50 conditions using unweighted cross-entropy (Table S2). The paired PD50 gain was +1.02±1.72+1.02 \pm1.72 percentage points without weighting, compared with +1.02±1.49+1.02 \pm1.49 points with weighting. These almost identical mean gains suggest that the observed augmentation effect did not depend strongly on class-frequency weighting.

LossBaseline Top-1 (%)PD50 Top-1 (%)Δ\Delta (pp)
Weighted CE89.19±0.9289.19 \pm0.9290.20±0.5890.20 \pm0.58+1.02±1.49+1.02 \pm1.49
Unweighted CE89.25±1.0089.25 \pm1.0090.26±0.7290.26 \pm0.72+1.02±1.72+1.02 \pm1.72

Table S2. GestaltMatcher-Arc sensitivity to class-frequency weighting. Values are mean ±\pm sample SD across three training seeds. Δ\Delta denotes the paired seed-wise PD50 minus Baseline difference in overall Top-1 accuracy.

For GestaltMML, mean overall Top-1 accuracy increased across the tested augmentation levels, from 68.82±1.53%68.82 \pm1.53\% at Baseline to 74.31±0.90%74.31 \pm0.90\% at PD100. Mean per-class Top-1 accuracy also increased, from 64.02±2.14%64.02 \pm2.14\% to 69.39±1.03%69.39 \pm1.03\%. Complete Top-1, mean per-class Top-1, Top-3, and Top-5 results are reported in Table S1 in the Supporting Information.

ModelConditionTop-1Mean Top-1Top-3Top-5
GestaltMatcher-ArcBaseline89.19±0.9289.19 \pm0.9287.23±1.1887.23 \pm1.1897.25±0.2797.25 \pm0.2798.27±0.2798.27 \pm0.27
PD2589.96±0.6589.96 \pm0.6589.15±0.8089.15 \pm0.8097.01±0.2797.01 \pm0.2798.45±0.3798.45 \pm0.37
PD5090.20±0.5890.20 \pm0.5888.30±0.7388.30 \pm0.7397.61±0.1097.61 \pm0.1098.86±0.2198.86 \pm0.21
PD7590.02±0.4590.02 \pm0.4588.24±1.0888.24 \pm1.0897.25±0.3797.25 \pm0.3798.69±0.2798.69 \pm0.27
PD10089.84±0.5289.84 \pm0.5288.31±0.2488.31 \pm0.2497.13±0.3697.13 \pm0.3698.63±0.1098.63 \pm0.10
GestaltMMLBaseline68.82±1.5368.82 \pm1.5364.02±2.1464.02 \pm2.1486.26±0.8386.26 \pm0.8393.55±1.1293.55 \pm1.12
PD2569.65±1.4569.65 \pm1.4565.23±1.5865.23 \pm1.5887.28±0.4787.28 \pm0.4794.03±0.4594.03 \pm0.45
PD5072.16±1.7772.16 \pm1.7768.25±1.9968.25 \pm1.9988.41±1.6388.41 \pm1.6394.15±0.9994.15 \pm0.99
PD7573.66±1.3573.66 \pm1.3569.04±1.3969.04 \pm1.3989.55±1.0889.55 \pm1.0895.40±0.5895.40 \pm0.58
PD10074.31±0.9074.31 \pm0.9069.39±1.0369.39 \pm1.0389.84±0.5589.84 \pm0.5595.34±1.0095.34 \pm1.00

Table S1. Overall classification performance across synthetic augmentation conditions. Top-kk denotes sample-weighted Top-kk accuracy, while Mean Top-1 denotes Top-1 accuracy averaged equally across the 10 disease classes. Values are mean ±\pm sample SD across three training seeds, in percentages. Green indicates the highest-observed mean and red indicates the lowest-observed mean within each architecture and metric.

Aggregate Gains Include Uneven Disease-Level Responses

The different Arc peaks for overall and mean per-class accuracy motivate a closer examination of individual disorders. We next ask whether the aggregate gains reflect broadly shared improvements or a mixture of gains and losses. Figure 4 reports paired changes in disease-specific Top-1 accuracy from Baseline, calculated within each training seed and then averaged across seeds. For GestaltMatcher-Arc, higher mean overall accuracy did not imply improvement for every disorder; disease-specific changes varied across augmentation conditions and training seeds.

Disease-specific changes in Top-1 accuracy for GestaltMatcher-Arc and GestaltMML

Figure 4. Disease-specific changes in Top-1 accuracy from Baseline. Panel A shows GestaltMatcher-Arc and panel B shows GestaltMML. Values are mean ±\pm sample standard deviation of paired percentage-point differences across three training seeds. Each difference is calculated against the Baseline run with the same seed. Disorders are ordered by real training image count, from largest to smallest.

At PD100, GestaltMML improved mean Top-1 accuracy for seven disorders. The largest paired gains occurred for KBG (+16.05+16.05 percentage points), Williams-Beuren (+14.63+14.63), and Smith-Magenis (+12.90+12.90). Mean accuracy also increased for Noonan (+5.91+5.91), 22q11.2 deletion (+5.26+5.26), Nicolaides-Baraitser (+2.30+2.30), and Cornelia de Lange (+2.22+2.22). In contrast, mean accuracy decreased for Rubinstein-Taybi (−3.81-3.81 percentage points), Kabuki (−1.08-1.08), and Angelman (−0.68-0.68). The improvement in aggregate performance therefore included both gains and losses at the disease level.

Embedding-Space Analysis

To examine whether augmentation also changes the organization of disease representations, we compared Baseline and PD50 embeddings from the seed-11 GestaltMatcher-Arc runs using the same 558 real evaluation images. PD50 was selected because it achieved the highest mean overall Top-1 accuracy across seeds; this analysis is exploratory. The mean cosine-distance silhouette score increased from 0.228 at Baseline to 0.267 at PD50. This corresponds to a relative increase of 16.9%, calculated from unrounded values.

Nearest-centroid separation increased for nine of the ten disorders (Table S3). The largest relative increases were observed for Smith-Magenis and 22q11.2 deletion (both +23.91%+23.91\%), followed by KBG (+18.56%+18.56\%) and Angelman (+18.46%+18.46\%). Cornelia de Lange was the only disorder with reduced separation (−9.86%-9.86\%).

DiseaseTrain NNΔ\Delta Comp.Δ\Delta Sep.Δ\Delta Sep./Comp.
Cornelia de Lange312-9.35-9.86-0.56
Williams–Beuren191-2.339.5112.13
Noonan145-9.062.0712.24
Kabuki144-9.254.7615.44
KBG125-13.5418.5637.12
Angelman111-3.3218.4622.53
Rubinstein–Taybi81-3.364.918.55
Smith–Magenis712.3523.9121.07
Nicolaides–Baraitser68-5.699.5116.12
22q11.2 deletion410.9423.9122.76

Table S3. Disease-specific changes in GestaltMatcher-Arc representation geometry from Baseline to PD50. Compactness is mean cosine distance to the class centroid (lower is better); separation is cosine distance to the nearest foreign-class centroid (higher is better). Sep./Comp. is their ratio. Changes are relative percentages.

Compactness improved for eight disorders. Mean distance to the class centroid increased slightly for Smith-Magenis (+2.35%+2.35\%) and 22q11.2 deletion (+0.94%+0.94\%), even though their nearest-centroid separation increased. The separation-to-compactness ratio increased for nine disorders and decreased for Cornelia de Lange (−0.56%-0.56\%). These results show that compactness and separation can change differently under the same augmentation condition.

Figure 5 shows a shared UMAP projection of the Baseline and PD50 representations. Quantitative results are calculated in the original embedding space.

Shared UMAP projection with panels A Baseline and B PD50; legend Disorder: 22q11.2 deletion syndrome, Angelman syndrome, Cornelia de Lange syndrome, KBG syndrome, Kabuki syndrome, Nicolaides-Baraitser syndrome, Noonan syndrome, Rubinstein-Taybi syndrome, Smith-Magenis syndrome, Williams-Beuren syndrome

Figure 5. Figure 5: Shared UMAP projection of seed-11 GestaltMatcher-Arc embeddings at Baseline (A) and PD50 (B). Each point represents one of the same 558 real evaluation images; colors indicate disorder. Quantitative metrics use the original L2L_2-normalized, 512-dimensional embeddings.

Association With Real Training Class Size

We next examined whether the geometric changes were related to the amount of real training data available for each disorder. Across the ten disorders, real training class size was inversely associated with relative change in nearest-centroid separation (Spearman ρ=−0.707\rho= -0.707, p=0.022p = 0.022). Disorders with fewer real training images tended to show larger relative separation gains at PD50 in this seed-11 analysis.

The corresponding correlations were ρ=0.527\rho= 0.527 (p=0.117p = 0.117) for relative compactness change and ρ=−0.588\rho= -0.588 (p=0.074p = 0.074) for relative change in the separation-to-compactness ratio. These exploratory associations describe variation across disorders in one training run; they do not establish that smaller class size causes a greater benefit from augmentation.

Discussion

Synthetic oversampling produced higher mean recognition accuracy in both evaluated training setups, but its value depended on the outcome examined. Aggregate gains coexisted with disease-specific losses, and the Arc augmentation level with the highest overall accuracy differed from that with the highest mean per-class accuracy. Representation analysis added a further distinction: increased class separation did not consistently track recognition performance. Together, these findings show why evaluating synthetic data for rare-disease facial phenotyping requires attention to both the magnitude and the distribution of recognition gains.

The two training setups differed in their response to augmentation amount. GestaltMatcher-Arc showed modest gains with little variation among augmented conditions, while GestaltMML continued to improve across the tested levels. This suggests assessing augmentation amount within each training setup. For Arc, adding the full available pool did not yield the highest mean accuracy; for GestaltMML, PD100 was the largest pool evaluated, so the increasing trend does not establish an optimal amount beyond that range. The similar mean Arc gains with and without class-frequency weighting further suggest that the observed augmentation effect was not strongly dependent on this weighting choice in the tested comparison. These results do not, however, isolate the contribution of additional image variation from other changes accompanying augmentation.

Disease-level outcomes are particularly relevant to the motivation for synthetic oversampling. Overall accuracy reflects the disease frequencies in the evaluation cohort, whereas mean per-class accuracy gives a small cohort the same weight as a large one. The different Arc peaks at PD50 and PD25 therefore reflect different evaluation objectives. Neither aggregate metric guarantees improvement for every disorder: even at the GestaltMML condition with the highest aggregate accuracy, seven disorders improved and three declined. For a disorder whose accuracy declines, an improvement in the cohort average does not represent a recognition benefit. Reporting these paired disease-level changes makes that distinction visible and helps identify where augmentation needs further scrutiny. The present results do not determine whether individual losses arise from synthetic image characteristics, changes in optimization, or variability associated with limited disease-specific samples.

The representation analysis provides a complementary view of this uneven response. The association between smaller real training classes and larger gains in centroid separation is consistent with the possibility that data availability matters for geometric changes. It does not establish greater recognition benefit for those disorders. Cornelia de Lange improves in mean classification accuracy under some augmentation conditions while its separation decreases in the seed-11 PD50 analysis. Moreover, compactness and separation can move in different directions within the same disorder. Centroid-based metrics summarize average class structure, whereas recognition depends on the placement of individual images relative to the learned classifier. A larger centroid distance can coexist with errors among overlapping or atypical examples. Geometry can therefore help characterize what changes after augmentation, but it cannot substitute for disease-specific recognition outcomes or explain accuracy changes across repeated training runs on its own.

Several design features limit the interpretation of these findings. The models differ in backbones, trainable parameters, optimization, and input construction, so their different responses cannot be attributed to a particular component or to multimodality alone. Fixed epoch counts give larger augmented datasets more optimizer updates. In GestaltMML, real images were paired with both clinical and placeholder text, whereas synthetic images were paired only with placeholder text; adding synthetic pairs therefore also changes the proportion of clinical-text pairs. These factors remain coupled to augmentation, limiting attribution of the gains solely to synthetic image quantity.

The evaluation also covers ten disorders, one synthetic image source, and one patient partition. Repeated training seeds capture training variability but do not assess uncertainty from alternative patient partitions or synthetic subsets. The representation analysis uses one seed and a condition selected after examining classification results, limiting the conclusions from its cross-disease associations. Checkpoint selection and performance reporting use the same evaluation partition, so the reported accuracies are not independent test estimates. The overlap screening addresses detectable duplication without establishing independence from the generator’s original training cohort. The findings therefore concern recognition on this benchmark; clinical utility has not been established.

Conclusion

Disease-specific synthetic oversampling improved mean recognition accuracy on this ten-disorder benchmark, with modest gains for GestaltMatcher-Arc and continued gains across the tested augmentation levels for GestaltMML. The central finding is that these aggregate improvements were uneven across disorders, and the augmentation level favored by overall accuracy could differ from that favored by mean per-class accuracy. Evaluating synthetic data therefore requires examining which disorders benefit alongside the cohort average. Exploratory representation analysis adds information about class structure, but does not establish the mechanism underlying recognition changes.

Further evaluation should use separate validation and test partitions, external patient cohorts, and alternative synthetic subsets and generators to assess the stability of both aggregate and disease-specific findings. Comparisons with matched training budgets and image–text ablations would help distinguish the effects of additional images from changes in optimization and input composition. Cross-modal attribution methods such as MultiSHAP [29] could complement these comparisons by characterizing the contributions of facial images, clinical text, and their interactions to model predictions. Such evaluations would clarify when additional synthetic examples provide a reproducible benefit for recognition of real patients.

Supporting Information

Supporting Information follows the References and contains complete classification results (Table S1), the class-weighting sensitivity analysis (Table S2), and disease-specific embedding metrics (Table S3).

Acknowledgements

We thank the members of the Wang Genomics Lab at the University of Pennsylvania and Children’s Hospital of Philadelphia for hosting this research and providing guidance, feedback, and technical support. We also thank Dr. Priscilla Encarnacao, Mrs. Kristen Abraham, and Dr. Early Geyer III for supporting the summer research experience through the Hopkins Authentic Research Program in Science (HARPS). We acknowledge the creators and contributors of the GestaltMatcher Database (GMDB) and the PDIDB synthetic dataset for making these resources available. Synthetic image generation was supported by the National Institutes of Health under grant OD037960 and by the CHOP Research Institute.

Funding

This study is supported in part by the Children’s Hospital of Philadelphia.

Conflict of Interest

The authors declare no competing interests.

This study used existing GMDB data and PDIDB synthetic images; no new patients were recruited. GMDB reports broad participant consent and approval from the Ethics Committee of the Medical Faculty of the University of Bonn (reference 386/17). Patient or guardian consent for data sharing is managed through GMDB. The facial portraits presented in Figure 2 are synthetic.

Data and Code Availability

Experimental details, including data partitioning, augmentation conditions, model training, evaluation, and statistical analyses, are provided in the Methods and Supporting Information. Code for training, evaluation, and analysis is available in our GitHub repository. The repository also provides experiment configurations and aggregate results; restricted patient data and model checkpoints are not redistributed. GMDB v1.1.0 is available to researchers on application from the GestaltMatcher Database (https://db.gestaltmatcher.org/), subject to approval by its Scientific Advisory Board and the applicable data-use conditions. Real patient images and restricted clinical data are not redistributed with this article. The PDIDB generation framework and a link to its synthetic-image gallery are available at https://github.com/WGLab/PDIDB; use is subject to the resource’s stated terms. Exact public PDIDB image identifiers for the nested augmentation conditions are provided in the analysis repository under data/pdidb_manifests/.

AI Assistance Disclosure

OpenAI ChatGPT 5.6 Sol and Anthropic Claude Sonnet 5.5 were used during manuscript preparation to assist with language editing concentrated in the Appendix, figures, and figure legends. The same models were also used for organization, LaTeX formatting, and code development and debugging. All generated material was reviewed and revised by the authors. The authors independently verified the experimental results, statistical analyses, references, and scientific claims and take responsibility for the final manuscript. ChatGPT was additionally used to assist with journal-format adaptation and preparation of the revised abstract and cover-letter draft, and clarification of the methods, results, and discussion. These revisions require author review before submission.

Supporting Information

Complete Classification Results

Class-Weighting Sensitivity Analysis

GestaltMatcher-Arc Embedding Analysis

References

  1. [1]S. Nguengang Wakap, D. M. Lambert, A. Olry, et al., “Estimating cumulative point prevalence of rare diseases: analysis of the Orphanet database,” European Journal of Human Genetics 28, no. 2 (2020): 165–173.DOI
  2. [2]Y. Gurovich, Y. Hanani, O. Bar, et al., “Identifying facial phenotypes of genetic disorders using deep learning,” Nature Medicine 25, no. 1 (2019): 60–64.DOI
  3. [3]T.-C. Hsieh, A. Bar-Haim, S. Moosa, et al., “GestaltMatcher facilitates rare disease matching using facial phenotype descriptors,” Nature Genetics 54, no. 3 (2022): 349–357.DOI
  4. [4]Z. Liu, Z. Miao, X. Zhan, J. Wang, B. Gong, and S. X. Yu, “Large-scale long-tailed recognition in an open world,” in 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (2019): 2532–2541.arxiv.org/abs/1904.05160
  5. [5]Y. Cui, M. Jia, T.-Y. Lin, Y. Song, and S. Belongie, “Class-balanced loss based on effective number of samples,” in 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (2019): 9260–9269.arxiv.org/abs/1901.05555
  6. [6]A. Hustinx, F. Hellmann, Ö. Sümer, et al., “Improving deep facial phenotyping for ultra-rare disorder verification using model ensembles,” in 2023 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV) (2023): 5007–5017.DOI
  7. [7]T.-C. Hsieh, M. A. Mensah, J. T. Pantel, et al., “PEDIA: prioritization of exome data by image analysis,” Genetics in Medicine 21, no. 12 (2019): 2807–2814.DOI
  8. [8]D. Wu, Z. Wang, H. Chen, et al., “GestaltMML: Enhancing Rare Genetic Disease Diagnosis through Multimodal Machine Learning Combining Facial Images and Clinical Text” (2026). arXiv: 2312.15320 [q-bio.QM].arxiv.org/abs/2312.15320
  9. [9]K. Cao, C. Wei, A. Gaidon, N. Arechiga, and T. Ma, “Learning imbalanced datasets with label-distribution-aware margin loss,” Advances in Neural Information Processing Systems 32 (2019).arxiv.org/abs/1906.07413
  10. [10]B. Kang, S. Xie, M. Rohrbach, et al., “Decoupling representation and classifier for long-tailed recognition,” arXiv preprint arXiv:1910.09217 (2019).arxiv.org/abs/1910.09217
  11. [11]A. K. Menon, S. Jayasumana, A. S. Rawat, H. Jain, A. Veit, and S. Kumar, “Long-tail learning via logit adjustment ”(2021). arXiv: 2007.07314 [cs.LG].arxiv.org/abs/2007.07314
  12. [12]T.-Y. Lin, P. Goyal, R. Girshick, K. He, and P. Dollar, “Focal Loss for Dense Object Detection,” in Proceedings of the IEEE International Conference on Computer Vision (ICCV) (2017).
  13. [13]I. J. Goodfellow, J. Pouget-Abadie, M. Mirza, et al., “Generative Adversarial Networks ”(2014). arXiv: 1406.2661 [stat.ML].arxiv.org/abs/1406.2661
  14. [14]T. Karras, M. Aittala, S. Laine, et al., “Alias-Free Generative Adversarial Networks,” in Advances in Neural Information Processing Systems (2021).arxiv.org/abs/2106.12423
  15. [15]F. Garcea, A. Serra, F. Lamberti, and L. Morra, “Data augmentation for medical imaging: A systematic literature review,” Computers in Biology and Medicine 152 (2023): 106391.DOI
  16. [16]L. R. Koetzier, J. Wu, D. Mastrodicasa, et al., “Generating synthetic data for medical imaging,” Radiology 312, no. 3 (2024): e232471.DOI
  17. [17]I. Ktena, O. Wiles, I. Albuquerque, et al., “Generative models improve fairness of medical classifiers under distribution shifts,” Nature Medicine 30, no. 4 (2024): 1166–1173.DOI
  18. [18]WGLab, “PDIDB: Phenotype Diseased Image Synthesis Database ”(n.d.). GitHub repository. URL: https://github.com/WGLab/PDIDB (visited on Oct. 4, 2026).
  19. [19]H. Lesmann, A. Hustinx, S. Moosa, et al., “GestaltMatcher Database-A global reference for facial phenotypic variability in rare human diseases,” medRxiv (2024): 2023–06.
  20. [20]P. J. Rousseeuw, “Silhouettes: a graphical aid to the interpretation and validation of cluster analysis,” Journal of Computational and Applied Mathematics 20 (1987): 53–65.DOI
  21. [21]Q. M. Nguyen, M. U. Ahsan, Z. Wang, and K. Wang, “PhenoGPT2: A Multimodal Fine-tuned Large Language Models for Phenotype Extraction and Normalization from Clinical Text and Facial Images,” in Proceedings of the 16th ACM International Conference on Bioinformatics, Computational Biology, and Health Informatics (2025), Article 70. https://doi.org/10.1145/3765612.3767763.
  22. [22]Z. Wang, D. Wu, Q. M. Nguyen, Z. Xu, and K. Wang, “Multimodal integrated knowledge transfer to large language models through preference optimization with biomedical applications,” Patterns 7, no. 8 (2026): 101544. https://doi.org/10.1016/j.patter.2026.101544.
  23. [23]Z. Wang, D. Wu, Q. Nguyen, and K. Wang, “Integrating Chain-of-Thought and Retrieval Augmented Generation Enhances Rare Disease Diagnosis From Clinical Notes,” Medicine Bulletin 2, no. 2 (2026): 167–183. https://doi.org/10.1002/mdb2.70033.
  24. [24]Z. Wang, H. Chen, Q. M. Nguyen, M. U. Ahsan, and K. Wang, “Beyond Logit Adjustment: A Residual Decomposition Framework for Long-Tailed Reranking,” in Third Conference on Language Modeling (2026). URL: https://openreview.net/forum?id=lu42W UjFSY.arxiv.org/abs/2604.01506
  25. [25]A. Kirchhoff, A. Hustinx, B. Javanmardi, et al., “GestaltGAN: synthetic photorealistic portraits of individuals with rare genetic disorders,” European Journal of Human Genetics 33, no. 3 (2025): 377–382.DOI
  26. [26]X. An, X. Zhu, Y. Gao, et al., “Partial FC: Training 10 million identities on a single machine,” in 2021 IEEE/CVF International Conference on Computer Vision Workshops (ICCVW) (2021): 1445–1449.arxiv.org/abs/2010.05222
  27. [27]J. Deng, J. Guo, N. Xue, and S. Zafeiriou, “ArcFace: Additive angular margin loss for deep face recognition,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (2019): 4690–4699.DOI
  28. [28]W. Kim, B. Son, and I. Kim, “ViLT: Vision-and-language transformer without convolution or region supervision,” in International Conference on Machine Learning (2021): 5583–5594.arxiv.org/abs/2102.03334
  29. [29]Z. Wang and K. Wang, “MultiSHAP: A Shapley-Based Framework for Explaining Cross-Modal Interactions in Multimodal AI Models ” (2026). arXiv: 2508.00576 [cs.AI].arxiv.org/abs/2508.00576

Paper details

vlnc:W_mfunx2wg
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Claude Sonnet 5.5 (bare)

View statement
Looking for related papers…
Contents