A Bayesian Framework for Distinguishing Bacterial Persistence from Re-acquisition
Abstract
Accurately distinguishing between persistent bacterial colonization and new acquisition events is critical for clinical surveillance and infection control. Traditional methods rely on arbitrary genetic distance thresholds, which fail to account for varying evolutionary rates and sampling intervals. This paper presents a fully probabilistic Bayesian framework that models within-host evolution using Wright-Fisher simulations and hierarchical priors. By integrating external calibration data through Approximate Bayesian Computation (ABC) and performing inference via Markov Chain Monte Carlo (MCMC), the model provides robust, uncertainty-aware estimates of acquisition and clearance rates. Our results demonstrate that the boundary between "same" and "different" strains is dynamic and time-dependent, offering a more nuanced understanding of bacterial dynamics in clinical settings.
Introduction: The Challenge of Tracking Bacterial Colonization
In clinical settings, tracking pathogens like Methicillin-resistant Staphylococcus aureus (MRSA) often involves longitudinal sampling from individual patients. When the same species is detected across multiple swabs over several months, researchers must determine if the population has persisted within the host or if the original strain was cleared and replaced by a new acquisition.
Historically, this distinction has relied on a "fixed genetic distance threshold"—for instance, classifying any two samples with fewer than 40 single-nucleotide polymorphisms (SNPs) as the same strain. However, this heuristic is fundamentally flawed. It ignores the stochastic nature of bacterial evolution, the impact of varying time intervals between samples, and the inherent uncertainty in genomic data. A static threshold cannot capture the dynamic reality of within-host diversification.
Methodology: A Two-Phase Bayesian Mixture Model
To address these limitations, we developed a two-phase Bayesian mixture model that characterizes the probability of strain identity based on population genetics. The framework distinguishes between two scenarios:
- Model $p_S$ (Same Strain): This model employs a Wright-Fisher (W-F) simulation to represent how a bacterial population diversifies within a host, accounting for parameters such as effective population size ($n_{eff}$) and mutation rate ($\mu$).
- Model $p_D$ (Different Strain): This model assumes samples share a most recent common ancestor (MRCA) outside the host, using a hierarchical prior to estimate divergence time.
The inference process is split into two phases. In Phase 1, we use Approximate Bayesian Computation (ABC) alongside external datasets (e.g., MSSA genomes from patients with known colonization timing) to estimate the "nuisance" parameters of within-host variation. In Phase 2, we utilize Markov Chain Monte Carlo (MCMC) to fit the full mixture model to primary clinical data, such as the Project CLEAR MRSA dataset. This approach allows for the calculation of a posterior probability of persistence for any given pair of samples.
Results and Insights: The Sloped Boundary of Strain Identity
A key finding of this research is that the optimal boundary for strain classification is not a vertical line on a genetic distance plot, but a sloped curve. As the time interval between samples increases, the expected number of accumulated mutations also grows.
As shown in the figure above, a distance of 30 SNPs might strongly suggest a "same strain" identification if the samples were taken a year apart, yet indicate a "different strain" if the interval was only a week. By providing a continuous probability rather than a binary label, our model allows researchers to propagate this uncertainty into final estimates of epidemiological parameters.
In validation tests using synthetic data, the model's posterior distributions converged tightly around true parameter values as the sample size ($N$) increased, confirming its statistical robustness. When applied to the Project CLEAR dataset, the model estimated an acquisition rate ($r_{acq}$) of 0.18 and a clearance rate ($r_{clear}$) of 0.25, providing 95% credible intervals that are unattainable with traditional heuristic methods.
Conclusion and Future Directions
This Bayesian framework offers a rigorous alternative to arbitrary thresholds in genomic epidemiology. While currently focused on nasal swabs, the model's structure is flexible. Future work will extend this approach to multi-site sampling (e.g., throat, groin) to map how bacterial strains migrate and persist across the entire human body. Despite the increased computational cost of simulations and MCMC, the gain in accuracy and the ability to quantify uncertainty represent a significant step forward in understanding bacterial colonization dynamics.
Summary updated