Next Article in Journal
A Novel Real-Valued DOA Algorithm Based on Eigenvalue
Next Article in Special Issue
Comparing Clothing-Mounted Sensors with Wearable Sensors for Movement Analysis and Activity Classification
Previous Article in Journal
Routing Schemes in FANETs: A Survey
Previous Article in Special Issue
Wearable Fall Detector Using Recurrent Neural Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Physical Workload Tracking Using Human Activity Recognition with Wearable Devices

Department of Electrical and Electronics Engineering, Universidad del Norte, Barranquilla 081001, Colombia
*
Author to whom correspondence should be addressed.
Submission received: 14 November 2019 / Revised: 11 December 2019 / Accepted: 13 December 2019 / Published: 19 December 2019
(This article belongs to the Special Issue Data Analytics and Applications of the Wearable Sensors in Healthcare)

Abstract

:
In this work, authors address workload computation combining human activity recognition and heart rate measurements to establish a scalable framework for health at work and fitness-related applications. The proposed architecture consists of two wearable sensors: one for motion, and another for heart rate. The system employs machine learning algorithms to determine the activity performed by a user, and takes a concept from ergonomics, the Frimat’s score, to compute the corresponding physical workload from measured heart rate values providing in addition a qualitative description of the workload. A random forest activity classifier is trained and validated with data from nine subjects, achieving an accuracy of 97.5%. Then, tests with 20 subjects show the reliability of the activity classifier, which keeps an accuracy up to 92% during real-time testing. Additionally, a single-subject twenty-day physical workload tracking case study evinces the system capabilities to detect body adaptation to a custom exercise routine. The proposed system enables remote and multi-user workload monitoring, which facilitates the job for experts in ergonomics and workplace health.

1. Introduction

According to the World Health Organization (WHO), the amount of workload can be a hazard at the workplace leading to work-related stress [1]. Having too much or too little to do at work is often an indication of bad time management that results on mental stress [1,2]. Mental stress affects the heart rate (HR) that in turns spreads its effects to other parts of the body [3]. Workload is a key factor in ergonomics to determine the adequate length and number of rest breaks for a given job, helping to reduce work-related stress [4]. However, the amount of physical workload is not necessarily determined by the length of a particular task, but by the quantity of energy required to complete it, and can also be reflected on the HR [5].
In consequence, works like [5] describe the importance of HR tracking in physical workload assessment. The authors of [5] perform a comparison between using absolute cardiac cost (ACC) and relative cardiac cost (RCC) to evaluate physical workload based on HR values during resting periods between activities. Similarly, Solé proposes in [6] an standardization for workload values based on RCC using the Chamoux [7] and Frimat [8] criteria, where the numeric workload scores are mapped into categories going from extremely hard to very light. These criteria allow a qualitative assessment of workload using only HR measurements.
A common element among the physical effort assessment systems is HR tracking. HR has a well-known relation with mental stress, as evidenced in [9,10,11,12]. The methods to obtain information about heart activity must be reliable and must allow their implementation using non-invasive devices to be relevant in practice. In [13], a comparison of HR signals coming from an electrocardiography (ECG) and a photoplethysmography (PPG) sensor establishes the reliability of PPG to obtain HR information. Additionally, the authors of [14] validate the use of a commercial HR monitor, which employs PPG to track HR waveforms during rest. A similar conclusion is found in [15] with a smartwatch. This validation of PPG-based HR tracking has led to developments that seek to strengthen HR monitoring on environments where sensor signals can be corrupted by body movements [16]. Despite of such possible corruption, other systems have been built with PPG sensors under movement conditions and have not displayed issues regarding performance [17,18,19].
Regarding physical workload, several methods for continuous track of the physical effort can be found in literature where qualitative data are not provided. For example, in [20] Jovanov et al. use a wireless body area network (WBAN) to monitor motion from on-body accelerometer and electrocardiography (ECG) sensors. Such a system intends to keep track of the physical activity and health status with non-invasive technology. Other works like [21,22,23,24] propose manually initiated recording of activities with data from HR trackers to measure the physical workload of a given population. Such a method is tested in [21,22,23,24] with salsa dancers, dockers, nurses and porters, respectively. Complementary, Jovanov et al. introduce real-time HR monitoring and step counting to track the work stress in nurses in [12]. Our previous work in [19] improves the method proposed in [21] by developing a mobile application that computes the workload during each activity performed by janitorial staff. In the case of [19] the system is manually initiated, as in [21,22,23,24], and allows only local monitoring, which requires the presence of an expert next to the worker. In most real-life scenarios, having an ergonomics expert all over the workplace is unfeasible.
To follow the tendencies on mobile-health applications, it is necessary to address the problem of workload assessment from a real-time perspective as suggested by [12]. Therefore, HR tracking must be integrated with real-time human activity recognition (HAR) or online HAR (according to [25]) to achieve workload assessment without requiring manual intervention to indicate the start and end of an activity. Some works have shown efforts to achieve this integration. For example, [26,27,28] exhibit systems that combine HR tracking and online HAR using on-body sensors and an integration device to receive and display the sensors information. The integration device, typically a smartphone, can take the place of a movement sensor [29]. Accordingly, [30,31,32] describe smartphone-based HAR systems along with their corresponding challenges regarding feature extraction and selection. However, these systems are highly dependent on the on-body location of the smartphone. On the other hand, accelerometer-based HAR architectures present robust performance regardless the sensor location and allow to distinguish among a wider range of activities compared to smartphone-based systems [26,33,34,35].
The robustness and reliability of HAR with accelerometers is reflected in the variety of the e-health applications where it is found. For example, [36] employs accelerometer-based HAR for posture recognition which helps to monitor falls in elderly people. Such an approach is also present in [37,38,39], which demonstrates the rising popularity of this application. Moreover, some developments related with sports and fitness complemented with HAR are shown in [40,41].
Thus from these previous works, it can be concluded that HAR is suitable as a key component for workload tracking. Nevertheless, the need of relevant implementations that integrate HR and HAR tracking and take it a step further to qualitative workload assessment remains a challenge from an ergonomic point-of-view. Consequently, the work described in this article presents a solution that embraces wearable technology and machine learning algorithms to compute physical workload in real-time. Our solution here combines the HAR and HR tracking to achieve a workload assessment that is linked automatically with the performed activity. Compared to our previous work in [19], this new system eliminates the need of an expert next to every single worker that is being tracked, since it enables remote and multi-user monitoring.
The rest of the paper is organized as follows. Section 2 describes the characteristics of the wearable devices implemented in this system, details the workflow of the mobile application, and displays how the system classifies the workload. Section 3 shows the development of the online HAR component and presents two cases of study to evaluate the online HAR performance and the physical workload assessment. Section 4 and Section 5 contain the discussion and conclusions regarding the results, respectively.

