Biomedical Research

Journal Banner

Anomaly event detection for sit-to-stand transition recognition to improve mariner physical activity classification during a sea voyage

Ik-Hyun Youn1, Jong-Hoon Youn1, Jung-Min Lee2 and Chol-Seong Kim3*

1College of Information Science and Technology, University of Nebraska at Omaha, NE, USA

2School of Health, Physical Education and Recreation, University of Nebraska at Omaha, NE, USA

3Division of International Maritime Transportation Science, Mokpo National Maritime University, Korea

*Corresponding Author:
Chol-Seong Kim
Division of International Maritime Transportation Science
Collage of Maritime Affair
Jeollanam-do, Republic of Korea

Accepted on May 22, 2017

Visit for more related articles at Biomedical Research

Abstract

During a sea voyage, seafarers live on an unstable surface that demands unusual physical activity patterns. Previous studies recognized physical inactivity patterns in their special living environment. This study aims to develop a new sit-to-stand transition detection method based on physical activity classification models using wearable sensors to objectively assess the unstable physical activity patterns of seafarers. The sit-to-stand event detection was selected to improve the classification accuracy of the static activities including sitting and standing during the physical inactivity patterns. Anomaly detection was applied to handle imbalanced training data of sit-to-stand events. A single wearable sensor was attached in a chest pocket of the uniform to extract the upper trunk motion features such as body angle and dynamics. Two classification models with and without sit-to-stand event detection were developed and compared with each other to evaluate the efficacy of the sit-to-stand event detection in classifying the mariners’ physical activity. Our experimental results showed that the sit-to-stand event detectionbased model significantly improved the classification accuracy of static activities. We expect that the proposed model can be integrated into a continuous physical activity monitoring system for the objective assessment of mariner’s physical health in an unstable living environment.

Keywords

Seafarer’s physical activity classification, Sit-to-stand detection, Imbalance data training, Wearable sensor, Unstable living environment.

Introduction

Seafarers live in a special circumstance that is unstable and isolated during a sea voyage. It is important to understand seafarers’ unique lifestyle in the tough living conditions to maintain their physical health status [1,2]. Previous studies addressed that physical activity in an unstable living environment reinforced different characteristics of physical activities due to the ship’s motion in waves [3,4]. For example, walking on a ship at sea required significantly higher muscular efforts than the walking on a stable floor [5]. Unstable ship movement also triggered physical inactivity that was highly prevalent in seafarers [6-8]. It is important to have reliable physical activity assessments to gain a better understanding of seafarers’ physical activity patterns from their distinctive living and working environment.

Wearable inertial sensor-based approaches are frequently used physical activities in daily life [9]. Wearable sensor-based physical activity studies have been well investigated in various populations on land [10-12]. However, these studies may not be directly applicable for seafarers. This because wearable approaches for mariners needs to consider additional uncommon conditions such as dynamic ship’s motion and limited accommodation area. Due to the seafarer’s prevalent sedentary behavior, accurate classification between sitting and standing is more important than other daily activities. The two sedentary activities (i.e. sitting and standing) can be easily misclassified because upper trunk motion characteristics of both activities are fundamentally similar to each other. In this study, we assume that the Sit-To-Stand transition (STS) is a useful indicator for recognizing the transitions between sedentary behaviors (i.e. sitting-to-stand or stand-to-sit). Since the STS event duration is much shorter than that of other major physical activities, we apply an anomaly event detection algorithm to handle the imbalanced training data.

In brief, this paper proposes the STS detection-based seafarer physical activity classification method using a single wearable sensor. We developed two physical activity classification models (with and without the STS detection). The STS detection-based model is compared to a simple classification model without the STS detection. The following sections describe the details of the classification model development steps.

Methodology

Data collection

Nineteen subjects (n=19) participated in the experiment. All participants were apprentic es on the training ship of the Mokpo National Maritime University in Korea. Before commencing the experiment, participants provided self-reported characteristics. Detailed information of participants is shown in Table 1.

Characteristics Mean (Standard deviation)
n 19
Female/male 3/16
Age (y) 22.0 (0.7)
BMI (kg•m2) 22.9 (3.1)
Height (cm) 175.1 (7.7)
Weight (kg) 70.5 (13.0)

