Skip to main content

Thank you for visiting You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

Risk estimation of SARS-CoV-2 transmission from bluetooth low energy measurements


Digital contact tracing approaches based on Bluetooth low energy (BLE) have the potential to efficiently contain and delay outbreaks of infectious diseases such as the ongoing SARS-CoV-2 pandemic. In this work we propose a machine learning based approach to reliably detect subjects that have spent enough time in close proximity to be at risk of being infected. Our study is an important proof of concept that will aid the battery of epidemiological policies aiming to slow down the rapid spread of COVID-19.


Contact tracing is an effective instrument to contain and delay outbreaks of infectious diseases such as the ongoing SARS-CoV-2 pandemic. Individuals that have been in contact with an infected person are identified, asked to remain in quarantine and are being tested. However, manually following contact histories is labor-intensive, slow and incomplete, as chance encounters, e.g. in the public transport, can not be fully reconstructed. The emergence of digital solutions, which automatically reconstruct the duration and proximity of encounters, is highly promising to enhance established manual procedures with speed, efficiency, precision and full coverage of relevant contact history. Ultimately, such proximity tracing technologies have the potential to “reduce transmission enough to achieve R < 1 and sustained epidemic suppression, stopping the virus from spreading further”1.

Various concepts for proximity tracing have been proposed in the past [e.g. refs. 2,3,4,5,6]. Recently, the Pan-European Privacy-Preserving Proximity Tracing (see ref. 7) and Decentralized Privacy Preserving Proximity Tracing (see ref. 8) initiatives were launched, both promising to enable proximity tracing in compliance with the European general data protection regulation (GDPR)9. Since a large percentage of the world’s population carries smartphones, these approaches make use of the Bluetooth low energy (BLE10) technology. BLE is a wireless communication protocol, designed for the energy-efficient transmission of data over the 2.4 GHz licence-free band. Contact advertisements regularly emitted via BLE are used to assess the proximity of encounters. For effectively containing the current SARS-CoV-2 pandemic, it is necessary to reliably translate the BLE signal strength measurements into risk estimates of infection transmission. Different studies have investigated the use of BLE measurements for distance estimation and positioning, see, for instance, refs. 11,12,13,14. These studies show that accurate distance estimation using BLE is difficult due to alternating advertising channels and multi-path effects. These issues are particularly severe in the complex and unknown 3d environments we encounter in our particular use-case. In this letter, we propose a data driven approach to achieve feasible risk estimates from BLE measurements and show that, despite all of these well-known issues, raw RSSI measurements can be sufficient to provide useful contributions to the epidemiological risk assessment.

Figure 1a illustrates a typical infection scenario, which is difficult to manage with manual contact tracing procedures. Here, an infected person enters a public place (e.g. a supermarket) and spends an extended amount of time in close proximity (<2 m) to the contact person. Both factors, namely the contact distance and the contact duration, influence the risk for the contact person of being infected.

Proximity tracing technologies allow to reconstruct such high risk encounters between the infected and contact person, once the former has been tested positive. The infected person is recording anonymous IDs of contact persons within certain critical distance range. These anonymous proximity histories are encrypted and remain on the phone of the infected person at all times. Only if tested positive and upon agreement, the proximity history is analyzed and contact persons with a high risk of being infected can be alerted anonymously. In addition, health authorities can be involved to handle these high risk cases by standard procedures (e.g., test and quarantine the contact persons).

To make this approach practically applicable, i.e., to avoid that every short time or distant encounter raises an alarm, it is crucial to reliably estimate the risk of infection transmission from the BLE signal strength measurements. In this letter we propose techniques to perform this conversion.


Epidemiological risk modeling

We first define an epidemiological model to convert proximity time series to infection risk scores. The models E displayed in Fig. 1b implement different non-linear functions to translate time series of proximity values into infection risk scores. For infections transmitted via the droplet route, one usually assumes that the infection risk decreases as the distance dt between people increases; with some critical distance from which on the risk of being infected becomes vanishingly low15. See Supplementary Methods 1 for more details on our choice of epidemiological risk functions. The chosen epidemiological model is then used to label the data needed to train the ML-based infection risk predictor. For that, one integrates the marginal infection risk within the critical distance over the contact duration T to obtain an infection risk score

