Full text
Received July 29, 2021, accepted August 7, 2021, date of publication August 18, 2021, date of current version September 3, 2021. Digital Object Identifier 10.1109/ACCESS.2021.3106255 COVID-19 Diagnosis at Early Stage Based on Smartwatches and Machine Learning Techniques JUSTYNA SKIBINSKA 1,2, RADIM BURGET1, ASMA CHANNA 3,4, (Graduate Student Member, IEEE), NIRVANA POPESCU 3, AND YEVGENI KOUCHERYAVY 2 1FEEC, Brno University of Technology, 61600 Brno, Czech Republic 2Unit of Electrical Engineering, Tampere University, 33100 Tampere, Finland 3Computer Science Department, University POLITEHNICA of Bucharest, 060042 Bucharest, Romania 4DIIES Department, University Mediterranea of Reggio Calabria, 89124 Reggio Calabria, Italy Corresponding author: Justyna Skibinska ([email protected].cz) This work was supported in part by the European Union’s Horizon 2020 Research and Innovation Program under Marie Skłodowska Curie Grant 813278 (A-WEAR: A network for dynamic wearable applications with privacy constraints, http://www.a-wear.eu), and in part by the Project ‘‘Early COVID-19 Infection Detection System for the Safety of Vulnerable Groups Using Artificial Intelligence,’’ Ministry of the Interior, Czech Republic, under Grant VI04000039. ABSTRACT Early detection of COVID-19 positive people are now extremely needed and considered to be one of the most effective ways how to limit spreading the infection. Commonly used screening methods are reverse transcription polymerase chain reaction (RT-PCR) or antigen tests, which need to be periodically repeated. This paper proposes a methodology for detecting the disease in non-invasive way using wearable devices and for the analysis of bio-markers using artificial intelligence. This paper have reused a publicly available dataset containing COVID-19, influenza, and Healthy control data. In total 27 COVID-19 positive and 27 healthy control were pre-selected for the experiment, and several feature extraction methods were applied to the data. This paper have experimented with several machine learning methods, such as XGBoost, k-nearest neighbour k-NN, support vector machine, logistic regression, decision tree, and random forest, and statistically evaluated their perfomance using various metrics, including accuracy, sensitivity and specificity. The proposed experiment reached 78 % accuracy using the k-NN algorithm which is significantly higher than reported for state-of-the-art methods. For the cohort containing influenza, the accuracy was 73 % for k-NN. Additionally, we identified the most relevant features that could indicate the changes between the healthy and infected state. The proposed methodology can complement the existing RT-PCR or antigen screening tests, and it can help to limit the spreading of the viral diseases, not only COVID-19, in the non-invasive way. INDEX TERMS Artificial intelligence, COVID, signal processing. I. INTRODUCTION The deadly coronavirus SARS CoV-2 belongs to the family of coronaviridae, which has two subfamilies: Coronavirid and Toroviridae. Those coronaviruses are known to be infectious to for example, birds, and mammals including humans [1]. The course of the disease varies significantly. It starts with completely asymptomatic courses to mild, moderate, or severe courses, which in many cases end in death. The spectrum of the symptoms of Coronavirus is broad and includes fever, cough, shortness of breath, hoarse voice, abdominal pain, or chest pain [2], and infected The associate editor coordinating the review of this manuscript and approving it for publication was Derek Abbott . individuals may experience a rare loss of taste and smell [3]. The disease may end with long-term complications such as inter alia respiratory, neurological, cardiovascular problems, and many other potential issues that have yet to be fully described [4]–[6]. Some similarities in the development of the COVID-19 pandemic and epidemics of severe acute respiratory syndrome (SARS) and Middle East respiratory syndrome (MERS) have been observed [7]. The average incubation period of COVID-19 currently ranges from 2 to 11 days [8]. The major disease transmission of the virus occurs through social contact, particularly through face-to-face exposure, coughing, sneezing, or during talking, [9]. The combination of the high reproduction number of the disease, high portion of asymptotic or 119476 This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/ VOLUME 9, 2021
J. Skibinska et al.: COVID-19 Diagnosis at Early Stage mild-symptom cases in the population, long prodromal stage, during which the patient is infectious but with no visible symptoms and infection fatality rate 1.04 % [10] has led to 108 million cases and 2.4 million deaths worldwide by 02/2021 [11]. According to the Johns Hopkins University, more than 2 million deaths occurred in the world since the outbreak of this pandemic [11]. The most accurate diagnostics for the disease are imaging technologies, which can achieve an accuracy of nearly 100 % [12]. The most popular diagnostic method (among others) is the reverse transcriptionpolymerase chain reaction (RT-PCR) [1]. PCR-tests showed a sensitivity of 77,7 % and specificity of 98,8 % [13]. Pharyngeal RT-PCR tests showed the sensitivity of 78.2 % and specificity of 98.8 %. Although these methods are relatively accurate, they are often used after the onset of the disease for confirmation. Unfortunately, the disease was proven to be the most communicable 2 days before and 1 day after the onset of the disease symptoms [14]. In [15], the authors presented the disease stages of COVID-19. They distinguished between the early stage of infection (stage I), the pulmonary phase (stage II), and the hyper-inflammation phase (stage III). The detection of the disease in the prodromal stage would have the most significant impact, since it reflects the phase in which the person is infectious but, she/he feels healthy, which leads to social contacts and spreading of the disease to other people [14]. The authors indicated that symptoms in this phase, included dry cough, fever, and mild constitutional symptoms. The detection of the virus in this stage minimise contagiousness, preventing the development of further complications and reducing the duration of the disease [15]. The risk factors for this disease are old age, civilization diseases, and renal and hepatic dysfunctions [8]. Vaccination is currently considered one of the most promising ways to fight the disease. Until this, the most effective methods to prevent the infections are mask wearing, social distancing, keeping hygienic practices, handwashing, applying quarantine, and disinfection. These methods are considered the most effective for fighting this mortal disease [7], [16]. Detection of the disease two days before the onset of the disease is very important. During those (on average) two days, a person is not aware of the infection which causes communication of the disease at the workplace, to family members, and to other possible social contacts. Unfortunately, such early detection is not an easy task since the disease symptoms are difficult to be recognized. The common availability of wearables in the population makes them an ideal intelligent screening tool. These devices allow continuous monitoring of various physiological parameters, such as heart rate (HR), heart rate variability (HRV), resting heart rate (RHR), respiration rate (RR), skin temperature, and oxygen saturation (SpO2) [17]. This paper provides a comprehensive overview of recent progress in the area of wearable technologies for e-health and COVID-19 use cases. It also introduces a novel methodology based on artificial intelligence, with wearable sensor signal analyses, and proves that these devices can be used for early detection with interesting accuracy. For the statistical evaluation, 27 samples of COVID-positive cases and 27 healthy control cases were used. The paper also includes the results of the univariate tests conducted to identify the feature of importance. We tested a few classifiers in real time allowing us to identify those that would achieve the highest prediction. A significant advantage of this work is that it takes into consideration the important parameters related to the disease, that is, the incubation period and the highest contagiousness period thus ensuring, the reduction of disease contagiousness as much as possible. •Creation of the methodology which is able to detect COVID-19 disease in the early stage •The usage of wearable devices and machine learning allows created solution serve as potential screening test •The consideration of the parameter such as incubation period and the highest contagiousness interval should reduce the most efficiently the number of new infected people •Identification what kind of the features are indicators of being contagiousness in the early stage of the COVID-19 disease •Extension of the original work into classification problem, with success of 78 % accuracy for k-NN The rest of this paper is structured as follows. Section II describes related works. Section III - introduces the experiment, described the data, the methodology of feature extraction, metrics used for evaluation - based support system methodologies, and machine learning and statistical evaluation methodologies. Section IV presents the results and describes the research outcomes of this work. The discussion, which explains how to understand the results, is described in Section VII. The paper is concluded in Section VII. II. RELATED WORKS The coronavirus was announced by the WHO relatively recently, on 29 December 2019. Thus, resources amount the virus are still scant, and the behavior of this virus under various circumstances is still waiting exploration. Wearable sensors have seen significant improvements in their quality, accuracy, and reliability. Due to their broad availability in the population, they have opened new possibilities for their utilization. Early detection of COVID-19 can significantly decrease the reproduction number and prevent spreading the infection to other people. Unfortunately, this very challenging, since, no visible symptoms are observed within approximately two days before onset the disease. The most characteristic symptoms of COVID-19 after onset are currently considered a fever, fatigue, and dry cough [16]. Other symptoms, are nasal congestion, pains, VOLUME 9, 2021 119477
J. Skibinska et al.: COVID-19 Diagnosis at Early Stage aches, colds, dyspnoea, diarrhoea, sore throat, unusual loss of smell and taste, headaches, and sometimes also trembling. Unfortunately, these symptoms, especially visible ones, are useless for early detection. However, even slight changes in related physiological signals can be identified as for detection markers. In [18], changes in several other biomarkers during COVID-19 were examined. For the evaluation - a wearable ring (in particular, Ourora) was used. The device measured inter alia the heart rate, heart rate variability, respiratory rate, and temperature. An interesting finding was that 38 out of 50 participants developed temperature anomalies, that were measurable before other symptoms. The temperature proved to be statistically more significant than other metrics. Some reports have proven a strong correlation between fever and cardiac rhythm [19]. Increase in HR has been reported as 8.5 beats per minute on average per 1 ◦C. This correlation is measurable especially during resting heart rate (RHR). A possible reason for this could be that the sensors of wearables are more accurate at resting time. This change was observed not just during the development of COVID-19 but also during the development of other influenza diseases. Unfortunately, other factors also have an impact on the increase in RHR, including short sleep. In December 2020, a study was published [20] that confirmed that these correlations could also be valid for COVID-19. The authors tried to detect the disease in the presymptomatic stage using the smartwatches that are available on the market (only those gathered by Fitbit were selected). The data were collected on a per-minute basis. Anomaly detection was still relatively low (63 %) for COVID-19 cases. The results were validated on a database containing 114 samples, that were available online. The features were based on heart rate and the number of steps. A few studies have also a tempted to detect infection from sleep activity patterns measured by wearable devices. The data for the experiment were collected from approximately 5300 subjects using smartwatches such as Fitbit, Apple Watch, or Garmica. Thirty-two of the participants were diagnosed with COVID-19. In 63 % of COVID-19 cases, some anomalies were found in the records, which was significantly more frequent than in the rest of the data. The authors proposed two approaches: the abnormal resting heart rate (RHR-Diff) - based approach and the heart rate- to-steps (HROS-AD algorithms) - based approaches. The RHR-Diff approach was based on standardized residuals and a 28-day sliding window. The second approach used, the HROS was computed by dividing the heart rate by the number of steps. One-hour intervals were compared using Gaussian density estimation (HROS-AD algorithm). The CuSum method was an online version based on the cumulative statistics. For this algorithm, a 28 day time-frame was adopted and the deviations of the elevated residual RHRs were evaluated. Unfortunately, the specificity of the methods was not provided, which is very important for this kind of study. The above-described works focused on wearables at the person-level. Some studies have been built on these works, extending them to the analysis of the development of the pandemic trend, the so-called crowd-level analysis. One such work is presented in [19]. The authors proposed a simple system for alerting physiological anomaly detection based on variance in sleep patterns and RHR computed from photoplethysmography (PPG) wearable data. The records of 1.3 million users were collected from Huami devices. The deviation from the mean and average values was taken into consideration for the analysis. Although, this system was not good enough for a common disease detection, a methodology for the pandemic was developed using this system. For this reason, CDNet architecture was used, which is a heterogeneous neural network regression model. CDNet consists of two neural networks: CatNN and DenNN. It contains sparse categorical features (holiday activity, season, and weather) and dense numerical features (historical physiological anomaly rate, historical officially reported COVID-19 rate, and active user density). The simulation was performed for North China, Central China, South China, and South-Central Europe. The detected physiological anomaly rate was compared with COVID-19 infection rate using Pearson’s correlation. The highest correlation among the set of Chinese cities was observed for Foshan as 0.81. Average value among all cities was 0.68. Nevertheless, the capability to predict such disease shows some limits, in particular there is suspicion that to local events change people’s common rhythm, and there were problems regarding individual variability. In another work, the researchers analysed the influence of respiration rate together with oxygen saturation (SpO2) gathered from wearable smartwatches on COVID-19 [21]. The statistical analysis was evaluated with chi-square distribution and independent t-test based measures on pre-selected 208 cases. The authors demonstrated that there were no significant differences between gender and IoT factors based on chi-square distribution. In [22], the methodology was based on the wearable device (Empatica E4) and on neural networks. The device allows analysis of a broader spectrum of signals, for example the galvanic skin response (GSR), the inter-beat interval (IBI), skin temperature, pulse oximeter, and blood pressure. A questionnaire with information about the occurrence of symptoms was also included to obtain. Parameters such as age, gender, weight, height, habits, and addiction to smoking and drinking. All data were used during the NN training [22]. The cohort included 87 subjects: 30 were HC, 27 asymptomatic COVID-19 cases and 30 symptomatic cases. The data were divided into 15 s windows. However, the details of the procedure are not provided in the article. The CovidDeep - a four-layer neural network, was introduced and used for the detection of COVID-19 cases. The architecture consists of data pre-processing, synthetic data generation with the TUTOR framework, architecture pre-training, grow- and-prune synthesis with a decision tree (DT) and random 119478 VOLUME 9, 2021
J. Skibinska et al.: COVID-19 Diagnosis at Early Stage forest. This combination of data contains some hardly collectible data in reality. Common smartwatches do not provide as many spectra of data as Empatica offers, and, the number of its users is significantly lower than, that of Fitbit or Apple Watch [22]. In another study, symptoms such as respiration rate detected by wearables were analysed [23]. The cohort of 271 (81 positive cases and 190 negative cases) was evaluated with the WHOOP strap algorithm. Here, the median value of respiration per minute was collected during night which was regarded as the respiration rate. A total of 20 % of COVID-19 subjects were recognised 2 days before the clear onset of the disease, while 80 % of COVID- 19 subjects were unfortunately detected 3 days after the onset. These results were achieved with the use of a gradient boosting classifier. The outcome of 80 % is a relatively high number; however, the most important in screening tests, are early symptoms - during the prodromal stage [23]. The variance in respiration rate was examined together with heart rate and heart rate variability in [24] using Fitbit. The methodology used achieved 0.77 ±0.03 area under the curve (AUC) trained on NN. Nonetheless, the sensitivity was 47 % and specificity 95 %. The number of positive participants was 1181, and 13662 were negative. The following parameters were extracted: Shannon entropy of the nocturnal RR series, the mean nocturnal heart rate during non-Rapid Eye Movement (NREM) sleep, and the estimated mean respiration rate during deep sleep. During pre-processing, the physiological signals were normalised using z-score. A combination of parameters, including age, gender, and BMI, were fed into the convolutional neural network. It was found that the heart rate in combination with respiration rate increased during the illness, and the heart rate variability decreased. An interesting work [25] studied differences between cases: the outbreak of the pandemic (6270), the actual COVID-19 cases (230), and influenza non-COVID-19 cases (426) by using smartwatches. The authors found a higher intensity and variety in symptoms in COVID-19 cases compared to normal influenza. A few symptoms, as chest pain, anosmia, and shortness of breath, were commonly observed in COVID-19 cases, of course, these are not early markers of the disease. Based on the wearables’ analyses, a reduction in the number of daily steps for a longer period was treated as the symptom of ‘‘long COVID’’. Hence, the wearables could serve as devices for monitoring recovery after COVID-19. Moreover, [26] some broader view of the usage of artificial intelligence (AI) and internet of things for creating the support system methodology in hospitals. The combination of these techniques could be useful in disease diagnosis, treatment, and management. During the COVID-19 pandemic, it will found application, for example, in data storing of PCR and tests, from imaging technologies. In this work, the authors used the machine learning algorithms, such as Random Forest (RF), Naive Bayes (NB), and Support Vector Machine (SVM). The dataset was reused and gathered under laboratory conditions in 2020 [27]. The data contained a record of 600 patients. Among these, 80 were diagnosed positively with COVID-19. The number of features was 18, and they included blood parameters. In this work, the authors achieved the best results for SVM: 95 % accuracy, 94 % F1, 95 % of precision, 95 % recall, and 95 % for the Area Under Curve. As the pre-processing step, normalisation and feature selection were used. Nevertheless, there is no mention of the stage of the disease at which the data were gathered. To date, mainly smartwatches and smart masks [28] have been used for the early detection of COVID-19. Moreover, some new solutions for measuring physiological parameters have recently been introduced, which are described below. The characteristics of the ear-related area have allowed researchers to create a photoplethysmography-based device for measuring oxygen saturation in-ear SpO2 [29]. It is as effective as finger pulse oximetry, with an even faster average response. This device is suitable for monitoring COVID-19 and post-COVID-19 cases such as the possible occurring of hypoxemia related to breathlessness declination [29]. Furthermore, the usage of a headset wearable device allowed coughing to be monitored, which, however is not a suitable symptom for early detection [30]. The Biovitals Sentinel platform is an academic project, that uses armband biosensors (Everion) to detect COVID-19. The monitored parameters are skin temperature, respiratory rate, blood pressure, pulse rate, blood oxygen saturation, and statistics regarding daily activities [31]. The introduced platform could serve as a source of data for potential support system methodologies. In [32], the authors used a skin sensor that was equipped with an accelerometer and a temperature sensor, and can be placed on the throat. A remarkable advantage of this solution was that it could wirelessly register cough frequency, intensity, and duration, as well as the respiratory rate. The study also included heart rate measurements. This solution contributed to a continuous physiological monitoring system and to the data analytical part. Again, this system cannot be used to warn against infection in the early stages. Upon the onset of coughing, the person already knows about the infection and can change the behaviour to protect others. In summary, there are currently several approaches that use wearables to detect COVID-19 and there is a big promise of that this technology can offer accurate early disease detection and screening to a broader population in an easy and noninvasive way. A methodology, based on a medical device - Empatica, that used advanced sensors was introduced. Unfortunately, this device is relatively expensive and is not widespread among the population. Finding a methodology based on cheaper and commercially successful smartwatches, such as Fitbit or Apple Watch, could have a significantly higher impact. Several previous works suggest that the heart rate and activity can indicate the development of COVID-19 and flu in general in their early stage. It is noteworthy that the use of wearables for telemonitoring has both advantages and drawbacks. On the VOLUME 9, 2021 119479
J. Skibinska et al.: COVID-19 Diagnosis at Early Stage TABLE 1. The summary of the state-of-the-art. 119480 VOLUME 9, 2021
J. Skibinska et al.: COVID-19 Diagnosis at Early Stage FIGURE 1. Scheme of the experiment. one hand, they can present economic solutions for screening tests and continuous objective monitoring and they are easily accessible. On the other hand, they are not accurate as imaging technologies (X-ray or CT) or PCR testing technologies [33]. III. EXPERIMENT The main objective of this research was to develop a methodology for the detection of COVID-19 in its early stages using wearable electronic devices. Notably, we developed s that considered the character of the development of the disease, that is, the incubation period and contagiousness of the disease. Moreover, the use of the most commonly gathered signals (heart rate and number of steps) by smartwatches allows us to potentially apply this solution as a broad screening test. The research follows up mainly on paper [20] where regular fitness smartwatches were used for collecting data from 4642 volunteers in total. Of these, 114 of them were later diagnosed as COVID-19 positive. This experiment used the data from this paper [20]. In [20], the experiment consisted of three steps: (a) signal pre-processing of the data, (b) machine learning, and (c) statistical evaluation of the accuracy. The detailed scheme of the experiment is presented in Fig. 1. First, the ratio of the heart rate to the number of steps was computed. This was used as a pre-processing step to obtain a more informative feature. The experiment was designed for two scenarios: classification between COVID-19 and healthy controls (HC), and classification between COVID-19, HC, and influenza. Next, the feature extraction was carried out for two-time windows, and then the difference between them was computed. We applied the minimum redundancy maximum relevance (mRMR) based on the feature preselection. The number of features was set to 50 to select the most valuable of them and to facilitate the classifier’s learning process. The next step was the classification with XGBoost, k-NN, SVM, logistic regression, decision tree, and random forest. The results were evaluated using metrics. The data consisted of records of the number of steps and heart rate. These values were measured every minute. To partially suppress the effect of the person’s activities, the heart rate value was first divided by the number of steps, and these normalised values were used for further processing. The experiment was designed to compare values measured from sensors of COVID-19 positive persons and distinguish these values from healthy controllers. Based on previous works, there is an assumption that the infected human body has a different response in terms of heart rate in the prodromal stage of the diseases, even few days before the onset of the disease [18], [20], [24]. The highest changes in the elevated resting heart rate (RHR) are registered two days before the onset of the disease [25]. Some studies have also confirmed that, especially in the resting time, heart rate is slightly higher than in the case of a healthy person. Unfortunately, biological systems are not fully deterministic, and in particular the heart rate does not responding equally to the same activity or situation. For this reason, the data were averaged for a one minute period. Further, different persons have different responses of the body - for example, based on their fitness, age and weight, etc. Thus, we did compare absolute values between all persons, rather, we compared changes in each person during the healthy state and near the onset of the disease. VOLUME 9, 2021 119481
J. Skibinska et al.: COVID-19 Diagnosis at Early Stage To construct a system that compares changes in the body responses of each person, we defined two time frames in the collected data. The detailed procedure of this step can be found in Subsection III-B. Next, the set of features was extracted for each window. Subsequently, the difference was calculated for the set of features extracted between the later and previous window. Unfortunately, there is still a lack of data in this domain. Hence, we preferred to obtain insight into the data and use statistics to understand the features. The features used for the experiment were first pre-selected to suppress possible over-fitting. The method used for the selection of the features was the minimum redundancy maximum relevance (mRMR). The number of features was 50. To evaluate the resulting accuracy, we used the classification of COVID-19 positive or COVID-19 negative classes. For statistical evaluation, 10-fold Stratified Cross-Validation was used. We also included Standardization. For evaluation of the model, we compared results using different machine learning algorithms including XGBoost, k-Nearest Neighbour (k-NN), Support Vector Machines (SVM), Logistic Regression (LR), Decision Tree (DT), and Random Forest (RF). For further statistical evaluation, the Mann-Whitney U test was used. This method allows for checking whether is a statistical difference in the distribution of the analyzing groups. To minimize the number of type I errors, the false discovery rate (FDR) was calculated. A. TRAINING DATA The data used for this research cames originally from [20]. For the study, the data were gathered using the wearable devices and the application MyPHD app. The wearables used included Fitbit, Apple Watch, Garmin Watch, Oura Ring, BioStrap, Masimo Pulse Oximeter, Empatica, Motiv Ring, and others. Data regarding steps, heart rate, and partly sleep records were analysed. The data reused in this paper were the records of steps per minute and heart rate per second, while, the sleep data were omitted cause of their limited numbers. In this study, 5262 participants were enrolled. Among these, 114 participants were diagnosed with COVID-19. To balance the data, 34 HC and 27 COVID-19 cases, including 7 influenza cases, were utilized. B. FEATURE EXTRACTION The data gathered from wearable devices measure physiological data which are continuous time-series records. Although deep learning has shown great results in end-to-end learning, we have a relatively limited amount of training data. Thus, we manually extracted features characterising timeseries signals [34]. The inspiration for the feature extraction of physiological signal features was taken from [34]–[36], and [37]. These covered the most frequently used features for physiological signals. The number of measured samples was still quite limited. These samples were records of a relatively long period, so we decided to use hand-crafted features for the feature extraction. To be sure about this decision, we evaluated also NNs, such as long-short term memory and 1-D convolution neural network. Nevertheless, as shown later, there were no observable significant results. Three types of features were extracted: (a) temporal, (b) statistical, and (c) in the spectral domain. For the temporal domain, auto-correlation, centroid, mean absolute differences, mean differences, median absolute differences, median differences, distance, the sum of absolute differences, total energy, entropy, peak-to-peak distance, the area under the curve, absolute energy, maximum peaks, minimum peaks, slope, and zero-crossing rate were taken into account. Subsequently, from the statistical domain, the following features were extracted: histogram, inter-quartile range, mean absolute deviation, median absolute deviation, root mean square, standard deviation, variance, empirical cumulative distribution function (ECDF) percentile count, ECDF slope, kurtosis, skewness, maximum, minimum, mean, median, ECDF, and ECDF Percentile. The spectral domain represents features such as - fast Fourier transform (FFT) mean coefficient, wavelet absolute mean, wavelet standard deviation, wavelet variance, spectral distance, fundamental frequency, maximum frequency, median frequency, spectral maximum peaks, maximum power spectrum, spectral centroid, decrease, kurtosis, skewness, spread, slope, variation, spectral rolloff, roll-on, human range entropy, Mel-frequency cepstral coefficients (MFCC), linear prediction cepstral coefficients (LPCC), power bandwidth, spectral entropy, wavelet entropy, and wavelet energy. The feature extraction was performed thanks using the Python package: tsfel [38]. By adding a few temporal features, the work builds on packages such as FATS, CESIUM, TSFRESH, and HCTSA. A scheme for - feature extraction is presented in Fig. 2. For extracting the healthy control samples from the HC cohort, the set of features was computed for two windows (phearlier and pclater window). The fixed-sized of the windows was set, and we specified the spacing between them. In the next step, the difference between a set of features for the aforementioned windows was calculated. Where: •The vector of features extracted from the earlier healthy state is expressed as fHC1 •The vector of features extracted from the later healthy state is expressed as fHC2 •The final vector for HC is expressed as: f=fHC2-fHC1 •The end of earlier healthy state window is expressed as tHC1 •The beginning of later healthy state window is expressed as tHC2 •The Spacing between windows is expressed as: Spacing =tHC2 - tHC1 The scheme of the feature extraction for HC is presented in Fig. 2. However, to extracting COVID-19 cases, a similar procedure was carried out. Otherness was represented by taking into consideration the onset of the disease. The shift in the computation of the windows was defined as the ability to detect the disease in the prodromal stage. This is because the 119482 VOLUME 9, 2021
J. Skibinska et al.: COVID-19 Diagnosis at Early Stage FIGURE 2. Scheme of feature extraction for HC and COVID-19 cases. highest peak of contagiousness of this disease is registered two days before the onset of the disease. The next steps were the same as in the case of HC sample extraction. The scheme of the described steps is shown in Fig. 2. Where: •The vector of features extracted from the healthy state is expressed as fH •The vector of features extracted from COVID early state is expressed as fC •The final vector for COVID-19 case is expressed as: f =fC−fH •The end of earlier healthy state window is expressed as tH •The beginning of COVID-19 window is expressed as tC •The beginning of the onset of symptoms is expressed as t0 •The diagnosis of COVID-19 is expressed as tD •The Onset is expressed as: Onset =tC+pC •The Spacing between windows is expressed as: Spacing =tC−tH C. EVALUATION To evaluate the quality of the algorithms several metrics were used: accuracy, sensitivity, specificity, and the Matthews correlation coefficient. From a clinical perspective, sensitivity, and specificity are only as important as the accuracy [39]. Sensitivity is defined as the ratio of positive cases regarded by the algorithm as positive cases to the whole set of real positive cases. Specificity is the ratio of negative cases classified as negative to the whole set of real negative cases [40]. The Matthews correlation coefficient is mostly dedicated to imbalanced datasets. The equations for the metrics are presented below: Accuracy: Accuracy =TP +TN TP +TN +FP +FN (1) Sensitivity: Sensitivity =TP TP +FN (2) Specificity: Specificity =TN TN +FP (3) The Matthews correlation coefficient (MCC): MCC =TP ∗TN −FP ∗FN √(TP +FP)(TP +FN)(TN +FP)(TN +FN) D. MACHINE LEARNING AND STATISTICAL EVALUATION To identify the most informative features that could distinguish the disease, a univariate test was performed. In this case, a non-parametric Mann-Whitey U-test was used. For this purpose, we selected features, that were significantly different from each other. For the use of this test, it is not necessary to assume that the values are normally distributed. It is suitable for small datasets. One of the obstacles of the Mann-Whitney U-test is that it is endangered by error-type-I [41]. For this reason, the Benjamini-Hochberg procedure was used to controll the false discovery rate (FDR) [42]. However, FDR is a strong criterion for a small cohort, dedicated to multiple hypothesis testing. 1) MACHINE LEARNING ALGORITHMS In this work, a few supervised machine learning algorithms were used. These were: SVM [43], logistic regression [43], k-NN [43], decision tree [43], random forest [43], and XGBoost [43]. The advantage of SVM is that it is generally robust to over-fitting [44] and has a relatively good generalization capability [45]. The principle of its operation is based on non-linearly transformed training data into a higher dimension. The decision boundary is chosen by the algorithm that converges to the best separating hyper-plane. VOLUME 9, 2021 119483
J. Skibinska et al.: COVID-19 Diagnosis at Early Stage The hyper-plane is found by support vectors and determined by them, the so-called margins. The SVM tries to find the maximal marginal hyper-plane (MMH), which allows the correct classification of unseen data classification, correctly. The SVM works is based-on neural networks [44], [46]. The k-Nearest Neighbor classifier belongs to lazy and nonparametric classifiers. Kis the number of the neighbours, and the test datasets are compared with the training dataset. This classifier could be vulnerable to over-fitting because of existing noise. Including match weighting, the attributes can solve this problem by considering a change in distance metrics [44] to calculate the distances between the sample and the neighbours. One of the simplest supervised machine learning algorithms is logistic regression (LR), which is a classification algorithm. The output is interpreted as a probability [45]. Despite the non-complicated principle of working, it could achieve good results [46]. However, it could suffer from multicollinearity [45]. A decision trees, Random Forest, and XGBoost are a group of tree classifiers [44]. There are a few types of decision trees. The most commonly used are C4.5, ID3, and CART. In this study, CART was applied for the classification purposes [47]. CART is a non-parametric algorithm. Prominent advantages of CART are its ability to deal with missing values and use pruning (post pruning). The decision-making indicator uses the Gini diversity index [48]. Decision trees can deal with linearly inseparable data. The disadvantage of this algorithm is that it is difficult to manage high dimensional data, and is vulnerable to overfitting [45]. Random forest is an extended version of the decision tree. This algorithm trains many decision trees and defines classes based-on voting. The main advantage is that it is robust to noise and does not overfit. Hence, it can be regarded as a fast methodology. However, it slows down with an increase in the number of trees [45]. XGBoost belongs to the tree gradient boosting system. This algorithm can achieve state-of-the-art results for structured data. This algorithm characterises faster computing and also uses regularization techniques - XGBoost also uses shrinkage methodology and feature (column) sub-sampling to protect against overfitting. The algorithm parameters were optimised using a grid search. For XGBoost, we optimized the following parameters: subsample ratio of the training instances, control the balance of positive and negative weights, minimum sum of instance weight (hessian) needed in a child, maximum depth of a tree, step size shrinkage used in the update to prevent overfitting, gamma minimum loss reduction required to make a further partition on a leaf node of the tree, set of parameters for subsampling of columns, and subsample ratio of columns for each level. For k-NN, the parameters that were optimised were the: number of neighbours, type of metric used for the evaluation, and weight function used in prediction. TABLE 2. The scenario of carried out experiments. SVM was evaluated using several values: C, regularization parameter, the degree of the polynomial kernel function, if chosen and gamma kernel coefficient for radial basis function, sigmoid, and polynomial. The kernel types used in the algorithm were: linear, polynomial, radial basis function, sigmoid, and precomputed. The logistic regression was optimised by the parameters: C - the inverse of regularization strength, penalty normally used in the penalisation, and solver - a type of algorithm which is using in the optimization problem. Whereas, the parameters which were used for optimising the Decision Tree was: the minimum number of samples necessary to split an internal node, the minimum number of samples necessary at a leaf node, the number of features taken into consideration for the best split, the maximum depth of the tree, types of weights during balancing the data. The parameters that were used for the random forest were as follows: the number of trees in the forest, the minimum number of samples necessary to split an internal node, the minimum number of samples required to be at a leaf node, the number of features taken into consideration for the best split, the maximum depth of the tree, and types of weights during balancing the data. IV. RESULTS The machine learning algorithms were trained for two cases: A) for cohort containing COVID-19 cases and HC, and B) for cohort containing COVID-19 cases +Influenza and HC. The size of the spacing between windows was fixed to 7 days, and the SHIFT was equal 2 days (please, check the designation in Fig. 2). The summary of the parameters used for experiments is presented in Table 2. Based on the statistical evaluation of the extracted features, we conducted the Mann–Whitney U-test with FDR correction. The results for the two scenarios with Fig. 25-day windows are shown in Table 3and Table 4. The distinction between those two groups is provided in the view of checking samples from two different distributions that is with pr without Influenza cases. The features distributions containing only people having COVID-19 versus HC should be different from the distribution of the features containing COVID-19 cases and influenza cases versus HC. The same dependency was compared. The number of extracted features was 381 and their descriptions can be found in [49]. The features, which passed the Mann-Whitney U test for the cohort containing 27 people suffering from COVID-19 disease and 27 HC are the following: sets of MFCC, 119484 VOLUME 9, 2021
J. Skibinska et al.: COVID-19 Diagnosis at Early Stage [56] U. Lee, K. Han, H. Cho, K.-M. Chung, H. Hong, S.-J. Lee, Y. Noh, S. Park, and J. M. Carroll, ‘‘Intelligent positive computing with mobile, wearable, and IoT devices: Literature review and research directions,’’ Ad Hoc Netw., vol. 83, pp. 8–24, Feb. 2019. [57] A. Bizzego, G. Gabrieli, C. Furlanello, and G. Esposito, ‘‘Comparison of wearable and clinical devices for acquisition of peripheral nervous system signals,’’ Sensors, vol. 20, no. 23, p. 6778, Nov. 2020. [58] J. Chen, M. Abbod, and J.-S. Shieh, ‘‘Pain and stress detection using wearable sensors and devices—A review,’’ Sensors, vol. 21, no. 4, p. 1030, Feb. 2021. [59] G. Cosoli, S. Spinsante, and L. Scalise, ‘‘Wrist-worn and chest-strap wearable devices: Systematic review on accuracy and metrological characteristics,’’ Measurement, vol. 159, Jul. 2020, Art. no. 107789. [60] A. Rehman, M. Mustafa, N. Javaid, U. Qasim, and Z. A. Khan, ‘‘Analytical survey of wearable sensors,’’ in Proc. 7th Int. Conf. Broadband, Wireless Comput., Commun. Appl., Nov. 2012, pp. 408–413. JUSTYNA SKIBINSKA was born in Poland. She received the bachelor’s and master’s degrees in biomedical engineering with a major in computer science and electronics in medicine from the University of Science and Technology, Kraków, Poland, in 2017 and 2018, respectively. She is an Early Stage Researcher and a Ph.D. student with Brno University of Technology, Czech Republic, and Tampere University, Finland, as a part of the H2020 MCSA ITN/EJD A-WEAR project. RADIM BURGET is currently an Associate Professor with Brno University of Technology and is the Heading Signal Processing Program at the SIX Research Centre. He has been involved in the research of artificial intelligence for many years and in plenty of research projects which include projects funded on European level, national level, or privately funded projects. Companies he is cooperating with include Honeywell, Mitsubishi Electric, Rapidminer, and Konica-Minolta. ASMA CHANNA (Graduate Student Member, IEEE) received the master’s degree from Mehran University of Engineering and Technology Jamshoro, Pakistan, in 2018. She is currently pursuing the double Ph.D. degree with the University Politehnica of Bucharest, Romania, and Mediterranea University of Reggio Calabria, Italy, as a Marie Skłodowska-Curie Fellow in the European project A-WEAR. Her research interests include biomedical signal processing, wearables, e-health, and artificial intelligence. NIRVANA POPESCU received the Ph.D. degree in computer science with a thesis called ‘‘Selforganizing intelligent fuzzy systems,’’ from the University Politehnica of Bucharest (UPB), in 2003. She has been a Full Professor with the Computer Science Department, UPB, since 2014. Her research interests include neural networks, intelligent systems, fuzzy logic and control, ehealth systems, cognitive and autonomous robots, and reconfigurable computers. YEVGENI KOUCHERYAVY received the Ph.D. degree from TUT, in 2004. He is currently a Full Professor and the Laboratory Director with the Department of Electronics and Communications Engineering, Tampere University of Technology (TUT), Finland. He is the author of numerous publications in the field of advanced wired and wireless networking and communications. His current research interests include various aspects in heterogeneous wireless communication networks and systems, the Internet of Things and its standardization, and nanocommunications. VOLUME 9, 2021 119491