Efficient and targeted COVID-19 border testing via reinforcement learning

Hamsa Bastani, Kimon Drakopoulos, Vishal Gupta, Ioannis Vlachogiannis, Christos Hadjichristodoulou, Pagona Lagiou, Gkikas Magiorkinis, Dimitrios Paraskevis, Sotirios Tsiodras

Abstract

During the summer of 2020, Greece faced the challenge of reopening its borders while managing the risk of COVID-19 importation. This paper presents Eva, a reinforcement learning system deployed to optimize border testing under resource constraints. By balancing exploration (data gathering) and exploitation (testing high-risk travelers), Eva identified nearly twice as many asymptomatic infected travelers as random testing and significantly outperformed policies based on standard public health metrics.

Introduction

The COVID-19 pandemic forced nations into a difficult trade-off: economic stability through open borders versus public health safety through closures. Most countries that reopened relied on ad hoc protocols, such as random testing or using delayed, population-level epidemiological data (e.g., total cases or deaths) to screen travelers. These methods are often inefficient or inaccurate, particularly for identifying asymptomatic carriers. To address this, researchers developed Eva, a real-time, data-driven system designed to maximize the detection of infected travelers while mapping the evolving pandemic landscape.

Methodology

Eva was designed as a contextual, nonstationary, batched bandit system. The workflow, illustrated in Figure 1, operates in three distinct stages:

  1. Type Extraction: Using LASSO regression, the system categorizes travelers into "types" based on demographic features like country of origin, region, age, and gender.
  2. Prevalence Estimation: An Empirical Bayes approach estimates infection rates for each type, effectively handling sparse data from low-volume regions.
  3. Allocation (RL Core): An optimistic Gittins index strategy assigns risk scores. This approach balances exploitation (testing known high-risk groups) with exploration (testing groups with high uncertainty to prevent "blind spots").
Eva system workflow

The system accounts for real-world operational constraints, including a 24–48 hour delay for PCR results and the volume of tests currently in the laboratory pipeline.

Data and Benchmarking

The system utilized real-time Passenger Locator Form (PLF) data and results from thousands of PCR tests conducted at Greek borders. For benchmarking, the researchers compared Eva’s performance against standard 14-day epidemiological time series (cases, deaths, and positivity rates) from the Our World In Data dataset.

A critical insight from this comparison was the failure of public metrics to predict asymptomatic traveler risk. Models based on population-level cases or deaths achieved an AUROC of approximately 0.5—equivalent to random guessing. This suggests that asymptomatic prevalence among travelers is decoupled from a country's general epidemiological status, likely due to differences in social distancing behaviors or local testing strategies.

Key Results

Eva demonstrated substantial improvements over alternative testing strategies:

  • Efficiency: Eva identified 1.85x more asymptomatic infected travelers than random surveillance testing on average, with gains reaching 2–4x during peak travel periods.
  • Superiority over EU Policies: As shown in Figure 2, Eva caught significantly more infections than policies based on standard population-level metrics (cases, deaths, or positivity), which were the standard recommendations at the time.
  • Resource Optimization: To match Eva's effectiveness, a random testing strategy would have required 85% more tests.
  • Early Warning: Eva’s data-driven "grey-listing" recommendations—requiring negative tests before arrival for specific high-risk origins—prevented an estimated 6.7% of additional infected travelers from entering.
Comparison of Eva against standard epidemiological metrics

Discussion and Limitations

While Eva proved highly effective, several limitations remain. The system's "grey-listing" component still required human-in-the-loop intervention to balance political and economic factors. Additionally, the current model was optimized for PCR testing delays; adapting it for rapid antigen tests would require updating the allocation mechanism for immediate feedback. Future work should also incorporate vaccination status and variant data, which have become primary determinants of risk since the study's conclusion in 2020. Finally, the success of such a system depends on a centralized data infrastructure, such as the PLF system, which may not be universally available.

Summary updated

BibTeX
@article{bastani2021efficient,
  author = {Hamsa Bastani and Kimon Drakopoulos and Vishal Gupta and Ioannis Vlachogiannis and Christos Hadjichristodoulou and Pagona Lagiou and Gkikas Magiorkinis and Dimitrios Paraskevis and Sotirios Tsiodras},
  title = {{Efficient and targeted COVID-19 border testing via reinforcement learning}},
  journal = {Nat.},
  year = {2021},
  doi = {10.1038/s41586-021-04014-z},
}
Figure