2. Materials and Methods

2.1. Wearable Devices and Mobile Application

The hardware for HAR comprises of an ultra-low power (ULP) microcontroller unit (MCU) with Bluetooth low energy (BLE) capability, an ULP MEMS (Micro Electro-Mechanical Systems) based accelerometer and a small Li-ion battery. The HAR hardware is displayed in Figure 1. The selected ULP MCU is the Lilypad Simblee, as used in [26]. The advantages of this device include small footprint (50 mm diameter), embedded BLE radio, and a battery charge controller. A 100 mAh Li-ion battery powers the Lilypad Simblee and can be recharged through a USB controller module [42]. This MCU samples the signal from a tri-axial accelerometer at a 20 Hz rate, as recommended in [25]. The accelerometer selection also follows the hardware used in [26], which is the ADXL335. This sensor allows us to obtain information from movement and inclination with a sampling frequency up to 50 Hz and an acceleration up to 2 g [43].
For the HR tracking, a Microsoft Band performs HR sampling with a built-in PPG sensor [44]. This wearable enables the tracking of other fitness-related variables such as sweating, arm movement and step counting, among others [44]. This device has been validated by different authors for HR monitoring [45,46]. For this work, we only required the HR sensor; and therefore, other sensors are deactivated to save energy. A specialized Software Development Kit (SDK) for Android devices permits the control of the Microsoft Band. This SDK can be found in [47]. We develop a mobile application that connects automatically to both sensors and has two operating modes: training mode and testing mode.
In training mode, the user interface (UI) asks for the activity that the user is going to perform from a list of predefined exercises (jogging, squatting, doing push-ups and doing crunches) and the average HR at rest to use it as a reference parameter for workload estimation. A 1-minute timer is used to standardize the length of the training sessions for the classification algorithms. The UI for this operation mode is displayed in Figure 2a. The application stores the incoming data from both sensors in a JSON (JavaScript Object Notation) array, expecting to have 20 samples of each accelerometer axis, the average HR within one second and a label representing the activity. Every second, the JSON array containing the sensor samples is sent to a cloud server for storage in a database. After taking training samples from nine subjects, a Python script retrieves the stored data along with its corresponding activity labels and trains a classification model using the scikit-learn library [48]. The details regarding training and validation are explained in the Section Results. Once the model is validated, the mobile application can function in the testing mode. In this mode, the sampling process from the sensors remains the same as in the training mode; however, the UI does not have any time restriction. Therefore, an array containing the samples from the tri-axial accelerometer is taken by a feature-computing function followed by the classification model and the average HR during activity passes through a workload estimator. Figure 2b shows the UI for the testing mode.

2.2. Physical Workload Computation

As [6] mentions, physical workload can be computed using metabolic consumption tables, oxygen consumption tables and HR measurements. However, HR measurements are the only non-invasive method, which allows the integration of wearable technology. In the literature, there are two criteria to evaluate HR-based workload: Frimat’s [8] and Chamoux’s [7]. In one hand, the Frimat’s criterion estimates workload on short work times or on specific activities; while, on the other hand, the Chamoux criterion computes the workload of a full workday (at least 8 h) [19]. For this work, the Frimat’s criterion is chosen since the target are fitness-related activities. The methodology used for physical workload computation is the same as in [19].
The selected method requires the computation of some cardiac indicators. The first one is the absolute cardiac cost (ACC) as defined by Equation (1),
A C C = H R a c t i v i t y H R r e s t ,
where HRactivity refers to the average heart rate during the activity and HRrest is the statistical mode of the HR values measured during resting periods. ACC allows the estimation of intensity for a given task. Another indicator, the relative cardiac cost (RCC) is derived from the ACC as shown in Equation (2).
R C C = A C C H R m a x H R r e s t × 100 .
RCC indicates the adaptation of the body to an activity.
In Equation (2), HRmax stands for the maximum achievable HR by a subject. The exact value of HRmax should be found in a stress test. However, [6] provides a theoretical definition, which can have up to 5% of error compared to the actual value. Such definition for HRmax depends on the subject age as stated in Equation (3),
H R m a x = 220 A g e .
Frimat’s criterion also needs the calculation of the cardiac acceleration (ΔHR) defined in Equation (4), and the mean heart rate ( H R ¯ ) within an arbitrary time window.
Δ H R = H R m a x HR ¯ .
Thus, once the five variables for Frimat’s criterion (ACC, RCC, HRmax, H R ¯ and ΔHR) are computed, each one of them is mapped into a corresponding Frimat’s coefficient, which takes an integer value between 1 and 5. Table 1 details the relation between the values of each indicator and their respective Frimat’s coefficient.
Then, the method requires to take the Frimat’s coefficient from each input variable and add them up to obtain a Frimat’s score, which ranges between 5 and 25. This score is the value that determines the level of physical workload of an activity. Following the ranking presented in [6], an activity can be ranked as shown in Table 2. During the implementation of the workload computation, the system takes the resting HR that must be previously measured and compares it with the average HR within one-second time windows to compute the five cardiac indicators needed to obtain the Frimat’s Score. This score was mapped to its corresponding category according to Table 2, accompanied with the label of the most recent activity.

3. Results

3.1. Training and Validation of the Activity Classifier

