Revealing Subtle Phenotypes in Small Microscopy Datasets Using Latent Diffusion Models

Anis Bourou, Biel Castaño Segade, Thomas Boyer, Valérie Mezger, Auguste Genovesio · DOI

Abstract

Identifying subtle phenotypic variations in cellular images is critical for advancing biological research and accelerating drug discovery. These variations are often masked by the inherent cellular heterogeneity, making it challenging to distinguish differences between experimental conditions. Recent advancements in deep generative models have demonstrated significant potential for revealing these nuanced phenotypes through image translation, opening new frontiers in cellular and molecular biology as well as the identification of novel biomarkers. Among these generative models, diffusion models stand out for their ability to produce high-quality, realistic images. However, training diffusion models typically requires large datasets and substantial computational resources, both of which can be limited in biological research. In this work, we propose a novel approach that leverages pre-trained latent diffusion models to uncover subtle phenotypic changes. We validate our approach qualitatively and quantitatively on several small datasets of microscopy images. Our findings reveal that our approach enables effective detection of phenotypic variations, capturing both visually apparent and imperceptible differences. Ultimately, our results highlight the promising potential of this approach for phenotype detection, especially in contexts constrained by limited data and computational capacity.

Introduction

In biological research, identifying how cells respond to stimuli—such as drug treatments or genetic mutations—is often complicated by natural cellular heterogeneity. Two healthy cells may appear more different from each other than a healthy cell does from a diseased one, effectively masking subtle visual phenotypes. While deep generative models offer a way to "translate" images between conditions to isolate these changes, state-of-the-art Diffusion Models typically require massive datasets and high computational power, which are rarely available in specialized biological studies.

This paper introduces Phen-LDiff, a framework designed to uncover these nuanced phenotypes using pre-trained Latent Diffusion Models (LDMs) and parameter-efficient fine-tuning. By adapting models trained on general internet imagery to the biological domain with as few as 50 to 100 images, Phen-LDiff enables researchers to visualize and quantify cellular changes that were previously imperceptible.

Methods: The Phen-LDiff Framework

The core of Phen-LDiff is the adaptation of Stable Diffusion 2, a model originally pre-trained on the massive LAION-5B dataset. To bridge the gap between natural images and multi-channel fluorescent microscopy without overfitting on small biological datasets, the authors employ parameter-efficient fine-tuning techniques: Low-Rank Adaptation (LoRA) and SVDiff. These methods freeze the majority of the model's weights, updating only a small fraction of parameters to learn the specific biological distribution.

The Phen-LDiff pipeline showing inversion and generation stages.

The translation process involves two primary steps:

  1. DDIM Inversion: A real source image (e.g., an untreated cell) is mapped into a latent noise representation using deterministic inversion.
  2. Conditional Generation: The model then performs the diffusion process forward from this latent code, conditioned on a target class (e.g., "treated"). This generates a synthetic version of the exact same cell as it would appear under the target condition, effectively canceling out background variability and isolating the phenotypic shift.

Experimental Evaluation

The authors validated Phen-LDiff across four diverse microscopy datasets, each representing a different biological challenge:

  • BBBC021: MCF-7 breast cancer cells, comparing untreated states to those treated with Latrunculin B (actin cytoskeleton disruption).
  • Golgi: HeLa cells treated with Nocodazole to observe effects on the Golgi apparatus.
  • LRKK2: Dopaminergic neurons comparing wild-type cells to those with the Parkinson’s-associated LRRK2-G2019S mutation.
  • Translocation: Monitoring the subcellular localization of NFκB protein in response to TNFα.

Results and Discussion

Phen-LDiff demonstrated a remarkable ability to capture both obvious and subtle phenotypes. Visually, the model successfully simulated complex changes such as the fragmentation of the Golgi apparatus and the reduction in dendritic complexity in neurons.

Comparison of real source images and synthetic 'fake' images generated by Phen-LDiff.

Quantitative and Computational Performance

Beyond visual inspection, the synthetic images were validated using CellProfiler to ensure biological accuracy. Physical measurements of the generated cells—such as Golgi area or neuron count—closely matched the statistical distributions of real ground-truth data.

Quantitatively, Phen-LDiff achieved state-of-the-art Fréchet Inception Distance (FID) scores. On the BBBC021 dataset, it reached an FID of 24.30, significantly outperforming CycleGAN (75.98) and the previous PhenDiff model (33.31). Furthermore, the approach is highly efficient; fine-tuning requires only approximately 2 hours on two NVIDIA L40S GPUs, making it accessible for labs with limited computational resources.

Generalization vs. Memorization

A key finding was that parameter-efficient tuning (LoRA/SVDiff) is essential for small-data regimes. While full fine-tuning led to the model memorizing specific training images, LoRA forced the model to learn the underlying biological features, allowing it to generalize to unseen cells. This capability transforms Phen-LDiff into a "virtual controlled experiment" tool, stripping away the noise of cellular variation to reveal novel biomarkers.

Conclusion

Phen-LDiff provides a powerful solution for phenotype detection in data-constrained environments. By leveraging the robust latent space of pre-trained diffusion models, it enables high-fidelity image translation that respects biological ground truth. While future work may focus on improving structural cycle consistency, the current framework is immediately applicable to drug discovery and disease research, where identifying subtle cellular responses is paramount.

Summary updated

BibTeX
@inproceedings{bourou2025revealing,
  author = {Anis Bourou and Biel Castaño Segade and Thomas Boyer and Valérie MEZGER and Auguste Genovesio},
  title = {{Revealing Subtle Phenotypes in Small Microscopy Datasets Using Latent Diffusion Models}},
  booktitle = {CVDD @ CVPR},
  year = {2025},
  doi = {10.48550/arxiv.2502.09665},
}
Figure