Skip to main content
  • Research article
  • Open access
  • Published:

Occupancy modeling and resampling overcomes low test sensitivity to produce accurate SARS-CoV-2 prevalence estimates



We evaluated whether occupancy modeling, an approach developed for detecting rare wildlife species, could overcome inherent accuracy limitations associated with rapid disease tests to generate fast, accurate, and affordable SARS-CoV-2 prevalence estimates. Occupancy modeling uses repeated sampling to estimate probability of false negative results, like those linked to rapid tests, for generating unbiased prevalence estimates.


We developed a simulation study to estimate SARS-CoV-2 prevalence using rapid, low-sensitivity, low-cost tests and slower, high-sensitivity, higher cost tests across a range of disease prevalence and sampling strategies.


Occupancy modeling overcame the low sensitivity of rapid tests to generate prevalence estimates comparable to more accurate, slower tests. Moreover, minimal repeated sampling was required to offset low test sensitivity at low disease prevalence (0.1%), when rapid testing is most critical for informing disease management.


Occupancy modeling enables the use of rapid tests to provide accurate, affordable, real-time estimates of the prevalence of emerging infectious diseases like SARS-CoV-2.

Peer Review reports


The emergence of severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) as a worldwide pandemic has demonstrated both the logistical challenge of effectively monitoring an emerging infectious disease and the enormous health and socio-economic costs associated with failing to meet this challenge. The ability to accurately track an emerging infectious disease within a population is critical for balancing direct health impacts of the disease against socio-economic impacts of community mitigation strategies for the disease through “shelter in place” rules [1, 2]. Effective community-level monitoring, particularly at low disease prevalence, is essential to inform disease management to both suppress the initial invasion and to maintain low prevalence thereafter. To date, attention has focused on inadequate testing access, test supply chain disruptions, and testing delays [3,4,5], but, as these problems are resolved, the clear challenge remaining lies in test efficacy and optimal sampling strategies needed to provide accurate community-level metrics of disease dynamics.

Effectively managing an emerging infectious disease requires logistically feasible, fast, and accurate community-level monitoring to inform real-time decisions about community mitigation actions [2, 6]. A primary hurdle to achieving accurate community-level monitoring is the tradeoff between speed and accuracy inherent in disease tests; rapid tests (e.g., antigen tests developed by Abbott [7]) are more error prone and therefore have a lower sensitivity for disease detection [8,9,10]. Historically, and throughout the current pandemic, disease testing has focused on individual testing, emphasizing accurate diagnosis of symptomatic individuals conducted with slower, higher sensitivity tests [11]. For SARS-CoV-2 and other emerging diseases, initial sampling tends to target the most severe cases, whereby moderate and mild cases are not sampled, leading to an underestimation of true community prevalence [4].

Novel modeling approaches developed for sampling rare animals in wildlife sciences hold great potential to address the inherent limitations of rapid tests [12]. Because many wildlife species of concern are rare and/or sparsely distributed, this discipline has spent decades developing tools to improve population estimation with imperfect detection [13,14,15]. Imperfect detection translates to false negative and/or false positive errors as it relates to disease prevalence. One such class of models is called occupancy models [16, 17]. Occupancy models address imperfect detection by collecting repeated samples (observations) of a species to statistically model sampling error rates and use this information to improve estimates of species’ presence/absence. Importantly, occupancy models can account for imperfect detection arising from biological processes and the effort to observe these processes. For example, occupancy modeling has been used in India to overcome issues of sampling for tigers (Panthera tigris) linked to their rarity, camouflage, stealth, and nocturnal behaviors [18]. Occupancy modeling has also been used to generate unbiased estimates of pathogen occurrence and prevalence in wildlife [19]. Importantly, due to more resource limitations in wildlife sciences compared to human health fields, wildlife researchers have developed tools for optimizing sampling designs [20] that can be adapted to generate efficacious and accurate sampling designs for estimating human disease prevalence.

