Search bioRxiv⌕ Search

bioRxiv · 10.1101/2025.10.19.683269

Self-supervised learning enables robust microbiome predictions in data-limited and cross-cohort settings

Abstract

The gut microbiome plays a crucial role in human health, but machine learning applications in this field face significant challenges, including limited labeled data availability, high dimensionality, and batch effects across different cohorts. To address these limitations, we developed representation learning models for gut microbiome metagenomic data, drawing inspiration from foundation models approaches based on self-supervised and transfer learning principles. By leveraging a large collection of 85,364 metagenomic samples, we implemented multiple self-supervised learning methods, including masked autoencoders with varying masking rates and adapted single-cell RNA sequencing models (scVI and scGPT), to generate embeddings from bacterial abundance profiles. These learned representations demonstrated significant advantages over raw bacterial abundances in two key scenarios: first, when training predictive models with very limited labeled data, improving prediction performance for age (r = 0.14 vs. 0.06), BMI (r = 0.16 vs. 0.11), visceral fat mass (r = 0.25 vs. 0.18), and drug usage classification (PR-AUC = 0.81 vs. 0.73); and second, when generalizing predictions across different cohorts, consistently outperforming models based on raw abundances in cross-dataset evaluation. Our approach provides a valuable framework for leveraging self-supervised representation learning to overcome the data limitations inherent in microbiome research, potentially enabling more robust and generalizable machine learning applications in this field.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Zahavi, L., Levine, Z., Godneva, A., Dubinkina, V., Dhir, R., Pollard, K. S., Weinberger, A., Segal, E.. 2025-10-20. Self-supervised learning enables robust microbiome predictions in data-limited and cross-cohort settings. https://doi.org/10.1101/2025.10.19.683269

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

The impacts of exogenous noise on stochastic disease dynamics

Much of the literature and intuition associated with mathematical epidemiology is driven by deterministic models, which are a reasonable assumption when the population size is large. Stochastic models, especially individual based models, are however considered vital when dealing with small population sizes, especially at times of invasion or extinction. The overwhelming majority of these models (both deterministic and stochastic) assume that the underlying parameters are fixed (or follow a regular seasonal pattern). Here, we consider an analytic framework for dealing with randomly varying parameters through the use of stochastic differential equations - thereby capturing the action of external noisy processes such as weather. In particular, we focus on when the transmission rate, {beta}, varies as the solution to a Cox-Ingersoll-Ross Model, such that {beta} is gamma distributed with autocorrelation. We consider the impact of this parameter variation on a stochastic version of the Susceptible-Infected-Recovered model, and for this 'double-stochastic' model show through simulation and analytical results that exogenous noise increases the impact of stochasticity, potentially leading to more early extinctions, wider variations in the number of cases at equilibrium, but that early growth rate can be faster or slower depending on the precise parameters.

systems biology↗

Site-resolved spatial and structural interactome of a human cell

The spatial and structural arrangement of proteins determine virtually every process in human cells. We combined gentle subcellular fractionation by differential ultracentrifugation with cross-linking mass spectrometry to systematically map this cellular proteome architecture with residue-level evidence, identifying 164,146 residue-to-residue links in HEK293 cells. These links capture spatial protein arrangement at a resolution sufficient to pinpoint protein localizations at sub-organelle level, determine protein orientations within cellular membranes, and identify inter-organelle contact sites. The residue-level information provides evidence for 18,074 direct protein-protein interactions (PPIs), which we integrate into AlphaFold-based pipelines to nominate PPI-mediating short linear motifs and generate assembly models of large protein complexes. Guided by these spatial and structural readouts, we discover new PPIs within the endomembrane system that regulate the compartmental localization of trafficking machinery. Leveraging a network topology-driven strategy, we augment our HEK293 dataset with PPI data from different cell lines and methods, expanding the spatial and structural interactome of human cells.

systems biology↗

Sensory variation and behavioural degeneracy: a framework for interpreting heterogeneity in the gut-brain axis

Gut microbiome differences are frequently interpreted as reflecting underlying biological differences between individuals. When outcomes are mediated by behaviour, however, this mapping may be fundamentally non-unique. This limits causal inference in gut-brain research, where microbiome differences in autism and depression are routinely attributed to intrinsic neurobiology despite highly variable, overlapping findings. I built a minimal agent-based model grounded in the known sensory variation across the autism spectrum. Dietary behaviour emerges from latent sensory traits, including sensory drive, predictability preference, and context sensitivity, through reinforcement learning and environmental interaction. This behaviour shapes gut microbiome composition. Behavioural variation organizes endogenously into a continuum of specialist, opportunist, and explorer strategies that maps onto the autism sensory spectrum. The system is fundamentally degenerate. Similar microbiome states arise from distinct behavioural pathways. Similar dietary patterns emerge from divergent latent traits. This many-to-one mapping reflects the structural interaction of behaviour, learning, and environmental variability, not stochasticity alone. Microbiome similarity therefore does not uniquely identify underlying cause. As such, the model provides a theoretical framework for interpreting heterogeneity in gut microbiome research, particularly in autism, and generalizes to any condition where behaviour mediates between neural processes and ecological outcomes.

systems biology↗