Literature DB >> 28272362

A Comprehensive Analysis on Wearable Acceleration Sensors in Human Activity Recognition.

Majid Janidarmian1, Atena Roshan Fekr2, Katarzyna Radecka3, Zeljko Zilic4.   

Abstract

Sensor-based motion recognition integrates the emerging area of wearable sensors with novel machine learning techniques to make sense of low-level sensor data and provide rich contextual information in a real-life application. Although Human Activity Recognition (HAR) problem has been drawing the attention of researchers, it is still a subject of much debate due to the diverse nature of human activities and their tracking methods. Finding the best predictive model in this problem while considering different sources of heterogeneities can be very difficult to analyze theoretically, which stresses the need of an experimental study. Therefore, in this paper, we first create the most complete dataset, focusing on accelerometer sensors, with various sources of heterogeneities. We then conduct an extensive analysis on feature representations and classification techniques (the most comprehensive comparison yet with 293 classifiers) for activity recognition. Principal component analysis is applied to reduce the feature vector dimension while keeping essential information. The average classification accuracy of eight sensor positions is reported to be 96.44% ± 1.62% with 10-fold evaluation, whereas accuracy of 79.92% ± 9.68% is reached in the subject-independent evaluation. This study presents significant evidence that we can build predictive models for HAR problem under more realistic conditions, and still achieve highly accurate results.

Entities:  

Keywords:  human activity recognition; machine learning; sensors heterogeneities; supervised classification; wearable sensors

Mesh:

Year:  2017        PMID: 28272362      PMCID: PMC5375815          DOI: 10.3390/s17030529

Source DB:  PubMed          Journal:  Sensors (Basel)        ISSN: 1424-8220            Impact factor:   3.576


1. Introduction

The maturity of pervasive sensing, wireless technology, and data processing techniques enables us to provide an effective solution for continuous monitoring and promote individual’s health. Today, the miniature sensors can be unobtrusively attached to the body or can be part of clothing items to observe people’s lifestyle and behavior changes [1]. According to study presented in [2], on-body sensing proves to be the most prevalent monitoring technology for the gait assessment, fall detection and activity recognition/classification. As such, extensive research has been undertaken to select or develop reasoning algorithms to infer activities from the wearable sensor data. Human activity recognition thattargets the automatic detection of people activities, is one of the most promising research topics in different areas such as ubiquitous computing and ambient assistive living [3]. Low-cost, yet highly reliable accelerometer is the most broadly used wearable sensor for the sake of activity recognition and could provide high classification accuracy of 92.25% [4], 96% [5], and 99.4% [6]. 3-D accelerations can be represented as: where (acceleration), (acceleration due to gravity) and (applied linear acceleration) are measured in . There is a large amount of work on the use of sensing for activity monitoring and behavior profiling. For example, there are surveys [7,8,9] that provide an outline of relevant research and applicable techniques. In the real-life scenarios, the performance of a recognition system is often significantly lower than in reported research results. Igual et al. recently applied two different fall detection algorithms to show that the performances of the fall techniques are adversely affected with cross-dataset evaluation [10]. It shows that the performance of a fall detector reduced when it is tested on a dataset different from the one used for training. This is because there exist variations in training and testing device hardware, sensor models, and their operating system characteristics among others [11]. The performance of recognition models mainly depends on the activity set, training data quality, extracted features, and learning algorithms. Since each Machine Learning (ML) model in the literature was trained with a specific dataset and activity set, there is no significant evidence to claim that any predictive model is more precise than the others. In other words, the classification model is built based on the collected samples under specific conditions involving sensor type, position and orientation of sensors on the human body, sampling rate, and activity performance style. Therefore, the trained model may not be directly applied to other related datasets and may fail to understand the pattern, if there is any change in the sensor characteristics, data acquisition scenarios or the users (concerning, e.g., age, weight or physical fitness). For instance, different accelerometer sensors often suffer from various biases and thus differ in precision and resolution. This issue, combined with sampling rate instability of each device introduces major challenges for the HAR system design [12]. The difference in the styles of performance of an activity also poses some challenges for application developers and researchers. Stisen et al. [11] showed that even OS type and CPU load have also drastic negative effects on recognition accuracy. Therefore, we aim to comprehensively evaluate the machine learning algorithms to extend the applicability of the trained model dealing with diverse accelerometer measurements. In this work, we have aggregated 14 well-known benchmark datasets that are publicly available to the research community and, in each dataset, data have been collected with different devices (commercial mass-marketed or research-only devices), acquisition protocols (under naturalistic circumstances or laboratory environments), participants, sensors placements, models and biases, motion artifacts and sampling rate heterogeneities to have a big realistic dataset. Considering these challenges makes it difficult to obtain a robust activity recognizer that is invariant to biases and performs well on unseen datasets. This is the first time to the best of our knowledge that such rigorous activity recognition evaluation at a large-scale on ML techniques is investigated. This study will explain the pros and cons of variety of learning methods and will speed up implementation of robust recognition algorithms using wearable accelerometer sensors. We report the effects of heterogeneities on various classifiers considering two cross-validation techniques. K-fold (k = 10) is the most widely accepted methodology to compute the accuracy of a developed model in HAR problem [13]. In this technique, the model is trained using k – 1 of the folds as training data and the obtained model is validated on the remaining part of the data to compute the accuracy or other performance metrics. However, to explore the limitations of finding a personalization approach caused by large variance in per-user accuracy, a subject-independent cross-validation technique, Leave-One-Subject-Out (LOSO), is also considered. This paper in organized as follows. In Section 2, backgrounds in the field of human activity recognition and the adopted methodologies including feature extraction/selection and classification techniques with the parameters of prediction functions are addressed. The used datasets in this study will be discussed and listed in Section 3. Section 4 presents the experimental results obtained with different cross-validation techniques. Finally, a conclusion and some research perspectives are given in Section 5.

