• No results found

Pervasive Lying Posture Tracking

N/A
N/A
Protected

Academic year: 2020

Share "Pervasive Lying Posture Tracking"

Copied!
19
0
0

Loading.... (view fulltext now)

Full text

(1)

Article

Pervasive Lying Posture Tracking

Parastoo Alinia1,2 , Ali Samadani1, Mladen Milosevic1, Hassan Ghasemzadeh2and Saman Parvaneh2 *

1

2

*

Abstract:Automated lying-posture tracking is important in preventing bed-related disorders such as pressure injuries, sleep apnea, and lower-back pain. Prior research studied in-bed lying posture tracking using sensors of different modalities (e.g., accelerometer and pressure sensors). However, there remain significant gaps in research about how to design efficient in-bed lying posture tracking systems. These gaps can be articulated through several research questions as follows. First, can we design a single-sensor, pervasive, and inexpensive system that can accurately detect lying postures? Second, what computational models are most effective in the accurate detection of lying postures? Finally, what physical configuration of the sensor system is most effective for lying posture tracking? To answer these important research questions, in this article, we propose a comprehensive approach to design a sensor system that uses a single accelerometer along with machine learning algorithms for in-bed lying posture classification. We design two categories of machine learning algorithms based on deep learning and traditional classification with handcrafted features to detect lying postures. We also investigate what wearing sites are most effective in accurate detection of lying postures. We extensively evaluate the performance of the proposed algorithms on nine different body locations and four human lying postures using two datasets. Our results show that a system with a single accelerometer can be used with either deep learning or traditional classifiers to accurately detect lying postures. The best models in our approach achieve an F-Score that ranges from 95.2% to 97.8% with coefficient of variation from 0.03 to 0.05 . The results also identify the thighs and chest as the most salient body sites for lying posture tracking. Our findings in this article suggest that because accelerometers are ubiquitous and inexpensive sensors, they can be a viable source of information for pervasive monitoring of in-bed postures.

Keywords: Lying Posture Tracking;Traditional Machine Learning;Ensemble Classification;Deep Recurrent Neural Network Models;Long Short-Term Memory Sequence Classification Model

1. Introduction

Keeping track of in-bed lying postures and the transitions between them provide useful clinical information about the patients’ mobility [1,2], risk of developing hospital-acquired pressure injuries [3], hidden death in epilepsy [4], and quality of sleep [5]. In-bed posture and activities of the patients in hospitals are usually monitored manually and through visual observation, which is a labor- and cost-intensive task. Therefore, researchers have proposed to monitor in-bed postures continuously and non-obtrusively using wearable sensors.

Automatic in-bed lying posture tracking systems have been developed using data collected from sensors of different modalities, such as accelerometers [6–8], load cell sensors [9], pressure sensors

PhilipsResearchNorthAmerica,Cambridge,Massachusetts,USA;[email protected], [email protected],[email protected]

SchoolofElectricalEngineeringandComputerScience,WashingtonStateUniversity,Pullman,Washington, USA;[email protected],[email protected]

Correspondence:[email protected]

(2)

[10,11], infrared cameras [12], electrocardiogram waveforms [13], and multi-modal systems [14–16]. Pressure mats and load sensor systems impose a high cost to the end-users and often require calibration. The camera-based systems usually encounter setup and privacy issues from the end-users and are more difficult to analyze than the wearable sensors [17]. Other works have utilized multiple wearable sensors on different body locations for continuous lying-posture detection, which imposes discomfort to the end-users and impede long-term monitoring. To address these issues, we develop a traditional machine learning (ML) model for lying posture detection using a single accelerometer sensor, which is is an ensemble of decision tree classifiers with hand-engineered time-domain features.

Deep learning (DL) has emerged as the leading approach in the field of computer vision, voice recognition, and natural language processing in recent years. Deep neural networks are known as learners of high-level features for a specific problem domain. This makes DL models suitable models for human posture estimation. Moreover, DL models tend to reduce the overhead of feature engineering compared to traditional machine learning models [18]. To date, no studies have explored the possibility of utilizing deep neural networks to acceleration-based lying posture tracking. We develop a deep learning model for lying posture detection using a single accelerometer sensor to investigate the possibility of replacing traditional feature-based machine learning models with deep neural networks, therefore, reduce the burden of feature-engineering. Our deep learning model, adaptive long short-term memory network (AdaLSTM), is a long short-term memory network (LSTM) that uses an adaptive learning rate method with a decaying learning rate schedule.

More specific contributions of this paper are as follows. We (1) investigate the efficacy of a single accelerometer for lying-posture tracking using feature engineered machine learning models and deep LSTM networks; (2) identify the set of optimal time-domain features for accurate lying posture detection using traditional ML; (3) compare traditional machine learning with deep learning in recognition of lying postures; (4) evaluate nine different body sites to determine the most appropriate site to attach the accelerometer for accurate lying posture tracking.

2. Background & Related Studies

In this section, we discuss the previous studies on lying posture tracking using wearable accelerometer sensors. We divide these studies based on the number of wearable sensors into 1) multi-sensor and 2) single-sensor lying posture tracking.

2.1. Multi-Sensor Lying Posture Tracking

A study in [8] by Kwasnicki et al. proposed a lightweight sensing platform for monitoring sleep quality and posture using three wearable accelerometer sensors that were placed on both arms and the chest. They applied a K-nearest neighbor, naive Bayes, and decision tree classifiers on the mean and variance of each axis of the signal from all three accelerometer sensors. Their models achieved 99.5% average accuracy in detecting the four major lying postures (i.e., lying supine, prone, and laterals). In another study fallmann et al. proposed a lying posture detection algorithm using three accelerometer sensors on the chest and the legs. Their algorithm first, classified the postures using the acceleration-moving variance method, into stable and non-stable time windows, then classified the features into the postures prone, supine, and laterals. Their model achieved an average accuracy of 83.6% [19]. Moreover, Wrzus et al. [6] developed a 99.7% accurate classification model using chest and thigh accelerometry data based on the angular orientation of the upper body along the vertical axis to classify lying postures.

(3)

body locations, including chest, thighs, ankles, arms, and wrists. The proposed models using a single accelerometer are more comfortable to the end-users, therefore, are favored over those using multi-sensor.

2.2. Single-sensor Lying Posture Tracking

In a study by Razjouyan et al. in [20], authors developed a lying posture detection algorithm based on a single accelerometer sensor on the chest of the user. They used a logistic regression model on 43 time-domain features which were extracted from the magnitude of the tri-axial accelerometer signal. The proposed model achieved 87.8% accuracy in detecting the lying postures supine, prone, and laterals for 21 users. In another study [7] by Zhang et al., the authors assessed the possibility of using a single accelerometer sensor on the chest to detect the lying posture during sleep. They used linear discriminant analysis (LDA) classifier on the mean value of each axis of the acceleration signal. They achieved an overall accuracy of 99% for classifying lying postures (lying supine, prone, and laterals). However, the authors of this study did not assess the effect of sensor location on the accuracy of lying posture tracking. In another study, Chang et al. developed a system that captured information about sleep events using a smartwatch. Their system distinguished sleep postures supine, prone, and laterals at an average precision of 96%. Their proposed algorithm detected the sleeping postures by combining the position of both hands and classification of features using a template-based Euclidean distance matching approach [21]. However, the performance of such a model is highly dependent on the quality of pre-defined hand positions and sleep posture templates. Furthermore, the possible sensor rotations during sleeping might affect the accuracy of hand position recognition; and therefore affect the lying posture detection. Moreover, Jeng et. al [22] proposed a sleep position detection algorithm that achieved 90% accuracy in detecting postures supine, prone and laterals using the data collected from an accelerometer sensor on the wrist of the users. Their proposed model applied a support vector machine classifier with a linear kernel and a random forest of 100 trees on the mean value of the signal.

