Research Article - Biomedical Research (2017) Advances in Health Science and Biotechnology Application
Mariners' physical activity classification at sea using a wrist-worn wearable sensor
- *Corresponding Author:
- Teukseob Song
Division of Convergence Computer and Media
Mokwon University, Korea
Accepted date: September 22, 2017
A long-term sea voyage imposes a special living environment on mariners that directly influences their physical health. To our best knowledge, there have been few research efforts that evaluate mariners' physical health during sea life. This study aims to develop wearable-based mariner physical activity classification models. Twenty-eight participants (n=7 females, n=21 males, mean age=21.4, and mean BMI=22.9) wore a single accelerometer on their dominant hand. The wrist acceleration data were collected and analyzed to extract wrist motion features compared to the criterion measures (i.e., direct observation) including four major physical activity types in a maritime setting. Three machine learning algorithms were applied to develop an accurate classification model. The results of the criterion-based classification show that more than 95% of mariners’ daily physical activities were accurately classified. Based on the experimental results, we conclude that the wrist motion features efficiently differentiate major physical activity patterns in a maritime environment. The proposed physical activity classification models can be used as an objective measurement of mariners’ physical activity levels during their long voyage.
Mariner’s physical activity, Wrist acceleration, Machine learning, Physical activity classification model
Mariners in merchant marine vessels frequently engage in their duty for several months. Mariners work and live in unstable and limited accommodation areas during their entire voyage at sea [1,2]. A long voyage in an unstable living environment directly influences the physical health of mariners [3,4]. According to previous works [5,6], dynamic ship motions impose less physical activity levels on crew members. Therefore, objective measurements of the physical activity patterns of mariners are crucial for the assessment of physical health in the maritime population under unstable and constrained living conditions.
Recently, accelerometer-based physical activity assessments have been widely adapted to measure daily physical activities . A wearable sensor-based approach for daily activity classification is a viable alternative for seafarers due to their distinctive living conditions. A reliable assessment is required to continuously monitor mariners’ physical activity in a ship’s isolated living environment due to the higher rates of medical problems of mariners compared to age-matched peer groups . To improve wear-time compliance for an extended period including sleeping, placing an accelerometer on the wrist has become a trend in modern physical activity monitoring research [7,9,10]. Since the wrist motion is much more complex than the trunk movement, extracting appropriate wrist motion parameters from the collected wrist acceleration data is challenging but critical in developing an accurate physical activity classifier. Existing studies have extracted and used various wrist movement features (i.e., wrist movement and orientation features) to estimate aspects of physical activity from a wrist accelerometer measurement [11-16]. However, little information is available on classifying physical activity under unstable living conditions.
Therefore, the purpose of this study is to develop accurate wearable sensor-based physical activity classification models under unstable living conditions using wrist motion features. The proposed approach determines wrist movement characteristics using the roll and pitch angles of the wrist and the magnitude of the wrist movement. The extracted characteristics are then applied to predict the current wrist pose and motion features. In this study, a simple decision tree model for visual interpretation and two sophisticated models to improve classification outcomes were developed. The following sections explain the details of data processing and analysis in the proposed classification models.
A wrist-oriented sensor was chosen instead of an upper trunk attachment option because we hypothesized that the wrist motion might overwhelm a ship’s motion at sea . Any students who were older than 19 years of age were eligible to participate in this study, and participants who were able to perform activities of daily living without limitations were included in the study. Twenty-eight subjects (n=28) participated in the study. The participants were cadets on the training ship of Mokpo National Maritime University in Korea. The characteristics of participants are shown in Table 1.
|Age (y)||21.4 (1.1)|
|BMI (kg/m2)||22.9 (2.3)|
|Height (cm)||173.4 (6.5)|
|Weight (kg)||69.3 (10.8)|
Table 1. Participant characteristics.
A single Shimmer3  was attached to the dominant wrist with an elastic band. The sampling frequency of the wearable sensor was set at 100 Hz. Before initiating the experiment, the principal investigator explained selected activities in the study. During the experiment, the trained observer instructed each participant to perform the following activities and directly observed what the participant was doing without video recording. All subjects conducted structured activities including lying, sedentary activities, walking, and running. Based on the protocol used in the experiment, a minimum of 30 min was required to conduct all selected structured activities. Table 2 presents the selected structured activities in this study.
|Activity Type||Duration (min)||Description|
|Lying||8||4 lying poses on back, stomach, and both sides|
|Break||2||Standing still with comfortable arm positions|
|Sedentary||5||Sitting on a chair with natural arm movements|
|Break||2||Standing still with comfortable arm positions|
|Walking||5||Walking at comfortable speed on the ship’s main deck|
|Break||2||Standing still with comfortable arm positions|
|Running||5||Running at comfortable speed on the ship’s main deck|
|Break||1||Standing still with comfortable arm positions|
|Total Duration||30||Excluding breaks|
Table 2. Activities undertaken in the experiment.
We assume that there are distinctive wrist movements related to certain physical activities. The wrist orientation and wrist motion are estimated using the 3-dimensional acceleration data collected from a single wrist-worn accelerometer. We first extract distinctive features of wrist poses and motions from target daily activities and then apply machine learning algorithms to infer current activities of the subject based on the collected distinctive features. The roll and pitch angles of the sensor and the vector magnitude of the sensor acceleration are computed to assess the current wrist pose and motion. The wrist pose is defined by the Euler angles of the wrist rotation on the horizontal plane . The three-axis acceleration data from the sensor consist of three different types of acceleration: linear acceleration, rotational acceleration, and gravity. The three-axis acceleration of the wrist motion is written as follows:
where ax, ay, and az are sensor outputs that represent X-, Y-, and Z-axis acceleration, respectively; u̇, v̇, and ẇ represent linear acceleration; v, w, and u represent linear velocities; p, q, and r represent angular velocities; g is the gravity; and ϕ and θ represent the two Euler angles, roll and pitch, respectively .
We apply an approximation algorithm to obtain the roll and pitch angles when the absolute value of Vector Magnitude (VM) is between 0.8 and 1 g. If not, the acceleration samples are ignored.
Equations 1 and 2 show how to estimate the roll and pitch angles from the X- and Z-axis acceleration. The pitch angle is obtained using Equation 2.
where ax is the X-axis acceleration and g is gravity.
Then, the roll angle is calculated using the following equation:
where ay is the Y-axis acceleration and g is gravity.
The standard deviation of VM is also used to determine the wrist motion. VM is commonly utilized in previous studies to explain wrist motions [7,9,11]. VM statistics are intended to describe how dynamically the wrist changes its pose during physical activity. Since we assume that typical wrist pose and motion might be related to a certain physical activity, we attempt to describe distinctive wrist movement patterns of four major physical activity of mariners by using the three wrist movement features. Therefore, during physical activity, static wrist poses are identified by roll and pitch angles, and dynamic wrist motions are detected by the standard deviation of VM. Wrist movement features were computed by using custom software developed in the MATLAB 9.0 (Mathworks, Natick, MA) environment.
Physical activity classification models
A simple decision tree model is selected for the visual interpretation of the model. Then, sophisticated algorithms based on the K-Nearest Neighbors algorithm (KNN) and Support vector machine algorithm (SVM) are implemented to maximize the classification accuracy for fundamental physical activities including lying, sedentary activities, walking, and running. We first introduce three simple decision tree classification models with two of three features to visually evaluate the efficacy of the wrist motion features. As shown in Figure 1, different physical activities are associated with different wrist motion features. For example, running and walking activities form two dense clusters along the vector magnitude axis. The clusters represent how wrist pitch angles are nearly parallel to the horizontal position; roll angles are closer to vertical and to the horizontal plane, whereas lying and sedentary activities show a wide range of wrist roll and pitch angles. From observation, we might expect that walking and running activities can be discriminated from static activities (i.e., lying and sedentary) by using the VM. However, classification of two static activities might require more complex boundaries since some parts of each activity are overlapped with others.
Three wrist movement features (i.e., pitch angle, roll angle, and standard deviation of the vector magnitude) are depicted in Figure 1 for four daily activities. Along the vector magnitude axis in Figure 1, two active activities (i.e., running and walking) are clearly separated from static activities. However, the boundary between sedentary behavior and lying down is not clearly distinguished.
Simple decision tree model: A simple decision tree scheme is used for the interpretation of the proposed model. The four activity categories are defined by the decision tree algorithm. The decision criteria of the model at each step are shown below.
Step 1: If VM<0.085, then go to Step 2.
Else if VM ≥ 0.085, then go to Step 3.
Step 2: If Pitch<-10.514, then the current state is ‘Sedentary’.
Else if Pitch ≥ -10.515, then go to Step 4.
Step 3: If VM<0.328, then the current state is ‘Walk’.
Else if VM ≥ 0.328, then the current state is ‘Run’.
Step 4: If VM<0.002, then the current state is ‘Lie’.
Else if VM ≥ 0.002, then the current state is ‘Sedentary’.
The accuracy of the simple decision tree model for the four physical activities is 88.7% on average. Although the simple model resulted in confusion between lying down and sedentary behaviors, the model reliably predicted each physical activity by providing interpretable decision boundaries using the three wrist movement features.
Sophisticated KNN and SVM classification models: To improve the accuracy of the simple decision tree-based activity classification, we introduce two fine-tuned models. The prediction accuracies of the KNN model for liying, sedentary, walking, and running activities are 96.3, 94.8, 96.1, and 98.6%, respectively. The SVM model also predicts activities with a similar level of accuracy. KNN and SVM improve the prediction accuracies by adding more classification boundaries for lying down and sedentary activities. Table 3 summarizes the classification performance of the three developed classification models.
|Model||True Activity||Correct Activity Prediction Rate (%)|
|Simple Decision Tree||Lie||73.1||26.2||0.7||0|
Table 3. Classification performance by simple decision tree model, KNN model, and SVM model.
Discussions and Conclusion
In the study, we proposed a wearable sensor-based method to classify mariners’ physical activities at sea. The study was conducted on the selected training ship, which has the same physical living conditions of the maritime population. Because there are typically fewer than twenty crews on a single ship, it is difficult to have a statistically substantial number of participants on a single merchant marine vessel. This study selected a training ship at a maritime university since the ship has more than one hundred student trainees aboard. Compared to the standardization procedures for physical activity classification systems , the protocol of this study fulfilled the validity requirements by providing participants’ information, measurement specifications, target physical activities, and classification algorithms. The developed classification models in this study were focused on the fundamental activities including lying, sedentary activities, walking, and running. Although the fundamental activities were not detailed enough to explain the more complicated physical activities of the maritime population, by using the proposed physical activity classification models, we expect the proposed system will enhance the quality of life and healthcare of mariners by providing valuable information such as the total sleep duration and sedentary behavior duration during their sea lives.
According to the results of these experiments, the wrist orientation described by roll and pitch angles from the horizontal position was particularly effective in differentiating the four major physical activities, even in relatively unstable atmospheric conditions. The results of the study confirmed that the selected wrist motion features effectively captured the differences in major physical activities of crews aboard. The results reflected the previously published observations that wrist orientations are important variables to determine levels of physical activities and locomotion from stable physical activities . The efficacy of the three extracted wrist movement features was evaluated using the simple decision tree model with decision criteria. Moreover, since the simple decision-based model is straightforward and simple, the model can be easily implemented in any wrist-based wearable device. The KNN and SVM models further improved the accuracy of the simple decision-based physical activity classification model for mariners at sea. Nevertheless, improved classification results are promising to classify physical activity in unstable conditions. The proposed physical activity classification models can be used as an objective measurement of mariners’ physical activity levels during their long voyage. We expect that the proposed method can be expanded to identify distinct types of sedentary behaviors, such as reading and typing while sitting, by estimating the wrist orientation and motion features. The proposed approach is still limited to healthy young mariners on a ship. As a future work, we will expand the proposed method to identify various types of sedentary behaviors, such as reading and typing while sitting, by integrating new wrist orientation and motion features with diverse populations.
This research was supported by the Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Education (NRF-2015R1- D1A1A01058786).
- Scovill SM, Roberts TK, McCarty DJ. Health characteristics of inland waterway merchant marine captains and pilots. Occupational Med 2012; 62: 638-641.
- Hjarnoe L, Leppin A. Health promotion in the Danish maritime setting: challenges and possibilities for changing lifestyle behavior and health among seafarers. BMC Public Health 2013; 13: 1165-1172.
- Xia SY, Zhang K, Shang W, Xing M, Chen L. Psychological and physiological effects of a long voyage on female seamen in China. Int J Clin Exp Med 2016; 9: 7314-7321.
- Bevil CA, O'Connor PC, Mattoon PM. Leisure activity, life satisfaction, and perceived health status in older adults. Gerontol Geriat Edu 1994; 14: 3-19.
- Oldenburg M, Harth V, Jensen HJ. Overview and prospect: food and nutrition of seafarers on merchant ships. Int Marit Health 2013; 64: 191-194.
- Lefkowitz RY, Slade MD, Redlich CA. Injury, illness, and work restriction in merchant seafarers. Am J Industrial Med 2015; 58: 688-696.
- Crouter SE, Flynn JI, Bassett DR. Estimating physical activity in youth using a wrist accelerometer. Med Sci Sports Exerc 2015; 47: 944-951.
- Andruskiene J, Barseviciene S, Varoneckas G. Poor Sleep, Anxiety, depression and other occupational health risks in seafaring population. Int J Marine Navigat Safety of Sea Transport 2016; 10: 19-26.
- Mannini A, Intille SS, Rosenberger M, Sabatini AM, Haskell W. Activity recognition using a single accelerometer placed at the wrist or ankle. Med Sci Sports Exerc 2013; 45: 2193-2199.
- Zhang S, Rowlands AV. Physical activity classification using the genea wrist-worn accelerometer. Med Sci Sports Exerc 2012; 44: 742-748.
- Staudenmayer J, He S, Hickey A, Sasaki J, Freedson P. Methods to estimate aspects of physical activity and sedentary behavior from high-frequency wrist accelerometer measurements. J Appl Physiol 2015; 119: 396-403.
- Lawther A, Griffin MJ. The motion of a ship at sea and the consequent motion sickness amongst passengers. Ergonomics 1986; 29: 535-552.
- Eric Tseng H, Xu L, Hrovat D. Estimation of land vehicle roll and pitch angles. Vehicle Syst Dynamics 2007; 45: 433-443.
- Lindemann U, Zijlstra W, Aminian K, Chastin SF, de Bruin ED, Helbostad JL, Bussmann JB. Recommendations for standardizing validation procedures assessing physical activity of older persons by monitoring body postures and movements. Sensors 2014; 14: 1267-1277.
- Doherty A, Jackson D, Hammerla N, Plötz T, Olivier P, Granat MH, White T, van Hees VT, Trenell MI, Owen CG, Preece SJ, Gillions R, Sheard S, Peakman T, Brage S, Wareham NJ. Large-scale population assessment of physical activity using wrist-worn accelerometers: The UK Biobank Study. PloS one 2017; 12: e0169649.