Next Article in Journal
Method to Increase Dependability in a Cloud-Fog-Edge Environment
Previous Article in Journal
A Hierarchy-Based System for Recognizing Customer Activity in Retail Environments
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Physical Activity Recognition Based on a Parallel Approach for an Ensemble of Machine Learning and Deep Learning Classifiers

1
Laboratoire LIO, Centre de Recherche du CHUM, Montreal, QC H2X 0A9, Canada
2
LICEF Institute, TELUQ University, Montreal, QC G1K 9H6, Canada
3
INRS, Centre Énergie, Matériaux et Télécommunications, Montreal, QC G1K 9A9, Canada
4
Département de Génie des Systémes, École de Technologie Supérieure (ÉTS), Montreal, QC H3C 1K3, Canada
5
LR11TIC01, COSIM Lab., University of Carthage SUP’COM, El Ghazala 2083, Tunisia
*
Authors to whom correspondence should be addressed.
These authors contributed equally to this work.
Sensors 2021, 21(14), 4713; https://doi.org/10.3390/s21144713
Submission received: 4 March 2021 / Revised: 10 May 2021 / Accepted: 1 July 2021 / Published: 9 July 2021
(This article belongs to the Section Sensor Networks)

Abstract

:
Human activity recognition (HAR) by wearable sensor devices embedded in the Internet of things (IOT) can play a significant role in remote health monitoring and emergency notification to provide healthcare of higher standards. The purpose of this study is to investigate a human activity recognition method of accrued decision accuracy and speed of execution to be applicable in healthcare. This method classifies wearable sensor acceleration time series data of human movement using an efficient classifier combination of feature engineering-based and feature learning-based data representation. Leave-one-subject-out cross-validation of the method with data acquired from 44 subjects wearing a single waist-worn accelerometer on a smart textile, and engaged in a variety of 10 activities, yielded an average recognition rate of 90%, performing significantly better than individual classifiers. The method easily accommodates functional and computational parallelization to bring execution time significantly down.

1. Introduction

Miniaturization of complex electrical devices at continually lower cost has brought about the development of a variety of wearable sensors and their embedding in healthcare-dedicated Internet of things (IoT). The broad purpose of a healthcare IoT, sometimes called Internet of medical things, abbreviated as IoMT, is to provide a network of embedded systems to acquire, communicate, and analyze data for remote medical practice of accrued quality. Sensors in the embedded systems of IoMT can perform a variety of useful measurements, such as heart rate, body temperature, blood pressure, temporal data, as with electrocardiography (ECG), and activity data, such as movement acceleration. The purpose of this study is to investigate a human activity recognition (HAR) method of accrued decision accuracy and speed of execution to be applicable and practicable in healthcare IoT applications. The method uses acceleration data of human movement recorded by a single, comfortably worn accelerometer. Recent HAR research in healthcare has used various wearable sensors for health monitoring and physical rehabilitation systems [1]. For instance, ref. [2] provided a qualitative synthesis of studies using wearable body sensors for health monitoring, pointing out a number of shortcomings in prior research with respect to both sample size and participant demographics. Such systems aim at developing methods for automatically recognizing human physical activities by analyzing data gathered by sensors in wearable devices. The basic problem is to assign a time series segment of sensor data to a corresponding activity during that time segment [3].
Machine learning can model a wide range of human physical activities for HAR in wearable-sensor embedded systems. However, serious challenges remain. First, both training and learning technique evaluation require large annotated data sets. This can be both a data-intensive and computation-intensive process. Thus, it is important to design parallel algorithms that fully exploit the computational capacity of the target machine and reduce the training time. Moreover, technical issues such as parallel ensemble learning algorithms that aim at optimizing both the accuracy and computational costs are not yet fully addressed by previous research works.
There have been several HAR studies using wearable sensors that we detail in the next section. The results of current research firmly establish the merit and feasibility of wearable sensor HAR and justify further investigation to develop practicable, parallel efficient algorithms. The purpose of this study is to investigate a parallel classifier combination method toward this end. Specifically, the contributions of this study are:
  • A large dataset to serve HAR system development, recorded on participants using a comfortable smart textile garment with an embedded single waist-worn accelerometer.
  • A parallel architecture to combine traditional and deep learning pattern classification algorithms, for accrued computational and classification accuracy, that we referred to as an ensemble learning architecture. This architecture includes both the training and testing aspects of algorithm development, for ease of application development.
  • A parallel implementation of this ensemble learning architecture.
The proposed ensemble architecture is novel because it combines feature engineering and feature learning, and does so with a parallel implementation of cross-validation: it fuses the decisions of distinct classifiers in a manner that increases the robustness and accuracy of the final decision. The method is demonstrated in the important field of health monitoring and rehabilitation. It is tractable so as to easily allow the inclusion of additional classification models. The remainder of this paper is organized as follows: Section 2 gives an overview of sensor-based HAR systems, Section 3 presents a detailed description of the materials and methods used in this study, which includes data acquisition, preprocessing, and the proposed parallel architecture framework. Section 4 describes and discusses the experimental results. Finally, Section 5 contains a conclusion and perspectives for further research.

2. Related Work