The implementation of the online HAR subsystem requires three critical steps: data collection, training and validation. To perform a reliable data collection, the selected activities must be clearly distinguishable from the sensor point-of-view and they should be related to a common set of tasks. For the sake of test subject availability, we selected a fitness routine, which includes jogging, doing crunches, push-ups and squatting. These activities are among the most common exercises performed by the local population. Since the workload assessment requires us to track the resting periods, standing still is also an activity into consideration. Additionally, to increase the system generalization capabilities, data collection must be done from heterogeneous sources, i.e., subjects with different anatomic characteristics and different styles to perform exercises. Thus, nine volunteer subjects (six men and three women) performed the four mentioned exercises during the same amount of time. The ages of the volunteers ranged between 19 and 32 years. At least four hours before each exercise session, volunteers did not drink substances that alter HR, such as: caffeine, alcohol, nicotine, etc. Five subjects exercise four times a week, while the other four subjects only exercise once in a week. Data was collected between Monday and Friday in the evening (18:00–20:00). Since exercises like push-ups and crunches are generally more physically demanding than jogging and squatting, we designed the sessions of the experiments to consist of one-minute part of exercise and three-minute part of resting. Hence, each volunteer performs at least four different sessions, one per exercise. To avoid unexpected short pauses during the exercising part of each session, hydration needs of the subjects are attended as required. These unexpected pauses would represent noise on the motion signals and can introduce undesired glitches in the training and validation datasets. Such glitches are unavoidable in the practice, but to guarantee the correct labeling of data, we asked subjects to reduce the pauses during exercises. Thus, to overcome this issue, subjects with better physical condition were asked to participate in more than one experiment. By the end of collection, the dataset for training and validation contained over 118,000 three-dimensional samples taken at 20 Hz from the hip-placed accelerometer.
Consequently, the dataset must be converted to a multidimensional space of features. The considered feature set was the same as in the previous work [26]. Thus, it is shown that the most relevant features are those summarized in Table 3.
This preselected feature set is the product of an extensive literature review about online HAR systems and the engineering process carried out in [26]. Table 3 describes each considered feature along with their corresponding symbol and meaning. Each one of the 15 mentioned features must be computed from a group of samples, and each array forms a feature vector; therefore, the sample-group size becomes a concern. The group size is named time-window size, since the number of samples required to calculate a feature vector is directly related to the amount of time that the system takes to gather the samples. From the real-time implementation perspective, this time-window size is critical to determine the system latency. Hence, the selected time-window size is one second considering that the perception of activity changes for different users is not immediate and there is the need of gathering enough data within a time window to allow a clear distinction between activities. Thus, the minimum delay for the classifier to detect a change of activities was one second, and each feature vector was computed using 20 samples, due to the sensor 20 Hz sampling frequency.
After setting the time-window size, the dataset was reduced to 5900 feature vectors approximately, each one associated to their respective activity label. Next, classification algorithms to train with this dataset were needed. According to [25], random forest (RF) and k-nearest neighbors (kNN) are the most common choices for online HAR applications. In the present work, both algorithms were used in order to compare their performance to select one for implementation.
RF algorithm is an estimator that separates the training dataset into subsets for a custom number of decision trees. These trees decide over their respective samples and then the estimator averages their decisions. On the other hand, kNN algorithm maps the feature vectors into a multidimensional space and separates them according to their labels. Then, an incoming sample was compared to its closest training samples (or neighbors), determined by an internal distance measure, and the incoming sample was assigned to the class of most of its neighbors.
Collected data from the volunteers was separated by assigning 70% to a training subset and 30% for a validation subset, following a proper data randomization to avoid underfitting. Then, RF estimators were trained varying the number of trees from 2 to 100, and kNN with the number of neighbors from 2 to 50. These values are chosen after noticing that there was not a significant improvement on overall accuracy by increasing the number of trees or neighbors, respectively. Best results show an overall accuracy of 97.7% for RF with 63 trees and 95.2% for kNN with five neighbors. The normalized confusion matrices for both algorithms are displayed in Figure 3. These confusion matrices evince the difference in the overall accuracies by exhibiting less confusion in crunches, push-ups and squatting for the RF algorithm compared to kNN. Such results were obtained using the validation subset. Consequently, optimization efforts were conducted towards RF.
A classifier optimization process is required to reduce dimensionality and, in the case of RF, reduce the number of decision trees. After such a process, validation of the optimized classifier should not show significant reduction on the performance metrics (overall accuracy and confusion matrix).
For dimensionality reduction, the level of importance that each feature has during training was analyzed. The importance levels considered here were equivalent to Gini importance, which is described in [49]. This importance was computed considering the decrease in average accuracy for the trained trees when a feature value was varied randomly. Thus, significant accuracy detriments point to the significant importance for a feature. In the case of the scikit-learn library, the feature importance levels are normalized. Figure 4 displays a bar graph of the feature importance. As observed, it was clear that y ¯ , MAD(y), MAD(z) and x ¯ y ¯ were the features with the lower significance; and therefore, we proceeded to remove them from the feature vectors. Even though further reduction in the number of features reduced the code size that would be embedded in the mobile application; extra reductions could also compromise the classifier performance. Thus, we decided to work with the new feature set of 11 features; but therefore, the model needs to be retrained with this new set.
Figure 5 shows the variation of classifier accuracy with respect to the number of trees, along with a dashed tendency line. According to the accuracy tendency line, after 20 trees, the classifier trended to a stable behavior. Consequently, the number of trees could be reduced to a value above 20 trees without sacrificing performance. In our tests, the overall accuracy with the validation subset changed from 97.7% with 63 trees to 97.5% with 24 trees, but with lower computational cost. Figure 6 exhibits the confusion matrix of this new model, where it could be observed that there was no performance compromise, which facilitated performing the classification directly on the mobile application.
The resulting model was exported from Python to Java using the Porter tool described in [50] given the requirements of the Android environment. Thus, the model converted into a Java class contains the mathematical description of the 24 decision trees and computes the average decision among them to estimate the corresponding activity. The mobile application includes a testing mode where it reports the true label of the activity performed during the experiment and the labels detected by the model, along with a user identification number and the time stamps of the samples. Thus, this working mode was used for the remaining tests described next.

