arXiv:2610.28310cs.LGOct 2026

Manuscript Offprint

arXiv:2610.28310

Recommending Bacterial Cultivation Conditions from 16S rRNA

Juntang Wang, Hao Wu, Yihan Wang, Runkun Guo, Shixin Xu, Dongmian Zou

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Juntang Wang ∗^{*}

Harvard University

USA

Runkun Guo

Boston University

USA

Hao Wu ∗^{*}

Duke Kunshan University

China

Shixin Xu

Duke Kunshan University

China

Yihan Wang ∗^{*}

Duke University

USA

Dongmian Zou †^{\dagger}

Duke Kunshan University

China

Abstract

Recommending bacterial cultivation conditions from sequence data is a challenging structured problem characterized by missing standardized benchmarks and limited use of sequence structure. To address this, we introduce DSNI, a benchmark of 65,023 bacterial strains with phylogeny-aware splits, pairing 16S rRNA sequences with four cultivation conditions (media, temperature, pH, oxygen). Exploiting the mosaic structure of 16S rRNA, where hypervariable regions support discrimination and conserved regions support primer design, we propose a Variability-Gated Encoder that learns position-dependent importance weights conditioned on biological features (region type, position, and local complexity). The gating module adds minimal overhead (1,280 parameters, <1%) while providing an explicit inductive bias valuable in low-data regimes. Experiments demonstrate that the learnable gate improves flat Transformers by 4.7% in joint accuracy and complements RNABERT, yielding 44.2% exact-match joint accuracy. The model also recovers 90.2% of ground-truth cultivation protocols within its top-25 recommendations, narrowing the exhaustive search space by approximately 60×.

1 Introduction

Leveraging domain structure to improve generalization in low-data regimes is a central challenge in representation learning. 16S ribosomal RNA [33] offers a compelling testbed for this challenge due to its distinctive mosaic structure: nine hyper-variable regions (V1–V9) carrying discriminative signals, interspersed with highly conserved segments [4]. While hyper-variable regions enable species-level discrimination and conserved regions support universal PCR primer design, prior work has largely treated 16S as a taxonomic marker rather than a predictor of bacterial phenotypes. We ask whether models can use 16S sequences to recommend cultivation conditions, including growth media, temperature, pH, and oxygen requirements, that microbiologists must empirically determine for novel organisms. This structured recommendation task presents three technical challenges: (1) scarce labeled data relative to sequence length, (2) severe class imbalance (89% mesophiles, 91% neutrophiles), and (3) output multiplicity (organisms may tolerate multiple conditions). These challenges motivate incorporating inductive bias: can we encode domain knowledge about sequence structure into neural architectures to improve sample efficiency?

Cultivation is essential for characterizing microbial diversity, yet more than 99% of microbial diversity remains uncultured, a phenomenon termed the “great plate count anomaly” [24, 30]. The primary barrier is the laborious trial-and-error process of identifying appropriate growth conditions for each

∗^{*}Equal contribution.

†^{\dagger}Corresponding author: dongmian.zou@dukekunshan.edu.cn.

Preprint.

novel organism[16, 19]. If cultivation conditions could be predicted from sequence data alone, this bottleneck could be substantially relieved, turning exhaustive screening into a targeted shortlist and opening sequence-guided cultivation as a concrete route toward studying the uncultured majority.

We hypothesize that 16S sequences correlate with cultivation requirements due to the phylogenetic conservation of metabolic traits [12, 20]. While 16S does not directly encode metabolic enzymes, its sequence reflects phylogenetic history that shapes phenotypic similarity. We frame the task as structured recommendation, using sequence-derived patterns to suggest plausible cultivation conditions. Validating this hypothesis requires: (i) a large-scale dataset pairing 16S with standardized cultivation metadata, and (ii) methods for learning cultivation-relevant representations. Currently, no such benchmark or dedicated method exists.

To address this gap, we introduce DSNI, a benchmark curated from DSMZ [25, 28] DSNI contains 65,023 strains, roughly 3.6×3.6\times the size of the closest comparable resource KOMODO [22]. To our knowledge, it is the first 16S benchmark that pairs sequences with all four primary cultivation conditions under a single standardized labeling scheme, providing a unified resource for sequence-based cultivation recommendation at scale. To support rigorous evaluation, DSNI uses phylogeny-aware splits that cluster sequences by taxonomic similarity. This protocol prevents information leakage from near-neighbor organisms and more realistically evaluates generalization to novel taxa.

Beyond DSNI, we propose a Variability-Gated Encoder: a lightweight gating mechanism (1,280 parameters, <1% overhead) that learns position-dependent importance weights conditioned on region type (V1–V9 vs. conserved), normalized position, and local sequence complexity. This allows the model to allocate representational capacity based on domain-informed features rather than hard-coding rules or relying solely on attention to discover these patterns. We benchmark our approach against flat encoders and pretrained models (RNABERT), using identical decoders and training budgets to isolate the gating effect and test whether domain-informed bias complements pretraining.

Our contributions are three-fold: (1) a 65,023-strain 16S benchmark with standardized four-condition labels and phylogeny-aware splits; (2) a lightweight Variability-Gated Encoder with biologically grounded inductive bias; (3) systematic experiments showing that gating improves joint accuracy by +4.7%, complements RNABERT to reach 44.2%, and achieves 90.2% top-25 protocol recall, reducing the candidate protocol space by ∼60×\sim60\times.

References (34)