Bayesian Nonparametric Mixed Effects Models in Microbiome Data Analysis

Boyu Ren, Sergio Bacallado, Stefano Favaro, Tommi Vatanen, Curtis Huttenhower, Lorenzo TrippaarXiv 2017 · arXiv

Abstract: Detecting associations between microbial composition and sample characteristics is one of the most important tasks in microbiome studies. Most of the existing methods apply univariate models to single microbial species separately, with adjustments for multiple hypothesis testing. We propose a Bayesian nonparametric analysis for a generalized mixed effects linear model tailored to this application. The marginal prior on each microbial composition is a Dirichlet Processes, and dependence across compositions is induced through a linear combination of individual covariates, such as disease biomarkers or the subject's age, and latent factors. The latent factors capture residual variability and their dimensionality is learned from the data in a fully Bayesian procedure. We propose an efficient algorithm to sample from the posterior and visualizations of model parameters which reveal associations between covariates and microbial composition. The proposed model is validated in simulation studies and then applied to analyze a microbiome dataset for infants with Type I diabetes.

The Challenge of Microbiome Data

Microbiome studies aim to link the presence of specific bacteria to human health, but the data is notoriously difficult to analyze for three main reasons:

  1. Compositionality: We measure relative abundances (proportions), not absolute counts. If one species increases, others must mathematically decrease, creating artificial correlations.
  2. Zero-Inflation: Most microbial species are absent in most samples. Many statistical models assume everything is present at some tiny level, which fails when a species is truly missing.
  3. Unobserved Variability: Microbial communities are influenced by countless factors we don't measure. Standard "univariate" models ignore the complex "social network" of bacteria.
Table 1: Representative microbial count data from the DIABIMMUNE study, illustrating the high frequency of zeros and the wide range of abundance values across samples.

As shown in Table 1, raw count data often contains numerous zeros and values spanning several orders of magnitude, making traditional parametric assumptions (like normality) inappropriate for this high-zero environment.

Methodology: The DirFactor Model

The researchers developed a new Bayesian nonparametric model, called DirFactor, designed to navigate these "messy" realities. The model treats each sample's microbial composition as a realization of a Dirichlet Process.

Key Innovations

  • The Link Function: They use a mathematical construction where the relative abundance of a species is determined by a latent variable $Q_{i,j}$. Crucially, they apply "hard-truncation" at zero: if $Q$ is negative, the abundance is exactly zero. This allows the model to handle zero-inflation naturally.
  • Mixed Effects Architecture: The model splits the influence on bacteria into two parts: Fixed Effects (known covariates like age or nationality) and Latent Factors (hidden variables that capture residual variability and correlations between species).
  • Nonparametric Flexibility: Unlike models that force data into a specific "shape," this approach allows the marginal prior on each composition to be a Dirichlet Process, providing the flexibility to fit complex, real-world distributions.

Key Results and Insights

Simulation and Biological Validation

In high-zero scenarios, DirFactor achieved significantly lower Root Mean Squared Error (RMSE) compared to state-of-the-art logistic-normal models. When applied to the DIABIMMUNE Project (tracking 157 infants from Finland, Estonia, and Russia), the model correctly identified that Bifidobacterium significantly decreases as infants age.

Nationality and Latent Relationships

The model revealed that Russian infants have a higher abundance of Bifidobacterium and lower Bacteroides compared to Finnish and Estonian infants, with these differences diminishing as the children grow older. One of the most striking findings was that the model's latent factors captured phylogenetic relationships naturally, clustering species that were biologically related without being given any information about the bacterial "family tree."

Conclusion and Future Work

DirFactor provides a robust framework for microbiome data analysis, successfully navigating the complexities of compositionality and sparsity. While the current Gibbs sampler implementation is computationally expensive, future work will focus on moving toward Hamiltonian Monte Carlo (HMC) or Variational Bayes for larger datasets. Additionally, incorporating automated variable selection would enhance the model's utility for studies with hundreds of clinical markers.

Summary updated

Abstract

Detecting associations between microbial composition and sample characteristics is one of the most important tasks in microbiome studies. Most of the existing methods apply univariate models to single microbial species separately, with adjustments for multiple hypothesis testing. We propose a Bayesian nonparametric analysis for a generalized mixed effects linear model tailored to this application. The marginal prior on each microbial composition is a Dirichlet Processes, and dependence across compositions is induced through a linear combination of individual covariates, such as disease biomarkers or the subject's age, and latent factors. The latent factors capture residual variability and their dimensionality is learned from the data in a fully Bayesian procedure. We propose an efficient algorithm to sample from the posterior and visualizations of model parameters which reveal associations between covariates and microbial composition. The proposed model is validated in simulation studies and then applied to analyze a microbiome dataset for infants with Type I diabetes.
BibTeX
@misc{ren2017bayesian,
  author = {Boyu Ren and Sergio Bacallado and Stefano Favaro and Tommi Vatanen and Curtis Huttenhower and Lorenzo Trippa},
  title = {{Bayesian Nonparametric Mixed Effects Models in Microbiome Data Analysis}},
  year = {2017},
  eprint = {1711.01241},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.01241},
}
Figure