Machines now read bacterial communities to make clinical calls. In 16S ribosomal RNA gene sequencing, a short, evolutionarily variable stretch of a universally shared bacterial gene is amplified and read out in bulk, producing a per-sample census of which microbes are present and in roughly what proportions. Classifiers built on these censuses are used to flag dysbiosis — an abnormal community state linked to preterm birth, inflammatory bowel disease, caries, and cancer. But two facts about this setting have never been put together. First, microbial communities drift over time: across pregnancy trimesters, drug interventions, and disease progression, the composition a model saw at training time is not the composition it meets at deployment. Second, those drifts are not demographically uniform: baseline communities and their trajectories differ systematically by race and ethnicity. This is exactly the recipe for temporal fairness drift — a model whose average accuracy looks stable while its error rates quietly diverge between demographic groups. No published work, to my knowledge, has audited or mitigated this on microbiome data.
The core problem is well documented elsewhere. Deho et al. showed that under covariate drift, group error disparities (Negative Predictive Value difference) can reach 28% while aggregate metrics appear steady, and that no fairness intervention family is uniformly robust. Laakom et al. proved that fairness guarantees generalize at a rate governed by the harmonic mean of group sizes — so small clinical cohorts are structurally vulnerable. Meanwhile the microbiome side supplies the raw material: the multi-cohort vaginal microbiome meta-analysis (3,201 samples, 415 pregnant women, 44% Black, 34% White) shows both race-correlated baseline composition and significant temporal variance differences linked to preterm birth, but trains no model; the DMPA contraceptive study shows a clinical intervention driving divergent temporal remodeling by race that was invisible in the pooled cohort. The computational tools for longitudinal 16S — continuous interpolation via BGOB (Lyu et al.), dynamical models (Gibson and Gerber), inverse count regression (PAMIR) — none account for demographics at all. The gap is real, and it is the kind of gap that gets patients misclassified.
Core Claim
I claim three things, each testable on existing public data. First, a classifier trained on 16S profiles from one time window (e.g., first trimester) will, when evaluated on later windows, develop racially disparate error rates — false "dysbiosis" flags for groups whose healthy baseline differs from the training mix — even while aggregate AUC barely moves. Second, this fairness drift is predictable: it tracks a group-conditional measure of compositional drift, not pooled drift, because pooled measures average away the very subgroup whose distribution is moving. Third, it is correctable with a modest intervention: group-balanced continual updating triggered by the group-conditional drift signal, which combines Laakom-style demographic batch balancing with drift-triggered per-group threshold calibration.
The diagnostic ingredient is a direct extension of Deho et al.'s Differential Covariate Drift to compositional data. Because 16S relative abundances live on a simplex (they sum to one, so a bloom in one taxon mechanically deflates all others), raw distributions must first be mapped by the centered log-ratio transform $f$; then, for each protected group $a$, we measure
$$d_a(t) = \mathrm{JSD}\left(f_\# P_t(X \mid A=a),\ f_\# P_{t+1}(X \mid A=a)\right),$$
where $P_t(X \mid A=a)$ is the microbial feature distribution for group $a$ at window $t$ and $f_\#$ is the pushforward of the log-ratio map. The hypothesis is that the fairness gap at $t+1$ grows with $|d_0(t) - d_1(t)|$ — the difference in drift between groups — and only weakly with the pooled drift that standard monitoring would watch. This mirrors, at the input level, what Laakom et al. achieved with their information-theoretic bound, which correlated 0.876 with empirical fairness generalization loss on COMPAS; our target is an analogous correlation between differential compositional drift and realized fairness degradation, on a different data geometry entirely.
Research Program
Three deliverables. The first is a fairness-drift benchmark: a streaming reorganization of the multi-cohort preterm-birth data of Fettweis et al. into sequential training/evaluation windows along gestational time, with a secondary stream formed by feeding the five source cohorts in sequence to simulate multi-site deployment with batch effects. The second is the diagnostic above, implemented as a per-group drift monitor in log-ratio space, evaluated by how well it predicts fairness degradation one window ahead. The third is the mitigation: a continual updater that (i) fires only when the group-conditional drift signal crosses a threshold, (ii) retrains with demographic batch balancing — enforcing equal group proportions per mini-batch, which Laakom et al. showed cuts Demographic Parity generalization error from 0.026 to 0.003 (an 8.6x improvement) in the static setting — over a replay buffer of log-ratio-transformed compositional samples, and (iii) recalibrates decision thresholds per group at each update, since Deho et al. found threshold post-processing the most drift-resilient fairness family, albeit at an accuracy cost we will quantify rather than assume away.
Honest constraints shape the design. The preterm-birth cohort has only 415 women, so subgroup fairness estimates will be noisy; all gaps will be reported with bootstrap confidence intervals, and the small-sample fragility predicted by the harmonic-mean bound is itself something we will measure, not hide. The DMPA cohort of Callier et al. (n=25) will be used only as a mechanistic illustration of divergent group dynamics, never for fairness evaluation. Finally, we will run an equity check on the interpolation step itself: using the public BGOB code from Lyu et al., we will test whether interpolation error on irregularly sampled trajectories differs by race, since downstream classifiers would inherit any such disparity — a check that paper never ran.
Baselines
The do-nothing reference is a static classifier — a compositional logistic model trained on the first gestational window and frozen — plus a majority-class dummy. Beating this baseline means, concretely, ending the deployment stream with both a smaller racial TPR gap and a higher aggregate AUC than the frozen model; if we trade one for the other, we have not beaten it.
The standard-practice competitor is the existing microbiome pipeline: ComBat empirical-Bayes batch correction, as used in the preterm-birth meta-analysis to pull t-SNE clustering away from study-site labels, followed by a static model. It runs on identical windows and features, differing only in the correction step. This isolates whether temporal fairness drift is just batch effect in disguise (I claim it is not, and the experiment will say).
The strongest existing competitor is per-group threshold recalibration applied at every window to a periodically updated model — the post-processing family that Deho et al. found most resilient under covariate drift among all fairness algorithms they tested. No reported result found on Lacuna for any fairness metric on the preterm-birth 16S cohort, so this baseline must be run by us; it gets the same data, the same compute, and the same hyperparameter tuning budget as our method, with thresholds re-fit on each window's held-out tail. Beating it means a lower median EO gap across windows without the accuracy sacrifice Deho et al. observed for post-processing under drift.
Periodic naive fine-tuning is included as a known-failure control rather than a serious contender: Ceccon et al. showed naive fine-tuning collapses diagnostic AUC to 0.55 from a 0.78 joint-training ceiling, and FaIRL's evaluation showed LwF fall to roughly 10% accuracy by the fifth incremental stage on Biased MNIST. For the cross-sectional sanity check of the classification layer itself, PAMIR (which achieved ~25.4% error on MetaHIT enterotype classification versus ~32.5% for standard forward logistic regression) serves as the strongest microbiome-specific static predictor. Finally, two ablations isolate the proposal's key ingredients: the same continual updater with demographic batch balancing switched off (random batches), and the same updater triggered by pooled rather than group-conditional drift. If either ablation matches the full method, the corresponding ingredient — and the paper's story — is dead.
Why not just…?
Why not just batch-correct with ComBat and move on? ComBat removes static, labeled laboratory artifacts, and in the vaginal meta-analysis it did exactly that. But temporal fairness drift is a moving target: the drift here is biological and demographic, unfolding across trimesters and interventions without a batch identifier, and Deho et al. — citing the correct id, (Is it Still Fair? A Comparative Evaluation of Fairness Algorithms through the Lens of Covariate Drift; Is it still fair? A comparative evaluation of fairness algorithms through the lens of covariate drift) — showed pre-processing corrections applied to training data degrade unpredictably under subsequent covariate drift, with disparities reaching 28%. Our experiment settles it directly: ComBat is a baseline, and if it holds fairness steady across windows, the proposal collapses to a routine engineering note.
Why not just retrain whenever new data arrives? Periodic fine-tuning is the default operational answer, and the evidence against it in clinical continual learning is severe: AUC collapse to 0.55 (Ceccon et al.), accuracy collapse to ~10% by stage five (FaIRL benchmarks). Worse for this setting, Laakom et al. showed that recent-batch optimization amplifies group-size asymmetry — exactly the failure mode a 44%/34% cohort with a small preterm-birth subgroup invites. Fine-tuning is included as a baseline so the comparison is empirical, not rhetorical.
Why not just include race as an input feature? This is the most seductive alternative, because baseline compositions genuinely differ by race. But Suriyakumar et al. audited exactly this practice across six clinical datasets: one-hot personalization violated their rationality and envy-freeness conditions in 4 of 6 datasets, with error "gains" as bad as -5.2% on the kidney cohort — the feature intended to help a group actively hurting it. Tsai et al. further showed race features let models exploit structural proxies instead of biological signal. I will run this variant as a third ablation, because if group-aware inputs beat group-balanced training on this data, that is a finding worth reporting, not hiding.
Why not just use standard classifiers on normalized counts? Forward logistic regression on relative abundances performed at chance level (~32.5% error, indistinguishable from majority guessing) on MetaHIT where inverse-regression PAMIR reached ~25.4% (PAMIR), and standard statistical tests on raw irregular longitudinal 16S data found zero significant taxa where interpolated data found validated ones (Lyu et al.). Compositionality and sparsity are not cosmetic problems, which is why our entire pipeline operates in log-ratio space.
Proposed Experiments
Experiment one runs the audit: train on the first gestational window of the preterm-birth multi-cohort data, evaluate on each subsequent window and on each held-out source cohort, tracking aggregate AUC, Equal Opportunity TPR gap by race, and NPV difference. The headline test is the dissociation: aggregate AUC stable, group gaps widening — the signature Deho et al. found in education data, here on compositional biology. Experiment two tests the diagnostic: report the correlation between one-window-ahead differential compositional drift $|d_0 - d_1|$ and realized fairness degradation, with the 0.876 bound-empirical correlation of Laakom et al. as the qualitative precedent to match. Experiment three runs the mitigation against all baselines and ablations on the same streams, with success defined ex ante: beat the frozen static model and the post-processing competitor on median racial TPR gap while staying within 0.03 AUC of the all-data joint-training upper bound (the 0.78 ceiling versus 0.69 continual result in Ceccon et al. suggests the achievable continual-vs-joint gap). Experiment four carries the pipeline to the IBDMDB inflammatory-bowel-disease cohort (130 patients, up to 57 weeks) as a second longitudinal domain, with the honest caveat that its demographic annotations are not documented in the sources I have; if only sex or disease subtype is available, fairness stratification follows whatever attribute exists, and if none does, IBDMDB serves as a pure drift-robustness check. The decisive check throughout is the ablation pair: if pooled-drift triggering and unbalanced batches suffice, the group-conditional story is wrong and the paper becomes a negative result — which, given how many clinical 16S classifiers are quietly heading toward deployment, would itself be worth publishing.
References
- Is it still fair? A comparative evaluation of fairness algorithms through the lens of covariate drift
- Fairness Overfitting in Machine Learning: An Information-Theoretic Perspective
- Meta-Analysis of Vaginal Microbiome Data Provides New Insights Into Preterm Birth
- Differential effects of depot medroxyprogesterone acetate administration on vaginal microbiome in Hispanic White and Black women
- Deep-learning-based interpolation of longitudinal microbiome data powers biologically informative discovery
- Robust and Scalable Models of Microbiome Dynamics
- Prediction Analysis for Microbiome Sequencing Data
- Fairness Evolution in Continual Learning for Medical Imaging
- Sustaining Fairness via Incremental Learning
- Is it Still Fair? A Comparative Evaluation of Fairness Algorithms through the Lens of Covariate Drift
- When Personalization Harms: Reconsidering the Use of Group Attributes of Prediction
- Algorithmic fairness in pandemic forecasting: lessons from COVID-19