Self-Supervised Learning of Phenotypic Representations from Cell Images with Weak Labels

Jan Oscar Cross-Zamirski, Guy B. Williams, Elizabeth Mouchet, Carola-Bibiane Schönlieb, Riku Turkki, Yinhai Wang

TL;DR

Researchers have developed WS-DINO, a framework that adapts self-supervised vision transformers to learn cellular "fingerprints" (phenotypic representations) using easily available metadata as weak labels. By training the model to recognize similarities across different images of the same chemical treatment, they achieved state-of-the-art accuracy in predicting drug mechanisms without the need for slow, computationally expensive single-cell segmentation.

What Problem Does This Paper Address?

In drug discovery, scientists use high-content imaging (HCI) to see how cells respond to different chemical compounds. The goal is to determine a drug's Mechanism of Action (MOA)—essentially, how it works inside the cell.

Traditionally, this requires "image-based profiling," which usually involves a grueling pre-processing step: segmenting every single cell in an image. This is not only computationally heavy but also prone to errors when cells are crowded or have unusual shapes. Furthermore, standard deep learning models (like CNNs) often struggle to generalize to new treatments and act as "black boxes," making it hard for biologists to trust their predictions.

The authors address these gaps by asking: Can we learn powerful, interpretable cellular representations directly from full images by leveraging the "weak labels" (like compound names) that we already have in our experimental metadata?

Methods

The authors introduce WS-DINO (Weakly Supervised DINO). It builds on DINO, a self-supervised learning method that uses a "teacher-student" distillation setup with a Vision Transformer (ViT) backbone.

In standard DINO, a student network learns to match the output of a teacher network when both are shown different "crops" (augmentations) of the same image. WS-DINO introduces a clever twist:

  1. Weak Label Constraint: Instead of taking crops from the same image, the student and teacher are shown crops from different images that share the same weak label (e.g., the same chemical compound or treatment).
  2. Feature Extraction: This forces the model to ignore image-specific noise or artifacts and instead focus on the underlying biological features characteristic of that specific treatment.
  3. No Segmentation: The model looks at the image level, bypassing the need to crop out individual cells.
  4. Batch Correction: They use Typical Variation Normalization (TVN) as a post-processing step to account for "batch effects"—the subtle variations that occur when experiments are run on different days or with different equipment.

Datasets

The study primarily uses the BBBC021 dataset, a well-known benchmark in the field. It consists of:

  • Cell Type: MCF-7 breast cancer cells.
  • Stains: Three fluorescent channels (DNA, F-actin, and β-tubulin).
  • Scale: 38 unique compounds across 103 treatments, resulting in 12 distinct Mechanisms of Action.
  • Control: 1,320 images of DMSO-treated (control) cells.

Key Insights and Ideas

  • Weak Labels are Strong Enough: Metadata like "compound name" is often treated as secondary, but using it to guide self-supervised learning provides enough signal to outperform fully supervised methods.
  • Attention to Detail: Because the model uses a Vision Transformer, it generates "self-attention maps." These maps show exactly which parts of the image the model is looking at. As seen in Figure 1, the model naturally learns to focus on biologically relevant structures like nuclei and cytoskeletal fibers without being explicitly told what a cell is.
Figure 1: Examples of BBBC021 images with their coupled self-attention maps. Left two columns: DNA channel. Middle two columns: β-tubulin channel. Right two columns: F-actin channel. The first two rows show the images at full size, and the bottom row displays a section of an image zoomed in by a scale factor of four. Produced from WS-DINO weights with compound as the weak label.
  • Implicit Batch Correction: The authors suggest that by forcing the model to find similarities across different images (which might come from different experimental batches), WS-DINO might inherently learn to be more robust to batch-related noise.

Key Results

WS-DINO set a new bar for performance on the BBBC021 dataset, particularly when using the "compound" as the weak label:

  • Not-Same-Compound (NSC): Achieved 98% accuracy in MOA prediction.
  • Not-Same-Compound-and-Batch (NSCB): Achieved 96% accuracy. This is a more rigorous test where the model must identify the MOA of a compound it hasn't seen in that specific experimental batch.

As shown in Table 3, WS-DINO outperforms a wide variety of existing methods, including those that rely on single-cell segmentation and complex supervised architectures.

Table 3: A comparison of our method to other selected studies using the BBBC021 annotated dataset.

Limitations and Future Work

While the results are impressive, the authors note a few areas for growth:

  • Hardware Constraints: The batch size was limited to 16 due to GPU memory. In self-supervised learning, larger batch sizes often lead to even better performance.
  • Generalization: The method was validated on one major dataset. Testing on more diverse, noisier, or larger-scale datasets is a necessary next step.
  • Partial Labels: Real-world drug discovery often involves "partially labeled" data (where only some MOAs are known). The authors suggest that WS-DINO is well-suited for these scenarios, but this remains to be tested in future studies.
  • Architecture Evolution: The framework is general; it could potentially be improved by swapping DINO for newer self-supervised algorithms like Masked Siamese Networks.

Summary updated

BibTeX
@misc{crosszamirski2022self,
  author = {Jan Oscar Cross-Zamirski and Guy B. Williams and Elizabeth Mouchet and Carola-Bibiane Schönlieb and Riku Turkki and Yinhai Wang},
  title = {{Self-Supervised Learning of Phenotypic Representations from Cell Images with Weak Labels}},
  year = {2022},
  eprint = {2209.07819},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.07819},
}
Figure