BERMUDA: a novel deep transfer learning method for single-cell RNA sequencing batch correction reveals hidden high-resolution cellular subtypes

Tongxin Wang, Travis S. Johnson, Wei Shao, Zixiao Lu, Bryan R. Helm, Jie Zhang, Kun Huang

Abstract

To fully utilize the power of single-cell RNA sequencing (scRNA-seq) technologies for identifying cell lineages and bona fide transcriptional signals, it is necessary to combine data from multiple experiments. We present BERMUDA (Batch Effect ReMoval Using Deep Autoencoders), a novel transfer-learning-based method for batch effect correction in scRNA-seq data. BERMUDA effectively combines different batches of scRNA-seq data with vastly different cell population compositions and amplifies biological signals by transferring information among batches. We demonstrate that BERMUDA outperforms existing methods for removing batch effects and distinguishing cell types in multiple simulated and real scRNA-seq datasets.

Introduction

In single-cell biology, researchers often need to combine data from multiple labs, platforms, or time points to gain a comprehensive view of cellular diversity. However, these datasets suffer from batch effects: systematic technical variations—such as different sequencing depths, "dropout" events, or library preparation protocols—that mask true biological signals.

Existing tools often struggle when the batches being combined are "unbalanced." For example, if Batch A contains immune cells and Batch B contains both immune and epithelial cells, older linear models or global alignment methods might force these different populations to overlap incorrectly. This creates "false similarities" and blurs the subtle differences that define rare cellular subtypes. BERMUDA (Batch Effect ReMoval Using Deep Autoencoders) addresses this by aligning similar cell clusters rather than entire batches, effectively removing technical noise while revealing high-resolution cellular subtypes.

Methods

BERMUDA treats batch correction as a domain adaptation problem in deep learning. Its architecture consists of a deep autoencoder trained with a multi-component loss function.

Overview of the BERMUDA workflow and autoencoder architecture.

The workflow involves several key steps:

  1. Individual Clustering: Before training, cells within each batch are clustered individually. Similarity scores between clusters across batches are calculated using a correlation-based approach (MetaNeighbor).
  2. Autoencoder Architecture: A standard encoder-decoder setup learns a low-dimensional "code" (embedding) of the gene expression data.
  3. Cluster-based MMD Loss: This is the core innovation. Instead of forcing the entire distribution of Batch A to match Batch B, BERMUDA applies Maximum Mean Discrepancy (MMD) loss only between pairs of clusters identified as similar. This allows shared cell types to merge while batch-specific cell types remain distinct.
  4. Reconstruction Loss: This ensures the low-dimensional embedding captures the essential biological information needed to reconstruct the original expression profiles.

By optimizing these losses simultaneously, the model finds a shared bottleneck space where technical biases are minimized, but biological heterogeneity is preserved.

Results and Insights

The authors evaluated BERMUDA against several state-of-the-art methods (mnnCorrect, BBKNN, Seurat v2/v3, and scVI) using simulated datasets, human pancreas datasets, and PBMC datasets.

Local vs. Global Alignment

A key insight from this work is that batch correction should be local. By aligning clusters rather than entire batches or individual cells, BERMUDA avoids "over-correction" where distinct cell types are erroneously merged. Because of the similarity threshold ($S_{thr}$), the model can ignore clusters that have no counterpart in other batches, preventing the loss of unique biological information.

Transferring Information and Discovery

BERMUDA can "transfer" resolution between batches. In a PBMC experiment, a "Pan T cell" batch alone showed no clear structure. However, after BERMUDA aligned it with a broader PBMC batch, the T cell subtypes became clearly distinguishable. In human pancreas data, BERMUDA identified subtle subpopulations of alpha and beta cells that were previously hidden. Differential expression analysis confirmed these were biologically meaningful subtypes related to pancreatic islet differentiation (e.g., marked by ARX and MAFA expression).

Quantitative Performance

BERMUDA consistently achieved superior scores across three metrics: divergence_score (measuring how well shared types mix), entropy_score (measuring how well unique types stay separate), and silhouette_score (measuring overall cluster quality). In complex simulations where only a subset of cell types were shared, BERMUDA was the only method to properly merge shared types while keeping unique types separate.

Discussion

While BERMUDA offers significant advantages, there are areas for future work. The initial clustering step relies on k-nearest neighbors, which may become a computational bottleneck as datasets scale to millions of cells. Integrating faster clustering algorithms could mitigate this. Additionally, the current framework is optimized for discrete cell clusters; future iterations could better handle continuous biological processes, such as cells transitioning along a developmental trajectory. Finally, while the similarity threshold ($S_{thr}$) is robust, it currently requires manual setting, which might be challenging for entirely unknown datasets.

Summary updated

BibTeX
@inproceedings{wang2019bermuda,
  author = {Tongxin Wang and Travis S. Johnson and Wei Shao and Zixiao Lu and Bryan R. Helm and Jie Zhang and Kun Huang},
  title = {{BERMUDA: a novel deep transfer learning method for single-cell RNA sequencing batch correction reveals hidden high-resolution cellular subtypes}},
  booktitle = {Genome},
  year = {2019},
  doi = {10.1186/s13059-019-1764-6},
}
Figure