Skip to main content

Recognition of human activities with wearable sensors

Abstract

A novel approach for recognizing human activities with wearable sensors is investigated in this article. The key techniques of this approach include the generalized discriminant analysis (GDA) and the relevance vector machines (RVM). The feature vectors extracted from the measured signal are processed by GDA, with its dimension remarkably reduced from 350 to 12 while fully maintaining the most discriminative information. The reduced feature vectors are then classified by the RVM technique according to an extended multiclass model, which shows good convergence characteristic. Experimental results on the Wearable Action Recognition Dataset demonstrate that our approach achieves an encouraging recognition rate of 99.2%, true positive rate of 99.18% and false positive rate of 0.07%. Although in most cases, the support vector machines model has more than 70 support vectors, the number of relevance vectors related to different activities is always not more than 4, which implies a great simplicity in the classifier structure. Our approach is expected to have potential in real-time applications or solving problems with large-scale datasets, due to its perfect recognition performance, strong ability in feature reduction, and simple classifier structure.

1 Introduction

Activity recognition has become one of the most active topics in context-aware computing, due to its wide application prospects in industrial, educational, and medical domains [13]. For instance, characterization of the activities of assembly-line workers can increase the safe reliability and improve the productivity [1]; as another example, monitoring the human activity of daily life can provide very useful information for medical diagnosis, elderly care, as well as the assessment of individuals' physical and mental conditions [2].

Early studies in activity recognition employed vision-based systems with single or multiple video cameras, which remains the most common means to date [4, 5]. In general, such systems may be acceptable and practical in a laboratory or well-controlled environment. However, when the activities take place in the real-home setting or outdoors environment, the accuracy of activity recognition would be affected by variable lighting condition or the clutter disturbance [6]. Wearable-sensor-based system offers an appropriate alternative to activity recognition [711], which is inherently immune to the shadow and occlusion effects. Furthermore, compared with the vision-based systems, this kind of systems would not supply additional privacy information, thus the subjects may act more naturally as in their daily life. Another major advantage in using wearable-sensor-based systems is that the cost of storing and processing data can greatly be reduced. Therefore, in this article we will focus on developing an effective approach for activity recognition with wearable sensors.

Feature dimension reduction (which can be seen as a feature selection operation) is an important and essential procedure before classification [68]. A high-dimensional feature would result in the following problems: First, some features are irrelevant or redundant and cannot provide supportive information for classification (in the worst sense, inappropriately emphasizing such features may even hinder the recognition accuracy); second, the training of classifiers in a high-dimensional space would be difficult and time consuming. Therefore, it is desirable to effectively reduce the dimension of the feature set before performing the classification task. Principal component analysis (PCA) and linear discriminant analysis (LDA) are two classical techniques for data dimension reduction [79, 12, 13]. The essence of the PCA is to find the optimal projection directions that maximally preserve the data variance. However, it does not take into account the class label, thus the 'optimal' projection directions may not give the most discriminating feature. While LDA seeks the optimal projection directions that maximize the ratio of between-class scatter and within-class scatter. However, it cannot capture the nonlinear relationships among samples. To overcome the weakness of LDA, the generalized discriminant analysis (GDA) based on the kernel trick has been proposed in [14], which can be viewed as an extension of LDA. Actually, GDA has been proved superior to LDA in many applications such as face recognition, document analysis, and image retrieval [1517].

As to the existing classification methods, most of them can be divided into two categories, depending on whether they are based on the kernel-based leaning or not. The non-kernel-based learning classification methods [for instance, the k-nearest neighbor (k-NN) method] usually give equal or comparative weight to each training sample, which may not be reasonable in some cases. While the kernel-based leaning classification methods [for instance, the support vector machines (SVM) method] try to pick out the informative samples for classification, thus these methods usually achieve higher recognition accuracy and at the same time maintain relative sparsity of the support vectors. In the last decade, the Bayesian theory was introduced into the design of classification methodology, of which the relevance vector machines (RVM) method [18] is a representative. As a Bayesian extension of the SVM, the RVM can provide posterior probabilistic output for class memberships. Furthermore, the RVM requires dramatically fewer number of relevance vectors (RVs), which means it is more suitable for real-time applications.

Extensive study has been done on human activity recognition with wearable sensors [711]. Fleury et al. [7] recognized seven kinds of human daily activities. Data associated with activities were collected by the infrared sensor, the temperature and hygrometry sensor, and the wearable kinematic sensors. A feature set was extracted from the raw sensor data by PCA, and then SVM method was employed in the classification process. The cross-validation test achieved an overall recognition accuracy of 86%. Khan et al. [8] used LDA to generate feature set and artificial neural networks (ANNs) to recognize human activities with data recorded by the body-worn accelerometers. Altun et al. [9] constructed a hardware system with gyroscope, accelerometer, as well as magnetometer, and did a comparative study on human activity recognition. They considered in total seven classification methods: Bayesian decision, decision tree, the least-squares method, k-NN, dynamic time warping, SVM, and ANN, where the SVM achieved the best recognition performance in the 'leave-one-out' cross-validation process.