Here we test whether occupancy modeling frameworks that account for imperfect detection from false negatives (test sensitivity) due to biological and observation processes could be used to address low test sensitivity in SARS-CoV-2 rapid tests. We focused on U.S. county-level estimates, although this approach may be applied at larger geographic or population scales. We specifically ask two questions: 1) “Can an occupancy modeling framework applied to rapid, low-sensitivity tests provide similar accuracy (e.g., less bias and greater precision) estimates of SARS-CoV-2 prevalence as higher sensitivity, more accurate tests?”; 2) “Given a fixed number of tests (due to laboratory capacity, fixed budget, or combination of these constraints), what is the best sampling strategy for deploying rapid tests to optimize accuracy while considering logistical and cost constraints?” We conducted a series of simulations to answer these questions by deploying two types of tests for SARS-CoV-2: a rapid, low sensitivity, cheaper test and a slower, high sensitivity, yet more expensive test. We examined a range of SARS-CoV-2 prevalence values. In addition, because we were interested in effective sampling strategies, we examined how the proportion of individuals initially sampled, number of repeat tests, and proportion of individuals with repeat tests affected prevalence estimates.


In its origins, occupancy modeling relies on repeated sampling for the presence of an organism at a site [16, 17]. Here, the organism we wish to detect is SARS-CoV-2, and the place, or site, is the individual where the disease might be found. A site—in this case a person—is “occupied” if the organism (the virus) is present, and “unoccupied” otherwise; occupied and unoccupied are analogous to infected and uninfected. The occupancy modeling goal as applied here is to determine the proportion of sites (people) within the population (county) that are occupied (infected) given imperfect detection from false negatives (test sensitivity). Thus, occupancy modeling provides an appropriate statistical design for estimating disease prevalence.


We used a Bayesian hierarchical occupancy model [21], which includes biological and observation processes. The following describes the variables used to model each process.

Biological process

Following a single-season occupancy model [16, 17], where I represents infected and U represents uninfected, we modeled true SARS-CoV-2 presence in an individual (j) as a latent (not directly observed) Bernoulli variable (zj) with probability of success as the average infection probability within individuals in the community (ψI):

$$ {z}_j\sim Bernoulli\ \left({\Psi}_I\right). $$

Number of infected individuals (NI) and uninfected individuals (NU) can be estimated as derived parameters, and NPOP (number of individuals in the population) is known:

$$ {N}_I={\sum}_{j=1}^{N_{POP}}{z}_j, $$

and NU = NPOP − NI.

Observational process

We modeled the observation process as a simple random sample (independent of symptoms) with imperfect detection from false negatives (low test sensitivity) as a zero-inflated binomial process. In occupancy modeling, there is a formal requirement for closure at the site level, i.e., with disease prevalence, each sampled person in the population must remain either infected or uninfected throughout the sampling period. Test sensitivity is estimated through repeated independent samples at a site. Individuals sampled (i.e., sites) would therefore have multiple tests (Nsample,j) taken at a single ‘visit’ during the sampling period. This is difficult to achieve with Reverse Transcription quantitative PCR (RT-qPCR)-based tests but is amenable to rapid and inexpensive tests such as antigen tests developed by Abbott [7] or other similar tests. We modeled infected individual detection (yj) as a binomial random variable, with number of binomial trials represented as number of repeat tests per sampled individual (Nsample,j) and success of those trials as an unknown probability (muj), dependent on true SARS-CoV-2 presence in an individual (zj) and test sensitivity (ptest) (muj = zj × ptest):

$$ {y}_j\sim Binomial\ \left({N}_{sample,j},{mu}_j\right). $$

In this case, infected individual detections (yj) and number of repeat tests per individual (Nsample,j) represent known real world data from a simple random sample of a hypothetical county with SARS-CoV-2.


To evaluate multiple biological and observational process scenarios, we conducted a series of simulations that varied values within both processes. We used information from literature (if available) to support selection of low, medium, and high levels for each parameter (Additional file 1). We used the median U.S. county population size of 25,000 (Census Bureau 2019) across all simulations to represent population size (Npop) to reflect realistic SARS-CoV-2 U.S. sampling scenarios. To account for SARS-CoV-2 prevalence affecting test sensitivity, we examined simulations with three values of very low (0.001), low (0.01), and moderate (0.1) prevalence (ψI). Within the observation process, we modeled deployment of two SARS-CoV-2 test types by modeling two test sensitivity (ptest) values based on known test sensitivities (Additional file 1): low (0.30) and high (0.78).