$$I=\mathop{\sum }\limits_{t=1}^{T}E({d}_{t}).$$

An encounter between two individuals is considered as “high risk” if the value of I exceeds a predefined critical risk threshold η. This threshold can either be set either locally, i.e., for each encounter, or globally based on the estimated reproduction rate R. For COVID-19 it is assumed that a physical proximity between two people of less than 2 meters over a time period of 900 s (15 min) results in a high risk of being infected16. When setting η locally, one would use these parameters to determine if an encounter is labelled as “high risk” or not. On the other hand, a globally set critical risk η, will label the data such that the number of “high risk” encounters exceeds the expected total number of new cases by a certain safety-margin. See Supplementary Methods 2 for more details on how to chose the value of η.

Fig. 1: Overview of the proximity tracing concept and results.
figure 1

a Typical infection scenario in a public space (e.g. a supermarket), where close contact between an infected and a contact person is established over a long enough period of time. b An epidemiological risk function translates a time series of contact distances into infectiousness scores, which are then used to label the encounters in the training data set. c Example of a raw RSSI time series of the BLE signal, as well a corresponding contact distances. d We train a linear regression model to predict the infectiousness scores obtained from a given risk model. The linear regression receives as input a list of features, which were derived from the raw RSSI data. e The predictions of the linear regression model correlate strongly with the ground truth risk (up to 0.95 for the linear risk model). For a fixed critical risk threshold η the approach achieves high true positive rates with very few false classifications. f To this day only little is known about spreading behaviour of SARS-Cov-2. In this work, we calibrated our epidemiological models according to the latest recommendations of epidemiologists16. After large-scale deployment of proximity tracing technologies, it will be possible to compare the predicted infection events with the actually measured ones. This may help to refine epidemiological models.

Machine learning for risk prediction

Finally, we train a linear regression model

$$\tilde{I}(x)={w}^{\top }x+b$$

to predict the infection risk score from the measured received signal strength (RSSI) time series of the BLE signal. For simplicity, we do not provide the raw RSSI time series to the ML model, but compute features x (sum, mean, max etc.) on it and provide this aggregated information to the model. By thresholding \(\tilde{I}\), the output of the linear regression, we obtain a family of classifiers