2. Backgrounds and Methodologies

Human Activity Recognition (HAR) starts with collecting data from the motion sensors. The data are partitioned into windows to apply feature extraction thereby filtering relevant information in the raw signals. Afterward, extracted features are used as inputs of each classifier that ultimately yields the HAR model. To evaluate the effect of sensing heterogeneity on classifiers, we do not perform any preprocessing steps. This problem is formulated as follows: Definition: With p extracted features from the motion sensors, given a set of labeled and equal-sized time windows, and a set of activity labels, the goal is to find the best classifier model C, such that for any which contains a feature set , the predicted label is as identical as possible to the actual activity performed during . p is the number of features in vector extracted from . Figure 1 depicts the whole system flow of sensor-based activity recognition for nine activities.
Figure 1

Sensor-based activity recognition procedure.

2.1. Data Segmentation, Feature Extraction and Selection

Stream of sensory data needs to be divided into subsequent segments. Fixed-size Sliding Window (FSW) is the most common method in segmentation step where the data stream is allotted into fixed-length windows with no inter-window gaps. If there is no degree of overlap between adjacent windows, it is called Fixed-size Non-overlapping Sliding Window (FNSW). The second method is Fixed-size Overlapping Sliding Window (FOSW), which is similar to FNSW except that the windows overlap during segmentation [8,9]. The use of overlap between adjacent windows has been shown to be effective in classification problem using wearable sensor data [14,15]. Finding the optimal window size t is an application-dependent task. The window size should be properly determined in such a way that each window is guaranteed to contain enough samples (at least one cycle of an activity) to differentiate similar movements. In addition, increasing the window size does not necessarily enhance the accuracy but may add computational complexity (causing higher latency). To better address the challenge, we analyze the influence of window sizes (ranging from 1 s to 15 s) on the classification performance. Feature extraction is to obtain the important characteristics of a data and represent them into a feature vector used as input of a classier [16]. Table 1 gives details about the most effective time/frequency-domain and heuristic features in the literature in the context of activity recognition. Due to low computational cost and high discriminatory ability of time-domain features, they are the most frequently employed features for real-time applications. We compute all the features listed in Table 1 using each reading of accelerometer sensor consists of 3-D accelerations (x, y, z). However, to minimize the effects of sensor orientation, we add another dimension to the sensor readouts, which is called the magnitude of the accelerometer vector, i.e., , because it is less sensitive to the orientation changes [17]. It is worth noting that the correlation features are calculated between each pair of axes, and the tilt angles are estimated by combination of all three axes as shown in Table 1. Each classifier is fed with the feature vectors obtained from fusing data at the feature level. As a result of the above feature extraction process, a total of 176 features are obtained for each segment and then scaled into interval [0, 1] using min-max normalization so as to be used for classification.
Table 1

The features list.

FeatureDescriptionFeatureDescription
Mean μs=1ni=1nsi Skewness 1nσs3i=1n(siμs)3
Minimum min(s1,s2,sn) Kurtosis 1nσs4i=1n(siμs)4
Maximum max(s1,s2,sn) Signal Power i=1nsi2
Median median (s1,s2,sn) Root Mean Square 1ni=1nsi2
Standard Deviation σs=1ni=1n(siμs)2 Peak Intensity The number of signal peaks within a certain period of time
Coefficients of Variation σsμs Pearson's Correlation Coefficient cov(a,b)σaσb
Peak-to-peak Amplitude max (s)min(s) Inter-axis Cross-Correlation i=1n(aiμa)(biμb)i=1n(aiμa)2i=1n(biμb)2
Percentiles t=npi100+0.5, pi=10, 25, 50, 75, 90 AutocorrelationR(k)=1(nk)σs2i=1nk(siμ)(si+kμ)  k<n; the height of the first and second peaks and the position of the second peak of R(k)
percentile(s,pi)=(1f)sk+fsk+1
k = integer part of t; f = fractional part of t
Interquartile Range percentile(s,75 ) percentile(s,25 ) Trapezoidal Numerical Integration 1ns(x)dx using Multiple Segment Trapezoidal Rule
Pitch Angle arctan(xiy2+zi2) Signal Magnitude Area 1ni=1n(|xi|+|yi|+|zi|)
Roll Angle arctan(yix2+zi2) Signal Vector Magnitude 1ni=1nxi2+y2+zi2
Median Crossings t = s − median(s)Power Spectral Density1ni=1n1(sicos2πfin)2+(sisin2πfin)2 f denotes the fth Fourier coefficient in the frequency domain; the positions and power levels of highest 6 peaks of PSD computed over the sliding window; total power in 5 adjacent and pre-defined frequency bands.
MC=i=1nsgn(ti.ti+1)
sgn(a,b) = {1 if (a.b) < 0; 0 if (a.b) > 0}
As not all features are equally useful in discriminating between activities, Principal Component Analysis (PCA) is applied to map the original features into a lower dimensional subspace (i.e., new mutually uncorrelated features) , where m ≤ p [18]. It also significantly reduces the computational effort of the classification process. The PCA components can be counted by X = YP, where X and Y are centering and input matrix, respectively and P is a matrix of eigenvector of the covariance vector matrix C = PΛP. Λ is a diagonal matrix whose diagonal elements are the eigenvalues corresponding to each eigenvector [19]. The new feature vectors are so-called principal components and arranged according to their variance (from largest to lowest). To keep the essential information in acceleration data that describe human activity, we take the first principal components that explain 95% of the total variance. The pairwise scatter plots of the first four components (transformed features) of one of test cases are given in Figure 2. As expected, the first components (the first component against the second component) for different classes are better clustered and more distinct.
Figure 2