This paper deals with the problem of wearable sensor-based HAR to recognize activity data collected from a single accelerometer embedded in a wearable device using an ensemble architecture that combines both feature engineering and feature learning approaches with a parallel implementation of the leave-one-subject-out cross-validation method. We highlight in this section the particularities of this work, in terms of research goals and contributions, compared to the related work of wearable sensor-based HAR.
Sensor-based HAR can be defined as the process of interpreting sensor data to recognize a set of human physical activities [4]. More specifically, sensor-based HAR is a classical multivariate time series analysis problem that aims at classifying contiguous portions of sensor data streams which cover activities of interest for a given target application.
Several approaches have been proposed for wearable sensor-based HAR, in which various human activities were investigated, including common daily activities, ambulation, and fitness exercise, and they have been well surveyed. Lara et al. [5] surveyed the state of the art in HAR based on wearable sensors. The authors evaluated the state-of-the-art HAR systems by defining a taxonomy that allows one to compare and analyze them within groups that share common characteristics such as the recognized activities, the type of sensors and the measured attributes, the integration device, the obtrusiveness level, the type of data collection protocol, the energy consumption level, the classifier flexibility level, the feature extraction method, the learning algorithm, and the overall accuracy for all activities. Twenty eight HAR systems present in the literature have been compared according to the aforementioned aspects. Attal et al. [6] presented a review of recognition of human activities using wearable sensors and focused on wearable sensors’ placement, preprocessing data including feature extraction and selection and classification techniques. Nweke et al. [7] reviewed deep learning methods for mobile and wearable sensor-based human activity recognition. The review presents the methods and their advantages and limitations. Wang et al. [8] presented a survey on the wearable sensor modality centred HAR in health care, including the sensors used in HAR, the sensor placement on different body parts, the most commonly seen sensor platforms in HAR, activities defined in this field, data segmentation, feature learning, classification, etc.
As expected, most of the sensor measurements used in the existing studies are categorized as related to the user’s movement (e.g., using accelerometers or GPS), environmental variables (e.g., temperature and humidity), or physiological signals (e.g., heart rate or electrocardiogram). These are typically collected from a small number of subjects and in restrictive settings. For instance, Bao and Intille [9] reported the number of subjects who participated in past studies on activity recognition using acceleration as ranging from 1 to 24. In a more recent review, Wang et al. [10] presented several widely used public HAR datasets of acceleration samples and reported the number of subjects who participated in these studies, ranging from 1 to 36. Moreover, these approaches vary depending on the sensor technologies used to acquire the data, the features used to train the model: handcrafted feature extraction (feature engineering) or automatic feature extraction (feature learning), and the learning-based classification techniques, namely classical machine learning and deep approaches.
The majority of the research works on wearable sensor-based HAR have so far focused on using accelerometers. They are particularly effective in monitoring activities that involve repetitive body motions, such as walking, running, sitting, standing, and climbing stairs.
Smartphones and wearables equipped with accelerometers, such as smart clothes, are widely used modalities in sensor-based HAR. Garcia et al. [11] discussed publicly available datasets collected from different wearables and/or smartphone sensors such as the WISDM [12], PAMAP2 [13], and MHealth [14] datasets. Particularly, for the smartphone-based HAR, a review of related work was presented in [15], with an emphasis on the activities analysed, types of sensor data used, features extracted, classification method applied, and accuracy achieved. For instance, Kwapisz et al. [12] collected sensor data from phone-based accelerometers using an application installed on each user‘s phone. Three-axis accelerometer sensors were collected from 36 users carrying a smartphone placed on their front pants pocket. Bayat et al. [16] collected three-axis accelerometer sensor data from 4 subjects, each carrying a cell phone, in either the in-hand or in-pocket position. Nowadays, almost everyone carries a smartphone, which provides a convenient way to collect raw sensor data to infer physical activity. However, one drawback is that smartphones are usually carried in bags or pockets, and generally not positioned on the body.
Another approach to detect a broad range of physical activities is to wear multiple accelerometers placed simultaneously at different locations on the subject body (hip, chest, ankle, waist, etc.). For instance, Kern et al. [17] placed three-axis accelerometer sensors in all major joints on the human body to recognize everyday postures and activities: just above the ankle, just above the knee, on the hip, on the wrist, just above the elbow, and on the shoulder. Bao and Intille [9] collected sensor data from five biaxial accelerometers placed on each subject’s right hip, dominant wrist, non-dominant upper arm, dominant ankle, and non-dominant thigh to recognize ambulation, posture, and other everyday activities. Even though this approach is known for yielding strong performance rates, it is not practical in clinical settings, for instance.
Other studies, like ours, have focused on the use of a single waist-worn accelerometer for the activity recognition. For example, Bidargaddi et al. [18] analyzed acceleration signals recorded with a three-axis accelerometer, which is mounted on the waist of patients undergoing cardiac rehabilitation.
The ideal sensor location for particular applications is still a subject of much debate. Bao and Intille [9] concluded that the accelerometer placed on the thigh was the most powerful for distinguishing between a range of common everyday household activities. Cheung et al. [19] concluded that the use of a single waist-mounted triaxial accelerometer is the most practical solution for health monitoring. Cleland et al. [20] concluded that the sensor placed on the hip provides the best measures to recognize most everyday activities.
In general, a HAR system is composed of the following steps: (1) sensor data time series acquisition, (2) raw data preprocessing, (3) time series segmentation, (4) feature engineering or learning and feature selection, and (5) classification.
First, wearable sensors collect time series data from users. Then, the raw data collected is processed and represented in the form of labeled multivariate time series.
The purpose of data fusion is to combine data acquired by different sensors or in different axes to increase the reliability, robustness and generalization ability of HAR systems. Data fusion can be achieved at the following three levels: data level, feature level, and decision level [21]. Some existing methods allowing one to fuse different data modalities for human activity recognition include the weighted average and least square method, Kalman filtering and Dempster-Shafer theory [22]. Another common method is to consider the data acquired by different sensors or in different axes, i.e., the multivariate time series, individually in a separate channel, and consider each channel separately as an input of the models [23]. Cai et al. [24] considers three-axis data of a tri-axial accelerometer as an integration and classifies activities based on the resultant acceleration. In the feature-level fusion, conventional feature fusion methods simply concatenate several kinds of extracted features together. For instance, Fu et al. [25] proposed to fuse multiple features in a generalized subspace learning framework. Tao et al. [26] selected the representative frequency features of acceleration along each axis, respectively, and combined them into a vector. The decision-level fusion involves systematic fusion of individual classifier decisions to obtain a final decision in order to increase the accuracy, robustness and generalization [27]. The commonly used classifier combination schemes are simple voting, majority voting, weighted majority, fusion score and posterior probability [28].
Segmentation is the process of dividing the continuous data stream into smaller data segments. Most of the segmentation techniques can be divided into three categories: activity-defined windowing, event-defined windowing, and sliding windowing. The sliding window strategy, which allows a degree of overlap between fixed-size windows, has been prevalent [14].
Feature engineering uses domain knowledge to define the features of data representation [29], and feature learning determines a mapping from the data domain to the feature domain without relying on any domain knowledge. Current research has not clearly established which of feature engineering or feature learning is more potent in HAR. Figo et al. [30] discussed several feature engineering schemes for accelerometer data in HAR, including time domain, frequency domain and discrete domain metrics. Plötz et al. [3] evaluated the effectiveness of feature learning for physical activity classification tasks without involving domain-specific knowledge, compared to feature engineering techniques. He et al. [31] proposed a HAR system based on discrete cosine transform (DCT) as an automatic feature extraction technique. Atallah et al. [32] investigated three methods of feature selection, namely Relief, Simba, and Minimum Redundancy Maximum Relevance (MRMR) methods.
The issue of recognizing physical activities on the basis of accelerometer data has been solved many times by different classification approaches, e.g., k-Nearest Neighbour (k-NN) [33], Decision Trees (DTs) [34], Support Vector Machines (SVMs) [35], Artificial Neural Networks (ANNs), deep learning [3], the hidden Markov model [36], as well as ensemble learning techniques, such as in [37]. Bayat et al. [16] combined three classifiers by the average of the probability fusion method, using accelerometer data from smartphones on two datasets: in-hand phone position and in-pocket phone position. For in-hand phone position, the classifiers consist of the multilayer perceptron, LogitBoost and SVM classifiers, with 91.15% accuracy. For the in-pocket phone position, the best combination is of multilayer perceptron, random forest and simple logistic with 90.34% accuracy. Catal et al. [38] combined three classifiers by the average of probabilities fusion method using accelerometer data from smartphones (the WISDM dataset [12]). The classifiers consist of the J48, logistic regression, and MLP classifiers. Experimental results showed that this new model exhibited a better performance than the standalone classifiers.
This study differs from most prior work in that we use a single device conveniently worn rather than multiple devices distributed across the body, and we require neither additional actions by the user nor any additional specialized equipment. Moreover, this approach enables practical real-world applications for the proposed models, specifically in health monitoring and rehabilitation. Furthermore, we have generated and tested the proposed models using more users than most of the previous studies in accelerometer sensor-based HAR we reviewed and expect this number to grow substantially since we are continuing to collect data. In the light of the previous investigated studies, we proposed ensemble architecture that combines feature engineering and feature learning techniques, which not only allows us to compare heterogeneous classifiers, but also combines their predictions. Obviously, the ensemble learning architectures for human activity recognition have been used many times before and it can be concluded from the literature that ensemble methods produce better results compared to standalone algorithms [37]. However, what is new in this approach is that first, we ran a large database using a parallel implementation of cross-validation to estimate the generalization capabilities of the proposed learning techniques, and second, we applied different fusion approaches (data, feature and decision) all along the pipelines.

3. Materials and Methods

Figure 1 shows the different steps of the overall process, from data acquisition to segmentation and data labeling.

3.1. Data Acquisition

3.1.1. Participants

Data acquisition is performed in two stages. At the first stage, a convenience sample of 14 healthy and young volunteers (age 25.43 ± 7.51 years, weight 60.7 ± 6.7 kg, and height 172.7 ± 7.2 cm) is retained to participate in the data acquisition. At the second stage, 30 healthy and young volunteers (age 24.26 ± 3.35 years, weight 68.4 ± 12.3 kg, and height 170.3 ± 0.08 cm) participate in the data acquisition. The two merged datasets will be the input of the HAR system for healthcare. The study is approved by the Ethics committee (ethical approval code: RDCPJ 522843-17) of the Centre Hospitalier de l’Université de Montréal (CHUM), the École de Technologie Supérieure (ÉTS), and the TÉLUQ university, Canada. Data collection was performed in the biomechanics laboratory on the 7th floor of the research center of CHUM (CRCHUM). Informed consent was obtained from all subjects involved in the study.

3.1.2. Equipment

Data were acquired with a single waist-mounted three-axial accelerometer (a non-invasive sensor with a 13-bit resolution and a frequency of 64 Hz) embedded in a health monitoring wearable shirt, Hexoskin (Carré Technologies, Inc. in Montréal, QC, Canada). The latter also includes three other sensors to record cardiac and respiratory data. These sensor data are not used in the present study. The sleeveless shirt is made of a stretchable fabric (73% micro polyamide and 27% elastane), with anti-bacterial, breathable, lightweight, UV-protective and quick-dry properties. Thus, it is easy to put on, comfortable and can be used in any ambient environment. The accelerometer data acquisition can be performed continuously without hampering the movements of the person wearing it. When in use, the recording device connector slot is plugged into the shirt connector. Once connected, the accelerometer data are transmitted from the recording device to Hexoskin servers via Bluetooth and a dedicated cell phone application (the Hexoskin app), which outputs a report capturing health-related information of the performer. The data can be downloaded later to a PC via a USB cable and the HxServices software. The validity of the Hexoskin as an accelerometer-based physical activity monitor has been already approved [39].

3.1.3. Research Protocol

The dataset used in this study is acquired by our research team. It will serve as a basis for the development of human physical activity recognition systems for medical purposes. In the experiments, 44 participants wearing the Hexoskin shirt, performed 10 activities. Before the acquisition, the participant anthropometrics were recorded (i.e., age, gender, height, weight). In order to capture the intra-subject variability and collect a big dataset, each subject was asked to perform 6 trials for each sequence of activities—that is, the participant performed the different activities in a different order in each trial. A sequence of the activities performed in the laboratory environment is: go up the stairs two floors (A1), go down the stairs two floors (A2), walk for 30 s along the corridor (A3), run for 30 s along the same corridor (A4), sit for 30 s on a chair (A5), fall-right, -left, -front and -black (respectively, A6 to A9), and lie intentionally on a mattress (A10) (Figure 2). The 11th class corresponds to transitional activities. This class was removed from the dataset before training.
We note that trials were video recorded using a separate smartphone. Then, the video was used as a benchmark to annotate the activities. Each video was tagged by a timestamp in milliseconds.

3.2. Preprocessing

3.2.1. Labeling Procedure

First, two members of our research team analyzed each video. They manually and precisely annotated the temporal bounds of the observed activities (i.e., start and end times of each activity) in the video. Hence, a ground truth csv file was created for each video with the start and end times of the activities, as well as the class labels. Then, two other members of our research team verified the annotation process. The raw unlabeled accelerometer records of each axis were downloaded separately from the Hexoskin server. The first column represents the timestamp (in seconds) and the second column represents the data themselves. We retrieve the start date and time of the data acquisition from the “statistics.csv” file downloaded from the Hexoskin server. A second csv file was then automatically generated. In this file, the first column represents the timestamp (in milliseconds). Data from the x, y, and z axis were, respectively, in the 2nd, 3rd and 4th columns. The Euclidean norm was automatically computed and stored in the 5th column. Then, we automatically assigned a ground truth label to each timestamp of the data stream based on the ground truth csv file. To fine-tune the labeling procedure, we visually inspected the plots of the raw three-axis labeled accelerometer data. Each data cluster corresponding to an activity label has a different color on the plot, as depicted in Figure 3.
The raw data were processed using Matlab R2019a. All the raw and processed data were anonymized and stored in the server of the Imaging and Orthopaedics Research Laboratory (LIO), which is affiliated with the ÉTS and CRCHUM.
Let A x , A y and A z denote, respectively, the accelerometer data along the x-axis, y-axis and z-axis. We also computed the Euclidean norm A n of the three-axis acceleration signal (Figure 4):
A n = A x 2 + A y 2 + A z 2 .
The data are represented in a csv file (the dataset D) in a structured format, with the following attributes
  • Index: line number in the csv file ( N = 3 . 5 millions data points);
  • Participant number, in { 1 , , 44 } ;
  • Participant reference: nomenclature as saved in the LIO server P X X _ d d m m Y Y ;
  • Trial number, in { 1 , , 6 } ;
  • Timestamp Y Y Y Y m m d d H H : M M : S S . F F F (format in milliseconds);
  • A x : data from the x-axis accelerometer sensor;
  • A y : data from the y-axis accelerometer sensor;
  • A z : data from the z-axis accelerometer sensor;
  • A n : euclidean norm;
  • activity name.