3.2. Online HAR Performance

Once the classifier model was embedded in the mobile application, the model was tested in a real-time environment. For the test, 20 people, different from the nine volunteers who participated in the training data collection, were asked to participate in a new set of experiments. This time, people registered their age on the application along with the average heart rate obtained from the smartwatch on a preliminary 30-seconds resting period. Then, they wore the HAR device on the hip and performed the following exercise routine: push-ups, resting, jogging, resting, squatting, resting, crunches and resting. Each of these activities had a fixed duration of 30 s, which was set seeking a limitation of physical demand to avoid unexpected resting moments. Planned, 30-second resting moments were situated between exercises to help subjects to fulfill the routine without extreme fatigue. Along with each routine, a researcher manipulated the application to set the activity label manually as the subjects shifted from one activity to another. Meanwhile, the system reported to a cloud-stored database the labels obtained from the model, the labels entered manually, a system-custom user identification number and the time stamp.
After this data collection stage, the detected labels were compared against the manual labels to obtain the accuracy rate per activity and per user. Table 4 resumes the statistics of the accuracies from the testing stage. Figure 7 also shows the confusion matrix from online HAR testing. Although the validation accuracy was reported to be 97.5%, real-time tests had an average accuracy between 86% and 92% due to unexpected movements that induced noise for the classifier. Further details regarding the results of Table 4 and Figure 7 are given in the Section Discussion.

3.3. Case Study: Physical Workload Evolution on an Individual

This second case study set its focus on testing the workload estimator reliability. For this purpose, a 27-year-old healthy male subject volunteered to participate in a twenty-day experiment. The subject performed the same exercise routine every day, and its physical workload was recorded. In our system, the collection of workload data was linked to the activity recognition function in order to provide meaningful insights of physical performance. Then, the tests set-up implies that the subject must wear both devices during each session. Figure 8 shows how the subject wears the devices and evinces that they do not represent major discomfort. Before the first session, a preliminary exercising round reveals that crunches do not represent significant physical effort for the subject. Thus, the routine for each day is defined as follows: 15 s of resting to find the reference HR for workload estimation, followed by 60 s of push-ups, 60 s of jogging, 60 s of squatting and 60 s of resting. Then, the one-minute rounds are repeated three times.
The subject did not exercise regularly, which led to the expectation of high levels of workload on the first session and a progressive decline on the physical exigency on successive sessions, as the body adjusts to the exercise routine. The performance of the online HAR was also expected to be steady along the sessions, since the system was used by the same person. Due to the methodology of workload estimation, several Frimat’s scores can be obtained during a one-minute exercise round given the HR variations. However, the system maps those scores into the eight categories, reducing information sensitivity. After each session, a Python script retrieves the classified activities and the true label of activities for HAR assessment, and the workload categories for each activity. Consequently, this script found the statistical mode of the workload categories for an activity and set it as the estimated physical workload.
Figure 9 displays the resulting mean HR for push-ups, squatting and jogging, during each daily session. Figure 10 shows the Frimat’s score values assessment during the resting rounds at the end of each session. These workload values reflect the overall perception of the body of the subject after all the exercising rounds. Complementary, Table 5 resumes the online HAR performance for each session.

4. Discussion

This work introduced a system that combines real-time activity monitoring and physical workload estimation to allow remote tracking of workers in physically demanding jobs (as in our previous case study in [19]) and athletes for work health and fitness purposes, respectively. For a comprehensive assessment of system performance, two case studies were presented. The first one embraces the training, validation and real-time testing with 20 subjects of the human activity recognition component. The second case shows the evolution of physical workload for an individual over twenty days.
The training and validation results stood above 95% for overall classification accuracy, compared to previous studies, which also employed wearable devices as shown in Table 6. Critical parameters regarding real-time implementation were considered for comparison such as number of sensors, number of activities and accuracy.
The comparison in Table 6 allows us to locate the present work with an overall accuracy that is only surpassed by a system that only considers three activities and by our previous work in [26]. However, the only work from Table 6 that displays results of real-time tests is [30]. There, tests are 10 s long, compared to the 30 s tests of the present work. Reference [30] considers six test subjects, while our case study considered twenty. Hence, such a length and subject quantity difference can lead to errors in movement data, which makes the results shown in Table 4 generalizable to expected performance during real use.
Additionally, results in Table 4 and Figure 7 containing the average accuracy per activity and their respective standard deviation evinced the tendency of the system to keep a classification exactitude above 85%. However, tests on the first case study were carried by people who do not know the system nor where intensively introduced to its use. Instead, the explanation of the experiment was held short and they were asked to perform the exercises in the most natural way for them. Thus, there were some cases where the subjects took unexpected pauses or just trembled during the exercise, which introduced noise on the one-second time-windows of sampling and reflects on a reduction of the overall accuracy. Nevertheless, by observing at the maximum values, there was also evidence of cases where classification of the embedded model shows no incorrect estimations.
Regarding the second case study, it helps us to validate the reliability of the workload computation in real-time. This approach differs from other workload-related works like [21,22,23,24] where there is no real-time feedback. Instead, authors from [21,22,23,24] take activity and HR data manually and then compute the workload and categorize it. The proposed system does all this process automatically, facilitating the relationship between activity and physical effort, which takes relevance at the application field. The subject considered for the twenty-day experiment of the second case study performed a physically demanding routine that was evaluated as extremely hard at the end of the first ten days, according to Frimat’s criteria. However, a remarkable evolution in the perception of each activity by the subject is shown in Figure 9. In the first sessions, the system evaluated that each type of exercise was extremely hard for the subject, obtaining an average HR of 150 bpm, then in the last session these activities were classified as a light workload, obtaining an average HR of 95 bpm. As expected, the first exercise of the routine (push-ups) displayed the lowest workload amounts, since the body started to adapt to the routine. However, as the exercising round advances, the HR started to increase, which was reflected in higher workloads. Another evidence of the assimilation of the exercising routine was the change from Frimat’s scored values in the resting periods at the end of each session, as shown in Figure 10. Considering that the subject always performed the same exercise routine for twenty sessions (that is, there was no increase or variation in the load), a principle of adaptation is presented in the physical state of the subject [53,54,55]. As can be seen in Figure 9 and Figure 10, at the beginning of the sessions, the physical capacity of the subject was not enough for the established load, but as the exercise sessions increased, the body managed to adapt to that load.
Additionally, Table 5 shows the performance stability of the online HAR component during the second case study. The accuracies stood around 90% for the three activities, considering the fatigue effect on the subject movements. It also must be noticed that these experiments were longer than in the first case study and exhibited higher average accuracy; this is due to the lack of heterogeneity, which leads the system to be exposed to more similar movements each session. Thus, these results confirmed the reliability of the two components of our system for workload tracking purposes.
Finally, the contributions of this work are highlighted as follows:
  • We described the development of a smart physical workload tracking system that allows health and fitness professionals to monitor several people simultaneously and remotely, which is critical in manufacturing and sport industries. To the best of our knowledge, this solution integrating the physical workload concept has not been explored before.
  • We included a well-known concept from ergonomics (Frimat’s criteria) into a real-time e-health application. We achieved this by embedding the workload computation and activity classification on a mobile application, which integrates the signal from a hip-placed accelerometer and a wrist-placed PPG sensor. To the best of our knowledge, this approach has not been presented before.
  • We displayed tests with 20 people performing the same exercise routine. We trained the classification algorithms with data sampled from chosen volunteers; and then tested with a different set of subjects using the devised wearable device during an exercise routine, which comprises crunches, push-ups, squatting and jogging. The accuracy of the classifier was above 85% during real-time testing.
  • We showed the physical progress of a volunteer by tracking his/her physical workload for twenty days while he/she performed the same routine. This case study evidenced that Frimat’s score could provide enough information to determine the level of fitness progress of a person that intends to train using physically demanding exercises.

