Bayesian inference of infected patients in group testing with prevalence estimation

Ayaka SakataarXiv 2020 · DOI

Abstract

Group testing is a method of identifying infected patients by performing tests on a pool of specimens collected from patients. For the case in which the test returns a false result with finite probability, we propose Bayesian inference and a corresponding belief propagation (BP) algorithm to identify the infected patients from the results of tests performed on the pool. We show that the true-positive rate is improved by taking into account the credible interval of a point estimate of each patient. Further, the prevalence and the error probability in the test are estimated by combining an expectation-maximization method with the BP algorithm. As another approach, we introduce a hierarchical Bayes model to identify the infected patients and estimate the prevalence. By comparing these methods, we formulate a guide for practical usage.

1. Introduction

Group testing—pooling samples from multiple individuals into a single test—is a vital strategy for reducing costs and increasing throughput during epidemics. However, practical application is often hindered by two major hurdles: test noise (inherent false-positive and false-negative rates) and unknown population parameters (prevalence and test error probabilities). This paper introduces a robust Bayesian framework designed to handle noisy data and learn these unknown parameters "on the fly" during the testing process.

2. Problem Formulation

The group testing problem can be formulated as a matrix operation where the goal is to recover the unknown infection states of patients from a set of pooled test results.

Schematic of group testing represented as a matrix operation $Y = FX$ with potential errors $C$.

As shown in Figure 1, let $X$ be a vector of patient states (infected or not), $F$ be the pooling matrix defining which patients are in which tests, and $Y$ be the resulting observations. In real-world scenarios, an error term $C$ accounts for the imperfect sensitivity and specificity of the testing technology (e.g., PCR).

3. Methodology

The authors treat group testing as a Bayesian inference problem on a bipartite factor graph. This structure allows for efficient computation using message-passing algorithms.

3.1 Belief Propagation (BP)

Belief Propagation is the core algorithm used to estimate the marginal probability of infection for each patient. It is selected for its low computational complexity compared to exact inference methods, making it scalable to large populations.

Bipartite factor graph for Belief Propagation, illustrating message passing between patient variable nodes ($X_i$) and test factor nodes ($Y_j$).

3.2 Bootstrap Credible Intervals

A common issue in noisy group testing is that standard Maximum A Posteriori (MAP) estimation can be overly conservative, leading to missed infections. This occurs because the low prevalence prior biases results toward zero. To counter this, the authors implement a non-parametric bootstrap method to calculate credible intervals for the infection probabilities. By flagging patients whose intervals overlap with the "infected" region, the True Positive (TP) rate is significantly improved, prioritizing sensitivity.

3.3 Parameter Estimation: EM and Hierarchical Bayes

To address unknown prevalence and error rates, two strategies are proposed:

  1. EM+BP: The Expectation-Maximization (EM) algorithm wraps the BP process. The E-step estimates patient states, while the M-step updates global parameters like prevalence and error probabilities.
  2. Hierarchical Bayes: This approach treats prevalence as a latent variable with a Beta distribution prior. The resulting Hierarchical BP (HBP) algorithm updates both patient states and global parameters simultaneously in a single message-passing loop.

4. Key Results

The framework was evaluated using synthetic datasets of $N=1000$ patients with varying pooling matrices and noise levels.

  • Improved Sensitivity: The bootstrap-based decision threshold allowed the system to achieve a reconstructed TP rate higher than the individual test's sensitivity ($p_{TP}$), particularly at low prevalence levels.
  • Parameter Recovery: The EM+BP algorithm successfully recovered true prevalence and error rates across diverse scenarios, provided the number of tests ($M$) was sufficient to provide enough information.
  • Computational Efficiency: A significant finding is that the Hierarchical BP algorithm is roughly twice as fast as the EM+BP approach in high-noise scenarios. This efficiency stems from the simultaneous update of parameters and states, avoiding the nested loops required by EM.

5. Conclusion

This work demonstrates that Bayesian inference, combined with efficient message-passing and hierarchical modeling, provides a powerful tool for group testing in uncertain environments. By treating prevalence and error rates as learnable latent variables, the proposed methods remove the need for precise prior knowledge. Future research will focus on closing the information-theoretic gap using advanced coding techniques and extending the framework to adaptive testing settings.

Summary updated

BibTeX
@misc{sakata2020bayesian,
  author = {Ayaka Sakata},
  title = {{Bayesian inference of infected patients in group testing with prevalence estimation}},
  year = {2020},
  eprint = {2004.13667},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.13667},
}
Figure