Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

A Controlled Benchmark of Open-Source and Proprietary LLMs for Few-Shot Microbiome IBD Classification

Author 1: Nouhaila En Najih Author 2: Soufiane Hamida Author 3: Ahmed Moussa
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 17, No. 5 · Published 2026

DOI: 10.14569/IJACSA.2026.0170596

Abstract

Phenotyping inflammatory bowel disease (IBD) from gut microbiome profiles remains challenging due to 93% genus-level zero-inflation, skewed amplicon count distributions, and the practical cost of assembling labelled cohorts. Few-shot in-context learning (ICL) with large language models (LLMs) sidesteps the annotation bottleneck, yet existing benchmarks test only proprietary APIs—a deployment model incompatible with the data governance constraints of most clinical sites. We benchmark six frontier LLMs under identical few-shot conditions—three proprietary (GPT-4o, Claude claude-opus-4-5, Gemini 2.5 Flash Lite) and three open-source (Mistral 7B, LLaMA-3 8B, DeepSeek-R1-Distill-Qwen 1.5B)—evaluated against supervised baselines (Random Forest, XGBoost, LightGBM, soft-voting Ensemble) on 16S rRNA amplicon data (n = 1,316; holdout n = 30). All six LLMs received identical prompts, the same log-normalised top-20 features, and the same random shot selection strategy with a fixed seed, ensuring that observed differences are attributable to model capacity rather than experimental conditions. The supervised Ensemble led holdout performance (Macro-F1: 0.7948; AUC: 0.7725). Among LLMs, Mistral 7B achieved the highest Macro-F1 (0.5417), surpassing all three proprietary models without any parameter update. The mean performance gap between open-source (0.4711) and proprietary (0.5101) groups was only 0.039 Macro-F1 points—too narrow to justify exclusive reliance on commercial APIs in privacy-sensitive deployments. Within-open-source variance (0.130 Macro-F1 points) substantially exceeded this inter-family gap, indicating that model selection within the open-source ecosystem is the more consequential practical decision. These results suggest that open-source LLMs running on local hardware are a workable option when labeled data is limited and routing patient-derived data to external APIs is not permitted.

Keywords

How to Cite this Article

Najih, N. E., Hamida, S., & Moussa, A. (2026). A Controlled Benchmark of Open-Source and Proprietary LLMs for Few-Shot Microbiome IBD Classification. International Journal of Advanced Computer Science and Applications, 17(5). https://doi.org/10.14569/IJACSA.2026.0170596

Najih, Nouhaila En, et al.. "A Controlled Benchmark of Open-Source and Proprietary LLMs for Few-Shot Microbiome IBD Classification." International Journal of Advanced Computer Science and Applications, vol. 17, no. 5, 2026, https://doi.org/10.14569/IJACSA.2026.0170596.

@article{Najih2026,
  title     = {A Controlled Benchmark of Open-Source and Proprietary LLMs for Few-Shot Microbiome IBD Classification},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {17},
  number    = {5},
  year      = {2026},
  publisher = {The Science and Information Organization},
  author    = {Nouhaila En Najih and Soufiane Hamida and Ahmed Moussa},
  doi       = {10.14569/IJACSA.2026.0170596},
  url       = {https://doi.org/10.14569/IJACSA.2026.0170596}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.

Call for Papers - Important Dates

Volume 17 No. 11, November 2026
Paper Submission Due October 25, 2026
Review Notification November 15, 2026
Publication Date November 30, 2026