Simulating and visualizing COVID-19 contact tracing with Corona-Warn-App for increased understanding of its privacy-preserving design

Nikolas Gritsch, Benjamin Tegeler, Faheem Hassan ZunjaniarXiv 2022

Abstract

The world is under an ongoing pandemic, COVID-19, of a scale last seen a century ago. Contact tracing is one of the most critical and highly effective tools for containing and breaking the chain of infections especially in the case of infectious respiratory diseases like COVID-19. Thanks to the technological progress in our times, we now have digital mobile applications like the Corona-Warn-App for digital contact tracing. However, due to the invasive nature of contact tracing, it is very important to preserve the privacy of the users. Privacy preservation is important for increasing trust in the app and subsequently enabling its widespread usage in a privacy-valuing population. In this paper, we present a visual simulation of the working of the Corona-Warn-App to demonstrate how the privacy of its users is preserved, how they're notified of infectious contacts and how it helps in containing the spread of COVID-19.

Introduction

Digital contact tracing is a powerful tool for breaking infection chains, yet its adoption often stumbles over public skepticism regarding surveillance. While manual contact tracing is labor-intensive and prone to human error, digital solutions can be automated and highly scalable. However, the technical specifications of privacy-preserving frameworks—like the Google-Apple Exposure Notification (GAEN) framework used by Germany’s Corona-Warn-App (CWA)—are often too dense for the general public to grasp. This "black box" nature leads to a lack of trust.

This paper presents an interactive, web-based simulation designed to demystify these mechanics. By visualizing how decentralized digital contact tracing identifies infection clusters without a central authority, the authors aim to build public trust and demonstrate that "privacy-first" designs are as effective as more invasive alternatives.

Methodology

The authors developed an interactive simulation using JavaScript and the p5.js library. The simulation models a population of individuals (represented as circles) moving randomly within a space. As this is a simulation-based study, no external real-world datasets were used; data is generated dynamically based on user-defined parameters such as population size and infection rate.

The interactive simulation dashboard showing the movement area, local app state, and the central RKI-Server.

Key technical features modeled include:

  • Decentralized Logic: Instead of a central server tracking locations, the simulation mimics the GAEN framework where phones exchange random identifiers (Rolling Proximity Identifiers or RPIs) via Bluetooth.
  • Local Risk Calculation: Risk assessment is performed locally on the "device." The simulation shows how a device only reaches out to a server to download a list of "Infected IDs" to compare against its own locally stored history of contacts.
  • Infection Dynamics: The model includes parameters for infection radius, movement speed, and the probability of becoming "patient zero."
  • Quarantine Mechanics: It visualizes two types of quarantine: symptomatic individuals (who leave the screen to the left) and app-notified individuals (who leave to the right after a "positive test" triggered by a contact match).

Key Insights and Results

The simulation highlights the effectiveness of a "privacy-first" approach. Even though data access for public health officials is sacrificed to protect user anonymity, the simulation proves this approach is still highly effective at containing clusters.

Visualization of simulation dynamics, showing ID exchange between individuals and the transition to a quarantining state.

A crucial dynamic visualized is the "Aha!" moment: when "patient zero" is asymptomatic but has already infected others, the app allows the entire cluster to be notified and quarantined the moment the first person in that group develops symptoms and uploads their ID.

Qualitative results from the simulation include:

  • Outbreak Containment: Without the app, the simulation shows the entire population becoming infected rapidly. With the app active, infection clusters are successfully identified and removed.
  • Parameter Sensitivity: The "infection radius" is a dominant factor. If the radius is too large (simulating a lack of masks or distancing), the app's effectiveness in "breaking the chain" is significantly diminished.
  • Educational Value: The tool successfully demonstrates the "No Central Entity to Trust" principle, showing that the RKI-Server (the central authority) only ever sees IDs of infected people, never the contact patterns of healthy ones.

Limitations and Future Work

The authors acknowledge several simplifications made for the sake of the simulation:

  • Instantaneous Infection: Infection happens instantly upon contact, whereas the real app accounts for the duration of exposure and signal strength.
  • Static IDs: The simulation uses permanent IDs for visual clarity, whereas the real CWA uses rotating RPIs to prevent tracking.
  • Environment: The current model uses a simple open square. Future work suggests "Scenario-based" templates, such as simulating classrooms, subways, or restaurants, to provide more nuanced insights into specific high-risk environments.

Summary updated

BibTeX
@misc{gritsch2022simulating,
  author = {Nikolas Gritsch and Benjamin Tegeler and Faheem Hassan Zunjani},
  title = {{Simulating and visualizing COVID-19 contact tracing with Corona-Warn-App for increased understanding of its privacy-preserving design}},
  year = {2022},
  eprint = {2202.02210},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.02210},
}
Figure