Sweetwater: An interpretable and adaptive autoencoder for efficient tissue deconvolution

Jesús de la Fuente, Naroa Legarra, Guillermo Serrano, Ana García Osta, Krishna R. Kalari, Carlos Fernandez‐Granda, Idoia Ochoa, Mikel Hernáez, Fernandez-Granda, Carlos, Ochoa, Idoia, Hernaez, MikelarXiv 2023 · DOI · arXiv

TL;DR

Sweetwater is a new deep learning model that accurately estimates cell type proportions in bulk tissue samples using scRNA-seq data. It's adaptive, interpretable, and can even learn from raw sequencing files (FASTQ), overcoming limitations of existing methods like reliance on specific reference datasets and lack of transparency.

What Problem Does This Paper Address?

Single-cell RNA sequencing (scRNA-seq) provides incredibly detailed gene expression data at the individual cell level, revolutionizing our understanding of cellular heterogeneity. However, scRNA-seq is expensive and technically challenging, making it impractical for large-scale studies or routine clinical use. Bulk RNA-seq, on the other hand, is more affordable and widely available but loses the fine-grained cellular resolution.

Tissue deconvolution aims to bridge this gap by estimating the proportions of different cell types within a bulk RNA-seq sample, using scRNA-seq data as a reference. Existing deconvolution methods face several hurdles:

  • Reference Dependency: They often require a high-quality, specific scRNA-seq reference dataset, which can be difficult to obtain or curate.
  • Pseudobulk Generation: Creating simulated "pseudobulk" samples from scRNA-seq data for training involves complex choices about gene and cell numbers, and the impact of these choices isn't well-understood.
  • Distribution Shifts: Pseudobulk samples and real bulk RNA-seq samples often have different statistical properties (distribution shifts), making it hard for models trained on one to generalize to the other.
  • Black Box Nature: Many deconvolution tools are "black boxes," meaning their internal workings are opaque, making it difficult to trust their results or understand why they make certain predictions.

This paper introduces Sweetwater to address these limitations, offering a more robust, adaptable, and interpretable solution.

Methods

Sweetwater is built upon a deep autoencoder architecture, a type of neural network designed for learning efficient data representations. It consists of three main subnetworks:

  1. Encoder: Compresses the input gene expression data into a lower-dimensional "latent space."
  2. Decoder: Reconstructs the original gene expression data from the latent space.
  3. Deconvolver: Takes the latent representation and outputs the estimated cell type fractions.

What's novel about Sweetwater's approach:

  • Adaptive Architecture: The network's size dynamically adjusts based on the number of input genes, making it versatile.
  • Three-Phase Training:
    • Phase I: Focuses on reconstructing simulated pseudobulk samples, learning to capture basic gene expression patterns.
  • Phase II: Refines the encoder-decoder by reconstructing real bulk RNA-seq or microarray data, helping to bridge the distribution shift between simulated and real samples.
  • Phase III: Trains the deconvolver to predict cell type fractions using the learned representations from Phases I and II.
  • FASTQ File Training: A key innovation is the ability to train Sweetwater using raw FASTQ files from FACS-sorted cell populations. This bypasses the need for pre-processed scRNA-seq data and can potentially reduce platform-specific biases.
  • Interpretability with DeepLIFT: The authors use DeepLIFT, a technique for explaining neural network predictions, to understand which genes are most influential in Sweetwater's deconvolution process.

Datasets

Sweetwater was trained and evaluated on several publicly available datasets:

  • Human Bone Marrow: scRNA-seq data and bulk RNA-seq data from isolated hematopoietic stem cells (HSC), megakaryocyte-erythroid progenitors (MEP), and granulocyte-monocyte progenitors (GMP).
  • Human Peripheral Blood Mononuclear Cells (PBMC): Multiple scRNA-seq and microarray datasets.
  • Human Brain Cortex: snRNA-seq and bulk RNA-seq data.

A novel aspect is the use of FACS-sorted FASTQ files for training, which the authors propose as a new way to generate training data that can potentially outperform traditional scRNA-seq references.

