How Many Zeros Does It Take? Recovering Microbial Interactions from Detection Patterns

When a gut sample is sequenced, most bacterial species show up as exact zeros. Often the species is still present but sits below the sequencing detection limit, so it went unsampled. Microbiome time-series methods treat these zeros as a nuisance. They add a small "pseudocount" before taking logarithms or drop rare taxa altogether. This proposal treats the detection limit as what an engineer would call a coarse quantizer: a device that turns a continuous abundance into one bit, "seen" or "not seen." Wireless engineers who build receivers with 1-bit analog-to-digital converters have worked out exactly how much correlation information survives such clipping. We borrow that analysis to answer a practical question in longitudinal microbiome studies. From the on/off pattern of a rare species across a few dozen time points, can we tell whether it drives, or is driven by, another species? And how does the answer depend on sequencing depth versus the number of samples collected?

The central tool is a generalization of a classical result. For two zero-mean Gaussian signals clipped at zero, the correlation of their signs equals $\frac{2}{\pi}\arcsin\rho$ (the arcsine law), which can be inverted exactly. Granger Causality from Quantized Measurements used this inversion to test directed influence ("Granger causality": the past of X improves prediction of Z) from 1-bit data. Sequencing detection differs in two ways. The clip level sits far out in the tail rather than at zero, and it moves from sample to sample because read depth varies. We extend the inversion to this setting and turn it into a causality test. We also derive a closed-form "detectability map" that says in advance which interactions a study design can and cannot resolve.

Core Claim

The claim has two parts. First, a lagged latent-Gaussian model gives consistent estimates of lagged cross-correlations, and from them directed-interaction tests, for species observed mostly as zeros. In this model each species' log relative abundance is a monotone transform of a hidden Gaussian series, and detection happens when that series crosses a threshold set by the sample's read depth. Pseudocount-log and presence/absence Pearson methods are biased for these species. Second, the same model predicts how much signal survives. For a hidden correlation $\rho$ between species $i$ and $j$, first-order Price's-theorem expansion of the bivariate normal gives the correlation of their detection indicators as

$$\mathrm{Corr}(Y_i, Y_j) \approx g(\tau_i)\,g(\tau_j)\,\rho, \qquad g(\tau) = \frac{\phi(\tau)}{\sqrt{p(\tau)\,(1-p(\tau))}},$$

where $\tau_i$ is the standardized detection threshold for species $i$, $\phi$ is the standard normal density, and $p(\tau)$ is that species' detection probability. At $\tau = 0$ this recovers the small-$\rho$ limit of the arcsine law, $(2/\pi)\rho$. For rare species, with $\tau$ large, $g(\tau)^2$ decays roughly like $\tau^2 p(\tau)$. Since a sample correlation from $T$ time points has noise of order $1/\sqrt{T}$, an edge is detectable roughly when

$$|\rho|\, g(\tau_i)\, g(\tau_j) \gtrsim z/\sqrt{T},$$

where $z$ is the chosen significance quantile. Deeper sequencing lowers $\tau$ by about $\log 2 / s_i$ per doubling, with $s_i$ the spread of species $i$'s log-abundance. This yields a quantitative trade-off between sequencing depth and number of time points. As far as the file shows, no one has stated this trade-off for longitudinal microbiome designs.

Relation to Prior Work

The method's backbone comes from Granger Causality from Quantized Measurements. That paper builds a "causality matrix" from cross-covariances and declares X causes Z when the matrix's smallest singular value (the "causality margin") is bounded away from zero. It inverts 1-bit correlations with the arcsine law and bounds multi-level quantization with Price's theorem. Its tests use a synthetic AR(2) process with 1,000 samples. We keep the causality-matrix test and change what feeds it. Ahmadi et al. assume zero-mean jointly Gaussian signals clipped at zero, a known lag order, and no finite-sample confidence. Our setting has tail thresholds that vary per sample, 10–30 points per subject pooled across subjects, and unknown lag. We add a pairwise likelihood estimator for the hidden correlations, lag selection, and block-bootstrap intervals on the margin.

Constraining work from communications shapes one design choice. Ma et al. and Ma et al. show that Bussgang linearization breaks when inputs are bounded or non-Gaussian, and Yapici et al. show that quantization error is signal-dependent. Microbial abundances are non-negative and skewed, so we do not linearize the observations directly. Instead a per-species monotone transform absorbs skewed marginals, and only the dependence structure is assumed Gaussian. Whether Lotka–Volterra dynamics violate even that weaker assumption is an empirical question the experiments test directly.

On the ecology side, Robust and Scalable Models of Microbiome Dynamics (MDSINE-style Bayesian generalized Lotka–Volterra with interaction modules and a Negative Binomial read model) motivates the problem. It documents the "log of zero" failure, but it relies on qPCR total-load measurements to calibrate absolute scale. Quantifying microbial interactions ... iterative approach (iLV) fits Lotka–Volterra on compositions but treats zeros as ordinary numbers and cannot identify self-interactions. Neural Granger Causality (component-wise MLP/LSTM networks with group-sparse input weights) handles nonlinear dynamics and selects lags, but it assumes continuous high-precision inputs. Causal discovery for the microbiome reports that observational DAG methods reach only about 50% true discovery on simple metagenomic simulations. Our proposal is narrower than all of these. We do not model full dynamics. We ask what the detection pattern alone reveals about directed dependence, and we use the answer as both an estimator and a study-design tool.

Research Program