The pairwise scatter plots of the first four components.

2.2. Machine Learning Techniques

In this study, we are dealing with the supervised machine learning methods where the class labels are used to train the feature vectors extracted from each separate segment of data. We attempt the most complete analysis on performance of classifiers to discriminate among different types of activity. Wide range of machine learning methods have been applied for recognition of human activities such as decision tree (DT) [20,21,22,23,24,25], Support Vector Machines (SVM) [4,5,20,23,25,26,27,28], K-Nearest Neighbors (KNN) [20,21,23,25,27], Naïve Bayes (NB) [20,23,25,29], artificial Neural Network (NN) [23,24,26,30] and ensemble of classifiers [6,20,25,26]. We explore 293 different classifiers including Decision Tree, Discriminant Analysis, Support Vector Machines, K-Nearest Neighbors, Ensemble Methods, Naïve Bayes and Neural Network with their different parameters. The methods and their parameters setting are described and given IDs in Appendix A. The main objective of implementing different classification techniques is to review, compare and evaluate their performance considering the most well-known heterogeneous datasets publicly open to the research community. We are going to intertwine different issues and suggest solutions if we expect reasonable results in the practical applications.

3. Datasets

To design a robust learning model working in more realistic conditions, we combined 14 datasets, focusing on accelerometer sensors that contain several sources of heterogeneities such as measurement units, sampling rates and acquisition protocols that are present in most real-world applications. Table 2 listed the datasets and brought the details of the collected data in each project. In total, the aggregated dataset has about 35 million acceleration samples from 228 subjects (with age ranging from 19 to 83) of more than 70 different activities. This is the most complete, realistic, and transparent dataset in this context.
Table 2

The datasets used in this study.