Since this dataset represents activities in real contexts, class imbalances occur. For example, as can be seen in Figure 5, there are more instances of walking than other activities.

3.2.2. Validation

The validation was performed using leave-one-subject-out cross-validation of the dataset [40], using the scikit-learn package. The dataset was split according to the number of subjects in the dataset—that is, in each fold the model, was trained on all the subjects except one, which was used for testing. In this case, the number of folds is equal to the number of subjects in the dataset. In order to have an accurate estimation of the proposed method performance, this procedure was repeated until all the subjects had been used as test datasets. Obviously, activity patterns are subject-dependent—that is, the performed activities vary considerably among subjects according to their personal styles and anthropometry, which we refer to as inter-subject variability. Moreover, the way a given activity is performed by a given subject at different times may show variations, which we refer to as intra-subject variability. In our work, the intra-subject variability was considered when the participants were instructed to repeat the sequence of activities a given number of times (i.e., the number of trials). Using the leave-one-subject-out strategy guarantees that data from the same subject are either present in the train set or in the test set. This is a subject independent (inter-subject) validation technique to estimate generalization capabilities of learning techniques, and also allows performance analysis results per subject. We note that the number of samples slightly varies from one subject to another. For instance, for the subject having the reference P 01 _ 290416 and for whom we displayed the acceleration data in Figure 3 and Figure 4, there are 284 , 516 segments in the training set and 1552 in the testing set.

3.2.3. Segmentation

Here, the input data ( A x , A y , A z , and A n ) are chronologically sequenced to form multivariate time series signals (of length N). We segmented these raw and continuous data flow signals using a 1-s fixed-size overlapping sliding window (FOSW), into K fixed-length segments, with a 50 % overlap, in order to search for useful patterns in the time series. The window size T = 1 s corresponds to 64 data points and was chosen according to the accelerometer frequency (64 Hz). The segments were stored in a three-dimensional tensor of size K × T × m , where K is the number of segments, T is the time step (window size), and m is the number of multivariate time series. The three-dimensional tensor was used as the input of the classifier. The tensor-based approach allows one to reduce the computational cost when dealing with big data. Here, m = 4 , which corresponds to A x , A y , A z and A n .
In temporal segmentation, the problem of impure segments may occur. Since for the transition points between activities, a segment is composed of more than one label [41]. To overcome the multiclass segment problem, ambiguous segments, that contain more than a label, were discarded. We also note that we have performed the train/test split before the segmentation, in order to avoid train and test data overlapping.

3.3. Overview of the Proposed Architecture

We considered a multiclass pattern classification task, where the input (i.e., multivariate time series signals) is to be classified into one, and only one, of the l non-overlapping classes referring to the considered human physical activities in Section 3.
The main contribution of this study is the development of a reference architecture design based on an ensemble learning system that uses both machine learning and deep learning techniques on a large dataset in order to achieve the highest generalization performance. Moreover, a parallel training approach for the proposed architecture was developed to accelerate the cross-validation procedure by running multiple independent training tasks on multiple cores or processors in parallel. In other words, we built an ensemble learning system with an efficient cross-validation implementation using parallel processing in order to balance the generalization performance and to reduce the computational cost of the system. Figure 6 shows the proposed ensemble learning architecture. The proposed ensemble learning architecture combines three data representation-based approaches. In the remainder of the paper, the process of tying together different learning algorithms is referred to as a pipeline. The pipeline ensures that the base classifiers to be combined later in an ensemble are diverse, i.e., independent of each other. The first pipeline encompasses feature engineering-based classifiers, in which features are manually extracted and later processed by machine learning algorithms. The second and third pipelines encompass feature learning-based classifiers. In the former, features are automatically extracted from the raw accelerometer data without relying on domain knowledge using a basic form of feature learning. In the latter, we explored deep learning-derived features from the raw accelerometer data. In each pipeline, we selected three classifiers that are commonly used for practical activity recognition. Moreover, this architecture is tractable so as to allow easily the inclusion of additional classification models inside each pipeline—that is, each pipeline in the proposed ensemble learning architecture could be extended by evaluating more than one standard learning algorithm belonging to each approach, on the data at hand, and fusing their predictions to achieve a better recognition rate, instead of only retaining the best classifier and discarding those providing a lower accuracy. We should note that the adopted learning algorithm used within each pipeline serves as a proof of concept of the proposed ensemble learning architecture. Ultimately, this approach not only allows us to compare heterogeneous classifiers, but also combines their predictions, thus decreasing the risk of selecting an inadequate single classifier—that is, a decision fusion method, as explained in Section 2, was used to yield the final prediction results [28] in order to combine the resulting three pipeline decisions.
Moreover, the proposed architecture deals with multivariate accelerometer time series data. Hence, in each stand-alone classifier, we separated multivariate time series into univariate ones ( A x , A y , A z and A n separately, i.e., data fusion method), and we performedeither feature engineering or feature learning on each univariate time series individually. Axis-based feature fusion concatenatesdifferent resulting features from all the univariate time series inputs before the classification [25].

3.3.1. First Pipeline

The first pipeline encompasses feature engineering-based classifiers, in which time and frequency domain features were manually extracted, then relevant ones were selected and later processed by base-level classifiers. In this case, we use ReliefF for feature selection combined with a Support Vector Machine (SVM).
The motivation for using time and frequency domain features in our architecture is that they are often used in practical activity recognition algorithms due to their simplicity to setup and their lower computational complexity [5]. Moreover, time domain features show how the signal changes in time. Frequency domain features show the distribution of the signal energy and are used to capture the repetitive nature of sensor signals [30]. We also note that the usefulness of the time and frequency domain features has been demonstrated in a prior study [39] on the convenience sample.
Furthermore, we decided to use ReliefF for feature selection due to its advantages in terms of both the learning time and the accuracy of the learned concept, as well as its practicality [42]. We used SVM, a well-known high performance classifier method, as a classifier in the first pipeline since the combination of the ReliefF-based feature selection and the SVM-based machine learning algorithm has been previously investigated by our research group [39] and gave promising results on the convenience sample.

Handcrafted Feature Extraction

For each feature univariate time series, commonly used time and frequency domain metrics were computed for each segment to extract basic signal information from raw accelerometer data [30].
  • Time domain metrics: mean, variance, standard deviation, maximum, minimum, Root Mean Square (RMS), kurtosis, skewness, euclidean norm and l1-norm;
  • Frequency domain metrics: energy and maximum magnitude of the Fast Fourier Transform (FFT).
Moreover, the cross-correlation was computed in a pairwise fashion between two features (i.e., ( A x , A y ), ( A x , A z ), ( A y , A z )) … on each segment.
The handcrafted feature extraction procedure leads to a total of 55 time-frequency features per segment that were z-score normalized.

Feature Selection Using ReliefF

The resulting features were ranked using the ReliefF feature selection algorithm [43]. The algorithm is based on computing the importance of the features by randomly choosing a given number of instances in the dataset (this number is a user-defined parameter) and searching for its two nearest neighbors: one from the same class and the other from a different class.

Multiclass Support Vector Machine (SVM) Classifier

The next step in this classification pipeline is the use of the SVM, which is a supervised machine learning algorithm [44]. For the binary classification SVM, the idea is to construct a hyperplane to separate the two classes so that the distance between the hyperplane and the sample points is maximal.
One approach to solve the l-class SVM ( l > 2 ) problem is to consider the problem as l binary SVMs. This approach is called a one-vs.-all SVM. Another approach consists of considering the problem as l × ( l 1 ) / 2 binary classifiers using all the binary pair-wise combinations of the l classes. This approach is called one-vs.-one SVM. In this study, we considered the one-vs.-all SVM. The kernel (i.e., the type of hyperplane used to separate the data), gamma (i.e., a parameter for non-linear hyperplanes), and C (i.e., the penalty parameter of the error term) are the hyperparameters of SVM, which need to be fine-tuned. In our case, we manually tuned these hyperparameters, we used the Radial Basis Function (RBF) kernel SVM and we set gamma to 0.001 and C to 1000.

3.3.2. Second Pipeline

The second pipeline encompasses feature learning-based classifiers, in which features are automatically extracted from the raw accelerometer data without relying on domain knowledge using a basic form of feature learning and are later processed by base-level classifiers. We used Linear discriminant analysis (LDA) as an automatic feature extractor for the following advantages. It is a traditional statistical technique that reduces dimensionality while preserving as much of the class discriminatory information as possible [45]. Unlike Principal Component Analysis (PCA), which tries to maintain data information as much as possible, LDA is able to make the data points more distinguishable after dimension reduction [6]. We selected KNN as our base-learner classifier in this pipeline following Bicocchi et al. [33], who used the KNN algorithm to infer user activities on the basis of accelerometer data acquired from body-worn sensors and highlighted that it exhibits a state-of-the-art performance, is simple to implement, and can run on resource-constrained sensor platforms. Furthermore, they showed that it can achieve remarkable precision and accuracy levels in classifying simple and specific activities.

Automatic Feature Extraction Using LDA

Automatic feature extraction consists of mapping the raw data onto a lower dimensional space. LDA is a supervised feature extraction algorithm that takes the labels of the training data into account and aims at maximizing the class discrimination on the projected space [45]. The LDA algorithm was applied to each feature (i.e., the univariate time series). Then, the feature fusion concatenated the different transformed features to use them as an input for the K-nearest neighbor (K-NN) classifier.

K-NN Classifier

