uniForest: an unsupervised machine learning technique to detect outliers and restrict variance in microbiome studies
Abstract
Isolation Forests is an unsupervised machine learning technique for detecting outliers in continuous datasets that does not require an underlying equivariant or Gaussian distribution and is suitable for use on small datasets. While this procedure is widely used across quantitative fields, to our knowledge, this is the first attempt to solely assess its use for microbiome datasets. Here we present uniForest, an interactive Python notebook (which can be run from any desktop computer using the Google Colaboratory web service) for the processing of microbiome outliers. We used uniForest to apply Isolation Forests to the Healthy Human Microbiome project dataset and imputed outliers with the mean of the remaining inliers to maintain sample size and assessed its prowess in variance reduction in both community structure and derived ecological statistics (-diversity). We also assessed its functionality in anatomical site differentiation (pre- and postprocessing) using principal component analysis, dissimilarity matrices, and ANOSIM. We observed a minimum variance reduction of 81.17% across the entire dataset and in alpha diversity at the Phylum level. Application of Isolation Forests also separated the dataset to an extremely high specificity, reducing variance within taxa samples by a minimum of 81.33%. It is evident that Isolation Forests are a potent tool in restricting the effect of variance in microbiome analysis and has potential for broad application in studies where high levels of microbiome variance is expected. This software allows for clean analyses of otherwise noisy datasets.
02 /Specification & Classification
Click any tag to browse matching papersReproducibility 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
- mb-PHENIX: Diffusion and Supervised Uniform Manifold Approximation for denoising microbiota data
Cristian Padrón-Manrique, Aarón Vázquez-Jiménez, … Osbaldo Reséndis-Antonio·BioinformaticsPeer-reviewed·Nov 28, 2023
- MeLSI: Metric Learning for Statistical Inference in Microbiome Community Composition Analysis
Nathan Bresette, Aaron C. Ericsson, … Ai‐Ling Lin·mSystemsPeer-reviewed·Jun 29, 2026
- Forward variable selection improves the power of random forest for high- dimensional microbiome data
Tung Dang, Hirohisa Kishino·bioRxiv·Oct 29, 2020
- Over-optimism in unsupervised microbiome analysis: Insights from network learning and clustering
Theresa Ullmann, Stefanie Peschel, … Anne‐Laure Boulesteix·PLoS Computational BiologyPeer-reviewed·Jan 6, 2023
- Phylogeny-Informed Random Forests for Human Microbiome Studies
Hyunwook Koh·Microbiology SpectrumPeer-reviewed·Mar 24, 2026
- Performance Determinants of Unsupervised Clustering Methods for Microbiome Data