Machine learning approaches in microbiome research: challenges and best practices

Γεώργιος Παπουτσόγλου, Sonia Tarazona, Marta B. Lopes, Thomas Klammsteiner, Eliana Ibrahimi, Julia Eckenberger, Pierfrancesco Novielli, Alberto Tonda, Andrea Simeon, Rajesh Shigdel, Stéphane Béreux, Giacomo Vitali, Sabina Tangaro, Leo Lahti, Andriy Temko, Marcus J. Claesson, Magali BerlandFrontiers in Microbiology 2023

Abstract

Microbiome data predictive analysis within a machine learning (ML) workflow presents numerous domain-specific challenges involving preprocessing, feature selection, predictive modeling, performance estimation, model interpretation, and the extraction of biological information from the results. To assist decision-making, we offer a set of recommendations on algorithm selection, pipeline creation and evaluation, stemming from the COST Action ML4Microbiome. We compared the suggested approaches on a multi-cohort shotgun metagenomics dataset of colorectal cancer patients, focusing on their performance in disease diagnosis and biomarker discovery. It is demonstrated that the use of compositional transformations and filtering methods as part of data preprocessing does not always improve the predictive performance of a model. In contrast, the multivariate feature selection, such as the Statistically Equivalent Signatures algorithm, was effective in reducing the classification error. When validated on a separate test dataset, this algorithm in combination with random forest modeling, provided the most accurate performance estimates. Lastly, we showed how linear modeling by logistic regression coupled with visualization techniques such as Individual Conditional Expectation (ICE) plots can yield interpretable results and offer biological insights. These findings are significant for clinicians and non-experts alike in translational applications.

Introduction: The Challenges of Microbiome Data

Microbiome data is notoriously "messy" and presents unique hurdles for standard machine learning (ML) applications. It is typically characterized by high-dimensionality (thousands of microbial species but few samples), extreme sparsity (a high frequency of zeros), and compositionality (data represents relative proportions rather than absolute counts). These factors make standard ML pipelines prone to failure or "over-optimism."

Summary of challenges and constraints in microbiome data analysis.

Common pitfalls include data leakage—where preprocessing is performed on the entire dataset before cross-validation—and the "winner's curse," where the best-performing model is selected from many trials without correcting for selection bias. This paper, a product of the COST Action ML4Microbiome, establishes Standard Operating Procedures (SOPs) to ensure microbiome ML is both robust and reproducible.

A Standardized Roadmap for Microbiome ML

The researchers provide a standardized roadmap for microbiome ML workflows, addressing the specific challenges mentioned above. The typical process moves from data preparation to predictive model building, involving several critical stages: preprocessing, feature selection, and modeling.

The typical process from data preparation to predictive model building, highlighting methods for each stage.

Methods and Benchmarking

The study utilized a massive, curated multi-cohort shotgun metagenomics dataset consisting of 2,090 human stool samples across 13 public cohorts in 9 countries. The target was binary classification of Healthy vs. Colorectal Cancer (CRC)/Adenoma, using 2,014 metagenomic species (MSPs) as features.

The authors evaluated a full ML workflow:

  1. Preprocessing: Testing normalization strategies like Centered Log-Ratio (CLR) transformations and prevalence filtering.
  2. Feature Selection: Comparing standard LASSO regression against Statistically Equivalent Signatures (SES), a multivariate algorithm designed to find minimal, robust feature subsets.
  3. Predictive Modeling: Benchmarking linear models (Logistic Regression, Ridge) against non-linear ensembles (Random Forest, Gradient Boosting Machines, SVMs).
  4. AutoML & Evaluation: Utilizing JADBio, an Automated Machine Learning platform, and Bootstrap Bias Corrected Cross-Validation (BBC-CV) to ensure performance estimates were not inflated.

Key Insights and Results

The benchmarking revealed several critical insights:

  • Preprocessing is model-dependent: Common "best practices" like CLR transformation did not universally improve performance and sometimes decreased sensitivity for certain models.
  • Beware the "Winner's Curse": In low-sample-size studies, the "best" model can appear to have an AUC up to 20 points higher than its true power. Rigorous protocols like BBC-CV are mandatory.
  • SES identifies "Global" Biomarkers: The SES algorithm effectively reduced classification error and identified 20 microbial species consistent across independent geographic cohorts, suggesting they are high-confidence global biomarkers for CRC.
  • The Interpretability Trade-off: While Random Forests often provided the highest raw accuracy (validated test AUC of 0.758), Ridge Logistic Regression was nearly as good (AUC of 0.731) and offered better clinical interpretability.

The models successfully identified known CRC-associated pathogens, such as Fusobacterium nucleatum, as high-importance risk factors. Using Individual Conditional Expectation (ICE) plots, they also identified protective factors like Clostridiales bacterium.

Conclusion

Despite advancements, technical variations (batch effects) remain a significant challenge. The authors emphasize that no single ML pipeline is universal; researchers should explore a range of methods and prioritize transparency. Human domain knowledge remains essential to interpret results and ensure biological plausibility in translational applications.

Summary updated

BibTeX
@inproceedings{2023machine,
  author = {Γεώργιος Παπουτσόγλου and Sonia Tarazona and Marta B. Lopes and Thomas Klammsteiner and Eliana Ibrahimi and Julia Eckenberger and Pierfrancesco Novielli and Alberto Tonda and Andrea Simeon and Rajesh Shigdel and Stéphane Béreux and Giacomo Vitali and Sabina Tangaro and Leo Lahti and Andriy Temko and Marcus J. Claesson and Magali Berland},
  title = {{Machine learning approaches in microbiome research: challenges and best practices}},
  booktitle = {Frontiers in Microbiology},
  year = {2023},
  doi = {10.3389/fmicb.2023.1261889},
}
Figure