In addition, because we were interested in optimal sampling strategies (question 2), we modified total number of tests per individual (Nsample,j) by varying proportion of individuals initially sampled, number of repeat tests per individual, and proportion of individuals with repeat tests. We used three values for proportion of individuals initially sampled to represent low (0.001), medium (0.01), and high (0.05) proportions within the county. Because occupancy modeling relies on repeated testing, we modeled sampling with a single repeat test (2 tests total) or 4 repeat tests (5 tests per individual total). We also varied proportion of individuals that were repeatedly sampled to represent 10, 50 and 100% of the sampled individuals repeat tested to account for the potential that some individuals initially sampled are unwilling to be resampled in a single visit.

The combination of all parameter values described above resulted in 108 unique simulation scenarios (Additional file 1), which were created with program R [22]. To create a simulation scenario, we simulated a population (25,000) with occupied and unoccupied individuals (Eq. 1) with one of the three prevalence values. We then simulated sampling that population with imperfect detection from false negatives (test sensitivity; Eq. 3) and varied observation process parameters described above (proportion of individuals initially sampled, number of repeat tests, and proportion of individuals that were repeat sampled). Next, we used observed data for a single scenario as an input in the Bayesian hierarchical model (Eq. 13) Markov chain Monte Carlo (MCMC) process, ran the model in JAGS [23] using the rjags, jagsUI [24], and coda [25] packages, to obtain posterior estimates of SARS-CoV-2 prevalence (ψI) and test sensitivity (ptest). That was for one replicate of the simulation-estimation process for one scenario. We used 100 replicates of the simulation-estimation process for each simulation scenario. For each of the 100 simulation-estimation replicates, we used independent, non-informative priors for ψI and ptest and ran three parallel chains (length = 10,000 iterations, burn-in = 1000 iterations, no thinning) to estimate the posterior distribution median of model parameters and 95% Bayesian credible intervals (BCI) for each replicate. We assessed model convergence by using \( \hat{R} \) < 1.1 [26]. We then compared true values we used to generate the biological and sampling processes to estimated prevalence (ψI) and test sensitivity (ptest) for each replicate of the simulation-estimation process over all simulation scenarios.

For all simulations, we assumed the population was closed to movement during the sampling time frame and each individual was available for sampling in the county. We also assumed disease state (i.e., occupied or unoccupied) did not change during the sample period. These conditions equate to a short sampling time window (point prevalence).

Evaluating simulations for occupancy modeling (question 1)

To evaluate if an occupancy modeling framework with rapid tests could provide accurate SARS-CoV-2 prevalence estimates, we examined relative root mean square error (RRMSE) for prevalence (ψI) and test sensitivity (ptest). RRMSE, or accuracy, is the combination of bias and precision defined as:

$$ RRMSE=\frac{\sqrt{\left(1/r\right){\sum}_{i=1}^n{\left({\hat{\theta}}_i-{\theta}_i\right)}^2}}{\overline{\theta}}, $$

where r is number of replicates, \( {\hat{\theta}}_i \) is the estimated parameter (posterior median) at replicate i, θi is the true parameter value at replicate i, and \( \overline{\theta} \) is the mean of the true parameter values over all replicates. We also calculated relative bias (RBIAS), percent coverage, and Bayesian Credible Interval (BCI) length (Additional file 2, Additional file 3).

Evaluating simulations for optimal sampling strategies (question 2)

To evaluate optimal sampling strategies given fixed resources (i.e., number of tests available, fixed budget) at the county level, we used a constrained optimization framework [27] consisting of three components: (i) decision variables (proportion of individuals initially sampled, number of repeat tests per individual, proportion of individuals with repeat tests), (ii) objective function (minimize SARS-CoV-2 prevalence RRMSE), and (iii) constraints (total number of samples represented as a cost). We illustrate this framework using a cost constraint, but this framework can also include a time constraint, as quicker results could influence individual behavior and contribute to slowing disease spread [6]. The cost function was:

$$ C={C}_s\times {N}_{sample}, $$

