TaxaHFE: a machine learning approach to collapse microbiome datasets using taxonomic structure
Open Access
- 1 January 2023
- journal article
- research article
- Published by Oxford University Press (OUP) in Bioinformatics Advances
- Vol. 3 (1) , vbad165
Abstract
Motivation: Biologists increasingly turn to machine learning models not just to predict, but to explain. Feature reduction is a common approach to improve both the performance and interpretability of models. However, some biological datasets, such as microbiome data, are inherently organized in a taxonomy, but these hierarchical relationships are not leveraged during feature reduction. We sought to design a feature engineering algorithm to exploit relationships in hierarchically organized biological data. Results: We designed an algorithm, called TaxaHFE, to collapse information-poor features into their higher taxonomic levels. We applied TaxaHFE to six previously published datasets and found, on average, a 90% reduction in the number of features (SD = 5.1%) compared to using the most complete taxonomy. Using machine learning to compare the most resolved taxonomic level (i.e. species) against TaxaHFE-preprocessed features, models based on TaxaHFE features achieved an average increase of 3.47% in receiver operator curve area under the curve. Compared to other hierarchical feature engineering implementations, TaxaHFE introduces the novel ability to consider both categorical and continuous response variables to inform the feature set collapse. Importantly, we find TaxaHFE’s ability to reduce hierarchically organized features to a more information-rich subset increases the interpretability of models. Availability and implementation: TaxaHFE is available as a Docker image and as R code at https://github.com/aoliver44/taxaHFE.Keywords
All Related Versions
Funding Information
- U.S. Department of Agriculture
- Agricultural Research Service (2032–51530-026-00D)
This publication has 26 references indexed in Scilit:
- Design and implementation of a cross-sectional nutritional phenotyping study in healthy US adultsBMC Nutrition, 2017
- ranger: A Fast Implementation of Random Forests for High Dimensional Data in C++ and R2017
- Determining appropriate approaches for using data in feature selectionInternational Journal of Machine Learning and Cybernetics, 2015
- Microbiomes in light of traits: A phylogenetic perspectiveScience, 2015
- Explaining prediction models and individual predictions with feature contributionsKnowledge and Information Systems, 2013
- Phylogenetic conservatism of functional traits in microorganismsThe ISME Journal, 2012
- Metagenomic biomarker discovery and explanationGenome Biology, 2011
- Feature Selection with theBorutaPackage2010
- Nutrients, foods, and dietary patterns as exposures in research: a framework for food synergyThe American Journal of Clinical Nutrition, 2003
- A Simple Generalisation of the Area Under the ROC Curve for Multiple Class Classification ProblemsMachine Learning, 2001