English

Scalable Batch Correction for Cell Painting via Batch-Dependent Kernels and Adaptive Sampling

Machine Learning 2026-02-02 v1 Computation

Abstract

Cell Painting is a microscopy-based, high-content imaging assay that produces rich morphological profiles of cells and can support drug discovery by quantifying cellular responses to chemical perturbations. At scale, however, Cell Painting data is strongly affected by batch effects arising from differences in laboratories, instruments, and protocols, which can obscure biological signal. We present BALANS (Batch Alignment via Local Affinities and Subsampling), a scalable batch-correction method that aligns samples across batches by constructing a smoothed affinity matrix from pairwise distances. Given nn data points, BALANS builds a sparse affinity matrix ARn×nA \in \mathbb{R}^{n \times n} using two ideas. (i) For points ii and jj, it sets a local scale using the distance from ii to its kk-th nearest neighbor within the batch of jj, then computes AijA_{ij} via a Gaussian kernel calibrated by these batch-aware local scales. (ii) Rather than forming all n2n^2 entries, BALANS uses an adaptive sampling procedure that prioritizes rows with low cumulative neighbor coverage and retains only the strongest affinities per row, yielding a sparse but informative approximation of AA. We prove that this sampling strategy is order-optimal in sample complexity and provides an approximation guarantee, and we show that BALANS runs in nearly linear time in nn. Experiments on diverse real-world Cell Painting datasets and controlled large-scale synthetic benchmarks demonstrate that BALANS scales to large collections while improving runtime over native implementations of widely used batch-correction methods, without sacrificing correction quality.

Keywords

Cite

@article{arxiv.2601.22331,
  title  = {Scalable Batch Correction for Cell Painting via Batch-Dependent Kernels and Adaptive Sampling},
  author = {Aditya Narayan Ravi and Snehal Vadvalkar and Abhishek Pandey and Ilan Shomorony},
  journal= {arXiv preprint arXiv:2601.22331},
  year   = {2026}
}

Comments

40 pages, many figures

R2 v1 2026-07-01T09:26:43.756Z