Table 1. Participant characteristics.

The accelerometer sensor was placed in the chest pocket of the uniform of participants to avoid interrupt of their ordinary physical activity patterns. In this study, the Shimmer 3 sensor was used that is a low power wireless sensor platform to collect 3-dimensional acceleration [13]. The sampling frequency of the wearable sensor was set at 100 Hz. All subjects conducted about 20 min of structured activities including lying, sitting, STS, standing, and walking. The detailed activity description is in Table 2.

Activity type Duration (s) Description
Lying 180 Lying on back and side
Break 60 Static with comfortable posture
Sitting 120 Sitting on a chair
Fast STS 2 Fast sit-to-stand within 2 s
Standing 120 Standing still
Fast STS 2 Fast stand-to-sit within 2 s
Sitting 120 Sitting on a chair
Slow STS 2 to 4 Slow sit-to-stand more than 2 s, less than 4 s
Standing 120 Standing still
Slow STS 2 to 4 Slow stand-to-sit more than 2 s, less than 4 s
Sitting 60 Sitting on a chair
Break 60 Static with comfortable posture
Walking 180 Walking at comfortable speed
Total duration About 900 Excluding breaks

Table 2. Activities undertaken in the experiment.

Feature extraction

The trunk orientation and motion of the subject were computed to describe the characteristics of each physical activity. The trunk orientation measures the tilted angle from the horizontal plane. Since the upper trunk can be tilted either anteriorposterior (i.e. pitch angle) or Medio-lateral direction (i.e. roll angle), the largest angle between two angles was taken as the trunk orientation from the gravity direction. The trunk orientation was defined by adapting the Euler angles on the horizontal plane [14].

The Trunk Angle (TA) estimations are shown in Equations 1 and 2. The Equations 1 and 2 are used to estimate the roll and pitch angles from the lateral- and vertical-direction acceleration. The pitch angle is obtained using the Equation 1.

θ=sin-1(ax/g) → (1)

Where ax is the lateral direction acceleration and g is the gravity. Then, the roll angle is calculated using the following equation:

=sin-1 (-ay/g cos θ) → (2)

Where ay is the antero-posterior direction acceleration and g is the gravity.

The trunk motion was described by the vector magnitude of acceleration. The upper trunk movement increased 3D acceleration Vector Magnitude (VM) of the wearable sensor. The vector magnitude was computed using the Equation 3.

equation

Where ax, ay and az are the lateral-, vertical-, and anterior direction accelerations, respectively. The mean of VM (mVM) and the standard deviation of VM (sdVM) were computed to measure dynamic movements of the upper trunk.

Classification model with imbalanced physical activity data

The four upper trunk motion features (i.e., roll, pitch, mVM, and sdVM) were applied to develop the seafarers’ physical activity classification models. To consider their unstable living condition, two models (i.e. with and without the STS detection) were developed. As shown in Figure 1, the 3D-acceleration showed the characteristics of each physical activity. Lying and walking activities showed apparently different patterns, whereas sitting and standing activities generated similar patterns each other. The misclassification of sitting and standing activities has been typical issues in sedentary behavior assessment using the wearable sensors (i.e., actigraph) [10-12].

biomedres-lying-sitting-standing

Figure 1: Acceleration patterns of five physical activities including lying, sitting, standing, STS, and walking.

The first simple classification model without the STS detection was trained using only four main physical activities (i.e. lying, sitting, standing, and walking). The decision tree classification was applied to the first classification model. Equally balanced training data was utilized for the training session. In the decision tree training, a decision tree is used as a predictive model. Branches in the decision tree model represented the combinations of upper trunk motion features that lead to those leaves, and the leaves represent physical activity classes [15].

In the second model, the STS event detection was chosen as an indicator of the transition of the sedentary behaviors regardless of the directions of the STS. The second classification model classified four main physical activities (i.e. lying, sitting, standing, and walking) and the STS events (i.e., STS and non- STS) in parallel. The STS event detection was used to improve the classification accuracy of the sedentary activities. As shown in the Table 2, the total STS event duration was less than 10 of 900 s (i.e. roughly 1% of total duration) on average. The imbalanced training data of the STS event was a key while training STS events. The Euclidean distances-based outlier clustering algorithm [16,17] was applied for the classification of the STS events from the dominant non-STS events. For the supervised anomaly event detection, non-STS activities were trained first and applied to classify STS events [18]. The five activities (i.e. including lying, sitting, standing, STS, and walking) were re-labeled either STS or non-STS so that STS could be considered as the anomaly events compared to all other non-STS labels. The outcomes of this process were used to modify uncertain sedentary activities. The strategy of the sedentary activity modification algorithm is summarized below:

