A framework for optimizing COVID-19 testing policy using a Multi Armed Bandit approach

Hagit Grushka-Cohen, Raphael Cohen, Bracha Shapira, Jacob Moran-Gilad, Lior RokacharXiv 2020

TL;DR

This paper proposes a dynamic framework for COVID-19 testing that uses a Multi-Armed Bandit (MAB) approach to balance "exploitation" (prioritizing high-risk individuals to maximize case discovery) with "exploration" (random sampling to detect new clusters and understand disease spread). By using a simple polynomial SVM to rank individuals, the authors demonstrate that 92.1% of positive cases can be identified using only 70% of testing capacity, freeing up significant resources for unbiased population surveillance.

What Problem Does This Paper Address?

During a pandemic, testing capacity is a critical bottleneck. Most governments implement risk-driven policies—testing only those with symptoms or known contacts. While this maximizes immediate case discovery, it creates a "filter bubble" (a term borrowed from recommender systems).

If you only test people who look like the cases you've already found, you become blind to asymptomatic carriers, new geographic clusters, or shifting symptoms. This biased data prevents decision-makers from accurately assessing the true spread of the virus. The authors tackle the challenge of designing a testing policy that is both efficient at finding sick individuals and agile enough to explore the unknown.

Methods

The authors frame testing as a resource allocation problem solvable via a Multi-Armed Bandit (MAB) framework. The workflow consists of a continuous loop:

  1. Risk Scoring: A machine learning model (they compared Linear SVM, Polynomial SVM, and a rule-based baseline) assigns a risk score to individuals based on features like symptoms and contact history.
  2. Policy Split: Testing capacity is divided. The majority is used for exploitation (testing the highest-ranked individuals), while a reserved portion is used for exploration (random sampling or expert-defined targets like nursing homes).
  3. Feedback Loop: Test results are collected and used to retrain the risk-scoring model daily or weekly, allowing the policy to adapt to "concept drift" as the pandemic evolves.
Fig. 1: MAB Testing Framework workflow : Each time frame (day/week) the population is tested. A portion of the tests goes to the most likely infected individuals (exploitation) and the rest for exploration (random sampling, or any other expert defined population). The initial risk score can be manually defined based on the epidemiologists knowledge and supported by the data collected by the health organizations. At the end of each time frame we incorporate the test results and their features, combined with the new results obtained in the field and use this data to retrain the risk-scoring model (this can be limited to the randomly sampled population to avoid the filter bubble). This framework allows the experts and decision makers to create an explainable and agile policy in a data driven fashion.

Datasets

The study utilizes a dataset from the Israeli Ministry of Health (IMOH) containing over 300,000 records of individuals tested for COVID-19 between March 11 and May 10, 2020.

  • Features: Date, symptoms (fever, cough, headache, shortness of breath, sore throat), gender, test indication (contact with confirmed case, return from abroad, or other), and the test result.
  • Preprocessing: The authors treated null values in symptom fields as "no symptom" rather than discarding the records, which preserved the dataset's scale.

Key Insights and Ideas

  • The "Filter Bubble" in Public Health: Just as an algorithm might trap a user in a loop of similar content, a static testing policy traps health officials in a loop of "searching under the lamppost." Exploration is not just a statistical luxury; it is a requirement for identifying new disease characteristics.
  • Simple Features, High Impact: Features like "contact with a confirmed individual," "fever," and "cough" were the strongest predictors of a positive result. Interestingly, "headache" also showed a significant correlation (0.292).
  • Model Decay: A model trained on the "first wave" of the pandemic performed differently than one trained on the "second wave." This highlights that a static risk model is insufficient; the policy must be retrained frequently to remain effective.
Fig. 3: Pearson correlation for each phenotype positive test result by test week

Key Results

  • Efficiency: Using a Polynomial SVM, the framework captured 66.6% of positive individuals using only 10% of the testing capacity. At 70% capacity, it captured 92.1% of positives.
  • Model Comparison: The Polynomial SVM (degree 2) outperformed both the Linear SVM and the rule-based baseline in terms of F1-score and recall.
  • Adaptability: The authors demonstrated that by dedicating 30-60% of capacity to exploration, they could maintain high recall even when the underlying distribution of the disease changed between waves.
Fig. 4: Recall of models trained on different subsets of the data when ranking the patients in weeks 24-26

Limitations and Future Work

  • Data Bias: The initial dataset itself is biased because it primarily contains people who met the existing testing criteria at the time. The authors acknowledge that this makes it harder to prove the full value of exploration using historical data alone.
  • Simulation Needs: The authors suggest that future work should use Agent-Based Modeling (ABM) to simulate how different exploration policies (e.g., Thompson sampling vs. random sampling) would perform in a live environment with varying infection rates.
  • Expert-in-the-loop: While the framework is data-driven, it requires experts to define the "arms" for exploration, which may introduce its own set of human biases.

Summary updated

BibTeX
@misc{grushkacohen2020framework,
  author = {Hagit Grushka-Cohen and Raphael Cohen and Bracha Shapira and Jacob Moran-Gilad and Lior Rokach},
  title = {{A framework for optimizing COVID-19 testing policy using a Multi Armed Bandit approach}},
  year = {2020},
  eprint = {2007.14805},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.14805},
}
Figure