Evaluating batch correction methods for image-based cell profiling

John Arévalo, Ellen Su, Jessica Ewald, Robert van Dijk, Anne E. Carpenter, Shantanu Singh

Abstract

High-throughput image-based profiling platforms are powerful technologies capable of collecting data from billions of cells exposed to thousands of perturbations in a time- and cost-effective manner. Therefore, image-based profiling data has been increasingly used for diverse biological applications, such as predicting drug mechanism of action or gene function. However, batch effects severely limit community-wide efforts to integrate and interpret image-based profiling data collected across different laboratories and equipment. To address this problem, we benchmark ten high-performing single-cell RNA sequencing (scRNA-seq) batch correction techniques, representing diverse approaches, using a newly released Cell Painting dataset, JUMP. We focus on five scenarios with varying complexity, ranging from batches prepared in a single lab over time to batches imaged using different microscopes in multiple labs. We find that Harmony and Seurat RPCA are noteworthy, consistently ranking among the top three methods for all tested scenarios while maintaining computational efficiency. Our proposed framework, benchmark, and metrics can be used to assess new batch correction methods in the future. This work paves the way for improvements that enable the community to make the best use of public Cell Painting data for scientific discovery.

Introduction: The Challenge of Batch Effects in Imaging

In functional genomics and drug discovery, the "Cell Painting" assay is a cornerstone technique, using fluorescent dyes to capture thousands of morphological features from millions of cells. However, these images are notoriously sensitive to technical noise—known as "batch effects"—introduced by variations in reagent lots, experimental dates, or microscope hardware.

When researchers attempt to integrate data from multiple laboratories to build global biological maps, these batch effects often obscure the underlying biological signals. While the single-cell genomics community has developed numerous tools to address this, the imaging community previously lacked a systematic evaluation of which methods effectively translate to morphological data, which possesses different statistical properties than gene expression counts.

Methodology: A Standardized Benchmarking Framework

To address this gap, researchers "stress-tested" ten high-performing batch correction methods originally designed for single-cell RNA sequencing (scRNA-seq). These methods encompass diverse algorithmic strategies, including linear/Bayesian approaches (Combat, Sphering), neural networks (scVI, DESC), and nearest-neighbor or manifold alignment techniques (MNN, fastMNN, Scanorama, Harmony, Seurat-CCA, and Seurat-RPCA).

Overview of the image-based profiling and batch correction evaluation pipeline.

The evaluation utilized a standardized four-step baseline preprocessing pipeline (feature filtering, normalization, and selection). Performance was measured using a weighted "Overall Score" that balanced two critical, often competing objectives:

  1. Batch Removal: The ability to mix data from different technical sources effectively.
  2. Bio-preservation: Ensuring that biological replicates (e.g., the same drug treatment) remain distinguishable and similar after correction.

Datasets and Scenarios

The study leveraged the JUMP (Joint Undertaking for Morphological Profiling) Cell Painting dataset, a massive public resource containing over 140,000 perturbations. The benchmark was divided into five scenarios of increasing difficulty, ranging from single-lab/single-microscope setups (Scenario 1) to the "boss level" involving multiple labs, different microscope types, and tens of thousands of compounds (Scenario 5).

Key Results and Insights

The benchmark revealed that algorithms designed for discrete RNA-seq counts translate remarkably well to the continuous features of image analysis. However, the complexity of the batch effect significantly impacts method efficacy. While simple preprocessing suffices for single-lab data, hardware variations (different microscope optics) introduce the most challenging technical noise, necessitating sophisticated anchor-based methods.

Performance metrics for Scenario 5, the most challenging benchmark involving multiple labs and different microscope types.

Harmony and Seurat-RPCA emerged as the most robust performers, consistently ranking in the top tier across all five scenarios. They provided the optimal balance of technical noise removal and biological signal preservation. While Seurat-CCA often achieved high batch removal scores, its high computational cost makes it less suitable for the massive scale of modern imaging datasets. Furthermore, the study highlighted a "language barrier" in the ecosystem, as several top-performing methods are implemented in R, while the imaging community primarily utilizes Python.

Conclusion

This work provides the first comprehensive roadmap for batch correction in image-based profiling. By identifying robust and efficient tools like Harmony and Seurat-RPCA, the study enables researchers to better integrate public Cell Painting data. Future efforts may move beyond tabular feature correction toward using deep learning for domain adaptation directly on raw pixel data, further bridging the gap between disparate imaging datasets.

Summary updated

BibTeX
@inproceedings{arevalo2024evaluating,
  author = {John Arévalo and Ellen Su and Jessica Ewald and Robert van Dijk and Anne E. Carpenter and Shantanu Singh},
  title = {{Evaluating batch correction methods for image-based cell profiling}},
  booktitle = {Nature Communications},
  year = {2024},
  doi = {10.1038/s41467-024-50613-5},
}
Figure