Detecting Zero-Inflated Genes in Single-Cell Transcriptomics Data

Oscar Clivio, Romain Lopez, Jeffrey Regier, Adam Gayoso, Michael I. Jordan, Nir Yosef

TL;DR

Single-cell RNA sequencing (scRNA-seq) models typically treat either all genes as zero-inflated or none of them, missing gene-level nuances. AutoZI introduces a spike-and-slab Bayesian variational autoencoder that learns gene-specific zero-inflation probabilities alongside cell embeddings. The model demonstrates that while technical control transcripts are indeed not zero-inflated, biological transcripts often are—partially driven by technical limitations of older sequencing chemistries and biological factors like transcriptional bursting.

What Problem Does This Paper Address?

In scRNA-seq data, expression matrices are dominated by zero counts. These zeros stem from a mixture of:

  1. Technical factors: Low capture efficiency, shallow sequencing depth, and read-alignment failures.
  2. Biological factors: Differences across cell types and the stochastic "bursting" kinetics of promoters turning on and off.

Probabilistic workflows traditionally choose between standard Negative Binomial (NB) count models or Zero-Inflated Negative Binomial (ZINB) distributions (e.g., ZINB-WaVE, scVI). However, this creates a false dichotomy: either every gene is assumed to suffer from excess zeros, or none are. Recently, benchmarks on synthetic control RNAs (like ERCC spike-ins) showed that droplet scRNA-seq can be modeled well by simple NB distributions without zero-inflation, leading some to argue zero-inflation models are unnecessary. AutoZI resolves this debate by asking: Can zero-inflation be assessed and modeled on a rigorous, gene-by-gene basis?

Methods

AutoZI builds on the deep generative architecture of scVI (single-cell Variational Inference) by placing a spike-and-slab prior over each gene’s zero-inflation rate:

  • Generative Model:
  • Each gene $g$ has a global latent parameter $\delta_g \sim \text{Beta}(0.5, 0.5)$, representing the probability that gene $g$ is not zero-inflated.
  • A latent indicator $m_g \sim \text{Bernoulli}(\delta_g)$ selects whether the gene's zero-inflation rate $\pi_{ng}$ comes from a spike at zero ($\delta_{\{0\}}$) or a slab bounded away from zero ($\delta_{\{h_g(z_n)\}}$, where neural network $h$ is constrained to $[\tau_{\text{dropout}}, 1]$ with $\tau_{\text{dropout}} = 0.01$).
  • Conditional on cell latent vector $z_n$ and library size $l_n$, observed counts follow a ZINB distribution.
  • Variational Inference: The discrete variable $m_g$ is marginalized out analytically (collapsed variational inference), yielding a differentiable mixture of NB and ZINB distributions. Global parameters for $\delta_g$ are learned via generalized pathwise derivatives for Beta distributions.
  • Bayesian Decision Rule: Under symmetric 0-1 loss ($K_{\text{NB}} = K_{\text{ZINB}} = 1$), a gene is classified as zero-inflated ($M_{\text{ZINB}}^g$) if the variational posterior satisfies $q(\delta_g < 0.5) > 0.5$.

Datasets

The authors evaluated AutoZI across synthetic and real-world experiments:

  • Synthetic Benchmarks:
  • Poisson log-normal simulations: 12,000 cells across 2 cell types, 50 genes, with varying proportions of genes masked by artificial Bernoulli zeros.
  • SymSim Beta-Poisson kinetic simulations: 3,000 cells, 100 genes, simulating transcriptional bursting parameters ($k_{\text{on}}, k_{\text{off}}, s$) and technical noise.
  • Negative Controls: Four droplet scRNA-seq datasets containing ERCC spike-ins and control RNAs spanning 10x Chromium v1, inDrops, and GemCode protocols.
  • PBMC Datasets across 10x Chemistries: Peripheral blood mononuclear cells sequenced with 10x v1.1.0 (pbmc3k), v2.1.0 (pbmc8k), and v3.0.0 (pbmc10k), analyzed across B cells, CD14+ monocytes, CD4 T cells, and CD8 T cells.
  • Mouse Embryonic Stem Cells (mESCs): A dataset of 704 hybrid mESCs, mapped against orthogonal allele-specific kinetic bursting parameters inferred in prior literature.

Key Insights and Ideas

  • Zero-inflation is not an all-or-nothing property: Negative controls show almost no zero-inflation, but endogenous biological genes exhibit significant zero-inflation.
  • Technical improvements reduce zero-inflation: As 10x Chromium chemistry improved from v1 to v3, the fraction of detected zero-inflated genes dropped consistently across every examined immune cell type. This shows that a substantial component of zero-inflation in early single-cell data was technical.
  • Biological zero-inflation reflects transcriptional bursting: When mapped against promoter kinetic regimes, AutoZI predominantly assigns zero-inflation to genes with slow promoter switching kinetics ($k_{\text{on}}, k_{\text{off}} < 1$, bimodal distribution), while constitutive/unimodal non-zero genes are categorized as standard Negative Binomial.

Key Results

  • Synthetic Detection Performance:
  • Poisson log-normal data: AutoZI achieved an AUC of 0.9907, outperforming univariate maximum likelihood ratio tests (Uni-MLE-LRT AUC: 0.9766) and Pi-thresholding (AUC: 0.9288).
  • SymSim kinetic data: AutoZI reached an AUC of 0.9827, successfully classifying >96% of bimodal genes as ZINB and >99% of unimodal non-zero genes as NB. Standard AIC/BIC baselines showed heavy biases toward ZINB.
  • Negative Controls: Across four datasets, AutoZI classified 98.3% of ERCC spike-ins and 94% of control RNAs as NB (no zero-inflation), confirming that droplet technical controls lack excess zeros.
  • 10x PBMC Evolution: The proportion of genes flagged as ZINB systematically decreased with protocol iterations:
  • 10x v1: 42.4% – 47.9% across cell types
  • 10x v2: 24.2% – 32.3%
  • 10x v3: 11.8% – 20.4%
  • Transcriptional Bursting in mESCs: In the independent mESC dataset, AutoZI classified 38 out of 52 (73.1%) bimodal genes as ZINB, and 37 out of 51 (72.5%) unimodal genes as standard NB.

Limitations and Future Work

  • Sensitivity to Low Expression: Distinguishing true biological zeros from low-mean Poisson/NB sampling is statistically difficult when expression is sparse. For genes with average counts $< 1$, AutoZI's decision boundary degrades (accuracy on NB genes dropped from 92.7% down to 2.4%). The authors advise filtering out genes with average expression $\le 1$ before running decision rules.
  • Representational Flexibility Trade-off: Enforcing a hard lower bound on the slab ($\tau_{\text{dropout}} = 0.01$) prevents nested mixture ambiguities but restricts AutoZI from modeling tiny nonzero dropout rates, resulting in slightly lower marginal log-likelihoods than unconstrained scVI.
  • Approximation Limits: Decisions rely on a mean-field variational posterior approximation $q(\delta_g)$ rather than exact Markov Chain Monte Carlo posterior inference.

Summary updated

BibTeX
@misc{clivio2019detecting,
  author = {Oscar Clivio and Romain Lopez and Jeffrey Regier and Adam Gayoso and Michael I. Jordan and Nir Yosef},
  title = {{Detecting Zero-Inflated Genes in Single-Cell Transcriptomics Data}},
  year = {2019},
  url = {https://openreview.net/forum?id=T1j6YVW6Or},
}
Figure