3. Methodologies

Figure1shows the overall architecture of the proposed ML and DL lying posture tracking. The overall training process includes two steps of data preparation and model development.

3.1. Data Preparation

We define an episode of data as a sequence of signals collected from one subject while performing a run of a specific posture (e.g., lying supine). The raw accelerometer signal and lying posture labels (e.g., supine, prone, and lateral) are fed into the data processing unit. The processing unit normalizes the signal to remove possible subject-based variations and segments it into different lying posture episodes based on the labels.

3.2. Traditional Lying Posture Tracking

The proposed traditional lying posture tracking consists of two main steps: (1) feature preparation in which an exhaustive set of features are extracted from each input episode; and (2) ensemble model learning, which trains an ensemble of 100 decision trees on the features and lying posture labels.

3.2.1. Feature Preparation

(4)

Deep LSTM Sequence Classification Feature-Based Ensemble Trees Classification

Feature Preparation

Model Learning

Feature Extraction

Random data Subset & feature Selection

Decision Tree

S𝑢𝑏𝑠𝑒𝑡1 S𝑢𝑏𝑠𝑒𝑡2 S𝑢𝑏𝑠𝑒𝑡𝑛

Decision Tree

Decision Tree

Final Decision

Data Preparation

Raw Input

Data Preprocessing

Subject-Based Normalization

Episode Extraction Raw Accelerometer

Signal Sequence

Lying Posture Labels: Supine, Prone, and Laterals

Episodes, Posture Labels

𝑋1, 𝑌1 𝑋2, 𝑌2 𝑋𝑛, 𝑌𝑛

Supine Prone Lateral

LSTM LSTM LSTM

LSTM LSTM LSTM

LSTM LSTM

Forward Layer Backward Layer

𝐿1

𝐿2

𝐿𝑛

Fully Connected Layers

𝐿1

𝐿5

𝐿6

𝐿𝑛

𝐿4

𝐿9

𝐿10

𝐿𝑛

𝐿8 𝑂𝑢𝑡1

𝑂𝑢𝑡2

𝑂𝑢𝑡3

𝑂𝑢𝑡𝑛 Softmax Layer

Supine Prone Lateral

Figure 1.The process of training feature-based ensemble trees and Deep LSTM classifiers.

of meta-features fi = {fi1,fi2, ...,fi48}forithepisode by averaging of all the extracted features from

multiple windows over that episode.

3.2.2. Ensemble Model Learning

A total of 48 features are obtained from the previous step. We train an ensemble of 100 decision trees on the features and lying posture labels. We choose the bagging technique as the ensemble method to reduce the variance of the decision tree and overfitting to the existing data. A decision tree is selected as the weak learner because of the high dimension of the input features. As shown in Figure1, we fit 100 decision trees on 100 random subsets of the original dataset with a randomly selected subset of features to minimize the correlation between individual trees. The final prediction is the majority voting on the decision of the individual trees [25].

3.3. Deep Lying Posture Tracking

Recurrent Neural Networks (RNNs) are a type of deep learners that are well-suited to model sequential data. However, RNNs fail to learn long-term dependencies in the data due to the problem of vanishing/exploding gradients. Long Short-term Memory (LSTM) network has been introduced to address this issue and capture long-term dependencies from the sequential time series data [26]. LSTM networks have shown promising results on time series classification tasks [27,28]. LSTM captures long-distance dependencies from sequential data through the integration of memory cells and RRNs [29]. Bidirectional long short-term memory (bi-LSTM) networks were introduced as an extension to the LSTM networks. The bi-LSTM architecture consists of two LSTMs that train in two directions; therefore, it is capable of extracting long-term data dependencies in both forward and backward directions [30]. Equations1and2show the mathematical formulation of a bidirectional LSTM with Lhidden layers. At time-stept, each unit in layer(i)receives a set of parameters from the previous time-step (previous stateh(ti)1), and two set of parameter from the previous layer (state of previous layerh(ti−1)and ); one input from the left-to-right RNN and one from the right-to-left RNN. The input to each unit at level(i)is the output of RNN at layer(i−1)at the same time-stept. The output,ybat

each time-stept, in Equation3, is the result of propagating the input parameters through all hidden layers.

−→

