International journal of molecular sciences

LiteMicroFormer: A Lightweight Attention-Guided Transformer with Adaptive Cluster Under-Sampling for Metagenomic Disease Prediction.

Md Tafhimul Haque Sadi, Sultanul Arifeen Hamim, Dunren Che, Tessema Mengistu, Mejdl Safran

Department of Computer Science and Engineering, American International University-Bangladesh (AIUB), Dhaka 1229, Bangladesh. · Department of Electrical Engineering and Computer Science, Texas A&M University-Kingsville, Kingsville, TX 78363, USA.

Key points

From the paper's conclusion
  • These results demonstrate strong internal predictive performance, while independent cross-cohort generalizability remains to be established.

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.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

LiteMicroFormer: A Lightweight Attention-Guided Transformer with Adaptive Cluster Under-Sampling for Metagenomic Disease Prediction — Science Skim