mSystemsMicrobiologyPeer-reviewed journal article
MeLSI: Metric Learning for Statistical Inference in Microbiome Community Composition Analysis
Nathan BresetteiD, Aaron C. EricssoniD, Carter WoodsiD, Ai‐Ling LiniD
Abstract
Microbiome beta diversity analysis relies on distance-based methods including PERMANOVA combined with fixed ecological distance metrics (Bray-Curtis, Euclidean, Jaccard, and UniFrac), which treat all microbial taxa uniformly regardless of their biological relevance to community differences. This "one-size-fits-all" approach may miss subtle but biologically meaningful patterns in complex microbiome data. We present MeLSI (Metric Learning for Statistical Inference), a novel machine learning framework that learns data-adaptive distance metrics optimized for detecting community composition differences in multivariate microbiome analyses. MeLSI employs an ensemble of weak learners using bootstrap sampling, feature subsampling, and gradient-based optimization to learn optimal feature weights, combined with rigorous permutation testing for statistical inference. The learned metrics can be used with PERMANOVA for hypothesis testing and with Principal Coordinates Analysis (PCoA) for ordination visualization. Comprehensive validation on synthetic benchmarks and real datasets shows that MeLSI maintains proper Type I error control while delivering competitive or superior F-statistics when signal structure aligns with CLR-based weighting and, crucially, supplies interpretable feature-weight profiles that clarify which taxa drive group separation. On the Atlas1006 dataset, MeLSI achieved stronger effect sizes than the best traditional methods, and even when performance was comparable, the learned feature weights provided biological insight that fixed metrics cannot supply. MeLSI therefore offers a statistically rigorous tool that augments beta diversity analysis with transparent, data-driven interpretability. IMPORTANCEUnderstanding which microbes differ between groups of interest could reveal therapeutic targets and diagnostic biomarkers. However, current analysis methods treat all microbes equally (similar to using the same ruler to measure everything, regardless of what matters most). This means subtle but clinically important differences may go undetected, especially when only a few key species drive disease while hundreds of "bystander" species add noise. MeLSI solves this by learning which microbes matter most for each specific comparison. In comparing male and female gut microbiomes, MeLSI identified specific bacterial families driving the differences, providing actionable biological insights that standard methods miss. This capability is particularly crucial for detecting early disease biomarkers, where differences are subtle and masked by biological variability. By telling researchers not just whether groups differ, but which specific microbes drive those differences, MeLSI accelerates the path from microbiome data to testable biological hypotheses and clinical applications.
- assay: metagenomics
- research focus: clustering
- research focus: differential expression
- approach: deep learning
- Citations
- 0
- FWCI
- 0.00
- Field percentile
- 1th percentile
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Mathematical Foundations of Beta Diversity: Why Common Metrics Fail in Microbiome Analysis
Zihan Zhu, Yiqian Zhang, … Liangliang Zhang·Journal of Statistical Theory and ApplicationsPeer-reviewed·Feb 17, 2026
- uniForest: an unsupervised machine learning technique to detect outliers and restrict variance in microbiome studies
R. J. Leigh, R. A. Murphy, F. Walsh·bioRxiv·May 17, 2021
- Performance Determinants of Unsupervised Clustering Methods for Microbiome Data
- mixMC: a multivariate statistical framework to gain insight into Microbial Communities
Kim-Anh Le Cao, Mary-Ellen Costello, … Pascale Rondeau·bioRxiv·Mar 16, 2016
- Interpretable Metric Learning in Comparative Metagenomics: The Adaptive Haar-like Distance
E. D. Gorman, M. E. Lladser·bioRxiv·Sep 27, 2023
- MIMOSA2: A metabolic network-based tool for inferring mechanism-supported relationships in microbiome-metabolome data
C. Noecker, A. Eng, E. Borenstein·bioRxiv·Sep 14, 2021