DatasetNumber of SubjectsSensor TypeFrequencySensor PlacementActivity TypeDescription
(1) [5]30 (19–48 year)accelerometer gyroscope (Samsung Galaxy S II smartphone)50 Hzwaist (1)walking, ascending stairs, descending stairs, sitting, standing, laying (6)In the first trial, each subject placed the smartphone in a predetermined position i.e., the left side of the belt. However, in the second attempt, they could fix the phone in a desired position on the waist.
(2) [6]4 (28–75 year) (45 ± 21.49)ADXL335 accelerometer (connected to an ATmega328V microcontroller)~8 Hzwaist, left thigh, right ankle, right arm (4)walking, sitting, sitting down, standing, standing up (5)The data have been collected during 8 h of five different activities for all subjects.
(3) [27]8 (20–30 year)accelerometer gyroscope magnetometer (Xsens MTx unit)25 Hzchest, right and left wrists, right side of the right knee, left side of the left knee (5)walking in a parking lot, sitting, standing, lying, ascending/descending stairs, walking on a treadmill with a speed of 4 km/h (in flat and 15° inclined positions), etc. (19)The subjects performed nineteen activities by their own style and were not controlled during data collection sessions.
(4) [33]16 (19–83 year)accelerometer (6-bit resolution)32 Hzright wrist (1)walking, climbing stairs, descending stairs, laying down on bed, sitting down on chair, brushing teeth, eating meat, etc. (14)There are postural transitions, reiterated and complex activities in the dataset.
(5) [34]22 (25–35 year)Accelerometer (Google Nexus One)~30 Hzjacket pocket on the chest (1)walking (1)The walking data of several subjects were collected in indoor and outdoor under real-life circumstances.
(6) [34]15 (27–35 year)accelerometer (Shimmer)52 Hzchest (1)walking, walking and talking, standing, standing up, talking while standing, going up/down stairs, etc. (7)They used a low-power, low-cost BeagleBoard with a Linux embedded operating system to transmit data over Bluetooth.
(7) [21]17 (22–37 year)accelerometer gyroscope magnetometer (Xsens MTx unit)50 Hzright and left calves, right and left thighs, back, right and left lower arms and right, left upper arms (9)walking, jogging, running, jump up, rowing, cycling, etc. (33)The dataset includes a wide range of physical activities (warm up, cool down and fitness exercises).
(8) [22]10accelerometer gyroscope magnetometer (Shimmer)50 Hzchest, right wrist, left ankle (3)walking, sitting and relaxing, standing still, lying down, climbing stairs, running, cycling, etc. (12)This dataset covers common activities of the daily living, given the diversity of body parts involved in each one, the intensity of the actions and their execution speed or dynamicity.
(9) [35]14 (21–49 year) (30.1 ± 7.2)accelerometer gyroscope (MotionNode)100 Hzfront right hip (1)walking forward, left and right, sitting and fidgeting, standing, going upstairs and downstairs, running forward, jumping up and down, etc. (12)There were 5 trials for each activity and each subject performed the experiments on different days at indoor and outdoor places.
(10) [36]20 (19–75 year)accelerometer 2-axis gyroscope (attached to Tmote Sky)30 Hzwaist, right and left wrists, right and left ankle (5)walking forward, right-circle and left-circle, sitting, lying down, standing, going upstairs and downstairs, jogging, jumping, turning right and left etc. (13)The design of the wearable sensor network was based on platform named DexterNet that implemented a 3-level architecture for controlling heterogeneous body sensors.
(11) [23]4 (25–30 year)accelerometer gyroscope (Samsung Galaxy S II)50 Hzbelt, right arm, right wrist and right jeans pocket (4)walking, sitting, standing, walking upstairs and downstairs, running (6)Every participant performed each activity between 3 and 5 min. The smartphone was horizontally kept for belt and vertically for the arm, wrist, and pocket.
(12) [24]36accelerometer (Android-based smartphone)20 Hzfront pants leg pocket (1)walking, sitting, standing, upstairs, downstairs, jogging (6)The android app, through a simple graphical user interface, permits to record the user’s name, start and stop the data collection, and label the activity being performed.
(13) [37]19 (23–52 year)accelerometer gyroscope magnetometer (Xsens MTx unit)100 Hzbelt either on the right or the left part of the body, at the subject’s choice (1)walking, sitting, standing, lying, running, falling, jumping (9)Data were logged in indoor and outdoor settings under semi-naturalistic conditions.
(14) [25]10 (25–30 year)accelerometer gyroscope magnetometer (Samsung Galaxy S II)50 Hzright and left jeans pocket, belt position towards the right leg, right upper arm, right wrist (5)walking, sitting, standing, walking upstairs and downstairs, jogging, biking (8)All test protocols were carried inside a building, except biking.
We considered 10 major positions on the body i.e., Waist (W), Right Lower Arm (RLA), Left Lower Arm (LLA), Right Upper Arm (RUA), Left Upper Arm (LUA), Right Lower Leg (RLL), Left Lower Leg (LLL), Right Upper Leg (RUL), Left Upper Leg (LUL), and Chest (C). All sensors positions described in each dataset have been mapped into the major positions. For example, if a subject puts the cellphone in the left front pants pocket, we consider it as Left Upper Leg (LUL) position, or wrist, which is a great place for many commercial wearables, is considered as RLA/LLA in this paper. In this field, numerous studies [31,32] have shown that the performance of HAR systems strongly depends on sensor placement since the number and the placement of inertial sensors have direct effects on the measurement of bodily motions. Each placement turns out to be more suitable in terms of performance for particular activities. Besides, having fewer sensors attached to the body is more preferable since wearing multiple ones can become burdensome and is not well-accepted. Therefore, we limited our modeling and analysis for single-accelerometer data while we still expect a sufficiently high recognition rate for the picked activities. According to the datasets, the most examined activities (top activities) are walking, running, jogging, cycling, standing, sitting, lying down, ascending and descending stairs which also represent the majority of everyday living activities. Another observation we find is that in eight major positions we have data for all top activities. Therefore, we choose them as target activities for eight separate positions (W, RLA, LLA, RUL, LUL, RLL, LLL and C). We created rectangular tree map that presents dense volumes of data in a space filling layout allowing for the visual comparison of datasets contributions in each target position (see Figure 3). For example, as depicted in Figure 3, datasets 3, 5, 6, 7 and 8 contribute data for constructing the chest dataset with nine activities.
Figure 3

The rectangular tree map that presents dense volumes of data in a space filling layout to see datasets contributions in each target position. Laying Down (LD), Ascending Stairs (AS), Descending Stairs (DS). The number inside each rectangle indicates the dataset number (see first column of Table 2).

4. Experimental Results and Discussions

In this section, we report the effects of the heterogeneities, from sensors characteristics, data collection scenarios and subjects, on various feature representation techniques and 293 classifiers considering two cross-validation techniques. First, the 10-fold cross-validation strategy is applied as one of the most accurate approaches for model selection. Figure 4 shows the minimum and maximum obtained accuracy of each classifier over different window sizes with the waist accelerometer data. The algorithms are sorted according to the best obtained accuracy. Considering the best acquired accuracy for each classification category in this position, the ensemble methods KNN (Subspace) and Tree (Bagging) achieved the highest activity recognition rate whereas DT performed the worst. Further DA, DA (Subspace), Tree (AdaBoost), Tree (RUSBoost) and NB performed almost equal but worse than SVM, NN and KNN. As can be seen, some classification learning algorithms are more sensitive to parameters settings and window size and may thus be more likely to exhibit significant differences. To have a better and deeper investigation, we extracted the classifiers with top 5% accuracies and call them “topClassifiers” for each position. Figure 5 depicts the range of topClassifiers accuracies for each position. A red dashed line annotation shows the 95th percentile of obtained accuracies.
Figure 4