Model. The model is built first. For subject $s$, time $t$, and species $i$, we posit a hidden stationary Gaussian vector series $u_{s,t}$ with lagged cross-covariance shared across subjects. The log relative abundance is $f_i(u_{s,t,i})$ for a monotone $f_i$. Detection occurs when relative abundance exceeds roughly $c/D_{s,t}$, where $D_{s,t}$ is the known read depth. Abundant species are always detected and enter through rank-based normal scores. Rare species enter as binary indicators with sample-specific thresholds. Mixed pairs, one continuous and one binary, use the analogous one-sided bridge.

Estimation. Each lagged hidden correlation is estimated by maximizing a pairwise composite likelihood over the per-sample bivariate normal orthant probabilities. The varying depth acts like the known dither in Jacobsson et al.: it shifts the clip level across samples, so threshold and correlation become separately estimable.

Compositional confounder. Relative abundance equals absolute abundance minus log total load. Fluctuating total load therefore acts as a common hidden driver that can create spurious lagged links. We add one common factor to the hidden series, estimated from the always-detected taxa, and test whether this correction suffices where qPCR ground truth exists.

Test. The estimated covariances feed the causality matrix of Ahmadi et al. Lag order is chosen as the smallest $p$ at which the margin stabilizes under a moving-block bootstrap across subjects. The same bootstrap gives confidence intervals for the margin, which addresses a limitation Ahmadi et al. leave open.

Design map. Finally, we validate the detectability inequality: predicted versus empirical edge-recovery rates as functions of $T$, depth, and species prevalence.

Baselines

Naive reference. The naive reference is linear Granger causality on centered-log-ratio abundances with a pseudocount of one read. This is what most pipelines would do. Beating it on rare-species edges is necessary but not sufficient.

Median-sign arcsine test. The second baseline is the direct application of Ahmadi et al.: binarize each species at its own median and apply the arcsine inversion. This works for abundant species, where the median is positive. It is undefined for species absent in more than half the samples, and it discards amplitude for abundant ones. It isolates the value of handling tail thresholds.

Strongest principled competitor. This is a Negative Binomial state-space Lotka–Volterra model in the style of Gibson and Gerber, run with and without qPCR. The file reports only qualitative outcomes: a 10x runtime speedup on 13 simulated species, and identification of C. scindens as an inhibitor of C. difficile on the Bucci mouse data. No numeric edge-recovery result was found on Lacuna for it. Its correct count likelihood uses depth information in principle. We will run it with the authors' default priors and the same subjects, time points, and a matched wall-clock budget.

Dynamics-fitting competitors. iLV serves as the compositional baseline. Its paper reports cosine similarity above 0.7 for recovered interaction coefficients under 5–10% noise, and trajectory RMSE of 0.149 on the cheese community. We score it on edge sign and direction.

Neural competitor. The component-wise LSTM of Tank et al. is run on log-ratio inputs with the hierarchical lag penalty. It reports AUROC above 0.90 on Lorenz-96. Its penalty strength gets the same number of tuning trials as our bootstrap threshold.

Beating the competitors. Our method counts as better if it achieves higher AUROC than every baseline on edges involving species detected in under 40% of samples, and does no worse than the best baseline on abundant-species edges.

Key ablation. The key ablation replaces the depth-varying threshold with a single fixed threshold per species. If performance holds, the dither argument is not doing work. A second ablation removes the common-factor correction.

Why not just…?

Why not just use the Negative Binomial likelihood, which already knows about depth? This is the real threat. A well-specified count model uses every read and the depth offset, so in principle it dominates a binarized method. Our expected advantages are three. We do not assume Lotka–Volterra form. We need no qPCR. We scale to hundreds of taxa, because pairwise estimation is cheap. We will test the threat directly on simulations generated from Negative Binomial sequencing. If the count model with qPCR matches us on rare-species edges at equal compute, the contribution shrinks to the design map and the qPCR-free setting, and we will say so.

Why not just use the median-sign arcsine test? For a species detected in 20% of samples the median is zero, so the arcsine law has nothing to invert. The gain formula also shows that ignoring the true threshold misstates the attenuation by $g(\tau)$. The median-sign baseline measures exactly this cost.

Why not just add pseudocounts and run log-ratio Granger or a neural model? Gibson and Gerber document that pseudocount-log transforms distort low-abundance dynamics. At 10–30 time points, Tank et al.'s networks need heavy regularization. Both claims are tested in the rare-species stratum of the simulation grid. A neural model winning there would falsify our first claim.

Proposed Experiments

Simulation. The first experiment uses stochastic generalized Lotka–Volterra simulation with 13 to 200 species and known interaction graphs, including the 13-species configuration of Gibson and Gerber. Absolute abundances pass through multinomial or Negative Binomial sequencing at depths from 1k to 100k reads, with $T \in \{10, 20, 30, 60\}$ per subject and 5–40 subjects. Metrics are edge AUROC and direction accuracy, stratified by prevalence, plus bootstrap-interval coverage for the margin.

Sanity check. We reproduce Ahmadi et al.'s AR(2) 1-bit separation, a margin of 0.4697 for the causal link versus 0.0095 for the non-causal link, as the $\tau = 0$ special case.

Real data. We use the Bucci et al. C. difficile mouse data (13 commensals, 26 samples per mouse over 56 days). We subsample reads to lower depths and ask whether edges recovered from detection patterns alone agree with those from full-depth, qPCR-calibrated inference, including C. scindens inhibition. The cheese community gives a second compositional test.

Decisive checks. Three results decide the proposal. The first is whether empirical recovery curves track the predicted detectability boundary across depth and $T$. The second is whether the method beats the count-model baseline on rare-species edges without qPCR. The third is whether the common-factor correction removes spurious edges induced by simulated total-load swings. If the boundary prediction fails under Lotka–Volterra dynamics, then the Gaussian-dependence assumption is wrong for ecological data, and that negative result is itself worth reporting.