Abstract
Quantifying cellular phenotypes from microscopy images typically relies on hand-engineered features or supervised deep learning models requiring extensive manual labeling. We present "paired cell inpainting," a self-supervised method that learns biologically meaningful feature representations without human annotations. By training a neural network to predict the protein distribution of one cell based on another cell from the same image, the model captures high-quality features that outperform traditional methods and standard computer vision baselines in protein localization tasks.
Introduction
In high-throughput microscopy, "features" are the quantitative metrics used to describe cellular states. Historically, these features were hand-coded by experts (e.g., using tools like CellProfiler), a process that is often slow and prone to bias. While supervised convolutional neural networks (CNNs) offer a powerful alternative, they require massive labeled datasets, which are difficult to obtain for millions of cells across diverse biological conditions. Existing unsupervised approaches, such as standard autoencoders, often struggle because they prioritize reconstructing pixel-level noise and nuisance variations (like cell orientation) over underlying biological signals.
Methods: Paired Cell Inpainting
The proposed method leverages a novel pretext task called paired cell inpainting. This approach is based on the observation that cells within the same experimental well or image are generally genetically identical and subject to the same environmental conditions. Consequently, while individual cells may vary in morphology or orientation, the "logic" governing their protein distribution should remain consistent.
The architecture consists of a Source Cell Encoder, a Target Marker Encoder, and a decoder. During training:
- The model receives a "source cell" containing all imaging channels.
- It also receives the "structural markers" (such as the nucleus or cytoskeleton) of a different "target cell" from the same image.
- The model must then predict (inpaint) the protein distribution within the target cell.
By forcing the network to predict a pattern in a different cell, it is incentivized to ignore cell-specific quirks and instead learn an abstract, transferable representation of protein localization. After training, the Source Cell Encoder is used to extract feature vectors for downstream analysis.
Experimental Validation and Datasets
The method was validated across several large-scale datasets:
- CyCLOPS: A yeast dataset covering over 4,000 proteins.
- Human Protein Atlas (HPA): A human cell dataset featuring over 12,000 proteins and 600,000 single cells.
- Additional Yeast Datasets (NOP1pr-ORF & Nup49-RFP): Used to demonstrate flexibility across different imaging modalities, including brightfield.
Results
Paired cell inpainting demonstrated significant improvements over existing baselines:
- Accuracy: On a yeast protein localization benchmark, the method achieved 87.98% accuracy using a k-Nearest Neighbor (kNN) classifier. This outperformed CellProfiler (68.15%) and transfer learning from VGG16 (69.33%).
- Biological Discovery: The model identified rare phenotypes, such as "nucleolar rim" localization, which represents only ~0.18% of the HPA dataset.
- Robustness: Features were consistent across different cell lines, with cells of similar biological functions clustering closely in the feature space.
- Granularity: Unsupervised clustering revealed sub-clusters of proteins that are often grouped together by human experts, such as distinct types of nuclear speck patterns.
Discussion and Limitations
While paired cell inpainting is highly effective, it faces challenges with inherently stochastic or "punctate" (spotty) protein patterns. Since the exact location of such spots in one cell does not predict their location in another, the model tends to produce blurred, averaged predictions. Additionally, rare biological states (e.g., specific mitotic phases) are harder to learn because paired cells are unlikely to be in the same rare state simultaneously. Future work may involve incorporating adversarial losses to improve the sharpness of predictions and capture finer details.
Conclusion
Paired cell inpainting provides a robust, unsupervised framework for learning biological features from raw microscopy data. By exploiting the shared biological context of cells within an image, the method bypasses the need for manual labeling while providing superior performance in characterizing complex cellular phenotypes.
Summary updated