The minimum and maximum accuracy of each classifier over different window sizes, ranging from 1 s to 15 s, with the waist accelerometer data.

Figure 5

The range of topClassifiers accuracies for (a) Waist; (b) RLA; (c) LLA; (d) RUL; (e) LUL; (f) RLL; (g) LLL; and (h) Chest.

As can be seen in this figure, most of the recognition methods remain consistent in their relative performance across different accelerometer data obtained from different positions. As explained in Section 2, finding the optimal length of window size is an application-dependent task. The window size should be properly determined in such a way that each window is guaranteed to contain enough samples to differentiate similar activities or movements. Thus, we consider different window sizes ranging from 1 s to 15 s in steps of 1 s to ensure the statistical significance of the calculated features. It comprises most of the values used in the previous activity recognition systems [8]. Figure 6 describes the ranking of different window sizes in providing the best accuracy (among all classifiers) in each position. For example, window of length 7 s provides the best classification accuracy when the sensor is attached on the RLA. The second best accuracy value for RLA is achieved with window size 8 s. The first line in this figure shows the window sizes of the best accuracies for each position. In contrast to LLL where the top four accuracy values have been observed in small window sizes ranging from 2 s to 5 s, chest provides the top-rank accuracy values in large window sizes from 10 s to 15 s. This observation is more highlighted in orange line (w = 1 s) where all positions obtain the worst case accuracy values except for the LLL. However, in some cases we can change the window size (increase/decrease) at the expense of a subtle performance drop. For example, in chest position, the window size can be reduced from 15 s to 7 s by only tolerating 0.16% in recognition performance.
Figure 6

The rank of window sizes in providing the best accuracy in each position.

The bar charts in Figure 5 indicate the number of window sizes (1 s to 15 s) in which the topClassifiers provided good results (top 5%). An interesting observation from the bars is that some classifiers such as KNN (Subspace), Tree (Bagging) and SVM work well with most windows sizes. This means they could mitigate the effect of window size to gain meaningful information for the activity classification process. To have a better understanding of window size effect on accuracy, Figure 7 shows the topClassifiers across all window sizes in each position. As can be observed, the interval 3–10 s proves to provide the best accuracies in most cases considering the target activities. This range can be reduced if fusion of multiple sensors is used for feature extraction. Another point worth mentioning that is for the underlying periodic activities, large window sizes do not necessarily translate into a better recognition performance.
Figure 7

Effect of window size to gain meaningful information for the activity classification in (a) 3D and (b) 2D representations.

Although accuracy is necessary for all recognition algorithms, it is not the only parameter to consider in designing a recognition model. The runtime complexity (classification step) is another important challenge as the model should be working fast and responsive regardless of where it is deployed i.e., on/off-device. Thus, we make use of the concept of Pareto optimality to extract superior solutions from topClassifiers to tradeoff classifier accuracy and runtime. We consider two objective functions, i.e., misclassification and runtime, to be minimized. A feasible solution x dominates a feasible solution y when where is the ith objective function. However, in many problems, there is usually no single solution that is superior to all others, so the non-dominated solutions compose the Pareto front. For example, in Figure 8, we populate the runtime-accuracy plane with some topCalssifiers for waist position and depict the Pareto front. The shaded area represents the region in space that is dominated by the point x which is non-dominated and hence belong to the Pareto front [38]. All points in this region are inferior to x in both objectives. In addition, if we want to minimize an objective to a constraint, e.g., , the Pareto front provides the solution for all possible values of the cap c [38]. Therefore, the Pareto front contains significantly richer information than one obtains from single-objective formulations. Table 3 summarizes the non-dominated classifiers in each position. The results show a clear tradeoff between classifiers runtime and accuracy. There is no strong relation between the sensor position and classification performance. In overall, the highest classification accuracy was achieved by KNN (Subspace), and KNN stayed in the second place, which is followed by SVM and NN. Figure 9a depicts the overall view of the non-dominated classifiers and their power in providing high recognition accuracy. The size of each classifier ID in this figure represents the number of times that the corresponding classifier has been reported in Table 3.
Figure 8

Illustration of some Pareto fronts when minimizing two objectives (misclassification and classification runtime) according to the obtained results in the waist.

Table 3

The accuracy and runtime of non-dominated classifiers.

