LiteMicroFormer: A Lightweight Attention-Guided Transformer with Adaptive Cluster Under-Sampling for Metagenomic Disease Prediction
4 affiliations
- 1Department of Computer Science and Engineering, American International University-Bangladesh (AIUB), Dhaka 1229, Bangladesh
- 2Department of Electrical Engineering and Computer Science, Texas A&M University-Kingsville, Kingsville, TX 78363, USA
- 3Institute for Advanced Computing, Virginia Polytechnic Institute and State University (Virginia Tech), Blacksburg, VA 24061, USA
- 4Department of Computer Science, College of Computer and Information Sciences, King Saud University, Riyadh 11543, Saudi Arabia
Abstract
High-dimensional microbial abundance profiles, limited sample sizes, and severe class imbalance make accurate disease prediction from human gut metagenomics challenging. To address these limitations, we propose LiteMicroFormer, a lightweight attention-guided transformer framework for disease-specific binary classification using species-level microbiome profiles and metadata. LiteMicroFormer embeds species values, applies feature-gating attention, extracts microbial representations through a transformer, fuses metadata, and uses attention pooling to capture informative low-complexity patterns. To handle majority-class imbalance, the framework integrates AGACUS (Attention-Guided Adaptive Cluster Under-Sampling), which selectively downsamples majority instances using model uncertainty, attention relevance, and cluster diversity while preserving all minority disease samples. Evaluated using repeated subject-level partitions across four binary tasks (Healthy vs. Obesity, IBD, Cirrhosis, and CRC) over five random seeds, LiteMicroFormer achieved accuracies of 0.9321, 0.9606, 0.8553, and 0.9417, alongside ROC-AUC scores of 0.9743, 0.9796, 0.9205, and 0.9719, respectively. These results demonstrate strong internal predictive performance, while independent cross-cohort generalizability remains to be established. SHAP analysis was performed on learned latent representations to examine their contributions to model predictions, providing model-level explanations without claiming validated species-level biological interpretability.
Related
- CBAT-Net: a unified CNN–BiLSTM–MultiHead transformer architecture for joint Q3/Q8 protein secondary structure prediction
- A novel LLM-based GPT-neo transformer with machine learning architecture for promoters prediction in Agrobacterium
- GTT-EC: a hierarchical graph transformer framework for enzyme function prediction via functional residue modeling
- AdventML: Advanced Enzyme Temperature Prediction with Transformer-Based Embeddings and Resampling Strategies
- Cross-tissue graph attention networks for semi-supervised gene expression prediction
BibTeX
@article{sadi2026litemicroformer,
title = {{LiteMicroFormer: A Lightweight Attention-Guided Transformer with Adaptive Cluster Under-Sampling for Metagenomic Disease Prediction}},
author = {Md Tafhimul Haque Sadi and Sultanul Arifeen Hamim and Dunren Che and Tessema Mengistu and Mejdl Safran},
journal = {International Journal of Molecular Sciences},
year = {2026},
month = nov,
doi = {10.3390/ijms272210484},
url = {https://www.mdpi.com/1422-0067/27/22/10484},
note = {CC BY 4.0},
}
RIS
TY - JOUR
TI - LiteMicroFormer: A Lightweight Attention-Guided Transformer with Adaptive Cluster Under-Sampling for Metagenomic Disease Prediction
AU - Md Tafhimul Haque Sadi
AU - Sultanul Arifeen Hamim
AU - Dunren Che
AU - Tessema Mengistu
AU - Mejdl Safran
PY - 2026
DA - 2026/11/01
JO - International Journal of Molecular Sciences
DO - 10.3390/ijms272210484
UR - https://www.mdpi.com/1422-0067/27/22/10484
AB - High-dimensional microbial abundance profiles, limited sample sizes, and severe class imbalance make accurate disease prediction from human gut metagenomics challenging. To address these limitations, we propose LiteMicroFormer, a lightweight attention-guided transformer framework for disease-specific binary classification using species-level microbiome profiles and metadata. LiteMicroFormer embeds species values, applies feature-gating attention, extracts microbial representations through a transformer, fuses metadata, and uses attention pooling to capture informative low-complexity patterns. To handle majority-class imbalance, the framework integrates AGACUS (Attention-Guided Adaptive Cluster Under-Sampling), which selectively downsamples majority instances using model uncertainty, attention relevance, and cluster diversity while preserving all minority disease samples. Evaluated using repeated subject-level partitions across four binary tasks (Healthy vs. Obesity, IBD, Cirrhosis, and CRC) over five random seeds, LiteMicroFormer achieved accuracies of 0.9321, 0.9606, 0.8553, and 0.9417, alongside ROC-AUC scores of 0.9743, 0.9796, 0.9205, and 0.9719, respectively. These results demonstrate strong internal predictive performance, while independent cross-cohort generalizability remains to be established. SHAP analysis was performed on learned latent representations to examine their contributions to model predictions, providing model-level explanations without claiming validated species-level biological interpretability.
SN - 1422-0067
ER -