TL;DR
This paper introduces "Campfire," a novel channel-agnostic masked autoencoder designed for fluorescence microscopy. Campfire effectively generalizes to out-of-distribution data, including different experimental conditions, perturbagens, and fluorescent markers, by employing a unique channel-agnostic architecture and a new evaluation scheme that isolates sources of distribution shift.
What Problem Does This Paper Address?
High-content screening (HCS) in phenotypic drug discovery relies heavily on fluorescence microscopy to analyze cellular responses to various perturbations. However, a significant challenge in this field is "distribution shift," where models trained on one set of experimental conditions fail to perform well on data from different conditions. This shift can arise from variations in experimental setups, the specific compounds or genetic modifications (perturbagens) used, and crucially, the fluorescent markers employed to visualize cellular components. Existing evaluation methods often confound these sources of shift, making it difficult to understand how specific model design choices impact generalization. This paper aims to address this by proposing a rigorous evaluation framework and a model, Campfire, that can generalize across these diverse sources of distribution shift.
Methods
The core of this work is the development of Campfire, a channel-agnostic masked autoencoder (MAE). Unlike traditional MAEs that might treat each channel independently or require specific channel configurations, Campfire uses a shared decoder for all channels. This design allows it to scale effectively to datasets with a variable number of fluorescent markers and handle out-of-distribution markers during inference.
Key methodological contributions include:
- Channel-Agnostic Architecture: Campfire processes image patches through a 3D convolutional layer that applies the same convolution to each channel. This allows it to be agnostic to the order, number, or type of fluorescent channels.
- Channel Embeddings: To retain channel-specific information, Campfire augments patch embeddings with learned channel embeddings. These are derived by averaging patch embeddings from the same channel and projecting them through a shared linear layer.
- Novel Evaluation Scheme: The authors propose a method to split the JUMP-CP dataset to isolate different sources of distribution shift. This allows for a more granular assessment of generalization capabilities, specifically evaluating performance on:
- New experimental plates (batch effects).
- Unseen perturbagens (compounds).
- Out-of-distribution (OOD) fluorescent markers.
- Transfer learning to new cell types.
- Self-Supervised Training: Campfire is trained using a masked autoencoder objective, where it learns to reconstruct masked image patches. This self-supervised approach allows it to learn rich, biologically relevant representations without explicit labels.
Datasets
The primary dataset used in this work is Source 3 of the JUMP-CP dataset. This dataset consists of images of cells perturbed by small molecules, featuring 25 TARGET2 plates and 237 COMPOUND plates. It includes millions of cells and a vast number of compound and genetic perturbations. The authors meticulously describe their strategy for splitting this dataset into training, validation, and test sets to isolate distribution shifts, particularly by holding out specific plates and compounds.
Key Insights and Ideas
- The Importance of Isolated Evaluation: The paper strongly advocates for evaluating models on specific sources of distribution shift rather than a confounded mix. This granular approach is crucial for understanding the true generalization capabilities of HCS models and guiding future development.
- Channel Agnosticism is Key for Scalability: By designing Campfire to be channel-agnostic, the authors enable it to handle datasets with varying numbers and types of fluorescent markers, a common scenario in HCS. This is a significant step towards building more robust and adaptable models.
- OOD Fluorescent Channels are Challenging: Generalizing to unseen fluorescent channels proved to be the most difficult task, highlighting the complexity of capturing information from novel imaging modalities.
- Self-Supervised Learning Yields Biologically Informed Features: Campfire's self-supervised training on the JUMP-CP dataset successfully distilled useful biological knowledge, outperforming ImageNet-pretrained baselines on various downstream tasks like compound prediction.
- Transfer Learning Mitigates Batch Effects: Campfire demonstrated superior performance in distinguishing between stimulations on a new macrophage dataset compared to an ImageNet-pretrained model, suggesting that pretraining on HCS data helps mitigate batch effects without explicit fine-tuning constraints.
Key Results
- Campfire outperformed baseline models (DinoViT-S8 and DinoViT-L14) on predicting compound of stimulation from single-cell embeddings, especially in out-of-distribution scenarios (OOD compounds and OOD plates). For instance, on the "OOD compound + OOD plate" task, Campfire achieved an accuracy of 0.220 ± 0.002, compared to 0.187 ± 0.003 for DinoViT-S8.
- The model demonstrated successful generalization to OOD experimental batches, perturbagens, and fluorescent markers.
- When evaluating channel integration, Campfire showed that combining channels provided better predictive accuracy than using single channels, and the optimal combination varied depending on the task (predicting control vs. held-out compounds).
- In transfer learning to a macrophage dataset, Campfire was significantly better than DinoViT-S8 at distinguishing between positive and negative controls, indicating its robustness to batch effects.
Limitations and Future Work
- OOD Channel Generalization: The authors acknowledge that generalizing to OOD fluorescent channels was the most challenging aspect. They suggest that training on a broader set of fluorescent channels and incorporating data from screens with different cell types could improve this capability.
- Dataset Scope: While Campfire was trained on the JUMP-CP dataset, future work should focus on leveraging data from multiple sources and increasing the diversity of cell types and fluorescent channels to develop a truly universal HCI model.
- Focus on Perturbation Prediction: The current work primarily focuses on predicting the compound of perturbation. The authors suggest that their proposed data splitting methodology can be extended to evaluate model performance on other biologically relevant tasks.
- Model Architecture: While Campfire's channel-agnostic design is a strength, further exploration of its architecture, particularly in how it integrates channel information, could yield further improvements.
Summary updated