Step 1) Training criteria of four physical activities by the decision tree model, and then go to Step 2

Step 2) Training only STS event criteria by labeling activity either STS or non-STS, then go to Step 3

Step 3) Classifying activity using trained criteria

Step 4) If lying or walking, determine an activity as it is, then go to Step 3 Else if sitting or standing activity, then go to Step 5

Step 5) Keeping a dominant activity and change a label as an unknown until the next STS, then Step 6

Step 6) Updating all unknown activity with the dominant static activity so far, then go to Step 3

Steps 5) and 6) improved classification accuracy by correcting any misidentified static activity using STS events.

Results

Among three static activities (i.e. lying, sitting, and standing), lying activity apparently differed from other two static activities. Walking also generated higher acceleration variations during the experiment. The four STS events (i.e., fast sit-to-stand, fast stand-to-sit, slow sit-to-stand, and slow stand-to-sit) showed the distinctive acceleration patterns from three static activities, while walking and the STS events showed the similar acceleration deviation.

STS event detection results

The STS events were trained after applying binary activity labels, such as STS and non-STS. Two fast STS events including fast sit-to-stand and fast stand-to-sit transitions were all correctly detected, whereas 2 of 38 slow STS events (i.e., slow sit-to-stand and slow stand-to-sit) were misclassified as walking. The misidentified slow STS events occurred when the subject was bent down to move forward at the beginning of the slow STS events. The upper body angle of the slow STS events generated similar upper body angles to sitting. Table 3 summarizes the STS event detection accuracy by proposed approach.

 Direction Tempo Accuracy (%)
Sit-to-stand Fast 100
Slow 94.7
Stand-to-sit Fast 100
Slow 94.7

Table 3. STS event detection accuracy for two tempos and directions using anomaly detection algorithm.

The efficacy of using the STS detection was evaluated by comparing the two models. Both models accurately classified lying and walking activities. The Non-STS model significantly misclassified the standing activity. 35.8% of standing activity was misclassified as sitting since the acceleration patterns of both sitting and standing were not clearly distinguished. The STS-based model substantially improved the classification accuracy of two static activities by taking the majority prediction vote in the case of unclear static activity labels. The prediction accuracy of sitting and standing of the STS-based model were 97.3 % and 94.7 %, respectively (Table 4).

Model True activity Correct activity prediction rate (%)
Lying Sitting Standing Walking
Non-STS model Lying 100 0 0 0
Sitting 0 88.6 9.4 2
Standing 0 35.8 59.2 4
Walking 0 2.2 3.2 94.6
STS-based model Lying 100 0 0 0
Sitting 0 97.3 2.2 0.5
Standing 0 3.9 95.7 0.4
Walking 0 2.2 3.2 94.6

Table 4. Seafarer physical activity classification results comparison between Non-STS model and STS-based model.

Discussions and Conclusion

We developed two classification models to compare the efficacy of the STS detection in the improvement of seafarer physical activity classification in the unstable living environment. The non-STS model is likely to misclassify between the two sedentary activities; sitting and standing. Grouping the number of sedentary activities by using the STS event greatly improved the classification accuracy on sitting and standing activities. The anomaly event detection approach to training the imbalanced data accurately recognized the different tempos (i.e. fast STS and slow STS) and the directions (i.e. sitting-to-stand or stand-to-sit) of the STS events. The results of the experimental study clearly supported that it was feasible to accurately monitor the mariner’s prevalent physical inactivity during a sea voyage.

Although the outcomes of the proposed model were promising, the results were limited to a given scenario. The STS-based unknown data enhancing process is desired to consider as representative physical activity pattern recognition models in a real-world setting. Also, the STS direction recognition such as sitting-to-stand and stand-to-sit needs to be investigated further to improve the proposed models.

References