where C was total cost; Cs was per sample cost for collecting sample, sample storage, sample preparation, and test materials; and Nsample was total number of samples (sum of samples from initially sampled individuals within the county and from all repeated tests for a subset of individuals). For ptest of 0.3 associated with a rapid test, Cs was $5 [28]. For ptest of 0.78 associated with a RT-qPCR test, Cs was $100. We expect laboratory costs to vary by county and laboratory technician and collection staff salary, and thus present a general cost function to illustrate a framework to evaluate accuracy and associated costs with decision variables for different test types. We also recognize that start-up costs for laboratories may be substantial, thus we assume counties will utilize laboratories that already have necessary equipment and technical expertise.

Given our RRMSE prevalence simulation values for each combination of decision variables, our objective function was to minimize prevalence RRMSE subject to constraints:

$$ C={C}_0+{C}_s\times {N}_{sample}\le d, $$
$$ RRMSE\le e. $$

We constrained total cost below d to evaluate a range of sampling strategies given a fixed number of tests available (due to laboratory capacity, fixed budget, or combination of these constraints) and RRMSE below e to represent a desired amount of prevalence accuracy. We demonstrated the optimization process graphically: optimal sampling strategy was determined by examining where accuracy (RRMSE) asymptotes given costs (i.e., there is marginal gain for additional sampling) before cost constraints.


Overall, we found that occupancy modeling in conjunction with resampling strategies can overcome low test sensitivity associated with rapid tests to provide accurate SARS-CoV-2 prevalence estimates comparable to those of more accurate but slower tests. In addition, we identified optimal sampling strategies using cost constraints across all prevalence levels. The specific results of each are discussed below for simulation data (Additional file 4).

Evaluating simulations for occupancy modeling (question 1)

Accounting for biological and observation processes

Relative bias and accuracy (RRMSE) of SARS-CoV-2 prevalence were influenced by both true prevalence (biological process) and sampling strategy (observation process). Estimates were influenced most by prevalence magnitude, followed by sampling strategy (Figs. 1-3, Additional file 2). Not surprisingly, overall, SARS-CoV-2 prevalence accuracy was lower and more variable among sampling strategies when the disease was extremely rare (true prevalence 0.001). Accuracy improved as prevalence increased and/or a greater proportion of the population was sampled. With true prevalence of 0.01 and 0.1, accuracy increases (RRMSE decreases) were smaller with increases in the proportion of a population initially sampled.

Fig. 1
figure 1

Prevalence accuracy as a function of percent of the population infected. Accuracy (relative root mean square error) of prevalence (Ψ) as a function of true prevalence, or percent of the population infected, from simulation scenarios of 100% of the initial sample with 5 repeat tests. The inset a) is for simulation scenarios with 10% of the population infected (true prevalence)

Fig. 2
figure 2

Prevalence accuracy as a function of total tests. Accuracy (relative root mean square error) of prevalence (Ψ) as a function of total tests from simulation scenarios of 1% infection rate and test sensitivity of 0.3. Note that the percent of the population initially sampled is not the same with one test (no repeat) versus 5 tests (4 repeats)

Fig. 3
figure 3

Prevalence accuracy as a function of true test sensitivity and costs. Accuracy (relative root mean square error) of prevalence (Ψ) as a function of a) true test sensitivity from simulation scenarios of 5% of the population initially sampled and 100% of that sample with 5 repeat tests, and b) costs associated with the two test types

Improvement with repeated testing

More repeat tests greatly improved SARS-CoV-2 prevalence accuracy (RRMSE) estimates, especially with fewer total tests (Fig. 2). For example, when a county had 1% prevalence and 250 tests to allocate, if 50 people get 5 repeat tests the RRMSE was reduced by 2.2% compared to a scenario with 250 people that got a single test.

Occupancy modeling overcomes lower test sensitivity of rapid tests

Occupancy modeling overcame the lower test sensitivity of rapid tests compared with high-accuracy tests, i.e., SARS-CoV-2 prevalence accuracy was similar for low-sensitivity rapid and higher-sensitivity, slower tests for all SARS-CoV-2 prevalence levels and sampling strategies when occupancy models were applied (Fig. 3, Additional file 2). For example, with 5% of the population initially sampled and 100% of that sample with 5 repeat tests, we found prevalence RRMSE was similar for prevalence of 0.1% (RRMSE = 100.29 for ptest = 0.3, RRMSE = 100.30 for ptest = 0.78; Fig. 3a). However, rapid tests (ptest = 0.3) provide similar accuracy at reduced costs with occupancy models (Fig. 3b).

