The microbial communities on our mucosal surfaces behave like a distributed biosensor network: when tissue oxygen, pH, or immune pressure changes, the community reorganizes in ways that can reveal disease before conventional host markers do. Paired metagenomics of lung and plasma shows that microbial DNA leaking into circulation separates microbiologically confirmed pneumonia from clinically diagnosed pneumonia almost perfectly — median plasma microbial cell-free DNA of 4,015 molecules/μL versus 210 versus 0 in controls — while conventional blood cultures detect pathogens in fewer than 10% of the same severe-pneumonia patients (Yang et al.). Fecal signatures screen for colorectal cancer across populations: a support vector machine on seven universally enriched species reaches an AUC of 0.80 pooled across four international cohorts, 0.88 with demographics (Dai et al.). But every one of these results was produced by an offline pipeline: samples are pooled, sequenced to high depth in a batch run, and pushed through multi-step bioinformatics. In an ICU, that costs days.
A second, seemingly unrelated field solved an isomorphic problem a decade ago. Speaker diarization — deciding who spoke when — originally required the entire recording, because it clustered speaker embeddings using the empirical distribution of the whole session. Making such systems causal, so that the output at each moment depends only on data already seen ($y_t = f(\{x_\tau\}_{\tau \le t})$), produced a toolbox of design patterns: bounded memory over representative examples, online registration of newly appearing classes, and asynchronous correction of a fast online model by a slow offline one. This proposal applies that toolbox to metagenomics, treating a nanopore sequencer as a data stream and reads as arriving events, so that a provisional, decision-grade microbial diagnosis is available while the sequencer is still running.
Core Claim
A causal classifier that consumes sequencing reads incrementally can match full-depth batch diagnostic accuracy at a small fraction of the read budget and wall-clock time, can register microbial taxa absent from its training reference without retraining, and can decide for itself when enough evidence has accumulated to stop. Concretely, success means matching the batch seven-species SVM's AUC of 0.80 on multi-cohort colorectal cancer screening (Dai et al.) within 0.02 while using at most half the reads on average, and separating confirmed from clinically diagnosed pneumonia on the ICU cohort of Yang et al. with a self-terminated read budget.
The reason this is plausible rather than hopeful is that the audio literature already demonstrated causality need not cost accuracy when the right structure is used. An unbounded interleaved-state recurrent model with a distance-dependent Chinese Restaurant Process — a mechanism that lets new clusters form whenever incoming data fits no existing one — achieved a 7.6% diarization error rate in online mode, beating the offline spectral-clustering baseline of 8.8% on the same benchmark (Zhang et al.). The open question is whether the same three structural moves transfer when the "speakers" are microbial taxa and the "recording" is a clinical sample.
The Mapping and What It Buys
Four problems in streaming audio map directly onto open problems listed for microbial diagnostics. First, global clustering over a whole recording becomes global taxonomic assignment over the full read set; the core-samples approach of Yue et al., which stores a bounded set of representative embeddings per speaker, discounts stale samples with a time penalty, and uses stratified sampling to protect infrequent speakers, becomes bounded storage of representative reads per taxon that protects rare pathogens — exactly the low-abundance taxa that carry diagnostic weight, such as Stenotrophomonas flagging imminent COPD deterioration (Dang et al.). Their system held a 19.0% error rate on AMI against an offline baseline of 18.3% at 0.2–0.25 seconds of latency per 2-second block, which is the kind of near-parity we aim for in read-budget terms. Second, the "new speaker gap" becomes the new-pathogen problem: a fixed classifier cannot name what it was never trained on, and the Chinese-Restaurant-Process mechanism from Zhang et al. is precisely a cure. Third, the hybrid teacher-student architecture of Vaquero et al. — an offline system reprocessing cumulative history in the background to correct a low-latency online student — becomes a batch Kraken-style reference pipeline asynchronously refining the streaming classifier; their measured offline-to-online gap (18.11% versus 37.75% error, with a 60-second warm-up before the online system stabilized) quantifies both the cost we must beat and the warm-up pathology we must shrink. Fourth, the accuracy drop when models move from pre-segmented clips to continuous streams, documented in acoustic event detection and keyword spotting (Girin; Sacchi et al.), warns that a classifier trained on complete profiles will degrade on partial ones — so the streaming model must be trained on prefixes, not just evaluated on them.
Research Program
We will build and study one system with four components. A read-embedding encoder produces a vector per sequencing read as it basecalls; a memory module in the style of Yue et al. maintains a bounded, stratified set of representative embeddings per taxon, with a discount that de-emphasizes early reads once later evidence accumulates. A nonparametric registration layer in the style of Zhang et al. either assigns each read to a known taxon or opens a new taxon cluster when the fit is poor, so an emergent pathogen is detected rather than silently forced into the nearest known clade — the streaming analogue of the lung-to-blood translocation events that batch analysis only found retrospectively in 41% of severe-pneumonia patients (Yang et al.). Finally, a stopping rule ends sequencing-into-analysis per sample: stop at the first batch index $t$ where $\max_c p_t(c) \ge 1-\epsilon$ for $k$ consecutive read batches, with $p_t(c)$ the current probability the sample belongs to disease class $c$. The analysis questions are how each component trades accuracy against read budget, how registration latency for a held-out taxon scales with its abundance, and how much an asynchronous offline teacher — the exact batch pipeline, run over the reads accumulated so far — closes the residual gap, following Vaquero et al., who showed faster background offline processing directly improved their online student.
Baselines
The do-nothing reference is the current standard of care: conventional blood culture, which detected pathogens in fewer than 10% of severe-pneumonia patients in the ICU cohort of Yang et al., and the batch sequencing pipeline whose multi-day turnaround motivates the whole proposal. The offline oracle is the strongest existing method: the full-depth batch pipeline — taxonomic profiling plus the seven-species SVM of Dai et al., which reports AUC 0.80 pooled across four cohorts and 0.88 with demographics, and the 14-species fungal classifier of Coker et al., which reports 0.93 in discovery and 0.74 in European validation. This oracle sees all reads and defines the accuracy ceiling; any streaming system within 0.02 AUC of it at half the read budget counts as a win. The strongest fair streaming competitor is fixed-budget truncation: the identical batch pipeline run on the first $N$ reads, with $N$ tuned per dataset to match our system's mean read budget, which isolates whether adaptive stopping and memory actually add anything over simply sequencing less. The fourth comparison is an ablation that removes the registration layer, leaving a closed reference taxa set, to isolate the value of online new-taxon discovery; a further ablation removes the memory module (unbounded read storage) to measure what bounded memory costs. All systems get the same underlying data, the same embedding encoder, and the same tuning budget, differing only in the component under test.
Why not just…?
Why not just sequence for a fixed shorter time and run the batch pipeline? This is the most serious alternative, and we treat it as a head-to-head baseline rather than arguing around it. Its weakness is that samples differ enormously in how much evidence they need: a sample dominated by one translocating pathogen may be decidable in thousands of reads, while a low-biomass plasma sample needs orders of magnitude more. A fixed budget is therefore Pareto-dominated if the required budget distribution is heavy-tailed. The decisive experiment plots accuracy against mean read budget for both systems on the Dai cohorts and the Yang ICU cohort; if the curves coincide, the fixed budget wins on simplicity and we will say so.
Why not just wait for the batch result, since clinicians act on a 72-hour timescale anyway? The paired lung-plasma study shows the clinical cost of waiting: within 72 hours of intubation, patients who would be classified only "clinically diagnosed" carried a median 210 molecules/μL of plasma microbial DNA versus 4,015 in confirmed pneumonia, and translocation tracked hyperinflammatory subphenotypes (Yang et al.) — information that could redirect therapy during that same window. We are honest about scope: for non-acute screening such as colorectal cancer, where the fungal classifier's cross-cohort drop from 0.93 to 0.74 AUC (Coker et al.) is the binding problem, streaming buys little; we target it as a secondary question only.
Why not just fine-tune a stronger offline classifier, or bypass microbes entirely using routine labs? A transformer over 21–34 standard blood markers reported accuracy 1.0 for both bone-disease classification and blood-culture prediction on 634 pediatric patients (Xia et al.) — a suspiciously saturated result on a small single-center cohort, and one that yields no taxonomic identity, no novel-pathogen capability, and no read-budget economy. We will run it as a comparator on the Yang cohort; if lab surrogates match streamed microbial profiles there, that would genuinely undercut the proposal, and the experiment is designed to detect it.
Proposed Experiments
All experiments replay existing cohorts as streams, presenting reads in arrival order and withholding the remainder; for nanopore data this is faithful, and for the Illumina-based cohorts we simulate arrival by random genome-position ordering. Four decisive checks. First, the budget-accuracy Pareto comparison on the 526-sample multi-cohort colorectal cancer data of Dai et al. and the 585-sample three-cohort mycobiome data of Coker et al., reporting AUC and mean reads-to-decision against the fixed-budget and offline-oracle baselines, including the cross-cohort Hong Kong-to-Europe transfer where the batch number to beat is 0.74. Second, novel-taxon registration on the 98-patient ICU cohort of Yang et al.: hold one translocating genus out of the training reference, inject it mid-stream, and measure registration latency in reads and its effect on the confirmed-versus-clinical-pneumonia discrimination. Third, calibration of the stopping rule: the realized error of stopped decisions must sit at or below the nominal $1-\epsilon$ across all cohorts, since a stopping rule that understates its own uncertainty is clinically worse than no rule. Fourth, early warning on the AERIS longitudinal study, 584 sputum samples from 101 COPD patients whose exacerbation transitions were non-random and repeatable within individuals (Mayhew et al.): replay each patient's stable-visit stream and ask whether the streaming system flags the approaching exacerbation state with fewer reads than the batch pipeline needs, using the same Markov-state labels as ground truth. If the system matches batch accuracy at half the reads, registers held-out taxa within a bounded read count, and stops with calibrated confidence, then microbial diagnostics acquires what audio processing acquired a decade ago — the ability to answer before the recording ends.
References
- Microbial lung-to-blood translocation associates with systemic inflammation in severe pneumonia: evidence from paired plasma and lower respiratory tract metagenomics
- Multi-cohort analysis of colorectal cancer metagenome identified altered bacteria across populations and universal bacterial markers
- Fully Supervised Speaker Diarization
- Online Speaker Diarization with Core Samples Selection
- Frequent exacerbators of chronic obstructive pulmonary disease have distinguishable sputum microbiome signatures during clinical stability
- A hybrid approach to online speaker diarization
- Assessing the performances of different neural network architectures for the detection of screams and shouts in public transportation
- Open-Vocabulary Keyword Spotting with Audio and Text Embeddings
- Enteric fungal microbiota dysbiosis and ecological alterations in colorectal cancer
- A transformer-based deep learning model for identifying the occurrence of acute hematogenous osteomyelitis and predicting blood culture results
- Longitudinal profiling of the lung microbiome in the AERIS study demonstrates repeatability of bacterial and eosinophilic COPD exacerbations