5. Conclusions

A physical workload tracking using human activity recognition and HR measurements with wearable devices was presented. The system used a hip-placed motion sensor and a wrist-placed photoplethysmography sensor for HR. The information from both sensors was gathered by a mobile application through BLE connections; then, performed activity recognition with a trained random forest model and computed physical workload using Frimat’s method. The activity classifier displayed a 97.5% accuracy during validation, and 92% accuracy during real-time tests with 20 subjects. In addition, a twenty-day experiment with a single subject who performed a custom exercise routine shows that the system could recognize the body adaptation to the physically demanding activities.
Future research directions point to a further study of the information relating physical workload and the activities performed. Given the reliability of the wearable-based activity classifier and the workload estimation method, new developments combining ergonomics and machine learning can be carried to predict the amount of physical effort that an activity can represent for a subject. Hence, this could lead to an injury prevention environment powered by historical information on a workplace or physically/mentally demanding tasks.

Author Contributions

Conceptualization, P.N. and J.M.; methodology, P.N.; hardware, J.M.; software, K.G., P.N. and J.M.; validation, J.M., and P.N.; writing—original draft preparation, J.M.; writing—review and editing, W.P. and M.P.; supervision, W.P.; project administration, M.P and W.P. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by Departamento Administrativo de Ciencia, Tecnología e Innovación (809-2018).

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. World Health Organization. Work Organisation and Stress; Protecting Workers Health Series; World Health Organization: Geneva, Switzerland, 2003; pp. 1–27. [Google Scholar]
  2. Caplan, R.D.; Jones, K.W. Effects of work load, role ambiguity, and type A personality on anxiety, depression, and heart rate. J. Appl. Psychol. 1975, 60, 713–719. [Google Scholar] [CrossRef] [PubMed]
  3. Taelman, J.; Vandeput, S.; Spaepen, A.; Van Huffel, S. Influence of mental stress on Heart Rate and Heart Rate Variability. In Proceedings of the 4th European conference of the international federation for medical and biological engineering (IFMBE), Antwerp, Belgium, 23–27 November 2008; pp. 1366–1369. [Google Scholar]
  4. Dababneh, A.J.; Swanson, N.; Shell, R.L. Impact of added rest breaks on the productivity and well being of workers. Ergonomics 2001, 44, 164–174. [Google Scholar] [CrossRef] [PubMed]
  5. De la Iglesia, A.; Gómez, J.; Sáenz, R.; Ruiz, C. Carga de trabajo físico y costo cardiaco: La freuencia cardiaca de referencia. Rev. Salud y Trab. 1994, 106, 16–21. [Google Scholar]
  6. Solé, M.D. NTP 295: Valoración de la carga física mediante la monitorización de la frecuencia cardiaca. Cent. Nac. de Cond. de Trab. 1991, 1, 1–6. [Google Scholar]
  7. Frimat, P.; Amphoux, M.; Chamoux, A. Interprétation et mesure de la fréquence cardiaque. Rev. de Med. du Trav. XV 1988, 147, 165. [Google Scholar]
  8. Frimat, P.; Furon, D.; Cantineau, A.; Delepine, P.; Six, F.; Luez, G. Le travail à la chaleur (verrerie). Etude de la charge de travail par ECG dynamique. Applications de la Méthode de VOGT. Arch. Mal. Prof 1979, 40, 191. [Google Scholar]
  9. Föhr, T.; Pietilä, J.; Helander, E.; Myllymäki, T.; Lindholm, H.; Rusko, H.; Kujala, U.M. Physical activity, body mass index and heart rate variability-based stress and recovery in 16 275 Finnish employees: A cross-sectional study. BMC Public Health 2016, 16, 701. [Google Scholar] [CrossRef] [Green Version]
  10. Choi, J.; Ricardo, G.O. Using heart rate monitors to detect mental stress. In Proceedings of the 2009 6th International Workshop on Wearable and Implantable Body Sensor Networks (BSN 2009), Berkeley, CA, USA, 3–5 June 2009; pp. 219–223. [Google Scholar]
  11. Rosa, B.M.G.; Yang, G.Z. Smart wireless headphone for cardiovascular and stress monitoring. In Proceedings of the 2017 IEEE 14th International Conference on Wearable and Implantable Body Sensor Networks (BSN), Eindhoven, The Netherlands, 9–12 May 2017; pp. 75–78. [Google Scholar]
  12. Jovanov, E.; Frith, K.; Anderson, F.; Milosevic, M.; Shrove, M.T. Real-time monitoring of occupational stress of nurses. In Proceedings of the 2011 Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Boston, MA, USA, 30 August–3 September 2011; pp. 3640–3643. [Google Scholar]
  13. Bolanos, M.; Nazeran, H.; Haltiwanger, E. Comparison of heart rate variability signal features derived from electrocardiography and photoplethysmography in healthy individuals. In Proceedings of the Annual International Conference of the IEEE Engineering in Medicine and Biology, New York, NY, USA, 30 August–3 September 2006; pp. 4289–4294. [Google Scholar]
  14. Gamelin, F.X.; Berthoin, S.; Bosquet, L. Validity of the polar S810 Heart rate monitor to measure R-R intervals at rest. Med. Sci. Sports Exerc. 2006, 38, 887–893. [Google Scholar] [CrossRef] [Green Version]
  15. Hendrikx, J.; Ruijs, L.S.; Cox, L.G.; Lemmens, P.M.; Schuijers, E.G.; Goris, A.H. Clinical Evaluation of the Measurement Performance of the Philips Health Watch: A Within-Person Comparative Study. JMIR mHealth uHealth 2017, 5, e10. [Google Scholar] [CrossRef] [Green Version]
  16. Khan, E.; Al Hossain, F.; Uddin, S.Z.; Alam, S.K.; Hasan, M.K. A Robust Heart Rate Monitoring Scheme Using Photoplethysmographic Signals Corrupted by Intense Motion Artifacts. IEEE Trans. Biomed. Eng. 2016, 63, 550–562. [Google Scholar] [CrossRef]
  17. Asada, H.H.; Shaltis, P.; Reisner, A.; Rhee, S.; Hutchinson, R.C. Mobile Monitoring with Wearable Photoplethysmographic Biosensors. IEEE Eng. Med. Biol. Mag. 2003, 22, 28–40. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  18. Aileni Raluca, M.; Pasca, S.; Strungaru, R. Heart rate monitoring by using non-invasive wearable sensor. In Proceedings of the E-Health and Bioengineering Conference (EHB), Sinaia, Romania, 22–24 June 2017; pp. 587–590. [Google Scholar]
  19. Narváez, P.; Manjarrés, J.; Percybrooks, W.; Pardo, M.; Calle, M. Assessing the Level of Physical Activity in the Workplace: A Case Study With Wearable Technology. Int. J. Interdiscip. Telecommun. Netw. 2019, 11, 44–56. [Google Scholar] [CrossRef] [Green Version]
  20. Jovanov, E.; Milenkovic, A.; Otto, C.; de Groen, P.C.; Johnson, B.; Warren, S.; Taibi, G. A WBAN System for Ambulatory Monitoring of Physical Activity and Health Status: Applications and Challenges. In Proceedings of the 2005 IEEE Engineering in Medicine and Biology 27th Annual Conference, Shanghai, China, 17–18 January 2005; pp. 4–7. [Google Scholar]
  21. Arana, T.; Velásquez, J.; Carvajal, R. Determinación de la capacidad y la carga física de trabajo en bailarines de una escuela de baile de la ciudad de Cali. Cienc. Salud 2013, 1, 11–16. [Google Scholar]
  22. Zapata, H.; Arango, G.L.; Estrada, L.M. Valoración de carga física en estibadores de una cooperativa de trabajo asociado. Rev. Fac. Nac. Salud Pública 2011, 29, 53–64. [Google Scholar]
  23. Romero, M.; Fernández, C.; Ballesteros, A. Evaluación de la carga física de trabajo, mediante la monitorización de la frecuencia cardíaca, en auxiliares de Enfermería de una residencia geriátrica municipal. Rev. Enfermería del Trab. 2011, 1, 193–202. [Google Scholar]
  24. Castillo, J.A.; Cubillos, Á. Using Pulse Rate in Estimating Workload: Evaluating a Load Mobilizing Activity. Rev. Cienc. la Salud 2014, 12, 27–43. [Google Scholar]
  25. 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]
  26. Manjarrés, J.; Russo, V.; Peñaranda, J.; Pardo, M. Human Activity and Heart Rate Monitoring System in a Mobile Platform. In Proceedings of the 2018 Congreso Internacional de Innovación y Tendencias en Ingenieria (CONIITI), Bogota, Colombia, 3–5 October 2018; pp. 1–6. [Google Scholar]
  27. Wang, Z.; Zhao, C.; Qiu, S. A system of human vital signs monitoring and activity recognition based on body sensor network. Sens. Rev. 2014, 34, 42–50. [Google Scholar] [CrossRef] [Green Version]
  28. Lara, Ó.D.; Prez, A.J.; Labrador, M.A.; Posada, J.D. Centinela: A human activity recognition system based on acceleration and vital sign data. Pervasive Mob. Comput. 2012, 8, 717–729. [Google Scholar] [CrossRef]
  29. Labrador, M.A.; Lara, O.D. Human Activity Recognition: Using Wearable Sensors and Smartphones, 1st ed.; CRC Press: Boca Raton, FL, USA, 2013; ISBN 3-540-30506-8. [Google Scholar]
  30. Jongprasithporn, M.; Yodpijit, N.; Srivilai, R.; Pongsophane, P. A smartphone-based real-time simple activity recognition. In Proceedings of the 2017 3rd International Conference on Control, Automation and Robotics (ICCAR), Nagoya, Japan, 24–26 April 2017; pp. 539–542. [Google Scholar]
  31. Prabowo, O.M.; Mutijarsa, K.; Supangkat, S.H. Missing Data Handling using Machine Learning for Human Acitivity Recognition on Mobile Device. In Proceedings of the 2016 International Conference on ICT For Smart Society, Surabaya, Indonesia, 20–21 July 2016; pp. 20–21. [Google Scholar]
  32. Quiroz, J.C.; Banerjee, A.; Dascalu, S.M.; Lau, S.L. Feature Selection for Activity Recognition from Smartphone Accelerometer Data. Intell. Autom. Soft Comput. 2017, 1–9. [Google Scholar] [CrossRef]
  33. Yazdansepas, D.; Niazi, A.H.; Gay, J.L.; Maier, F.W.; Ramaswamy, L.; Rasheed, K.; Buman, M.P. A Multi-featured Approach for Wearable Sensor-Based Human Activity Recognition. In Proceedings of the 2016 IEEE International Conference on Healthcare Informatics (ICHI), Chicago, IL, USA, 4–7 October 2016; pp. 423–431. [Google Scholar]
  34. Bulling, A.; Blanke, U.; Schiele, B. A tutorial on human activity recognition using body-worn inertial sensors. ACM Comput. Surv. 2014, 46, 1–33. [Google Scholar] [CrossRef]
  35. Long, X.L.X.; Yin, B.Y.B.; Aarts, R.M. Single-accelerometer-based daily physical activity classification. In Proceedings of the 2009 Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Minneapolis, MN, USA, 3–6 September 2009; pp. 6107–6110. [Google Scholar]
  36. Babu, A.; Dube, K.; Mukhopadhyay, S.; Ghayvat, H.; Mukhopadhyay, P.S. Accelerometer based human activities and posture recognition. In Proceedings of the 2016 International Conference on Data Mining and Advanced Computing (SAPIENCE), Medellín, Colombia, 16–18 May 2016; pp. 367–373. [Google Scholar]
  37. Liu, X.; Liu, L.; Simske, S.J.; Liu, J. Human Daily Activity Recognition for Healthcare Using Wearable and Visual Sensing Data. In Proceedings of the 2016 IEEE International Conference on Healthcare Informatics (ICHI), Chicago, IL, USA, 4–7 October 2016; pp. 24–31. [Google Scholar]
  38. Uddin, M.Z.; Hassan, M.M. Activity Recognition for Cognitive Assistance Using Body Sensors Data and Deep Convolutional Neural Network. IEEE Sens. J. 2018, 19, 8413–8419. [Google Scholar] [CrossRef]
  39. Lau, S.L.; König, I.; David, K.; Parandian, B.; Carius-Düssel, C.; Schultz, M. Supporting patient monitoring using activity recognition with a smartphone. In Proceedings of the 2010 7th International Symposium on Wireless Communication Systems (ISWCS’10), York, UK, 19–22 September 2010; pp. 810–814. [Google Scholar]
  40. Ahmadi, A.; Mitchell, E.; Richter, C.; Destelle, F.; Gowing, M.; O’Connor, N.E.; Moran, K. Toward automatic activity classification and movement assessment during a sports training session. IEEE Internet Things J. 2015, 2, 23–32. [Google Scholar] [CrossRef] [Green Version]
  41. Albinali, F.; Intille, S.; Haskell, W.; Rosenberger, M. Using wearable activity type detection to improve physical activity energy expenditure estimation. In Proceedings of the 12th ACM International Conference on Ubiquitous Computing, Copenhagen, Denmark, 26–29 September 2010; pp. 311–320. [Google Scholar]
  42. Simblee Corp. Simblee User Guide. 2016. Available online: https://cdn.sparkfun.com/datasheets/IoT/Simblee%20User%20Guide%20v2.05.pdf (accessed on 16 December 2019).
  43. Analog Devices ADXL335 Datasheet. 2009. Available online: https://www.analog.com/media/en/technical-documentation/data-sheets/ADXL335.pdf (accessed on 2 September 2019).
  44. Microsoft Microsoft Band Features. Available online: https://www.microsoft.com/microsoft-band/en-us/features (accessed on 30 August 2017).
  45. Stahl, S.E.; An, H.-S.; Dinkel, D.M.; Noble, J.M.; Lee, J.-M. How accurate are the wrist-based heart rate monitors during walking and running activities? Are they accurate enough? BMJ Open Sport Exerc. Med. 2016, 2, e000106. [Google Scholar] [CrossRef] [Green Version]
  46. Shcherbina, A.; Mattsson, C.M.; Waggott, D.; Salisbury, H.; Christle, J.W.; Hastie, T.; Wheeler, M.T.; Ashley, E.A. Accuracy in wrist-worn, sensor-based measurements of heart rate and energy expenditure in a diverse cohort. J. Pers. Med. 2017, 7, 3. [Google Scholar] [CrossRef]
  47. Microsoft Microsoft Band-Developers. Available online: https://developer.microsoftband.com/bandsdk (accessed on 2 September 2019).
  48. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine Learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
  49. Breiman, L.; Friedman, J.; Stone, C.J.; Olshen, R.A. Classification and Regression Trees; The Wadsworth and Brooks-Cole statistics-probability series; Taylor & Francis: Abingdon, UK, 1984; ISBN 9780412048418. [Google Scholar]
  50. Morawiec, D. Sklearn-Porter: Transpile Trained Scikit-Learn Estimators to C, Java, JavaScript and Others. Available online: https://github.com/nok/sklearn-porter (accessed on 2 April 2019).
  51. Wu, Y.; Qi, S.; Hu, F.; Ma, S.; Mao, W.; Li, W. Recognizing activities of the elderly using wearable sensors: A comparison of ensemble algorithms based on boosting. Sens. Rev. 2019, 39, 743–751. [Google Scholar] [CrossRef]
  52. Bhat, G.; Tuncel, Y.; An, S.; Lee, H.G.; Ogras, U.Y. An Ultra-Low Energy Human Activity Recognition Accelerator for Wearable Health Applications. ACM Trans. Embed. Comput. Syst. 2019, 18, 49. [Google Scholar] [CrossRef]
  53. Bellido, D.C. Teoría y Práctica del Entrenamiento Deportivo; Universidad de León: León, Spain, 2006. [Google Scholar]
  54. Bompa, T.O.; Buzzichelli, C. Periodization: Theory and Methodology of Training; Human Kinetics: Stanningley, UK, 2018. [Google Scholar]
  55. Crossley, J. Personal Training: Theory and Practice; Routledge: Abingdon, UK, 2013. [Google Scholar]