The principle of the K-NN algorithm is to find the closest k in distance training samples to the current sample and predict its label based on these k neighbors [46]. Generally, the value of k is specified by the user. The distance can, in general, be any metric measure. We note, however, that the standard Euclidean distance is the most common choice. The optimal choice of k is highly data-dependent and needs to be fine-tuned.

3.3.3. Third Pipeline

We adopted a convolutional neural network (CNN) architecture for multivariate time series trained for both feature extraction and classification.

CNN for Multivariate Time Series

Let us first recall that a deep neural network has an input layer, an output layer and more than two hidden layers. A layer is a collection of neurons. A neuron takes a group of weighted inputs, applies a non-linear activation function, and returns an output.
  • The input layer has T × m neurons.
  • Hidden layers of a deep network are designed to learn the hierarchical feature representations of the data. During the training, a set of hyperparameters was manually tuned, and the weights were initialized randomly [47]. By gradient descent, the weights were updated using the back propagation algorithm in a way that minimizes the cost function on the training set. The choice of the model, the architecture and the cost function was crucial to obtain a network that generalizes well, and is in general problem- and data-dependent.
  • The output layer has l neurons, which corresponds to the multiclass classification problem in this application.
In this work, we trained a CNN-based architecture. We recall that CNNs can capture the local connections of multimodal sensory data [48]. CNN combines three architectural ideas: local receptive fields, shared weights, and pooling, and it is based on two building blocks:
  • The convolution block, which is composed of the convolution layer and the pooling layer. These two layers form the essential components of the feature extractor, which learns the features from the raw data automatically (feature learning).
    The convolutional layer implements the receptive field and shared weight concepts. Neurons in the convolutional layers are locally connected to neurons inside its receptive field in the previous layer. Neurons in a given layer are organized in planes where all the neurons share the same set of weights (also called filters or kernels). The set of outputs of the neurons in such a plane is called a feature map. The number of feature maps are the same as the number of filters. A pooling layer performs either an average subsampling (mean-pooling) or a maximum subsampling (max-pooling). For a time series, the pooling layers simply reduce the length, and thus the resolution, of the feature maps.
  • The fully connected block, which performs the classification based on the learned features from the convolutional blocks.
The different hyperparameters of CNNs are the optimization algorithm (momentum), the number of epochs, the number of layers, the number of filters, the filter size, the activation function, the cost function, the batch size and the weight initialization [49].
We applied a CNN model to the multivariate time series classification task at hand. First, we separated multivariate time series into univariate ones and performed feature learning on each univariate time series individually. Then, we concatenated the resulting features at the end of the feature learning step to conduct the classification. Our CNN-based model has three layers including two convolutional blocks, and two fully connected layers, as depicted in Figure 7—that is, for each feature, the input (i.e., univariate time series) is fed into a one-stage feature extractor (the convolutional block). The convolutional block consists of a convolution layer with three filters, a filter size of 20, a REctified Linear Units (ReLU) activation layer and a max pooling layer with pooling size of 3. At the end of the feature extraction step, we flattened the feature maps of each univariate time series and combined them as the input of subsequent fully connected block for classification. The fully connected block consists of two fully connected layers with 1024 and 30 neurons, respectively, with a ReLU activation function [23].

3.3.4. Fusion Stage

Each pipeline computes a prediction vector for the same training dataset. The final decision is made by a combination of the three pipeline decisions (prediction vectors) using a decision rule (majority voting) [50] to produce the final classification result. We used majority voting for decision fusion because it is simple yet tractable, and can cope easily with a change in the number and type of classification models.
Here, we predict the final class label l ^ based on the majority (plurality) voting of each classifier l i :
l ^ = m o d e { l 1 , l 2 , l 3 }
i.e., the final class label l ^ corresponds to the class label that has been predicted most frequently by the three used classifiers within the three pipelines of our architecture.

3.3.5. Computational Optimization

One of the issue to consider when designing and developing machine and deep learning applications is the computational cost. In fact, on the one hand, the more data we consider the more robust the application is, but, on the other hand, the more time consuming the application is as well, regarding both the data processing and the best model building and selection. To overcome such an issue, one should consider a more efficient usage of the computing resources by considering parallel and/or distributed programs. For example, the leave-one-subject-out cross-validation that we used in our architecture is computationally expensive. However, since the tasks performed on each fold are completely independent from the rest of the remaining folds, we ran as many folds as the core number of the target architecture in parallel. To do so, we used the multiprocessing parallel python package [51]. For the parallel implementation of the leave-one-subject-out cross-validation, we developed our own version. There are some other parallel versions of this method [52] but, to the best of our knowledge, such parallel versions have not been used in the context of HAR systems, probably because the training datasets were not as large as our dataset. We also note that in order to further enhance the performance of our system, we used a GPU accelerator to run the mutivariate CNN model from the python keras package with tensorflow backend [53]. To ensure a good balance between the generalization performance of the model and its computational performance, the different hyperparameters of the deep learning model such as the batch_size should be carefully chosen [54]. In this application, we first used the python multiprocessing package which allows, just by adding a few lines of code, to run up to 5× faster comparing to the sequential code using a machine with 8 cores and 1 NVIDIA TITAN RTX GPU. A more detailed description of the machine will be given in the following section.

4. Results

4.1. Experimental Design

4.1.1. Weighting Imbalanced Classes

To handle the class imbalance problem, we do not include any oversampling but an algorithm-level method—that is, class weight is added that automatically assigns higher weights to the minority classes in the learning process, in order to reduce bias towards the majority group [55].

4.1.2. Multiclass Performance Measures

The result of an l-class classification can be visualized in a confusion matrix of size l × l . Each row in a confusion matrix represents an actual class, while each column represents a predicted class. By definition, each entry C i j in a confusion matrix C denotes the number of observations (segments) from class i predicted to be of class j.
The recall, precision and F1-score are used as performance metrics to evaluate the correctness of a classification. The F1-score metric is particularly interesting for its robustness to class imbalance [56]. The recall ( R i ), precision ( P i ) and F1-measure ( F 1 i ) for class i in a multiclass problem can be defined by the following equations,
P i = T P i T P i + F P i , R i = T P i T P i + F N i , and F 1 i = 2 × P i × R i P i + R i ,
where T P i is the number of objects from class i assigned correctly to class i, F P i is the number of objects that do not belong to class i but are assigned to class i, and F N i is the number of objects from class i predicted to another class.
The quality of the overall classification is usually assessed in two ways: macro-averaging and micro-averaging. The first computes the measure separately for each class and then takes their unweighted mean. A weighted average could be computed by support (i.e., the number of true instances for each label) to account for class imbalance. The second calculates the measure globally by counting the total true positives, false negatives and false positives.
In the following equations, κ and μ indices refer to the macro- and micro-averaging, respectively. P, R, and F 1 are the total precision, recall and F1 measures [56].
P κ = 1 K i = 1 K P i , R κ = 1 K i = 1 K R i , and F 1 κ = 2 × P κ × R κ P κ + R κ .
P μ = i = 1 K T P i i = 1 K ( T P i + F P i ) , R μ = i = 1 K T P i i = 1 K ( T P i + F N i ) and F 1 μ = 2 × P μ × R μ P μ + R μ .

4.2. Experimental Results

The classification was performed using a leave-one-subject-out cross-validation as detailed in Section 3.2.2. Instead of averaging the performance measures of each holdout fold, predictions were computed and stored in a list. Then, at the end of the run, the predictions were compared to the expected values for each holdout test set and a single performance measure is reported.

4.2.1. Classification Result Using the Handcrafted Feature Engineering Based Approach

Figure 8 presents the confusion matrix for inter-subject activity recognition obtained using the adopted method with time and frequency domain features, ReliefF feature selection, and SVM classifier (first pipeline). Table 1 shows medium to high precision scores (from 77% to 100%), medium to high recall scores (from 67% to 100%), and high F1-scores (from 80% to 100%) on each activity class. The overall weighted averaged precision, recall, and F1-score across all activities are 93%, 92%, and 92%, respectively.
If we examine the recognition performance for each activity individually, walking up the stairs is confused with walking (0.04%), walking down the stairs is confused with running (0.11%), walking is confused with walking up the stairs (0.26%), and lying is confused with sitting (0.27%).

4.2.2. Classification Result Using the Automatic Feature Extraction-Based Approach

Figure 9 presents the confusion matrix for inter-subject activity recognition obtained using the adopted automatic feature extraction based on LDA and KNN classifier (second pipeline). Table 2 shows medium to high precision scores (from 77% to 100%), low to high recall scores (from 35% to 100%), and low to high F1-scores (from 48% to 100%) on each activity class.
The overall weighted averaged precision, recall and F1-score, across all activities, are 88%, 88%, and 87%, respectively. If we examine the recognition performance for each activity individually, we can see that, again, walking up the stairs is confused with walking (0.18%), walking down the stairs is confused with walking (0.77%), walking is confused with sitting (0.02%), and running is confused with walking up the stairs (0.02%), down the stairs (0.05%) and walking (0.10%). We notice that this approach performs worse than the previous approach on dynamic activities (walking, walking up and down the stairs and running). However, it performs better on static activities (sitting and lying).

4.2.3. Classification Result Using Feature Learning-Based Approach

Figure 10 presents the confusion matrix for inter-subject activity recognition obtained using the adopted multivariate CNN classifier (third pipeline). Table 3 shows high precision (from 86% to 100%), high recall (from 90% to 100%), and high F1-score (from 92% to 100%) on each activity class. The overall weighted averaged precision, recall, and F1-score across all activities are all equal to 99%. If we examine the recognition performance for each activity individually, walking up the stairs is confused with walking (0.05%), walking down the stairs is confused with running (0.03%), and walking is confused with walking up the stairs (0.002%) and down the stairs (0.001%). We notice that this approach performs better than the two previous approaches on recognizing both dynamic and static activities.

4.2.4. Classification Results Using the Ensemble Learning Based Approach

