 Methodology
 Open Access
 Published:
An expectationmaximization algorithm enables accurate ecological modeling using longitudinal microbiome sequencing data
Microbiome volume 7, Article number: 118 (2019)
Abstract
Background
The dynamics of microbial communities is driven by a range of interactions from symbiosis to predatorprey relationships, the majority of which are poorly understood. With the increasing availability of highthroughput microbiome taxonomic profiling data, it is now conceivable to directly learn the ecological models that explicitly define microbial interactions and explain community dynamics. The applicability of these approaches is severely limited by the lack of accurate absolute cell density measurements (biomass).
Methods
We present a new computational approach that resolves this key limitation in the inference of generalized LotkaVolterra models (gLVMs) by coupling biomass estimation and model inference with an expectationmaximization algorithm (BEEM).
Results
BEEM outperforms the stateoftheart methods for inferring gLVMs, while simultaneously eliminating the need for additional experimental biomass data as input. BEEM’s application to previously inaccessible public datasets (due to the lack of biomass data) allowed us to construct ecological models of microbial communities in the human gut on a perindividual basis, revealing personalized dynamics and keystone species.
Conclusions
BEEM addresses a key bottleneck in “systems analysis” of microbiomes by enabling accurate inference of ecological models from high throughput sequencing data without the need for experimental biomass measurements.
Introduction
A growing body of literature points to the important roles that different microbial communities play in diverse natural environments [1, 2] and the human body [3]. This has particularly been aided by advances in nextgeneration sequencing technology, allowing for rapid, costeffective taxonomic and functional profiling, combined with a computational analysis that has helped associate the state of the microbiome with various environmental conditions [1, 4] and human diseases [5,6,7,8]. Microbiomes are also constantly evolving, and there is now a growing appreciation that complex interactions between community members [9, 10] shape community dynamics [11, 12] as well as overall function [13, 14]. A systems view of the microbiome is thus essential for understanding and rationally manipulating it [15].
Because of its importance, there have been many approaches proposed to study microbial interactions and dynamics. Experimental approaches have ranged from simple twospecies coculture experiments [16,17,18] all the way to complex, multistage reactor models [19]. Analytical approaches [20] frequently use simple correlations between the abundances of various taxa in crosssectional datasets to infer microbial interactions [21,22,23]. There are several challenges that need to be addressed in such analyses including the compositionality of sequencing data [21,22,23,24], low sensitivity and specificity of such methods [25, 26], and the inability to infer directionality of interactions or dynamics of the system [20].
The most commonly used approach for modeling microbial ecology is based on classical predatorprey systems, also referred to as generalized LotkaVolterra models (gLVMs). gLVMs are based on ordinary differential equations (ODE) that model the logistic growth of species; naturally capture predatorprey, amensalistic, and competitive interactions; and have been applied to study dynamics of microbial ecosystems ranging from simple communities on cheese [27, 28] to the human microbiome [15, 26, 29,30,31,32]. More importantly, from a practical perspective, gLVMs have been used for a range of applications including identifying potential probiotics against pathogens [15, 29, 30], forecasting changes in microbial density, characterizing important community members (e.g., keystone species [26]), and analyzing community stability [30, 32, 33].
Despite this, a key limitation of gLVMs that restricts applicability and wider use is the requirement for microbial abundance data on an absolute scale. Microbiome analysis using highthroughput sequencing naturally provides relative abundance estimates with what is often referred to as “compositionality bias” [21, 22, 24] and cannot be directly used to estimate gLVM parameters [31]. Scaling relative abundances to an absolute scale typically requires additional experimental data that is either not readily available (as is true for the vast proportion of publicly available datasets), is technically challenging to directly quantitate for different sample matrices and complex communities (e.g., using flow cytometry [34, 35]), or can suffer from significant technical [36,37,38] and biological noise [39] (e.g., using 16S rRNA qPCR [15, 29, 30]).
In the face of these technical challenges, gLVM inference can seem daunting, especially because relative abundances do not seem to carry any information related to an absolute scale. Notably, we show that suitable scaling factors can be directly inferred from microbiome sequencing data, through an algorithm that couples biomass estimation and gLVM inference in an expectationmaximization (BEEM) [40] framework. This approach alternates between learning scaling factors and gLVM parameters and thus obviates the need for experimental scaling factors which otherwise limits the use of many existing datasets. Based on synthetic data where absolute cell density (biomass) is precisely known, we show that BEEMestimated gLVM parameters are as accurate as those estimated with noisefree biomass values, and significantly more accurate than what could be expected with commonly used (16S rRNAbased) experimentally determined biomass estimates. Using data from a freshwater microbial community with flow cytometrybased goldstandard cell counts, we show that biomass estimated using BEEM has good concordance with the gold standard and improves significantly over the existing techniques to normalize data. Leveraging BEEM’s unique ability to learn gLVMs from relative abundance data, we analyzed publicly available datasets that represent the longest human gut microbiome time series data available to date [41,42,43]. This analysis highlighted the personalized dynamics of gut microbial biomass in different individuals, with communities driven by distinct interaction networks and hub species. Our analysis suggests an emergent model for gut microbial dynamics where relatively low abundance species may play key roles in maintaining gut homeostasis.
Results
Experimentally obtained biomass estimates can lead to inaccurate gLVMs
The gLV equations model the growth rate (\( \frac{d{x}_i(t)}{dt} \)) of each microbial species i as a function of absolute cell densities (x_{i}(t)) of all the p species in a community:
In the above model, the intrinsic growth rate parameter (μ_{i}) and selfinteraction parameters (β_{ii}) define the logistic growth behavior of species i. In addition, the model also captures the impact of the absolute density of species j on the growth rate of species i through additional parameters (β_{ij}, i ≠ j), assuming a linear and additive effects model. As highthroughput sequencingbased approaches to analyze microbiomes only provide relative abundance estimates, scaling factors related to the total biomass for each sample are then needed to accurately fit gLVMs in practice.
The predominantly used approach to estimate total biomass is to quantify the copy number of the 16S rRNA gene using quantitative PCR (qPCR) [15, 29, 30]. However, 16S qPCR estimates have been reported to have a high technical noise, with a coefficient of variation (CV) ranging from 11 to 75% [36,37,38]. To reconfirm this, we reanalyzed 16S qPCR data from a recent microbiome modeling study on Clostridioides difficile infections [30] and observed low concordance across technical replicates (Spearman ρ < 0.22; Fig. 1a and Additional file 1: Figure S1A), as well as high coefficient of variation (mean CV = 51%). Another critical source of error with 16S qPCRbased biomass estimates is biological and arises due to the fact that bacteria can have a widely varying number of copies of the 16S rRNA gene, even within the same ecological niche. For example, the 16S gene copy number of the 4 major gut bacterial phyla cover a broad spectrum (Fig. 1b), ranging from a single copy to 15 copies [39]. Correspondingly, 16S qPCRestimated biomass of a community dominated by Firmicutes can be twice as much as that of a community dominated by Bacteroidetes, even if both communities have exactly the same cell density (100% relative error). Such large relative errors can then have a significant impact on the accuracy of gLVMs estimated from the data, as we show below.
To test the impact of biomass estimation errors on model inference, we generated synthetic datasets (10 species community) based on the parameters inferred from real datasets, similar to the approach in Bucci et al. [29] (see the “Materials and methods” section). This framework allows us to carefully evaluate the impact of different levels of noise in a setting where model parameters are known. We noted that, given errorfree biomass data, a stateoftheart method (MDSINE [29]) was able to infer model parameters with median relative error < 20% and with ~ 90% median AUCROC (area under the sensitivespecificity tradeoff curve) for interaction terms (β; Fig. 1c, noisefree). However, as expected [31], directly using relative abundance estimates without scaling them increased the median relative error for parameter estimates to > 60% (Fig. 1c, RA), with AUCROC for interaction terms being comparable to the randomly generated parameters from the prior model for the simulation (Fig. 1c, random). Similar performance was obtained using another model fitting algorithm that works with relative abundance data and assumes small fluctuations in biomass values (LIMITS [26, 44]; Additional file 1: Figure S1B). Using simulated biomass data with error profile similar to real qPCR data (CV = 51%; without systematic errors due to varying copy number of the 16S rRNA gene; see the “Materials and methods” section), surprisingly, did not improve the performance substantially when one technical replicate was provided (Fig. 1c, qPCR_rep1), and even with three technical replicates, the growth rate parameter estimates (median relative error > 70%) were comparable to random (Fig. 1c, qPCR_rep3). These results highlight that experimental errors in biomass estimates can significantly impact the gLVM parameter estimation even in a relatively wellcontrolled setting where model assumptions are strictly applied.
Joint estimation of biomass and model parameters with BEEM
In order to address the challenges of noisy experimental biomass data and, in general, to make the gLVM modeling more widely applicable where biomass estimates are not available, we explored the idea of learning gLVM parameters directly from relative abundance data. To achieve this, we first note that model Eq. 1 can be expressed in terms of relative growth rates by dividing both sides of the equation by x_{i}(t):
By explicitly introducing relative abundances (\( \tilde{x}_{i}(t) \)) and total biomass (m(t), where \( {x}_i(t)=m(t)\tilde{x}_{i}(t) \)), we get:
The biomass terms on the lefthand side (LHS) of the equation can be eliminated by subtracting the equation of a selected species r from the equations for all other species, resulting in a new system:
where \( {y}_i(t)=\ln \left(\tilde{x}_{i}(t)/\tilde{x}_{r}(t)\right) \) and the equations are reparameterized by a_{i} and b_{ij}, which are related to the original parameters (a_{i} = μ_{i} − μ_{r} and b_{ij} = β_{ij} − β_{rj}). This new system has the advantage that all unknowns are on the righthand side (RHS) of the equation and the gradient term on the LHS can be estimated directly from relative abundance data through spline smoothing and numerical differentiation [15, 26, 29, 30].
We then made the observation that the above equations can be rewritten as two regression problems across two dimensions of the data matrix (\( \tilde{x}_{i}(t),\forall i,t \)):