Evaluating simulations for optimal sampling strategies (question 2)

Across all disease prevalence levels, the optimal (lowest RRMSE relative to cost constraints) sampling strategy for a fixed proportion of the initially sampled population with repeat tests was: i) with 1% of population initially sampled, and ii) sampling occurring five times per individual with repeat tests (1 initial test and 4 repeat tests) (Fig. 4, Supplementary Figs. 10 and 11 in Additional file 2). Our simulation scenarios considered resampling a subset of the initial group sampled, in addition to 100% of the initial group sampled. Similar accuracy can be achieved with only a subset of the initial group sampled, for reduced overall costs (Fig. 4, Additional file 2).

Fig. 4
figure 4

Optimal sampling designs with prevalence accuracy as a function of costs. Accuracy (relative root mean square error) of prevalence (Ψ) as a function of costs (USD) using arbitrary cost constraint (dotted vertical line) of $7500 USD for a) a subset of the simulation scenarios with the true test sensitivity of 0.3 and 50% of the initially sampled population with repeat tests; b) a subset of the simulation scenarios with the true test sensitivity of 0.3, true population infection rate (true prevalence) of 1, and 100% of the initially sampled population with repeat tests. Optimal designs are indicated within the figures with arrows


Mitigating the impacts of emerging infectious disease like SARS-CoV-2 requires rapid testing to generate real-time data for informed disease management. We demonstrate how occupancy modeling can overcome low test sensitivity with rapid COVID-19 surveillance schemes to generate accurate (high-precision, low-bias) SARS-CoV-2 prevalence estimates. Moreover, the ability of this approach to offset test sensitivity with rapid tests at low disease prevalence is crucial because decisive disease management actions are most critical at low prevalence levels such as during disease onset and resurgence following control. Rapid tests are also inexpensive and logistically easy to administer, enabling the additional sampling effort requisite for resampling designs [10] with quick turn-around times. While our modeling efforts targeted the challenge associated with low sensitivity tests, occupancy modeling holds potential to address other rapid testing limitations for improved disease management.

To further advance rapid testing designs for disease monitoring, other shortfalls will also need to be addressed. In addition to low test sensitivity or false negative results, rapid tests also produce false positive results, or low specificity [29]. False positive results can impact patient risk and costs with unnecessary sequestration or even worse – uninfected individuals being assigned to COVID-19 hospital wards where they may become infected [29]. We did not account for false positives. However, similar methods exist to account for false positive detections [30, 31]. Moreover, more sophisticated approaches can be applied to refine estimates under complex, real-world conditions that account for symptoms at the time of testing and incorporate more underlying biological processes, including an instantaneous model using stratified sampling of states (symptomatic vs. asymptomatic) with no transitions among states using single-season, multi-state occupancy models with state uncertainty [32, 33], and Hidden Markov models with SIR (susceptible infected recovered) models using state transitions both in discrete and continuous time [34]. An alternative to stratified sampling could include collection of site-level covariates to improve detection at sample collection time (i.e., symptomatic status, symptom start date) an approach common in occupancy models in the wildlife literature [18, 19]. We stress that the approach we present is designed to assess disease prevalence across a population. It is not intended for determining infection status of individuals (although see Additional file 5). Nor is it appropriate for circumstances where institutions seek to create an infection-free group. Such objectives require high test sensitivity at the individual level. Nonetheless, information from such individual-oriented testing could be incorporated into prevalence estimates in models like the one we introduced.


For emerging infectious diseases like COVID-19, rapid testing is essential for generating the real-time disease monitoring data that is required to inform disease management actions and minimize human health impacts [2, 6]. Resolving this sampling challenge is essential, especially as winter arrives in the northern hemisphere where onset of additional respiratory diseases with similar symptomology (e.g., rhinoviruses, seasonal coronaviruses, influenza) will confound SARS-CoV-2 detection. We demonstrate how occupancy modeling can help to overcome low test sensitivity to produce accurate disease prevalence estimates for real-time, informed decision making, even at low disease prevalence levels when decisive action is most meaningful. We also show the optimal sampling strategy in combination with occupancy modeling will be equally effective for community-level inference at different points in the course of an epidemic. Finally, we demonstrate that additional testing beyond the optimal sampling strategy in combination with occupancy modeling will not substantively improve prevalence estimates, allowing funds to be directed to the most pertinent disease mitigation measures.