In this article, we put forward a new approach for human activity recognition. We employ GDA to reduce the feature dimension and then construct a multiclass RVM classifier to perform the classification task. To the best of authors' knowledge, both the GDA and RVM techniques are applied in the wearable-sensor-based system for the first time.

The rest of this article is organized as follows. Section 2 provides a briefly description of the Wearable Action Recognition Dataset (WARD) [19]. The detailed information about the feature extraction and the feature dimension reduction process is presented in Section 3. In Section 4, we first provide a review of the RVM classification technique and then introduce the construction procedure for the multiclass RVM classifier. Section 5 reports the experimental results. Conclusions are given in Section 6.

2 Wearable action recognition dataset

In this article, we used a publicly available dataset called WARD http://www.eecs.berkeley.edu/~yang/software/WAR/ for human activity recognition, which was introduced by Yang et al. [19]. To construct this dataset, 20 volunteers, i.e., 7 females and 13 males with a wide age range (from 15 to 75 years old), were enrolled to collect 13 activities. All the involved 13 kinds of activities are listed in Table 1.

Table 1 Description of activities performed by each subject

The data were recorded by five custom-built sensor boards, which were attached to different body parts: two on the wrists, one on the waist, and two on the ankles. Each sensor board has been equipped with two sensors: a tri-axial accelerometer with the range of ± 2 g (m/s2) and a bio-axial gyroscope with the range of ± 500°/s. Since the output data format of each accelerometer and gyroscope would have 3 and 2 dimensions, respectively, the activity signal are totally given in 25 dimensions.

Figure 1 provides instances of measured signal with three different activities related to the same subject. Subfigures in the first row show the three-dimensional data recorded by the accelerometer, while subfigures in the second row show the two-dimensional data recorded by the gyroscope located at the waist. As we expected, there are much differences in the magnitude and period of the measured signal among different activities.

Figure 1
figure 1

A set of activity signal recorded by the accelerometer and the gyroscope located at the waist.

3 Feature extraction and reduction

In this section, we first describe the data preprocessing procedure, and then present the feature extraction and data normalization process. Finally, the GDA is introduced for feature reduction.

3.1 Data preprocessing

In general, it is unnecessary to analyze the entire recorded data for activity recognition. Therefore, we divided every raw sample data into small windows before feature extraction. In order to sufficiently capture the information of human activity and be convenient for the FFT-based computation of the frequency-domain features, the window length is set to be 2n. Four different window lengths, 32 samples, 64 samples, 128 samples, and 256 samples, were investigated, and the best recognition performance can be achieved with the window length of 256 samples. It can be explained as follows. At a sampling rate of 30 Hz, the time duration related to the four different window lengths would approximately be 1, 2, 4, and 8.5 s, respectively. Bouten et al. [20] had pointed out that the frequency of human daily activity mainly ranged from 1 to 18 Hz; therefore, the time duration of 8.5 s would cover at least several cycles of human activities and accordingly the activity recognition performance would be more reliable, i.e., shorter time duration would cover less activity cycles, thus the recognition performance would gain lower credibility. In this study, the window lengths larger than 256 samples were not taken into consideration. There are two reasons behind it: (1) for some activities, the number of samples contained in the raw sample data is less than 512. For example, the raw sample data as to the "Jog" activity of the test subject 5 only contains 397 samples. (2) As shown below in Table 2, with the window length of 256 a recognition rate as high as 99.2% can be achieved by our method. Increasing the window length may slightly improve the recognition rate, but will result in a longer delay.

Table 2 Recognition results with different feature reduction techniques

As a result, we set the length parameter of the window to be 256 samples in the following experiments. Then, the full data size in a truncated window would be 256 × 25, where 25 equals the dimensions of activity signal, i.e., each sensor node can provide five-dimensional activity signal, and there are in total five sensor nodes, and there are 128 × 25 data overlapping between consecutive windows.

3.2 Feature extraction

The features derived from time domain and transform domain are both used for activity recognition in most previous studies [9, 21]. In this study, we simply choose the features most frequently adopted by previous researchers, rather than deliberately select them. Specifically, the selected time domain features include the mean value, variance, skewness, and kurtosis, which can be expressed as follows:

μ i = E s i = 1 N n = 1 N s i , n
(1)
σ i 2 = E s i - μ i 2 = 1 N n = 1 N s i , n - μ i 2
(2)
sk e i = E s i - μ i 3 σ i 3 = 1 N σ i 3 n = 1 N s i , n - μ i 3
(3)
ku r i = E s i - μ i 4 σ i 4 = 1 N σ i 4 n = 1 N s i , n - μ i 4
(4)

where N = 256, s i, n represents the n th data value in the i th dimension associated with some window. While the selected transform domain features include the magnitudes of the maximum five peaks of the resultant fast Fourier transform (FFT), as well as the magnitudes of the maximum five peaks of the resultant cepstrum coefficients, which can be calculated as follows:

X i ( k ) = n = 1 N s i , n e - j 2 π k n N , k = 1 , 2 , , N
(5)
C i ( n ) = 1 2 π - π π log X i ( e j ω ) e j ω n d ω
(6)

The six types of feature presented above can be employed for activity recognition.

Figure 2 gives an instance of signal representations both in the time and the transform domain, related to some windows for two specific activities. Figure 2a, b is the signal along z-axis related to the walking forward and the jump activity, recorded by the accelerometer located at the waist. Figure 2c, d is the resultant FFT of the signal in (a) and (b), respectively (with the maximum five peaks of FFT marked with 'O'), while Figure 2e, f shows the resultant cepstrum of the signal in (a) and (b), respectively (with the maximum five peaks of cepstral coefficients marked with 'O').

Figure 2
figure 2

An instance of activity signal representations both in the time domain and in the transform domain: (a, b) The original data in some window respectively related to the walking forward and the Jump activity, recorded by the accelerometer located at the waist along z -axis. (c, d) Resultant FFT of the signal in (a, b), respectively (with the maximum five peaks of FFT marked with 'O'). (e, f) Resultant cepstrum of the signal in (a, b), respectively (with the maximum five peaks of cepstral coefficients marked with 'O').

According to the above feature extraction procedure, a feature vector with 14 elements can be obtained from each window along every dimension, i.e., 4 elements in the time domain and the remaining 10 elements in the transform domain. Thus, the total dimension of the feature vectors would be 350 × 1.

3.3 Data normalization

Commonly, the selected features are heterogeneous. Directly taking the feature data acquired as in Section 3.2 for subsequent classification may lead to problems, especially when the distribution characteristic of the selected features witnesses dramatical discrepancies. Therefore, all the features should be normalized before constructing the classifiers. For simplicity, we do this study for each feature in a linear way as follows:

y j = x j - min f j max f j - min f j
(7)

where x j denotes the data value of j th feature before normalization, while the symbols 'max{f j }' and 'min{f j },' respectively, represent the maximum and the minimum values related to this feature throughout the whole dataset. Thereafter, all the feature values will fall into the range [0 1].

3.4 Feature dimension reduction by GDA

As described above, the GDA is a nonlinear data dimension reduction method based on kernel function learning technique, which will be used to deal with the normalized feature vectors.

Given a training dataset x i i = 1 N containing L classes, with n l samples belong to the class l (i.e., N = l = 1 L n l ), the GDA operation on it consists of two steps: first, the data x i will be transformed from the original feature space R into a new one F via a nonlinear mapping ϕ: RF, x i ϕ(x i ), and then the classical LDA is carried out in this new feature space.

The between-class scatter and within-class scatter matrix in the feature space F are defined as:

B = 1 N l = 1 L n l ϕ ¯ l ( ϕ ¯ l ) T
(8)
V = 1 N l = 1 L k = 1 n l ϕ x l k ϕ x l k T
(9)

where x lk denotes the element k of the class c l and ϕ ¯ l represents the mean of the class c l in space F:

ϕ ¯ l = 1 n l l = 1 L ϕ x l k
(10)

The GDA method would find the projection matrix v that maximizes the ratio:

V = v T B v v T V v  = [ v 1 , v 2 , , v t ]
(11)

Note that explicitly carrying out the mapping ϕ means a demanding task. Therefore, the skill of reproducing kernels has been adopted when deriving the projection matrix. Since the rank of B is no more than L-1, the upper boundary value of t is L-1. More details about the GDA are available in [14].

After performing the GDA on the normalized activity feature vectors, the dimensions of them would be reduced to n (nL-1). In our case, there are in total L = 13 activities, thus the dimension of feature vectors will be reduced to no more than 12. We have tested the performance of GDA with different reduced dimensions ranging from 1 to 12, and finally set the dimension parameter to be 12 as it can provide the best recognition performance. We also used PCA and LDA for comparison. The resultant three-dimensional features with highest weights by each method are picked out and drawn in Figure 3. It can be seen that the GDA can capture the discriminate information better than PCA and LDA, and this would be a good prognosis for the recognition performance.

Figure 3
figure 3

Scatter plots of the three most important features respectively picked out by PCA (up), LDA (middle) and GDA (bottom).

4 RVM classification techniques

In this section, we will review the binary RVM theory, and then introduce a multiclass RVM model for solving the multi-class problem. Based on that, the multi-dimension activity feature vectors can be classified.

4.1. The binary RVM

RVM is originally designed for the binary classification problem. Given a training dataset of N input target pairs x n , t n n = 1 N , where x n Rm is the training sample and t n {0,1} is the target value of x n . Supposing the posterior probability of x n with t n = 1 is given by P(t n = 1|x n , w) = σ{y(x n ; w)}, where σ(y) is the logistic sigmoid function defined by σ(y) = 1/(1+e-y), then the posterior probability of x n with t n = 0 can be expressed as P(t n = 0|x n , w) = 1-σ{y(x n ; w)}. On assumption that the input variables x n are independent of each other, the likelihood on the entire set of training samples can be calculated using the Bernoulli distribution:

P ( t w ) = n = 1 N σ y x n ; w t n 1 - σ y x n ; w 1 - t n
(12)

where w is a weight vector represented by w = [w1, w2, w3, ..., w N ] T . Here, we assume that w can be well described by the zero-mean Gaussian distribution with variance α n - 1 , i.e., p w α = n = 1 N N w n ; 0 , α n - 1 .

In order to find the 'most probable' weights wMP, an iterative procedure is utilized, which is based on a Laplace approximation. With a fixed value of α, the logarithm of the posterior distribution over the weight w is given by

ln  P w t , α = ln  P t w P w α - ln  P t α = n = 1 N t n  ln  y x n ; w + 1 - t n 1 -  ln  y x n ; w - 1 2 w T A w + const
(13)

where A = diag(α0, α1, ..., α N ). When maximizing the value of above expression, the mean value of wMP and its covariance ΣMP should be

w MP = A - 1 Φ T t - y
(14)
Σ MP = Φ T B Φ + A - 1
(15)

where B is an N × N diagonal matrix with elements b n = y n (1-y n ), the vector y = (y1, y2, ..., y N ) T , and Φ is the design matrix with elements Φ ni = ϕ i (x n ). The detail information about the derivation of the above two equations is provided in Appendix.

Consequently, the corresponding marginal likelihood can be expressed as

log P t α = log P t w P w α d w = P t w MP P w MP α 2 π M 2 Σ MP 1 2
(16)

To maximize it, the parameter α n should be updated as follows:

α n new = 1 - α n Dia g n w n 2
(17)

in each iteration, where w n denotes the n th element of the estimated posterior weights wMP, and Diag n represents the n th diagonal element of the posterior covariance matrix ΣMP from Equation (15). The above procedure via Equations (13)-(17) is repeated until when the preset convergence criterion is met. Up to this point, the training stage for the binary classifier is completed.

In the classification stage, the test sample x will be classified to the class t {0,1}, which maximizes the conditional probability P(t|x, w).

4.2. Multiclass RVM

Traditional RVM solves the binary classification problem. However, the practical activity recognition task usually involves a multiclass task. For instance, the WARD dataset contains totally 13 kinds of activities. Therefore, the RVM must be extended to the multiclass situation. The first possible scheme is to directly generalize the RVM to the multiclass RVM as in [18]. However, in this case the size of the covariance V would linearly scale with the total number of involved classes, which is a disadvantage from the computational perspective [18]. The second possible solution is to consider the L-class problems as a set of two-class problems. In this case, the simplest way called 'one-versus-all' is to train L individual binary classifiers and integrate them together. The test sample x will be classified to the class t i on condition that

p t i x , w = max p t m x , w , m = 1 , 2 , . . . , L
(18)

5 Experimental results

In this section, we first examine the convergence characteristic of the constructed RVM classifiers and present the classification results for the proposed approach with threefold cross validation on WARD (Section 5.1). Then, we compare the recognition performances with different feature reduction techniques and different classification techniques, respectively. We also show a comparison between our approach and other existing methods on the same dataset (Section 5.2).

5.1. Recognition performance with the proposed approach

As described in Sections 3 and 4, the feature vectors are extracted from the measured activity signal and compressed into 12 dimensions by GDA, which subsequently are classified with the multiclass RVM technique. To evaluate the recognition performance of our approach, we did threefold cross validation on the entire WARD dataset. Specifically, all the feature vectors were randomly divided into three partitions, of which one partition was retained as the validation set for testing, and the remaining two partitions were used for training. Such cross-validation process was performed for three times, so as to ensure each partition was validated. The whole procedure was repeated for ten times, and the resultant recognition rates were averaged.

During the cross-validation process, we established an RVM classifier for each kind of activity, i.e., there were in total 13 different RVM classifiers for all kinds of activities. To examine the convergence characteristic of the constructed classifiers, we monitored their marginal likelihood versus the iteration numbers. As shown in Figure 4, the likelihood of 'ST' activity (denoted by the solid line and squares) quickly converged after about 12 iterations, and those of the remained activities also show the similar tendency, which proves the consistency of the classifiers and the convenience to construct them.

Figure 4
figure 4

The marginal likelihood versus iteration numbers.

Figure 5 shows the recognition results with different numbers of feature types mentioned in Section 3. It can be seen that the recognition accuracy gradually get improved as the number of employed feature types increases, which indicates that the different types of feature considered in this article can provide complementary information. As a result, all the six types of features are used for recognition in the following experiments.

Figure 5
figure 5

Recognition accuracy of our approach versus number of feature types.

The confusion matrix related to the recognition result (with all six types of feature) is given in Table 3. It can be observed that the confusion occurrences are distributed in an unbalance way. For instance, the three most confused pairs are 'Up' and 'Jog', 'SI' and 'ST', as well as 'ST' and 'SI'. The confusion rates between them have, respectively, reached 2.4, 1.45, and 1.31%, while some pairs such as 'LY' and 'Push', 'TR' and 'WR', as well as 'TL' and 'Jump' are never confused with each other. It probably can be explained as follows. The subjects do not have to move the ankles to perform both 'SI' and 'ST' activities, and at the same time the accompanying movement of waist is always quite small. Thus, the sensor nodes would provide less discriminable information for those two kinds of activities. While 'Up' is sometimes misclassified as 'Jog' mainly because both activities may involve the feet rising action. A possible solution for improving the discrimination between similar activities is to include more sensors located at knees or thighs, or deploying other kinds of sensors. For instance, sensors such as location sensors can be used to keep track of a subject's body movement. Another interesting point is that the confusion rates are not necessarily equivalent between a specific pair. For instance, though the 'Up' activity may be judged as 'Jog' with a rate of 2.4%, the 'Jog' is never mistaken as 'Up'. Such phenomenon may provide cues for further improvement on the selection of features.

Table 3 Confusion matrix related to the ten times threefold validation by our approach

5.2. Comparative evaluation

Extensive comparisons have been made to thoroughly examine the performance of the proposed approach. This section reports the comparison results.

First, we compare the recognition performances of our proposed feature reduction with two other feature reduction techniques, i.e., PCA and LDA. The evaluation is performed on the WARD dataset, and the same classifier RVM is employed. The comparison results are listed in Table 4. The GDA achieves the recognition rate of 99.2%, which is 22.9% higher compared with the PCA and 58.9% higher compared with the LDA. This consequence is as per our expectation. On one hand, the distribution of wearable data is nonlinear and complex duo to the factors such as measurement noise, outliers, and other variation. On the other hand, both PCA and LDA are linear feature reduction techniques. Thus, it is difficult for them to capture nonlinear relationship with a linear mapping. On the contrary, GDA is nonlinear extension of LDA. It can transform the original data space to a feature space by a nonlinear mapping through kernel methods, where is more likely to be linearly separable than in the original data space. Therefore, the GDA can provide more reliable and robust solution to activity recognition problem.

Table 4 Recognition results with different feature reduction techniques

We subsequently compare the recognition performances between the RVM classifiers and three other popular classification techniques, i.e., k-NN, Bayesian decision, and SVM. The evaluation is also performed on the WARD dataset, and the same feature reduction technique (GDA) is employed. In general, recognition accuracy is sensitive to the parameters of classifiers. For fairly comparison, it would be desirable to adopt optimal parameters for each kind of classifier, respectively. Specifically, as to the k-NN classifier, we set k = 3 since in this article we can achieve the highest recognition accuracy under this condition; While for the RVM classifier, the Gaussian kernel is employed and the optimal bandwidth value is be found by the following simple method: we increased the bandwidth value with a constant step of 0.05 over the range of [0.05 1], and trained the RVM classifier over the whole training set. The bandwidth parameter 0.15, which maximized the classification accuracy, was chosen for the following experiments. As to the construction of the multiclass SVM classifiers, we also adopted the Gaussian kernel and the 'one-versus-all' strategy, which are the same as in the multiclass RVM model. Its optimal values of two controlling parameters, i.e., bandwidth and regularizing parameter C, are also fixed with the same searching strategy as in RVM (in this article, the optimal bandwidth and regularizing parameters are set to be 0.25 and 10, respectively). Table 5 shows the recognition accuracies by these different classification techniques. The RVM gives the recognition rate as high as 99.2%, followed by the SVM and the Bayesian decision, respectively, with recognition rates of 97.7 and 95.9%, while the k-NN performs the worst, of which the recognition rate only reaches 88.3%. The reason behind it may be as follows: k-NN is a linear classifier, which calculates the similarity between the test sample and the training samples. Since it does not take the data distribution into account, k-NN may not be suited for dealing with noise data. As for SVM, it is based on the principle of structural risk minimization. The final classifier obtained by SVM depends only on the "borderline" samples in the training samples, i.e., support vectors (SVs). These SVs are located near the decision boundary of the classifier. This makes the SVM sensitive to noises or outliers and patterns that were wrongly classified lie near the separation hyper-plane. As for RVM, it is a Bayesian extension of the SVM. The final classifier obtained by RVM depends only on fewer samples in the training samples, i.e., RVs. Unlike SVM, these RVs are formed by samples appearing to be more representative of the classes, which are located away from the decision boundary of the classifier. Therefore, the RVM has a better generalization ability and more robust to noises or outliers.

