Risk score learning for COVID-19 contact tracing apps

Kevin Murphy, Abhishek Kumar, Stelios Serghiou

Abstract

Digital contact tracing (DCT) apps calculate infection risk using manual heuristics based on Bluetooth exposure logs. This paper proposes a machine learning framework to optimize these risk score parameters by treating the task as a multi-instance learning problem. Using soft thresholding and monotonicity constraints, the authors demonstrate that learned models significantly outperform standard manual configurations, even under conditions of high label noise and missing data.

Introduction

During the COVID-19 pandemic, digital contact tracing (DCT) apps—most notably the Google/Apple Exposure Notification (GAEN) system—were deployed globally to mitigate viral spread. These apps calculate a "risk score" for users based on three primary features: encounter duration, estimated distance (derived from Bluetooth signal attenuation), and the infectiousness of the index case (determined by days since symptom onset).

Historically, the parameters defining how these features are weighted and bucketed have been set manually by public health authorities based on expert intuition. For example, Bluetooth attenuation is often divided into discrete thresholds like 'Immediate', 'Near', and 'Medium', each assigned a specific weight.

Manual bucketing of Bluetooth attenuation for risk scoring.

The authors of this study investigate whether these parameters can be learned directly from data to create more accurate risk models. This presents a complex machine learning challenge characterized by Multi-Instance Learning (MIL)—where a single infection label must be attributed to one of many potential encounters—and significant "censoring" or label noise from unrecorded exposures.

Methods

The objective is to maximize the log-likelihood of user infection outcomes using stochastic gradient descent. However, the piecewise constant nature of the GAEN risk model (using hard thresholds) makes the loss function non-differentiable. To overcome this, the authors introduced two key techniques:

  • Soft Thresholding: Hard binning logic was replaced with "soft binning" using temperature-scaled sigmoid functions. This allows for gradient-based optimization of threshold boundaries.
  • Monotonicity Constraints: To ensure biological plausibility (e.g., closer proximity must equal higher risk), the authors enforced monotonic constraints across learned bins using reparameterization and projected gradient descent.

Datasets and Simulation

Due to the privacy constraints of real-world medical and Bluetooth data, the study utilizes a custom epidemiological simulator. This simulator generates synthetic exposure events based on biophysical models of viral dose-response and distance. It produces "bags" of exposures for simulated users, complete with ground-truth infection labels and simulated unrecorded (censored) exposures to mimic real-world conditions.

Results and Discussion

The learned models consistently outperformed the "Swiss" baseline—a widely adopted manual configuration—across various metrics.

Comparison between the true risk surface and the baseline manual configuration.

Key findings include:

  • Superior Accuracy: Learned parameters achieved higher Area Under the ROC Curve (AUC) than manual baselines.
  • Resilience to Noise: While performance degraded as the probability of unrecorded exposures (censoring) increased from 5% to 80%, the ML model maintained its lead over manual heuristics.
  • Robustness: The approach proved effective even when the underlying transmission physics of the simulator were intentionally mismatched with the app's internal model.

Conclusion

This research demonstrates that smoothing rigid software logic with differentiable components allows standard deep learning optimizers to tune legacy systems effectively. While the current study relies on simulated data and centralized training, future work could leverage Federated Learning to train these models on-device, preserving the decentralized privacy model of the GAEN framework while adapting to new viral variants in real-time.

Summary updated

BibTeX
@inproceedings{murphy2021risk,
  author = {Kevin Murphy and Abhishek Kumar and Stelios Serghiou},
  title = {{Risk score learning for COVID-19 contact tracing apps}},
  booktitle = {MLHC},
  year = {2021},
}
Figure