Abstract
Measuring the phenotypic effect of treatments on cells through imaging assays is an efficient and powerful way of studying cell biology, and requires computational methods for transforming images into quantitative data that highlight phenotypic outcomes. Here, we present an optimized strategy for learning representations of treatment effects from high-throughput imaging data, which follows a causal framework for interpreting results and guiding performance improvements. We use weakly supervised learning (WSL) for modeling associations between images and treatments, and show that it encodes both confounding factors and phenotypic features in the learned representation. To facilitate their separation, we constructed a large training dataset with Cell Painting images from five different studies to maximize experimental diversity, following insights from our causal analysis. Training a WSL model with this dataset successfully improves downstream performance, and produces a reusable convolutional network for image-based profiling, which we call Cell Painting CNN-1. We conducted a comprehensive evaluation of our strategy on three publicly available Cell Painting datasets, discovering that representations obtained by the Cell Painting CNN-1 can improve performance in downstream analysis for biological matching up to 30% with respect to classical features, while also being more computationally efficient.
Introduction
In functional genomics and drug discovery, image-based profiling assays like Cell Painting are used to quantify the effects of perturbations—such as chemical compounds or genetic mutations—on cellular morphology. Traditionally, this process relied on hand-engineered features extracted via software like CellProfiler. While robust, these features often fail to capture subtle biological signals and are susceptible to "batch effects," where technical noise from experimental conditions (e.g., different plates or days) outweighs the biological signal of interest. This paper addresses these challenges by proposing a deep learning-based approach that leverages a causal framework to disentangle biological signals from technical noise.
Methodology
We propose an optimized representation learning strategy using Weakly Supervised Learning (WSL). Instead of explicit phenotypic labels, the model is trained on a pretext task: predicting which treatment was applied to an individual cell. This approach is grounded in a causal framework that identifies the relationships between interventions (T), phenotypes (Y), observations (O), and confounders (C).
To ensure the model learns generalizable biological features rather than experiment-specific noise, we aggregated a massive training dataset of 8.3 million single cells from five diverse studies (BBBC037, BBBC022, BBBC036, BBBC043, and LINCS). We employed an EfficientNet-B0 architecture to extract 672-dimensional feature vectors from single-cell crops. To disentangle biological signals from batch effects, we applied "sphering" (Typical Variation Normalization), a linear transformation that suppresses technical variance identified in control cells.
Results and Evaluation
The resulting model, Cell Painting CNN-1, was evaluated on its ability to perform biological matching—identifying treatments with similar mechanisms of action.
Key findings include:
- Performance Gains: Cell Painting CNN-1 improved biological matching performance by up to 30% compared to classical hand-engineered features.
- Domain Specificity: The model consistently outperformed networks pre-trained on natural images (ImageNet), demonstrating that specialized training on microscopy data is essential.
- Computational Efficiency: The model produces a more compact representation (672 dimensions vs. ~1,700 for CellProfiler), reducing storage and downstream processing time.
- Robustness to Confounders: By training across multiple studies, the model learned features that generalize across different technical environments, effectively overcoming batch effects.
Conclusion
Cell Painting CNN-1 establishes a new standard for image-based profiling. By combining large-scale diverse datasets with a causal understanding of experimental noise, we have developed a tool that significantly enhances the sensitivity and efficiency of phenotypic discovery. Future research will focus on non-linear batch correction methods and expanding the model's applicability to a wider range of cell types and assay conditions.
Summary updated