Figure 11 presents the confusion matrix for inter-subject activity recognition obtained using the proposed ensemble learning approach, which combines the results of the three previous pipelines. Table 4 shows high precision (from 86% to 100%), high recall (from 90% to 100%) and high F1-score (from 92% to 100%) on each activity class. The overall weighted averaged precision, recall and F1-score across all activities are about 99%. If we examine the recognition performance for each activity individually, walking up the stairs is confused with walking (0.05%), walking down the stairs is confused with running (0.03%), and walking is confused with walking up the stairs (0.002%). The proposed ensemble learning approach performed extremely well in recognizing the ten different activities compared to the three previous approaches considered individually.

4.3. Discussion of the Recognition Rate Results

In this paper, we focus on the recognition of three types of human physical activities (static activity, dynamic activity, and hazardous situations such as falling). Each of the three tested approaches has its own strengths and weaknesses when classifying different types of activities. Sitting and lying are static activities. Dynamic activities include walking, walking up and down the stairs and running. Concerning dynamic activities, we recall that walking generates a periodic pattern and running implies a motion similar to walking, but is executed faster. Looking at Figure 3, a periodic pattern can also be seen for running, with a shorter time difference between periods compared to walking. Some false positives and negatives showed up when trying to distinguish and recognize these two activities using the automatic feature extraction-based approach. Moreover, walking and walking up and down the stairs are almost similar (see Figure 3) and can be performed in many ways. Thus, they are easily confused. However, the proposed ensemble learning model performed extremely well when identifying the different dynamic activities compared to standalone approaches.
Concerning static activities, We note that lying down and sitting are confused in the handcrafted feature engineering approach since the orientation of the waist-worn accelerometer is similar for both activities. We also note that the proposed models were trained with less lying and sitting data than for others classes (as depicted in Figure 5), which makes it even more difficult for the models to learn them. As described in the confusion matrices in Figure 8, Figure 9, Figure 10 and Figure 11, we can see that for the four fall classes, labeled observations are scarce compared to the other classes such as walking and running (see Figure 5). This is explained by the short duration of the falls. The consideration of this class in our system aims at detecting a fall if it occurs during the rehabilitation process. We recall, however, as previously explained in the protocol, that the falls we are considering here are simulated and may be different from an actual fall. We also consider four classes of falling to show that our system is able to capture the direction of the fall, which is very important since falling front or back have in general a more important impact.
In order to compare the four models over the physical activities classes, following Fawaz et al. [57], we conducted statistical analysis by using the Friedman test to reject the null hypothesis. The test addresses the hypothesis that all methods perform equally well. For the post hoc analysis, following the recent recommendations in [58], we perform the pairwise comparisons of the post hoc analysis using the Wilcoxon signed rank test instead of the average rank comparison. In order to visualize the comparison, we used a critical difference diagram [59] to display the results of these statistical tests projected onto the average rank axis, with a thick horizontal line showing a of classifiers that are not significantly different [57]. Following Fawaz et al. [57], we perform the pairwise comparisons of the post hoc analysis using the Wilcoxon signed rank test [58]. We used the Python code provided in [57]. The corresponding critical difference diagram is depicted in the Figure 12 below, where the statistical test failed to find any significant difference between all 4 models. Indeed, the CNN classifier results are very close to those obtained using the whole ensemble learning architecture. We also noticed that the two other approaches correct misclassification errors of the feature leaning approach with CNN. Moreover, the proposed architecture allows us to understand the learned features by each proposed approach (feature engineering and feature learning) and compare the corresponding output feature vectors, to counterbalance interpretability and generalization.

4.4. Performance Speed Analysis

Here, we present the computational cost of the parallel HAR system we developed. We ran our experiments on a machine with an intel Core i7-9700 processor having 8 cores and a 64 GB RAM connected to a GPU accelerator of type NVIDIA TITAN RTX. One of the bottlenecks in terms of running time in our system corresponds to the segmentation stage. In fact, running a sequential segmentation (using only one core of the cpu) relative to the 44 participants based on the leave-one-subject-out validation technique takes around 6.5 days. However, when we ran the segmentation in parallel making full usage of the 8 cores of our machine via a parallel implementation based on the multiprocessing python package, it takes around 32 h, which is almost 5× faster than the sequential version. As described in Section 3.3.5, each fold training relative to one of the train/test split was run as an independent task. Thus, a task queue formed and the different tasks were assigned to the 8 cores of the machine. Each task is a succession of the three pipelines of our learning models applied to the considered fold. Here again, we used the multiprocessing python package, and we obtained a speed up of almost 3 compared to the sequential implementation. We also note that, within each task, the third pipeline, which corresponds to the multivariate CNN method, was run on the GPU accelerator, which takes around 15 s, which is 80× faster than a purely cpu version, which takes around 20 min. We mention here that given that each task is running on an independent data subset, our performance results regarding the computational time could be further improved by using a larger number of cores and/or processors.

4.5. Comparison Results

To validate the collected dataset using the Hexoskin t-shirt, we considered the previously available WISDM dataset as a benchmark dataset and compared its results to those of the collected dataset. The WISDM dataset is used for human activity recognition to classify different physical activities using cell phone accelerometers [12]. It contains accelerometer data collected from 36 subjects performing six activities, namely walking, jogging, ascending stairs, descending stairs, sitting, and standing. These subjects carried an Android phone in the front pocket of their pants leg when performing these activities. We recall that the collected hexoskin dataset is 2.5× larger than the WISDM dataset. We also compare the ensemble approach that we proposed to a selection of classifier algorithms including an ensemble approach, referred to as ensemble (DT-LR-MLP), that combines J48 decision tree, Multilayer Perceptrons (MLPs) and Logistic Regression [38] along with Random Forest [60] and Adaboost [61] using the default parameters available in the sklearn library. To ensure a fair comparison, we applied the selected classifiers to both the WISDM and the Hexoskin datasets following the same process as in the proposed approach described throughout this work by:
  • Partitioning the dataset into training and testing subsets using the leave-one-subject-out cross-validation;
  • Segmenting the raw accelerometer signals, using a 1-s fixed-size overlapping sliding window (FOSW), with a 50% overlap;
  • Handling class imbalance in all the learning techniques;
  • Making a comparative analysis on the basis of performance measures such as F1-score, precision, and recall as well as confusion matrices using the mean score estimated on each group of out-of-fold predictions.
Table 5 represents the classification performance for different classifiers on both the collected Hexoskin dataset and the WISDM dataset. The obtained results show that the proposed ensemble learning-based heterogeneous machine learning and deep learning algorithms applied to the collected dataset using the Hexoskin t-shirt outperforms the other classifier algorithms used. These results are displayed in bold in Table 5.

5. Discussion

The main goal of this research work is the development of an adherence measurement system that is completely objective, precise and efficient in terms of computational resource usage. This requires the development of a recognition system for human physical activity, which is what we focus on in this paper. In the following, we summarize our contributions and the limitations of the proposed method. Then, we present some possible perspectives and insights.
The first part of this research is the acquisition of a large multimodal dataset based on a wearable sensor vest that captures cardiac, respiratory, and accelerometer data from healthy and young volunteers. Each participant undergoes a sequence of ten real-life physical activities, including static and dynamic activities, that are likely to occur during a patient rehabilitation protocol [62]. The purpose of this data acquisition is to establish a proof of concept that the recorded acceleration data from the waist-worn accelerometer during physical activity could be modeled for a HAR system using learning techniques for the purpose of health monitoring in an upcoming stage of a more global research project.
The second part is the development of a recognition system for these human physical activities using accelerometer data collected from a waist-mounted accelerometer in the vest. We note that the model may be extended by some other activities. Later, the pretrained HAR system should be able to classify activities of patients undergoing a cardiac rehabilitation program. The developed HAR system is based on an ensemble learning architecture that combines different data representation-based classifiers (feature engineering and feature learning). The output of these classifiers are combined to improve the classification performance (minimizing false positives and false negatives). An inter-subject validation strategy (leave-one-subject-out cross-validation) is used to make a realistic estimate of the performance generalization of each classifier independently, as well as the ensemble architecture. However, classifier ensembles combined with the leave-one-subject-out validation technique are clearly more expensive on large datasets, computationally speaking, as they require several models to be trained. Hence, we propose a parallel implementation for our architecture to accelerate the cross-validation procedure by running multiple fold trainings simultaneously. We also enhance the computation relative to each fold by the use of a GPU accelerator. Another advantage of our implementation is the fact that the segmented multivariate time series are stored into a fourth-order 3D tensor. Finally, we demonstrate that forms of locomotion such as walking, running, and climbing the stairs, and postures such as sitting and lying down, as well as some hazardous situations such as falling, can be recognized at up to a 99% recognition rate using the waist-worn accelerator.
Nevertheless, this study has some limitations. For example, in this work, we focus on classifying activities collected in a laboratory environment. Thus, the population sample includes only young and healthy subjects. We should train our system on a heterogeneous population sample (able-bodied, elderly, cardiovascular diseased patients) that can benefit from HAR. In fact, for the more general research project, it is important to train and test activity recognition systems on data collected under naturalistic circumstances, with patients undergoing a rehabilitation program. We note that we planned to collect data from a pathological population following a cardiac rehabilitation program in collaboration with the Centre de cardiologie préventive (CCP) in the Centre Hospitalier de l’Université de Montréal (CHUM) to rigorously validate the efficiency of the proposed HAR system. Unfortunately, the recruitment process has been interrupted by the pandemic circumstances.
In addition, ground truth data have been semi-automatically annotated. The annotation procedure may be fine-tuned, and a real-time automatic annotation may be investigated in order to increase the volume of data collected. Moreover, we do not take into account transitional activities neither in the segmentation nor in the classification processes. Transition-aware and activity-based segmentation approaches could be investigated.
Here, we examine the similarities and differences between this work and other ensemble learning methods for HAR [37,63]. The reviewed methods use different datasets. Therefore, the reported accuracies and execution times cannot be compared. For instance, Rahim et al. [63] discussed the performance of five types of ensemble classifiers: bagging, adboost, rotation forest, ensemble of nested dichotomies, and random subspace, all with either support vector machine (SVM) or random forest (RF) as the basic learning scheme. Two open datasets were considered, containing, respectively, 5447 and 10,299 samples, collected, respectively, on 31 and 30 participants using smartphone inertial sensors. They also used 17 features from the time and frequency domains. Data classification is evaluated with the holdout (70–30%) and 10-fold cross-validation methods. They observed that, overall, SVM produced better accuracy rates, reaching 99.22% compared to RF with 97.91%. The authors do not discuss computational cost or implementation aspects. Rahim et al. mainly focused on data sampling methods, where they considered the five different strategies mentioned above. In this study, we use K-fold cross-validation, with K being the number of subjects in the dataset, that is 44, as the resampling method. To make a fair comparison, we intend to test other resampling methods, such as random splits and bootstrap aggregation, more commonly referred to as bagging. As to training, Rahim et al. used solely handcrafted feature-based classifiers (SVM and RF), while we consider both feature engineering and feature learning approaches. Moreover, our dataset is significantly larger (3.5 millions samples) than the two datasets they use for the performance evaluation. Similar to our study, Xu et al. [37] applied cascade ensemble learning (called CELearning) to model human activity recognition. However, they applied feature fusion of handcrafted and automatically extracted Fast Fourier Transform (FFT) features before classification.
In the following, we enumerate seven possible directions for future work. The first is to assess performance measures separately for different demographic categories and collect more training data while ensuring diversity of the demographic characteristics, in order to ensure the diversity of our data to mitigate any bias. The second is to automatically tune the hyperparameters of the used learning algorithms in this paper in order to ensure the best performance when using our dataset. The third is to investigate open-source feature engineering libraries (for instance, tsfel [64] and tsfresh [65]) for time series, to capture as many discriminative signal characteristics of human physical activities as possible. The fourth is to understand the learned features by each proposed approach (feature engineering, automatic feature extraction and feature learning) by applying a Class Activation Map (CAM) [66], for example, and then comparing the corresponding output feature vectors. The fifth is to smooth and fuse the predicted activity labels of consecutive segments. Thus, identifying the start and end points of each activity is very useful for physical rehabilitation, to have better information about activity transitions and the duration of each activity. Moreover, each pipeline in the proposed ensemble learning architecture could be extended by evaluating more than one standard learning algorithm belonging to each approach, on the data at hand, and fusing their predictions to achieve a better recognition rate. We should note that the adopted learning algorithms used at each pipeline serve as a proof of concept of the proposed ensemble learning architecture. Finally, we intend to compare different classifier fusion methods such as bagging and boosting.

