Related Experiment Video
Updated: Jul 9, 2025

Tick Microbiome Characterization by Next-Generation 16S rRNA Amplicon Sequencing
Published on: August 25, 2018
TaxaHFE: a machine learning approach to collapse microbiome datasets using taxonomic structure
Andrew Oliver1, Matthew Kay2, Danielle G Lemay1,3,4
1USDA-ARS Western Human Nutrition Research Center, Davis, CA 95616, United States.
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.
More Related Videos
Related Concept Videos
Evolutionary Relationships through Genome Comparisons
MALDI-TOF Mass Spectrometry
Matrix-assisted laser desorption ionization (MALDI) is a commonly...

