A framework for effective application of machine learning to microbiome-based classification problems
B. D. Topcuoglu, N. A. Lesniak, M. T. Ruffin, J. Wiens, P. D. Schloss
Abstract
Machine learning (ML) modeling of the human microbiome has the potential to identify microbial biomarkers and aid in the diagnosis of many diseases such as inflammatory bowel disease, diabetes, and colorectal cancer. Progress has been made towards developing ML models that predict health outcomes using bacterial abundances, but inconsistent adoption of training and evaluation methods call the validity of these models into question. Furthermore, there appears to be a preference by many researchers to favor increased model complexity over interpretability. To overcome these challenges, we trained seven models that used fecal 16S rRNA sequence data to predict the presence of colonic screen relevant neoplasias (SRNs; n=490 patients, 261 controls and 229 cases). We developed a reusable open-source pipeline to train, validate, and interpret ML models. To show the effect of model selection, we assessed the predictive performance, interpretability, and training time of L2-regularized logistic regression, L1 and L2-regularized support vector machines (SVM) with linear and radial basis function kernels, decision trees, random forest, and gradient boosted trees (XGBoost). The random forest model performed best at detecting SRNs with an AUROC of 0.695 [IQR 0.651-0.739] but was slow to train (83.2 h) and not inherently interpretable. Despite its simplicity, L2-regularized logistic regression followed random forest in predictive performance with an AUROC of 0.680 [IQR 0.625-0.735], trained faster (12 min), and was inherently interpretable. Our analysis highlights the importance of choosing an ML approach based on the goal of the study, as the choice will inform expectations of performance and interpretability. ImportanceDiagnosing diseases using machine learning (ML) is rapidly being adopted in microbiome studies. However, the estimated performance associated with these models is likely over-optimistic. Moreover, there is a trend towards using black box models without a discussion of the difficulty of interpreting such models when trying to identify microbial biomarkers of disease. This work represents a step towards developing more reproducible ML practices in applying ML to microbiome research. We implement a rigorous pipeline and emphasize the importance of selecting ML models that reflect the goal of the study. These concepts are not particular to the study of human health but can also be applied to environmental microbiology studies.
02 /Specification & Classification
Click any tag to browse matching papers- Organism
- Assay
- Research Focus
- Approach
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
- Interpretable and accurate prediction models for metagenomics data
Edi Prifti, Yann Chevaleyre, … Jean‐Daniel Zucker·GigaSciencePeer-reviewed·Mar 1, 2020
- Integrative Microbiome Profiling of Colorectal Cancer Across South Asian and Western Cohorts Using Interpretable Machine Learning
Mohan Maruthi Sena, Ananya Ganapathy, … Mayilvahanan Bose·bioRxiv·Sep 23, 2025
- Longitudinal Microbiome-based Interpretable Machine Learning for Identification of Time-Varying Biomarkers in Early Prediction of Disease Outcomes
Yifan Dai, Yunzhi Qian, … Di Wu·bioRxiv·Oct 18, 2024
- Leveraging Existing 16S rRNA Gene Surveys to Identify Reproducible Biomarkers in Individuals with Colorectal Tumors
M. A. Sze, P. D. Schloss·bioRxiv·Mar 21, 2018
- Microbiome meta-analysis and cross-disease comparison enabled by the SIAMCAT machine-learning toolbox
Jakob Wirbel, Konrad Zych, … Georg Zeller·Genome biologyPeer-reviewed·Mar 30, 2021
- Machine learning models of human tissue microbiomes for tissue-of-origin prediction
Gita Mahmoudabadi, Stephen R. Quake·bioRxiv·May 6, 2024