Availability of data and materials

All data generated or analyzed during this study are included in this published article [and its supplementary information files].



Bayesian Credible Interval


Markov Chain Monte Carlo


relative bias


relative root mean square error


Reverse Transcription quantitative Polymerase Chain Reaction


severe acute respiratory syndrome coronavirus 2


susceptible infected recovered


  1. Bryant James, Allen D, Block S, Cohen J, Eckersley P, Eifler M, Gostin L, et al. Roadmap to pandemic resilience [Internet]. Edmond J. Safra Center for Ethics, Harvard University; 2020. p. 56. Available from:

  2. Mina MJ, Parker R, Larremore DB. Rethinking Covid-19 test sensitivity - a strategy for containment. N Engl J Med [Internet]. 2020;1–2. Available from:

  3. Harris JE. Overcoming reporting delays is critical to timely epidemic monitoring: the case of COVID-19 in new York City. medRxiv [internet]. 2020;20159418. Available from:

  4. Wu SL, Mertens AN, Crider YS, Nguyen A, Pokpongkiat NN, Djajadi S, et al. Substantial underestimation of SARS-CoV-2 infection in the United States. Nat Commun. 2020;11(1).

  5. Woloshin S, Patel N, Kesselheim AS. False negative tests for SARS-CoV-2 infection - challenges and implications. N Engl J Med [Internet]. 2020;38(1):1–2. Available from:

  6. Larremore DB, Wilder B, Lester E, Shehata S, Burke JM, Hay JA, et al. Test sensitivity is secondary to frequency and turnaround time for COVID-19 screening. Sci Adv. 2021;7(1):1–11.

  7. Abbott Press Releases [Internet]. PRNewswire. [cited 2020 Dec 5]. [posted 2020 Aug 16]. Available from:

  8. Dao Thi VL, Herbst K, Boerner K, Meurer M, Kremer LPM, Kirrmaier D, et al. A colorimetric RT-LAMP assay and LAMP-sequencing for detecting SARS-CoV-2 RNA in clinical samples. Sci Transl Med. 2020;12(eabc7075).

  9. Meyerson NR, Yang Q, Clark SK, Paige CL, Fattor WT, Gilchrist AR, et al. A community-deployable SARS-CoV-2 screening test using raw saliva with 45 minutes sample-to-results turnaround. medRxiv. 2020;20150250. Available from:

  10. Ramdas K, Darzi A, Jain S. “Test, re-test, re-test”: using inaccurate tests to greatly increase the accuracy of COVID-19 testing. Nat Med. 2020;26(6):810–1.

    Article  CAS  PubMed  Google Scholar 

  11. Vogels CBF, Brito AF, Wyllie AL, Fauver JR, Ott IM, Kalinich CC, Petrone ME, Casanovas-Massana A, Catherine Muenker M, Moore AJ, Klein J, Lu P, Lu-Culligan A, Jiang X, Kim DJ, Kudo E, Mao T, Moriyama M, Oh JE, Park A, Silva J, Song E, Takahashi T, Taura M, Tokuyama M, Venkataraman A, Weizman OE, Wong P, Yang Y, Cheemarla NR, White EB, Lapidus S, Earnest R, Geng B, Vijayakumar P, Odio C, Fournier J, Bermejo S, Farhadian S, dela Cruz CS, Iwasaki A, Ko AI, Landry ML, Foxman EF, Grubaugh ND. Analytical sensitivity and efficiency comparisons of SARS-CoV-2 RT–qPCR primer–probe sets. Nat Microbiol. 2020;5(10):1299–305.

    Article  CAS  PubMed  Google Scholar 

  12. McClintock BT, Nichols JD, Bailey LL, Mackenzie DI, Kendall WL, Franklin AB. Seeking a second opinion: uncertainty in disease ecology. Ecol Lett. 2010;13(6):659–74.

    Article  PubMed  Google Scholar 

  13. Williams BK, Nichols JD, Conroy MJ. Analysis and management of animal populations - modeling, estimation, and decision making. San Diego, California: Academic Press; 2002. 817 p.

    Google Scholar 

  14. Jolly GM. Estimates from capture-recapture data with both death and immigration-stochastic model. Biometrika. 1965;52(1):225–47.

    Article  CAS  PubMed  Google Scholar 

  15. Seber GAF. A note on the multiple-recapture census. Biometrika. 1965;52(1):249–59.

    Article  CAS  PubMed  Google Scholar 

  16. Mackenzie DI, Nichols JD, Royle JA, Pollock KH, Bailey LL, Hines JE. Occupancy estimation and modeling. New York, New York: Academic Press; 2006.

    Google Scholar 

  17. MacKenzie DI, Nichols JD, Lachman GB, Droege S, Royle AA, Langtimm CA. Estimating site occupancy rates when detection probabilities are less than one. Ecology. 2002;83(8):2248–55.[2248:ESORWD]2.0.CO;2.

    Article  Google Scholar 

  18. Karanth KU, Gopalaswamy AM, Kumar NS, Vaidyanathan S, Nichols JD, Mackenzie DI. Monitoring carnivore populations at the landscape scale: occupancy modelling of tigers from sign surveys. J Appl Ecol. 2011;48(4):1048–56.

    Article  Google Scholar 

  19. Mosher BA, Brand AB, Wiewel ANM, Miller DAW, Gray MJ, Miller DL, Grant EHC. Estimating occurrence, prevalence, and detection of amphibian pathogens: insights from occupancy models. J Wildl Dis. 2019;55(3):563–75.

    Article  PubMed  Google Scholar 

  20. Sanderlin JS, Block WM, Ganey JL. Optimizing study design for multi-species avian monitoring programmes. J Appl Ecol. 2014;51(4):860–70.

    Article  Google Scholar 

  21. Gelman A, Carlin JB, Stern HS, Rubin DB. Bayesian data analysis. 2nd ed. New York: Chapman and Hall/CRC; 2004.

    Google Scholar 

  22. R Core Team. R: a language and environment for statistical computing [internet]. Vienna, Austria: R Foundation for statistical Computing; 2020. Available from:

  23. Plummer M. JAGS: A program for analysis of Bayesian graphical models using Gibbs sampling. Proc 3rd Int Work Distrib Stat Comput (DSC 2003). 2003;20–22.

  24. Kellner K. jagsU: a wrapper around “jags” to streamline ‘JAGS’ analyses. jR package version 1.4.2. 2016. Available from:

  25. Plummer M, Best N, Cowles K, Vines K. CODA: Convergence diagnosis and output analysis for MCMC. R News. 2006;6(1):7–11. Available from:

  26. Brooks SP, Gelman A. General methods for monitoring convergence of iterative simulations general methods for monitoring convergence of iterative simulations. J Comput Graph Stat. 1998;7(4):434–55.

    Google Scholar 

  27. Taha HA. Operations research: an introduction. 9th ed. Prentice Hall: New Jersey, USA; 2011. 14 p.

    Google Scholar 

  28. Abbott's USD's 15-minute BinaxNOW COVID-19 Ag Card becomes first diagnostic test with Read-Result Test card to receive FDA EUA. HospiMedica International Staff writers. [cited 2020 Dec 5]. 2020. Available from:

  29. Brooks ZC, Das S. Impact of prevalence, sensitivity, and specificity on patient risk and cost. Am J Clin Pathol. 2020;154(5):575–84.

    Article  CAS  PubMed  Google Scholar 

  30. Miller DA, Nichols JD, McClintock BT, Grant EHC, Bailey LL, Weir LA. Improving occupancy estimation when two types of observational error occur: non-detection and species misidentification. Ecology. 2011;92(7):1422–8.

    Article  PubMed  Google Scholar 

  31. Ruiz-Gutierrez V, Hooten MB, Campbell Grant EH, Ruiz-Gutiérrez V, Hooten MB, Campbell Grant EH. Uncertainty in biological monitoring: a framework for data collection and analysis to account for multiple sources of sampling bias. Methods Ecol Evol. 2016;7(8):900–9.

    Article  Google Scholar 

  32. Nichols JD, Hines JE, Mackenzie DI, Seamans ME, Gutiérrez RJ. Occupancy estimation and modeling with multiple states and state uncertainty. Ecology. 2007;88(6):1395–400.

    Article  PubMed  Google Scholar 

  33. Gimenez O, Blanc L, Besnard A, Pradel R, Doherty PF, Marboutin E, et al. Fitting occupancy models with E-SURGE: hidden Markov modelling of presence-absence data. Methods Ecol Evol. 2014;5(6):592–7.

    Article  Google Scholar 

  34. Cooch EG, Conn PB, Ellner SP, Dobson AP, Pollock KH. Disease dynamics in wild populations: Modeling and estimation: a review. J Ornithol. 2012;152(SUPPL. 2):485–509.

    Article  Google Scholar 