Author Contributions

Conceptualization, M.A. and A.K.; methodology, M.A. and A.K.; software, M.A., A.K. and Y.O.; validation, M.A. and A.K.; formal analysis, M.A. and A.K.; investigation, M.A. and A.K.; resources, Y.O., H.W., M.A. and N.M.; data curation, Y.O., M.A., H.W. and S.C.; writing—original draft preparation, M.A. and A.K.; writing—review and editing, M.A. and A.K.; visualization, M.A. and A.K.; supervision, N.M., A.M. and A.B.-B.; project administration, M.A.; funding acquisition, N.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Canada Research Chair on Biomedical Data Mining (950-231214), the discovery grants program of the natural sciences and engineering research council of canada (NSERC), and the collaborative research and development grant (CRD) of the NSERC, where Carré Technologies Inc. is the industrial partner and Prompt is the financial partner.

Institutional Review Board Statement

The study was conducted according to the guidelines of the Declaration of Helsinki and was approved by the Ethics committee (protocol code RDCPJ 522843-17 and date of approval) of the Centre Hospitalier de l’Université de Montréal (CHUM), the École de Technologie Supérieure (ÉTS), and the TÉLUQ university, Canada.

Informed Consent Statement

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

Data Availability Statement

The data presented in this study are available on request from the corresponding author. The data are not publicly available due to ethical and legal restrictions on consent given by research participants.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

