TaxaHFE: A machine learning approach to collapse microbiome datasets using taxonomic structure
Abstract
MotivationBiologists increasingly turn to machine learning models not just to predict, but to explain. Feature reduction is a common approach to improve both performance and interpretability of models. However, some biological data sets, 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. ResultsWe 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 (s.d = 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 (ROC-AUC). 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 TaxaHFEs ability to reduce hierarchically organized features to a more information-rich subset increases the interpretability of models. Availability and ImplementationTaxaHFE is available as a Docker image and as R code at https://github.com/aoliver44/taxaHFE.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 16
- FWCI
- 1.42
- Field percentile
- top 19%
- 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
- TAGINE: Fast Taxonomy-based Feature Engineering for Microbiome Analysis
Shiri Baum, Ido Meshulam, … Elhanan Borenstein·Bioinformatics AdvancesPeer-reviewed·Jan 1, 2026
- Target-driven optimization of feature representation and model selection for microbiome sequencing data with ritme
Anja Adamov, Christian L. Müller, Nicholas A. Bokulich·bioRxiv·Sep 17, 2026
- Trends in Machine Learning and Feature Selection Stability for Human Gut Microbiome (Shotgun Metagenomics) and Metabolomics Matched Datasets
Suzette N. Palmer, Animesh Anand Mishra, … Xiaowei Zhan·bioRxiv·Jun 21, 2025
- Effects of Data Transformation and Model Selection on Feature Importance in Microbiome Classification Data
Zuzanna Karwowska, Oliver Aasmets, … Elin Org·bioRxiv·Sep 19, 2023
- MetaFX: feature extraction from whole-genome metagenomic sequencing data
Artem B. Ivanov, Vladimir Alexandrovich Popov, … Ульянцев Владимир Игоревич·BioinformaticsPeer-reviewed·Jan 13, 2026
- Interpreting tree ensemble machine learning models with endoR
Albane Ruaud, Niklas Pfister, … Nicholas D. Youngblut·PLoS Computational BiologyPeer-reviewed·Dec 14, 2022