Classifier IDAccuracy (%)Misclassification (%)Runtime (ms)Classifier IDAccuracy (%)Misclassification (%)Runtime (ms)
Waist Left Upper Leg
2193.826.189.312196.693.313.52
2894.025.989.572496.623.383.39
10893.756.259.245795.934.07 2.92
10994.075.9310.416096.113.893.11
18393.756.258.9222296.153.853.16
18993.726.28 8.80 26797.632.3734.73
19094.045.9610.1326897.862.14102.90
26795.484.5245.95269 98.03 1.97 151.83
26895.514.49121.58Right Lower Leg
269 95.67 4.33 196.101695.52 4.48 113.05
Right Lower Arm 2493.826.188.03
2493.116.89 7.61 2893.456.55 8.02
10293.296.718.0126795.364.6430.73
26795.144.8633.9029094.525.488.25
26895.294.7187.8029194.975.039.14
269 95.30 4.70 149.78Left Lower Leg
Left Lower Arm 2194.265.747.91
2892.297.717.592593.166.84 7.79
5791.508.50 7.31 26795.994.0132.36
6391.618.397.35268 96.38 3.62 83.45
10292.247.767.5029093.646.367.89
267 94.06 5.94 32.5029195.024.988.85
Right Upper Leg Chest
2497.932.077.042196.173.836.97
5797.332.67 6.94 8495.254.75 6.58
6397.432.57 6.94 8795.434.576.95
18398.051.957.4910596.483.527.63
18997.972.037.2116895.394.616.91
267 98.85 1.15 32.1218396.373.637.02
29198.141.868.0826797.522.4829.64
26897.672.3376.49
269 97.72 2.28 125.10
Figure 9

(a) Overall view of the non-dominated classifiers (classifier ID) and their power in providing high recognition accuracy (b) recognition system capabilities for diverse overlap values.

The KNN has the best classification runtime (7 ± 1.78 ms) fed with a feature vector among all of them. While for classification accuracy, it is always after its ensemble method KNN (Subspace). In all cases, KNN (Subspace) with average accuracy (96.42% ± 1.63%) provided better results than all other non-dominated classifiers, with the exception of data from the RLL, where the SVM (95.52%) provided superior accuracy. However, SVM’s prominence is negligible while considering its runtime (113.05 ms) and no significant accuracy improvement (0.1%). Given the accuracy results stated in Table 3, although NN classifiers provide promising results in most cases, they are dominated by other techniques and could be only among the selected methods in three positions RUL, RLL and LLL. With a closer look at the classifications results in Figure 5 and tabulated results, we find out ensemble method Tree (Bagging) is a very strong method and is among topClassifiers in all cases, but is always outperformed by other methods in terms of both accuracy and runtime. According to the selected KNN classifiers, the distance method affects most in the performance. City block and Euclidean have been the best choices and too large value for k does not improve the performance as it destroys locality. We also can draw another conclusion that there was no significant difference in KNN (Subspace) performance with different number of learners (i.e., 10, 20 and 40). Therefore, applying fewer learners is preferentially utilized due to its much lower runtime. Regarding the position analysis, the best performance (98.85% and 98.03%) is achieved with the aggregated data on RUL and LUL. Chest is the next best performing placement (97.72%) compared to the RLL (95.52%), LLL (96.38%), RLA (95.30%), LLA (94.06%) and Waist (95.67%). Different studies [15,26,39] show that the use of overlap between successive sliding windows help the classifiers to be trained with more feature vectors and consequently improve the recognition performance. However, it adds more computational work needed to process the overlapped data multiple times. To evaluate the effectiveness of the degree of overlap, the overlaps of 10%, 25%, 50%, 75% and 90% are used where the percentage is the amount the window slides over the previous window. For instance, a sliding window with 25% overlap will start the next window while the previous window is 75% complete. The value can range from 0% to 99%, since a 100% sliding window is erroneous. Figure 9b illustrates the recognition system capabilities for diverse overlap values while keeping the best window size in each position (see Figure 6). The results demonstrate that the performance tendency is increased in most cases by overlapping more data segmentations. An average increase of 3.28% in the best accuracy was found between the 0% and 90% overlap scenarios and all obtained with ensemble of KNN. Figure 10 also illustrates the number of classifiers that provide good results (90%–99%) by considering different overlap sizes. The larger the overlap, the more improvement is expected in performance. As described, this is because more features can be trained and consequently the predictive model almost certainly works better in testing phase; however, it suffers from more training time.
Figure 10

Analysis of number of classifiers, which provide good results (90%–99%) by taking different overlap sizes into account for different positions.

In activity recognition problem, K-fold cross-validation is an accurate approach for model selection; however, Leave-One-Subject-Out (LOSO), which is also called subject-independent cross-validation, can be used to avoid possible overfitting and is one of the best approaches in estimating realistic performance. Because LOSO reflects inter-subject variability and tests on yet-unseen data, it consequently leads to a decrease in accuracy. According to combined datasets in each position (see Figure 3), we conducted LOSO evaluation where the KNN (Subspace) is trained on activity data for all subjects except one. Then, the classifier is tested on the data for only the subject left out of the training data set. The procedure is then repeated for all subjects in each position and the mean accuracy is reported. For each position, the window size and overlap are set based on the best acquired results from 10-fold evaluation. Based on the aggregated data for each position, the models trained in LUL (92.35%) and LLL (90.03%) positions were not affected much by interpersonal differences in the body movement of subjects and could obtain relatively good results of accuracy. They are followed by Chest (86.31%) and RLL (83.51%), which are better performing placements compared to the lower arm positions. The RLA (64.62%) was influenced the most and LLA (77.12%) accounted for a substantial decrease in accuracy, as well. Result of Waist (72.53%) was very similar to one reached by RUL (72.91%), but both suffer performance degradation by more than 25%. As expected the accuracy of recognition in all positions was reduced since the trained model deals with a set of data that might have new measurement characteristics. As the best classifier of each position in average goes down 17.13% in accuracy, there is a need for further studies investigating new relevant features and novel machine learning model to be sufficiently flexible in dealing with inter-person differences in the activities’ performances in a position-aware scenario.

