Next Article in Journal
Using SincNet for Learning Pathological Voice Disorders
Next Article in Special Issue
Efficient Matching-Based Parallel Task Offloading in IoT Networks
Previous Article in Journal
On the Use of Assistive Technology during the COVID-19 Outbreak: Results and Lessons Learned from Pilot Studies
Previous Article in Special Issue
Performance Analysis of Dual-Hop Hybrid RF-UOWC NOMA Systems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Stochastic Recognition of Human Physical Activities via Augmented Feature Descriptors and Random Forest Model

1
Department of Software Engineering, Capital University of Science and Technology (CUST), Islamabad 44000, Pakistan
2
Department of Computer Science and Technology, Tsinghua University, Beijing 100084, China
3
School of Software Engineering, Tsinghua University, Beijing 100084, China
4
School of Information Engineering, Qujing Normal University, Qujing 655011, China
5
Department of Software Engineering, University of Science and Technology, Bannu 28100, Pakistan
6
Research Centre, Future University in Egypt, New Cairo 11745, Egypt
7
Department of Industrial Engineering, College of Engineering, Prince Sattam Bin Abdulaziz University, Al Kharj 16273, Saudi Arabia
8
Mechanical Engineering Department, Faculty of Engineering (Shoubra), Benha University, Cairo 11629, Egypt
*
Authors to whom correspondence should be addressed.
Sensors 2022, 22(17), 6632; https://doi.org/10.3390/s22176632
Submission received: 19 June 2022 / Revised: 3 August 2022 / Accepted: 26 August 2022 / Published: 2 September 2022
(This article belongs to the Special Issue Sustainable Solutions for 6G-Enabled Internet of Things Networks)

Abstract

:
Human physical activity recognition from inertial sensors is shown to be a successful approach for monitoring elderly individuals and children in indoor and outdoor environments. As a result, researchers have shown significant interest in developing state-of-the-art machine learning methods capable of utilizing inertial sensor data and providing key decision support in different scenarios. This paper analyzes data-driven techniques for recognizing human daily living activities. Therefore, to improve the recognition and classification of human physical activities (for example, walking, drinking, and running), we introduced a model that integrates data preprocessing methods (such as denoising) along with major domain features (such as time, frequency, wavelet, and time–frequency features). Following that, stochastic gradient descent (SGD) is used to improve the performance of the extracted features. The selected features are catered to the random forest classifier to detect and monitor human physical activities. Additionally, the proposed HPAR system was evaluated on five benchmark datasets, namely the IM-WSHA, PAMAP-2, UCI HAR, MobiAct, and MOTIONSENSE databases. The experimental results show that the HPAR system outperformed the present state-of-the-art methods with recognition rates of 90.18%, 91.25%, 91.83%, 90.46%, and 92.16% from the IM-WSHA, PAMAP-2, UCI HAR, MobiAct, and MOTIONSENSE datasets, respectively. The proposed HPAR model has potential applications in healthcare, gaming, smart homes, security, and surveillance.

1. Introduction

Human physical activity recognition (HPAR) is a subject of research that focuses on developing and experimenting with novel techniques for automatically recognizing activities via signals acquired by wearable or ambient sensors [1]. However, for the most part, ambient sensors require installation in a household environment, and appliances such as camera systems are seen as obtrusive, specifically by aging people [2]. For such reasons, the emphasis has turned to the employment of wearable sensors in recent years. Fitness trackers, smartphones, and inertial sensors are currently receiving adequate attention [3,4,5,6]. This is mainly due to the widespread use of gadgets by the general public and the incorporation of different types of inertial sensors embedded in electronic devices such as accelerometers, gyroscopes, magnetometers, and GPS.
Human physical activity recognition (HPAR) from wearable body sensor networks is gaining rapid growth due to its significant potential in various application domains, including smart healthcare, smart homes, security, biofeedback systems, assistive robots, and transportation. Each application demands continuous real-time detection and tracking [7,8,9,10,11]. Additionally, these applications could provide significant access to the medical information of unwell seniors. In smart healthcare, critical information about elderly individuals is acquired. That acquired information is sent in real-time to virtual assistant services via communication technologies [12]. Furthermore, these wearable sensors can be exploited to detect and track various elements of human motion. Real-time monitoring and surveillance of the physical movements of elderly individuals and children can help them to feel more secure and confident. In the context of smart homes, in the last decade, smart home technology has shifted its focus towards individuals with limited capabilities (e.g., due to aging or disabilities). This interest is due to the possibility of smart homes assisting elderly adults and individuals with disabilities in their residences while minimizing the significant work required of households or professional caretakers. Similarly, biofeedback treatment is effective when used in conjunction with virtual reality (VR) systems to detect changes in biological functions of the body, such as blood pressure, pulse rate, and heart rate; these systems may also be effective for stress management approaches [13]. By keeping an eye out for suspicious behavior on the part of individuals and anticipating aggressive behavior in advance, unpleasant consequences can be mitigated. For decades, security individuals have been relatively adept at locating suspected individuals. However, humans are fallible and may make false allegations. This is why automated security and surveillance systems have exponentially been gaining attention, (i.e., to assist the monitoring process). Substantial increased criminal activity on a global scale demands the development of more automated state-of-the-art technologies to improve surveillance and produce more precise results [14]. In general, the primary objectives of body-worn-based inertial sensors are to bring effective real-time monitoring and correct the detections of actions, behaviors, and their impacts using sensor data.
Recently, there has been a significant demand for wearable-based inertial sensors for various applications. These novel developments have impacted numerous facets of human life, most notably smart healthcare and daily living monitoring. Our research focuses primarily on inertial sensors, such as accelerometers, gyroscopes, and magnetometers, which allow us to analyze daily human life in various scenarios to track and detect changes in position, body motion, and three-dimensional (3D) spaces [15]. Furthermore, the healthcare sector exploits these sensors to measure physical and emotional activities. However, they can also be utilized to track radical shifts in the user’s position, such as tripping; this data can be used to assist in preventing falls and providing immediate support, mainly to the elderly. Considering the practicality of such wearable inertial sensors, significant barriers remain, such as real-time tracking of the information collected from the sensors on the network. These types of data are generally hard to manage in real time.
In this paper, we propose a human physical activity recognition (HPAR) framework that is intended to lessen the challenges associated with recognizing the daily physical activities of humans by exploiting wearable IMU sensors. Our HPAR framework involves five major steps: data acquisition, a signal filtering process, augmented feature descriptors, feature selection, and recognition. First, we acquired IMU data from five main datasets—IM-WSHA, PAMAP-2, UCI HAR, MobiAct, and MOTIONSENSE. The required input data were passed through numerous denoising methods in which we utilized a median filter for inertial sensor-based benchmark datasets to reduce noise from the original signal. After denoising the inertial signal data, discriminative feature descriptors were extracted from four main domains: time, wavelet, frequency, and time–frequency domain. Additionally, we analyzed and evaluated the feature selection method in conjunction with a state-of-the-art random forest model in order to create a precise model with a compact and discriminative feature vector space. To assess the performance of our HPAR model, we applied our proposed framework to five benchmark datasets: IM-WSHA, PAMAP-2, UCI HAR, MobiAct, and MOTIONSENSE. The results revealed that the proposed HPAR model outperformed other existing state-of-the-art systems. The following are the main contributions and highlights of this paper:
  • The augmentation of discriminative features from various domains makes the proposed human physical activity recognition model robust in the presence of noisy data. It maintains locally dependent characteristics of the random forest algorithm, providing a novel approach for improving recognition performances across all five benchmark datasets.
  • A hybrid feature descriptor model with random forest is proposed to cope with the convoluted patterns of human physical motion activities with improved classification accuracies in all datasets.
  • The complex behavior transition, especially in our self-annotated dataset IM-WSHA, requires more time to recognize activities. Therefore, we utilized a higher window size so that our model could work with a minimal number of changes. We also created a self-annotated dataset named Intelligent Media Wearable Smart Home Activities (IM-WSHA), comprising 11 (static and dynamic) daily life log activities, along with divergences in gender, weight, height, and age.
  • Additionally, a comprehensive analysis was performed for human physical activities on five public benchmark datasets: IM-WSHA, PAMAP-2, UCI HAR, MobiAct, and MOTIONSENSE. Experimental results reveal an improved recognition rate, which also outperforms other state-of-the-art systems.