Table 5 Recognition results with different classification techniques

Additionally, Table 5 also gives the NSV and NRV which represent the number of support vectors in the SVM model and the number of relevant vectors in the RVM model, respectively. They reflect the classifiers' structural complexity [21]. Although the values of NSV are larger than 70 in most cases, the values of NRV are always not more than 4, i.e., the sparsity property of the RVM is much better than the SVM. Therefore, the results in Table 5 demonstrate that RVM has remarkable advantage both in the recognition accuracy and the sparsity of RVs.

To further evaluate the performance of our approach, we also employed other conventional metrics [22, 23] including the precision, the recall rate, the F index and the specificity rate, which can be described as

pre = TP TP + FP ,  rec = TP TP + FN F = 2 1 pre + 1 rec , spe = TN FP + TN
(19)

where TP (true positive) refers to the number of positive samples classified as positive; FP (false positive) refers to the number of positive samples classified as negative; FN (false negative) denotes the number of negative samples classified as positive; and TN (false negative) denotes the number of negative samples classified as negative. The comparison results regarding all these metrics are plotted in Figure 6. It can be seen that the RVM achieves the highest scores of them, which are 0.9918, 0.9903, 0.9910, and 0.9993, respectively.

Figure 6
figure 6

Evaluation of recognition performance with conventional metrics.

Figure 7 highlights the relationship between the true positive rate (TPR) and false positive rate (FPR) related to the different classification techniques. It shows that the result of RVM is almost perfect, with the highest TPR of 99.18% and lowest FPR of 0.07%. The SVM and Bayesian decision method appear a little worse, while the k-NN method performs the worst, with the lowest TPR value of 89.04% and the highest FPR of 1.08%.

Figure 7
figure 7

TPRs & FPRs with different classification techniques.

Finally, we also compare the performance of our approach with other existing methods on the same dataset. The quantitative results have been reported in Table 2. It can be seen that our approach outperforms other alternatives in terms of recognition rate. Specifically, Yang et al. [19] employed a distributed sparsity classifier to classify human activities and gave the recognition accuracy of 93.46% with all five sensor nodes, which is about 6% lower than that of our approach. They modeled the distribution of multiple action classes as a mixture subspace model and represented the test sample with linear approximation of all training samples. However, this linear representation structure may meet limitations in describing the test samples of the complex activities. Huynh [24] combined a generative model (multiple eigenspace) with SVM classifier into their activity recognition framework. Since the multiple eigenspace approach has advantages in the representing the structure of the input data and SVM has good discriminability, they achieved higher recognition accuracy than that of Yang's method, but still 2.23% lower than that of our approach. We also noted that Yang et al.'s method can be adaptive to the alteration of sensor configuration by constructing a global projecting matrix, thus it has advantages over Huynh's as well as our approach in dealing the problems if one or more sensor nodes (or sensor) failures. One possible way for us in handling these problems is to individually train the data from individual sensor, and then fuse the classification results with the valid sensors at the decision level.

It is also worth noting that the test data we use are different from that used in the study of [25]. In our test data, the number of sensor nodes, the number of test subjects, and the types of activities are 5, 20, and 13, respectively, while the corresponding numbers and types in [25] are 8, 3, and 12, respectively. Therefore, our results are not compared with those in [25].

6 Conclusions

We put forward a novel approach for the recognition of human activities with wearable sensors, by combining the GDA and the RVM techniques. To the best of authors' knowledge, both of these techniques are applied to this domain for the first time.

As a powerful data dimension reduction method, the GDA can sharply reduce the dimension of the feature space, while maintaining the most discriminative information among different activities. Specifically, in this article the dimension of the feature vectors has even been reduced from 350 to merely 12, which can greatly speed up the subsequent training process. Meanwhile, the RVM also shows great extension flexibility to the multiclass classification problems. Experimental results on the WARD dataset demonstrated that the RVM technique not only provides the highest recognition rate, the highest TPR, as well as the lowest FPR compared with the conventional classification techniques, but also possesses much simpler classifier structure in contrary to the SVM. In conclusion, our approach would have advantages in real applications or solving problems with large-scale datasets, due to its perfect recognition performance, strong ability in feature reduction, and simple classifier structure.

Appendix: Derivations of Equations (14) and (15)

The RVM model takes the form of a linear combination of basis function transformed by a logistic sigmoid function

y ( x , w ) =σ w T ϕ x =1 1 + e - w T ϕ x
(20)

The gradient vector of the log posterior distribution, which from Equation (13), is given by

w ln P w t , α = n = 1 N t n ϕ x n e - w n ϕ x n 1 + e - w n ϕ x n - 1 - t n ϕ x n 1 + e - w n ϕ n - A W = n = 1 N t n ϕ x n y n e - w n ϕ x n - 1 - t n ϕ x n y n - A W = n = 1 N t n ϕ x n y n 1 + e - w n ϕ x n - ϕ x n y n - A W = n = 1 N t n - y n ϕ x n - A W = Φ T t - y - A W
(21)

where the vector y = (y1, y2, ..., y N ) T , and Φ is the design matrix with elements Φ ni = ϕ i (x n ). By setting Equation (21) to zero, the mean wMP of the Laplace approximation is represented by wMP = A-1ΦT (t-y).

Hessian matrix of the log posterior distribution, which from Equation (13), is given by

w w ln P w t , α = w n = 1 N ϕ x n t n - y n - A W = n = 1 N - e - w n ϕ n 1 + e - w n ϕ x n 2 ϕ x n ϕ x n T - A = - n = 1 N y n 1 - y n ϕ x n ϕ x n T - A = - Φ T B Φ + A
(22)

where B is an N × N diagonal matrix with elements b n = y n (1-y n ). At convergence of the iterative reweighed least squares algorithm, the negative Hessian represents the inverse covariance matrix for the Gaussian approximation to the posterior distribution [26]. Then, the covariance matrix ΣMP is represented by ΣMP = (ΦT+A)-1.

Abbreviations

ANN:

artificial neural networks

FFT:

fast Fourier transform

FN:

false negative

FP:

false positive

FPR:

false positive rate

GDA:

generalized discriminant analysis

LDA:

linear discriminant analysis

k-NN k:

-nearest neighbor

PCA:

principal component analysis

RVM:

relevance vector machines

SVM:

support vector machines

TN:

false negative

TP:

true positive

TPR:

true positive rate

TPR:

true positive rate

WARD:

Wearable Action Recognition Dataset.

References

  1. Ward JA, Lukowicz P, Troster G, Starner TE: Activity recognition of assembly tasks using body-worn microphones and accelerometers. IEEE Trans Pattern Anal Mach Intell 2006, 28(10):1553-1567.

    Article  Google Scholar 

  2. Ince NF, Min CH, Tewfik A, Vanderpool D: Detection of early morning daily activities with static home and wearable wireless sensors. EURASIP J Adv Signal Process 2008, 2008: 273130.

    Article  Google Scholar 

  3. Bulling A, Ward JA, Gellersen H, Troster G: Robust recognition of reading activity in transit using wearable electrooculography. Pervas Comput 2008, 5013: 19-37.

    Google Scholar 

  4. Qian HM, Mao YB, Xiang WB, Wang ZQ: Recognition of human activities using SVM multi-class classifier. Pattern Recognit Lett 2010, 31(2):100-111.

    Article  Google Scholar 

  5. Liu C, Yuen PC: Human action recognition using boosted EigenActions. Image Vis Comput 2010, 28(5):825-835.

    Article  Google Scholar 

  6. Ikizler N, Duygulu P: Histogram of oriented rectangles: a new pose descriptor for human action recognition. Image Vis Comput 2009, 27(10):1515-1526.

    Article  Google Scholar 

  7. Fleury A, Vacher M, Noury N: SVM-based multimodal classification of activities of daily living in health smart homes: sensors, algorithms, and first experimental results. IEEE Trans Inf Technol Biomed 2010, 14(2):274-283.

    Article  Google Scholar 

  8. Khan AM, Lee YK, Lee SY, Kim TS: A triaxial accelerometer-based physical-activity recognition via augmented-signal features and a hierarchical recognizer. IEEE Trans Inf Technol Biomed 2010, 14(5):1166-1172.

    Article  Google Scholar 

  9. Altun K, Barshan B, Tuncel O: Comparative study on classifying human activities with miniature inertial and magnetic sensors. Pattern Recognit 2010, 43(10):3605-3620.

    Article  Google Scholar 

  10. Chen YP, Yang JY, Liou SN, Lee GY, Wang JS: Online classifier construction algorithm for human activity detection using a tri-axial accelerometer. Appl Math Comput 2008, 205(2):849-860.

    Article  MathSciNet  Google Scholar 

  11. Li M, Rozgic V, Thatte G, Lee S, Annavaram M, Mitra U, Metz DS, Narayanan S: Multimodal physical activity recognition by fusing temporal and cepstral information. IEEE Trans Neural Syst Rehabil Eng 2010, 18(4):369-380.

    Article  Google Scholar 

  12. Kim TK, Kittler J: Locally linear discriminant analysis for multimodally distributed classes for face recognition with a single model image. IEEE Trans Pattern Anal Mach Intell 2005, 27(3):318-327.

    Article  Google Scholar 

  13. Altun K, Barshan B: Human activity recognition using inertial/magnetic sensor units. Human Behav Understand 2010, 6219: 38-51.

    Article  Google Scholar 

  14. Baudat G, Anouar FE: Generalized discriminant analysis using a kernel approach. Neural Comput 2000, 12(10):2385-2404.

    Article  Google Scholar 

  15. Huang YS, Liu WC: Face recognition based on complementary matching of single image and sequential images. The Fifth International Conference on Intelligent Information Hiding and Multimedia Signal Processing, Kyoto, Japan 2009, 673-676.

    Google Scholar 

  16. Bai L, Shen L: A fast and robust Gabor feature based method for face recognition. The IEE International Symposium on Imaging for Crime Detection and Prevention, London, United kingdom 2005, 95-98.

    Google Scholar 

  17. Wang M, Xu HT, Hao GY, Zhou XD, Wang W, Zhang Q, Shi B: PictureBook: a text-and-image summary system for web search result. The 24th International Conference on Data Engineering, Vols 1-3, Cancun, Mexico 2008, 1612-1615.

    Google Scholar 

  18. Tipping ME: Sparse Bayesian learning and the relevance vector machine. J Mach Learn Res 2001, 1(3):211-244.

    MathSciNet  Google Scholar 

  19. Yang AY, Jafari R, Sastry SS, Bajcsy R: Distributed recognition of human actions using wearable motion sensor networks. J Ambient Intell Smart Environ 2009, 1(2):103-115.

    Google Scholar 

  20. Bouten CVC, Koekkoek KTM, Verduin M, Kodde R, Janssen JD: A triaxial accelerometer and portable data processing unit for the assessment of daily physical activity. IEEE Trans Biomed Eng 1997, 44(3):136-147.

    Article  Google Scholar 

  21. Wang XD, Ye MY, Duanmu CJ: Classification of data from electronic nose using relevance vector machines. Sensors Actuators B Chem 2009, 140(1):143-148.

    Article  Google Scholar 

  22. Bicocchi MMN, Zambonelli F: Detecting activities from body-worn accelerometers via instance-based algorithms. Pervas Mob Comput 2010, 6: 482-495.

    Article  Google Scholar 

  23. Junker H, Amft O, Lukowicz P, Troster G: Gesture spotting with body-worn inertial sensors to detect user activities. Pattern Recognit 2008, 41(6):2010-2024.

    Article  Google Scholar 

  24. Huynh DTG: Human activity recognition with wearable sensors. PhD dissertation, Technische Universität Darmstadt, Darmstadt, Germany 2008.

    Google Scholar 

  25. Yang AY, Iyengar S, Sastry S, Bajcsy R, Kurloski P, Jafari R: Distributed segmentation and classification of human actions using a wearable motion sensor network. IEEE Computer Society Conference on Computer Vision and Pattern Recognition Workshops, Anchorage, AK, United States 2008, 1-8.

    Google Scholar 

  26. Rubin DB: Iteratively reweighted least squares. Encycl Stat Sci 1983, 4: 272-275.

    Google Scholar 

Download references

Acknowledgements

The authors would like to thank A. Y. Yang et.al for providing the WARD activity dataset. Many thanks also go to the PhD candidate Chaoying Tang, in the Nanyang Technological University. The study was supported by the Key Project of Chinese Ministry of Education (Grant No. 108174), the Chongqing Municipal Natural Science Foundation of China (Grant No. CSTC2008BB3169).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Weihua He.

Additional information

Competing interests

The authors declare that they have no competing interests.

Authors’ original submitted files for images

Rights and permissions

Open Access This article is distributed under the terms of the Creative Commons Attribution 2.0 International License (https://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Reprints and permissions

About this article

Cite this article

He, W., Guo, Y., Gao, C. et al. Recognition of human activities with wearable sensors. EURASIP J. Adv. Signal Process. 2012, 108 (2012). https://doi.org/10.1186/1687-6180-2012-108

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/1687-6180-2012-108

Keywords