Abstract
Analyzing the morphology of cells in microscopy images can provide insights into the mechanism of compounds or the function of genes. Addressing this task requires methods that can not only extract biological information from the images, but also ignore technical variations, i.e., changes in experimental procedure or differences between equipment used to collect microscopy images. We propose Treatment ExemplArs with Mixture-of-experts (TEAMs), an embedding learning approach that learns a set of experts that are specialized in capturing technical variations in our training set and then aggregates specialists' predictions at test time. Thus, TEAMs can learn powerful embeddings with less technical variation bias by minimizing the noise from every expert. To train our model, we leverage Treatment Exemplars that enable our approach to capture the distribution of the entire dataset in every minibatch while still fitting into GPU memory. We evaluate our approach on three datasets for tasks like drug discovery, boosting performance on identifying the true mechanism of action of cell treatments by 5.5-11% over the state-of-the-art.
The Challenge: Biological Signal vs. Technical Noise
In drug discovery, image-based profiling is used to observe how compounds affect cell morphology. Ideally, researchers want to group drugs by their Mechanism of Action (MoA)—the specific biological pathway they target. However, two major hurdles complicate this process:
- Technical Variation (Batch Effects): Images taken on different days or with different equipment often exhibit "noise" that can overshadow biological signals. Standard AI models frequently overfit to these experimental quirks.
- Weak Labels: True MoA labels are rarely available for every compound during training. Models typically rely on "treatment" labels, which can lead to representations that capture batch-specific artifacts rather than general biological truths.
The TEAMs Framework
The authors introduce TEAMs (Treatment ExemplArs with Mixture-of-experts), which utilizes three core architectural innovations to create robust cell "fingerprints."
1. Learnable Treatment Exemplars
Instead of comparing cells only within a small, memory-limited minibatch, TEAMs maintains a "canonical representation" (an exemplar) for every treatment in the entire dataset. During training, cells are encouraged to move closer to their respective treatment's exemplar and further from others. This allows the model to effectively "see" the global distribution of the dataset in every training step.
2. Mixture-of-Experts (MoE)
To handle technical noise, the model employs multiple "expert" layers. Each expert specializes in a specific technical variation (e.g., a specific lab batch). While only the relevant expert is active during training, the model aggregates predictions from all experts at test time. This ensemble approach helps cancel out spurious correlations, leaving a cleaner biological signal.
3. Feature Memoization
A memory bank stores embeddings from previous batches, effectively increasing the batch size without additional GPU memory requirements. This provides more stable gradients and helps the model learn more consistent features across the dataset.
Experimental Results
The model was evaluated on three large-scale datasets from the Broad Bioimage Benchmark Collection (BBBC), including high-throughput compound screens (BBBC022, BBBC036) and genetic over-expression screens (BBBC037). These datasets contain over a million individual cell images.
- MoA Identification: TEAMs outperformed the previous state-of-the-art by 5.5% to 11% across the three datasets in identifying the true mechanism of action.
- Robustness: The MoE approach proved 1-1.5% more accurate than traditional adversarial alignment. This suggests that specializing in and then aggregating noise is more effective than attempting to erase batch differences entirely.
- Visual Clarity: UMAP visualizations demonstrate that TEAMs creates much tighter, more homogeneous clusters for cells sharing the same biological mechanism compared to standard classification models.
Discussion and Future Work
While TEAMs excels at separating different treatments, the authors noted it is slightly less effective at separating treated cells from the "control" (untreated) group, as the model does not explicitly account for the "null" state. Future research will focus on integrating control cell logic into the exemplar framework and testing the model's ability to generalize to completely unseen experimental batches.
Reference: Wang, S., Lu, M., Moshkov, N., Caicedo, J. C., & Plummer, B. A. (2021). Anchoring to Exemplars for Training Mixture-of-Expert Cell Embeddings. arXiv:2112.03208v1.
Summary updated