When microbiologists track bacterial communities over time by sequencing a marker gene, they often want to know which microbes affect which others. The standard tools infer an "interaction network" from co-varying abundances. Seasons spoil this. Two taxa that both bloom in winter will look linked even if they never interact. The timing of "winter" also shifts from place to place, so a correction tuned to one site's calendar fails at another. We propose to split each taxon's abundance trajectory into three parts: a slow trend, a seasonal cycle, and a leftover remainder. The seasonal cycle shares one shape across sites but runs on a site-specific clock, with its timing and strength allowed to vary by geography. Interactions are then inferred only from the remainder. The bet is that this removes season-driven false edges that calendar-based corrections leave behind, and that it does so even at sparsely sampled sites, because those sites borrow the cycle's shape from better-sampled ones.
The sequencing method here is 16S rRNA amplicon sequencing. It reads a short, variable stretch of a gene that every bacterium carries and uses it as a barcode to estimate the relative abundance of each taxon in a sample. The three research directions play unequal roles. Time series decomposition supplies the mechanism. The 16S longitudinal setting supplies the application and its nuisances: abundances are relative, data are full of zeros, and visits are irregular. Geographic parameter sensitivity supplies the scientific question, which is which decomposition parameters must be calibrated per site and which transfer. It also supplies the method for answering that question: posterior contraction and between-site variance, in the style of land-model inversion.
Core Claim
Our claim is that seasonal confounding of microbial interaction networks is a geographic problem, not just a temporal one. Removing it requires a seasonal component whose phase and amplitude are calibrated per site but partially pooled across sites. Neither a single global decomposition nor independent per-site calendar smooths will do. We expect three results. First, on simulated multi-site communities with known interactions, this decomposition should recover the true network with fewer false edges than direct longitudinal network inference, covariate-adjusted inference, or per-site day-of-year detrending, and the gap should widen as sites' seasons drift out of phase and as per-site sampling thins. Second, on real multi-country infant cohorts, the parameters should separate cleanly into site-sensitive ones (we expect seasonal phase and amplitude) and transferable ones (we expect maturation trend shape and remainder autocorrelation). Third, if real data show no between-site phase variation, the site-specific clock is unnecessary, and we will report that as a result rather than hide it.
Relation to Prior Work
Three papers motivate the gap.
Identifying stationary microbial interaction networks based on irregularly spaced longitudinal 16S rRNA gene sequencing data introduces the Longitudinal Graphical LASSO, a sparse network estimator for irregularly spaced visits. It models within-subject correlation with an exponential dampening rate $\tau$. The authors name the assumption of a stationary network as a core limitation. We keep their estimator as the network stage, but run it on a de-seasonalized remainder.
Deep longitudinal multiomics profiling reveals two biological seasonal patterns in California shows that gut and nasal taxa cycle seasonally, using day-of-year smooths. The study covers a single region, and the authors warn that its two-season pattern may not hold in other climates. We make that warning testable by letting phase vary by site.
Field studies show that seasonal moisture and salinity swings, rather than spatial or host differences, drive soil bacterial shifts (Song et al.), and that spatial river patterns are confounded by the monsoon (Nai et al.). Neither study offers a computational correction.
Four lines of work supply methods. The decomposition borrows its basis idea from N-BEATS, which constrains network blocks to polynomial trend and Fourier seasonal bases. It also borrows from TIDER, which factorizes multivariate series into a smooth trend, a learnable Fourier season and an autoregressive local bias. Both learn these components globally and assume a fixed period. We instead make phase and amplitude site-indexed parameters with a shared prior. The sensitivity analysis copies the logic of Inverse modeling of hydrologic parameters ... in the Community Land Model, whose Bayesian calibration across three US sites separated tightly constrained parameters from "non-informative" ones. That paper also warns that tuning cannot fix structural error. Finally, the NEON nitrate study shows that the same predictors take different functional shapes across sites. This is direct evidence that a shared-shape, site-shifted model is a reasonable middle ground.
Two papers constrain the design. Are Transformers Effective for Time Series Forecasting? shows that a moving-average split followed by linear maps (DLinear) beats much larger attention models. That argues for a low-capacity decomposition rather than a deep one, especially on short microbial series. SSMF handles shifting seasonal regimes but needs a user-fixed period. Our warping addresses that limitation, though only for smooth phase shifts and not abrupt regime changes.
Model
Let $y_{s,i,k}(t)$ be the centered log-ratio abundance of taxon $k$ in subject $i$ at site $s$ and time $t$. Centered log-ratio means the log abundance minus the sample's mean log abundance, a standard fix for relative read counts. We write:
$$ y_{s,i,k}(t) = g_{s,k}(t) + a_{s,k}\, f_k\big(t - \delta_s\big) + r_{s,i,k}(t) $$
Here $g_{s,k}$ is a low-degree polynomial trend (succession or infant maturation). $f_k$ is a period-one-year Fourier series shared across sites. $\delta_s$ is a site phase offset and $a_{s,k}$ a site amplitude. $r$ is the remainder.
The site parameters get hierarchical priors, $\delta_s \sim \mathcal{N}(\beta^\top c_s, \sigma_\delta^2)$, where $c_s$ is a vector of site climate descriptors such as latitude and timing of the temperature minimum. The amplitude $a_{s,k}$ shrinks toward a taxon mean in the same way. This partial pooling is what lets a site with only a handful of visits per subject still obtain a usable seasonal estimate.
The longitudinal graphical LASSO, with its dampening $\tau$, is then fit to $r$ to produce the network. We fit the decomposition by maximum a posteriori estimation with a spike-at-zero likelihood for the zeros. We then sample site parameters with Markov chain Monte Carlo, which is cheap here because there are only a few dozen of them. Per parameter, we report two sensitivity measures: posterior contraction relative to the prior, and the share of variance lying between sites.
Research Program
The first stage is a simulator. It uses generalized Lotka–Volterra dynamics, a standard model in which each taxon's growth depends linearly on the others, with known sparse interactions. This follows the simulation design of BEEM-Static. We add site-specific sinusoidal forcing of growth rates, a phase offset that varies with site, and taxa that share forcing without interacting. Copy-number distortion, compositional closure and irregular visit times are applied before sampling.
The second stage applies the method to the DIABIMMUNE infant cohort, which has stool 16S samples from Finland, Estonia and Russia between 8 and 28 months, as used by DeepMicroGen. In this cohort, country is the geographic factor and maturation is the trend. The iPOP cohort serves as a single-site reference for the shape of $f_k$ where access allows.
A third stage would pair soil 16S time series with NEON's co-located soil-moisture sites, used in the changepoint soil moisture study. The research file documents NEON sensor data but no NEON 16S series. Whether matching microbial data exist is therefore unverified, and this stage is contingent.
Baselines
The do-nothing reference is the longitudinal graphical LASSO fit directly to centered log-ratio abundances, which leaves seasonality in the signal. For forecasting and imputation of held-out visits, the reference is the same taxon's value carried forward from the previous visit. Every method receives the same visits, the same preprocessing and the same per-method tuning budget, selected by held-out-visit likelihood.
The strongest competitor for network recovery is the covariate-adjusted variant of the longitudinal graphical LASSO from the same paper, given site climate covariates and day-of-year sine and cosine terms. It is strongest because it already absorbs linear seasonal effects inside a well-founded estimator for irregular visits. We would claim to beat it if we improve area under the precision–recall curve for edge recovery in phase-shifted simulations, with the improvement holding across random seeds. For this seasonally forced setting, no reported result was found on Lacuna for any method. BEEM-Static's reported AUC-ROC above 0.88, against below 0.63 for correlation methods, comes from unforced cross-sectional simulations. It is context, not a target.
A second competitor is per-site day-of-year smoothing in the style of the generalized additive mixed models of Sailani et al. Each site's seasonal curve is fit independently and removed, and the network is then estimated on the residuals.
For held-out-visit imputation on DIABIMMUNE, the strongest published method is DeepMicroGen. It reports MAE 1.609 against 1.816 for multiple imputation by chained equations (MICE), a classical iterative regression imputer (DeepMicroGen). We will rerun it on our splits rather than compare against the quoted number, because the masking protocol must match. Our method is not built for imputation. Matching DeepMicroGen there would show that the decomposition loses little predictive power; beating it is not required.
Two ablations isolate the key ingredient. In the first, global decomposition, $\delta_s = 0$ and $a_{s,k} = a_k$, in the spirit of N-BEATS and DLinear. The second removes pooling: site parameters are fit independently.
Why not just…?
Why not just detrend each site with its own day-of-year smooth? This is the most serious threat. With dense, multi-year sampling at every site, independent smooths should match our model, because pooling buys little when every site has enough data. Our advantage should appear only when some sites are sparse or cover less than one full cycle. The simulation sweeps visits per subject per site from dense to sparse. If the per-site smooth matches us across the whole sweep, the pooling claim fails and we will say so.
Why not just add climate covariates to the network model? The covariate-adjusted graphical LASSO already exists and is simple. But a linear covariate term cannot represent a cycle whose timing shifts across sites, unless the covariates happen to encode phase. The phase-shift dial in the simulator tests this directly. At zero shift the two should tie, and the spurious-edge rate of the covariate model should grow with the shift.
Why not just use a bigger sequence model that learns seasonality implicitly? DeepMicroGen and attention-based models entangle trend, season and interaction in one hidden state, so they provide no remainder on which to estimate a network. Zeng et al. also found that small linear decompositions beat attention models across nine benchmarks. On series of a few dozen visits, extra capacity is more likely to overfit than to help. We include DeepMicroGen in the imputation comparison to check that our low-capacity model gives up little accuracy.
Why not just sample many sites once and interpolate across space? Cross-sectional surveys such as the Earth Microbiome Project, combined with spatial interpolation such as kriging, cannot tell a persistent site difference from a phase difference sampled at one moment. That is precisely the confound documented by Song et al. and Nai et al. As a falsification check, we will show that single-timepoint subsamples of our simulation attribute season-driven differences to sites.
Decisive Checks
The central experiment plots spurious-edge rate against between-site phase shift and against sampling density, for all baselines and ablations. The proposal succeeds only if the full model beats both the covariate-adjusted network model and per-site smoothing in the sparse, shifted region and ties them elsewhere.
On DIABIMMUNE, we hold out one country at a time and predict its seasonal component from the other two plus climate descriptors. The check is whether the pooled prior on $\delta_s$ transfers better than assuming zero offset. We then report the posterior contraction and between-site variance share for each parameter. This is the geographic sensitivity map the proposal promises.
Finally, if the estimated between-country phase spread is indistinguishable from zero, we conclude that calendar-based correction suffices for this cohort. That would narrow the claim to settings with stronger climatic contrast.
References
- Identifying stationary microbial interaction networks based on irregularly spaced longitudinal 16S rRNA gene sequencing data
- Deep longitudinal multiomics profiling reveals two biological seasonal patterns in California
- The diversity and structure of diazotrophic communities in the rhizosphere of coastal saline plants is mainly affected by soil physicochemical factors but not host plant species
- Compositions and sources of riverine dissolved organic matter in the Bailongjiang catchment, the eastern edge of the Tibetan Plateau
- N-BEATS: Neural basis expansion analysis for interpretable time series forecasting
- Multivariate Time-series Imputation with Disentangled Temporal Representations
- Inverse modeling of hydrologic parameters using surface flux and runoff observations in the Community Land Model
- Understanding links between water-quality variables and nitrate concentration in freshwater streams using high frequency sensor data
- Are Transformers Effective for Time Series Forecasting?
- SSMF: Shifting Seasonal Matrix Factorization
- BEEM-Static: Accurate inference of ecological interactions from cross-sectional microbiome data
- DeepMicroGen: a generative adversarial network-based method for longitudinal microbiome data imputation
- A changepoint approach to modelling nonstationary soil moisture dynamics
- A communal catalogue reveals Earth’s multiscale microbial diversity