References

  1. Acampora, G.; Cook, D.; Rashidi, P.; Vasilakos, A. A Survey on Ambient Intelligence in Health Care. Proc. IEEE. Inst. Electr. Electron. Eng. 2013, 101, 2470–2494. [Google Scholar] [CrossRef] [Green Version]
  2. Kristoffersson, A.; Lindén, M. A Systematic Review on the Use of Wearable Body Sensors for Health Monitoring: A Qualitative Synthesis. Sensors 2020, 20, 1502. [Google Scholar] [CrossRef] [Green Version]
  3. Plötz, T.; Hammerla, N.Y.; Olivier, P. Feature Learning for Activity Recognition in Ubiquitous Computing. In Proceedings of the Twenty-Second International Joint Conference on Artificial Intelligence, Barcelona, Spain, 16–22 July 2011; pp. 1729–1734. [Google Scholar]
  4. Chen, L.; Hoey, J.; Nugent, C.D.; Cook, D.J.; Yu, Z. Sensor-Based Activity Recognition. IEEE Trans. Syst. Man Cybern. Part C Appl. Rev. 2012, 42, 790–808. [Google Scholar] [CrossRef]
  5. Lara, O.D.; Labrador, M.A. A Survey on Human Activity Recognition using Wearable Sensors. IEEE Commun. Surv. Tutor. 2013, 15, 1192–1209. [Google Scholar] [CrossRef]
  6. Attal, F.; Mohammed, S.; Debarishvili, M.; Chamroukhi, F.; Oukhellou, L.; Amirat, Y. Physical Human Activity Recognition Using Wearable Sensors. Sensors 2015, 15, 31314–31338. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  7. Nweke, H.F.; Teh, Y.W.; Al-Garadi, M.A.; Alo, U.R. Deep learning algorithms for human activity recognition using mobile and wearable sensor networks: State of the art and research challenges. Expert Syst. Appl. 2018, 105, 233–261. [Google Scholar] [CrossRef]
  8. Wang, Y.; Cang, S.; Yu, H. A survey on wearable sensor modality centred human activity recognition in health care. Expert Syst. Appl. 2019, 137, 167–190. [Google Scholar] [CrossRef]
  9. Bao, L.; Intille, S.S. Activity Recognition from User-Annotated Acceleration Data. In Pervasive; Ferscha, A., Mattern, F., Eds.; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2004; Volume 3001, pp. 1–17. [Google Scholar]
  10. Wang, J.; Chen, Y.; Hao, S.; Peng, X.; Hu, L. Deep learning for sensor-based activity recognition: A survey. Pattern Recognit. Lett. 2019, 119, 3–11. [Google Scholar] [CrossRef] [Green Version]
  11. Garcia, K.D.; de Sá, C.R.; Poel, M.; Carvalho, T.; Mendes-Moreira, J.; Cardoso, J.M.; de Carvalho, A.C.; Kok, J.N. An ensemble of autonomous auto-encoders for human activity recognition. Neurocomputing 2021, 439, 271–280. [Google Scholar] [CrossRef]
  12. Kwapisz, J.; Weiss, G.; Moore, S. Activity Recognition Using Cell Phone Accelerometers. SIGKDD Explor. 2010, 12, 74–82. [Google Scholar] [CrossRef]
  13. Attila, R.; Didier, S. Creating and Benchmarking a New Dataset for Physical Activity Monitoring. In Proceedings of the 5th International Conference on PErvasive Technologies Related to Assistive Environments, Heraklion, Crete, Greece, 6–8 June 2012; Association for Computing Machinery: New York, NY, USA, 2012; pp. 1–8. [Google Scholar]
  14. Baños, O.; Gálvez, J.M.; Damas, M.; Pomares, H.; Rojas, I. Window Size Impact in Human Activity Recognition. Sensors 2014, 14, 6474–6499. [Google Scholar] [CrossRef] [Green Version]
  15. Damasevicius, R.; Vasiljevas, M.; Salkevicius, J.; Woźniak, M. Human Activity Recognition in AAL Environments Using Random Projections. Comput. Math. Methods Med. 2016, 2016, 4073584. [Google Scholar] [CrossRef] [Green Version]
  16. Bayat, A.; Pomplun, M.; Tran, D.A. A Study on Human Activity Recognition Using Accelerometer Data from Smartphones. Procedia Comput. Sci. 2014, 34, 450–457. [Google Scholar]
  17. Kern, N.; Schiele, B.; Schmidt, A. Multi-Sensor Activity Context Detection for Wearable Computing. In Ambient Intelligence; Aarts, E., Collier, R.W., van Loenen, E., de Ruyter, B., Eds.; Springer: Berlin/Heidelberg, Germany, 2003; pp. 220–232. [Google Scholar]
  18. Bidargaddi, N.; Sarela, A.; Klingbeil, L.; Karunanithi, M. Detecting walking activity in cardiac rehabilitation by using accelerometer. In Proceedings of the 2007 3rd International Conference on Intelligent Sensors, Sensor Networks and Information, Melbourne, Australia, 3–6 December 2007; pp. 555–560. [Google Scholar]
  19. Cheung, V.H.; Gray, L.; Karunanithi, M. Review of Accelerometry for Determining Daily Activity Among Elderly Patients. Arch. Phys. Med. Rehabil. 2011, 92, 998–1014. [Google Scholar] [PubMed]
  20. Cleland, I.; Kikhia, B.; Nugent, C.; Boytsov, A.; Hallberg, J.; Synnes, K.; McClean, S.; Finlay, D. Optimal Placement of Accelerometers for the Detection of Everyday Activities. Sensors 2013, 13, 9183–9200. [Google Scholar] [CrossRef] [Green Version]
  21. King, R.C.; Villeneuve, E.; White, R.J.; Sherratt, R.S.; Holderbaum, W.; Harwin, W.S. Application of data fusion techniques and technologies for wearable health monitoring. Med. Eng. Phys. 2017, 42, 1–12. [Google Scholar] [CrossRef] [PubMed]
  22. Nweke, H.F.; Teh, Y.W.; Ghulam, M.; Al-Garadi, M.A. Data fusion and multiple classifier systems for human activity detection and health monitoring: Review and open research directions. Inf. Fusion 2019, 46, 147–170. [Google Scholar] [CrossRef]
  23. Zeng, M.; Nguyen, L.T.; Yu, B.; Mengshoel, O.J.; Zhu, J.; Wu, P.; Zhang, J. Convolutional Neural Networks for human activity recognition using mobile sensors. In Proceedings of the 6th International Conference on Mobile Computing, Applications and Services, Austin, TX, USA, 6–7 November 2014; pp. 197–205. [Google Scholar]
  24. Cai, J.; Yang, K.Q.; Zhang, Y. Real-Time Physical Activity Recognition Using a Single Triaxial Accelerometer Based on HMM. In Advanced Manufacturing and Information Engineering, Intelligent Instrumentation and Industry Development; Trans Tech Publications Ltd.: Freienbach, Switzerland, 2014; Volume 602, pp. 2221–2224. [Google Scholar]
  25. Fu, Y.; Cao, L.; Guo, G.; Huang, T.S. Multiple Feature Fusion by Subspace Learning. In Proceedings of the 2008 International Conference on Content-Based Image and Video Retrieval; Association for Computing Machinery: New York, NY, USA, 2008; pp. 127–134. [Google Scholar]
  26. Tao, D.; Jin, L.; Yuan, Y.; Xue, Y. Ensemble Manifold Rank Preserving for Acceleration-Based Human Activity Recognition. IEEE Trans. Neural Networks Learn. Syst. 2016, 27, 1392–1404. [Google Scholar]
  27. Daghistani, T.; Alshammari, R. Improving Accelerometer-Based Activity Recognition by Using Ensemble of Classifiers. Int. J. Adv. Comput. Sci. Appl. 2016, 7, 128–133. [Google Scholar] [CrossRef] [Green Version]
  28. Ruta, D.; Gabrys, B. An Overview of Classifier Fusion Methods. Comput. Inf. Syst. 2000, 7, 1–10. [Google Scholar]
  29. Bengio, Y.; Courville, A.; Vincent, P. Representation Learning: A Review and New Perspectives. IEEE Trans. Pattern Anal. Mach. Intell. 2013, 35, 1798–1828. [Google Scholar] [CrossRef]
  30. Figo, D.; Diniz, P.C.; Ferreira, D.R.; Cardoso, J.M. Preprocessing Techniques for Context Recognition from Accelerometer Data. Pers. Ubiquitous Comput. 2010, 14, 645–662. [Google Scholar] [CrossRef]
  31. He, Z.; Jin, L. Activity recognition from acceleration data based on discrete consine transform and SVM. In Proceedings of the 2009 IEEE International Conference on Systems, Man and Cybernetics, San Antonio, TX, USA, 11–14 October 2009; pp. 5041–5044. [Google Scholar]
  32. Atallah, L.; Lo, B.; King, R.; Yang, G. Sensor Positioning for Activity Recognition Using Wearable Accelerometers. IEEE Trans. Biomed. Circuits Syst. 2011, 5, 320–329. [Google Scholar] [CrossRef]
  33. Bicocchi, N.; Mamei, M.; Zambonelli, F. Detecting activities from body-worn accelerometers via instance-based algorithms. Pervasive Mob. Comput. 2010, 6, 482–495. [Google Scholar] [CrossRef] [Green Version]
  34. Jatoba, L.C.; Grossmann, U.; Kunze, C.; Ottenbacher, J.; Stork, W. Context-aware mobile health monitoring: Evaluation of different pattern recognition methods for classification of physical activity. In Proceedings of the 2008 30th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Vancouver, BC, Canada, 20–25 August 2008; pp. 5250–5253. [Google Scholar]
  35. Rodriguez-Martin, D.; Samà, A.; Perez-Lopez, C.; Català, A.; Cabestany, J.; Rodriguez-Molinero, A. SVM-based posture identification with a single waist-located triaxial accelerometer. Expert Syst. Appl. 2013, 40, 7203–7211. [Google Scholar] [CrossRef]
  36. Li, A.; Ji, L.; Wang, S.; Wu, J. Physical activity classification using a single triaxial accelerometer based on HMM. In Proceedings of the IET International Conference on Wireless Sensor Network 2010 (IET-WSN 2010), Beijing, China, 15–17 November 2010; pp. 155–160. [Google Scholar]
  37. Xu, S.; Tang, Q.; Jin, L.; Pan, Z. A Cascade Ensemble Learning Model for Human Activity Recognition with Smartphones. Sensors 2019, 19, 2307. [Google Scholar] [CrossRef] [Green Version]
  38. Catal, C.; Tufekci, S.; Pirmit, E.; Kocabag, G. On the use of ensemble of classifiers for accelerometer-based activity recognition. Appl. Soft Comput. 2015, 37, 1018–1022. [Google Scholar] [CrossRef]
  39. Cherif, N.; Ouakrim, Y.; Benazza-Benyahia, A.; Mezghani, N. Physical Activity Classification Using a Smart Textile. In Proceedings of the 2018 IEEE Life Sciences Conference (LSC), Montreal, QC, Canada, 28–30 October 2018; pp. 175–178. [Google Scholar]
  40. Arlot, S.; Celisse, A. A Survey of Cross Validation Procedures for Model Selection. Stat. Surv. 2009, 4. [Google Scholar] [CrossRef]
  41. Liono, J.; Qin, A.K.; Salim, F.D. Optimal Time Window for Temporal Segmentation of Sensor Streams in Multi-Activity Recognition. In Proceedings of the 13th International Conference on Mobile and Ubiquitous Systems: Computing, Networking and Services, Hiroshima, Japan, 28 November–1 December 2016; Association for Computing Machinery: New York, NY, USA, 2016; pp. 10–19. [Google Scholar]
  42. Kira, K.; Rendell, L.A. A Practical Approach to Feature Selection. In Machine Learning Proceedings 1992; Sleeman, D., Edwards, P., Eds.; Morgan Kaufmann: San Francisco, CA, USA, 1992; pp. 249–256. [Google Scholar]
  43. Kononenko, I.; Šimec, E.; Robnik-Sikonja, M. Overcoming the Myopia of Inductive Learning Algorithms with RELIEFF. Appl. Intell. 1997, 7, 39–55. [Google Scholar] [CrossRef]
  44. Hearst, M.; Dumais, S.; Osman, E.; Platt, J.; Scholkopf, B. Support vector machines. Intell. Syst. Appl. IEEE 1998, 13, 18–28. [Google Scholar] [CrossRef] [Green Version]
  45. Xanthopoulos, P.; Pardalos, P.M.; Trafalis, T.B. Linear discriminant analysis. In Robust Data Mining; Springer: New York, NY, USA, 2013; pp. 27–33. [Google Scholar]
  46. Peterson, L.E. K-nearest neighbor. Scholarpedia 2009, 4, 1883. [Google Scholar] [CrossRef]
  47. LeCun, Y.A.; Bottou, L.; Orr, G.B.; Müller, K. Efficient BackProp. In Neural Networks: Tricks of the Trade, 2nd ed.; Springer: Berlin/Heidelberg, Germany, 2012; pp. 9–48. [Google Scholar]
  48. Hammerla, N.Y.; Halloran, S.; Plötz, T. Deep, Convolutional, and Recurrent Models for Human Activity Recognition Using Wearables. In Twenty-Fifth International Joint Conference on Artificial Intelligence; AAAI Press: New York, NY, USA, 2016; pp. 1533–1540. [Google Scholar]
  49. LeCun, Y.; Yoshua, B. Convolutional Networks for Images, Speech, and Time Series. In The Handbook of Brain Theory and Neural Networks; MIT Press: Cambridge, MA, USA, 1998; pp. 255–258. [Google Scholar]
  50. Lam, L.; Suen, S.Y. Application of majority voting to pattern recognition: An analysis of its behavior and performance. IEEE Trans. Syst. Man Cybern. Part A Syst. Humans 1997, 27, 553–568. [Google Scholar] [CrossRef] [Green Version]
  51. Multiprocessing—Process-Based Parallelism. Available online: https://docs.python.org/3/library/multiprocessing.html (accessed on 5 July 2021).
  52. Gerber, F.; Nychka, D.W. Parallel cross-validation: A scalable fitting method for Gaussian process models. Comput. Stat. Data Anal. 2021, 155, 107113. [Google Scholar] [CrossRef]
  53. Abadi, M.; Agarwal, A.; Barham, P.; Brevdo, E.; Chen, Z.; Citro, C.; Corrado, G.S.; Davis, A.; Dean, J.; Devin, M.; et al. TensorFlow: Large-Scale Machine Learning on Heterogeneous Systems. 2015. Available online: tensorflow.org (accessed on 5 July 2021).
  54. Smith, S.L.; Kindermans, P.J.; Le, Q.V. Do not Decay the Learning Rate, Increase the Batch Size. In Proceedings of the International Conference on Learning Representations, Vancouver, BC, Canada, 30 April–3 May 2018. [Google Scholar]
  55. Krawczyk, B. Learning from imbalanced data: Open challenges and future directions. Prog. Artif. Intell. 2016, 5, 221–232. [Google Scholar] [CrossRef] [Green Version]
  56. Sokolova, M.; Lapalme, G. A systematic analysis of performance measures for classification tasks. Inf. Process. Manag. 2009, 45, 427–437. [Google Scholar] [CrossRef]
  57. Ismail Fawaz, H.; Forestier, G.; Weber, J.; Idoumghar, L.; Muller, P.A. Deep learning for time series classification: A review. Data Min. Knowl. Discov. 2019, 33, 917–963. [Google Scholar] [CrossRef] [Green Version]
  58. Benavoli, A.; Corani, G.; Mangili, F. Should We Really Use Post-Hoc Tests Based on Mean-Ranks? J. Mach. Learn. Res. 2016, 17, 152–161. [Google Scholar]
  59. Demsar, J. Statistical Comparisons of Classifiers over Multiple Data Sets. J. Mach. Learn. Res. 2006, 7, 1–30. [Google Scholar]
  60. Casale, P.; Pujol, O.; Radeva, P. Human Activity Recognition from Accelerometer Data Using a Wearable Device. In Iberian Conference on Pattern Recognition and Image Analysis; Springer: Berlin/Heidelberg, Germany, 2011; Volume 6669, pp. 289–296. [Google Scholar] [CrossRef]
  61. Bulbul, E.; Cetin, A.; Dogru, I.A. Human Activity Recognition Using Smartphones. In Proceedings of the 2018 2nd International Symposium on Multidisciplinary Studies and Innovative Technologies (ISMSIT), Ankara, Turkey, 19–21 October 2018; pp. 1–6. [Google Scholar] [CrossRef]
  62. Brewer, B.W. Fostering Treatment Adherence in Athletic Therapy. Athl. Ther. Today 1998, 3, 30–32. [Google Scholar] [CrossRef]
  63. Abd, R.; Ku, N.K.; Elamvazuthi, I.; Izhar, L.I.; Capi, G. Classification of Human Daily Activities Using Ensemble Methods Based on Smart phone Inertial Sensors. Sensors 2018, 18, 4132. [Google Scholar]
  64. Barandas, M.; Folgado, D.; Fernandes, L.; Santos, S.; Abreu, M.; Bota, P.; Liu, H.; Schultz, T.; Gamboa, H. TSFEL: Time Series Feature Extraction Library. SoftwareX 2020, 11, 100456. [Google Scholar] [CrossRef]
  65. Christ, M.; Braun, N.; Neuffer, J.; Kempa-Liehr, A.W. Time Series FeatuRe Extraction on basis of Scalable Hypothesis tests (tsfresh—A Python package). Neurocomputing 2018, 307, 72–77. [Google Scholar] [CrossRef]
  66. Zhou, B.; Khosla, A.; Lapedriza, A.; Oliva, A.; Torralba, A. Learning Deep Features for Discriminative Localization. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 2921–2929. [Google Scholar]
