MorphoDiff: Cellular Morphology Painting with Diffusion Models

Zeinab Navidi, Jun Ma, Esteban Miglietta, Le Liu, Anne E Carpenter, Beth A Cimini, Benjamin Haibe-Kains, Bo Wang

Introduction

In drug discovery and functional genomics, understanding how a cell’s physical structure (morphology) changes in response to a stimulus—like a new drug or a gene knockout—is vital. The "Cell Painting" assay is the gold standard for this, using fluorescent dyes to highlight different cellular components. However, physically running these experiments for the millions of possible chemical compounds or genetic variations is prohibitively expensive and slow.

While AI has made strides in predicting transcriptomic changes, predicting high-resolution visual changes has been difficult. Previous generative models were often limited to low-resolution "patches" of single cells, ignoring critical context like cell density and intercellular interactions. MorphoDiff bridges this gap by generating full-scale, high-resolution images that capture complex biological signals across diverse types of interventions. By replacing text prompts with biological and chemical embeddings, MorphoDiff allows researchers to "paint" how cells will look under specific experimental conditions, potentially accelerating drug discovery through high-fidelity in silico screening.

Methods: Guiding Diffusion with Biological Context

MorphoDiff adapts the Stable Diffusion framework, a type of latent diffusion model (LDM), for biological imaging. Instead of using text-to-image prompts, the authors developed a Perturbation Projection Module to guide the image generation.

MorphoDiff Architecture
  • Genetic Guidance: For gene-related perturbations, the model uses scGPT, a foundation model trained on millions of single-cell transcriptomic profiles, to create embeddings that capture gene-to-gene relationships.
  • Chemical Guidance: For small molecules, it uses RDKit to generate embeddings based on molecular structures (SMILES strings).
  • The Generative Loop: These embeddings are fed into a 2D U-Net during the denoising process. The model learns to transform random noise into a structured image of cells that specifically reflects the visual characteristics associated with that specific genetic or chemical input.

Datasets

The authors validated MorphoDiff on three major open-source Cell Painting datasets:

  1. RxRx1: Contains over 1,000 genetic perturbations (siRNA) across multiple cell types.
  2. BBBC021: Features MCF7 breast cancer cells treated with 113 small molecules at various concentrations.
  3. Rohban et al. dataset: Includes U2OS cells with over-expressed genes.

Key Results and Insights

MorphoDiff consistently outperformed unconditional Stable Diffusion and existing state-of-the-art methods like IMPA. In the RxRx1 dataset, it achieved a Fréchet Inception Distance (FID) of 0.78, significantly better than the baseline's 1.15.

Visual comparison of generated cell morphologies

Beyond generating realistic-looking cells, MorphoDiff generates biologically meaningful ones. When the generated images were analyzed using standard bio-image software (CellProfiler), the extracted features clustered accurately by Mechanism of Action (MOA). This indicates the model successfully learned the visual "signature" of how specific drug classes affect cells.

Furthermore, the model captures rare but biologically significant phenotypes, such as bi-nucleated cells or cells in specific stages of mitosis, which are often key indicators of a drug's effect. By leveraging structural similarity in the embedding space, MorphoDiff can even predict the morphological response to "unseen" drugs in a zero-shot manner.

Limitations and Future Work

While highly effective, MorphoDiff has a few limitations:

  • Channel Compression: Cell Painting typically uses 5 or 6 fluorescent channels, but this study compressed them into 3 RGB channels to fit standard diffusion architectures. This likely results in some loss of specific biological information.
  • Covariate Integration: The current model doesn't explicitly account for drug dosage or specific cell-line variations as separate input variables, which are critical for precision medicine.
  • Joint Training: The authors suggest that jointly training the perturbation encoders and the generative model, rather than using pre-trained encoders, could further improve prediction accuracy.

By providing a way to explore the perturbational landscape in silico, MorphoDiff represents a significant step toward more efficient, image-based drug discovery.

Summary updated

BibTeX
@inproceedings{navidi2025morphodiff,
  author = {Zeinab Navidi and Jun Ma and Esteban Miglietta and Le Liu and Anne E Carpenter and Beth A Cimini and Benjamin Haibe-Kains and BO WANG},
  title = {{MorphoDiff: Cellular Morphology Painting with Diffusion Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=PstM8YfhvI},
}

Loading related content...

Figure