5. Conclusions

In this study, different machine learning techniques were deeply explored when heterogeneity of devices and their usage scenarios are intrinsic. In addition, each position was analyzed based on the aggregated tri-axial accelerometer data from different datasets. Hence, the quantitative comparison of the classifiers was hindered by the fact that each position is explored with a different aggregated dataset. In each position investigation, in addition to different sources of heterogeneities in data, there are also different factors such as body shape, clothing, straps, belt and accidental misplacements/disorientations (in the form of rotations or translations) that make the analysis harder to have a solid model. The averaged results showed 96.44% ± 1.62% activity recognition accuracy when using K-fold and 79.92% ± 9.68% accuracy when using a subject-independent cross-validation. According to the obtained results, it is clear that new data with different sources of heterogeneities could significantly reduce the accuracy with more than 32% (e.g., in RLA) based on LOSO evaluation. An overall look into the results, KNN and its ensemble methods showed stable results over different positions and window sizes, indicating its ability in designing a robust and responsive machine learning model in the wearables, and they are followed by NN and SVM. However, as we showed in this paper, the choice of parameter values in each classifier can have a significant impact on recognition accuracy and should be taken into account (see Appendix A). Considering the promising results in this pilot study, we intend to work on novel features extraction methods and classifiers that outperform classical classification methods while better dealing with inter-person differences and data diversities. Another point that deserves to be further assessed is optimizing the runtime performance since it has a great role in efficiency of the cloud-based machine learning deployments.
Table A1

The common techniques for splitting nodes in DT.

Split CriterionDescriptionSplit CriterionDescriptionSplit CriterionDescription
Gini’s Diversity Index (GDI) ip(i)(1p(i))=1ip2(i) Devianceip(i)log p(i) Towing rule p(L)p(R)(i|L(i)R(i)|)2
Let L(i)/R(i) denote the fraction of members of class i in the left/right child node after a split and p(L)/p(R) are the fractions of observations that split to the left/right
p(i) is the probability that an arbitrary sample belongs to class li. based the concept of entropy from information theory
Table A2

The applied kernels in SVM.

KernelFormulaKernelFormulaKernelFormula
Linear xiTxj Polynomial (xiTxj+1)d Radial basis function (RBF) exp(||xixj||22σ2)
Table A3

The distance metrics in KNN.

Distance MetricDescriptionDistance MetricDescriptionDistance MetricDescription
Euclidean i=1n(xsiyti)2 Standardized Euclideani=1n(xsiyti)2si2 si is the standard deviation of the xsi and yti over the sample setCorrelation 1(xsxs¯)(ytyt¯)(xsxs¯)(xsxs¯)'(xsxs¯)(ytxs¯) xs¯=1nixsi and ys¯=1niyti
City Block i=1n|xsiyti| Minkowskii=1n|xsiyti|pp In this work, p = 3 Mahalanobis(xsiyti)C1(xsiyti)' C is the covariance matrix
Chebychev maxi{|xsiyti|} Cosine1xsyt(xsxs)(ytyt) Spearman 1(rsrs¯)(rtrt¯)(rsrs¯)(rsrs¯)(rsrs¯)(rtrs¯) rsi is the rank of xsi over xs. If any xs values are tied, their average rank is computed
Table A4

The applied kernel smoother types in NB.

Kernel TypeFormulaKernel TypeFormula
Uniform 0.5 I{|x|1} Epanechnikov0.75 (1x2) I{|x|1}
Normal (Gaussian) 12πe0.5 x2 Triangular(1|x|) I{|x|1}
  12 in total

1.  SVM-based multi-sensor fusion for free-living physical activity assessment.

Authors:  Shaopeng Liu; Robert X Gao; Dinesh John; John Staudenmayer; Patty S Freedson
Journal:  Conf Proc IEEE Eng Med Biol Soc       Date:  2011

2.  Training feedforward networks with the Marquardt algorithm.

Authors:  M T Hagan; M B Menhaj
Journal:  IEEE Trans Neural Netw       Date:  1994

Review 3.  Activity identification using body-mounted sensors--a review of classification techniques.

Authors:  Stephen J Preece; John Y Goulermas; Laurence P J Kenney; Dave Howard; Kenneth Meijer; Robin Crompton
Journal:  Physiol Meas       Date:  2009-04-02       Impact factor: 2.833

4.  Single-accelerometer-based daily physical activity classification.

Authors:  Xi Long; Bin Yin; Ronald M Aarts
Journal:  Conf Proc IEEE Eng Med Biol Soc       Date:  2009

5.  Respiration Disorders Classification With Informative Features for m-Health Applications.

Authors:  Atena Roshan Fekr; Majid Janidarmian; Katarzyna Radecka; Zeljko Zilic
Journal:  IEEE J Biomed Health Inform       Date:  2015-07-21       Impact factor: 5.772