Figure 1. The detailed preprocessing steps of raw accelerometer data.
Figure 1. The detailed preprocessing steps of raw accelerometer data.
Sensors 21 04713 g001
Figure 2. Experimental setup showing some of the performed physical activities in our research protocol: going down stairs, going up stairs, running, sitting, walking, and lying down.
Figure 2. Experimental setup showing some of the performed physical activities in our research protocol: going down stairs, going up stairs, running, sitting, walking, and lying down.
Sensors 21 04713 g002
Figure 3. Plots of the raw three-axis labeled accelerometer data corresponding to one trial of a given participant (P01_290416). Each data cluster corresponding to an activity label has a different color on the plot.
Figure 3. Plots of the raw three-axis labeled accelerometer data corresponding to one trial of a given participant (P01_290416). Each data cluster corresponding to an activity label has a different color on the plot.
Sensors 21 04713 g003aSensors 21 04713 g003b
Figure 4. Plot of the raw normalized and labeled accelerometer data corresponding to one trial of a given participant (P01_290416). Each data cluster corresponding to an activity label has a different color on the plot.
Figure 4. Plot of the raw normalized and labeled accelerometer data corresponding to one trial of a given participant (P01_290416). Each data cluster corresponding to an activity label has a different color on the plot.
Sensors 21 04713 g004
Figure 5. Bar chart of class distribution of all trials of a given participant (P01_290416), providing a strong visual indication of class imbalance in the dataset.
Figure 5. Bar chart of class distribution of all trials of a given participant (P01_290416), providing a strong visual indication of class imbalance in the dataset.
Sensors 21 04713 g005
Figure 6. Overview of the proposed algorithm architecture.
Figure 6. Overview of the proposed algorithm architecture.
Sensors 21 04713 g006
Figure 7. The three-dimensional tensor representation of the multivarite time series data is the input of the convolutional neural network pipeline of our architecture.
Figure 7. The three-dimensional tensor representation of the multivarite time series data is the input of the convolutional neural network pipeline of our architecture.
Sensors 21 04713 g007
Figure 8. Confusion matrix using the handcrafted feature engineering based approach.
Figure 8. Confusion matrix using the handcrafted feature engineering based approach.
Sensors 21 04713 g008
Figure 9. Confusion matrix using the automatic feature extraction based approach.
Figure 9. Confusion matrix using the automatic feature extraction based approach.
Sensors 21 04713 g009
Figure 10. Confusion matrix using feature learning based approach.
Figure 10. Confusion matrix using feature learning based approach.
Sensors 21 04713 g010
Figure 11. Confusion matrix using the ensemble learning-based approach.
Figure 11. Confusion matrix using the ensemble learning-based approach.
Sensors 21 04713 g011
Figure 12. Statistical comparison of the 4 models over the physical activities classes. Average ranks of examined models are presented. A thick horizontal line shows a group of classifiers that are not significantly different in terms of accuracy.
Figure 12. Statistical comparison of the 4 models over the physical activities classes. Average ranks of examined models are presented. A thick horizontal line shows a group of classifiers that are not significantly different in terms of accuracy.
Sensors 21 04713 g012
Table 1. Classification report using the handcrafted feature engineering-based approach.
Table 1. Classification report using the handcrafted feature engineering-based approach.
ClassPrecisionRecallF1-ScoreSupport
up the stairs0.870.960.91268
down the stairs0.990.880.93199
walk0.980.940.96702
run0.941.000.97372
sit0.771.000.87345
fall-right1.001.001.005
fall-left1.001.001.006
fall-front1.000.670.806
fall-back0.831.000.9110
lying1.000.730.85394
macro avg0.940.920.922307
weighted avg0.930.920.922307
Table 2. Classification report using the automatic feature extraction based approach.
Table 2. Classification report using the automatic feature extraction based approach.
ClassPrecisionRecallF1-ScoreSupport
up the stairs0.910.810.85268
down the stairs0.770.350.48199
walk0.770.960.86702
run0.970.820.89372
sit0.941.000.97345
fall-right1.000.800.895
fall-left1.001.001.006
fall-front1.000.830.916
fall-back1.000.700.8210
lying0.991.001.00394
macro avg0.930.830.872307
weighted avg0.880.880.872307
Table 3. Classification report using feature learning-based approach.
Table 3. Classification report using feature learning-based approach.
ClassPrecisionRecallF1-ScoreSupport
up the stairs0.990.940.97268
down the stairs0.990.960.98199
walk0.981.000.99702
run0.981.000.99372
sit1.001.001.00345
fall-right1.001.001.005
fall-left0.861.000.926
fall-front0.861.000.926
fall-back1.000.900.9510
lying1.001.001.00394
macro avg0.970.980.972307
weighted avg0.990.990.992307
Table 4. Classification report using the ensemble learning-based approach.
Table 4. Classification report using the ensemble learning-based approach.
ClassPrecisionRecallF1-ScoreSupport
up the stairs0.980.940.96268
down the stairs1.000.960.98199
walk0.980.990.99702
run0.981.000.99372
sit1.001.001.00345
fall-right1.001.001.005
fall-left0.861.000.926
fall-front1.001.001.006
fall-back1.000.900.9510
lying1.001.001.00394
macro avg0.980.980.982307
weighted avg0.990.990.992307
Table 5. Comparison with state-of-the-art ensemble learning techniques applied to the WISDM and Hexoskin datasets.
Table 5. Comparison with state-of-the-art ensemble learning techniques applied to the WISDM and Hexoskin datasets.
DatasetMethodsF1-ScorePrecisonRecall
WISDMThe proposed method0.77 ± 0.070.77 ± 0.070.77 ± 0.07
Ensemble (DT-LR-MLP) [38]0.73 ± 0.110.73 ± 0.110.73 ± 0.11
Adaboost [61]0.46 ± 0.130.46 ± 0.130.46 ± 0.13
Random Forest [60]0.72 ± 0.110.72 ± 0.110.72 ± 0.11
HexoskinThe proposed method0.85 ± 0.120.85 ± 0.120.85 ± 0.12
Ensemble (DT-LR-MLP) [38]0.79± 0.140.79± 0.140.79± 0.14
Adaboost [61]0.49 ± 0.110.49 ± 0.110.49 ± 0.11
Random Forest [60]0.81 ± 0.140.81 ± 0.140.81 ± 0.14
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Abid, M.; Khabou, A.; Ouakrim, Y.; Watel, H.; Chemcki, S.; Mitiche, A.; Benazza-Benyahia, A.; Mezghani, N. Physical Activity Recognition Based on a Parallel Approach for an Ensemble of Machine Learning and Deep Learning Classifiers. Sensors 2021, 21, 4713. https://doi.org/10.3390/s21144713

AMA Style

Abid M, Khabou A, Ouakrim Y, Watel H, Chemcki S, Mitiche A, Benazza-Benyahia A, Mezghani N. Physical Activity Recognition Based on a Parallel Approach for an Ensemble of Machine Learning and Deep Learning Classifiers. Sensors. 2021; 21(14):4713. https://doi.org/10.3390/s21144713

Chicago/Turabian Style

Abid, Mariem, Amal Khabou, Youssef Ouakrim, Hugo Watel, Safouene Chemcki, Amar Mitiche, Amel Benazza-Benyahia, and Neila Mezghani. 2021. "Physical Activity Recognition Based on a Parallel Approach for an Ensemble of Machine Learning and Deep Learning Classifiers" Sensors 21, no. 14: 4713. https://doi.org/10.3390/s21144713

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