ht = f( −→

(5)

Table 1. Extracted time-domain features. E(.)represents the expected value of the input variable. Functionsmin(.),max(.),mean(.),median(.),tan(.),size(.)compute the minimum, maximum, average, median, tangent, and size of an input vector.

Feature Description Computation for signalS Number AMP Peak amplitude max(S)−mean(S) 1–3

MED Median median(S) 4–6

MEAN Mean value µ= ∑

N i=1Si

N 7–9

MAX Maximum value max(S) 10–12

MIN Minimum value min(S) 13–15

VAR Variance v= ∑Ni=1|si−µ|2

N−1 16–18

STD Standard deviation σ= q

∑N i=1|Si−µ|2

N−1 19–21

RMS Root mean square ∑

N i=1S2i

N 22–24

P2P Peak to peak max(S)−min(S) 25–27 ZCR Zero crossing rate size({Si|Si==N0,i=1,2,..,N}) 28–30 ENT Entropy −iN=1Silog(Si) 31–33

SKN Skewness s= E(S−µ)3

σ3 34–36

KRT kurtosis k=E(S−µ)4

σ4 37–39

MAG Mean Magnitude M= ∑

N i=1

Six2+Siy2+Siz2

N 40

ENG Energy e=iN=1S2i 41

RNG Range r=max(S)−min(S) 42–44

ANG Angle a=max(tan( Sz

S2

x+S2y

)) 45

MAD Mean absolute deviation m= ∑Ni=1|si−µ|

N 46–48

←−

h t(i)= f(←W−(i)h(ti−1)+←V−(i)←−ht(+i)1+←−b(i)) (2)

b

yt=g(Uht+c) =g(U[ − →

h(tL);←−h(tL)] +c) (3) In the next section, we define lying posture prediction from the sequences of raw sensor data as an optimization problem, then design a deep learning architecture using Bi-LSTM networks as the solution.

Problem:We haveNsequences of variable lengths where each sequenceXiis assigned a label

Yi= (yi1,yi2, ...,yik)using max-likelihood classification, whereyijshows the likelihood ofjthclass for

ithsequence. Given these, the problem is to estimate a set of labels ˆY={y1, ˆˆ y2, ..., ˆyN}, such that the

difference between the actual and estimated label sets is minimized. We compute this difference as the cross-entropy of the estimated labels ˆYand actual labelYfor summed over the sequences.

− N

i=1

K

j=1

yijlog ˆyij (4)

where Nis the number of the samples, Kis the number of the classes (e.g., three lying postures). Symbolsyijand ˆyijare the actual and estimated likelihood ofjthclass forithsequence, respectively.

Equation4is not an accurate representation of the error as the sequences might adopt different lengths. Therefore, given a set of scalar numbersM={m1,m2, ...,mi}wheremiis the length of the

sequenceXi, Equation4can be formulated as below.

− N

i=1

K

j=1

miyijlog ˆyij (5)

(6)

Deep Learning Architecture:To solve this problem, We design an Adaptive LSTM (AdaLSTM), an LSTM Network with an adaptive learning rate method with a decaying learning rate schedule. AdaLSTM receives the sequences of raw accelerometer sensor data as the input and estimates one label for each sequence. As shown in Figure1, the input episodes/sequences of raw accelerometer data are fed to a Bi-LSTM layer with ten hidden units. The training process of the bi-LSTM includes back-propagation processes in two directions with the objective of minimizing the error. Three fully connected layers multiply the output of the Bi-LSTM layer (e.g., a sequence of tri-axial accelerometer data) by the matrix of weights and add it by the vector of bias. The output of the fully connected layer is fed to a softmax layer that is a multi-class generalization of the logistic sigmoid function. We compute the cross-entropy loss for multi-class classification based on the likelihood of the softmax function. We set the maximum number of the epochs equal to 100. We set the initial learning rate and decay rate of the squared gradient moving average to 0.01 and 0.99, respectively. To shorten the amount of padding in the mini-batches and make the training more suitable for CPU, we chose the mini-batches to be short sequences of size 27. Adamoptimizer [31] is used for training the neural network through backpropagation.

4. Experimental Evaluation

4.1. Datasets & Preprocessing

We perform training and validation of the models on two publicly available datasets: (1) Class-Act dataset [32] which contains three major lying postures including supine, prone, and left side from 22 subjects, and (2) Daily & Sport Activities Dataset (DAS) [33] which contain two major lying postures including supine and right side from 8 particpants.

4.1.1. Class-Act: Datasets from a Human Posture/Activity classification

Class-Act is a human posture and activity classification dataset from 22 healthy participants (7 females and 15 males, ages between 20 and 36) [32]. The participants worn nine accelerometer sensors sampled at 30 Hz on nine different body locations, including the chest, left and right thigh, left and right ankle, left and right arm, left and right wrist during the activities, as shown in Figure2a. Class-Act was collected based on three pre-defined protocols with different combinations of activities or postures in a controlled manner. The activities were walking, sitting, standing, lying supine, lying prone, lying on the left side, kneeling, and crawling. Figure2bshows the prevalence of the extracted episodes for only lying postures. The duration of different episodes for lying supine, prone, and on the left side were 12.2±3.6, 11.9±3.6, and 12.10±3.3 seconds, respectively.

Accelerometer sensor

(a)Sensor Positioning (b)Label Prevalence

(7)

4.1.2. Daily and Sports Activities Dataset (DAS)

The DAS dataset contains data from eight subjects (four females and four males, ages between 20 and 30) that performed 19 activities of daily living for five minutes each [33]. The participants wore five inertial sensor units embedding a tri-axial accelerometer on the chest, right and left wrist, and right and left thigh. The sensors were calibrated to acquire data at a sampling frequency of 25 Hz. We only used lying supine and lying on the right side postures in this study. The dataset is a balanced dataset, eight episodes of lying supine and eight episodes of lying on the right side. Each episode has a length of 7500 samples (300 seconds).

4.1.3. Integrated Dataset

We combined the lying posture episodes from the Class-Act and DAS datasets for the common sensor locations (i.e., chest, right and left wrists, and right and left thighs). We segmented 16 episodes of lying on right side from the DAS dataset into 15 episodes of 500 samples (i.e. 20 seconds). Since the DAS dataset only contained episodes of lying on the back (i.e., supine) and lying on the right side, we performed under-sampling in the DAS dataset prior to combining the datasets to maintain the balance. The final dataset contains 75 episodes of supine (i.e., 26.1%), 57 episodes of prone (i.e., 19.8%), 75 episodes of left side (i.e., 26.1%), and 80 episodes of right side (i.e., 27.8%) for the chest, right and left wrists, and right and left thighs.

4.2. Comparison Metrics and Implementation Details

We validated the proposed models based on leave-one-subject-out (LOSO) validation to minimize overfitting to a specific subject or a specific pattern of performing a lying posture. We report accuracy, F1-Score, and balanced accuracy as evaluation metrics of the proposed models. We perform the coefficient of variation (CoV) analysis [34] to compare the proposed algorithms against the state-of-the-art.

Accuracy is defined as the average effectiveness of the classifier over all the class labels.

Accuracy= ∑

l i=1

TPi+TNi

TPi+TNi+FPi+FNi

l (6)

where l is the number of class labels. F1-score is defined as the relations between the data’s positive labels and the classifier predicted labels.

where l is the number of class labels. Balanced accuracy is defined as the average of the true positives and true negatives for each class label.

BalancedAccuracy= ∑

l i=1

TPi

Pi +∑li=1

TNi

Ni

2×l (7)

where l refers to the number of classes in the classification task. For each classCi (i.e., three lying

posture classes), Pi is the number of samples with positive label (i.e.,Ci), Ni is the number of the

samples with negative labels (i.e., notCi),TPirefers to the samples that are correctly classified asCi,

FPiare the samples that are falsely classified asCi,TNiare defined as the samples that are correctly

not classified asCi, andFNiare the samples that are falsely not classified asCi[35,36].

F1−Score= 2×(Recall×Precision)

(8)

where precision refers to the average agreement of the actual class labels and classifier-predicted labels, and recall is the average effectiveness of the classifier to identify each class label. Precision and recall are computed by the following equations.

Precision= ∑

l

i=1TPTPi+iFPi

l ,Recall =

∑l

i=1TPTPi+FNi i

l (9)

We compute the coefficient of variation (CoV) analysis [34] for each model over different body locations based on the equation below.

CoV = σ

µ (10)

whereσandµare respectively the standard deviation and average of the F1-Score in lying posture

detection over different folds.

5. Results

In this section, we extensively evaluate the performance of the ensemble tree and AdaLSTM classifiers independently and against each other. We report the validation metrics, including accuracy, F1-score, and balanced accuracy for both classification models. We further perform a coefficient of variation (CoV) analysis to compare the performance of the models against the state-of-the-art.

5.1. Raw data Inspection

Before our main analysis, we investigate the variations in the pattern of the raw accelerometer sensor data across different subjects and different lying postures on the Class-Act dataset. We visually inspect the data by computing the mean and standard deviation of the acceleration data over all the episodes of data collected from different subjects while maintaining different lying postures.

Figure 3.Mean and standard deviation of the magnitude of the accelerometer sensor data for different lying postures over all the subjects.

(9)

line demonstrates the mean, and the shaded area shows the standard deviation for different episodes in a specific lying posture. The results show that the y-axis (vertical) always reports values near 0g. In contrast, the x-axis (lateral) shows a mean value near -8.0g for lying on left side posture, while it almost always reports a mean near 0g for the other two postures. Moreover, the z-axis (horizontal) reports mean accelerations around +9.2g and -7.8g for supine and prone postures, respectively, but 0g for lateral posture. Therefore, that lateral axis (x-axis) appears to be sensitive to the lying on side posture, and the horizontal axis (z-axis) appears to be sensitive to the supine and prone postures. These numbers can be justified because while the user is lying on one-side, the x-axis of the accelerometer sensor on the chest is parallel to gravity, therefore reporting values around g (±10). The same result occurs when the user lies on the back (supine) or front (prone), except the z-axis, becomes parallel to the g and reports values near±10g. Depending on the direction of the body (supine, prone, and lateral lying postures), these values could be negative or positive. Consequently, we expect these two axes to be more informative in classification compared with the y-axis.

5.2. Traditional Machine Learning

In this section, we validate the feature-based ensemble tree classifier in detecting three major lying postures (supine, prone, and left side) using the Class-Act dataset including 12 subjects and nine sensor locations.

5.2.1. Feature Engineering

Figure4shows the feature importance of lying posture tracking as determined by the ensemble tree classifier that is trained on the data from the chest, left thigh and wrist sensors. The importance of the features is one of the outputs of the ensemble tree classification. The y-axis in this figure is the estimation of feature importance from the ensemble tree by summing over the changes in the mean squared error because of splits on every feature and dividing the sum by the number of the branch nodes in the tree [37]. The x-axis shows features 1 to feature 48 as in Table1. Based on the results, features 4, 7, 10, and 13 are the sets with the highest importance. Table1shows that these features are the median, mean, maximum, and minimum of the vertical axis (e.g., x-axis) of the tri-axial accelerometer sensor. Moreover, features 6, 9, 12, and 15 are the second important set of features. Based on Table1. These predictors refer to features median, mean, maximum, and minimum of the z-axis of the tri-axial accelerometer signal. These results match the observations on the sensitivity of the lying on the left side to the x-axis and lying supine and lying prone postures to the frontal axis (e.g., z-axis) in Figure3.

0 0.005 0.01 0.015 0.02

1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47

Fea

tur

e

Impo

rt

anc

e

Chest Left Wrist Left Thigh

Figure 4.Importance of the extracted features from sensor data for lying posture tracking.

5.2.2. Lying Posture Detection

(10)

classifiers trained on the data collected from the chest, thighs or ankles achieve 89.8% –96.2% accuracy, 82.9%–94.4% balanced accuracy and, 82.8%–93.6% F1-Score. While, these values drop when the sensor is placed on the upper body parts such as the arms and the wrists (78.6%–89.5% accuracy, 62.9%–84.0% balanced accuracy, and 60.9%–81.6% F1-Score).

Table 2.Performance (%) of the ensemble tree classification in lying-posture detection for nine different body locations on the Class-Act dataset using LOSO validation.

Location Accuracy Balanced

Accuracy F1-Score Left Thigh 94.5±6.9 91.3±10.3 90.7±11.8 Right Thigh 96.2±8.1 94.4±12.0 93.5±14.4 Left Ankle 94.9±8.5 92.1±12.8 91.4±15.6 Right Ankle 89.8±13.5 82.9±19.9 82.8±22.7 Chest 96.2±9.1 93.6±13.7 93.6±16.2 Left Arm 78.6±11.7 62.9±15.1 60.9±16.6 Right Arm 89.5±12.1 84.0±18.3 81.6±21.7 Left Wrist 78.6±12.5 67.1±19.1 64.1±21.7 Right Wrist 80.7±14.1 79.7±21.3 67.9±23.8

The performance decline in the upper body parts is originated from inter-subject variations in the placement of the arms and the wrists and nocturnal movements of them such as bending and rotating while maintaining the same lying posture. The trend in the standard deviation of accuracy, balanced accuracy, and F1-Score across different subjects is also in concordance with the hypothesis that more within-subject variation (e.g., 11.7% to 23.8% standard deviation in accuracy, balanced accuracy, and F1-Score) is observed when the sensor is worn on the wrists and the arms comparing to the chest, thighs and ankles (e.g., 6.9% to 22.7% standard deviation in accuracy, balanced accuracy and F1-Score). Moreover, Figure5visualizes the confusion matrix of lying posture classification using ensemble tree classifier on the Class-Act dataset. The confusion matrices for the classifying the thighs, chest, and ankles data show more promising results than the arms and wrists. In particular, the classifiers trained on the left thigh, right thigh, and chest misclassify 8.1%, 5.6%, and 5.6% of the lying episodes. The misclassification rate increases to 7.6% and 39.0% for the left ankle and left arm locations, and 15.2%, 15.7%, and 28.9% for the right ankle, right arm, and right wrist locations.

5.3. Deep Sequence Learning

In this section, we evaluate the performance of the AdaLSTM classifier in detecting three major lying postures in Class-Act dataset. Table3shows the mean and standard deviation of accuracy, balanced accuracy, and F1-score of the model using the Class-Act dataset including nine sensor locations. AdaLSTM achieves 94.5%–98.9% average Accuracy, 92.4%–98.4% average balanced accuracy, and 91.5%–98.2% average F1-Score when applied to the data collected from the sensor worn on the chest, thighs, or ankles. However, the performance drops to 64.8%–86.8% average accuracy, 64.9%–79.0% average balanced accuracy, and 62.9%–75.7% average F1-Score, for the cases where the sensor was on the arms and wrists. The within-subject standard deviation in the accuracy, balanced accuracy, and F1-Score is higher when the sensor is placed on the arms and the wrists (9.2%–24.8%) comparing to the thighs and chest (5.2%–15.6%). Such results could be justified according to the findings in a study by Skarpsno et al. were showed the duration of nocturnal movements while sleeping in the arms and upper back was higher than the thighs in 2,107 subjects [38]. AdaLSTM is the most accurate when applied to the data collected from the sensor on the left thigh (98.9%±

(11)

$FWXDO

3UHGLFWHG

Supine Prone

Supine Prone Leftside

Leftside

(a)Left thigh

$FWXDO

3UHGLFWHG

Supine Prone Leftside

Supine Prone Leftside

(b)Right thigh

$FWXDO

3UHGLFWHG

Supine Leftside

Supine Prone Leftside

Prone

(c)Left Ankle

$FWXDO

3UHGLFWHG

Supine Leftside

Supine

Prone

Leftside

Prone

(d)Right Ankle

$FWXDO

3UHGLFWHG

Supine Prone Leftside

Supine Prone Leftside (e)Chest

$FWXDO

3UHGLFWHG

Supine Leftside

Supine Prone Leftside

Prone

(f)Left arm

$FWXDO

3UHGLFWHG

Supine Prone Leftside

Supine

Prone

Leftside

(g)Right arm

$FWXDO

3UHGLFWHG

Supine Prone Leftside

Supine Prone

Leftside

(h)Left Wrist

$FWXDO

3UHGLFWHG

Supine Prone Leftside

Supine

Prone

Leftside

(i)Right wrist

Figure 5.Confusion matrix of the ensemble tree classifier in classifying lying postures into supine, prone, and left side for the thighs, ankles, chest, arms, and wrists locations using Class-Act dataset.

Figure6shows the confusion matrices of the AdaLSTM classifier trained on the data from the thighs, ankles, arms, and wrists using Class-Act dataset. The models trained on the chest, left thigh, right thigh, left ankle, and right ankle confuses 2.5% 1.5%, 6.1%, 3.0%, and 8.1% of the lying episodes. However, the number of misclassified episodes increases to 33.5%, 19.8%, 30.9%, and 29.4% for the left arm, right arm, left wrist, and right wrist classifiers. We note that the higher misclassification rate when the sensor is on the left arm than the right arm sensor is due to the confusion of the left side and prone postures.

5.4. Deep Learning vs. Traditional Machine Learning

In this section, we investigate the possibility of replacing feature-based machine learning models with deep recurrent neural networks (RNNs). Figure7compares the mean and CoV of F1-Score and accuracy metrics between AdaLSTM and ensemble tree classifiers. These classifiers are evaluated using the Class-Act dataset including 22 subjects and nine sensor locations on the body. As shown in Figure7a, AdaLSTM achieves 2%–10% higher accuracy and 3%–9% higher F1-Score than Ensemble tree classifier when applied to the data collected from the sensor on the chest, the thighs, or the ankles. The gap between the performance of the two classifiers increases to 3%–15% in accuracy when tested on the data collected from the arms or the wrists. Since CoV represents the ratio of variation to the mean of a metric, lower CoV values show a more promising classification performance. As shown in Figure7b, AdaLSTM achieves lower CoV values over all the sensor locations, therefore, it adopts a better generalization to cross-subject variations comparing to the ensemble tree classifier. This gap between the performance of the models demonstrates that deep RNNs are more capable of capturing higher-level patterns in noisy data with high variance across subjects such as the data collected from the sensor on the wrists, or the arms.

(12)

Table 3.Performance (%) of the sequence classification using AdaLSTM in lying-posture detection for nine different body locations on the Class-Act dataset using LOSO validation.

Location Accuracy Balanced

Accuracy F1-Score Left Thigh 98.9±8.2 98.4±5.2 98.2±6.2 Right Thigh 95.9±7.3 93.4±11.8 91.5±15.6 Left Ankle 97.9±4.2 96.8±6.3 96.9±6.4 Right Ankle 94.5±6.3 92.4±9.4 91.7±10.7 Chest 98.3±7.1 97.4±7.1 97.3±7.3 Left Arm 77.6±11.7 68.8±14.1 66.3±16.5 Right Arm 86.8±9.2 79.0±14.5 75.7±17.3 Left Wrist 64.8±22.9 64.9±24.8 62.9±23.2 Right Wrist 66.8±26.7 67.6±26.2 66.9±28.9

$FWXDO

3UHGLFWHG

Supine Prone Leftside

Supine

Prone

Leftside

(a)Left thigh

$FWXDO

3UHGLFWHG

Supine Prone Leftside

Supine

Prone

Leftside

(b)Right thigh

$FWXDO

3UHGLFWHG

Supine Leftside

Supine

Prone

Leftside

Prone

(c)Left Ankle

$FWXDO

3UHGLFWHG

Supine Prone. Leftside

Supine

Prone

Leftside

(d)Right Ankle

$FWXDO

3UHGLFWHG

Supine Leftside

Supine Prone Leftside Prone (e)Chest

$FWXDO

3UHGLFWHG

Supine Prone Leftside

Supine

Prone

Leftside

(f)Left arm

$FWXDO

3UHGLFWHG

Supine Prone Leftside

Supine

Prone

Leftside

(g)Right arm

$FWXDO

3UHGLFWHG

Supine Prone Leftside

Supine

Prone

Leftside

(h)Left Wrist

$FWXDO

3UHGLFWHG

Supine Prone Leftside

Supine

Prone

Leftside

(i)Right wrist

Figure 6.Confusion matrix of AdaLSTM classifier in classifying lying postures into supine, prone, and left side for the thighs, ankles, arms, and wrists locations.

the performance of the two classifiers. Note that both 0.100, and 0.007 are marginally bigger than the

α=0.005, which suggests evaluation on a larger dataset.

5.5. Comparison with the State-of-the-Art

We compare the performance of the proposed models against the state-of-the-art in lying posture detection using a single accelerometer sensor. The proposed and competing models are described as follows.

ETis the proposed feature-based classifier, which is an ensemble of decision trees trained on 48 time-domain features.

AdaLSTMis the proposed deep learning model, which is an adaptive long short-term memory network with Adam optimizer and decaying learning rate.

(13)

/HIWWKLJK 5LJKWWKLJK /HIWDQNOH 5LJKWDQNOH &KHVW /HIWDUP 5LJKWDUP /HIWZULVW 5LJKWZULVW

Locations

$GD/670$FFXUDF\

(7$FFXUDF\

$GD/670)6FRUH

(7)6FRUH

Models

(a)Mean Value

/HIWWKLJK 5LJKWWKLJK /HIWDQNOH 5LJKWDQNOH &KHVW /HIWDUP 5LJKWDUP /HIWZULVW 5LJKWZULVW

Locations

$GD/670$FFXUDF\

(7$FFXUDF\

$GD/670)6FRUH

(7)6FRUH

Models

(b)CoV

Figure 7.Comparison between the mean and CoV of F1-Score (%) of the ensemble tree and AdaLSTM classification models for nine body locations on the Class-Act dataset using LOSO validation.

SVM, proposed by Jeng et al., is a multi-class linear kernel support vector machine classifier trained on the mean value of the tri-axial accelerometer signal [22].

LSTMis a long short-term memory network with the same structure as the AdaLSTM but with a fixed learning rate of 0.01.

5.5.1. Class-Act Dataset

Table4compares the F1-score mean and CoV of the proposed models AdaLSTM and ET against the state-of-the-art deep learning and feature-based models on the Class-Act dataset. The class-act dataset contains data from three major lying postures including supine, prone, and left side and nine different sensor locations. Since CoV shows the ratio of variation to mean for a metric, a lower F1-Score CoV value represents a more promising model. The linear feature-based classifiers including LDA and SVM obtain>88.3% F1-Scores and <0.26 CoV when applied to data from the thighs, ankles and chest, however, their performance significantly drops to 50.7%–82.2% F1-Score and 0.22–0.36 CoV when the sensor is moved to the arms or wrists. The competing deep learning model, LSTM, maintains 83.7%–92.5% mean F1-Score for the thighs, ankles and chest locations, and 51.6%–75.5% mean F1-Score for the arms, and wrists location. AdaLSTM outperforms the competing deep learning and feature-based classifiers over all the body locations except for the right thigh, right arm, and left wrist. It achieves 91.5%–98.2% mean F1-Score and 0.06–0.17 CoV for the thighs, ankles, and chest body locations. It shows the most promising result when applied to the sensor on the left thigh with 98.2% F1-Score and 0.06 CoV. These results demonstrate the power of deep learning and salient of the left thigh in detecting the lying postures for a new subject. We note that neural networks with simpler structures such as LSTM with a fixed learning rate in this paper could not extract useful features and patterns from the raw data automatically from limited data, therefore choosing the proper parameters for the deep learning models is a crucial factor in their performance.

(14)

Table 4. Comparison between the mean value and coefficient of variation for F1-score of detecting three lying postures for different sensor placements and classifiers including Ensemble Trees (ET), Linear Discriminator Analysis (LDA), LSTM with fixed learning rate (LSTM), and Adaptive LSTM (AdaLSTM) using Class-Act Dataset. We show the highest F1-Score value, and lowest CoV metric that models could achieve for each location for LOSO validations in bold.

Location ET LDA SVM LSTM AdaLSTM

Mean

V

alue

(%)

Left thigh 90.7 95.4 95.4 92.5 98.2 Right thigh 93.5 96.1 93.2 84.8 91.5 Left ankle 92.1 88.3 94.8 90.2 96.9 Right ankle 82.9 90.0 89.5 83.7 91.7

Chest 97.0 94.8 90.1 88.3 97.3

Left arm 60.9 58.1 53.3 53.7 66.3

Right arm 81.6 82.2 76.1 75.5 75.7 Left wrist 64.1 55.0 50.7 51.6 64.0 Right wrist 67.9 65.5 59.2 54.1 69.4

Coef

ficient

of

variation

Left thigh 0.13 0.15 0.13 0.22 0.06 Right thigh 0.15 0.16 0.17 0.28 0.17 Left ankle 0.17 0.18 0.16 0.24 0.06 Right ankle 0.27 0.18 0.12 0.27 0.11

Chest 0.17 0.16 0.26 0.15 0.07

Left arm 0.27 0.33 0.29 0.36 0.24

Right arm 0.26 0.22 0.24 0.23 0.22 Left wrist 0.33 0.36 0.36 0.50 0.25 Right wrist 0.35 0.32 0.29 0.36 0.31

5.5.2. Integrated Dataset

Table5shows the mean F1-score and CoV values of lying posture detection on the dataset of four major lying postures including supine, prone, left side, and right side and five sensor locations including thighs, wrists, and chest. The results are leave-one-subject-out validated because it is a more realistic validation scenario for the application of human lying posture tracking.

As shown in Table5, ET and AdaLSTM classifiers achieve a promising range of F1-Score across all the body locations (i.e., 63.3% for the right wrist to 97.3% for the chest) . ET classifier obtains the highest mean F1-score when the sensor is placed on the right thigh (i.e., 97.3%), left wrist (i.e., 65.9%), and right wrist (i.e., 78.6%) locations among all the algorithms. The linear classifiers such as LDA [7] and SVM [22] achieve higher F1-Score than the proposed models in this paper when applied to data collected from the sensor on the left thighs and the chest. The linear relationship between the lying posture and accelerometer readings causes the superiority of state-of-the-art for these locations. On the other hand, extra movements of the hands during lying introduce noise and non-linearity to the data collected by the sensor placed on these locations, therefore, F1-Score values of linear classifiers drop to 42.1%-74.3% for the left and right wrists.

Moreover, the proposed models show lower F1-Score variation to mean ratio comparing to the state-of-the-art techniques. Ensemble tree classifier achieves CoV of 0.13 and 0.39, for the right thigh and the left wrist, respectively, and AdaLSTM achieves CoV of 0.12 for the chest. While CoV of the linear models including LDA and SVM increases to the range 0.32−0.50 for the left and right wrist locations.

6. Discussion

(15)

Table 5.Comparison between the mean value and coefficient of variation for F1-score of detecting four lying postures for different sensor placements and classifiers including Ensemble Trees (ET), Linear Discriminator Analysis (LDA), Support Vector Machine (SVM), LSTM with fixed learning rate (LSTM), and Adaptive LSTM (Ada-LSTM) for leave-one-subject-out validation using integrated dataset.

Location ET LDA SVM LSTM AdaLSTM

Mean Value(

%

) Right thighLeft thigh 90.697.3 94.696.9 91.491.4 92.993.2 93.794.0

Chest 95.4 95.4 96.7 90.7 95.0

Left wrist 65.9 42.1 58.4 54.1 63.3 Right wrist 78.6 66.7 74.3 42.1 69.2

Coef

ficient

of

variation

Left thigh 0.19 0.14 0.25 0.09 0.21 Right thigh 0.13 0.15 0.20 0.16 0.17

Chest 0.13 0.13 0.24 0.25 0.12

Left wrist 0.39 0.50 0.50 0.53 0.42 Right wrist 0.34 0.38 0.32 0.40 0.39

from the sensors on the chest and thighs the lying posture tracking achieves the highest performance and the least cross-subject variations, while classifiers for the wrists and the arms show the least performance and highest within-subject variations. These results demonstrate that individuals might devise arbitrary and dissimilar hand movements during the same lying posture. Figure8compares the confusion matrices of the ensemble tree classifiers trained on the data from the chest, thighs, and wrists from integrated dataset. The chest, left thigh, and the right thigh classifiers confuse 3.8%, 6.6% and 2.1% of the lying episodes, respectively, while this ratio increases to 28.8% for the left wrist and 20.3% for the right wrist sensor. The confusion between lying postures such as the supine and prone postures in the wrists’ sensors is caused by the wrist rotations while lying. In particular, the left side posture is mainly confused with the supine when the sensor is on the left wrist and confused with the supine when the sensor is on the right wrist. Moreover, the majority of the confusions between the left side and prone postures occur when the sensor is on the right wrist, and confusion between the left side and supine posture occur when the sensor in on the left wrist. These results are mainly due to the similar sensor position during the postures that are confused with each other. For example, the left wrist holds similar positions when the user lays on the back (i.e., supine) and lays on the left side depending on the rotation of the wrist. Also, the right wrist might adopt the same position when the user lays on the front (prone) and lays on the right side.

We further investigated the possibility of replacing traditional machine learning with deep learning. Our study showed that deep RNNs such as LSTM can replace the traditional machine learning classifiers as long as adequately designed. Figure9shows the confusion matrices for lying posture detection using AdaLSTM on data collected from the sensor on the chest, the thighs, and the wrists. These results follow a similar trend as the ensemble tree classifier. 3.1%, 4.2%, and 2.1% of the lying episodes are misclassified when the sensor is worn on the chest, the left thigh, and the right thigh, respectively. While the misclassification rate increases to 20.3% and 12.2% for the left wrist and the right wrist classifiers, respectively. The AdaLSTM confuses 30.0%, and 39.9% less lying episodes compared to the ensemble tree classifier when the sensor is placed on the left wrist and the right wrist, respectively. These results show the ability of the deep RNNS to capture non-linear relations in the data based on the non-linear operations on a higher level of abstraction. In addition, deep RNNS such as AdaLSTM do not require feature-engineering. One major drawback of deep learning is the inability to interpret extracted features through the deeper layers of the network. Moreover, these models are computationally expensive and require large training datasets to achieve promising results [29].

(16)

$FWXDO

3UHGLFWHG

Supine Prone Rightside Leftside

Supine

Prone

Rightside

Leftside

(a)Left thigh

$FWXDO

3UHGLFWHG

Supine Prone Rightside Leftside

Supine

Prone

Rightside

Leftside

(b)Right thigh

$FWXDO

3UHGLFWHG

Supine Prone Rightside Leftside

Supine

Prone

Rightside

Leftside

(c)Left Wrist

$FWXDO

3UHGLFWHG

Supine Prone Rightside Leftside

Supine

Prone

Rightside

Leftside

(d)Right wrist

$FWXDO

3UHGLFWHG

Supine Prone Rightside Leftside

Supine

Prone

Rightside

Leftside

(e)Chest

Figure 8.Confusion matrix of ensemble tree classifier in classifying lying postures into supine, prone, and left side for the thighs, ankles, arms, and wrists locations.

the performance of AdaLSTM especially for the data from the sensor on the wrists and the arms of the users. We are planning to address this issue in two directions: (1) conduct an extensive multi-modality data collection from a large number of participants performing different lying postures, including main postures and their other variations; (2) produce signal-/feature-level synthesis data using data augmentation techniques such as rotation, permutation, time-wrapping, scaling, magnitude-wrapping, jittering [39], sequence to sequence learning techniques [40], and generative adversarial networks [41].

7. Conclusion

(17)

$FWXDO

3UHGLFWHG

Supine Prone Rightside Leftside

Supine

Prone

Rightside

Leftside

(a)Left thigh

$FWXDO

3UHGLFWHG

Supine Prone Rightside Leftside

Supine

Prone

Rightside

Leftside

(b)Right thigh

$FWXDO

3UHGLFWHG

Supine Prone Rightside Leftside

Supine

Prone

Rightside

Leftside

(c)Left Wrist

$FWXDO

3UHGLFWHG

Supine Prone. Rightside Leftside

Supine Prone Rightside Leftside

(d)Right wrist

$FWXDO

3UHGLFWHG

Supine Prone Rightside Leftside

Supine Prone Rightside Leftside

(e)Chest

Figure 9.Confusion matrix of AdaLSTM classifier in classifying lying postures into supine, prone, and left side for the thighs, ankles, arms, and wrists locations.

and DAS datasets. These results demonstrated the thighs and the chest as the optimum location for accurate lying posture tracking using a single accelerometer.

Author Contributions: P.A. wrote the manuscript and contributed to data analysis. A.S., H.G, M.M., and S.P. contributed to drafting the manuscript. P.A. and S.P. contributed to study design and supervising the study. All authors contributed in interpretation of results and critical revision of the study.

Funding: This work was funded by a grant from the United States Department of Veterans Affairs. The opinions, findings, and conclusions stated herein are those of the authors and do not necessarily reflect those of the United States Department of Veterans Affairs.

Conflicts of Interest:The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:

LSTM Long Short-Term Memory

Bi-LSTM Bidirectional Long Short-Term Memory AdaLSTM Adaptive Long Short-Term Memory ML Machine Learning

DL Deep Learning

(18)

References

1. Azuh, O.; Gammon, H.; Burmeister, C.; Frega, D.; Nerenz, D.; DiGiovine, B.; Siddiqui, A. Benefits of early active mobility in the medical intensive care unit: A pilot study. The American journal of medicine2016,

129, 866–871.

2. Hoyer, E.H.; Friedman, M.; Lavezza, A.; Wagner-Kosmakos, K.; Lewis-Cherry, R.; Skolnik, J.L.; Byers, S.P.; Atanelov, L.; Colantuoni, E.; Brotman, D.J.; others. Promoting mobility and reducing length of stay in hospitalized general medicine patients: A quality-improvement project.Journal of hospital medicine2016,

11, 341–347.

3. Neilson, J.; Avital, L.; Willock, J.; Broad, N. Using a national guideline to prevent and manage pressure ulcers.Nursing Management-UK2014,21.

4. Kloster, R.; Engelskjøn, T. Sudden unexpected death in epilepsy (SUDEP): A clinical perspective and a search for risk factors.Journal of Neurology, Neurosurgery & Psychiatry1999,67, 439–444.

5. Lee, M.; Choh, A.; Demerath, E.; Knutson, K.; Duren, D.; Sherwood, R.; Sun, S.; Chumlea, W.C.; Towne, B.; Siervogel, R.; others. Sleep disturbance in relation to health-related quality of life in adults: the Fels Longitudinal Study. The Journal of Nutrition, Health and Aging2009,13, 576–583.

6. Wrzus, C.; Brandmaier, A.M.; Von Oertzen, T.; Müller, V.; Wagner, G.G.; Riediger, M. A new approach for assessing sleep duration and postures from ambulatory accelerometry. PloS one2012,7, e48089.

7. Zhang, Z.; Yang, G.Z. Monitoring cardio-respiratory and posture movements during sleep: What can be achieved by a single motion sensor. 2015 IEEE 12th International Conference on Wearable and Implantable Body Sensor Networks (BSN). IEEE, 2015, pp. 1–6.

8. Kwasnicki, R.M.; Cross, G.W.; Geoghegan, L.; Zhang, Z.; Reilly, P.; Darzi, A.; Yang, G.Z.; Emery, R. A lightweight sensing platform for monitoring sleep quality and posture: A simulated validation study.

European journal of medical research2018,23, 28.

9. Austin, D.; Beattie, Z.T.; Riley, T.; Adami, A.M.; Hagen, C.C.; Hayes, T.L. Unobtrusive classification of sleep and wakefulness using load cells under the bed. 2012 Annual International Conference of the IEEE Engineering in Medicine and Biology Society. IEEE, 2012, pp. 5254–5257.

10. Pouyan, M.B.; Ostadabbas, S.; Farshbaf, M.; Yousefi, R.; Nourani, M.; Pompeo, M. Continuous eight-posture classification for bed-bound patients. 2013 6th International Conference on Biomedical Engineering and Informatics. IEEE, 2013, pp. 121–126.

11. Yousefi, R.; Ostadabbas, S.; Faezipour, M.; Farshbaf, M.; Nourani, M.; Tamil, L.; Pompeo, M. Bed posture classification for pressure ulcer prevention. 2011 Annual International Conference of the IEEE Engineering in Medicine and Biology Society. IEEE, 2011, pp. 7175–7178.

12. Cary, D.; Collinson, R.; Sterling, M.; Briffa, K. Examining the relationship between sleep posture and morning spinal symptoms in the habitual environment using infrared cameras. Journal of Sleep Disorders: Treatment & Care2016.

13. Lee, H.J.; Hwang, S.H.; Lee, S.M.; Lim, Y.G.; Park, K.S. Estimation of body postures on bed using unconstrained ECG measurements. IEEE journal of biomedical and health informatics2013,17, 985–993. 14. Chang, K.M.; Liu, S.H. Wireless portable electrocardiogram and a tri-axis accelerometer implementation

and application on sleep activity monitoring. Telemedicine and e-Health2011,17, 177–184.

15. Wai, A.A.P.; Huang, W.; Fook, V.F.S.; Biswas, J.; Chi-Chun, H.; Koujuch, L. Situation-aware patient monitoring in and around the bed using multimodal sensing intelligence. 2010 Sixth International Conference on Intelligent Environments. IEEE, 2010, pp. 128–133.

16. Huang, W.; Wai, A.A.P.; Foo, S.F.; Biswas, J.; Hsia, C.C.; Liou, K. Multimodal sleeping posture classification. 2010 20th International conference on pattern recognition. IEEE, 2010, pp. 4336–4339.

17. Lee, J.; Hong, M.; Ryu, S. Sleep monitoring system using kinect sensor. International Journal of Distributed

Sensor Networks2015,11, 875371.

18. Goodfellow, S.D.; Goodwin, A.; Greer, R.; Laussen, P.C.; Mazwi, M.; Eytan, D. Atrial fibrillation classification using step-by-step machine learning. Biomedical Physics & Engineering Express2018,4, 045005. 19. Fallmann, S.; van Veen, R.; Chen, L.; Walker, D.; Chen, F.; Pan, C. Wearable accelerometer based extended

(19)

20. Razjouyan, J.; Lee, H.; Parthasarathy, S.; Mohler, J.; Sharafkhaneh, A.; Najafi, B. Improving sleep quality assessment using wearable sensors by including information from postural/sleep position changes and body acceleration: a comparison of chest-worn sensors, wrist actigraphy, and polysomnography. Journal of

Clinical Sleep Medicine2017,13, 1301–1310.

21. Chang, L.; Lu, J.; Wang, J.; Chen, X.; Fang, D.; Tang, Z.; Nurmi, P.; Wang, Z. SleepGuard: capturing rich sleep information using smartwatch sensing data. Proceedings of the ACM on Interactive, Mobile, Wearable

and Ubiquitous Technologies2018,2, 98.

22. Jeng, P.Y.; Wang, L.C.; Hu, C.J.; Wu, D. A Wrist Sensor Sleep Posture Monitoring System: An Automatic Labeling Approach2019.

23. Mannini, A.; Sabatini, A.M. Machine learning methods for classifying human physical activity from on-body accelerometers. Sensors2010,10, 1154–1175.

24. Saeedi, R.; Schimert, B.; Ghasemzadeh, H. Cost-sensitive feature selection for on-body sensor localization. Proceedings of the 2014 ACM International Joint Conference on Pervasive and Ubiquitous Computing: Adjunct Publication. ACM, 2014, pp. 833–842.

25. Baskin, I.I.; Marcou, G.; Horvath, D.; Varnek, A. Bagging and boosting of classification models. Tutorials in

Chemoinformatics2017, pp. 241–247.

26. Fang, X.; Yuan, Z. Performance enhancing techniques for deep learning models in time series forecasting.

Engineering Applications of Artificial Intelligence2019,85, 533–542.

27. Lefebvre, G.; Berlemont, S.; Mamalet, F.; Garcia, C. BLSTM-RNN based 3D gesture classification. International conference on artificial neural networks. Springer, 2013, pp. 381–388.

28. Graves, A.; Mohamed, A.r.; Hinton, G. Speech recognition with deep recurrent neural networks. 2013 IEEE international conference on acoustics, speech and signal processing. IEEE, 2013, pp. 6645–6649. 29. Gamboa, J.C.B. Deep learning for time-series analysis.arXiv preprint arXiv:1701.018872017.

30. Sun, S.; Xie, Z. Bilstm-based models for metaphor detection. National CCF Conference on Natural Language Processing and Chinese Computing. Springer, 2017, pp. 431–442.

31. Kingma, D.P.; Ba, J. Adam: A method for stochastic optimization.arXiv preprint arXiv:1412.69802014. 32. Olguın, D.O.; Pentland, A.S. Human activity recognition: Accuracy across common locations for wearable

sensors. Proceedings of 2006 10th IEEE international symposium on wearable computers, Montreux, Switzerland. Citeseer, 2006, pp. 11–14.

33. Altun, K.; Barshan, B.; Tunçel, O. Comparative study on classifying human activities with miniature inertial and magnetic sensors. Pattern Recognition2010,43, 3605–3620.

34. Taborri, J.; Palermo, E.; Masiello, D.; Rossi, S. Factorization of EMG via muscle synergies in walking task: Evaluation of intra-subject and inter-subject variability. 2017 IEEE International Instrumentation and Measurement Technology Conference (I2MTC). IEEE, 2017, pp. 1–6.

35. Sokolova, M.; Lapalme, G. A systematic analysis of performance measures for classification tasks.

Information Processing & Management2009,45, 427–437.

36. Brodersen, K.H.; Ong, C.S.; Stephan, K.E.; Buhmann, J.M. The balanced accuracy and its posterior distribution. 2010 20th International Conference on Pattern Recognition. IEEE, 2010, pp. 3121–3124. 37. Ronao, C.A.; Cho, S.B. Human activity recognition using smartphone sensors with two-stage continuous

hidden Markov models. 2014 10th International Conference on Natural Computation (ICNC). IEEE, 2014, pp. 681–686.

38. Skarpsno, E.S.; Mork, P.J.; Nilsen, T.I.L.; Holtermann, A. Sleep positions and nocturnal body movements based on free-living accelerometer recordings: association with demographics, lifestyle, and insomnia symptoms.Nature and science of sleep2017,9, 267.

39. Fawaz, H.I.; Forestier, G.; Weber, J.; Idoumghar, L.; Muller, P.A. Data augmentation using synthetic data for time series classification with deep residual networks.arXiv preprint arXiv:1808.024552018.

40. DeVries, T.; Taylor, G.W. Dataset augmentation in feature space. arXiv preprint arXiv:1702.055382017. 41. Wang, J.; Chen, Y.; Gu, Y.; Xiao, Y.; Pan, H. SensoryGANs: An Effective Generative Adversarial Framework

Figure

Figure 1. The process of training feature-based ensemble trees and Deep LSTM classifiers.
Table 1. Extracted time-domain features. E(.) represents the expected value of the input variable.Functions min(.), max(.), mean(.), median(.), tan(.), size(.) compute the minimum, maximum, average,median, tangent, and size of an input vector.
Figure 2. (a) Visualization of accelerometer sensor positioning, and (b) activity prevalence for Class-Actdataset
Figure 3. Mean and standard deviation of the magnitude of the accelerometer sensor data for differentlying postures over all the subjects.
+7

References

Related documents

Therefore, this study suggests that additional support services need to be provided to previously unsuccessful online learners, while students who succeed online should be

In this regard, central banks may: (l)seek clarification of the times at which payment instructions become irrevocable and receipts become final in the

It has been found that the forward stepwise approach performs greedy optimisation in the sense that each time the best model term is greedily (where the least-squares estimation

It has been accepted for inclusion in DRU Workshop 2013 Presentations – Disaster Resistant University Workshop: Linking Mitigation and Resilience by an authorized administrator

In this paper, we tried to propose an organization model for self-organizing multi-agent system based on self-adaptation features to control emergence..

Latvian anti-money law regulation establishes: “virtual currency” – a digital representation of a value that may be digitally transmitted, stored or traded and function as an

In this pa- per, we propose a novel edit similarity learning approach ( GESL ) driven by the idea of ( ǫ, γ, τ )-goodness, which allows us to derive generalization guarantees using

The multiple compartments for the lake model are able utilize the structure of lakes to isolate particular biological processes to certain regions of the lake,