Review 6.  Real-time human ambulation, activity, and physiological monitoring: taxonomy of issues, techniques, applications, challenges and limitations.

Authors:  Rinat Khusainov; Djamel Azzi; Ifeyinwa E Achumba; Sebastian D Bersch
Journal:  Sensors (Basel)       Date:  2013-09-25       Impact factor: 3.576

7.  Design, implementation and validation of a novel open framework for agile development of mobile health applications.

Authors:  Oresti Banos; Claudia Villalonga; Rafael Garcia; Alejandro Saez; Miguel Damas; Juan A Holgado-Terriza; Sungyong Lee; Hector Pomares; Ignacio Rojas
Journal:  Biomed Eng Online       Date:  2015-08-13       Impact factor: 2.819

8.  Window size impact in human activity recognition.

Authors:  Oresti Banos; Juan-Manuel Galvez; Miguel Damas; Hector Pomares; Ignacio Rojas
Journal:  Sensors (Basel)       Date:  2014-04-09       Impact factor: 3.576

9.  A medical cloud-based platform for respiration rate measurement and hierarchical classification of breath disorders.

Authors:  Atena Roshan Fekr; Majid Janidarmian; Katarzyna Radecka; Zeljko Zilic
Journal:  Sensors (Basel)       Date:  2014-06-24       Impact factor: 3.576

10.  Fusion of smartphone motion sensors for physical activity recognition.

Authors:  Muhammad Shoaib; Stephan Bosch; Ozlem Durmaz Incel; Hans Scholten; Paul J M Havinga
Journal:  Sensors (Basel)       Date:  2014-06-10       Impact factor: 3.576

View more
  34 in total

1.  Human Activity Recognition using Inertial, Physiological and Environmental Sensors: A Comprehensive Survey.

Authors:  Florenc Demrozi; Graziano Pravadelli; Azra Bihorac; Parisa Rashidi
Journal:  IEEE Access       Date:  2020-11-16       Impact factor: 3.367

2.  Identifying daily activities of patient work for type 2 diabetes and co-morbidities: a deep learning and wearable camera approach.

Authors:  Hao Xiong; Hoai Nam Phan; Kathleen Yin; Shlomo Berkovsky; Joshua Jung; Annie Y S Lau
Journal:  J Am Med Inform Assoc       Date:  2022-07-12       Impact factor: 7.942

3.  Quantification of Motor Function in Huntington Disease Patients Using Wearable Sensor Devices.

Authors:  Mark Forrest Gordon; Igor D Grachev; Itzik Mazeh; Yonatan Dolan; Ralf Reilmann; Pippa S Loupe; Shai Fine; Leehee Navon-Perry; Nicholas Gross; Spyros Papapetropoulos; Juha-Matti Savola; Michael R Hayden
Journal:  Digit Biomark       Date:  2019-09-06

4.  Development and validation of smartwatch-based activity recognition models for rigging crew workers on cable logging operations.

Authors:  Eloise G Zimbelman; Robert F Keefe
Journal:  PLoS One       Date:  2021-05-12       Impact factor: 3.240

5.  A Continuous Identity Authentication Scheme Based on Physiological and Behavioral Characteristics.

Authors:  Guannan Wu; Jian Wang; Yongrong Zhang; Shuai Jiang
Journal:  Sensors (Basel)       Date:  2018-01-10       Impact factor: 3.576

6.  [-25]A Similarity Analysis of Audio Signal to Develop a Human Activity Recognition Using Similarity Networks.

Authors:  Alejandra García-Hernández; Carlos E Galván-Tejada; Jorge I Galván-Tejada; José M Celaya-Padilla; Hamurabi Gamboa-Rosales; Perla Velasco-Elizondo; Rogelio Cárdenas-Vargas
Journal:  Sensors (Basel)       Date:  2017-11-21       Impact factor: 3.576

7.  Activity Recognition Invariant to Sensor Orientation with Wearable Motion Sensors.

Authors:  Aras Yurtman; Billur Barshan
Journal:  Sensors (Basel)       Date:  2017-08-09       Impact factor: 3.576

8.  Windows Into Human Health Through Wearables Data Analytics.

Authors:  Daniel Witt; Ryan Kellogg; Michael Snyder; Jessilyn Dunn
Journal:  Curr Opin Biomed Eng       Date:  2019-01-28

9.  Human Activity Recognition for People with Knee Osteoarthritis-A Proof-of-Concept.

Authors:  Jay-Shian Tan; Behrouz Khabbaz Beheshti; Tara Binnie; Paul Davey; J P Caneiro; Peter Kent; Anne Smith; Peter O'Sullivan; Amity Campbell
Journal:  Sensors (Basel)       Date:  2021-05-12       Impact factor: 3.576

10.  An Activity Recognition Framework Deploying the Random Forest Classifier and A Single Optical Heart Rate Monitoring and Triaxial AccelerometerWrist-Band.

Authors:  Saeed Mehrang; Julia Pietilä; Ilkka Korhonen
Journal:  Sensors (Basel)       Date:  2018-02-22       Impact factor: 3.576

View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.