Key Insights and Ideas

  • Bridging the Gap with Latent Space: Sweetwater's multi-phase training, particularly Phase II, helps create a latent space that better aligns simulated and real data, mitigating the distribution shift problem. This is crucial for accurate deconvolution of real-world samples.
  • FASTQ Files as a Powerful Reference: Training directly on raw FASTQ files is a significant advancement. It reduces reliance on curated scRNA-seq datasets and can potentially overcome biases introduced by scRNA-seq processing pipelines.
  • Interpretability Reveals Biological Relevance: Using DeepLIFT, the authors show that Sweetwater doesn't just produce numbers; it learns to identify biologically meaningful cell type marker genes. This increases confidence in the model's predictions and provides insights into cellular biology.
  • Adaptive Architecture is Key: The ability of the autoencoder to adapt its structure based on the number of genes is essential for handling diverse datasets and gene subsets effectively.

Key Results

  • State-of-the-Art Performance: Sweetwater achieved competitive or superior Concordance Correlation Coefficient (CCC) scores compared to established deconvolution methods (Scaden, TAPE, CIBERSORTx, Bayesprism, and a baseline XGBoost model) across multiple datasets.
  • Robustness to Gene Subsets: Sweetwater maintained stable and above-average performance across different numbers of selected genes, unlike some other methods that showed high variance.
  • Improved Generalization: The model demonstrated better generalization to real bulk RNA-seq and microarray samples compared to methods that struggled with distribution shifts.
  • Interpretability Confirmed: DeepLIFT analysis revealed that Sweetwater correctly identifies known and newly discovered cell type marker genes, and functional enrichment analysis of these genes aligns with known cell-specific biological functions.
  • Efficient Training: While not the absolute fastest, Sweetwater offers a good balance of performance and computational efficiency, outperforming some methods like Scaden in terms of speed.
  • FASTQ Training Advantage: When trained on FASTQ files, Sweetwater achieved nearly perfect correlation and minimal error on simulated bone marrow bulk RNA-seq samples, outperforming scRNA-seq references in this scenario.

Limitations and Future Work

  • Distribution Shift Still Exists: The authors acknowledge that a gap remains in perfectly deconvolving simulated versus real bulk samples, suggesting further research is needed to minimize distribution shifts.
  • Pseudobulk Limitations: While Sweetwater is robust, the inherent differences between pseudobulk and actual bulk samples, especially in complex tissues like the brain, still pose a challenge.
  • Future Directions: The authors suggest exploring more sophisticated ways to build reliable simulated samples, potentially by minimizing technical biases and investigating non-linear cell aggregation. The interpretability of Sweetwater also opens doors for deeper biological discovery.

Summary updated

Abstract

Single-cell RNA-sequencing (scRNA-seq) stands as a powerful tool for deciphering cellular heterogeneity and exploring gene expression profiles at high resolution. However, its high cost renders it impractical for extensive sample cohorts within routine clinical care, hindering its broader applicability. Hence, many methodologies have recently arised to estimate cell type proportions from bulk RNA-seq samples (known as deconvolution methods). However, they have several limitations: Many depend on selecting a robust scRNA-seq reference dataset, which is often challenging. Secondly, building reliable pseudobulk samples requires determining the optimal number of genes or cells involved in the simulated data generation process, which has not been studied in depth. Moreover, pseudobulk and bulk RNA-seq samples often exhibit distribution shifts. Finally, most modern deconvolution approaches behave as a black box, and the underlying mechanisms of the deconvolution task are still unknown, which can compromise the reliability of the results. In this work, we present Sweetwater, an adaptive and interpretable autoencoder able to efficiently deconvolve bulk RNA-seq and microarray samples leveraging multiple classes of reference data, such as scRNA-seq and single-nuclei RNA-seq. Moreover, it can be trained on a mixture of FACS-sorted FASTQ files, which we newly propose to use as this reduces platform-specific biases and may potentially outperform single-cell-based references. Also, we demonstrate that Sweetwater effectively uncovers biologically meaningful patterns during the training process, increasing the reliability of the results. Sweetwater is available at https://github.com/ubioinformat/Sweetwater, and we anticipate will facilitate and expedite the accurate examination of high-throughput clinical data across diverse applications.
BibTeX
@misc{fuente2023sweetwater,
  author = {Jesús de la Fuente and Naroa Legarra and Guillermo Serrano and Ana García Osta and Krishna R. Kalari and Carlos Fernandez‐Granda and Idoia Ochoa and Mikel Hernáez and Fernandez-Granda, Carlos and Ochoa, Idoia and Hernaez, Mikel},
  title = {{Sweetwater: An interpretable and adaptive autoencoder for efficient tissue deconvolution}},
  year = {2023},
  eprint = {2311.11991},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.11991},
}
Figure