The remainder of this study is structured as follows: Section 2 provides a detailed overview of the literature concerning human physical activity analyses. Section 3 addresses the proposed framework of our HPAR model. Section 4 analyzes the five benchmark datasets along with the detailed experimental results. Finally, Section 5 presents the paper’s conclusion and future research perspectives.

2. Related Work

There are two standard ways to analyze HPAR: vision sensor-based HPAR and wearable sensor-based HPAR. Various characteristics and insights may be drawn from this analysis, including the acquired image and signals, extracted feature descriptors, and methods utilized for dimensionality reduction and human activity classification. This section summarizes previous research on human physical activity recognition (HPAR) analyses via vision sensors and wearable sensors.

2.1. HPAR via Vision Sensors

Vision-based HPAR relies entirely on visual sensing technologies, including surveillance and video cameras, image sequences, video sequences, modeling, segmentation, detection, and tracking. Liu et al. [16] presented a human activity recognition system incorporating a non-linear support vector machine (SVM) to recognize twenty distinct human activities via an accelerometer and RGBD camera sensor data. Their experimental results indicate that their proposed method is significantly more robust and effective than the baseline method at recognizing activities. However, the main constraint of this study involved the performance of unusual classes, particularly transition activity classes. Additionally, they intended to improve the performance by incorporating this class imbalance issue into their classification model. Yang et al. [17] developed a novel model for identifying human activities from a video series recorded by depth-based cameras. Additionally, they discussed the low-level polynomial designed from a nearby local hyperspace. Furthermore, their proposed system is adaptable, i.e., it could be used in cooperation with the joint trajectory-matched depth sequence. Their proposed model was comprehensively analyzed and tested on five benchmark datasets. The experimental outcomes reveal that their proposed strategy outperformed existing methods on these datasets by a significant margin. However, their proposed system lacked the utilization of complementary information along with the integration of various features from both color and depth channels in order to create more state-of-the-art representations. Sharif et al. [18] proposed a hybrid technique for efficiently classifying daily human activities from an acquired video frame. In addition, their proposed system involves two significant steps. Initially, various subjects were detected in the acquired video frame via a combination of a new uniform and EM segmentation. Then, utilizing vector dimensions, they extracted local properties from specified sequences and combined them. Additionally, a new Euclidean distance along with joint entropy was exploited to pick the optimal features from the augmented vector. The optimal feature descriptors were catered to the classifiers for human activity recognition. However, occlusions were not addressed in this work. Another possibility is to incorporate saliency to maximize segmentation accuracy. In [19], Patel et al. proposed a method for detecting and recognizing the daily living activities of humans. Additionally, they explored various human visual databases to detect and monitor multiple human subjects. The background subtraction method was utilized to monitor the different persons in motion. In comparison, human daily living activities via the HOG feature extraction and an SVM classifier generate better recognition results with fewer false detections. Ji et al. [20] introduced a unique approach for interactive behavior recognition based on different stage probability fusions. Additionally, they dealt with the present issues in the interaction classification algorithms, including inadequate feature descriptors resulting from improper human body segmentation. Therefore, a multi-stage-based fusion strategy was presented to deal with this issue. However, this technique is ineffective at addressing the intrinsic characteristics of human behavior; instead, it is useful for categorizing abnormal behaviors, such as violent acts and unusual events. In [21], Wang et al. presented a probabilistic-based graphical framework for human physical activity recognition. Additionally, they addressed the issue of segmenting and recognizing continuous action. However, these methods operate only in offline mode. Ince et al. [22] developed a biometric system framework for detecting human physical activities in a three-dimensional space using skeletal joint angle patterns. Additionally, this framework exploits the RGB-depth camera, which appears suitable for video surveillance and elderly care facilities. However, there are a few drawbacks linked with the model. Initially, improper skeletal detection results in wrong angle estimations, and imprecise classifications.

2.2. HPAR via Wearable Sensors

Wearable-based inertial sensors have revolutionized every characteristic of our daily lives, from healthcare to ease and comfort. Therefore, due to the substantial demands for improved processing capacities and reduced size requirements, we analyzed IMU-based systems in this research. Irvine et al. [23] introduced a homogenous ensemble neural network method for identifying daily living activities in an indoor environment. Additionally, four standard models were developed and combined using support function fusion. Furthermore, they tested their proposed framework, the ensemble neural network method, by evaluating the attained HPAR performance with two non-parametric standard classifiers. The ensemble neural network technique outperformed both standard models, revealing the robustness of the proposed ensemble method. However, the work was restricted with no method for determining a relevant subset of input features. In [24], Feng et al. introduced an ensemble technique for recognizing HPAR, utilizing several wearable inertial sensors by integrating an independent random forest algorithm. The improved forecasting capabilities of the random forest resulted in a better option for wearable sensor-based healthcare tracking systems. Gupta et al. [25] presented an effective physical activity recognition system based on a portable wearable accelerometer that can be employed in a real-life application of elderly monitoring. Additionally, they incorporated effective capabilities for recognizing transitional behaviors. The proposed statistical features extracted additional information about the inertial signals in the time-frame window. Furthermore, additional cues are assessed to extract signal correlation. However, the fundamental challenge of this work is that only two individuals were used to acquire information, which limits the database’s applicability in various environments. In [26], Abidine et al. developed a weighted support vector machine (SVM) for tracking human life log activities in an indoor environment. Additionally, they addressed various implementation issues with the HAR methods, including redundant sequence characteristics and group variances in the learning set. To address these problems, they presented a novel technique for recognizing life log activities in an indoor environment. Furthermore, the entire model was based on the fusions of different algorithms, including PCA, SVM, and LDA. To begin, the learning set was lessened via the PCA and LDA features. Then, an SVM classifier was used for each class to handle the unbalanced life log activity database to maximize the detection rate. In another study, Cillis et al. [27] proposed a ubiquitous novel solution for locomotion patterns via a wearable-based inertial accelerometer sensor. Additionally, their proposed model utilized a finite feature set along with a decision tree classifier to recognize four distinct human locomotion patterns. Firstly, they acquired features from both individual and dynamic sets of windows. The experimental outcomes indicated that accuracy was better when performing static tasks but much lower when performing dynamic tasks. The model’s low processing overhead may make it well-suited for real-time applications in medical care. In [28], Tian et al. presented an ensemble learning approach for recognizing human physical activities. Three state-of-the-art classifiers and multiple SVMs were trained by numerous features, resulting in an ensemble learning-based system. Additionally, an adaptive hybrid model extracted various features from human physical activities to improve their recognition rate. Jing et al. [29] developed a HAR-based system for tracking life log daily activities along with fall detection by using various wearable inertial sensors. Javed et al. [30] presented a state-of-the-art technique to recognize human physical activities via sensory data acquired from a two-axis smartphone accelerometer. In addition, this study also determined the efficacy and impact of the individual accelerometer axis in classifying human physical activities. Furthermore, this technique incorporates multi-modal sensory data acquired from three body-worn sensors. This study demonstrates that the augmentation of inertial sensor data improves the HAR accuracy. The entire system was compared to a complete activity set comprising cyclic, static, and random actions. Furthermore, time and frequency domain features were extracted to gain optimal results.

3. Material and Methods

The proposed HPAR system acquired raw signals from five benchmark datasets comprising MEMS inertial sensors. To begin, a preprocessing step was employed to eliminate saw-tooth wave noise caused by abrupt displacement using a third-order median filter. Next, the filtered signal values were organized into time blocks of comparable duration. Secondly, in feature extraction, we proposed an augmented features pool comprising five different features in four domains: time, frequency, wavelet, and time–frequency domain. Additionally, the acquired features were normalized using extreme values to eliminate the possibility of complex values appearing during the final phases of feature selection. Thirdly, a feature selection strategy was adopted for optimizing feature vectors in such a way that the relevant optimal features were retained for further phases of data processing. Finally, the denoised optimal selected features were served to the random forest classifier algorithm, which analyzed the signal stream and trained and tested the model via the optimal feature descriptor set. The proposed architecture of HPAR is presented in Figure 1.