Download references


Joshua Christensen, M.D. and two anonymous reviewers provided invaluable comments on previous manuscript drafts.


This research was supported in part by the U.S. Department of Agriculture, Forest Service.

Author information

Authors and Affiliations



All authors conceived of the presented idea. JSS, JDG, and TW developed the models and simulation code. DHM and TW performed literature review to inform simulation parameter values. JSS, JDG, DHM, MKS, and TW ran the simulations. JSS analyzed the simulation results. JDG and JSS created the figures. JSS, DEP, KSM, MKS, and JDG were key contributors to writing, and TW and DHM provided editorial comments. All authors discussed the results, read, and approved the final manuscript.

Authors’ information

JSS is a Quantitative Vertebrate Ecologist with USDA Forest Service Rocky Mountain Research Station, Flagstaff, Arizona, USA, with research interests including cost-effective sampling designs for monitoring, Bayesian hierarchical models, and wildlife population and community dynamics. JDG is the Multispecies Mesocarnivore Monitoring Program Leader with USDA Forest Service, National Genomics Center for Wildlife and Fish Conservation, Rocky Mountain Research Station, Missoula, Montana, USA. TW is a Research Geneticist with USDA Forest Service, National Genomics Center for Wildlife and Fish Conservation, Rocky Mountain Research Station, Missoula, Montana, USA. DHM is an eDNA technician with USDA Forest Service, National Genomics Center for Wildlife and Fish Conservation, Rocky Mountain Research Station, Missoula, Montana, USA. KSM is a Research Ecologist with USDA Forest Service, National Genomics Center for Wildlife and Fish Conservation, Rocky Mountain Research Station, Missoula, Montana, USA. DEP is a Research Ecologist with USDA Forest Service, Rocky Mountain Research Station, Missoula, Montana, USA and Division of Biological Sciences, University of Montana, Missoula, MT, USA. MKS is Director of USDA Forest Service, National Genomics Center for Wildlife and Fish Conservation, Rocky Mountain Research Station, Missoula, Montana, USA and Program Manager for Wildlife and Terrestrial Ecosystems, Rocky Mountain Research Station, USDA Forest Service.

Corresponding author

Correspondence to Jamie S. Sanderlin.

Ethics declarations

Ethics approval and consent to participate

Not applicable.

Consent for publication

Not applicable.

Competing interests

The authors declare that they have no competing interests.

Additional information

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary Information

Additional file 1.

Simulation study parameter combinations. Table of simulation study parameter combinations for evaluating the effectiveness of different sampling and biological parameters.

Additional file 2.

Simulation summary. Document describing the simulation summary for relative root mean square error, relative bias, percent coverage, and Bayesian Credible Interval length.

Additional file 3.

Simulation code. R code of simulations (GitHub:

Additional file 4.

Simulation data. Simulation data summarized by simulation parameter combination. These data were used for all plots presented within the paper.

Additional file 5.

Individual-level inference from occupancy model results. Document describing individual-level inference from occupancy model results.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit The Creative Commons Public Domain Dedication waiver ( applies to the data made available in this article, unless otherwise stated in a credit line to the data.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Sanderlin, J.S., Golding, J.D., Wilcox, T. et al. Occupancy modeling and resampling overcomes low test sensitivity to produce accurate SARS-CoV-2 prevalence estimates. BMC Public Health 21, 577 (2021).

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: