Accurate and Private Diagnosis of Rare Genetic Syndromes from Facial Images with Federated Deep Learning

Ali Burak Ünal, Cem Ata Baykara, Peter Krawitz, Mete AkgünarXiv 2025

TL;DR

This paper introduces a federated version of GestaltMatcher, a deep learning framework for diagnosing rare genetic syndromes from facial images. By combining cross-silo horizontal federated learning with a privacy-preserving kernel computation framework (FLAKE), hospitals can collaboratively train models and diagnose patients without ever sharing sensitive patient images or plaintext latent encodings. The system achieves over 90% of the accuracy of a centralized model while strictly safeguarding patient privacy.

What Problem Does This Paper Address?

Rare genetic disorders often manifest in characteristic facial features (facial dysmorphology), providing crucial diagnostic clues for clinicians. Frameworks like GestaltMatcher use deep convolutional neural networks to map patient images into a high-dimensional latent space where similar syndromes cluster together, aiding in both syndrome diagnosis and the discovery of ultra-rare diseases.

However, because these conditions are rare, patient data is highly fragmented and siloed across different global institutions. Centralizing these images into a single database faces severe legal and regulatory hurdles (such as GDPR) because facial images are highly identifiable biometric data. This paper addresses a critical bottleneck: how can multiple hospitals collaboratively train these diagnostic models and perform syndrome inference without compromising patient privacy or transferring raw data to a central server?

Methods

The authors propose a cross-silo horizontal federated learning framework that allows decentralized institutions to collaborate safely. The workflow consists of two main privacy-preserving phases:

  1. Federated Ensemble Feature Extractor Training: Hospitals (silos) locally train an ensemble feature extractor (utilizing state-of-the-art iResNet and ArcFace architectures) and use Federated Averaging (FedAvg) to update a global model. To prevent a curious central aggregator from performing membership inference or model inversion attacks, they implement a non-zero-sum masking protocol that cryptographically conceals both local updates and intermediate global models.
  2. Secure Cosine Distance Computation (FLAKE): Even after a model is trained, sharing plaintext latent representations (embeddings) poses a privacy risk because original faces can often be reconstructed from them. To circumvent this, the authors employ FLAKE (Framework for Collaborative Machine Learning with Kernel Methods). Silos apply random masks to their latent representations using a shared seed before sending them to the aggregator. The aggregator can then compute the pairwise cosine distance matrix (Gram matrix) directly from these masked representations to perform syndrome inference, without ever seeing the unmasked embeddings.
Fig. 2: Federated training of the global ensemble feature extraction model. (1) The local models are first shared with the aggregator. (2) The aggregator aggregates these local models and (3) sends it to the silos. (4) The silos continue training the aggregated model using their local data.
Fig. 3: (1) The silos extract the features of their local data using the final aggregated model. (2) They mask the latent representations of their images and send them to the aggregator. (3) The aggregator computes the cosine distance matrix from the masked latent representations.

Datasets

The framework was evaluated using the GestaltMatcher Database (GMDB). The dataset consists of facial images annotated with human phenotype ontology terms and molecular diagnoses. For the experiments, the data was preprocessed (cropped, rotated, and aligned) and split based on data availability:

  • Data-rich (frequent) syndromes: Syndromes with 7 or more images (used for training and evaluation).
  • Data-scarce (rare) syndromes: Syndromes with fewer than 7 images (used strictly for testing and evaluation).

To simulate realistic hospital collaborations, the frequent syndromes were partitioned into 4, 8, and 16 silos using both near-uniform and highly skewed non-IID (Dirichlet) distributions.

Fig. 5: Distribution of class frequencies in the GMDB dataset for frequent images across four thresholds. Each panel shows a pie plot where slices represent classes occurring at or above the specified frequency threshold, and the grey slice aggregates all remaining classes below the threshold. The percentage in the center indicates the fraction of the dataset belonging to classes with fewer than the threshold number of samples. Panels correspond to thresholds of (a) ≥20, (b) ≥40, (c) ≥80, and (d) ≥100 samples.

Key Insights and Ideas

  • Latent Spaces Aren't Safe: A common misconception in federated learning is that sharing embeddings (latent representations) instead of raw images is inherently safe. The authors explicitly disprove this by training a simple decoder that successfully reconstructs recognizable facial images from plaintext embeddings, underscoring the absolute necessity of cryptographic masking frameworks like FLAKE.
  • Robustness to Extreme Skew: In medical federated learning, data is rarely distributed evenly. One hospital might only see a specific subset of rare syndromes due to regional demographics or founder effects. Remarkably, the federated model maintains stable performance and well-separated syndrome clusters even under highly heterogeneous data splits (simulated via Dirichlet distributions).
  • Optimal Aggregation Cadence: The authors found that aggregating local models every 5 epochs yielded slightly better performance than aggregating after every single epoch. This suggests that local models need a few epochs to learn meaningful patterns from local data before being synchronized globally.

Key Results

  • Performance Retention: Across all test-gallery settings (Frequent-Frequent, Rare-Rare, etc.), the federated GestaltMatcher service consistently retained over 90% of the accuracy of the fully centralized baseline model.
  • Silo Scalability: Increasing the number of participating silos from 4 to 16 caused virtually no performance degradation, proving the scalability of the decentralized network.
  • Quantifiable Stability: Under varying degrees of data heterogeneity ($\alpha = 0.5$ to $10$), intra-class and inter-class cosine distances remained highly stable (e.g., test intra-class distance varied minimally from 0.775 to 0.764), confirming that the global feature extractor preserves well-separated syndrome clusters despite severe data imbalance.

Limitations and Future Work

  • Semi-Honest Security Model: The current security architecture assumes a semi-honest (honest-but-curious) adversary model, meaning participants follow the protocol but might try to glean extra information. It does not protect against active adversaries who might maliciously alter data or gradients to poison the system.
  • Data Source Verification: There is currently no automated mechanism to verify the credibility of new institutions or the quality of their data before they are allowed to join the federated network.
  • Future Directions: The authors suggest exploring advanced cryptographic techniques, differential privacy to guard against active threats, adaptive aggregation strategies, and extending the framework to a multi-modal approach that integrates facial images with genomic data and clinical records.

Summary updated

BibTeX
@misc{unal2025accurate,
  author = {Ali Burak Ünal and Cem Ata Baykara and Peter Krawitz and Mete Akgün},
  title = {{Accurate and Private Diagnosis of Rare Genetic Syndromes from Facial Images with Federated Deep Learning}},
  year = {2025},
  eprint = {2509.10635},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.10635},
}
Figure