For each time point t, the biomass can be solved for via regression given the model parameters a and b for all the species.

For each species i, the corresponding parameters a_{i} and b_{ij} can be solved through gradient matching [15, 26, 29, 30], given the biomass at each time point t (m(t)).
The interlock of the above two problems provides the basis for an expectationmaximization algorithm that alternates between estimating model parameters and biomass iteratively and forms the core of BEEM (see the “Materials and methods” section for details). Note that the estimates provided by BEEM for the biomass act as scaling factors to bring abundances across species and time points to the same scale for learning gLVMs.
On the synthetic datasets used in the previous section, we noted that despite not having any biomass data to work with, BEEM was a significant improvement over naïve analysis based on relative abundance data, as well as the results based on scaled relative abundances with noisy biomass data (~ 3× reduction in relative error; Fig. 1c, BEEM). In fact, BEEMestimated parameters were nearly as accurate as those obtained using noisefree biomass data (relative error for growth rate and interaction terms), except for a slight decrease in AUCROC for interaction terms (primarily due to the rounding errors that provide nonzero estimates for zero terms). In comparison, other competing approaches (RA, qPCR, CSS) provided AUCROC performance similar to what is expected at random. Normalization approaches such as CSS [45] and TMM [46] (Fig. 1c, CSS; Additional file 1: Figure S1B; see the “Materials and methods” section) were tested here as control analytical methods but are not expected to work in general as they are designed to identify scaling factors that do not change across samples. We noted that BEEM’s significant improvement over other experimental and computational approaches and its ability to closely approximate analysis using noisefree biomass estimates is a robust feature that remains valid even when experimental biomass estimates are significantly better (CV = 5%, as expected from flow cytometry data) and while using different parameter estimation approaches or evaluation metrics (Additional file 1: Figures S1B and Figure S2).
BEEM accurately estimates gLVM parameters and biomass in diverse model settings
As in any situation where parameters have to be estimated, a sufficient number of data points (multiple biological replicates, referred to as replicates in the following sections) covering the dynamics of abundance change (e.g., recovery of the microbiome after a perturbation) are needed to get accurate gLVM models, and this in turn impacts the BEEM’s biomass estimates. In order to further study the BEEM’s performance characteristics, we generated synthetic datasets with a varying number of species and data points, comparing BEEM’s results to those obtained with noisefree biomass data and the same gradient matching algorithm (BLASSO, see the “Materials and methods” section) as used internally in BEEM. As expected, when the number of species increases but the number of data points remains constant (60 replicates with 30 time points), gLVM parameter estimation becomes harder (Fig. 2a). However, despite the quadratic increase in the number of parameters, the performance for both BLASSO (with noisefree biomass) and BEEM seems to only degrade linearly (Fig. 2a). In addition, even when the model has 25 species (650 model parameters) and can thus capture over 90% of the overall species abundance in a majority of human gut microbiomes [47] (but not all; Additional file 1: Figure S3), interaction parameters estimated by BEEM were nearly as accurate as those with noisefree biomass (Fig. 2a), though the growth rate parameters were more affected. For learning models with more species, a linear increase in the number of samples available was sufficient (Additional file 1: Figure S4). We also noted that the median relative error for biomass estimates from BEEM was generally wellcontrolled (< 10%; Fig. 2b).
Increasing the number of data points available for model fitting for a fixed number of species (10) improved the performance for both BLASSO with noisefree biomass and BEEM, as expected. Performance improvements were most notable when going from 10 to 20 replicates and plateaued out after that (30 time points; Fig. 2c). In general, after 20 replicates, differences between BLASSO and BEEM were small, especially in terms of estimating interaction parameters. Similarly, biomass estimates from BEEM had a median relative error < 5% when 20 replicates were available (Fig. 2d). In general, our analysis suggests that inherent limitations in gradient matching based on estimated gradients from data were a greater source of error for gLVM parameter estimation in many of our experiments than errors in BEEMestimated biomass values. We also noted that some simulated datasets had significantly lower performance even when noisefree biomass values were provided, due to the presence of many time points that were close to equilibrium. Time points close to the equilibrium lead to noisy gradient estimates, and BEEM identifies and excludes such data points from its analysis (see the “Materials and methods” section).
To assess BEEM’s performance for biomass inference in realworld datasets, we analyzed data from a recently published study on freshwater microbial communities [34, 35], which to our knowledge is the only one to have longitudinal microbiome sequencing data as well as flow cytometrybased goldstandard biomass estimation. Notably, the flow cytometry data in this study was reported to have high reproducibility (CV < 5%) [34] and therefore was suitable for use as the ground truth for total biomass. Surprisingly, with only 57 time points in total across 2 replicate experiments, BEEM was able to infer the total biomass for a 26species community accurately solely based on relative abundances from 16S sequencing. BEEMestimated biomass values showed a strong correlation with flow cytometry data (BEEM: Spearman’s ρ = 0.73, Pearson’s r = 0.74; Fig. 3a), and its trajectories closely tracked measured fluctuations (Fig. 3b). In contrast and as expected, normalization approaches provided estimates that had either weak correlation (CSS: Spearman’s ρ = 0.36, Pearson’s r = 0.35) or negative correlation with experimentally determined values (TMM: Spearman’s ρ = − 0.11, Pearson’s r = − 0.11; Fig. 3a).
Considering the lack of data for real microbial communities with wellcharacterized interactions, we pooled experimentally the measured growth characteristics for seven different species in a dense time series and used the data to compute the relative abundances for a community over time that would evolve under the assumption of no interspecies interactions. In addition to accurately estimating the biomass (Additional file 1: Figure S5A), BEEM was found to have a low falsepositive rate (< 3% and < 8% using the most stringent and default thresholds, respectively) out of a total of 42 possible interaction terms (Additional file 1: Figure S5B). MDSINE, however, had much higher falsepositive rates using different scaling approaches including with the true biomass values (> 26% and > 52% using the most stringent and default thresholds, respectively).
Personalized gut microbial dynamics and keystone species
The development of BEEM allows us to analyze previously generated datasets in a gLVM framework, even when biomass measurements were not made in the original study. To showcase this capability, we applied BEEM to the longest (over 1 year) and most densely (almost daily) sampled human gut microbiome time series datasets available to date (four individuals: DA, DB from David et al. [42] and M3, F4 from Caporaso et al. [41]; individually modeled assuming sufficient perturbations to reveal dynamics). BEEMestimated models exhibited a good fit to the data, with predicted relative abundances for a day based on numerical integration from the previous day being in high concordance with the observed data (median Spearman’s ρ = 0.84, median Pearson’s r = 0.90). In addition, BEEMinferred growth rates were found to be concordant with the growth rates reported in the AGORA database based on the genomescale metabolic modeling (Spearman’s ρ = 0.79, Pearson’s r = 0.74; Additional file 1: Figure S6) [48]. Finally, BEEM correctly identified several key interactions that have previously been validated using lowthroughput experiments, including the inhibitory interactions between Bacteroides uniformis and Enterobacteriaceae [49], Feacalibacterium prausnitzii and Enterobacteriaceae [50,51,52], and B. uniformis and F. prausnitzii [53].
As BEEM directly infers daily biomass values, we plotted these and observed distinct individualspecific patterns: while subject DA’s biomass was found to vary relatively smoothly, following an approximately cyclic pattern with a period of about 3 months (Fig. 4a), subject M3’s biomass fluctuated to a greater extent on a daytoday basis with no clear trend (Fig. 4b). Similar patterns were observed in parts for subjects DB and F4, which had a greater resemblance to DA overall (Additional file 1: Figure S7A, B). The fluctuations predicted in M3’s biomass were also found to be present alongside (but not correlated with, ρ < 0.14) frequent blooms of rare taxa (relative abundance) that were not detected at other time points [43] and maybe a consequence of this instability in the community. In contrast, the smoother progression of DA’s biomass may be a reflection of the relative stability of the gut community in this individual, though the source of the observed cyclic patterns deserves to be explored further. As an initial hint, we noted that the strongest association between DA’s biomass and reported metadata was a negative correlation with calcium intake (Additional file 1: Figure S8).
We visualized the interaction terms predicted by BEEM as a weighted directed network for each individual (Fig. 4c, d; Additional file 1: Figure S7C, D). Concordant with their distinct biomass dynamics, DA and M3 also exhibited microbial interaction networks that were unique to them (Fig. 4c, d). DA’s network was defined by hub nodes for Feacalibacterium prausnitzii (s1) and Bacteroides uniformis, two species with many beneficial roles and frequent associations with a healthy gut [54, 55]. The hubs were found to negatively affect the growth of an Enterobacteriaceae species (s1), consistent with previous reports for B. uniformis [49] and F. prausnitzii [50,51,52]. In comparison, the major hub nodes in M3’s network were a Blautia and an Oscillospira species (s1) that were connected by a positive feedforward loop. Additionally, we found that abundances of the Blautia and Oscillospira species were significantly negatively correlated with total biomass in M3’s gut microbiome (Additional file 1: Figure S9). Feedforward loops have been implicated in destabilizing effects on ecosystems [32], and so these observations may explain the unstable behavior of M3’s biomass as well as the corresponding susceptibility to invasive blooms of rare taxa [43]. Blautia’s protective role in M3’s gut flora is further indicated by its inhibition of B. fragilis (s1), an opportunistic pathogen that has been associated with diarrhea [56]. Interestingly, several of the transient species in M3’s gut microbiome were observed to be at the periphery of the network, with a single incoming edge indicating that their abundances were being influenced by a hub species. For example, this was observed for several Streptococcus species that are primarily oral commensals and could be transient colonizers of the gut [57, 58].
Despite the differences in the identity of species in their interaction networks, the various individualspecific networks shared some common features, including the presence of a few hub nodes that negatively influenced many other species, and were generally not the most abundant species in the community (Fig. 4c, d; Additional file 1: Figure S7C, D). Overall, we also found that the ratio between out and indegree of species in the networks was negatively correlated with their mean relative abundances (Additional file 1: Figure S10), suggesting that the hub species in the interaction network, which are often considered as keystone species for the community [26, 59], are typically not the abundant species in the gut microbiome. We further confirmed this observation by analyzing a large collection (840 healthy individuals) of gut microbiome datasets [47], to find that the core species in the gut microbiome were also frequently not the most abundant species (Additional file 1: Figure S11). Together, these observations suggest a model for the gut microbiome where relatively less abundant species in the community are more stable colonizers of the host, and by virtue of their impact on the growth of other species in the community, play an important role in defining its dynamics in different individuals.
Discussion
A major limitation of most microbiome profiling datasets available to date is the restriction to relative abundances and the “compositionality” of this data has led to significant challenges even when performing common statistical tests for correlated abundances [60]. These issues are amplified when considering systems models such as gLVMs, and our analysis here confirms that the model parameter estimates can be severely distorted if relative abundances are not correctly scaled. In ecological models such as gLVMs, interactions between species are naturally a function of the absolute density of species in a community rather than their relative abundances [61, 62]. Correspondingly, while autoregressionbased methods such as sVar [43] and ARIMA [63] provide an alternative for model fitting with relative abundance data, ecological interpretations for their models and parameters have not been put forward (e.g., species growth rate or carrying capacity). In addition, experimental approaches to measure scaling factors are generally seen as a laborious and occasionally feasible way to work with absolute abundances. However, as we show here, this may not be the case if care is not taken to ensure that experimental noise is minimized and a sufficient number of technical replicates are analyzed. By eliminating the need for additional experimental data, BEEM greatly expands the applicability of gLVMs to the microbiome datasets, and its robustness could simultaneously improve the quality of models and scaling factor estimates, as observed in our synthetic and real datasets. Explicitly modeling microbial interactions through gLVMs has proven to be a powerful framework for studying microbial community dynamics [15, 26,27,28,29,30,31,32], and the approach used in BEEM could also be extended (with minimal modifications) to time series with external perturbations (e.g., antibiotics usage) [15, 29, 30], as well as system models for gene expression regulation based on RNAseq data [64].
Due to limited availability of absolute abundance data, gLVMs have generally been constructed by aggregating information across experiments and individuals [15, 29, 30]. We exploited the availability of yearlong time series datasets and BEEM’s facility with relative abundances to construct individual specific gut microbiome gLVMs. Intriguingly, we observed that our inferred scaling factors suggest that gut microbial biomass has distinct dynamics across different individuals. Consistent with a recent study on 20 individuals where human gut microbial biomass (measured via flow cytometry) was found to have high variation (CV ≈ 53% within a week) [60]; we also noted high variability over time across the four individuals we analyzed (CV ranging from 49 to 76% over a year). Misleading conclusions are likely to be drawn without accounting for such variation, and BEEMestimated biomass values may be useful with other statistical and ecological modeling methods as well. Additionally, we observed cyclic behavior of biomass trajectories in multiple individuals, similar to the seasonal patterns reported in huntergatherers of Western Tanzania [65], and the conserved patterns observed in other mammals across evolutionary timescales [66]. Similar patterns have not been reported before for western city dwellers, perhaps due to the confounding effects of aggregate analysis across individuals and the impact of highly diverse diets. BEEM analysis, however, suggests that the underlying patterns may still be conserved in urban subjects and may be more general than previously believed.
Our inference of the gLVM models for each individual allows us to identify specific microbial species and the kinds of interactions that they have, to account for the distinct dynamics that were observed. For example, the positive feedforward loop observed between the hubs in M3’s gut microbiome provides a specific, plausible, and testable hypothesis to explain the instability observed there, and this capability can be valuable in future studies where targeted interventions are feasible. Despite the differences in the microbial interaction networks observed for different individuals, a shared feature seems to be the presence of relatively lowly abundant species that act as hub nodes in the network. A similar pattern was seen in crosssectional data as well where frequently shared “core” gut microbiome species tend to not be the most abundant species in the community. These observations point to a model where species at low relative abundances stably colonize the gut (e.g., mucosaassociated ones) compared to abundant but transient (lumenassociated) bacteria and play an important role in defining gut microbiome dynamics. In particular, hub species were frequently found to negatively regulate more transient species in the community, in agreement with the known role of mucosaassociated species in providing colonization resistance against invasive pathogenic species [67]. We envisage that perturbation experiments with in vitro [68] and in vivo systems [69] could help further validate such predictions and the ability to forecast abundance changes using gLVMs learnt by BEEM.
An important point that we noted in the gut microbiome datasets that were analyzed here is the limited number of stable species (prevalent in most time points for an individual) that are shared across individuals. This feature makes it infeasible to learn gLVM models by merging short time series datasets across different individuals. Similar constraints might be present in other microbial communities as well, including specific challenges in measuring total biomass in complex matrices [60], and thus, the development of BEEM makes it more feasible to generate the long and densely sampled datasets that are needed for such models. As the complexity (number of species) of modeled communities grows, BEEM models also require a linear increase in the number of available samples. The analysis in BEEM can potentially be directly extended to crosssectional datasets if the corresponding communities are believed to be at equilibrium (i.e., \( \frac{d{x}_i(t)}{dt}=0 \), for all species). This extension would significantly expand the amount of data that could be used and thus allow us to learn even more complex models in the future. As is the case for any modeling approach, no model is expected to be perfect, but as they capture more and more features of real systems, we can expect that their predictions become increasingly useful. BEEM’s development therefore serves as an important step in expanding the use of modeling approaches to study microbial community dynamics and rationally identify appropriate perturbations.
Conclusions
We present a novel algorithm, BEEM, that addresses a key bottleneck in “systems analysis” of microbiomes by enabling accurate inference of ecological models from time course highthroughput microbiome sequencing data without the need for experimental biomass measurements. This approach circumvents the limitations of 16S rRNA qPCRbased biomass measurement and its underappreciated adverse impact on model fitting accuracy. BEEM’s robustness was established based on systematic evaluations with synthetic and real datasets. Its application to yearlong human gut microbiome data revealed novel insights into personalized microbiome dynamics driven by distinct keystone species. We therefore expect BEEM to be a useful tool for the microbiome community in obtaining deeper insights into how microbial interactions determine systemlevel behavior.
Materials and methods
BEEM’s core algorithm
As introduced in the “Joint estimation of biomass and model parameters with BEEM” section, the gLVM model in Eq. 1 can be first simplified by dividing x_{i}(t) on each side and then rewritten in terms of total biomass m(t) (i.e., \( m(t)={\sum}_{i=1}^p{x}_i(t) \)) and relative abundances \( \tilde{x}_{i}(t) \) (i.e., \( \tilde{x}_{i}(t)={x}_i(t)/m(t) \)) as shown below:
To eliminate the biomassrelated term in the LHS of the equation, we subtract the corresponding equation for a reference species r (species with lowest CV, by default) from both sides of the system, resulting in additive log ratio (ALR)transformed [70] relative abundances (\( {y}_i(t)=\ln \left(\tilde{x}_{i}(t)/\tilde{x}_{r}(t)\right) \)) on the LHS and a reparameterized RHS:
where a_{i} = μ_{i} − μ_{r} and b_{ij} = β_{ij} − β_{rj}.
An estimate for dy_{i}(t)/dt, denoted as Y_{it}, can be calculated as the derivative of a piecewise polynomial spline fitted to the ALRtransformed relative abundances (y_{i}(t), see the “Robust parameter estimation with BEEM” section for details). Given the following model for p species:
where \( {\overset{\sim }{X}}_{it}=\tilde{x}_{i}(t) \) and m_{t} = m(t) are the variables written in their matrix representations, we can write the following likelihood function:
where a and b are the model parameters, δ(M) is a Dirac delta function for the biomass values, and L(a, b; X, Y, M) is the likelihood function with respect to a and b for the above regression problem. The parameters are then solved with the following EM algorithm.
Biomass estimation (Estep)
In iteration T, with \( {\hat{a}}_i^{\left(T1\right)} \) and \( {\hat{b}}_{ij}^{\left(T1\right)} \) from the previous iteration, the biomass \( {\hat{m}}_t^{(T)} \)for each T can be computed as the coefficient of the following linear regression:
where \( {U}_{ti}^{(T)}={Y}_{it}{\hat{a}}_i^{(T)} \) and \( {V}_{ti}^{(T)}=\sum \limits_{j=1}^p{\hat{b}}_{ij}^{(T)}{\overset{\sim }{X}}_{jt} \). Note that accurate estimation of biomass through this regression requires a sufficient number of data points (number of species > 6), and BEEM will warn users if this is not the case.
Model parameter estimation (Mstep)
With estimated biomass from the Estep, \( {\hat{\boldsymbol{m}}}^{(T)} \), BEEM estimates \( {\hat{a}}_i^{(T)} \) and \( {\hat{b}}_{ij}^{(T)} \) for each i (i ≠ r) based on the following regression problem (also known as gradient matching):
Solving the above system is often limited by the amount of data available in practice. For microbial communities, it is usually assumed that the interaction vector (β_{ij}) is sparse (i.e., a species is only directly affected by a small number of other species). Consequently, the transformed matrix b_{ij} is also sparse, and BEEM estimates it using a sparse regression technique based on a Bayesian approach (Bayesian lasso—BLASSO [30]; R package “monomvn” version 1.97; default parameters) [71].
Initialization
For the initialization step in its EM algorithm, BEEM assumes that scaling factors inferred from a commonly used normalization approach for microbiome data (cumulative sum scaling—CSS [45]) provides a reasonable starting point for the algorithm to then learn better scaling factors. Note that, as expected, scaling factors from CSS normalization and BEEM cannot recapitulate the absolute scale corresponding to experimental measurements (e.g., by qPCR or flow cytometry), and so their estimates were scaled to the same median value across the time series as experimental measurements for subsequent comparisons. In practice, the true scale of all samples can be recovered by measuring the biomass for a single sample accurately. BEEM implementation also checks to ensure that sufficient number of data points are available to estimate gLVM models for the given number of species (number of data points > number of parameters) and will warn users otherwise. Time points near equilibrium (> 80% species that change < 5% in relative abundance) are excluded from BEEM analysis to avoid noise in gradient estimation.
Termination and parameter estimation
The E and Msteps in BEEM are run until convergence or a userspecified maximal number of iterations. The search was assumed to have reached convergence (to a local optimum) when the mean squared error (MSE, smoothed using a moving median with a window size of 3) for the Estep varies by less than a userspecified tolerance (0.1% by default) for 3 consecutive iterations [72]. In practice, on the real datasets analyzed in this study, convergence takes ~ 1 h using 4 CPUs. Estimates for \( {\hat{a}}_i \), \( {\hat{b}}_{ij} \), and \( {\hat{m}}_t \) were calculated as the median of the values from all iterations (excluding the first 30 iterations) whose MSE was within 5% of the minimal MSE. BEEM throws a warning message if it does not converge within the userspecified number of iterations or if the observed fit to the data is poor (biomassnormalized MSE > 10^{−5}).
Robust parameter estimation with BEEM
In our experiments with synthetic and real data, we noted that gLVM modeling can be sensitive to noise and outliers in the data, and this in turn could affect estimation of scaling factors with BEEM. To address this, we refined the core algorithm in BEEM with additional preprocessing steps that further enable robust parameter estimation.
Outliers in relative abundance data
We observed in our numerical analysis that outliers in the abundance data could notably affect the spline fitting procedure and lead to spurious gradient estimates. To obtain more robust spline fitting, an oversmoothed spline was first fitted to y_{i}(t) (function “smooth.Pspline” from R package “pspline” [73] with maximal degree of 5 and a large smoothing parameter “spar = 1e10”) to calculate the absolute error in fitted values (e_{it} = ∣ y_{i}(t) − y_{i}(t)^{smoothed}∣), and points with absolute error larger than expected (\( \left({e}_{it}\underset{j}{\mathrm{median}}\left({e}_{ij}\right)\right)/\underset{j}{\mathrm{MAD}}\left({e}_{ij}\right)>\tau \), τ = 5 by default) were then filtered out. The final smoothing spline was fitted (degree of 5 and smoothing parameter selected using cross validation) to the remaining data to calculate the estimated gradients Y_{it}. In addition, outliers in biomass estimated from the previous iteration (\( {\hat{m}}_t^{\left(T1\right)} \)) were identified in the same way and replaced with interpolated values from the spline.
Outliers in estimated gradients
In practice, gradient matchingbased methods (including the various algorithms implemented in MDSINE) were found to be sensitive to outliers in the estimated gradients (i.e., Y_{it}). To identify outliers in a time series (Y_{it}, for all t), a local regression (LOESS) smoother was fitted to detrend Y_{it}, and the outliers were filtered out as described above.
Estimating constrained biomass values
For each time point, biomass was estimated as the slope of a linear regression (\( {U}_{tk}^{(T)} \) against \( {V}_{tk}^{(T)} \)) where outliers in both \( {U}_{tk}^{(T)} \) and \( {V}_{tk}^{(T)} \) were identified and removed following a standard boxplot approach, i.e., as deviations from the median by more than 1.5× interquartile range. In addition, the biomass was constrained to be positive by removing points where \( {U}_{ti}^{(T)} \) and \( {V}_{ti}^{(T)} \) had different signs.
Recovering gLVM parameters
Based on the previously stated assumption that the interaction matrix β is sparse, most entries in each column are expected to be zero and thus the median value for the jth column in b would be expected to be −β_{rj}, allowing us to infer back all the other rows of β (β_{ij} = b_{ij} + β_{rj}, default implementation in BEEM’s “paramFromEM” function). BEEM then assigns a Zscore like confidence value (s_{ij}) to each entry of β, by dividing the estimated interaction strength by the column standard deviation (\( {s}_{ij}=\mid {\hat{\beta}}_{ij}/{\sigma}_j\mid \)). The growth rate vector μ is not expected to be sparse but can be recovered by directly solving the original gLVM system (Eq. 2), using the already derived estimates for scaling factors and β. For robustness, BEEM estimates the growth rate for each species as the median of positive estimates across all time points. BEEM also provides a “nonsparse” mode (setting argument “sparse” to “FALSE” in the “paramFromEM” function) to estimate all parameters by solving the gLVM system directly with estimated biomass values.
Datasets and evaluation metrics
Simulated datasets
MDSINE’s Bayesian variable selection (BVS) algorithm (with spline smoothing option and minor bug fixes: https://bitbucket.org/chenhao_li/mdsine) was used to estimate the parameters from the C. difficile infection dataset provided with the package [30]. Simulated datasets were then generated based on these estimated parameters following the procedure described in Bucci et al. [30] (excluding perturbations) by numerically integrating the gLVM with randomly generated initial states (mimicking the recovery of the microbiome after a random perturbation). Unless stated otherwise, we generated simulated data with 10 species, 60 replicates (with different random initial states) with 30 time points each. Noisy abundances were obtained by sampling from Poisson distributions [74] with means based on scaled abundances at each time point (sum = 5 × 10^{4}). Simulated qPCR and flow cytometrybased values for total biomass were generated from lognormal distributions with coefficients of variation (CV) that matched those seen in real datasets (qPCR = 51% [30], flow cytometry = 5% [34, 35]). For each condition with varying number of species or replicates and different biomass estimation techniques, 15 simulated datasets with different model parameters were tested.
Dataset from Props et al.
The original OTU table was obtained from the authors [35]. Samples for the “operation” stage, where the environment had roughly constant temperature were selected for BEEM analysis. OTUs with low mean relative abundances (< 0.1%) were excluded to ensure that sufficient data is available to fit the model parameters, resulting in 26 OTUs across 58 time points from 2 replicates.
Dataset from Gibbons et al.
This dataset included 4 long time series collected by David et al. [42] and Caporaso et al. [41]. To reduce the number of OTUs to model and remove OTUs not detectable in many samples, the original OTU tables [43] were filtered to keep only top OTUs based on prevalence (> 10 reads in most of the samples). In total, 26 and 22 OTUs were left for samples from David et al. and Caporaso et al., respectively. In order to assess the robustness of the inferred network, BEEM was run with 30 different seeds, and edges with confidence score s_{ij} ≤ 1 in more than 50% of the networks were kept. The final biomass was obtained by taking the geometric mean across all 30 runs (Additional file 2).
Growth curve data
Seven different bacterial species were separately inoculated into triplicate wells of a Bioscreen honeycomb microplate containing brain heart infusion (BHI) broth. Absorbance values were measured at 600 nm (OD600) every 20 min for 48 h for the microplate incubated in Bioscreen C at 37 °C with continuous shaking at high amplitude and normal speed. The OD600 values for the lag and stationary phases were removed, resulting in 10 time points for each species (Additional file 3).
Metrics for evaluation
The following metrics were used for evaluating inference algorithms:

Median relative error (MRE) for estimates \( \hat{\boldsymbol{\theta}} \) when the true values are θ: \( \underset{\theta_i\ne 0}{\mathrm{median}}\left\frac{{\hat{\theta}}_i{\theta}_i}{\theta_i}\right \).

Area under the receiver operating characteristic curve (AUCROC) for the inferred microbial interactions. Confidence scores from BEEM were used to rank predicted interactions and to compute the AUCROC value.
MDSINE and LIMITS
The two algorithmic settings in MDSINE, BLASSO, and Bayesian variable selection (BVS) were both run with and without the spline fitting option (other parameters were kept at default values). LIMITS (implemented in the R package seqtime_0.1.1 [44]) was run with default parameters. To compute AUCROC values, Bayesian factors were used to rank the interactions for BVS, while the absolute values of parameters were used for BLASSO and LIMITS.
References
 1.
Sunagawa S, et al. Ocean plankton. Structure and function of the global ocean microbiome. Science. 2015;348:1261359.
 2.
Gilbert JA, Jansson JK, Knight R. The Earth Microbiome Project: successes and aspirations. BMC Biol. 2014;12:69.
 3.
Turnbaugh PJ, et al. The Human Microbiome Project. Nature. 2007;449:804–10.
 4.
Hayat R, Ali S, Amara U, Khalid R, Ahmed I. Soil beneficial bacteria and their role in plant growth promotion: a review. Ann Microbiol. 2010;60:579–98.
 5.
Halfvarson J, et al. Dynamics of the human gut microbiome in inflammatory bowel disease. Nat Microbiol. 2017;2:17004.
 6.
Qin N, et al. Alterations of the human gut microbiome in liver cirrhosis. Nature. 2014;513:59–64.
 7.
Li Q, Han Y, Dy ABC, Hagerman RJ. The gut microbiota and autism spectrum disorders. Front Cell Neurosci. 2017;11:120.
 8.
Chng KR, et al. Whole metagenome profiling reveals skin microbiomedependent susceptibility to atopic dermatitis flare. Nat Microbiol. 2016;1:16106.
 9.
Hol FJH, Rotem O, Jurkevitch E, Dekker C, Koster DA. Bacterial predatorprey dynamics in microscale patchy landscapes. Proceedings Biol Sci. 2016;283:20152154.
 10.
Miller MB, Bassler BL. Quorum sensing in Bacteria. Annu Rev Microbiol. 2001;55:165–99.
 11.
Martin M, Hölscher T, Dragoš A, Cooper VS, Kovács ÁT. Laboratory evolution of microbial interactions in bacterial biofilms. J Bacteriol. 2016;198:2564–71.
 12.
Embree M, Liu JK, AlBassam MM, Zengler K. Networks of energetic and metabolic interactions define dynamics in microbial communities. Proc Natl Acad Sci U S A. 2015;112:15450–5.
 13.
Cordero OX, Datta MS. Microbial interactions and community assembly at microscales. Curr Opin Microbiol. 2016;31:227–34.
 14.
Fraune S, et al. Bacteria–bacteria interactions within the microbiota of the ancestral metazoan hydra contribute to fungal resistance. ISME J. 2015;9:1543–56.
 15.
Buffie CG, et al. Precision microbiome reconstitution restores bile acid mediated resistance to Clostridium difficile. Nature. 2014;517:205–8.
 16.
Freilich S, et al. Competitive and cooperative metabolic interactions in bacterial communities. Nat Commun. 2011;2:589.
 17.
Lim KMK, Li C, Chng KR, Nagarajan N. @MInter: automated textmining of microbial interactions. Bioinformatics. 2016;btw357. https://doi.org/10.1093/bioinformatics/btw357.
 18.
Friedman J, Higgins LM, Gore J. Community structure follows simple assembly rules in microbial microcosms. Nat Ecol Evol. 2017;1:0109.
 19.
Blasche S, Kim Y, Oliveira AP, Patil KR. Model microbial communities for ecosystems biology. Curr Opin Syst Biol. 2017;6:51–7.
 20.
Li C, Kenneth LKM, Chng KR, Nagarajan N. Predicting microbial interactions through computational approaches. Methods. 2016. https://doi.org/10.1016/j.ymeth.2016.02.019.
 21.
Faust K, et al. Microbial cooccurrence relationships in the human microbiome. PLoS Comput Biol. 2012;8:e1002606.
 22.
Friedman J, Alm EJ. Inferring correlation networks from genomic survey data. PLoS Comput Biol. 2012;8:e1002687.
 23.
Kurtz ZD, et al. Sparse and compositionally robust inference of microbial ecological networks. PLoS Comput Biol. 2015;11:e1004226.
 24.
Quince C, Walker AW, Simpson JT, Loman NJ, Segata N. Shotgun metagenomics, from sampling to analysis. Nat Biotechnol. 2017;35:833–44.
 25.
Berry D, Widder S. Deciphering microbial interactions and detecting keystone species with cooccurrence networks. Front Microbiol. 2014;5:219.
 26.
Fisher CK, Mehta P. Identifying keystone species in the human gut microbiome from metagenomic timeseries using sparse linear regression. PLoS One. 2014;9:e102451.
 27.
Maoz A, Mayr R, Scherer S. Temporal stability and biodiversity of two complex antilisterial cheeseripening microbial consortia. Appl Environ Microbiol. 2003;69:4012–8.
 28.
Mounier J, et al. Microbial interactions within a cheese microbial community. Appl Environ Microbiol. 2008;74:172–81.
 29.
Stein RR, et al. Ecological modeling from timeseries inference: insight into dynamics and stability of intestinal microbiota. PLoS Comput Biol. 2013;9:e1003388.
 30.
Bucci V, et al. MDSINE: Microbial Dynamical Systems INference Engine for microbiome timeseries analyses. Genome Biol. 2016;17:121.
 31.
Cao HT, Gibson TE, Bashan A, Liu YY. Inferring human microbial dynamics from temporal metagenomics data: Pitfalls and lessons. BioEssays. 2017;39:1600188.
 32.
Coyte KZ, Schluter J, Foster KR. The ecology of the microbiome: networks, competition, and stability. Science. 2015;350:663–6.
 33.
Marino S, Baxter NT, Huffnagle GB, Petrosino JF, Schloss PD. Mathematical modeling of primary succession of murine intestinal microbiota. Proc Natl Acad Sci U S A. 2014;111:439–44.
 34.
Props R, Monsieurs P, Mysara M, Clement L, Boon N. Measuring the biodiversity of microbial communities by flow cytometry. Methods Ecol Evol. 2016;7:1376–85.
 35.
Props R, et al. Absolute quantification of microbial taxon abundances. ISME J. 2017;11:584–7.
 36.
Smith CJ, Nedwell DB, Dong LF, Osborn AM. Evaluation of quantitative polymerase chain reactionbased approaches for determining gene copy and gene transcript numbers in environmental samples. Environ Microbiol. 2006;8:804–15.
 37.
White RA, Blainey PC, Fan HC, Quake SR. Digital PCR provides sensitive and absolute calibration for high throughput sequencing. BMC Genomics. 2009;10:116.
 38.
Sze MA, Abbasi M, Hogg JC, Sin DD. A Comparison between droplet digital and quantitative PCR in the analysis of bacterial 16S load in lung tissue samples from control and COPD GOLD 2. PLoS One. 2014;9:e110351.
 39.
Stoddard SF, Smith BJ, Hein R, Roller BRK, Schmidt TM. rrnDB: improved tools for interpreting rRNA gene abundance in bacteria and archaea and a new foundation for future development. Nucleic Acids Res. 2015;43:D593–8.
 40.
Do CB, Batzoglou S. What is the expectation maximization algorithm? Nat Biotechnol. 2008;26:897–9.
 41.
Caporaso JG, et al. Moving pictures of the human microbiome. Genome Biol. 2011;12:R50.
 42.
David LA, et al. Host lifestyle affects human microbiota on daily timescales. Genome Biol. 2014;15:R89.
 43.
Gibbons SM, Kearney SM, Smillie CS, Alm EJ. Two dynamic regimes in the human gut microbiome. PLOS Comput Biol. 2017;13:e1005364.
 44.
Faust K, et al. Signatures of ecological processes in microbial community time series. Microbiome. 2018;6:120.
 45.
Paulson JN, Stine OC, Bravo HC, Pop M. Differential abundance analysis for microbial markergene surveys. Nat Methods. 2013;10:1200–2.
 46.
Robinson MD, Oshlack A. A scaling normalization method for differential expression analysis of RNAseq data. Genome Biol. 2010;11:R25.
 47.
Pasolli E, et al. Accessible, curated metagenomic data through ExperimentHub. Nat Methods. 2017;14:1023–4.
 48.
Magnúsdóttir S, et al. Generation of genomescale metabolic reconstructions for 773 members of the human gut microbiota. Nat Biotechnol. 2016;35:81–9.
 49.
Gauffin Cano P, Santacruz A, Moya Á, Sanz Y. Bacteroides uniformis CECT 7771 ameliorates metabolic and immunological dysfunction in mice with highfatdiet induced obesity. PLoS One. 2012;7:e41079.
 50.
De Filippo C, et al. Impact of diet in shaping gut microbiota revealed by a comparative study in children from Europe and rural Africa. Proc Natl Acad Sci U S A. 2010;107:14691–6.
 51.
AzcaratePeril MA, et al. Impact of shortchain galactooligosaccharides on the gut microbiome of lactoseintolerant individuals. Proc Natl Acad Sci. 2017;114:E367–75.
 52.
Candela M, et al. Unbalance of intestinal microbiota in atopic children. BMC Microbiol. 2012;12:95.
 53.
Venturelli OS, et al. Deciphering microbial interactions in synthetic human gut microbiome communities. Mol Syst Biol. 2018;14:e8157.
 54.
Clemente JC, Ursell LK, Parfrey LW, Knight R. The impact of the gut microbiota on human health: An integrative view. Cell. 2012;148:1258–70.
 55.
Munukka E, et al. Faecalibacterium prausnitzii treatment improves hepatic health and reduces adipose tissue inflammation in highfat fed mice. ISME J. 2017;11:1667–79.
 56.
Wexler HM. Bacteroides: the good, the bad, and the nittygritty. Clin Microbiol Rev. 2007;20:593–621.
 57.
Derrien M, van Hylckama Vlieg JET. Fate, activity, and impact of ingested bacteria within the human gut microbiota. Trends Microbiol. 2015;23:354–66.
 58.
Zhang C, et al. Ecological robustness of the gut microbiota in response to ingestion of transient foodborne microbes. ISME J. 2016;10:2235–45.
 59.
Agler MT, et al. Microbial hub taxa link host and abiotic factors to plant microbiome variation. PLOS Biol. 2016;14:e1002352.
 60.
Vandeputte D, et al. Quantitative microbiome profiling links gut community variation to microbial load. Nature. 2017;551:507.
 61.
Sloan WT, et al. Quantifying the roles of immigration and chance in shaping prokaryote community structure. Environ Microbiol. 2006;8:732–40.
 62.
Logan JD, Wolesensky WR. Mathematical methods in biology: Wiley; 2009.
 63.
Ridenhour BJ, et al. Modeling timeseries data from microbial communities. ISME J. 2017;11:2526–37.
 64.
Ay A, Arnosti DN. Mathematical modeling of gene expression: a guide for the perplexed biologist. Crit Rev Biochem Mol Biol. 2011;46:137–51.
 65.
Smits SA, et al. Seasonal cycling in the gut microbiome of the Hadza huntergatherers of Tanzania. Science. 2017;357:802–6.
 66.
Ren T, et al. Seasonal, spatial, and maternal effects on gut microbiome in wild red squirrels. Microbiome. 2017;5:163.
 67.
Ashida H, Ogawa M, Kim M, Mimuro H, Sasakawa C. Bacteria and host interactions in the gut epithelial barrier. Nat Chem Biol. 2012;8:36–45.
 68.
Silverman JD, Durand HK, Bloom RJ, Mukherjee S, David LA. Dynamic linear models guide design and analysis of microbiota studies within artificial human guts. Microbiome. 2018;6:202.
 69.
Gould AL, et al. Microbiome interactions shape host fitness. Proc Natl Acad Sci U S A. 2018;115:E11951–60.
 70.
Aitchison J. The statistical analysis of compositional data: Chapman & Hall, Ltd; 1986.
 71.
Gramacy RB. monomvn: estimation for multivariate normal and studentt data with monotone missingness; 2017.
 72.
Booth JG, Hobert JP. Maximizing generalized linear mixed model likelihoods with an automated Monte Carlo EM algorithm. J R Stat Soc Ser B Stat Methodol. 1999;61:265–85.
 73.
Ramsey J, Ripley B. pspline: penalized smoothing splines; 2017.
 74.
Marioni JC, Mason CE, Mane SM, Stephens M, Gilad Y. RNAseq: an assessment of technical reproducibility and comparison with gene expression arrays. Genome Res. 2008;18:1509–17.
Acknowledgements
We would like to thank Dr. Lawrence David, Dr. Eric Alm, Dr. Ruben Props, and Dr. Nico Boon for sharing OTU tables from their studies [35, 42]. We thank Dr. Chen Ying (Genome Institute of Singapore) for providing inputs on method development.
Software and reproducibility of results
BEEM is available as an R package under the MIT license at https://github.com/csb5/BEEM. Scripts to reproduce the results presented in this work are also available at this website.
Funding
This work was supported by funding to the Genome Institute of Singapore from the Agency for Science, Technology and Research (A*STAR), Singapore.
Author information
Affiliations
Contributions
NN and CL designed the study. CL developed the software. CL and TVAS performed the analysis. JSK generated the growth curve data. CL, KRC, LTK, and NN wrote the manuscript. All authors read and approved the final manuscript.
Corresponding author
Correspondence to Niranjan Nagarajan.
Ethics declarations
Ethics approval and consent to participate
Not applicable.
Consent for publication
Not applicable.
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Additional files
Additional file 1:
Supplementary Figure 1: Noise in experimentally determined biomass severely distorts gLVM parameter estimation. Supplementary Figure 2: The impact of noise on the performance of different gLVM parameter estimation algorithms is similarly captured with other evaluation metrics as well. Supplementary Figure 3: Relative abundances observed for the most abundant species in 840 normal stool metagenomic samples from Pasolli et al. Supplementary Figure 4: Boxplots of relative error in BEEM estimated parameters from data with different number of species. Each box represents 30 independent simulations. Supplementary Figure 5: BEEM effectively controls for false positive interactions in a synthetic community with no interactions. Supplementary Figure 6: Scatter plot for predicted growth rates from BEEM versus growth rates reported in the AGORA database based on genomescale. metabolic models. Supplementary Figure 7: BEEM estimated biomass and interaction networks from the two shorter gut microbial longitudinal profiles from David et al and Caporaso et al. Supplementary Figure 8: Changes in calcium intake for the preceding day in relation to BEEMestimated biomass for subject DA’s gut microbiome. Supplementary Figure 9: Scatter plots with fitted linear regression lines between the two hub OTUs and the estimated biomass of M3’s gut microbiome. Supplementary Figure 10: Scatter plot with fitted linear regression line between the out and indegree of the OTU versus its mean relative abundance on log scale. Supplementary Figure 11: Core species of gut microbiome are often not among the top abundant species. (PDF 4735 kb)
Additional file 2:
GLVM parameter estimates for the gut microbiomes of the four subjects. (XLSX 51 kb)
Additional file 3:
OD600 measurements for 10 different species. (XLSX 10 kb)
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.
About this article
Cite this article
Li, C., Chng, K.R., Kwah, J.S. et al. An expectationmaximization algorithm enables accurate ecological modeling using longitudinal microbiome sequencing data. Microbiome 7, 118 (2019) doi:10.1186/s401680190729z
Received
Accepted
Published
DOI