$${\text{risk}}_{\gamma }(x)=\left\{\begin{array}{ll}^{\prime\prime} {\text{high}}\, {\text{risk}}\,^{\prime\prime} &\,{\rm{if}}\,\,{\tilde{I}}(x)\,>\,\gamma \\ ^{\prime\prime} {\text{low}}\, {\text{risk}}\,^{\prime\prime} &\,{\text{else}}\,\end{array}\right.$$

which allows us trade-off sensitivity and specificity of our predictions. Fig. 1d illustrates the entire training and evaluation pipeline, including ground truth risk estimation, feature extraction and training of the linear regression model. See Supplementary Methods 3 for more details on our machine learning approach.

Figure 1c displays the time series of raw RSSI values from the BLE signal, which the smartphone of the infected person receives from the smartphone of the contact person. Although there is high variability in the RSSI values caused by complicated multi-path effects and alternating advertising channels, it is still possible to reliably decide whether or not the infection risk I exceeds a certain threshold, as shown in our real-world experiments performed with 48 participants (see Supplementary Note 1 for the details on the experimental setup).

Experimental evaluation and discussion

Figure 1e, compares the ground truth risk, as computed from the time series of ground truth distances, with the predicted risk, estimated from the Bluetooth signal strength data, for 392 contact episodes from a holdout validation set. As we can see, our machine learning based approach, is able to achieve correlation numbers of up to 0.95 for the linear infection risk model. We compute the critical risk threshold η by inserting the reference sequence dref, with

$${d}_{t}^{{\mathrm{ref}}}\equiv 200\,{\mathrm{cm}}\,{\rm{and}}\ \ {T}^{{\mathrm{ref}}}=900\,{\mathrm{s}}$$

into the different risk models. By varying the classifier sensitivity γ, we can trade-off the number of correct and false alarms. The resulting receiver operating characteristic (ROC) curve of the real-world experiment displayed in Fig. 1e shows that high true positive rates can be achieved with relatively few false classifications. Note that these ROC curves depend on the data labeling procedure, i.e., the epidemiological model and the threshold η. Here we used the assumed parameters for COVID-19, namely distance <2 m and exposure time >15 min16. We provide mean and maximum RSSI value as well as the number of received Bluetooth beacons as features to the linear regression model; results with other features derived from the RSSI time series can be found in Supplementary Fig. 1. The AUC (area under the ROC curve) value of the predictor is found to be larger than 0.9 for all investigated epidemiological models. For the linear model AUCs of up to 0.96 were obtained. The prediction task becomes slightly more difficult for the box and sigmoid models, which assign only negligible risk to encounters above a certain distance. The repetition of this analysis on data recorded on another day led to very similar performance results, demonstrating the reliability of the proposed approach (see Supplementary Table 1).

An important open question is how in detail the distance and duration of a contact to an infected person relate to the risk of contracting Sars-Cov-2. Investigating this relationship in experiments in a controlled environment is morally questionable, since it puts the health of test subjects at risk. Our approach has the potential of discovering the true relationship between contact proximity and infection risk, without putting lives at risk.

Once the true infection events will be observed (given data donations and consent of all users involved), a large record of RSSI time-series with associated ground-truth risk labels will be available. By minimizing the prediction error w.r.t. these true risk labels over the set of risk models E and classifier thresholds γ, we will be able to identify the true relationship between proximity and infection risk, which will help further improving our risk assessment.

This idea is illustrated in Fig. 1f, which displays RSSI sequence data along with the classification decisions of linear classifiers, that were trained to match the predictions of three different epidemiological models. Every RSSI sequence is represented as a dot and we display only two features of every RSSI sequence, the maximum and the sum of the negative inverse RSSI values.

In this letter we have proposed an approach to reliably detect subjects that have spent enough time in close proximity to be at risk of having contracted an infectious disease. Thus our study is an important proof of concept that will aid the battery of epidemiological policies aiming to slow down the rapid spread of COVID-19. Note that while we have assumed the standard modeling of viral spread with the currently agreed on parameters (distance <2 m and exposure time >15 min, see ref. 16), it may in fact be conceivable that these parameters are not chosen conservatively enough in the light of recent results on contagious droplet spreading across larger distances rsp. in aerosols (see e.g. ref. 17) and moreover the improved binding affinity of SARS-CoV-218. Clearly, once proximity tracing technologies will be rolled out for the broad population, then transmission events will become available that will provide evidence for the true epidemiological modeling assumptions. With that we could find out whether the current risk assessment is conservative enough or whether indeed social distancing would need to be increased further.

Finally, it is important to emphasize that there are technical limitations of the BLE technology which make it impossible to detect certain epidemiologically relevant events. For instance, it is impossible to detect, using BLE measurements, whether a contact tracing app user is wearing a face-mask or not. To further improve the results, it could therefore be helpful to consider additional sources of data, like user questionnaires or the phones GPS and gyroscope sensor. These are interesting directions of future research.

Reporting summary

Further information on research design is available in the Nature Research Reporting Summary linked to this article.

Data availability

The data that support the findings of this study are publicly available at

Code availability

The code that was used to pre-process and analyse the data is available from the corresponding author upon request.


  1. Ferretti, L. et al. Quantifying SARS-CoV-2 transmission suggests epidemic control with digital contact tracing. Science. 368, eabb6936 (2020).

  2. Salathé, M. et al. A high-resolution human contact network for infectious disease transmission. Proc. Natl Acad. Sci. USA 107, 22020–22025 (2010).

    Article  Google Scholar 

  3. Yoneki, E. Fluphone study: Virtual disease spread using haggle. in Proc. 6th ACM Workshop on Challenged Networks, 65–66 (Association for Computing Machinery, 2011).

  4. Freunde Liberias, e. V. EBOLAPP. (2018).

  5. Singapore Government Technology Agency and Ministry of Health. TraceTogether. (2020).

  6. Chen, H., Hongbin Pei, B. & Liu, J. Next generation technology for epidemic prevention and control: data-driven contact tracking. IEEE Access 7, 2633–2642 (2018).

    Article  Google Scholar 

  7. PEPP-PT. (2020).

  8. DP-3T. (2020).

  9. Voigt, P. and Von dem Bussche, A. The eu general data protection regulation (gdpr). A Practical Guide, 1st edn. (Springer International Publishing, Cham, 2017).

  10. SIG Bluetooth. Sig introduces bluetooth low energy wireless technology, the next generation of bluetooth wireless technology (SIG Press Releases, 2009).

  11. Faragher, R. and Harle, R. An analysis of the accuracy of bluetooth low energy for indoor positioning applications. in Proc. 27th International Technical Meeting of The Satellite Division of the Institute of Navigation (ION GNSS+ 2014), Vol. 812, 201–210. (Institute of Navigation, 2014).

  12. Faragher, R. & Harle, R. Location fingerprinting with bluetooth low energy beacons. IEEE J. Sel. Area Commun. 33, 2418–2428 (2015).

    Article  Google Scholar 

  13. Ionescu, G., de la Osa, C.-M. & Deriaz, M. Improving distance estimation in object localisation with bluetooth low energy. SENSORCOMM 2014, 45–50 (2014).

    Google Scholar 

  14. Chowdhury, T. et al. A multi-step approach for rssi-based distance estimation using smartphones. in Proc. 2015 International Conference on Networking Systems and Security (NSysS), 1–5. (IEEE, 2015).

  15. Xie, X. et al. How far droplets can move in indoor environments-revisiting the wells evaporation-falling curve. Indoor Air 17, 211–225 (2007).

    CAS  Article  Google Scholar 

  16. European Centre for Disease Prevention and Control. Contact tracing: public health management of persons, including healthcare workers, having had contact with covid-19 cases in the european union—second update. (ECDC Stockholm, 2020).

  17. Bourouiba, L. Turbulent gas clouds and respiratory pathogen emissions: potential implications for reducing transmission of COVID-19. JAMA. 323, 1837–1838 (2020)

  18. Wrapp, D. et al. Cryo-em structure of the 2019-ncov spike in the prefusion conformation. Science 367, 1260–1263 (2020).

    CAS  Article  Google Scholar 

Download references


K-R.M., T.W., and W.S. acknowledge financial support by the German Ministry for Education and Research (BMBF) for the Berlin Institute for the Foundations of Learning and Data (BIFOLD) (refs. 01IS18025A, 01IS14013A-E, and 01IS18037A-I). K-R.M. was supported in part by the Institute of Information & Communications Technology Planning & Evaluation (IITP) grant funded by the Korea Government (No. 2019-0-00079, Artificial Intelligence Graduate School Program, Korea University), by the BMBF under Grants 01GQ1115, 01GQ0850, 01IS18025A, and 031L0207D; and by the German Research Foundation (DFG) under Grant Math+, EXC 2046/1, Project ID 390685689. Open Access funding enabled and organized by Projekt DEAL.

Author information

Authors and Affiliations



Concept and design of the study: T.W., J.M., W.S., K-R.M. Design and execution of the real-world experiment: R.S., J.M., M.W., T.W. Data acquisition and pre-precessing: F.S., P.W., D.N. Analysis and interpretation of data: F.S., J.M., P.W., D.N., W.S., K-R.M., T.W. Drafting of the paper: W.S., F.S., P.W., J.M., M.W., K-R.M., T.W. Critical revision of the paper for important intellectual content: All authors. All authors approve of the paper.

Corresponding authors

Correspondence to Wojciech Samek, Klaus-Robert Müller or Thomas Wiegand.

Ethics declarations

Competing interests

The authors declare 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

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 license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license 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 license, visit

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Sattler, F., Ma, J., Wagner, P. et al. Risk estimation of SARS-CoV-2 transmission from bluetooth low energy measurements. npj Digit. Med. 3, 129 (2020).

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI:

Further reading


Quick links

Nature Briefing

Sign up for the Nature Briefing newsletter — what matters in science, free to your inbox daily.

Get the most important science stories of the day, free in your inbox. Sign up for Nature Briefing