Figure 1. Human activity recognition hardware. The case allows the system to be worn on the hip.
Figure 1. Human activity recognition hardware. The case allows the system to be worn on the hip.
Sensors 20 00039 g001
Figure 2. User interface of the mobile application. (a) Training mode. (b) Testing mode.
Figure 2. User interface of the mobile application. (a) Training mode. (b) Testing mode.
Sensors 20 00039 g002
Figure 3. Normalized confusion matrices for: (a) random forest (RF) classifier and (b) k-nearest neighbor (kNN) classifier.
Figure 3. Normalized confusion matrices for: (a) random forest (RF) classifier and (b) k-nearest neighbor (kNN) classifier.
Sensors 20 00039 g003
Figure 4. Bar graph of the importance of the features in RF classifier.
Figure 4. Bar graph of the importance of the features in RF classifier.
Sensors 20 00039 g004
Figure 5. Variation of the overall accuracy with the number of trees in the RF classifier.
Figure 5. Variation of the overall accuracy with the number of trees in the RF classifier.
Sensors 20 00039 g005
Figure 6. Confusion matrix of the optimized RF classifier.
Figure 6. Confusion matrix of the optimized RF classifier.
Sensors 20 00039 g006
Figure 7. Confusion matrix from testing data.
Figure 7. Confusion matrix from testing data.
Sensors 20 00039 g007
Figure 8. Subject wearing the devices before exercising.
Figure 8. Subject wearing the devices before exercising.
Sensors 20 00039 g008
Figure 9. Physical workload tracking results for an individual after 20 days.
Figure 9. Physical workload tracking results for an individual after 20 days.
Sensors 20 00039 g009
Figure 10. Physical workload assessment after each session.
Figure 10. Physical workload assessment after each session.
Sensors 20 00039 g010
Table 1. Relation between Frimat’s coefficients and cardiac indicators.
Table 1. Relation between Frimat’s coefficients and cardiac indicators.
Frimat’s Coeffs. ValueVariable Ranges
ACC (bpm)RCC (bpm)HRmax (bpm) H R ¯ ( bpm ) ΔHR (bpm)
110–140.10–0.14110–11990–9420–24
215–190.15–0.19120–12995–9925–29
320–240.20–0.24130–139100–10430–34
425–290.25–0.29140–149105–10935–39
5>30>0.30>150>110>40
Table 2. Ranking of an activity according to its Frimat’s score.
Table 2. Ranking of an activity according to its Frimat’s score.
Frimat’s Score ValuesRanking
25Extremely hard
24Very hard
22–23Hard
20–21Distressing
18–19Bearable
14–17Light
12–13Very light
≤10Minimum workload
Table 3. Features considered for training.
Table 3. Features considered for training.
Feature nameSymbol per axisMeaning
Mean x ¯ , y ¯ , z ¯ Statistical tendency of a group of samples from the same axis
Standard deviationstd(x), std(y), std(z)Measure of variability of a group of samples from the same axis
Variancevar(x), var(y), var(z)Measure of variability of the squares of a group of samples from their corresponding mean
Mean absolute deviationMAD(x), MAD(y), MAD(z)Measure of variability of a group of samples from their corresponding mean
Difference of means x = y ¯ , y ¯ z ¯ , x ¯ z ¯ Difference between means of two different axes
Table 4. Representative statistics of the online human activity recognition (HAR) testing.
Table 4. Representative statistics of the online human activity recognition (HAR) testing.
Statistical ParameterAccuracy Percentages per Activity
RestingCrunchesPush-upsSquattingJoggingOverall accuracy
Average92.26%86.11%87.01%86.71%87.82%89.53%
Standard deviation3.34%7.89%4.90%7.53%6.47%3.19%
Maximum96.92%100.00%96.81%98.76%100.00%95.13%
Minimum84.22%65.95%75.24%70.73%76.96%82.69%
Table 5. Average accuracies of online HAR for the second case study.
Table 5. Average accuracies of online HAR for the second case study.
SessionActivity Classification Accuracy
Push-upsJoggingSquatting
194.53%90.36%91.38%
294.24%93.83%89.76%
393.03%91.73%88.53%
492.86%89.77%87.76%
589.53%84.20%90.73%
688.50%87.83%92.53%
788.95%89.17%92.67%
889.73%90.13%91.44%
990.64%90.13%91.43%
1091.78%92.60%90.14%
1192.13%91.27%90.74%
1292.16%90.66%91.03%
1391.06%90.46%92.80%
1489.73%90.36%90.03%
1592.63%90.93%91.56%
1692.36%91.43%91.03%
1791.66%89.43%92.23%
1891.23%90.44%90.26%
1990.96%91.27%89.43%
2089.66%90.13%93.03%
Average91.37%90.31%90.93%
Table 6. Online HAR comparison with previous studies.
Table 6. Online HAR comparison with previous studies.
ArticleNumber of Wearable SensorsNumber of ActivitiesValidation Accuracy
[26]11098.7%
[27]5994.8%
[28]1595.7%
[30]Smartphone398.6%
[51]1994.8%
[52]1895%
This work1597.5%

Share and Cite

MDPI and ACS Style

Manjarres, J.; Narvaez, P.; Gasser, K.; Percybrooks, W.; Pardo, M. Physical Workload Tracking Using Human Activity Recognition with Wearable Devices. Sensors 2020, 20, 39. https://0-doi-org.brum.beds.ac.uk/10.3390/s20010039

AMA Style

Manjarres J, Narvaez P, Gasser K, Percybrooks W, Pardo M. Physical Workload Tracking Using Human Activity Recognition with Wearable Devices. Sensors. 2020; 20(1):39. https://0-doi-org.brum.beds.ac.uk/10.3390/s20010039

Chicago/Turabian Style

Manjarres, Jose, Pedro Narvaez, Kelly Gasser, Winston Percybrooks, and Mauricio Pardo. 2020. "Physical Workload Tracking Using Human Activity Recognition with Wearable Devices" Sensors 20, no. 1: 39. https://0-doi-org.brum.beds.ac.uk/10.3390/s20010039

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