Abstract
With the emergence of COVID-19, mobile health applications have increasingly become crucial in contact tracing, information dissemination, and pandemic control in general. Apps warn users if they have been close to an infected person for sufficient time, and therefore potentially at risk. The distance measurement accuracy heavily affects the probability estimation of being infected. Most of these applications make use of the electromagnetic field produced by Bluetooth Low Energy technology to estimate the distance. Nevertheless, radio interference derived from numerous factors, such as crowding, obstacles, and user activity can lead to wrong distance estimation, and, in turn, to wrong decisions. Besides, most of the social distance-keeping criteria recognized worldwide plan to keep a different distance based on the activity of the person and on the surrounding environment. In this study, in order to enhance the performance of the COVID-19 tracking apps, a human activity classifier based on Convolutional Deep Neural Network is provided. In particular, the raw data coming from the accelerometer sensor of a smartphone are arranged to form an image including several channels (HAR-Image), which is used as fingerprints of the in-progress activity that can be used as an additional input by tracking applications. Experimental results, obtained by analyzing real data, have shown that the HAR-Images are effective features for human activity recognition. Indeed, the results on the k-fold cross-validation and obtained by using a real dataset achieved an accuracy very close to 100%.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.Avoid common mistakes on your manuscript.
1 Introduction
The COVID-19 outbreak has pushed health authorities to fight an unprecedented battle against the time. Since its first occurrence in Wuhan, on December 31, 2019, SARS-CoV-2 virus has spread in more than 200 countries around the world, with a case fatality rate (CFR) of 2.25% and an infection fatality rate (IFR) of 0.68% [38]. As reported by the World Health Organization (WHO), at the time of writing (December 16, 2020) there have been 71.919.725 confirmed cases of COVID-19 in the world, including 1.623.064 deaths [60]. As depicted in Fig. 1, the number of deaths is constantly increasing. Numerous countermeasures have been undertaken in the last months to cope with the virus pandemic, pending the long-awaited vaccine. Although the biological and medical fields are the more active ones [47], many other disciplines are involved in providing useful support to the issue [13, 21]. Under this aspect, the COVID-19 has changed how the world does science. Hundreds of clinical trials have been launched around the globe, gathering together thousands of researchers, medicals, hospitals, and laboratories. Never before, scientists from all over the world focused on a single topic and stopped almost all other researches.
Despite these efforts and even though some vaccines seem to be starting to spread around the world, the tracking of infected people seems yet the most affordable approach to take under control the spread of the pandemic. In this direction, solutions derived from modern mobile communications technologies seem to be the most promising options available [26, 41, 43, 53]. In particular, mobile health applications for smartphones have been adopted by various States around the world to provide useful tools for contact tracing, information dissemination, and pandemic control in general [18]. For example, in Singapore, a mobile app, called “TraceTogether,” is used to track the virus spreading after an individual was infected. “Immuni” is a similar app endorsed by the Italian government. In Switzerland, “SwissCovid” is the official mobile app managed by the Federal Office of Public Health (FOPH). Further, in the U.S. and UK, “COVID Symptom tracker” has been deployed by the Coronavirus Pandemic Epidemiology Consortium (COPE). A research on the most popular app stores, such as Apple AppStore and Google Play Store of the keywords Covid, SARS-CoV-2, and similars can provide an idea of the huge amount of apps available related to the COVID-19. The rapid proliferation of these apps has exacerbated the well-known problem related to app-quality assessment [11]. So that, in order to cope with it, a new metric named Mobile App Rating Scale (MARS) has been recently introduced [51]. A systematic review of the most popular apps for COVID-19 can be found in [18].
The main aim of these apps is to inform users if they have been close to an infected person for a time sufficient to be considered at high risk of contagion. Therefore, distance and position estimation are required to be as more accurate as possible. Although the positioning task has largely been solved for outdoor situations by using the Global Positioning System (GPS) along with precision refining methodologies [36], other technologies need to be used indoor. Typically, the indoor positioning systems (IPS) include a network of devices equipped with different technologies, which can be based on radio waves, such as WiFi and Bluetooth Low Energy (BLE) as well as on optical and acoustic solutions, like, for example the LiFi technology [40] and ultrasonic sensors, respectively. Nevertheless, as it is known, the distance between individuals can be estimated by using the Time-of-Flight (TOF) method without using the position of the involved devices. Due to its low energy consumption, easy deployment, low cost and widespread availability, BLE is the most widely used solution for distance estimation. More specifically, the RSSI (Receive Signal Strenght Indicator) is evaluated to estimate the distance between two devices/individuals through the Friis’s equation [24]. Nevertheless, the environment in which a BLE system operates has a decisive influence on the intensity of the received signal and, then, on the RSSI correctness. This can create problems when trying to estimate the distance. Some factors that can generate variability in the estimation of signal intensity are [50]:
-
Metals and other reflective materials, which cause signal bounce;
-
Liquid elements that absorb the signal. In this regard, people crowds represent a serious drawback. We remark that the human body, being composed mostly of water, constitutes an important barrier to the propagation of Bluetooth signals at 2.4 GHz - ISM Band;
-
Physical obstacles.
-
Height difference between devices.
-
Relative orientation.
Although advances in the field of Machine Learning (ML), Deep Learning (DL), and Artificial Intelligence (AI) in general, have allowed the development of RSSI Real-Time Correction Algorithms [34], IPS and its applications to distance estimation remain a challenging problem.
Besides, most of the worldwide recognized social distance-keeping laws and criteria plan to keep a different distance based on the activity of the person and on the surrounding environment. For example, the distance between two individuals can be reduced if the facemask is used or if the persons are in outdoor spaces, whereas the distance must be increased if they are indoor or they are making physical activities, such as walking, running, footing, or other sports.
Therefore, information about the surrounding environment and user activity can heavily affect the utility of mobile health applications.
In this study, in order to enhance the performance of the COVID-19 tracking apps, a human activity classifier based on Deep Convolutional Neural Network (DCNN) is provided. In particular, the raw data coming from the accelerometer sensor of a smartphone are arranged to form a multi-channel image (HAR-image), which is used as a fingerprint of the in-progress activity. Our aim is to provide a system able to automatically learn useful information from the device’s owner concerning his activity and, then, also the surrounding environment. Such a system can be integrated as an additional function into tracking applications implementing the exposition estimation rules in order to empower their capabilities.
The comparison with the most common machine learning-based classifiers has shown that the aforementioned HAR-images are extremely effective features for Human Activity Recognition (HAR). Indeed, when evaluated through the k-fold cross-validation technique it achieved an accuracy very close to 100%.
The remainder of the paper is organized as follows. Firstly, in Sect. 2, the contact tracing is presented and discussed. In Sect. 3, the state-of-the-art methods for the HAR based on Machine Learning and Artificial Intelligence are shown. In Sect. 4, the HAR-Images and DCNN are presented in detail, whereas Sect. 5 describes the experiments and reports the results. Finally, Sect. 6 is devoted to the conclusions and future works.
2 Contact tracing
Contact tracing is the main countermeasure adopted from public health to cope with COVID-19 disease [30]. More specifically, contact tracing refers to the ability to reconstruct the contact chains of virus-positive people. The tracking can also take place in a “traditional” way, by interviewing positive people and tracing the situations in which they could endanger the health of close people and properly warning them. Nevertheless, there are situations, such as having been in line at the supermarket, in a bar or office, in which we do not know exactly who we met. In these situations, digital support systems, such as an app, can represent an effective help. A contact tracing app works as follows: when a user downloads the app, an own code (id-code) is associated with it and such code varies several times a day. Using Bluetooth technology the smartphones that are in Bluetooth action range exchange these codes, without anyone, not even the system, knowing who they correspond to. To preserve privacy, the app does not collect any personal data, such as name, age, address, telephone number, or email. When a person is found to be positive to COVID-19, his id-code is entered by the healthcare staff into a system from which each smartphone picks up it and compares it with the list of codes it has registered. If it turns out that the smartphone has had risky contact with the one associated with a positive person, appropriate behavioral indications are provided to the involved user.
Nevertheless, there are two types of apps, that is apps that make use of centralized or decentralized databases. In both cases, when individual A meets B, their smartphones exchange encrypted id-codes [42]. If A becomes positive, the status of his app is updated. At this point, in centralized systems, the data remain on the server, in decentralized systems the data remain on the user’s smartphone.
Regardless of the type, the apps need to respond to the guidelines emitted from worldwide health organizations. For example, with reference to Fig. 2, the European Centre for Disease Prevention and Control (ECDC) indicates the following criteria for establishing if COVID-19 exposure is to be considered to have a high-risk level:
-
A person living in the same family as a COVID-19 case;
-
A person who has had direct physical contact with a COVID-19 case (for example, shaking hands).
-
A person who has had unprotected direct contact with the infectious secretions of a COVID-19 case (for example, who coughed, touched used paper handkerchiefs with bare hands);
-
A person who has had face-to-face contact with a COVID-19 case within 2 m and for more than 15 min.
-
A person who was in an enclosed environment (e.g., classroom, meeting room, hospital waiting room, etc.) with a COVID-19 case for 15 min or more and at a distance of fewer than 2 m.
-
A healthcare worker or other person providing direct assistance to a COVID-19 case, or laboratory workers handling COVID-19 case samples without the recommended Personal Protective Equipment (PPE) or with a possible infringement of PPE;
-
Contact in an aircraft occurred in two contiguous seats (in any direction) from a COVID-19 case, travel companions or assistants and crew members on duty in the section of the aircraft where the case in question occurred (if the severity of symptoms or the movement of the case indicates more extensive exposure, the passengers seated in the entire section or all passengers on the aircraft can be considered in close contact).
On the other end, the cases considered to be at low-risk are:
-
A person who has been in an enclosed environment with a COVID-19 case for fewer than 15 min or at a distance greater than 2 m.
-
A person who has had face-to-face contact with a COVID-19 case for fewer than 15 min and at a distance of fewer than 2 m.
-
Traveling together with a COVID-19 case in any type of transport over a distance of greater than 2 m.
Finally, the ECDC explains that a “longer contact duration increases the risk of transmission.” The 15-min limit is arbitrarily chosen for practical purposes.
Notice that, according to World Health Organization, the incubation period, during which a person is however contagious, ranges from 2 to 14 days. It is not easy to know and remember who we have been close to, within 2 m, for about 15 min, in the last two weeks. For this reason, an app able to estimate the proximity of two devices can give an effective contribution. Further, a point-to-point detection system eliminates the need for central data collections by States and, also, it can be sufficient for tracing people by considering the threshold of 15 min of exposure. Indeed, the goal of these applications is not to warn people that certain distance thresholds have been exceeded, but to be able a posteriori, many days later, to warn that a proximity contact has occurred with people who are being tested positive in a time later the contact.
3 Human activity recognition and related work
In estimating exposure risks, an effective contact tracing cannot prescind from the considerations concerning the activities that characterize the specific behavior of the involved users (if they are running, or walking, standing or sitting, etc.). Thus, automatic HAR assumes paramount importance in supporting tracking applications.
Although the human activity recognition task has been extensively studied in the last decades [28], it remains a challenging problem that needs to be addressed and solved. Its main use is in eldercare and healthcare applications, especially when it is combined with other technologies, such as the Internet of Things (IoT). HAR can be performed by using many technologies, but nowadays the proliferation of small sized electronic equipment and the large usage of AI- and ML-based algorithms in many research and industrial fields [12, 14,15,16], have allowed the spread of HAR solutions by leveraging the built-in sensors of smartphones. Typical human activities that can be recognized by HAR systems are: walking, sleeping, driving, sitting, running, standing, cooking, etc. Nevertheless, HAR is widely used in many other real applications, such as crime monitoring [39], domotic [22], suspicious human activity [55], daily activities [17], gesture recognition [31], and military applications [35].
Data collected by inertial systems, video frames, and images are usually processed to make HAR. In this regard, HAR is generally performed firstly by processing univariate or multivariate time series in order to extract useful and effective features, and, then, by making activities inference through ML-based techniques. Deep neural networks (DNN) are the most promising tools for automatic features learning starting from raw data, and they have outperformed the signal processing approach, which requires a great knowledge of specific domains and a manually designing of the features [58].
The current approaches to make HAR can be classified into two main categories, that is, vision-based and sensor-based. The core processing of the former includes the classical steps adopted in computer vision for mining useful features, such as data preprocessing, cleaning, segmentation, feature extraction, and finally classification. Due to the huge diffusion of the built-in cameras in mobile electronic devices, in the last decades, there has been a great demand for automatic image processing, and then many approaches have also been proposed for video-based HAR technologies. The most significant advances in this field can be found in [5], where the HAR task is categorized according to several criteria. A taxonomy-based approach and an enlightening comparison among different methods are provided by Aggarwal, et. al. in [1]. Again, in [29], the authors discuss the advantages and the disadvantages of different features mining from images. Many other surveys have been found in the literature [7, 48, 52, 56]. However, as reported in [57], issues related to shadows, observing angle, background colors, light intensity, and more can negatively affect the HAR quality.
In contrast, built-in sensors in smartphones can overcome these issues and can be effectively used for HAR. Besides, many daily activities, such as sitting, standing, walking are strongly related to gravity and accelerations, and then they can be identified by using three-axis accelerometers, gyroscopes, and other sensors commonly integrated into smartphones. A detailed description of how the accelerometers of smartphones are used for HAR can be found in [4]. While in [37], the combined usage of accelerometer, gyroscope, and magnetometer sensors along with a deep neural network is shown. Also, in [3], the authors propose a HAR system capable to identify 20 activities by using five wearable dual-axis accelerometers and a ML-based classifier, achieving an accuracy of 84%. Again, in [49], five transport activities are identified by only using the smartphone inertial sensors.
Another important aspect to be considered in sensor-based HAR is that the time series-based classification requires the partitioning of the signals in temporal windows, which are associated with an activity. Usually, fixed-length temporal windows, that are shifted on time series, are used (sliding window approach). For example, in [25] a HAR system able to recognize six activities applying a Deep Recurrent Neural Network (DRNN) is presented. The paper shows how the size of the sliding window and its offset (so-called stride) affect the recognition time (throughput). The best recognition rate of 95.03% was achieved. In [8], the time series of each axis of a three-axis accelerometer were partitioned by a 50-dimensional window, corresponding to 2.5 seconds, and, then, given as input to three different recurrent networks, one for each axis. The model has proven to be able to distinguish six activities with an accuracy of 95.1%. Nevertheless, a dynamic sliding window is shown in [44]. The approach proposed by the authors is able to adjust the window size and the stride at every step of the training. The experimental results have shown that the model is able to achieve good performance. Indeed, the best result was 95.32% and 97.69% for the recall and precision metrics, respectively.
However, as reported in [2], the choice of the right window size and offset is an open challenge, because it depends on many factors, such as the nature of the sensor data, the activity to be recognized, and the designed model.
Finally, for their similarity to the approach shown in this study, we report some of the most notable methods using Convolutional Neural Networks (CNNs) in HAR. Although CNN has been originally designed for dealing with images, its use in many other application fields has proven to be very effective. Indeed, 1D signals can also be processed by a CNN by exploiting the aforementioned sliding window approach. The first important study reporting the usage of CNN for HAR can be found in [63]. The authors use different CNNs for each axis of the accelerometer, and then the CNN outputs are arranged in a unique flattened vector, which is used as a hidden layer of a fully connected neural network. The achieved accuracy is 88.19%, 76.83%, and 96.88% for three different datasets, respectively. The divide and conquer approach together with a 1D CNN is used in [9]. The activities are first classified into static and dynamic classes by a binary 1D CNN-based classifier, and then for each class, specific activities are discriminated by a 3-class 1D CNN classifier. The results show an accuracy of 97.62% and 94.2% when tested on UCI and OPPORTUNITY datasets, respectively. Images derived by applying the Fast Fourier Transform (FFT) to each signal of the three-axis accelerometer and gyroscope are used in [27]. The resulting 28 x 28-dimensional images are used as input to the CNN to achieve performance values of 88%, 87%, and 87% for precision, recall, and F1 score, respectively, when the method is applied for recognizing eight human activities.
A comprehensive study of different techniques used for making HAR based on machine learning algorithms and deep networks can be found in [54].
4 HAR-images based activity recognition
In this Section, the proposed approach is shown in detail. To this end, the mathematical representation of HAR is first provided, next the HAR-Images are described, and finally how they are used in CNN in order to mine effective features is explained.
4.1 Mathematical formalism of HAR
According to the definition given in [10], human activities can be seen as a set of actions performed by the user in a given environment over a temporal period.
Accordingly, let \(A=\{A_1,A_2,\dots ,A_n\}\) be the set of the activities to be recognized, and let \(S=\{S_1,S_2,\dots ,S_m\}\) be the set of the sensors involved in data capturing related to the activities.
Then, a specific action, \(a \in A\), that occurs in a certain time window (\(\varDelta t\)) can be associated to a tuple of time-series (\(d^{\varDelta t}\)) capturing the activity information, whose elements (\(r_l^t\)) are the sensor readings acquired over \(\varDelta t\).
Note that because sensors can provide multiple time series as a result of the measurement action, then any \(r_l^t\) is a \(q^{(l)}\)-dimensional vector of time series, with \(q^{(l)}\) the number of time series provided from the sensor \(l \in S\). Besides, because any sensor has a proper operating sample frequency (\(f^{(l)}\)), the number of sample (\(\nu ^{(l)}\)) captured in the given temporal window \(\varDelta t\) is given by:
As a consequence, any \(r_l^t\) is a \((\nu ^{(l)} \times q^{(l)})\)-dimensional matrix, while \(d^{\varDelta t}\) can assume the aspect of a \((\nu \times q)\)-dimensional matrix, where \(\nu =Max(\nu ^{(l)}),\; \forall l \in S\), and \(q=\sum _{l=1}^{p}q^{(l)}\), with p the number of sensors involved in the measurement. More specifically, \(d^{\varDelta t}\) can be represented by a tensor having the structure as depicted in Fig. 3.
The goal is to build a map (\(\varSigma\)) between the action occurred over \(\varDelta t\), \(\tilde{a}^{\varDelta t} \in A\) and the sensor readings, \(\tilde{d}^{\varDelta t}\), that is:
Note that \(\varSigma\) provides an estimation of the action associated with the sensor reading. So that, \(\tilde{a}^{\varDelta t}\) is to be considered as the estimated action, which needs to be compared with the corresponding true action \(\widehat{a}^{\varDelta t}\) (ground truth).
Hence, the HAR goal is to find out an optimal \(\varSigma\) by minimizing the discrepancy between the estimated action (\(\tilde{a}^{\varDelta t}\)) and the true one ( \(\widehat{a}^{\varDelta t}\)).
Typically, a loss function (\(\Gamma\)) is employed for representing this discrepancy, as follows:
Besides, the time series are not directly used as input to \(\varSigma\), but a their projection (\(\varPhi\)) on a new d-dimensional state space is employed. That is:
with
where \(\varphi _i\) are the new features.
Ultimately, the goal is to minimize the equation (5) for any \(a \in A\).
4.2 HAR-images
Usually, sensor-based HAR is considered as a classical time series analysis problem, so that it is addressed by using recurrent neural networks, such as LSTM (Long Short-Term Memory) [8, 25, 62]. On the contrary, in this study, we investigate the feasibility of recognizing human activities by using convolutional neural networks. To this purpose, images need to be derived from sensor raw data. We referred to them as HAR-Images.
With reference to equation (1), any sensor reading is first windowed and then used to build the HAR-Images as follows. As mentioned earlier, any \(r_l^t\) is a \((\nu ^{(l)} \times q^{(l)})\)-dimensional matrix, so that two generic columns, \(r_{l,j}^t\) and \(r_{l,k}^t\), of this matrix, may be used to build an image on an x-y plane. The dots on this plane are depicted by using a column as the x-coordinate and the other one as the y-coordinate. Hence, for any temporal window (\(\varDelta t\)), the derived image includes \(\nu ^{(l)}\) dots. Besides, for a sensor \(l \in S\) with \(q^{(l)}\) readings, the number of distinct admissible column couples, and then of images (\(nC^{(l)}\)) is given by:
Note that the image size of each channel depends on the minimum and maximum values assumed by each column involved in the given temporal window (\(\varDelta t\)). Indeed, we remark that the coordinates of any dot are individuated by the values of these columns at a given index. Therefore, let \(\eta ^{(l)}\) be the difference between the maximum and the minimum values assumed by the reading values of a sensor l, then the size of each corresponding image-channel (\(chSize^{(l)}\)) is given by:
However, in order to provide more informative content to image-channels, any dot on the x-y plane is associated with a number ranging from 0 to 255, as it happens in the matrix representation of images. Such a number represents the number of occurrences that a dot falls in the same position. However, because the sensor readings include different values, it could happen that no dots fall in the same position. To address this issue a quantization process is performed on the images. More precisely, each column is first quantized through a given quantization step (Q), and then the resulting discrete sets are used as coordinates of the dots. As a consequence, the size of the quantized image-channel (\(chSizeQ^{(l)}\)) becomes:
with \(\mu ^{(l)}\):
Ultimately, each image built on a couple of columns can be considered as a different channel of a HAR-image. The same procedure is adopted for each sensor. So that, for a given \(\varDelta t\), the number of HAR-Images is p, and each HAR-Image includes \(nC^{(l)}\) channels.
For example, for a three-axis accelerometer (\(q=3\) and \(p=1\)), the different time series associated with each axis captured in a temporal window \(\varDelta t\) lead to \(nC=3\), that is a unique (\(p=1\)) HAR-Image including three channels. The first image-channel is derived by considering the axes X-Y, the second X-Z, and the third Y-Z.
With reference to equation (6), the HAR-Images represent a kind of projection (\(\varPhi\)) of the time series into a \((p \times \mu \times \mu \times nC)\)-dimensional state space. Nevertheless, as it is shown in the next subsection, such a projection includes other transformations.
4.3 HAR-features mining and deep convolutional neural network
Once the HAR-Images are built, relevant features need to be mining from them in order to build a classifier. Pattern recognition (PR) based approaches have been extensively used in the last decades for making HAR [33]. Although PR has proven to be effective in cases in which only a few activities need to be recognized, it has shown several weaknesses in most daily cases. Indeed, firstly, the features are mining through a heuristic hand-crafted way. The effectiveness of this approach heavily can be affected by human skills in the specific domains. Secondly, often, such features are related to some statistical measure, such as standard deviation, mean which are not able to capture deep insight. Thirdly, traditional PR requires many labeled data, which could be not always available. Finally, most of the existing PR-based approaches make use of static data. As a consequence, they are not adequate for dealing with data streams and incremental learning.
On the contrary, deep learning is able to overcome these issues by making simultaneously the features extraction and the model building in a unique process [6]. Further, features are learned automatically, they can represent complex activities, and finally, the insight learned can be transferred to new similar tasks.
Among many deep learning-based approaches, we focus on the Deep Convolutional Neural Network, which is a stacked network including a Convolutional Neural Network and a Deep Neural Network. DNNs can be seen as a special category of the more general Artificial Neural Network (ANN). The main difference between them is that DNN makes use of more hidden layers than ANN. This confers to DNN the capability of mining more representative and salient features through a process in which more complex features are derived from less complex ones. Layers near to the input are representative of simple features, while layers closer and closer to the output represent more complex features. Generally, DNNs are used after other deep networks, such as CNNs.
CNNs are extensively used in computer vision, and they have proven high ability to make image classification, speech and text analysis. As it is known, CNNs rely on the convolutional operation followed by a pooling process.
As described earlier, for a sensor \(l \in S\), the corresponding HAR-Image includes \(nC^{(l)}\) image-channels (see equation (7)), each of size \((\mu ^{(l)} \times \mu ^{(l)})\). Thus, let \(X^{c,(l)} \in {\mathcal {R}}^{\mu ^{(l)} \times \mu ^{(l)}}\) be the c-th single channel-image of the HAR-Image associated to the sensor l, and \(K^{f,(l)} \in {\mathcal {R}}^{a\times b}\) be the f-th convolutional filter, then the convolution operation between the CNN-input (\(X^{c,(l)}\)) and \(N_f\) filters produces the following output (\(Y^{c,(l)}\)):
with \(Y_{i,j}^{c,(l)}\) the entries of the output matrix \(Y^{c,(l)}\).
The row size (\(Y_x^{c,(l)}\)) and column size (\(Y_y^{c,(l)}\)) of \(Y^{c,(l)}\) are given by:
where \(S_x\) and \(S_y\) control the shifting (called stride) of the filter on both the x and y axes of the input. While, P (Padding) defines the number of zeros to add around the border of \(X^{c,(l)}\) in order to match the output size to that of the input, without compromising the result of the convolution operation.
To take into account the presence of multiple channels of the sensor involved, the multi-channel 2D convolutional process is used. It consists of the element-wise summation (\(Y^{(l)}\)) of the output of each convolutional operation performed on each channel of the given sensor \(l \in S\).
where \(Y_{i,j}^{(l)}\) the entries of \(Y^{(l)}\).
Note that all image-channels of a HAR-Image associated with a sensor l have the same size. Thus, with an abuse of notation, we can stat that the size of \(Y^{(l)}\) can be expressed as follows:
for any \(c=1,\dots ,nC{(l)}\).
Once the convolutional operation is ended, the pooling process is generally performed. It is used to reduce the size of the convolutional output in order to speed up the computational tasks. To accomplish this, the CNN-output ( \(Y^{(l)}\)) is divided into regions on which some calculations are performed. A typical pooling is the MaxPool, which consists of finding out the maximum value in the considered region and using it as a point on the new image-output.
Ultimately, a pooling operation that uses a \((k^{(l)} \times k^{(l)})\)-dimensional regions, reduces the \((Y_x^{(l)} \times Y_y^{(l)})\)-dimensional CNN-output (\(Y^{(l)}\)) to \((Y_x^{(l)}/k^{(l)} \times Y_y^{(l)}/k^{(l})\)-dimensional MaxPool-output \((W^{(l)})\), which represents the so-called feature map.
Thus, with reference to equation (6), further transformations have been added to the raw sensor data. In a nutshell, \(\varPhi\) acts in tho steps: a) the raw sensor data have been first arranged as images, b) and then such images are used to mine useful features. Note that what has been said so far refers to a single sensor \(l \in S\).
To take into account all involved sensors, any feature map (\(W^{(l)}\)) associated with a sensor l is flattened in a one-dimensional vector. Then, all these vectors are joined together to form a new unique one-dimensional vector (\(Flat\_Vec\)). With reference to equation (15), the size of this vector can be expressed by:
with p the number of sensors involved in the measure.
Finally, a DNN with a softmax output layer is connected to the CNN-output for classification purposes. More precisely, \(Flat\_Vec\) is given in input to a deep fully connected neural network, and then its output is provided as input to the softmax network to infer the class of the input in terms of probabilities.
Accordingly, let \(z=1,\dots ,\psi\) be the index of the hidden layers of a DNN, let \(s^{(z)}\) be the number of neurons of each hidden layer (z), then when \(Flat\_Vec\) is provided as input to this DNN, the output of each layer (\(h^{(z)}\)) can be expressed by:
where \(W^{(z)} \in R^{s^{(z)} \times s^{(z-1)}}\) and \(b^{(z)} \in R^{s^{(z)}}\) are the weights matrix and the bias vector of the layer z, respectively. While, \(\sigma\) is an activation function. We remark that the size of \(h^{(z)}\) is \(s^{(z)}\). Besides, the layer \(z=1\) takes as input the above \(Flat\_Vec\).
As above-mentioned, the last layer (\(\psi\)) includes a softmax function. So that, with reference to equation (17), the j-th output component (\(h_j^{(\psi )}\)) of the last layer of the DNN can be expressed as follows:
with \(w_{j,k}^{(\psi )}\) and \(b_j^{(\psi )}\) the entries of \(W^{(\psi )}\) and \(b^{(\psi )}\), respectively.
Then, the j-th component of the softmax output (\(h^{sm}\)) is given by:
with \(j=1,\dots ,n\) and n the number of admissible actions (A).
The action (\(A_j\)) with higher probability is considered to be the output of the classifier. Such an action along with the true action are fed as input to the loss function of equation (5) and used during the training phase.
Figure 4 depicts the general structure of the DCNN used in this study. Note that the depicted network is used for any \(\varDelta t\). That is to say that the network is trained through all the HAR-Images derived by sliding the temporal window \(\varDelta t\) on all training dataset. To accomplish this, usually, a specific offset (\(stride^{(l)}\)) is used. As a consequence the number (\(numHAR_{Images}^{(l)}\)) of nC-dimensional HAR-Images associated with a sensor reading l is given by:
where \(D^{(l)}\) is the length of the sensor reading l. As it is better shown in the next section, the choice of \(\varDelta t\) and stride, and consequently of \(numHAR_{Images}^{(l)}\), heavily affects the performance of the proposed network, and then they need to be chosen appropriately.
Finally, we remark that with reference to the equation (5), the loss function to be minimized is that generally used for training deep neural networks for multi-class classification [64].
Network structure of HAR-Images DCNN. As depicted, once the HAR-images over a given \(\varDelta t\) are built, several convolutional and pooling transformations are performed. The output of these layers is first flattened and then fed to DNN. The softmax layer concludes the network by providing an estimation of the classes in terms of probabilities
5 Experiments and results
The aim of this Section is to demonstrate the effectiveness of HAR-Images in representing actions starting from raw sensor readings and to show the effectiveness of the DCNN as a powerful classifier for HAR. To accomplish this, a real dataset was used in the experiments. All the experiments were conducted by using the high-level neural networks API library for Python over the TensorFlow platform running on a 64-bit Windows 10 operating system. The machine used to perform the experiments was a portable PC equipped with an Intel(R) 4-Core i7-8565U CPU @ 1.80GHz, 16 GB of RAM, and NVIDIA GeForce MX150 GPU with 4 GB of memory.
5.1 WISDM dataset
The dataset used in the experiments was released by the Wireless Sensor Data Mining (WISDM) Laboratory [32]. It includes raw data collected from several Android-based mobile devices under controlled laboratory conditions. In particular, the data refer to samples produced by the three-axis accelerometers embedded in smartphones, also capable to detect the device orientation. In the latest version of the dataset, thirty-six volunteers were engaged for collecting data. Each volunteer was asked to wear a smartphone in the front pocket of the pants while they performed specific actions for a given period of time. The horizontal movements of the user’s leg were captured by the X-axis of the accelerometer, whereas Y-axis captured the vertical movement, and finally, the forward and backward movements were captured by Z-axis. The labeling of the data, and the start and stop of the data collection related to any action were controlled by an app running on the smartphone, which also collected other information such as, timestamp, sample frequency, user’s name. Nevertheless, the app was set to collect data every 50 ms, that is \(f=20 Hz\) which means 20 samples per second.
Six common activities were considered in data collection. They are:
The dataset includes 1, 098, 208 samples, distributed as shown in Table 1. For any axis, the sample values range from \(-20\) to 20.
As it is usual, we performed an exploratory data analysis (EDA) [23], which led to eliminating some samples that report 0 values for all axes. Because the accelerometer is sensible to the gravity, the condition in which all axes release a value equal to zero is considered an error. The resulting distribution of the number of samples for any user is shown in Table 2.
As depicted the total number of samples was reduced to 1, 085, 367, that is 12, 841 samples were deleted.
A dataset including transformed features is also provided by the WISDM Laboratory. It includes 46 features derived by considering a temporal window of 10 seconds, that is 200 sensor readings. These features are all derived from six basic features. For each axis they are: average value, standard deviation, average absolute difference, average resultant acceleration, time between peaks, and binned distribution. We remand to [32] for further details.
We remark that in this study, we do not use such transformed features, but we use the raw data. Nevertheless, as it will be shown in Sect. 5.5, we used such features for comparing the performance of our approach with the state-of-the-art based on Machine Learning techniques.
5.2 HAR-images
The samples reported in Table 2 were used to build the dataset of HAR-Images as discussed earlier. In order to compare our approach with the state-of-the-art, we used a temporal window equal to \(\varDelta t=10 \; seconds\), which corresponds to 200 samples (\(\nu =200\)) according to equation (2). Besides, a stride of 10 samples was used. As above discussed, because WISDM dataset includes data captured by a single three-axis accelerometer, we have \(p=1\) and \(q=3\). As a consequence, according to equation (7), for any \(\varDelta t\) a single HAR-Image is produced (\(p=1\)) including 3 channels (\(nC=3\)). Besides, according to equation (20), the total number of 3-channels HAR-Images is equal to 105205, distributed as reported in Table 3. Finally, a quantization step of \(Q=0.025\) was used, which led to having images of size equal to \((40 \times 40)\). Also, in order to adapt the entry values of the image-matrices to the DCNN input, all images were normalized to have entry values ranging from 0 to 1.
5.3 DCNN model and experimental setting
With reference to Fig. 4, the implemented DCNN structure includes two 3D-channels CNN-layers with 2 and 4 (\(2 \times 2\))-dimensional filters, respectively, padding=same, activation=relu, and two (\(2 \times 2\))-dimensional MaxPooling each for layer. Next, a flattening network is used, followed by a DNN. DNN includes two fully connected layers of 48 and 24 neurons, respectively. Both layers are followed by a Dropout of 0.5. Finally, a softmax function with 6 output concludes the network. Figure 5 shows the Python representation of the network structure along with the input and output sizes for each network element. The network was training by using sparse-categorical-cross entropy as loss function (equation (5)), Adam as optimizer, for 100 epochs with a \(batch\_size=5\).
5.4 Performance metrics and results
In order to evaluate the classification quality of the proposal, the following metrics were used on the testing dataset. They are derived by the multi-class confusion matrix [20]:
where for each class (action), TPs (True Positives) are the actions correctly classified, FPs (False Positives) are the actions incorrectly classified, FNs (False Negatives) are the actions incorrectly rejected, and TNs (True Negatives) are the actions correctly rejected. We remark that any metric ranges from 0 to 1 or equivalently from \(0\%\) to \(100\%\), where \(100\%\) represents the best performance.
All the metrics were evaluated by using the Python library scikit-learn [19].
In order to investigate the performance of the proposal, without running into problems related to bias, the 10-fold cross-validation technique was used in the experiments. Accordingly, with reference to Table 2, the samples belonging to each action were first divided into 10 folds, and then, in turn, each fold was used for testing, while the remaining samples for training. To accomplish this, the sklearn library for Python was used.
Tables 4 and 5 show the confusion matrix and the metrics of the experiment results for any action, respectively. The, mean, standard deviation, and \(95\%\) confidence intervals are also shown. As depicted, all the metrics achieved the maximum value for any action. Indeed, only a few samples were incorrectly classified (Table 4). Although some actions can be considered many similar, such as Sitting and Standing, the HAR-Images proved to be able to distinguish them with high accuracy. Indeed, the achieved accuracy was \(100\%\). Also, the classifier showed some weakness for Upstairs, which, for a few cases, was confused with Walking or Downstairs. However, also in this case, the accuracy achieved values very close to \(100\%\).
5.5 Comparison and discussion
In this Section, a comparison with some solutions presented in the literature is provided.
Firstly, in order to show the effectiveness of the HAR-Images as powerful features to be used in HAR, we tested the performance of the so-called transformed features used in the WISDM Lab [32]. We remark that, as aforementioned in Sect. 5.1, such transformed features are derived from the raw time-series data by using a temporal window of 10 seconds (corresponding to 200 samples), that is the same number of samples used in our experiments. The transformed dataset is provided from WISDM Lab as an ARFF file containing 46 (including the class) features and 5418 samples. Two features, the “UNIQUE_ID” and “user” were pruned in our experiments, because they could bias their results. Four classifiers from the WEKA suite [59] were used, that is Naive Bayes, MLP (Multi-Layer Perceptron), J-48 decision tree, and SMO (Sequential Minimal Optimization). Besides, the 10-fold cross-validation technique was also used to test the performance of the WISDM features.
Figure 6 depicts the average values of the performance metrics for any classifier. As shown, our approach outperformed all the others. All the metrics achieved a value very close to \(100\%\). Although MLP and J-48 seem to perform better than Naive Bayes and SMO, their Sensitivity, of 0.78 and 0.81 respectively, is very low compared to the one achieved by our proposal, which is 0.99. Another important aspect that needs to be considered is that, unlike our approach, the transformed features seem to be unable to deal with unbalanced datasets. Indeed, as depicted in Table 6, the number of WISDM samples for any action is quite different. Most of the samples refer to the Walking and Jogging actions. The low values for Sensitivity, Precision, AUC, F-measure, and higher values for Specificity for the WEKA classifiers are a clear demonstration of this drawback introduced by the WISDM features.
Finally, in order to provide further proof of the effectiveness of our approach, Table 7 shows a comparison with some of the most notable solutions recently presented in the literature that use deep neural networks, that is DCNN [45], LSTM [46], and CNN [61]. DCNN makes use of merging features that include the WISDM transformed features with features extracted by a CNN. Notice that the accuracy of DCNN for any action is missing in the table and only the mean is reported, because we used the results published in their paper. LSTM refers to a solution based on a recurrent neural network, while CNN refers to a solution based on a pure CNN with a 1D convolution operation.
As depicted, our approach was able to recognize any action with a similar accuracy and precision. Indeed, all the metrics achieved similar value, almost \(100\%\). On the contrary, Upstairs and Downstairs were confused by DCNN, LSTM, and CNN. Indeed, the associated metrics achieved the lowest values. Again, the Standing action was not well distinguished by other ones.
6 Conclusions and future works
In this study, we have proposed a method to enhance the performance of the COVID-19 tracking apps through the detection of human activity recognition (HAR). In particular, starting with raw data readings coming from built-in sensors in smartphones, we have derived special images, called HAR-Images, able to capture useful and salient knowledge related to the in-progress user activity, and thus to be used as a kind of signature of the activity. A deep convolutional neural network (DCNN) has been used to mine such insights. A mathematical model of the proposal has first been provided, and then its application on data coming from a three-axis accelerometer has been depicted.
Unlike the state-of-the-art approaches, which build images by using separately each axis of an accelerometer, the proposed HAR-Images are derived by exploiting contemporaneously a couple of axis. Their contents are used as coordinates of dots on an x-y plane. This different point of view confers to the proposal the capability to capture salient relations existing among data of the different axis gathered at the same time. As a consequence, the extracted images include more powerful insights, which allows building a more performant DCNN based classifier.
Indeed, the experimental results, obtained by using the WISDM dataset, have been absolutely satisfying. The metrics, derived by the multi-class confusion matrix of the 10-fold cross-validation test, have achieved very high values, \(99.9\%\) on average. Compared with other state-of-the-art approaches, our proposal has proven to be the best. Indeed, the performance of most of the other approaches present in literature never have exceeded a F-measure of \(91\%\).
These results have confirmed the effectiveness of the proposed HAR-Images and the DCNN structure in making HAR. In addition, its ability to working in real-time confers to it the possibility to be used for COVID-19 tracking apps.
The experimental results encourage us to investigate, in the future, the application of the HAR-Images also in other contexts, such as telemedicine or personal fitness monitoring.
References
Aggarwal J, Ryoo M (2011) Human activity analysis: a review. ACM Comput Surv. https://doi.org/10.1145/1922649.1922653
Banos O, Galvez JM, Damas M, Pomares H, Rojas I (2014) Window size impact in human activity recognition. Sensors (Basel, Switzerland) 14(4):6474–6499. https://doi.org/10.3390/s140406474
Bao L, Intille SS (2004) Activity recognition from user-annotated acceleration data. In: Ferscha A, Mattern F (eds) Pervasive Comput. Springer, Berlin, pp 1–17
Bayat A, Pomplun M, Tran DA (2014) A study on human activity recognition using accelerometer data from smartphones. Proc Comput Sci 34, 450 – 457. The 9th International Conference on Future Networks and Communications (FNC’14)/The 11th International Conference on Mobile Systems and Pervasive Computing (MobiSPC’14)/Affiliated Workshops ). https://doi.org/10.1016/j.procs.2014.07.009http://www.sciencedirect.com/science/article/pii/S1877050914008643
Beddiar DR, Nini B, Sabokrou M, Hadid A (2020) Vision-based human activity recognition: a survey. Multim Tools Appl 79(41):30509–30555. https://doi.org/10.1007/s11042-020-09004-3
Bengio Y (2013) Deep learning of representations: Looking forward. In: Dediu AH, Martín-Vide C, Mitkov R, Truthe B (eds) Statistical Language and Speech Processing. Springer, Berlin, pp 1–37
Bux A, Angelov P, Habib Z (2017) Vision based human activity recognition: a review. In: Angelov P, Gegov A, Jayne C, Shen Q (eds) Advances in computational intelligence systems. Springer International Publishing, Cham, pp 341–371
Chen Y, Zhong K, Zhang J, Sun Q, Zhao X (2016/01) Lstm networks for mobile human activity recognition. In: Proceedings of the 2016 International Conference on Artificial Intelligence: Technologies and Applications, pp 50–53. Atlantis Press, https://doi.org/10.2991/icaita-16.2016.13
Cho H, Yoon SM (2018) Divide and conquer-based 1d cnn human activity recognition using test data sharpening. Sensors 18(4):1055. https://doi.org/10.3390/s18041055
Cook DJ, Krishnan NC (2015) Activity learning: discovering, recognizing, and predicting human behavior from sensor data, 1st edn. Wiley Publishing. https://doi.org/10.1002/9781119010258
Cummings E, Borycki EM, Roehrer E (2013) Issues and considerations for healthcare consumers using mobile applications. Stud Health Technol Inf 183:227–231
D’Angelo G, Ficco M, Palmieri F (2020) Malware detection in mobile environments based on autoencoders and api-images. J Parallel Distrib Comput 137:26–33. https://doi.org/10.1016/j.jpdc.2019.11.001
D’Angelo G, Palmieri F (2020) Discovering genomic patterns in sars-cov-2 variants. Int J Intell Syst 35(11):1680–1698. https://doi.org/10.1002/int.22268
D’Angelo G, Palmieri F (2021) Gga: a modified genetic algorithm with gradient-based local search for solving constrained optimization problems. Inf Sci 547:136–162. https://doi.org/10.1016/j.ins.2020.08.040
D’Angelo G, Palmieri F (2021) Network traffic classification using deep convolutional recurrent autoencoder neural networks for spatial-temporal features extraction. J Netw Comput Appl 173:102890. https://doi.org/10.1016/j.jnca.2020.102890
D’Angelo G, Tipaldi M, Glielmo L, Rampone S (2017) Spacecraft autonomy modeled via markov decision process and associative rule-based machine learning. In: 2017 IEEE international workshop on metrology for aerospace (MetroAeroSpace), pp 324–329. https://doi.org/10.1109/MetroAeroSpace.2017.7999589
Dao MS, Nguyen-Gia TA, Mai VC (2017) Daily human activities recognition using heterogeneous sensors from smartphones. Proc Comput Sci 111:323–328. https://doi.org/10.1016/j.procs.2017.06.030
Davalbhakta S, Advani S, Kumar S, Agarwal V, Bhoyar S, Fedirko E, Misra DP, Goel A, Gupta L, Agarwal V (2020) A systematic review of smartphone applications available for corona virus disease 2019 (covid19) and the assessment of their quality using the mobile application rating scale (mars). J Med Syst 44(9):164. https://doi.org/10.1007/s10916-020-01633-3
David Cournapeau: scikit-learn (2007). https://scikit-learn.org/stable/
Diez P (2018) Chapter 1 - introduction. In: P. Diez (ed.) Smart Wheelchairs and Brain-Computer Interfaces, pp 1–21. Academic Press, Cambridge. https://doi.org/10.1016/B978-0-12-812892-3.00001-7
Felice C, Di Tanna GL, Zanus G, Grossi U (2020) Impact of covid-19 outbreak on healthcare workers in Italy: results from a national e-survey. J Commun Health 45(4):675–683. https://doi.org/10.1007/s10900-020-00845-5
Gladence LM, Sivakumar HH, Venkatesan G, Priya SS (2017) Home and office automation system using human activity recognition. In: 2017 International conference on communication and signal processing (ICCSP), pp 0758–0762. https://doi.org/10.1109/ICCSP.2017.8286463
Yu CH (2010) Exploratory data analysis in the context of data mining and resampling. Int J Psychol Res 3(1):9–22
Hogg DC (1993) Fun with the friis free-space transmission formula. IEEE Antennas Propag Mag 35(4):33–35. https://doi.org/10.1109/74.229847
Inoue M, Inoue S, Nishida T (2018) Deep recurrent neural network for mobile human activity recognition with high throughput. Artif Life Robot 23(2):173–185. https://doi.org/10.1007/s10015-017-0422-x
Iyengar K, Upadhyaya GK, Vaishya R, Jain V (2020) Covid-19 and applications of smartphone technology in the current pandemic. Diabetes Metab Syndr 14(5):733–737. https://doi.org/10.1016/j.dsx.2020.05.033
Jiang W, Yin Z (2015) Human activity recognition using wearable sensors by deep convolutional neural networks. In: Proceedings of the 23rd ACM International Conference on Multimedia, MM ’15, pp 1307–1310. Association for Computing Machinery, New York. https://doi.org/10.1145/2733373.2806333
Jobanputra C, Bavishi J, Doshi N (2019) Human activity recognition: A survey. Procedia Computer Science 155, 698–703. The 16th International Conference on Mobile Systems and Pervasive Computing (MobiSPC 2019),The 14th International Conference on Future Networks and Communications (FNC-2019),The 9th International Conference on Sustainable Energy Information Technology https://doi.org/10.1016/j.procs.2019.08.100.http://www.sciencedirect.com/science/article/pii/S1877050919310166
Ke SR, Thuc H, Lee YJ, Hwang JN, Yoo JH, Choi KH (2013) A review on video-based human activity recognition. Computers 2(2):88–131. https://doi.org/10.3390/computers2020088
Keeling MJ, Hollingsworth TD, Read JM (2020) Efficacy of contact tracing for the containment of the 2019 novel coronavirus (covid-19). J Epidemiol Commun Health 74(10):861–866. https://doi.org/10.1136/jech-2020-214051
Kim Y, Toomajian B (2016) Hand gesture recognition using micro-doppler signatures with convolutional neural network. IEEE Access 4:7125–7130. https://doi.org/10.1109/ACCESS.2016.2617282
Kwapisz JR, Weiss GM, Moore SA (2011) Activity recognition using cell phone accelerometers. SIGKDD Explor Newsl 12(2):74–82. https://doi.org/10.1145/1964897.1964918
Lara OD, Labrador MA (2013) A survey on human activity recognition using wearable sensors. IEEE Commun Surv Tutor 15(3):1192–1209. https://doi.org/10.1109/SURV.2012.110112.00192
Li G, Geng E, Ye Z, Xu Y, Lin J, Pang Y (2018) Indoor positioning algorithm based on the improved rssi distance model. Sensors (Basel, Switzerland) 18(9):2820. https://doi.org/10.3390/s18092820
Luo F, Poslad S, Bodanese E (2019) Human activity detection and coarse localization outdoors using micro-doppler signatures. IEEE Sens J 19(18):8079–8094. https://doi.org/10.1109/JSEN.2019.2917375
Maddison R, Ni Mhurchu C (2009) Global positioning system: a new opportunity in physical activity measurement. Int J Behav Nutr Phys Act 6(1):73. https://doi.org/10.1186/1479-5868-6-73
Masum AKM, Bahadur EH, Shan-A-Alahi A, Uz Zaman Chowdhury MA, Uddin MR, Al Noman A (2019) Human activity recognition using accelerometer, gyroscope and magnetometer sensors: Deep neural network approaches. In: 2019 10th International Conference on Computing, Communication and Networking Technologies (ICCCNT), pp 1–6. https://doi.org/10.1109/ICCCNT45670.2019.8944512
Meyerowitz-Katz G, Merone L (2020) A systematic review and meta-analysis of published research data on covid-19 infection fatality rates. Int J Infecti Diseases IJID Off Publ Int Soc Infect Diseases 101:138–148. https://doi.org/10.1016/j.ijid.2020.09.1464
Mir AM, Yousaf MH, Dawood H (2018) Criminal action recognition using spatiotemporal human motion acceleration descriptor. J Electron Imaging 27(6):1–11. https://doi.org/10.1117/1.JEI.27.6.063016
Mukku, V.D., Lang, S., Reggelin, T.: Integration of lifi technology in an industry 4.0 learning factory. Procedia Manufacturing 31, 232–238 (2019). doi doi: 10.1016/j.promfg.2019.03.037. http://www.sciencedirect.com/science/article/pii/S2351978919304019. Research. Experience. Education. 9th Conference on Learning Factories (2019) CLF 2019. Braunschweig, Germany
Ogiela L (2020) Transformative computing in advanced data analysis processes in the cloud. Inf Process Manage 57(5):102260. https://doi.org/10.1016/j.ipm.2020.102260
Ogiela L, Ogiela MR (2020) Cognitive security paradigm for cloud computing applications. Concurr Comput Pract Exp 32(8):e5316. https://doi.org/10.1002/cpe.5316
Ogiela L, Takizawa M, Ogiela U (2020) Transformative computing for distributed services management protocols. In: Barolli L, Amato F, Moscato F, Enokido T, Takizawa M (eds) Advanced information networking and applications. AINA 2020. Advances in intelligent systems and computing, vol 1151. Springer, Cham. doi: https://doi.org/10.1007/978-3-030-44041-1_42
Ortiz Laguna J, Olaya AG, Borrajo D (2011) A dynamic sliding window approach for activity recognition. In: Konstan JA, Conejo R, Marzo JL, Oliver N (eds) User Modeling, Adaption and Personalization. Springer, Berlin, pp 219–230
Peppas K, Tsolakis AC, Krinidis S, Tzovaras D (2020) Real-time physical activity recognition on smart mobile devices using convolutional neural networks. Appl Sci. https://doi.org/10.3390/app10238482
Pienaar SW, Malekian R (2019) Human activity recognition using lstm-rnn deep neural network architecture. In: 2019 IEEE 2nd wireless africa conference (WAC), pp 1–5. https://doi.org/10.1109/AFRICA.2019.8843403
Rabaan AA, Al-Ahmed SH, Sah R, Al-Tawfiq JA, Al-Qaaneh AM, Al-Jamea LH, Woodman A, Al-Qahtani M, Haque S, Harapan H, Bonilla-Aldana DK, Kumar P, Dhama K, Rodriguez-Morales AJ (2020) Recent advances in vaccine and immunotherapy for covid-19. Hum Vaccines Immunother. https://doi.org/10.1080/21645515.2020.1825896
Ramanathan M, Yau W, Teoh EK (2014) Human action recognition with video data: Research and evaluation challenges. IEEE Trans Hum Mach Syst 44(5):650–663. https://doi.org/10.1109/THMS.2014.2325871
Reyes-Ortiz JL, Oneto L, Samà A, Parra X, Anguita D (2016) Transition-aware human activity recognition using smartphones. Neurocomputing 171:754–767. https://doi.org/10.1016/j.neucom.2015.07.085
Sasiwat Y, Buranapanichkit D, Chetpattananondh K, Sengchuai K, Jindapetch N, Booranawong A (2020) Human movement effects on the performance of the rssi-based trilateration method: adaptive filters for distance compensation. J Reliab Intell Environ 6(2):67–78. https://doi.org/10.1007/s40860-019-00094-x
Stoyanov SR, Hides L, Kavanagh DJ, Zelenko O, Tjondronegoro D, Mani M (2015) Mobile app rating scale: a new tool for assessing the quality of health mobile apps. JMIR mHealth uHealth 3(1):e27. https://doi.org/10.2196/mhealth.3422
Subetha T, Chitrakala S (2016) A survey on human activity recognition from videos. In: 2016 international conference on information communication and embedded systems (ICICES), pp 1–7. doi: https://doi.org/10.1109/ICICES.2016.7518920
Teixeira R, Doetsch J (2020) The multifaceted role of mobile technologies as a strategy to combat covid-19 pandemic. Epidemiol Infect 148:e244. https://doi.org/10.1017/S0950268820002435
Thakur D, Biswas S (2020) Smartphone based human activity monitoring and recognition using ml and dl: a comprehensive survey. J Ambient Intell Humaniz Comput 11(11):5433–5444. https://doi.org/10.1007/s12652-020-01899-y
Tripathi RK, Jalal AS, Agrawal SC (2018) Suspicious human activity recognition: a review. Artif Intell Rev 50(2):283–339. https://doi.org/10.1007/s10462-017-9545-7
Vishwakarma S, Agrawal A (2013) A survey on activity recognition and behavior understanding in video surveillance. Vis Comput 29(10):983–1009. https://doi.org/10.1007/s00371-012-0752-6
Wan S, Qi L, Xu X, Tong C, Gu Z (2020) Deep learning models for real-time human activity recognition with smartphones. Mobile Netw Appl 25(2):743–755. https://doi.org/10.1007/s11036-019-01445-x
Wang J, Chen Y, Hao S, Peng X, Hu L (2019) Deep learning for sensor-based activity recognition: A survey. Pattern Recogn Lett 119:3–11. https://doi.org/10.1016/j.patrec.2018.02.010
Witten IH, Frank E, Hall MA (2011) Chapter 10 - introduction to weka. In: Witten IH, Frank E, Hall MA (eds) Data mining: practical machine learning tools and techniques (Third Edition), The Morgan Kaufmann Series in Data Management Systems, third edition edn., pp 403–406. Morgan Kaufmann, Boston. https://doi.org/10.1016/B978-0-12-374856-0.00010-9
World Health Organization: Who coronavirus disease (covid-19) (2020). https://covid19.who.int/?gclid=CjwKCAiA_eb-BRB2EiwAGBnXXmBCVQsckjQvdqt9oqJ05qW6ccvQur5s2KFK-k5iu-GrpRphGscvjRoC96cQAvD_BwE
Xu W, Pang Y, Yang Y, Liu Y (2018) Human activity recognition based on convolutional neural network. In: 2018 24th International Conference on Pattern Recognition (ICPR), pp 165–170. https://doi.org/10.1109/ICPR.2018.8545435
Yu T, Chen J, Yan N, Liu X (2018) A multi-layer parallel lstm network for human activity recognition with smartphone sensors. In: 2018 10th International conference on wireless communications and signal processing (WCSP), pp 1–6. https://doi.org/10.1109/WCSP.2018.8555945
Zeng M, Nguyen LT, Yu B, Mengshoel OJ, Zhu J, Wu P, Zhang J (2014) Convolutional neural networks for human activity recognition using mobile sensors. In: 6th international conference on mobile computing, applications and services, pp 197–205. https://doi.org/10.4108/icst.mobicase.2014.257786
Zhu H, Kaneko T (2018) Comparison of loss functions for training of deep neural networks in shogi. In: 2018 conference on technologies and applications of artificial intelligence (TAAI), pp 18–23. https://doi.org/10.1109/TAAI.2018.00014
Funding
Open access funding provided by Università degli Studi di Salerno within the CRUI-CARE Agreement.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflicts of interest
The authors declare that they have no conflict of interest.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
D’Angelo, G., Palmieri, F. Enhancing COVID-19 tracking apps with human activity recognition using a deep convolutional neural network and HAR-images. Neural Comput & Applic 35, 13861–13877 (2023). https://doi.org/10.1007/s00521-021-05913-y
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00521-021-05913-y