Grad-CAMO: Learning Interpretable Single-Cell Morphological Profiles from 3D Cell Painting Images

Vivek Gopalakrishnan, Jingzhe Ma, Zhiyong XieWorkshops @ CVPR 2024

Abstract

In drug discovery, morphological profiling transforms cell images into feature vectors to describe drug effects. While deep learning models offer automated feature extraction, they often function as "black boxes," potentially relying on non-biological confounders like background noise or imaging artifacts. We present Grad-CAMO (Grad-CAM Overlap), a quantitative metric that measures the alignment between a model's attention and a cell's physical boundaries in 3D microscopy. Our analysis of 3D EfficientNet models reveals that high predictive accuracy does not guarantee biological relevance, with many models "cheating" by focusing on neighboring cells or background artifacts. Grad-CAMO enables automated auditing and filtering of morphological profiles to ensure biological interpretability.

Introduction

The field of drug discovery is shifting from handcrafted algorithms (like CellProfiler) toward deep learning models that automatically learn features from cellular images. However, in the complex domain of 3D microscopy, models are prone to overfitting on "confounders"—imaging noise or neighboring cell structures. If a model achieves high accuracy by exploiting these irrelevant features, the resulting morphological profiles are biologically meaningless. Grad-CAMO addresses this by auditing whether a model is actually looking at the cell it is supposed to analyze.

Methods and Pipeline

The researchers developed a pipeline to process 3D "Cell Painting" images, which use six different stains to highlight cellular structures.

  1. Segmentation: Individual cells are segmented from 3D Z-stacks using Cellpose.
  2. Feature Extraction: A 3D EfficientNet-B0 is trained to predict drug treatment doses from individual cell crops, generating a morphological profile (feature vector).
  3. Interpretability Audit: Grad-CAM is used to generate heatmaps of the model's attention. The Grad-CAMO score is then calculated as the ratio of attention falling within the cell's segmentation mask versus the total attention in the crop.
The Grad-CAMO pipeline: from 3D z-stacks to morphological profiles and interpretability heatmaps.

Key Results and Insights

Despite achieving a respectable 85% accuracy in predicting drug doses, the Grad-CAMO audit revealed significant issues with model focus.

  • The "Cheating" Rate: Only 30% of the learned morphological profiles showed significant overlap (score > 0.25) with the actual cell boundaries.
  • Three Modes of Attention: The study identified that models often focus on the target cell (On-target), neighboring cells (Neighbor-focused), or empty space (Background-focused).
  • Batch Effects: UMAP visualizations confirmed that even with standard corrections, models remain highly sensitive to technical noise, with cells often clustering by imaging site rather than biological treatment.
Detailed segmentation results using Cellpose, illustrating the predicted masks and flow fields used to define cell boundaries.

Conclusion and Future Directions

Grad-CAMO serves as an automated auditor for high-throughput screening, allowing researchers to filter out feature vectors derived from "distracted" models. Future work may involve using Grad-CAMO as a regularization loss function during training to force models to focus on biological targets from the outset. Additionally, applying this metric to Vision Transformers (ViTs) could provide further insights into the self-attention mechanisms of modern architectures.

Summary updated

BibTeX
@inproceedings{gopalakrishnan2024grad,
  author = {Vivek Gopalakrishnan and Jingzhe Ma and Zhiyong Xie},
  title = {{Grad-CAMO: Learning Interpretable Single-Cell Morphological Profiles from 3D Cell Painting Images}},
  booktitle = {Workshops @ CVPR},
  year = {2024},
}
Figure