key: cord-1056614-pi84t1yk authors: Li, Fangyu; Valero, Maria; Shahriar, Hossain; Khan, Rumi Ahmed; Ahamed, Sheikh Iqbal title: Wi-COVID: A COVID-19 Symptom Detection and Patient Monitoring Framework using WiFi date: 2020-11-21 journal: Smart Health (Amst) DOI: 10.1016/j.smhl.2020.100147 sha: b2cec8a7ecb7db8f9fa8adb6bc96ad8ad3752673 doc_id: 1056614 cord_uid: pi84t1yk The current SARS-CoV-2, better know as COVID-19, has emerged as a serious pandemic with life-threatening clinical manifestations and a high mortality rate. One of the major complications of this disease is the rapid and dangerous pulmonary deterioration that can lead to critical pneumonia conditions, resulting in death. The current healthcare system around the world faces the potential problem of lacking resources to assist a large number of patients at the same time; then, the non-critical patients are mostly referred to perform self-isolation/quarantine at home. This pandemic has placed new demands on the health systems world, asking for novel, rapid and secure ways to monitor patients in order to detect and quickly report patient’s symptoms to the healthcare provider, even if they are not in the hospital. While tremendous efforts have been done to develop technologies to detect the virus, create the vaccine, and stop the spread of the disease, it is also important to develop IoT technologies that can help track and monitor diagnosed COVID-19 patients from their homes. In this paper, we explore the possibility of monitoring respiration rates (RR) of COVID-19 patients using a widely-available technology at home – WiFi. Using the at-home WiFi signals, we propose Wi-COVID, a non-invasive and non-wearable technology to monitor the patient and track RR for the healthcare provider. We first introduce the currently available applications that can be done using WiFi signals. Then, we propose the framework scheme for an end-to-end non-invasive monitoring platform of the COVID-19 patients using WiFi. Finally, we present some preliminary results of the proposed framework. We envision the proposed platform as a life-changing technology that leverages WiFi technology as a non-wearable and non-invasive way to monitor COVID-19 patients at home. Coronavirus is a large family of viruses that can infect people and spread among humans in many forms such as with MERS-CoV, SARS-CoV, and now with the new virus SARS-CoV-2 (COVID-19) [1] . The clinical spectrum of COVID-19 infection appears to be wide, encompassing asymptomatic infection, mild upper respiratory tract illness, and severe viral pneumonia with respiratory failure and even death [2] . Pulmonary function, such as respiratory rate (RR), testing [3] is a way to measure the COVID-19 influences. Investigating the RR pattern and its relationship with COVID-19 symptoms is a hot topic nowadays [4] . RR is the number of breaths a person takes per minute, which is usually measured when a person is at rest. RR simply involves counting the number of breaths for one minute based on how many times the chest rises. RR may increase with fever, illness, and other medical conditions. For COVID-19 cases, RR is important to determine the pulmonary activity of the patients as abnormal measurements may indicate patient deterioration [5] . Measuring RR usually involves the expertise of a health practitioner, so it is usually performed in the hospital. However, due to the clinical emergency caused by COVID-19, the RR and pulmonary function analysis of the diagnosed individuals increases the risk of contagious. The majority of patients do not present pulmonary distress initially, and healthcare providers have to make the difficult decision to send these patients back home and hope for their ability to engage in selfmonitoring. According to the Center for Disease Control and Prevention (CDC), some patients with initial mild clinical presentation may worsen in the second week of illness [1, 6] . Thus, patients whose pulmonary functions and RR have not been compromised and do not require hospitalizations should be monitored using tele-medicine tools while in self-isolation [7] . Because of the high risk of diagnosed patients to develop severe respiratory distress, real-time RR monitoring of these patients is desirable. Even the Food and Drug Administration (FDA) has allowed the use of devices to monitor the patientâ s vital signs remotely [8] . Unfortunately, there are limited tools available for real-time at-home monitoring, and mostly of them requires the use of wearable devices (e.g. watch, cuff, belt, etc.) or invasive technologies (like cameras). To avoid the inconvenience of using wearable and invasive devices to monitoring vital signs, some contact-free technologies have been proposed. The advantages of contact-free sensing include continuous monitoring even during the night. The patient does not need to be aware of the device itself during sleep, where wearable devices can be a disruption. Most of monitoring contact-free technologies are based on force sensors [9] , load cells [10] , multi-channel infrared sensor-arrays [11] , pressure sensors [12] , vibration sensors [13] , and ratio frequency [14] . Among them, one of the most interesting technologies is ratio frequency (RF) because this technology leverages the propagation of electromagnetic (EM) waves that can be extracted from the WiFi technology that almost everyone has at home. Nevertheless, none of the current approaches using WiFi for RR estimation includes a complete framework to analyze the patient in real-time and transfer the information to a healthcare practitioner for immediate response. In this paper, we explore the possibility of monitoring RR on COVID-19 patients using a noninvasive, real-time and at-home technology. We propose Wi-COVID, a framework that uses the available WiFi signals generated by common-used equipment at home to monitor COVID-19 patients. Furthermore, using the at-home WiFi signals, we propose a non-invasive and non-wearable technology to monitor the patient and report the RR to the healthcare provider in real time. The proposed end-to-end framework includes: i) a platform for detecting and estimating RR using only information of the WiFi signal at home; and ii) a end-to-end system design for tracking real-time patient's RRs for the healthcare provider. We summarize our contributions as follows: 1. We provide a comprehensive review of the current WiFi-based available technology for monitoring vital signs and people's activities that can provide a novel approach to monitor patients. WiFi-based acquisition and recognition techniques usually include one of three approaches: the use of radio signal strength (RSS), the use of channel state information (CSI), or the use of Frequency Modulated Continuous Wave (FMCW) information. RSS provides coarse-grained information about communication links [16] and can be measure using most wireless devices easily as the RSS collection is supposed by almost all wireless chips. RSS is a measurement of the power of the radio signal at the received end. RSS-based approaches have been extensively studied and have achieved good performance to identify different activities; for instance object tracking and location [17, 18, 19, 20] , driving behavior [21] , crowd counting [22] , hand gesture recognition [23] , etc. However, as the RSS is coarse-grained and can be easily corrupted by multipath effect, these RSS systems often require a line-of-sight (LOS) transmission, resulting in a limited accuracy in indoor activity detection [24] . To improve the accuracy of WiFi sensing, CSI has become a good alternative. CSI contains more detailed information due to its high dimension structure, thus it can support fine-grained classification applications [24] . CSI can be expressed as a complex matrix, where each entry represents the amplitude and the phase response of the signal transmission channel. Therefore, the amplitude of the CSI signal quantifies the signal power attenuation after the multi-path effect (similar to signal strength) [24] . Multiple system has been developed on monitoring activities using variations and statistics of CSI; for example, small hands motions [25, 26] , indoor human activities [27, 28, 29, 30] , human behavior recognition [31] , traffic monitoring [32] , fire detection [33] , wheat moisture detection [34] , object distinction [35] , school violence monitoring [36] , etc. Another category of wireless passive sensing techniques relies on the FMCW information embedded in the received signals to track changes of reflected objects for motion detection or vital sign monitoring [24] . ToF [37] is a time-based range measurement protocol that aims to provide high accuracy positioning information. Some of the applications using ToF includes vital sign detection [38, 39] , gain patterns [40, 41, 42] , location [43, 44] , etc. The main problem is ToF-based wireless sensing systems rely either on large sensing bandwidths [45, 46] or specially designed frequency-modulated continuous-wave signals (FMCW) [43, 39] . Therefore, those ToF cannot be implemented on off-the-shelf WiFi devices and their ability of detecting multiple indoor events has not been studied yet. Here, we aim to present the currently available approaches to estimate vital signs, specifically RR (also known as breath rate) using different types of wireless sensing techniques, and propose a reliable framework for applying the best-fit technology for real-time monitoring of COVID-19 patients. Then, the following approaches are categorized into three groups: RRS-based, CSI-based, and ToF-FMCW based approaches for RR estimation. Figure 1 shows an illustrative taxonomy of the investigations that have been done in this field. Initially, RRS-based methods were utilized to locate people inside buildings using static wireless networks to measure linksâ RSS values [57, 58, 59, 60, 61] . The location also can be done through walls [18, 62, 63, 64] using a variety of statistics of the measured RRS. Later multiple applications have been developed in the healthcare area. Patwari et al. [48] explored the use of RSS measurements on the links between wireless devices to identify where a breathing person is located and estimate RR in a home, while the person is sitting, lying down, standing, or sleeping. The main idea of RSS-based breathing location is based on the assumption that a link's RRS measurement is sensitive to the breathing movement when a person breaths near the link line, and there is no more motion around. Furthermore, authors of [48] addressed the challenge of detecting breathing when the person occasionally moves by using a change detector across the links. For RR estimation, they used a method presented in their previous work [47] , which calculates the power spectral density (PSD) over each link using the most recent samples, sums the PSD over all links, and estimates RR as the frequency at the maximum of the sum PSD. The main challenge faced was that usually the link that better measures chest movement is the link that measures other movements (motion interference). Therefore, the authors proposed a combination of Welchâ s t-test [65] and Wilcoxon rank-sum test [66] , which are change-point detection methods. Their proposed method was to use the detected break-point indices to remove the mean from the raw RSS and use the residual RSS for RR estimation. Even though the method allows small movements, the reliability of the RSS links with large noise makes the method unstable for measuring respiration. More recently, some respiration monitoring systems based on commercial off-the-shelf transmitterreceiver were proposed. In [48] , the RRS measurements of a network of transceivers are utilized for extracting RR, which was improved by [49] where RSS data from a single TX-RX pair can identify oneâ s RR. The RSS, however, is not a sensitive indicator for reliably tracking minute chest movement. Exhaling and inhaling causes very small changes in RSS and these changes can be easily polluted by other factors and environmental noise. Abdelnasser et al. [50] proposed a full architecture for extracting breathing signals from noisy WiFi RSS. Various challenges were addressed like noise elimination, interfering with humans, sudden user movements, as well as detecting abnormal breathing situations. The framework claims the detection of apnea situations with more than 96% of accuracy. The framework includes a breathing signal extractor, which relies on frequency spectrum obtained by applying fast Fourier transformation (FFT) to a sliding window of the WiFi raw signal and a bandpass filter to limit the frequencies to those within the range of the normal human breathing (between 0.1 to 0.5 Hz) [67] . RR (r ) is finally estimated as the frequency with the maximum magnitude in the human RR range as shown in the equation: where min r is the minimum RR, max r is the maximum RR, and 1..n x are the RSS values in the current sliding window. Once the breathing is estimated, a RR extractor is applied by fusing different overlapping consecutive windows in order to obtain a stable consecutive reading. The authors in [50] also developed a method for detecting apnea using the extracted RR. To do so, they applied a discrete wavelet transform (DWT) and a thresholding method. Even though RR was extracted with RSS-based WiFi information, because RSS is coarse-grained, it has multiple limitations. For instance, in the previous works, the accuracy can be diminished and corrupted by the multipath effect. In wireless sensors, due to reflections, multiple copies of the same signal arrive at the receiver, each undergoing different delays and attenuations. This effect is known as multipath [68] . For this reason, the RSS-based sensing system often requires a line-of-sight (LOS) transmission, which means the person has to be closer to the LOS system, resulting in a limited accuracy in indoor activity detection. The RSS, however, has found to be insensitive for reliably tracking the minor chest movement due to respiration, as the RSS changes caused by exhaling and inhale are so small that they can be easily submerged by environmental noise [51] . While the RSS-based methods are found to be workable only when the subject stays close to the LOS, the CSI-based methods seem more appealing as they can capture the subjectâ s RR from a distance, making it viable for long-term RR monitoring. In general, the CSI-based methods can be classified into three categories: Phase-based methods exploit the phase information of the signal. In 2019, Zhang et al. [38] proposed a contact-free breath tracking system, BreathTrack. Authors used a Hampel filter, an FIR high pass filter (cut-off frequency is 0.05 Hz) in order to eliminate low-frequency noise and avoid phase distortion. Also, authors adopted an AoA-TOF sparse recovery method to obtain the phase variation of attenuation coefficient and acquire respiratory state and RR. Zhang et al. [52] presented the model, design, and implementation of a sleep monitoring system that exploits ambient radio signals to recognize sleep stages and assess sleep quality including RR by setting up one single link between two commodity radios. Authors adopted a statistical approach by examining the auto-correlation function (ACF) of CSI power response, which significantly shortens the time delay and produces the instantaneous estimation. Based on the calculated ACF, the approach first detects the presence/absence of breathing. Then, if present, it estimates RR by extracting following features: peak prominence, peak amplitude, motion interference ratio, and peak location. In general, the larger the motion statistic, peak prominence, peak width, peak amplitude and the smaller the motion interference ratio, the more likely is the presence of the breathing signal. Once there is a breathing signal, RR can be estimated as , where τ is the location of the first dominant peak. The phased-based CSI methods assume only one person in the observation area, as the spatial resolution of these systems is too low to distinguish the RF signals reflected by multiple users. In addition, note that [38] argued that the method [69] that utilizes the phase difference between antennas to eliminate phase distortions introduced in the internal circuit is inaccurate. Because the phase of measured CSI on all antennas are affected by the minor displacement caused by breath, phase difference between antennas is actually the subtraction of two periodic signals instead of the real respiratory movements. It is the most common used method for extracting respiration with CSI-based WiFi approach. In 2017, Chen et al. [14] introduced TR-BREATH, a contact-free breathing monitoring system leveraging time-reversal (TR) technique that detects and monitors multi-person breathing utilizing the CSIs obtained from off-the-shelf WiFi devices. TR-BREATH could capture the minor but periodic variations in CSIs caused by breathing. Authors of [70] used Root-MUSIC algorithm to achieve highly accurate RR estimations within 10 seconds. The method consists on 1) calculating the timereversal resonating strength (TRRS) [71] ; 2) analyzing the calculated TRRS with the Root-MUSIC [72] to produce RR candidates; 3) deriving key statistics based on these candidates to facilitate breathing detection; 4) estimating the multi-person RRs via affinity propagation [73] , likelihood assignment, and cluster merging; and 5) formulating an estimation on the number of people based on the cluster likelihoods. Later, in 2018, Yang et al. [53] applied the Hampel filter [74] and wavelet filter [75] on the CSI series to remove outliers and high-frequency noises. Then, RR is estimated by performing FFT on all the CSI streams targeting frequencies between 0.1Hz and 0.6Hz. They applied the technique to study the problem of multi-person sleeping respiration monitoring using CSI-based method and COTS WiFi devices. They employed one transmitting (Tx) and two receiving antennas (Rx1 and Rx2), forming two pairs of transceiver antennas (Tx-Rx1 and Tx-Rx2). Each transceiver antennas pair creates a series of concentric Fresnel zones. However, two or more persons in the room have to breathe in different rates and be near to the Fresnel zones to be detected. Wang et al. [55] proposed a continuous RR tracking system of multiple persons using the CSI of a single pair of commercial WiFi devices. The authors eliminated assumptions like a fixed number of people in the area of interest. Authors proposed three steps: 1) multi-user breathing spectrum generation; 2) RR trace tracking; and 3) people counting and recognition. For RR extraction, they first applied a short-term Fourier transform (STFT) on CSI measurements to extract periodic breathing signals. If multiple people in the room, different frequency responses will be observed as people breathe at different rates. They applied an adaptive sub-carrier combining method to make the signals stronger and provide a spectrogram of the estimated RRs over time. Lately, in 2020, Wang et al. [54] also present a calibration-free remote vital sign monitoring system that can simultaneously monitor multiple users by leveraging CSI of 60 GHz WiFi. They applied a spectrum analysis as the breathing signal is periodical. To utilize a correct window size at the signal for frequency resolution, the authors adopted a statistical approach by examining the ACF of the candidate CSI phase. Purely spectrumbased CSI methods require a large delay (e.g., more than 30 seconds) to gain better frequency resolution, and cannot observe immediate RR changes, since RR is assumed to be constant within the time window. For effective RR estimation, we propose a high-resolution spectrogram based CSI approach for the Wi-COVID framework. The proposed approach combines advanced signal pre-processing techniques to effectively extract the target signal component, and the high resolution spectrogram to obtain an accurate and dynamic RR estimation. The proposed flowchart is displayed in Figure 2 , and more details are discussed in this subsection. The CSI signal processing consists of the following steps: (1) Obtaining CSI signal magnitude; (2) Removing outliers by the Hampel identifier [76] , and using a bandpass filter with cut-off frequencies of 0.2 Hz and 0.4 Hz to suppress the noises; (3) Using principal component analysis (PCA) to extract respiration component, and then applying high resolution spectrogram to extract the instantaneous frequency of the respiration component to estimate RR; (4) Calculating the shortness of breath indicators in both time and frequency domains to evaluate the COVID-10 symptoms. The first step of CSI processing is to remove the noise interference. There could be abnormally sudden changes in the collected CSI data due to equipment and environment. We propose to use the Hampel filter to suppress the strong abnormal amplitudes, following Wi-Sleep [76] and WiHACS [77] . The noise, especially amplitude outliers, will be wiped out and replaced by the moving average of their neighboring data samples. Besides, the Hampel filter could also remove the impacts of invalid CSI data samples caused by the sensing or data transmission. Note that if after the Hampel filter, there are still noises left, a classic moving average filter can be applied to smooth the data [78] . After removing the outliers, a bandpass filter is applied, which is an ordinary method that only allows signal components between certain frequency bands to pass. Since human respiration activities fall into a specific frequency band of the CSI signals, the bandpass filter can effectively wipe out low-frequency and high-frequency noise interferences [79] . Note that in our study, we set up the analysis frequency band between 0.2 Hz and 0.4 Hz, which is a typical frequency range for human respiration [80, 13] . As indicated in A, CSI data have multiple channels from different sub-carriers. The respiration movements are hidden in the high dimensional data matrix. In order to extract the respiration related signal component, we propose to use the PCA technique [81, 82] , which is a latent space projection method. The principle component calculated by PCA can represent the primary data features. Besides the data dimensionality reduction, the utilization of PCA can also enhance the data processing efficiency. In addition, in CSI-based human activity analysis, PCA can also be used for noise suppression and data redundancy reduction, e.g., Wi-Wri [83] , WiHACS [77] , etc. Here, we use PCA to extract the principal respiration features, but in the meantime, various noises are removed as a side benefit. Before introducing the high-resolution spectrogram, we first define the respiration related signal expression. The target non-stationary biomedical signal ( ) f t can be defined as a summation of K oscillatory modes [84, 85] : where, To estimate RR, i.e. the IF of the respiration component, a time-frequency (TF) representation, e.g. STFT [86] , can be utilized. As a classic TF representation, STFT expression can be given as: where, h is the window function, t indicates time, and ξ indicates frequency. This equation means that a short moving window is applied to the target signal f and the Fourier Transform is applied to each instance of the moving window to estimate the frequency components, resulting in a TF domain spectrogram. Although as a classic TF method STFT has been widely applied, STFT has a relatively low TF resolution because of the uncertainty law [87, 88, 89] . However, for the dynamic RR estimation, we need to have a superior TF resolution to obtain an accurate estimate. To improve the TF resolution, a lot of efforts have been carried out, such as the wavelet synchrosqueezed transform (WSST) [90] . In Section 5.2, we use real CSI data to demonstrate the TF resolution difference between STFT and WSST. The WSST which is a frequency reassignment method based on STFT ( ( ) ( ) , h f V t ξ ) can be defined as [90] : where ( ) Ω ⋅ denotes the frequency reassignment vector. In principle, the respiration component is more periodic in the rest mode than other interference. Thus, the target respiration component will form an energy ridge in the given spectrogram along the time with the slightly various frequency. Therefore, we propose to extract the traces of successive RR component, which concatenates Assuming RR does not fluctuate a lot over a short period, a regularization term, e.g. a cross-entropy based criterion, can be applied to penalize sudden changes in frequencies of interests, in order to improve the temporal smoothness. Then, the optimal respiration component (energy ridge) can be extracted by solving the following problem: where λ is a regularization factor of the penalized energy ( ) C g [55] . where, max and min represent the local extrema, i.e., peaks and troughs of the respiration oscillation. W denotes the analysis window, and Ω is a factor to balance the amplitude variation. If there is no obvious amplitude change, 1 I will be relatively small to indicate a smooth respiration, while sudden amplitude changes will significantly change 1 I . The frequency indicator leverages the gray level co-occurence matrix (GLCM) [91, 92] of the spectrogram. The GLCM entropy characterizes the complexity of the image texture, so we use it to analyze the spectral variations as: where n and b are the number of gray levels and the base of the logarithm function, respectively. ( ) , p i j stands for the probability of two pixels separated by the specified offset having intensities i and j. If there is no obvious frequency variation, 2 I will be relatively small because the spectrogram has a low complexity, vice versa. The frequency modulated continuous wave (FMCW) has been first used to detect human respiration using acoustic signals by measuring the chest movement displacement during breathing [93] . Adib et al. [39] introduced Vital-Radio, a wireless sensing technology that monitors breathing and heart rate. The approach exploits the fact that wireless signals are affected by motion in the environment, including chest movements due to inhaling and exhaling and skin vibrations due to heartbeats. Specifically, it transmits a low-power wireless signal and measures the time it takes for the signal to reflect back to the device. The reflection time depends on the distance of the reflector to the device, and changes as the reflector move. Based on this idea, the approach uses a radar technique called FMCW to separate the reflections arriving from objects into different buckets depending on the distances between these objects and the device. In theory, the procedure in [39] consists on 1) isolate reflection from different users and eliminate reflections that come from furniture or walls using FMCW as a filter; 2) identifying reflections involving RR and heart rate by determining different travel distances from the device and measuring the resulting variations in the phase of the reflected signal. If period variations are obtained, they assume respiration or heart, depending on the frequency; and 3) extracting the RR and heart rate by performing an FFT. The peak at the output of the FFT will correspond to the dominant frequency, which they assume to be the RR. However, the above approach requires specialized and expensive hardware and cannot give precise estimation if the two persons are too close to each other. Later, Arsalan et al. [56] tried to improve the RR and heartbeat estimation with FMCW Radar. To enhance the stability and accuracy of the detected RR and heart rate, the authors used a Kalman filterbased tracking of the heartbeat signal. After providing an initial rough estimation, the applied bandpass filter bandwidth is successively narrowed down, and the filter limits are steadily updated to the current heart rate of the target. Measurement segments with random body movements are automatically identified and consequentially ignored for the Kalman filter update. However, the approach was not directly applied to signals coming from WiFi and complicated apparatus to be used. In general, FMCW-based WiFi approaches require specially design transmission signals, high sounding rate and large antenna arrays, huge transmission bandwidth (over 1.7 GHz), cannot be integrated with a commercial WiFi, and device calibration and specially design hardware required [24] . For those reasons, the FMCW-based approach is not suitable for long-term monitoring and its complicated setup is infeasible for patient supervision. COVID-19 has raised huge challenges to the healthcare system around the world. Countries like China, Italy, and the United States have witnessed that the pandemic overwhelms their hospitals and posts a critical problem to assist thousands of patients at the same time. To reduce the burden on health-care systems, patients with COVID-19 are triaged based on the severity of the disease, so mild and asymptomatic cases are treated at home unless rapid deterioration occurs [94] . Being able to monitor real-time RR remotely using noninvasive sensing can provide more accurate alerts of sudden changes and potentially identify patient deterioration. In this section, we present an overview of the WiFi-based real-time sensing along with tele-health using a Cloud, called Wi-COVID, that can monitor symptoms and warning signs in COVID-19 patients. Wi-COVID will potentially reduce faceto-face contacts and enable better management via early detection. If RR deteriorates, the data sent via a secure Cloud platform can enable healthcare practitioners to perform effective general population triage such as placing patients under self-isolation, transferring patients to hospitals, managing highrisk population even if they do not present symptoms, etc. Wi-COVID framework consists of three layers as shown in Figure 3 . The layers provide abstraction in the recognition process as we can separate the signals from the WiFi devices in the "sensing layer" using a commercial device like Raspberry PI, process and estimate RR from the CSI signals using the proposed method introduced in Section 2.2.3 in the "processing layer" using the Cloud, and provide real-time visualization and alerts using a stream database and powerful visualization (like Grafana tool [13] ) in the "monitor layer". The sensing layer of Wi-COVID framework is composed by a off-the-shelf WiFi device and a Raspberry Pi that acts like a WiFi Access Point (AP). As it is going to be explained in Section 4.1, we utilize BCM43455C0 WiFi chip used in Raspberry Pi 4 for extracting CSI of OFDM-modulated Wi-Fi frames (802.11n) on a per frame basis with up to 80 MHz bandwidth. In Figure 3 , this is called WiFi AP. In general, the WiFi AP signals can be collected using certain API software [15] , such as Nexmon [95] . For the RR extraction of COVID-19 patients, the person has to be in the cover area of the WiFi and in a resting mode (either sleeping on a bed, or setting, or standing without walking). The phase of the data batches is accurate enough to discern the small body movements caused by respiration. If the person is located in the next room with a wall in the middle, we are still able to get the RF signals, and some filters, like Hampel filter [74] , are needed to remove outliers and superfluous information. The information is gathered using a Raspberry Pi 4 on each scenario, which guarantees a cheap way to process WiFi information. Once the information from the CSI is extracted, the device is ready to process the RR extraction. Note that all the methods to extract respiration are done in-situ, which means that the processing is made inside the Raspberry Pi. Once the CSI information has been extracted, the device perform the proposed method explained in Section 2.2.3 to estimate RR. RR is extracted continuously from the information come from CSI and the results are sent to a Cloud for visualization. We use InfluxDB [96] database to save the information. The transmission process is done in secure way by utilizing HTTPS API of InfluxDB. The idea of using InfluxDB allows to store stream data in a simple way and can be visualized with standard tools like Grafana [97] . In this type of setup, the framework allows to collect data from different rooms or houses to the same database, and it allows to visualize multiple users at the same time, which extend the functionality of the system. Because results of the patient RR are stored in the Cloud, the healthcare provider can access patient's information in real-time. Furthermore, we have utilized the Grafana visualization to allow the provider to set up alarms when the RR passes certain thresholds. When Grafana detects an "unusual" respiration value, it triggers an alarm in the dashboard which allows the healthcare provider to visualize the current status of the patient. Moreover, the practitioner can visualize the past data by selecting the date range. Then, the framework allows to visualize both current RR and historical information, which helps the decision making process. Figure 4 demonstrates the monitor layer showing three different patient's RRs obtained by Wi-COVID. In this section, we explain the hardware and software used for the Wi-COVID implementation. In order to make Wi-COVID economically attractive, instead of complicated devices or the use of laptops to capture the signals, we propose the use of a simple Raspberry Pi that will act as an kind of access point. In the software side, we use open-source codes for implementing the CSI processing in the Raspberry Pi. Nexmon firmware patching framework [95] was proposed to enable researchersâ access to lowerlayer frame processing and advanced physical-layer functionalities on Broadcom WiFi chips. It allows users to create firmware modifications for embedded ARM processors using C code. Currently, the framework supports Raspberry Pi implementations. We used Nexmon to extract CSI of OFDMmodulated WiFi frame 802.11n on a per frame basis with up to 80 MHz bandwidth on the Broadcom WiFi chip of the Raspberry Pi. Then, our implementation is simpler than others as we only need a offthe-shelf WiFi router and a Raspberry Pi. Multiple software and packages were used to develop Wi-COVID framework. In this section we mention the different integrated software applications used for the proposed framework. As mentioned, we use the Nexmon framework to read CSI. Each User Datagram Protocol (UDP) packet containing collected CSI has 10.10.10.10 as the source address and is destined to 255.255.255.255 on port 5500. The payload starts with four magic bytes 0x11111111, followed by the six byte source mac address as well as the two byte sequence number of the WiFi frame that triggered the collection of the CSI contained in this packet. The next two bytes contain core and spatial stream number where the lowest three bits indicate the core and the next three bits the spatial stream number, e.g. 0x0019 (0b00011001) means core 0 and spatial stream 3. The chanspec used during extraction can be found in the subsequent two bytes. After two bytes identifying the chip version, the actual CSI data follow. Inside the device (Raspberry Pi), we use the Python code to analyze the Wi-COVID data and estimate RR. The extracted respiration is send to a Cloud database using a HTTPS service. The used database is InfluxDB [96] . InfluxDB is an open-source time series database developed by InfluxData [98] . It is written in GO and optimized for fast, high-availability storage and retrieval of time series data in fields such as operations monitoring, application metrics, Internet of Things (IoT) sensor data, and real-time analytics. Once the RR information is stored in InfluDB, we use Grafana [97] for visualization. Grafana is a multi-platform open source analytics and interactive visualization web application. It provides charts, graphs, and alerts for the web when connected to supported data sources. It is expandable through a plug-in system. End users can create complex monitoring dashboards using interactive query builders. We configure alerts inside Grafana to notify users in real-time when RR is abnormal. The anomaly in this case is defined as bypassing the lower threshold or the upper threshold that would trigger an alert when the counting on the respiration (RR) measurements. The alert helps the healthcare provider to visualize the real-time and historical data of the specific patient. In this section, we present the preliminary results of the Wi-COVID implementation using a WiFi sensing and a Raspberry Pi, which provides an easy installation and a cheap alternative for COVID-19 patients and healthcare practitioners. COVID-19 patients with few, mild or no symptoms are typically instructed to perform self-quarantine at home. According to the CDC self-quarantine protocol [99] , if the COVID-19 diagnosed person is living with other people in the same house, this person needs to be isolated in a separate room. Following this guidance, we setup our experiment in a room with a WiFi sensing and Raspberry Pi as shown in Figure 5 . CSI describes how an RF signal propagate from the TX(s) to the RX(s) and reveals the combined effect of, for instance, scattering, fading, and power decay with distance. With commodity WiFi Network Interface Cards (NICs), a group of 30 sub-carriers measurements can be revealed to upper layer users in the format of CSI. Each CSI depicts the amplitude and phase of a sub-carrier. Figure 6 shows the amplitudes of CFR from three antennas, between 15 s and 30 s. From the CFR amplitudes of Antenna 1, we can clearly see some ripple-like pattern, which we will shown soon corresponds to the movement of chest. Likewise, the breath caused signal ripples can also be observed in the CFR amplitudes of Antennas 2 & 3. In the next subsection, we process the CSI data using the proposed method in Section 2.2.3 to get the RR estimate. Based on the findings shown in Figure 6 , the CFR amplitudes of CSI data are taken as the input for monitoring RR. In this section, we describe how the CSI data are processed for tracking RR step by step. The first step is to remove outliers. In the collected CSI data, there are some abrupt changes of CFR amplitudes that are obviously not caused by the movement of human chests, but the noise interference. Figure 7a shows the CFR from all the 30 sub-carriers of Antenna 3 from Figure 6 . It can be seen that there are some significant abrupt change points of the CFR in some or all sub-carriers, e.g. 21 s, 25 s and 30 s, which are outliers and must be eliminated. We utilize the Hampel identifier [76] on all the 30 sub-carriers. Figure 7b shows the results after all the identified outliers have been removed, indicating that the Hampel identifier performs very well. In order to further smooth the CSI data, we apply a moving average filtering and obtain the filtered results shown in Figure 7c , where the noise has been significantly reduced. After the outlier removal and noise reduction, we apply the bandpass filter to extract the respiration component, as shown in Figure 9 . Now we can observe the respiration oscillations very clearly. However, because of the different spatial placements of the antenna arrays, each channel represents different CSI information propagated from different paths. This is the reason that though they are representing the same information, the CSI channels do not fully overlap on each other in Figure 9 . Therefore, we apply PCA to extract the principal signal component. Figure 9 shows the extracted respiration component, where we can observe the chest movement pattern clearly. To obtain the IF of respiration component, we calculate the STFT and WSST spectrograms, which are shown in Figures 11 and 11 , respectively. It is clear that the WSST representation has a superior TF resolution, which is beneficial for an accurate IF estimation. Using the energy ridge extraction method defined in Eq. (7), we can obtain the dynamic IF of respiration component. Then = × bpm. Need to mention, alternatively, applying the FFT to the extracted respiration component can also generate the spectrum as shown in Figure 13 . However, it is clear that the FFT spectrum has a low resolution and carries much less information than the spectrogram, especially the temporally instantaneous information. To evaluate the shortness of breath indicators, we demonstrate another example in Figure 14 . The participant pretends to have a shortness of breath between 20 s and 22 s. Then, the corresponding bandpass filtering results, respiration component extraction result, and the WSST spectrogram are shown in Figure 15 . Comparing Figures 9 and 15b , we can observe that when there is a shortness of breath, the amplitudes generate noticeable variations. 1 2.75 I = for Figure 9 , while 1 7.2 I = for Figure 15b . Next, comparing Figures 11 and 15c , it is clear that the spectral energy concentrates more in the first example. Quantitatively speaking, 2 0.453 I = for Figure 11 , while 2 2.504 I = for Figure 15b . As we defined in Section 2.2.3, the smaller of the shortness of breath indicators, the smoother of the respiration. Thus, the preliminary results validate our proposed approach. Please notice that these are just preliminary results, and the criteria will be adjusted in the future to better differentiate normal breath and shortness of breath based on a larger dataset with more training data. Note that we adopt signal processing metrics to describe the breath shortness instead of the machine learning or deep learning models because of the lack of training data and labels. In the future, more advanced methods can be developed with more avaible data. Compared with other current approaches, Wi-COVID is the only one that uses simple and inexpensive devices to estimate RR from WiFi signals. Currently, Wi-COVID is the only solution that can alert shortness of breath to help to alert healthcare providers. In Table 1 , we present the desirable features of a framework for monitoring COVID-19 patients in self-quarantine. The characterized features include: • CSI extraction: Using WiFi signals and extracting CSI information are desirable. And it is possible to use off-the-shelf devices for monitoring respiration (breathing). • RR estimation: The approach necessarily needs to measure respiration in order to determine the patient's condition. • Shortness breath alert: The approach needs to generate an alert when alteration on breath occurs during monitoring. These alterations may indicate patient deterioration. • In-situ computing: To make the approach light and save bandwidth during computation, it is required to perform the heavy tasks directly in the pervasive device, for example, the CSI feature extraction and the RR estimation. • Device for AP: The type of device used should be accessible and inexpensive for the final user, in this case, the COVID-19 patient. There are several possible improvements in our system can be made in the future. So far, we have proved that our framework is able to successfully extract RR for COVID-19 analysis. The potential of Wi-COVID for monitoring RR on COVID-19 patients is broad. Our next step is to deploy the framework inside COVID-19 patients' houses to transmit the information directly to the healthcare provider. Also, we are going to work directly with doctors and nurses to identify potential respiratory warnings that can be an indicator of patient deterioration. Also, we plan to incorporate a contactless alert system, which sends emails, text messages, and even GOOGLE HOME or AMAZON ALEXA messages when the shortness of breath symptom appears. In this paper, we present Wi-COVID, a framework to monitor respiratory rates (RR) of COVID-19 patients using a non-invasive, real-time, and at-home technology. The proposed framework uses the available WiFi signal generated by common-used equipment at home to monitor COVID-19 patients. Using the at-home WiFi signals, we propose a non-invasive and non-wearable technology to monitor the patient and communicate RR to the healthcare provider in real-time. We have presented a comprehensive review of the current methods for extracting RR using WiFi signals. Then, we present a new methodology for extracting RRs from CSI using high-resolution spectrogram method. In our methodology, we apply a signal pre-processing of the CSI using an outlier removal and a noise reduction method. Then, the RR estimation is made by applying PCA and a high-resolution timefrequency spectrogram method. Finally, the shortness of breath is estimated with statistics and frequency variation methods. All the estimations are done using a Raspberry Pi board with WiFi capabilities. The results are transmitted in real-time to a Cloud server where we configure a visualization tool that allows the medical practitioner to monitor the patient in real-time and verify current and historical respiration values. We have demonstrated that our current setup can extract the RR under self-quarantine and self-isolation circumstances. This joint work is partially supported by a number of grants of Ubicomp Lab of Marquette University and Health Informatics Lab of Kennesaw State University. Special thanks to Francesco Gringoli and Matthias Schulz from Project Nexmon for providing the open sources resources for the extract CSI using Raspberry Pi 4. Github link: https://github.com/seemoo-lab/nexmon_csi. Also, Jonathan Muller for the open source code on CSI. Github link: jonathanmuller/ESP32-gather-channel-state-information-CSI Author Contributions Writing-Original Draft Preparation, M.V. and F.L.; Writing-Review & Editing COVID-19) Situation Summary, library Catalog: www.cdc.gov Clinical course and risk factors for mortality of adult inpatients with COVID-19 in Wuhan, China: a retrospective cohort study Pulmonary Function Laboratories: Advice Regarding COVID-19, library Catalog: www.thoracic.org WHOOP Investigating Respiratory Rate Pattern and Relationship URL shorturl.at/juwxz Emfit movement sensor in evaluating nocturnal breathing Clinical features of patients infected with 2019 novel coronavirus in wuhan, china Rapid Implementation of Inpatient Telepalliative Medicine Consultations during COVID-19 Pandemic Commissioner, Coronavirus (COVID-19) Update: FDA allows expanded use of devices to monitor patientsâ vital signs remotely, library Catalog: www.fda URL shorturl Motion scale: A body motion monitoring system using bed-mounted wireless load cells Detection and classification of movements in bed using load cells Multi-channel optical sensor-array for measuring ballistocardiograms and respiratory activity in bed Unobtrusive sleep posture detection for elder-care in smart home Real-time Contact-free Monitoring of Sleep Activities and Events around the Bed Tr-breath: Time-reversal breathing rate estimation and detection Free your csi: A channel state information extraction platform for modern wi-fi chipsets From rssi to csi: Indoor localization via channel response Challenges: device-free passive localization for wireless environments See-through walls: Motion tracking using variance-based radio tomography networks Enhance rss-based indoor localization accuracy by leveraging environmental physical features Radio tomographic imaging with wireless networks Qualitative action recognition by wireless radio signals in human-machine systems 2018 IEEE International Conference on Pervasive Computing and Communications (PerCom) Wisture: Rnn-based learning of wireless signals for gesture recognition in unmodified smartphones Indoor events monitoring using channel state information time series Proceedings of the 21st Annual International Conference on Mobile Computing and Networking Wifinger: Leveraging commodity wifi for fine-grained finger gesture recognition Non-invasive detection of moving and stationary human with wifi Your ap knows how you move: fine-grained device motion recognition through wifi E-eyes: device-free location-oriented activity identification using fine-grained wifi signatures Device-free human activity recognition using commercial wifi devices A survey on human behavior recognition using channel state information Witraffic: Low-cost and non-intrusive traffic monitoring system using wifi Wi-fire: Device-free fire detection using wifi networks Wi-wheat: Contact-free wheat moisture detection with commodity wifi 2017 IEEE International Conference on Pervasive Computing and Communications (PerCom) Wi-dog: monitoring school violence with commodity wifi devices Next generation indoor positioning system based on wifi time of flight Breathtrack: Tracking indoor human breath status via commodity wifi Smart homes that monitor breathing and heart rate Capturing the human figure through a wall Radar micro-doppler for long range front-view gait recognition Analysis of radar human gait signatures 11th { USENIX} Symposium on Networked Systems Design and Implementation Multi-person localization via { RF} body reflections A study of wi-fi based system for moving object detection through the wall Reusing 60ghz radios for mobile radar imaging Monitoring breathing via signal strength in wireless networks Breathfinding: A wireless network that monitors and locates breathing in a home Non-invasive respiration rate monitoring using a single cots tx-rx pair Ubibreathe: A ubiquitous non-invasive wifi-based breathing estimator Contactless respiration monitoring via off-the-shelf wifi devices Smars: sleep monitoring via ambient radio signals Multi-person sleeping respiration monitoring with cots wifi devices Vimo: Vital sign monitoring using commodity millimeter wave radio Respiration tracking for people counting and recognition Improved contactless heartbeat estimation in fmcw radar via kalman filter tracking Sensorless sensing in wireless networks: Implementation and measurements An rf-based system for tracking transceiver-free objects Effects of correlated shadowing: Connectivity, localization, and rf tomography Dynamic clustering for tracking multiple transceiver-free objects Compressed rf tomography for wireless sensor networks: Centralized and decentralized approaches Noise reduction for variance-based device-free localization and tracking Through-wall tracking with radio tomography networks using foreground detection Toward a rapidly deployable radio tomographic imaging system for tactical operations Fundamentals of statistical signal processing Individual comparisons by ranking methods Delmar's comprehensive medical assisting: administrative and clinical competencies Avoiding multipath to revive inbuilding wifi localization Phasebeat: Exploiting csi phase data for vital sign monitoring with commodity wifi devices Multiple emitter location and signal parameter estimation Green wireless communications: A timereversal paradigm Performance analysis of root-music Clustering by passing messages between data points The identification of multiple outliers Wavelet filter evaluation for image compression Wi-sleep: Contactless sleep monitoring via wifi signals Wihacs: Leveraging wifi for human activity classification using ofdm subcarriers' correlation Can we monitor breathing during sleep via wi-fi on smartphone? Non-intrusive and non-contact sleep monitoring with seismometer Principal component analysis, Chemometrics and intelligent laboratory systems The application of robust principal component analysis for weak seismic signal enhancement Fine-grained writing recognition using wi-fi signals Seismic signal denoising using thresholded variational mode decomposition Non-harmonic analysis based instantaneous heart rate estimation from photoplethysmography Xmodal-id: Using wifi for through-wall person identification from candidate video footage Seismic spectral decomposition using deconvolutive short-time fourier transform spectrogram High-resolution characterization of geologic structures using the synchrosqueezing transform Seismic geologic structure characterization using a high-order spectrum-coherence attribute Synchrosqueezed wave packet transforms and diffeomorphism based spectral analysis for 1d general mode decompositions Semisupervised multiattribute seismic facies analysis Network phenotyping for network traffic classification and anomaly detection Proceedings of the 13th annual international conference on mobile systems, applications, and services Home care for patients with COVID-19 presenting with mild symptoms and management of their contacts, library Catalog: www.who.int. URL shorturl Nexmon: Build your own wi-fi testbeds with low-level mac and phy-access using firmware patches on off-the-shelf mobile devices Workshop on Wireless Network Testbeds Time series databases and influxdb Implementation of atlas distributed computing monitoring dashboards using influxdb and grafana InfluxDB Open Source Time Series Database | InfluxDB, library Catalog: www.influxdata COVID-19), library Catalog: www.cdc.gov Chest wall motion during tidal breathing Surface chest motion decomposition for cardiovascular monitoring Human respiration detection with commodity wifi devices: do user location and body orientation matter? 2. We explore the possibility of using the WiFi-based technology to monitor diagnosed COVID-19 patients who are performing self-isolation in real-time.3. We present preliminary results of the effectiveness of using WiFi-based information to extract RR and transmit the information to healthcare providers. 4 . We propose an end-to-end free infrastructure framework (Wi-COVID) for healthcare monitoring during pandemics as it is built upon the existing WiFi networks available indoor.The remainder of this paper is organized as follows. First, we discuss different approaches for WiFi monitoring in Section 2. Then, we introduce the proposed Wi-COVID framework in Section 3. The design of the WiFi-based system is represented in Section 4. We demonstrate preliminary results in Section 5.2. In Section 6, we describe the potential future directions. Finally, we draw our conclusions in Section 7. The authors declare no conflict of interest.A. CSI Basics CSI is a metric that describes the channel properties of wireless communication links and the quality of the wireless channel. In the frequency domain, the CSI matrix can be defined as:where H is the channel matrix; the received and transmitted signal vectors are Y and X, respectively; N refers to an additive white Gaussian noise.During respiration, the chest movement can induce Δd displacement of the human body, which can vary from 2 mm to 14 mm [100, 101] . While breathing, apart from the signals of dynamic paths reflected by the human body, there are also static paths of signals, including the direct signals and those reflected by the stationary objects. Thus, the overall received signals is a combination of the ☒ The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.☐The authors declare the following financial interests/personal relationships which may be considered as potential competing interests:J o u r n a l P r e -p r o o f