3.1. Data Acquisition and Signal Denoising

Feature extraction was highly dependent on the denoising stage, so it was critical to remove all noise from the acquired raw data [31]. The data collected from the sensors comprising the inertial measurement unit and MEMS were seriously vulnerable to interference and noise, resulting in raw signal variances and, consequently, feature loss. As a result, we utilized a median filter for inertial sensor-based benchmark datasets to reduce the related noise. The denoised and unprocessed signal components of the third-order median filter of the inertial sensor are illustrated in Figure 2.

3.2. Feature Extraction

In this phase, we proposed an augmented features model to obtain important feature descriptors to assist the analysis of inertial-based signals. Additionally, it was composed of four different major domains—time, frequency, wavelet, and frequency domain descriptors. The filtered signals were streamed and used to abstract features from the sensor data stream. Furthermore, signal features were retrieved from within the confined region with adequate contextual information.

3.2.1. Statistical Features

The statistical descriptors (Sd) depict the average mean, mode, median, and min/max signal features of the IMU signal. Additionally, these descriptors are important in assessing the aggregate differences that come from each n physical activity.
Sd = c = 1 n a r n , c = 1 n ( I   I ¯ ) 2 n 1 , m i ( signal ) ( M i ) , m x ( signal ) ( X i )  
where n is the framed vector data size, a is the whole number of coefficients in the vector, V depicts the initial vector value, and   I ¯ represents the average mean of the vector data. Figure 3 showed a three-axis plot augmented with different time domain features of walking activities extracted from the MOTIONSENSE dataset.

3.2.2. Hilbert–Huang Transform (HHT)

The HHT is believed to be highly effective for dealing with non-linear and stochastic signal data [32]. For instance, data from five benchmark datasets involved different inertial time series data. Additionally, the IMU data from different sensors were generally non-linear. Thus, the Hilbert–Huang transform (HHT) divided the resultant time series of non-linear IMU data into distinctive repeated components called intrinsic mode functions (IMFs) (see Figure 4). The whole method is known as the intrinsic mode decomposition. Additionally, these elements generated distinct frequency bands capable of computing shifts in instantaneous frequencies. Therefore, we could make valid comparisons between the attributes of diverse activities. The acquired processed data can be expressed as:
P ( s ) = a = 1 n c a + r n
where P(s) represents the processed inertial signal, ca indicates the ath IMF, and r n depicts the whole remainder.

3.2.3. Haar Wavelet Transform

