CELL-E: zero-shot sequence-to-image synthesis for protein localization prediction

Emaad Khwaja, Yun S. Song, Bo HuangResearch 2023

Abstract

Accurately predicting cellular activities of proteins based on their primary amino acid sequences would greatly improve our understanding of the proteome. In this paper, we present CELL-E, a text-to-image transformer model that generates 2D probability density images describing the spatial distribution of proteins within cells. Given an amino acid sequence and a reference image for cell or nucleus morphology, CELL-E predicts a more refined representation of protein localization, as opposed to previous in silico methods that rely on pre-defined, discrete class annotations of protein localization to subcellular compartments.

Introduction

Understanding where a protein localizes within a cell is critical for deciphering its biological function and its role in disease. Traditionally, computational biologists have treated this as a discrete classification problem: a model receives a sequence and outputs a label like "Nucleus" or "Cytoplasm."

However, biology is rarely that binary. Proteins often inhabit multiple compartments simultaneously, and their distribution changes dynamically based on the cell's shape, type, or stage in the cell cycle. Existing in silico methods fail to capture this spatial nuance. CELL-E seeks to bridge this gap by moving from discrete labels to generative images, providing a high-resolution, per-pixel prediction of protein density directly from amino acid sequences.

Methods

The architecture of CELL-E is heavily inspired by generative models like OpenAI’s DALL-E, but adapted for the specific constraints of biological data. The system utilizes a three-phase approach to integrate sequence and image data:

  1. Image Quantization (VQGAN): Vector Quantized Generative Adversarial Networks (VQGAN) are used to compress complex microscopy images into discrete "visual tokens." Two separate VQGANs are employed: one for the reference nucleus morphology and one for the target protein distribution.
  2. Transfer Learning with TAPE: To overcome the limitations of small biological datasets, the model uses "frozen" embeddings from a pre-trained protein language model called TAPE (based on BERT). This allows CELL-E to leverage a deep understanding of protein "grammar" without requiring millions of labeled images.
  3. The Transformer: A decoder-only transformer models the joint distribution of the amino acid sequence, the nucleus reference image tokens, and the protein distribution tokens.
The CELL-E architecture: A transformer-based model that integrates protein sequences, nucleus reference images, and protein distribution maps using VQGAN and TAPE embeddings.

When generating a prediction, the model calculates a weighted sum of potential image patches to create a continuous 2D Probability Density Function (PDF), which functions as a heatmap of predicted protein localization.

Datasets and Training

The model was trained and validated using the OpenCell library, which includes 1,311 CRISPR-edited HEK293T human cell lines. Each line features a specific protein fluorescently tagged and imaged via high-resolution confocal microscopy. To manage computational costs, the authors converted 3D image stacks into 2D maximum intensity projections for training.

Key Insights and Results

CELL-E demonstrates significant advantages in capturing spatial context and sequence-level functional motifs:

  • Spatial Context Sensitivity: By including a reference image of the nucleus, CELL-E adapts its predictions to specific cell morphologies. For example, it correctly predicted that the protein MAPK9 clusters around chromosomes during metaphase but spreads throughout the cell during interphase.
  • Zero-Shot Capabilities: The model can predict the localization of proteins it has never seen before. When tested with the sequence for Green Fluorescent Protein (GFP)—which is non-native to humans—the model correctly predicted a diffuse, non-specific distribution.
  • Sequence Understanding: The model has learned the functional meaning of specific amino acid motifs. By appending known Nuclear Localization Signals (NLS) to the GFP sequence, researchers observed CELL-E shift its predicted heatmap from the cytoplasm into the nucleus.
Zero-shot localization predictions for GFP and GFP-NLS fusions, demonstrating the model's ability to interpret functional amino acid motifs.

Quantitatively, CELL-E achieved a validation accuracy of 0.72 when used as a nuclear vs. non-nuclear classifier. While slightly behind specialized 1D classifiers like MuLoc (0.79), CELL-E provides a much richer, image-based output. Furthermore, by analyzing the transformer's attention weights, researchers can identify which parts of a sequence drive spatial predictions, effectively "discovering" functional motifs in a data-driven way.

Limitations and Future Work

The primary limitation of CELL-E is the scope of its training data, which is currently centered on HEK293T cells. As more open-source libraries like OpenCell emerge, the model's generalizability across different cell types will improve. Future iterations may include brightfield (white light) images as references to provide more context about cell boundaries and could potentially be used to predict other biological signatures, such as mass spectrometry profiles, directly from sequences.

Summary updated

BibTeX
@inproceedings{khwaja2023cell,
  author = {Emaad Khwaja and Yun S. Song and Bo Huang},
  title = {{CELL-E: zero-shot sequence-to-image synthesis for protein localization prediction}},
  booktitle = {Research},
  year = {2023},
  doi = {10.21203/rs.3.rs-2963881/v1},
}
Figure