The Haar wavelet transform (HWT) has evolved as a sophisticated technology in the domain of image and signal analysis. In general, wavelets are mathematical techniques utilized for hierarchically splitting functions [33]. In our HPAR model, the Haar wavelet-based features were used to recognize patterns at specific intervals in order to examine signal variations. In addition, the Haar wavelet transform involves a wavelet-based structure (see Figure 5). Therefore, it is a robust and reliable signal processing technique. HWTs are denoted by their coefficients (a, d), with ‘a’ depicting approximation coefficients and ‘d’ representing the approximation coefficients. Moreover, these coefficients facilitate estimating the IMU signal’s total power and serve inappropriate restoration and segmentation. The HWT can be expressed as:
ψ ( f ) = { 1 0 a 1 2 1 1 2 a 1 0   else  
where the scaling function is expressed as ψ ( f ) .

3.2.4. Spectral Entropy

Spectral entropy quantifies the randomness in a model, which contributes to the system’s complexity [34]. The system’s complexity provides significant information, such as random variations in body activity. These data are utilized to distinguish between various life log activities (see Figure 6). Additionally, they assist in estimating the IMU signal spectral range, which generates a power spectrum involving important information about a particular activity. The following steps were used to acquire the features presented by spectral entropy.
  • Firstly, the acquired IMU signal’s power spectrum was normalized and denoted as Psp(f).
Q s p ( f ) = P s p ( f ) f P s p ( f )  
  • To extract modified elements, we utilized the Shannon function to change the normalized power spectrum.
T s p ( f ) = Q s p ( f ) l o g 1 Q s p ( f )  
  • In the end, the acquired Q s p ( f ) elements were enveloped.
    S E   s p = f Q s p ( f i ) log ( N s p ( f 1 , f 2 ) )  
    where SEsp is equivalent to the number of elements in total.

3.2.5. Wavelet Packet Entropy (WPE)

Wavelet packet entropy is a time–frequency representation technique that is both effective and reliable for inertial signals. Initially, WPE decomposes an inertial signal into many frequency resolutions, each with its own set of information and approximation factors [35]. The two-level decomposition of walking data is presented in Figure 7. Additionally, WPE can be represented as:
d p e = { d 0 , 0 ( a ) = p ( a ) d i , 2 j 1 ( r ) = 2 c h ( c ) d i 1 , j ( 2 r c ) d l , 2 j ( r ) = 2 c g ( c ) d i 1 , j ( 2 r c )
where h(c) along with g(c) denotes two different filters for the extraction of ACs and DCs, and di,j indicates the restoration of IMU signals at the ith and jth node.

3.3. Feature Selection via Stochastic Gradient Descent (SGD)

In the proposed HPAR model, features from the different domains were optimized using a state-of-the-art gradient algorithm, referred to as a stochastic gradient algorithm. Gradient descent is an important method for discovering the optimal solution with the lowest cost function via a linear function. Initially, gradient descent was utilized to adapt network gradients in neural networks [36]. Additionally, the gradient descent approach may work slower if all the training data are evaluated at each epoch. Furthermore, in some cases, SGD outperforms the other gradient optimizers, such as Adam, in terms of adaptability to new data [37]. The training phase ends when the loss on the validation set exceeds the threshold level. Due to the fact that SGD generates more oscillations throughout the training phase, it requires a more significant number of epochs to converge. Considering the extended training period, SGD has two significant advantages. To begin with, the stochastic technique improves the probability of outperforming local minima solutions [38,39]. Then this lowers the risk of abruptly interrupting the training process by ensuring that the model has been through a sufficient number of epochs [40,41]. Therefore, we present the SGD approach with the minibatch as a non-consumptive optimizer. However, when incorporated with sparse data selection, the minibatch SGD significantly lowers the cost and inconsistency associated with the traditional SGD. Thus, the minibatch involves a comprehensive analysis combined with adaptive learning rates and initial settings to attain the minimum loss function. As a result, the learning settings are adjusted, and the result is attained reliant on the learning rate. Thus, the first learning rate was set to default 0.01, and the average batch size was set to 1000, which may be tuned via regularization parameters. The SGD model for the entire training sets for i(k)and j(k) is as follows:
θ = θ η · θ J ( θ ; i ( r ) ; j ( r ) )
where θ shows the main angle, θ J ( θ ; i ( r ) ; j ( r ) ) are the main functions, and η signifies the size of the minibatch, and the lowest loss function is denoted by:
θ = θ η · θ J ( θ ; i ( r : r + n b s ) ; j ( r : r + n b s ) )
where θ shows the angle and θ J ( θ ; i ( r : r + n b s ) ; j ( r : r + n b s ) ) the updated main function.

3.4. Classification

After the feature selection step, we tested our proposed HPAR model from five benchmark datasets, IM-WSHA, PAMAP-2, UCI HAR, MobiAct, and MOTIONSENSE, which were composed of diverse classes of human daily living activities. The optimal feature descriptors of SGD were recognized by a state-of-the-art classifier, random forest (RF), which followed ensemble learning techniques for classification and regression. Additionally, the random forest classifier included a novel variant of bagged trees, which is an optimal method for creating a training test. In our case, bagging acquired samples from all five daily living activities datasets. A model was built for each sample and was utilized to make decision trees. Finally, all decision trees were augmented based on the highest number of votes to deliver the best results. Figure 8 illustrates the overall architecture of the random forest classifier. The classified vectors for the IM-WSHA dataset are shown in Figure 9.
For r = 1, … R: Samples, with an alternative, n training examples from A, B, are also referred to as Ar, Br.
We trained a proposed model, fr on Ar, Br.
f ^ = 1 R r = 1 R f r ( y )
where y′ indicates the predictions for the random samples. It was calculated by averaging the prediction of all decision trees on y′. The total number of samples is represented as R, which is a free parameter.

4. Discussion

All experiments and testing were performed using an HP laptop configured with an Intel Core i5-8300H CPU operating at a base frequency of 2.30 GHz, 8GB RAM, and Nvidia GTX 1050Ti dedicated graphics card running Windows 10 Pro 64-bit with Google Colab and MATLAB. Additionally, a model for evaluating the performance of our HPAR system from five benchmark datasets was constructed. Furthermore, we used the leave-one-subject-out (LOSO) cross-validation scheme to assess the recognition performance of our HPAR model in different indoor and outdoor settings.

4.1. Benchmark Datasets

The first benchmark dataset—the IM-Wearable Smart Home Activities (IM-WSHA) [42] database—contains signal data from five IMU sensors, including three-axis accelerometers, gyroscopes, and magnetometers. Additionally, these IMU sensors were incorporated into three separate bodily regions, the chest, thigh, and wrist, to extract real-time human motion features of daily living activities. Ten individuals (five males and five females) attempted eleven different physical activities in the indoor setting, including walking, exercising, cooking, drinking, phone conversation, ironing, watching TV, reading a book, brushing hair, using the computer, and vacuum-cleaning.
The second benchmark dataset—physical activity monitoring for aging people, also referred to as the PAMAP-2 [43] dataset—is openly accessible via the UCI learning repository. The PAMAP-2 database involved data from three wireless inertial sensors incorporated with three-axis accelerometers, gyros, and magnetometers that were worn on the individual’s wrist, chest, and ankle positions during 18 daily physical static and dynamic activities. However, this dataset evaluated twelve living activities, including walking, cycling, lying down, sitting, standing, Nordic walking, running, rope jumping, ironing, house cleaning, and ascending and descending stairs. Furthermore, this database involved recurring daily activities unique to the HPAR model to analyze the sophisticated motion patterns.
The third benchmark dataset—the MOTIONSENSE [44] dataset—is a publicly available open-access database that involves smartphone tri-axial accelerometers and tri-axial gyroscope sensor data. The human subject placed his smartphone in his front pocket. A total of 24 individuals (14 males and 10 females) performed six life log activities in both indoor and outdoor settings (such as walking, sitting, running, standing, ascending, and descending activities).
The fourth benchmark dataset was the Human Activity Recognition database (UCI HAR) [45]. Researchers acquired triaxial linear acceleration and rotational motion data using the cellphone accelerometer sensor at a data rate of 50 Hz. Such data were normalized for denoising with a median filter and a low Butterworth filter with a 20 Hz sample rate. This frequency is appropriate for detecting human body movements since 99% of its potential is confined to 15 Hz. The speed information, which comprises gravitational and body motion characteristics, was split using each Butterworth low-pass filtration system as body acceleration and gravity.
The fifth benchmark dataset, the MobiAct dataset [46], consists of tri-axial data for 15 activities of daily living (ADLs) and falls from 67 individuals, captured using a Samsung Galaxy S3. Designers examined a frame size of 5 s with a sampling frequency of 87 Hz. Moreover, the individual’s sex, age, body weight, and size were mentioned. The device was randomly oriented within a flexible area selected by the individual. The sampling frequency was originally 87 Hz. Table 1 presents a comprehensive comparison of the five benchmark datasets.

4.2. Experimental Result and Evaluation

We evaluated the performance of a state-of-the-art random forest classifier by catering to the optimal selected features of different domains, including statistical, HHT, HWT, spectral entropy, and wavelet packet entropy descriptors via the PAMAP-2, MOTIONSENSE, UC HAR, MobiAct, and IM-WASHA benchmark databases. The experimental evaluation was conducted three-fold to assess the performance of the HPAR framework from three benchmark datasets. Figure 10a presents the confusion matrix for the IM-WSHA dataset for eleven daily living activities, where 90.18% of total accuracy was achieved. In the PAMAP-2 dataset, Figure 10b indicates a recognition rate of 91.25% from twelve physical activities. Regarding the MOTIONSENSE dataset, Figure 10c depicts an average accuracy of 92.16% from six static and dynamic activities, including walking, sitting, standing, jogging, upstairs, and downstairs. On the other hand, smartphone-based inertial sensor datasets, namely UCI-HAR and MobiAct, achieved significant results. Figure 10d shows that the confusion matrix UCI HAR of the dataset attained a significant mean accuracy of 91.83%. Figure 10e presents the confusion matrix of the MobiAct dataset, which achieved a 90.46% recognition rate.
Figure 11a–e shows the receiver operating characteristic (ROC) curve of six locomotion activities on the UCI HAR, MOTIONSENSE, MobiAct, PAMAP-2, and IMWSHA datasets.
In Table 2, Table 3, Table 4, Table 5 and Table 6, we present the HPAR system performance with two state-of-the-art techniques, the support vector machine (SVM) [47] and AdaBoost [48] classifiers, using accuracy and other performance metrics, such as accuracy, recall, precision, and F measures for all activity classes in five databases.
Similarly, in Table 7, we provide the Cohen’s kappa and Matthews correlation coefficient from all datasets. Finally, in Table 8, we summarize the results of the comparison between the HPAR model and different state-of-the-art systems.

5. Conclusions

In this study, we presented an HPAR system based on augmented feature descriptors, comprising four major domain features. These domains analyzed statistical descriptors, the Hilbert–Huang transform, the Haar wavelet transform, spectral entropy, and wavelet packet entropy descriptors. Additionally, these augmented-based descriptors optimized the performance of the proposed HPAR systems by assessing spatiotemporal moments and continuous motion patterns of human daily living activities. Furthermore, these descriptors were optimized via stochastic gradient descent (SGD) and were then catered to the random forest (RF) classifier for further classification. This work also compares the performance of the SGD-based random forest classifier with other state-of-the-art classifiers, such as support vector machine (SVM) and AdaBoost. Our system incorporates data processing methods, robust feature extraction methods, and classification algorithms that have the potential to outperform the other state-of-the-art recognition rates.
In future studies, we will employ more sophisticated activities and behaviors from various contexts, including healthcare units, sports centers, and smart home environments, via different inertial sensors. Additionally, we intend to develop self-annotated datasets for smart healthcare using multi-modal sensors.

Author Contributions

Conceptualization, S.B.u.d.T., A.B.D., R.F., A.Y., J.A.K., A.M. and E.-A.A.; formal analysis, A.Y. and M.S.; funding acquisition, A.M., E.-A.A. and M.A.; investigation, S.B.u.d.T., A.B.D., R.F., A.Y., M.S. and J.A.K.; methodology, S.B.u.d.T. and M.A.; project administration, A.B.D., R.F., A.Y., A.M., E.-A.A. and M.A.; resources, S.B.u.d.T.; software, S.B.u.d.T.; supervision, R.F. and A.Y.; validation, S.B.u.d.T.; visualization, J.A.K.; writing—original draft, S.B.u.d.T.; writing—review and editing, A.B.D., R.F., A.Y., M.S., J.A.K., A.M., E.-A.A. and M.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

For the data collection no institutional review board statement was necessary.

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Minh Dang, L.; Min, K.; Wang, H.; Jalil Piran, M.; Hee Lee, C.; Moon, H. Sensor-based and vision-based human activity recognition: A comprehensive survey. Pattern Recognit. 2020, 108, 107561. [Google Scholar] [CrossRef]
  2. Gumaei, A.; Hassan, M.M.; Alelaiwi, A.; Alsalman, H. A Hybrid Deep Learning Model for Human Activity Recognition Using Multimodal Body Sensing Data. IEEE Access 2019, 7, 99152–99160. [Google Scholar] [CrossRef]
  3. Kwapisz, J.R.; Weiss, G.M.; Moore, S.A. Activity recognition using cell phone accelerometers. In Proceedings of the 17th Conference on Knowledge Discovery and Data Mining, San Diego, CA, USA, 21–24 August 2011; Volume 12, pp. 74–82. [Google Scholar]
  4. Habib, M.A.; Mohktar, M.S.; Kamaruzzaman, S.B.; Lim, K.S.; Pin, T.M.; Ibrahim, F. Smartphone-Based Solutions for Fall Detection and Prevention: Challenges and Open Issues. Sensors 2014, 14, 7181–7208. [Google Scholar] [CrossRef]
  5. Medrano, C.; Igual, R.; Plaza, I.; Castro, M. Detecting falls as novelties in acceleration patterns acquired with smartphones. PLoS ONE 2014, 9, e94811. [Google Scholar]
  6. Micucci, D.; Mobilio, M.; Napoletano, P.; Tisato, F. Falls as anomalies? An experimental evaluation using smartphone accelerometer data. J. Ambient Intell. Humaniz. Comput. 2017, 8, 87–99. [Google Scholar] [CrossRef]
  7. Ichikawa, F.; Chipchase, J.; Grignani, R. Where’s the phone? In A study of mobile phone location in public spaces. In Proceedings of the 2005 Mobility Conference on Mobile Technology Applications & Systems Retrieve, Guangzhou, China, 15–17 November 2005; pp. 1–8. [Google Scholar]
  8. Subasi, A.; Khateeb, K.; Brahimi, T.; Sarirete, A. Human activity recognition using machine learning methods in a smart healthcare environment. In Innovation in Health Informatics; Elsevier: Amsterdam, The Netherlands, 2020; pp. 123–144. [Google Scholar]
  9. Majumder, S.; Aghayi, E.; Noferesti, M.; Memarzadeh-Tehran, H.; Mondal, T.; Pang, Z.; Deen, M.J. Smart Homes for Elderly Healthcare—Recent Advances and Research Challenges. Sensors 2017, 17, 2496. [Google Scholar] [CrossRef]
  10. Hassan, M.M.; Uddin, M.Z.; Mohamed, A.; Almogren, A. A robust human activity recognition system using smartphone sensors and deep learning. Futur. Gener. Comput. Syst. 2018, 81, 307–313. [Google Scholar] [CrossRef]
  11. Yasin, A.; Liu, L.; Li, T.; Wang, J.; Zowghi, D. Design and preliminary evaluation of a cyber Security Requirements Education Game (SREG). Inf. Softw. Technol. 2018, 95, 179–200. [Google Scholar] [CrossRef]
  12. Bux, A.; Angelov, P.; Habib, Z. Vision Based Human Activity Recognition: A Review. Adv. Comput. Intell. Syst. 2017, 513, 341–371. [Google Scholar]
  13. Meng, Z.; Zhang, M.; Guo, C.; Fan, Q.; Zhang, H.; Gao, N.; Zhang, Z. Recent Progress in Sensing and Computing Techniques for Human Activity Recognition and Motion Analysis. Electronics 2020, 9, 1357. [Google Scholar] [CrossRef]
  14. Fatima, R.; Yasin, A.; Liu, L.; Wang, J. How persuasive is a phishing email? A phishing game for phishing awareness. J. Comput. Secur. 2019, 27, 581–612. [Google Scholar] [CrossRef]
  15. Ignatov, A. Real-time human activity recognition from accelerometer data using Convolutional Neural Networks. Appl. Soft Comput. 2018, 62, 915–922. [Google Scholar] [CrossRef]
  16. Liu, X.; Liu, L.; Simske, S.J.; Liu, J. Human Daily Activity Recognition for Healthcare Using Wearable and Visual Sensing Data. In Proceedings of the IEEE International Conference on Healthcare Informatics (ICHI), Chicago, IL, USA, 4–7 October 2016; pp. 24–31. [Google Scholar]
  17. Yang, X.; Tian, Y. Super normal vector for human activity recognition with depth cameras. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 39, 1028–1039. [Google Scholar] [CrossRef]
  18. Sharif, M.; Khan, M.A.; Akram, T.; Younus, M.J.; Saba, T.; Rehman, A. A framework of human detection and action recognition based on uniform segmentation and combination of Euclidean distance and joint entropy-based features selection. EURASIP J. Image Video Process. 2017, 2017, 89. [Google Scholar] [CrossRef]
  19. Patil, C.M.; Jagadeesh, B.; Meghana, M.N. An Approach of Understanding Human Activity Recognition and Detection for Video Surveillance using HOG Descriptor and SVM Classifier. In Proceedings of the 2017 International Conference on Current Trends in Computer, Electrical, Electronics and Communication (CTCEEC), Mysore, India, 8–9 September 2017; pp. 481–485. [Google Scholar]
  20. Ji, X.; Wang, C.; Ju, Z. A New Framework of Human Interaction Recognition Based on Multiple Stage Probability Fusion. Appl. Sci. 2017, 7, 567. [Google Scholar] [CrossRef]
  21. Wang, Z.; Wang, J.; Xiao, J.; Lin, K.H.; Huang, T. Substructure and boundary modeling for continuous action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Providence, RI, USA, 16–21 June 2012; pp. 1330–1337. [Google Scholar]
  22. İnce, Ö.F.; Ince, I.F.; Yıldırım, M.E.; Park, J.S.; Song, J.K.; Yoon, B.W. Human activity recognition with analysis of angles between skeletal joints using a RGB-depth sensor. ETRI J. 2020, 42, 78–89. [Google Scholar] [CrossRef]
  23. Irvine, N.; Nugent, C.; Zhang, S.; Wang, H.; NG, W.W.Y. Neural Network Ensembles for Sensor-Based Human Activity Recognition Within Smart Environments. Sensors 2020, 20, 216. [Google Scholar] [CrossRef]
  24. Feng, Z.; Mo, L.; Li, M. A Random Forest-based ensemble method for activity recognition. In Proceedings of the 2015 37th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Milan, Italy, 25–29 August 2015; pp. 5074–5077. [Google Scholar]
  25. Gupta, P.; Dallas, T. Feature Selection and Activity Recognition System using a Single Tri-axial Accelerometer. IEEE Trans. Biomed. Eng. 2014, 61, 1780–1786. [Google Scholar] [CrossRef]
  26. Abidine, B.M.H.; Fergani, L.; Fergani, B.; Oussalah, M. The Joint Use of Sequence Features Combination and Modified Weighted SVM for Improving Daily Activity Recognition. Pattern Anal. Appl. 2018, 21, 119–138. [Google Scholar] [CrossRef]
  27. De Cillis, F.; De Simio, F.; Setola, R. Long-term gait pattern assessment using a tri-axial accelerometer. J. Med. Eng. Technol. 2017, 41, 346–361. [Google Scholar] [CrossRef]
  28. Tian, Y.; Wang, X.; Chen, W.; Liu, Z.; Li, L. Adaptive multiple classifiers fusion for inertial sensor based human activity recognition. Cluster Comput. 2018, 22, 8141–8154. [Google Scholar] [CrossRef]
  29. Jung, L.; Cheng, Z. Recognition of daily routines and accidental event with multipoint wearable inertial sensing for seniors home care. In Proceedings of the 2017 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Banff, AB, Canada, 5–8 October 2017; pp. 2324–2389. [Google Scholar]
  30. Javed, A.R.; Sarwar, M.U.; Khan, S.; Iwendi, C.; Mittal, M.; Kumar, N. Analyzing the Effectiveness and Contribution of Each Axis of Tri-Axial Accelerometer Sensor for Accurate Activity Recognition. Sensors 2020, 20, 2216. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  31. Gholami, S.; Khashe, S. Alexa, Predict My Flight Delay. arXiv 2022, arXiv:2208.09921. [Google Scholar]
  32. Sinuraya, E.W.; Rizal, A.; Soetrisno, Y.A.A.; Denis. Performance Improvement of Human Activity Recognition based on Ensemble Empirical Mode Decomposition (EEMD). In Proceedings of the 5th International Conference on Information Technology, Computer, and Electrical Engineering (ICITACEE), Semarang, Indonesia, 27–28 September 2018. [Google Scholar]
  33. Schimmack, M.; Nguyen, S.; Mercorelli, P. Anatomy of Haar Wavelet Filter and Its Implementation for Signal Processing. IFAC-PapersOnLine 2016, 49, 99–104. [Google Scholar] [CrossRef]
  34. Cao, L.; Wang, Y.; Zhang, B.; Jin, Q.; Vasilakos, A.V. GCHAR: An efficient Group-based Context—Aware human activity recognition on smartphone. J. Parallel Distrib. Comput. 2018, 118, 67–80. [Google Scholar] [CrossRef]
  35. Wang, Y.; Liu, Z.; Zhou, Q.; Chen, X. Wavelet Packet Entropy Analysis of Resting State Electroencephalogram in Sleep Deprived Mental Fatigue State. In Proceedings of the International Conference on Human-Computer Interaction, Orlando, FL, USA, 26–31 July 2019; pp. 484–494. [Google Scholar]
  36. Li, Q.; Li, L.; Wang, W.; Li, Q.; Zhong, J. A comprehensive exploration of semantic relation extraction via pre-trained CNNs. Knowl.-Based Syst. 2020, 194, 105488. [Google Scholar] [CrossRef]
  37. Feng, S.; Shen, S.; Huang, L.; Champion, A.C.; Yu, S.; Wu, C.; Zhang, Y. Three-dimensional robot localization using cameras in wireless multimedia sensor networks. J. Netw. Comput. Appl. 2019, 146, 102425. [Google Scholar] [CrossRef]
  38. Keskar, N.S.; Socher, R. Improving Generalization Performance by Switching from Adam to SGD. arXiv 2017, arXiv:1712.07628. [Google Scholar]
  39. Bhargavi, D.; Coyotl, E.P.; Gholami, S. Knock, knock. Who’s there?--Identifying football player jersey numbers with synthetic data. arXiv 2022, arXiv:2203.00734. [Google Scholar]
  40. Ying, C.; Huang, Z.; Ying, C. Accelerating the image processing by the optimization strategy for deep learning algorithm DBN. Eurasip. J. Wirel. Commun. Netw. 2018, 2018, 232. [Google Scholar] [CrossRef]
  41. Bottou, L. Stochastic gradient descent tricks. In Neural Networks: Tricks of the Trade; Springer: Berlin/Heidelberg, Germany, 2012; pp. 421–436. [Google Scholar]
  42. Tahir, S.B.U.D. Intelligent Media-Wearable Smart Home Activities (IM-WSHA). 2020. Available online: http://portals.au.edu.pk/imc/Pages/Datasets.aspx (accessed on 5 April 2022).
  43. Reiss, A.; Stricker, D. Introducing a New Benchmarked Dataset for Activity Monitoring. In Proceedings of the 16th International Symposium on Wearable Computers (ISWC), Newcastle, UK, 18–22 June 2012; pp. 108–109. [Google Scholar]
  44. Malekzadeh, M.; Clegg, R.G.; Cavallaro, A.; Haddadi, H. Mobile Sensor Data Anonymization. In Proceedings of the International Conference on Internet of Things Design and Implementation, Montreal, QC, Canada, 15–18 April 2019. [Google Scholar]
  45. Anguita, D.; Ghio, A.; Oneto, L.; Parra Perez, X.; Reyes Ortiz, J.L. A public domain dataset for human activity recognition using smartphones. In Proceedings of the Proceedings of the 21th International European Symposium on Artificial Neural Networks, Computational Intelligence and Machine Learning; Bruges, Belgium, 24–26 April 2013, pp. 437–442.
  46. Chatzaki, C.; Pediaditis, M.; Vavoulas, G.; Tsiknakis, M. Human daily activity and fall recognition using a smartphone’s acceleration sensor. In Proceedings of the International Conference on Information and Communication Technologies for Ageing Well and e-Health, Rome, Italy, 21–22 April 2016; pp. 100–118. [Google Scholar]
  47. Chen, Y.; Shen, C. Performance Analysis of Smartphone-Sensor Behavior for Human Activity Recognition. IEEE Access 2017, 5, 3095–3110. [Google Scholar] [CrossRef]
  48. Subasi, A.; Dammas, D.H.; Alghamdi, R.D.; Makawi, R.A.; Albiety, E.A.; Brahimi, T.; Sarirete, A. Sensor Based Human Activity Recognition Using AdaBoost Ensemble Classifier. Procedia Comput. Sci. 2018, 140, 104–111. [Google Scholar] [CrossRef]
  49. Heroy, A.M.; Gill, Z.; Sprague, S. Stationary exercise classification using IMUs and deep learning. SMU Data Sci. Rev. 2020, 3, 1. [Google Scholar]
  50. Reiss, A.; Stricker, D.; Hendeby, G. Confidence-based multiclass AdaBoost for physical activity monitoring. In Proceedings of the 17th Annual International Symposium on International Symposium on Wearable Computers, Zurich, Switzerland, 8–12 September 2013; pp. 13–20. [Google Scholar]
  51. Haresamudram, H.; Beedu, A.; Agrawal, V.; Grady, P.L.; Essa, I. Masked Reconstruction Based Self-Supervision for Human Activity Recognition. In Proceedings of the 24th annual International Symposium on Wearable Computers, Cancun, Mexico, 12–16 September 2020. [Google Scholar]
  52. Murahari, V.S.; Plötz, T. On attention models for human activity recognition. In Proceedings of the 2018 ACM International Symposium on Wearable Computers, Singapore, 8–12 October 2018; pp. 100–103. [Google Scholar]
  53. Seiffert, M.; Holstein, F.; Schlosser, R.; Schiller, J. Next Generation Cooperative Wearables: Generalized Activity Assessment Computed Fully Distributed Within a Wireless Body Area Network. IEEE Access 2017, 5, 16793–16807. [Google Scholar] [CrossRef]
  54. Priyadharshini, J.M.H.; Kavitha, S.; Bharathi, B. Classification and analysis of human activities. In Proceedings of the International Conference on Communication and Signal Processing (ICCSP), Chennai, India, 6–8 April 2017; pp. 1207–1211. [Google Scholar]
  55. Jalal, A.; Batool, M.; Kim, K. Stochastic recognition of physical activity and healthcare using tri-axial inertial wearable sensors. Appl. Sci. 2020, 10, 7122. [Google Scholar] [CrossRef]
  56. Khan, W.U.; Ali, Z.; Waqas, M.; Sidhu, G.A.S. Efficient power allocation with individual QoS guarantees in future small-cell networks. AEU-Int. J. Electron. Commun. 2019, 105, 36–41. [Google Scholar] [CrossRef]
  57. Ferreira, P.J.S.; Cardoso, J.M.P.; Mendes-Moreira, J. KNN prototyping schemes for embedded human activity recognition with online learning. Computers 2020, 9, 96. [Google Scholar] [CrossRef]
  58. Batool, M.; Jalal, A.; Kim, K. Sensors Technologies for Human Activity Analysis Based on SVM Optimized by PSO Algorithm. In Proceedings of the 2019 International Conference on Applied and Engineering Mathematics, ICAEM 2019—Proceedings, Taxila, Pakistan, 27–29 August 2019. [Google Scholar]
  59. Wang, J.; Liu, Z.; Wu, Y.; Yuan, J. Mining action let ensemble for action recognition with depth cameras. In Proceedings of the 2012 IEEE Conference on Computer Vision and Pattern Recognition, Providence, RI, USA, 16–21 June 2012; pp. 1290–1297. [Google Scholar]
  60. Harandi, M.; Salzmann, M.; Porikli, F. Bregman divergences for infinite dimensional covariance matrices. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Washington, DC, USA, 23–28 June 2014; pp. 1003–1010. [Google Scholar]
  61. Colon, L.N.V.; DeLaHoz, Y.; Labrador, M. Human fall detection with smartphones. In Proceedings of the 2014 IEEE Latin-America Conference on Communications (LATINCOM), Cartagena de Indias, Colombia, 5–7 November 2014; pp. 1–7. [Google Scholar]
  62. Pervaiz, M.; Jalal, A.; Kim, K. Hybrid Algorithm for Multi People Counting and Tracking for Smart Surveillance. 2021 International Bhurban Conference on Applied Sciences and Technologies (IBCAST), Islamabad, Pakistan, 12–16 January 2021. [Google Scholar]
  63. Casilari, E.; Lora-Rivera, R.; García-Lagos, F. A study on the application of convolutional neural networks to fall detection evaluated with multiple public datasets. Sensors 2020, 20, 1466. [Google Scholar] [CrossRef]
  64. Compagnon, P.; Lefebvre, G.; Duffner, S.; Garcia, C. Sequence Metric Learning as Synchronization of Recurrent Neural Networks. In Proceedings of the 2021 International Joint Conference on Neural Networks (IJCNN), Shenzhen, China, 18–22 July 2021; pp. 1–8. [Google Scholar]
  65. Compagnon, P.; Lefebvre, G.; Duffner, S.; Garcia, C. Learning personalized ADL recognition models from few raw data. Artif. Intell. Med. 2020, 107, 101916. [Google Scholar] [CrossRef]
Figure 1. The proposed architecture of the HPAR system.
Figure 1. The proposed architecture of the HPAR system.
Sensors 22 06632 g001
Figure 2. Signal denoising for the wearable inertial signals in the proposed HPAR framework.
Figure 2. Signal denoising for the wearable inertial signals in the proposed HPAR framework.
Sensors 22 06632 g002
Figure 3. Three-axis vector plot of statistical features of daily life log activity (walking) from the USC-HAD dataset.
Figure 3. Three-axis vector plot of statistical features of daily life log activity (walking) from the USC-HAD dataset.
Sensors 22 06632 g003
Figure 4. The sifting process of the empirical mode decomposition of inertial components from the USC−HAD dataset. From top to bottom, an input signal and intrinsic mode functions 1, 2, and 3. Finally, IMF is reduced from the input.
Figure 4. The sifting process of the empirical mode decomposition of inertial components from the USC−HAD dataset. From top to bottom, an input signal and intrinsic mode functions 1, 2, and 3. Finally, IMF is reduced from the input.
Sensors 22 06632 g004
Figure 5. The 1D-HWT feature of the inertial signal feature plot from daily activity (walking) from the USC-HAD dataset.
Figure 5. The 1D-HWT feature of the inertial signal feature plot from daily activity (walking) from the USC-HAD dataset.
Sensors 22 06632 g005
Figure 6. Spectral entropy for the upstairs walking activity signal plot from the MOTIONSENSE dataset. The black signal denotes inertial data and the blue signal represents the spectral entropy of an inertial signal from the MOTIONSENSE dataset.
Figure 6. Spectral entropy for the upstairs walking activity signal plot from the MOTIONSENSE dataset. The black signal denotes inertial data and the blue signal represents the spectral entropy of an inertial signal from the MOTIONSENSE dataset.
Sensors 22 06632 g006
Figure 7. Wavelet packet entropy (two-level) decomposition for the inertial data (for walking data from the USC-HAD dataset).
Figure 7. Wavelet packet entropy (two-level) decomposition for the inertial data (for walking data from the USC-HAD dataset).
Sensors 22 06632 g007
Figure 8. Proposed HPAR model from the random forest classifier.
Figure 8. Proposed HPAR model from the random forest classifier.
Sensors 22 06632 g008
Figure 9. Random forest recognition on the IM−WSHA benchmark dataset.
Figure 9. Random forest recognition on the IM−WSHA benchmark dataset.
Sensors 22 06632 g009
Figure 10. Confusion matrices of (a) the 11 daily living activities on the IM-WSHA dataset via random forest, (b) 12 physical activities on the PAMAP-2 dataset via random forest, (c) 6 locomotion activities on the MOTIONSENSE dataset via random forest, (d) 6 locomotion activities on the UCI HAR dataset via random forest, (e) 6 locomotion activities on the MobiAct dataset via random forest. WA = walking, ST = standing, SSC = stand to sit on chair, SU = stairs up. SD = stairs down, SL = sideward-laying, JP = jumping, JG = jogging, FKL= front-knees-laying, FL = forward-laying, CSO = car-step-out, CSI = car-step in, BSC = back-sitting-chair.
Figure 10. Confusion matrices of (a) the 11 daily living activities on the IM-WSHA dataset via random forest, (b) 12 physical activities on the PAMAP-2 dataset via random forest, (c) 6 locomotion activities on the MOTIONSENSE dataset via random forest, (d) 6 locomotion activities on the UCI HAR dataset via random forest, (e) 6 locomotion activities on the MobiAct dataset via random forest. WA = walking, ST = standing, SSC = stand to sit on chair, SU = stairs up. SD = stairs down, SL = sideward-laying, JP = jumping, JG = jogging, FKL= front-knees-laying, FL = forward-laying, CSO = car-step-out, CSI = car-step in, BSC = back-sitting-chair.
Sensors 22 06632 g010
Figure 11. Receiver operating characteristic (ROC) curve on the (a) UCI HAR dataset, (b) MOTIONSENSE dataset, (c) MobiAct dataset, (d) PAMAP-2 dataset, (e) IMWSHA dataset.
Figure 11. Receiver operating characteristic (ROC) curve on the (a) UCI HAR dataset, (b) MOTIONSENSE dataset, (c) MobiAct dataset, (d) PAMAP-2 dataset, (e) IMWSHA dataset.
Sensors 22 06632 g011
Table 1. A detailed comparison of our self-annotated IM-WSHA dataset and other benchmark datasets with sample sizes, other similarities, and differences.
Table 1. A detailed comparison of our self-annotated IM-WSHA dataset and other benchmark datasets with sample sizes, other similarities, and differences.
DatasetSensorsSample RateActivitiesSubjects
IM-WSHA (Self-annotated)3-IMUs100 HzCooking, drinking, reading a book, walking, etc.10
PAMAP-23-IMUs9 HzSitting, standing, walking, ironing, cycling, etc.9
MobiActSmartphone20 HzStanding, walking, jogging, lying19
UCI-HARAccelerometer and gyroscope50 HzWalking, walking upstairs, walking downstairs30
MOTIONSENSESmartphone50 Hzwalking
Jogging, downstairs, upstairs, etc.
24
Table 2. Comparison of the evaluation metrics (precision, recall, and F1 score) of the HPAR model from the IM-WSHA dataset.
Table 2. Comparison of the evaluation metrics (precision, recall, and F1 score) of the HPAR model from the IM-WSHA dataset.
MethodsRandom ForestSVM-RBFAdaBoost
ActivitiesPrecisionRecallF1 ScorePrecisionRecallF1 ScorePrecisionRecallF1 Score
W10.9120.9400.9260.8830.8850.8790.8310.8240.827
W20.8980.8900.8940.8750.8680.8640.8270.8150.820
W30.8800.8800.8800.8680.8650.8820.8390.8280.833
W40.9020.9300.9160.8410.8540.8570.8150.8120.813
W50.9180.9000.9090.9090.9030.9110.8460.8310.838
W60.8810.8800.8850.8720.8700.8800.8440.8370.840
W70.9000.9000.9000.8810.8710.8680.8310.8250.827
ActivitiesPrecisionRecallF1 ScorePrecisionRecallF1 ScorePrecisionRecallF1 Score
W80.8880.9100.8840.8700.8690.8670.8240.8160.819
W90.9090.9000.9040.8810.8770.8810.8530.8450.848
W100.9000.9100.9050.8820.8790.8770.8290.8190.823
W110.9270.9000.9130.8950.8920.9000.8460.8370.841
Mean0.9010.9030.9010.8780.8750.8780.8350.8260.829
W1 = walking; W2 = exercising; W3 = cooking; W4 = drinking; W5 = phone conversation; W6 = ironing; W7 = watching tv; W8 = reading book; W9 = brushing hair; W10 = using computer; W11 = vacuum cleaning.
Table 3. Comparison of the evaluation metrics (precision, recall, and F1 score) of the HPAR model from the PAMAP-2 dataset.
Table 3. Comparison of the evaluation metrics (precision, recall, and F1 score) of the HPAR model from the PAMAP-2 dataset.
MethodsRandom ForestSVM-RBFAdaBoost
ActivitiesPrecisionRecallF1 ScorePrecisionRecallF1 ScorePrecisionRecallF1 Score
A10.8870.9500.9170.8840.8750.8840.8370.8240.830
A20.9200.9200.9200.8610.8640.8610.8330.8260.829
A30.9270.9400.9330.8940.8730.8940.8410.8830.861
A40.8610.9000.8800.8490.8710.8490.8150.8200.817
A50.9380.9200.9280.9140.9170.9140.8410.8300.835
A60.9080.9100.9090.8970.8840.8970.8380.8290.833
A70.9230.9300.9260.8750.8610.8750.8290.8340.831
A80.9100.8800.8940.8670.8630.8670.8210.8170.818
A90.9460.9200.9330.8770.8810.8770.8310.8270.828
A100.8800.9100.8940.8360.8320.8360.8360.8270.831
A110.9190.8900.9040.8960.9090.8960.8420.8310.836
A120.9370.9300.9330.8920.9030.8920.8460.8380.841
Mean0.9130.9160.9140.8780.8770.8780.8340.8320.833
A1 = walking; A2 = cycling; A3 = lying down; A4 = sitting; A5 = standing; A6 = nordic walking; A7 = running; A8 = rope jumping; A9 = ironing; A10 = house cleaning; A11 = ascending stair; A12 = descending stair.
Table 4. Comparison of the evaluation metrics (precision, recall, and F1 score) of the HPAR model from the MOTIONSENSE dataset.
Table 4. Comparison of the evaluation metrics (precision, recall, and F1 score) of the HPAR model from the MOTIONSENSE dataset.
MethodsRandom ForestSVM-RBFAdaBoost
ActivitiesPrecisionRecallF1 ScorePrecisionRecallF1 ScorePrecisionRecallF1 Score
M10.9410.9600.9500.8850.8880.8860.7880.7960.791
M20.9280.9100.9190.9010.8820.8910.8250.7950.809
M30.9180.9000.9090.7910.8100.8000.7680.7900.778
M40.9110.9200.9150.7690.7500.7590.7450.7020.722
M50.9100.9100.9100.7590.7660.7620.7360.7370.736
M60.9200.9300.9250.7850.7830.7830.7510.7120.730
Mean0.9210.9220.9210.8150.8130.8140.7680.7550.761
M1 = sitting; M2 = standing; M3 = downstairs; M4 = upstairs; M5 = walking; M6 = jogging.
Table 5. Comparison of the evaluation metrics (precision, recall, and F1 score) of the HPAR model from the UCI-HAR dataset.
Table 5. Comparison of the evaluation metrics (precision, recall, and F1 score) of the HPAR model from the UCI-HAR dataset.
MethodsRandom ForestAdaBoostSVM-RBF
ActivitiesPrecisionRecallF1 ScorePrecisionRecallF1 ScorePrecisionRecallF1 Score
U10.9790.9790.9790.9780.9570.9680.9760.9760.976
U20.9680.9780.9730.9670.9780.9730.9760.9640.970
U30.9780.9680.9730.9770.9770.9770.9631.0000.981
U40.9470.9680.9570.9430.9650.9540.9740.9740.974
U50.9790.9590.9690.9880.9770.9830.9750.9630.969
U60.9680.9680.9680.9670.9670.9670.9760.9640.970
Mean0.9700.9700.9700.9700.9700.9700.9730.9740.973
U1 = walking; U2 = walking upstairs; U3 = walking downstairs; U4 = sitting; U5 = standing; U6 = laying.
Table 6. Comparison of the evaluation metrics (precision, recall, and F1 score) of the HPAR model from the MobiAct dataset.
Table 6. Comparison of the evaluation metrics (precision, recall, and F1 score) of the HPAR model from the MobiAct dataset.
MethodsRandom ForestAdaBoostSVM-RBF
ActivitiesPrecisionRecallF1 ScorePrecisionRecallF1 ScorePrecisionRecallF1 Score
B10.9200.9790.9480.9190.9780.9480.9170.9780.946
B20.9010.9100.9050.9430.8920.9170.9350.9460.941
B30.9590.9390.9490.9330.9440.9390.9550.9550.955
B40.9560.9260.9410.9560.9160.9350.9550.9440.949
B50.9480.9200.9340.9690.9490.9590.9650.9120.938
B60.9190.9100.9150.9360.9570.9460.9760.9220.949
B70.9180.9370.9270.9340.9340.9340.9760.9530.964
B80.8920.9580.9240.8870.9560.9200.9200.9880.952
B90.9180.9280.9230.9570.9670.9620.9080.9630.935
B100.9380.9380.9380.9770.9450.9610.9520.9520.952
B110.9570.9470.9520.9760.9530.9640.9640.9420.953
B120.9680.9680.9680.9640.9640.9640.9640.9640.964
B131.0000.9280.9630.9530.9430.9481.0000.9650.982
Mean0.9380.9370.9370.9470.9460.9460.9530.9530.952
B1 = walking; B2 = standing; B3 = stand to sit on chair; B4 = stairs up; B5 = stairs down; B6 = sideward-laying; B7 = jumping; B8 = jogging; B9 = front-knees-laying; B10 = forward-laying; B11 = car-step-out; B12 = car-step-out; B13 = back-sitting-chair.
Table 7. Cohen’s kappa and Matthews correlation coefficient from all datasets.
Table 7. Cohen’s kappa and Matthews correlation coefficient from all datasets.
ActivitiesMOTIONSENSEIM-WSHAPAMAP-2MobiActUCI-HR
Mean MCC value0.900.890.900.930.96
Table 8. Comparison of the recognition rate of the proposed HPAR model with other state-of-the-art methods from the IM-WSHA, PAMAP-2, UCI-HR, MobiAct, and MOTIONSENSE datasets.
Table 8. Comparison of the recognition rate of the proposed HPAR model with other state-of-the-art methods from the IM-WSHA, PAMAP-2, UCI-HR, MobiAct, and MOTIONSENSE datasets.
MethodsMOTIONSENSE (%)PAMAP-2 (%)IM-WSHA (%)UCI-HR (%)MobiAct (%)
Bidirectional LSTM [49]-64.10---
AdaBoost [50]-77.7881.30--
BERT model [51]79.86----
Deep convolutional network [52]-87.50---
Kinematics features and kernel sliding perceptron [53]-90.4984.50--
Ensemble learning [54]-90.11---
Multi-fused features [55]88.25----
KNN classification [56]--75.30--
Optimized method [57]87.50----
Actionlet ensemble [58]---88.20-
COV-JH-SVM [59]---80.40-
FTP-SVM [60]---90.01-
Threshold technique [61]----81.30
SVM [62]----77.93
CNN [63]----80.71
Coupled GRU [64]---88.50-
SSMN [65]---81.0087.90
Proposed HPAR System92.1691.2590.1891.8390.46
Bold letters for proposed HPAR system recognition of all datasets.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Tahir, S.B.u.d.; Dogar, A.B.; Fatima, R.; Yasin, A.; Shafiq, M.; Khan, J.A.; Assam, M.; Mohamed, A.; Attia, E.-A. Stochastic Recognition of Human Physical Activities via Augmented Feature Descriptors and Random Forest Model. Sensors 2022, 22, 6632. https://doi.org/10.3390/s22176632

AMA Style

Tahir SBud, Dogar AB, Fatima R, Yasin A, Shafiq M, Khan JA, Assam M, Mohamed A, Attia E-A. Stochastic Recognition of Human Physical Activities via Augmented Feature Descriptors and Random Forest Model. Sensors. 2022; 22(17):6632. https://doi.org/10.3390/s22176632

Chicago/Turabian Style

Tahir, Sheikh Badar ud din, Abdul Basit Dogar, Rubia Fatima, Affan Yasin, Muhammad Shafiq, Javed Ali Khan, Muhammad Assam, Abdullah Mohamed, and El-Awady Attia. 2022. "Stochastic Recognition of Human Physical Activities via Augmented Feature Descriptors and Random Forest Model" Sensors 22, no. 17: 6632. https://doi.org/10.3390/s22176632

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop