<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Fatigue Estimation through Multimodal Data Retrieved from a Commercial Wearable Device</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Andrea Caroppo</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Anna Maria Carluccio</string-name>
          <email>annamaria.carluccio@imm.cnr.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Gabriele Rescio</string-name>
          <email>gabriele.rescio@cnr.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andrea Manni</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alessandro Leone</string-name>
          <email>alessandro.leone@cnr.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>National Research Council of Italy, Institute for Microelectronics and Microsystems, Via per Monteroni c/o Campus Universitario Palazzina A3</institution>
          ,
          <addr-line>Lecce</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Continuous advancements in sensor technology and the miniaturization of electronic chips have encouraged the exploration and development of wearable device applications. The objective estimation of human fatigue is among the problems that have been recently researched. Existing technological solutions have in the past mainly performed in laboratory settings and using sensors and/or stationary diagnostic equipment requiring the involvement of medical personnel. Consequently, this makes such solutions unfeasible difficult to deploy within application scenarios such as work and home environments and consequently of limited dissemination due to costs. This paper presents a hardware/software platform based on a commercial and low-cost wearable device that combines heart rate monitoring and real-time posture/walking speed classification, the latter obtained through the application of supervised machine learning methodologies. According to the literature, the implemented algorithmic pipeline distinguishes different fatigue levels through pre-established decision rules, usually used as a simple expert system in artificial intelligence, whose output is a score (between 0 and 10) computed from discrete heart rate values and classified activity level. The findings of the preliminary experiments show promising results in the estimation and classification of the intermediate multimodal data used to obtain the score, with a low average error expressed in terms of Mean Absolute Error (4.6 bpm) and Root-Mean-Square Error (6.8 bpm) for heartbeat estimation and high accuracy regarding posture/walking speed classification (about 97.3%).</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Wearable sensor</kwd>
        <kwd>posture classification</kwd>
        <kwd>photoplethysmography</kwd>
        <kwd>machine learning</kwd>
        <kwd>fatigue estimation</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Fatigue is a subjective feeling of tiredness with gradual onset, which usually leads to a slow
reaction of the human body and its thoughts. It is a common issue reported by older adults
(4060 % of the elderly population), very frequently encountered in general medical practice [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. It
often serves as a symptom of underlying psychiatric or medical conditions, including cancer,
heart disease, depression, chronic lung disease, hypothyroidism, multiple sclerosis, and
rheumatoid arthritis. Additionally, medical treatments such as radiation or chemotherapy can
lead to fatigue, which is often a major cause of disability in patients with significant illnesses.
      </p>
      <p>
        However, in many cases involving older individuals, it is difficult to identify a specific
physiological or psychological cause for fatigue. In such instances, fatigue becomes a syndrome
that elderly must manage in their daily activities. Despite efforts, there is no known specific
biological marker or definite cause for fatigue in elderly making it a complex and not fully
understood complaint [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>
        Despite its prevalence and impact on people's health, the term 'fatigue' lacks a universally
accepted definition. For example, one reference describes fatigue as a fluctuating state between
alertness and sleepiness [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], while another defines it as a state of the muscles and central nervous
system in which prolonged physical or mental activity without adequate rest results in an
      </p>
      <p>0000-0003-0318-8347 (A. Caroppo); 0009-0009-1431-4653 (A. M. Carluccio); 0000-0003-3374-2433 (G. Rescio);
0000-0001-5716-5824 (A. Manni); 0000-0002-8970-3313 (A. Leone)
© 2023 Copyright for this paper by its authors.</p>
      <p>Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).</p>
      <p>
        CEUR Workshop Proceedings (CEUR-WS.org)
inability to maintain the initial level of activity or processing [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Furthermore, another source
defines fatigue as a reduced ability or motivation to work accompanied by feelings of tiredness
and sleepiness [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. However, they all concur that fatigue is linked to a lack of activity and
motivation. Researchers commonly differentiate between acute and chronic fatigue. Acute fatigue
results from a single cause, occurs in healthy individuals, is considered normal, sets in quickly,
and is of short duration. In contrast, chronic fatigue is associated with multiple, cumulative, or
unknown causes, occurs independently of activity or exertion, and is typically resistant to
common treatments [
        <xref ref-type="bibr" rid="ref6 ref7">6,7</xref>
        ]. Fatigue can be also categorized into two main types: physical fatigue,
which involves muscular exhaustion and a decrease in physical performance, and mental fatigue,
characterized by cognitive weariness, reduced attention, concentration, or motivation. The
relationship between these two types of fatigue is complex and varies across different clinical and
non-clinical populations [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. Fatigue also causes a significant reduction in workers' productivity,
leading to an increase in errors, and even serious accidents becoming precursor to many illnesses
and injuries.
      </p>
      <p>For all the reasons outlined above, there is clear interest from the scientific community in
automated monitoring systems that can provide automatic feedback on the level of fatigue an
end-user is subjected to. Existing technological solutions for this purpose are generally based on
the use of wearable sensors/devices.</p>
      <p>
        For example, an accurate and widely developed methodology for fatigue estimation, which can
detect the onset of fatigue at an early stage, is the use of electroencephalograms (EEGs). EEGs
signals are employed to monitor different brain waves that can be linked to fatigue, using several
frequency bands such as alpha (8–13Hz), beta (13–35Hz), theta (4–7Hz), and delta (0.5–4Hz)
waves. The disadvantage of using EEGs is the hardware itself, which is quite a complex and
expensive device that often requires special assistance to operate, usually impractical for many
field scenarios [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. Other techniques used to estimate fatigue include the analysis of muscle
signals through electromyograph (EMG) signal analysis and the evaluation of vital signs such as
heartbeat/heart rate (HR), blood pressure (BP) and blood oxygen saturation (SpO2). It is well
known for example that typical signs of physical load and fatigue increase HR and decrease SpO2
[
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. Also, the widespread use of wearable sensors in sports, everyday life or field work has
enabled the collection of large amounts of physiological information. According to recent studies,
the collected biomarkers related to sleep, physical activity or HR have been shown to be
correlated with fatigue, making them a natural fit for the application of automated data analysis
using Machine Learning (ML). In this research area, fatigue estimation models were designed and
implemented, based on motion, EEG, EMG, photoplethysmogram (PPG), electrocardiogram (ECG),
galvanic skin response (GSR), skin temperature, eye movement and respiration data collected by
wearable devices available on the market. Supervised ML models, and more specifically binary
classification models, predominate among the proposed approaches for fatigue quantification.
Although these models are considered to perform very well in detecting fatigue, little effort has
been made to ensure the use of high-quality data during model development [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. For example,
the authors of [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] present a human fatigue assessment system that can detect different types of
fatigue (physical and mental) using different devices, including a headband, chest strap,
smartphone, and video camera. These devices can be used individually or in combination
depending on the type of fatigue to be detected. A multimodal evaluation system is used to
process the different biological signals (EEG, R-R intervals, EMG, EEG) from the different devices,
and an expert system is used to evaluate the level of mental and physical fatigue. On the other
hand, a novel ML-based approach is proposed in [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. Here, the fatigue level is estimated with
biomarkers collected by popular wearable fitness trackers. The developed method can
successfully predict fatigue symptoms in end-users based on the hypothesis that human fatigue
can be correlated with some common biomarkers such as sleep activity and HR. The work
compared several ML algorithms for the identification of these hidden patterns, with fully
connected neural networks that reached the best results.
      </p>
      <p>
        According to the literature, HR is the most used physiological parameter for assessing a
subject's level of fatigue. It was used also as an effective means of determining the physiological
stress of workers in applied field situations, as described in [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] where an automatic stress
detection platform designed to be effective in a real work context was proposed. The platform
signals in an automatic way if the worker was stressed trough the combined analyses of HR, GSR
and RGB images, using the information provided by ambient and wearable commercial sensors.
HR has also been evaluated to assess fatigue in other fields, since previous studies have shown
that there is a relationship between physical fatigue and several HR metrics such as heart rate
variability (HRV) and heart rate reserve (HRR) [14].
      </p>
      <p>In addition to HR, the use of physical activity level to estimate fatigue is widely investigated in
scientific research. Accelerometric signals integrated on board different types of wearable
sensors are generally used for this purpose. In [15], the review of the wide range of accelerometer
sensor positioning, activities identified using accelerometers and the methods used show
promise in the efficacy of these methods for detecting and preventing fatigue. The authors of [16]
examined whether the associations between physical activity levels and fatigue vary by body
mass index and physical performance, and whether substituting sedentary time with low light,
high light, and moderate to vigorous physical activity was associated with better mean fatigue
scores. For this purpose, the physical activity level was estimated using a hip worn GT3X
accelerometer.</p>
      <p>
        Because the literature shows that it is possible to estimate fatigue using physical activity level
and HR, the idea is to combine the two previous high-level information achieved using the
commercial wearable device introduced in [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] and extracting useful information for fatigue level
score (FLS) estimation. The proposed solution aims to address the limitations of previous
methods by developing a hardware/software platform which implements ML for an automatic
classification of human postures and walking activity at different speeds, in addition to the
implementation of an algorithmic pipeline for HR estimation. These high-level information are
combined in an expert system based on decision rules that return a fatigue score. The main
advantages of the proposed solution are: 1) its usability in different environments (even in a
typical living environment such as the home), 2) its low cost which allows it to be widely
disseminated and 3) its non-invasive nature facilitating the natural performance of activities of
daily living. This makes it easily acceptable to users, especially the elderly. This study represents
a promising step towards a more accessible, convenient, and comfortable method for fatigue
estimation.
      </p>
      <p>The structure of the paper is as follows. Section 2 reports the hardware description and the
algorithmic details of the designed and implemented pipeline. Section 3 presents preliminary
results obtained during an experimental session performed under controlled laboratory
conditions, while conclusions and further developments are summarized in Section 4.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Materials and Methods</title>
      <p>This section begins with a description of the commercial wearable device used for the
development of our proposed hardware/software platform. Following this, a detailed description
of the algorithmic steps designed and implemented for estimating FLS from the sensor used is
given.</p>
      <sec id="sec-2-1">
        <title>2.1. Hardware description</title>
        <p>The commercial wearable sensor employed for the acquisition of the raw data is the portable
ShimmerGSR+ sensor [17], attested on a back band as shown in Figure 1. The device is well suited
for long-term monitoring, as exhibits a low degree of invasiveness since it is lightweight (about
30gr) and very small (65×32×12 mm). It is also equipped with a low-power wireless (Bluetooth)
connection for data transmission and with an EEPROM memory for data storage, whereas the
battery life in streaming mode is about 8 h. It is important to underline that the sensor has been
validated for use in biomedically oriented research applications. It permits to acquire the
following signals: acceleration along x, y, and z axes, GSR, orientation and height estimation, PPG
and angular rate. For the classification of the user’s posture/walking speed only the integrated
tri-axial accelerometer was considered. It measures the acceleration referred as Earth’s gravity
“g” force (9.81 m/s2) and it is DC coupled. Thus, it is possible to evaluate both accelerations under
static and dynamic conditions along the three axes. HR, on the other hand, was assessed using the
optical pulse-detection probe that is supplied with the Shimmer device and connected to the
wearable sensor via a 3.5-mm jack.</p>
        <p>The wearable system introduced in this work was designed with the aim of having a low
degree of interference with the daily life of the monitored end-user. For this purpose, its
positioning on the body was designed to favor an accurate reading of the raw signals used for
fatigue estimation. A careful analysis of the state of the art has shown that the positioning of an
accelerometer sensor on the human body heavily influences the correct classification of postures
or activities such as walking [18]. For example, placing an accelerometer on the thigh can help
distinguishing sitting and standing, but the discrimination between sitting and lying down is a
problem. On the other hand, an accelerometer on the chest can distinguish sitting and lying down
posture but has problems with standing and sitting. As a result, the focus for the present work is
the positioning on the shoulder, as it allows for less cumbersome monitoring and is less prone to
disturbance due to the movement of specific body parts. The correct placement of the device for
acquiring the PPG signal was also assessed. Following the analysis of the relevant scientific
literature and considering the most suitable locations for monitoring this signal, the one closest
to the shoulder was chosen to allow the HR to be assessed with a single device. In view of these
considerations, it was decided to perform the measurements on the earlobe, which has been
shown to produce good PPG waveforms.</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Proposed pipeline</title>
        <p>The input of our proposed pipeline is represented by raw PPG signal and raw acceleration data
along x, y, and z axes. The first signal is acquired with a sampling frequency of 50Hz, while the
acceleration values are acquired with a full scale in the range of 2g and a sampling frequency
always equal to 50Hz, which is sufficient to identify four main human postures (Sitting, Standing,
Bending and Lying down) and to distinguish three different walking speed (low, medium, and
high speed). These values are sent in real time to a processing unit on which the software is
installed. The latter, through a block of data pre-processing, feature extraction and classification,
returns high-level processed information (discrete HR values and labels related to posture or
classified walking speed). Finally, the software implements decision rules based on different
combinations of the previously processed data. Figure 2 illustrates the proposed algorithmic
pipeline.</p>
        <p>The following two subsections describe in detail the algorithmic steps implemented for HR
estimation through analysis of raw PPG signal, and activity level classification combining raw
accelerometers data. Finally, the last subsection explains the decision rules adopted by the
software module in the pipeline designed to return the FLS.</p>
      </sec>
      <sec id="sec-2-3">
        <title>2.2.1. HR estimation</title>
        <p>The estimation of the discrete HR value from the raw PPG signal was carried out with the help of
Neurokit2 [19], a Python toolbox for neurophysiological signal processing, widely used by the
scientific community for this purpose. The algorithmic steps implemented to obtain the discrete
heartbeat value are described below. Before pre-processing, to achieve realistic values of HR, it is
necessary to filter out the acquired raw PPG signal to remove frequencies that are unrealistic for
human heartbeat. Consequently, a 3rd order Butterworth bandpass filter was applied. It removes
components which exist outside the following frequency band [0.75Hz – 3.5Hz] corresponding to
[45bpm – 210bpm]. Next, an additional second-order zero-phase Butterworth filter with a
bandwidth of 0.5-8 Hz is applied to the obtained signal [20]. This procedure cleans the raw PPG
signal removing the high frequencies that do not contribute to the systolic peaks. The HR
estimation is finally obtained from the extraction of the systolic peaks detected in the cleaned
signal, applying the following formula:</p>
        <p>HR = 60 ∗
In the proposed pipeline, to minimize disturbances in the detection of peaks due to respiration,
the algorithm described in [21] was implemented. The methodology is based on frequency
analysis for signal conditioning, and on the computation of an adaptive threshold method for peak
point detection, the latter able to detect both bottom and top of the PPG waveform.</p>
        <p>A normalization procedure was also provided to manage the data correctly and reduce errors
in detection due to psychophysical variations in different users. The purpose is to measure HR
while the user is in a resting condition. For this purpose, the baseline of PPG signals was
calculated as the average of data acquired for 30 s, during the first phase of each data collection
trial, in which the user is not subjected to any external stimulus. The baseline value was then used
to normalize the preprocessed acquired signals.</p>
      </sec>
      <sec id="sec-2-4">
        <title>2.2.2. Activity classification</title>
        <p>After the acquisition of raw acceleration data, the first implemented algorithmic step involves a
signal pre-processing phase with the primary objective of reducing electrical/environmental
noise to obtain data in a format suitable for the subsequent data processing steps. To this end,
firstly, acceleration data on three axes (Accelx, Accely and Accelz) are read from the device worn
by the user during data collection and converted into gravitational units to represent acceleration
data in the range ±2g. This allows the angle  of the chest inclination to be extracted and avoids
having too different orders of magnitude during the subsequent processing steps. Next, a
lowpass filter of order 8 and cut-off frequency of 10 Hz is applied to the raw signals to eliminate noise.</p>
        <p>The pre-processing phase of the accelerometric data also includes a calibration procedure, to
check the correct positioning of the wearable sensor and to store the starting setting downstream
of the device placement, all with the aim of correctly manipulating the pre-processed data. The
check consists of verifying that the values measured on the two acceleration axes are orthogonal
to g, i.e., they have a value close to zero, less than established tolerance interval. Following this
procedure, three acceleration values are stored and used in the subsequent processing steps to
derive the initial sensor positioning conditions. The data thus pre-processed are used for the
feature extraction phase. The purpose of this phase is to obtain relevant information from the
accelerometric signals useful for posture and walking speed assessment. Several time domain
and time–frequency domain features utilized in biomedical applications for monitoring the
human posture and walking activity were investigated for this study [22-24]. In our proposed
framework, features extracted in the time domain are
mainly evaluated to reduce the
computational cost and execution time. These features are calculated for each acceleration axis
within a sliding window of 300ms, with an incremental window of 50ms. To reduce the
complexity of signal processing and improve system performance, the Lasso feature selection
method, suitable for supervised systems, is applied [25]. Through this technique, the following
features are selected and computed: mean absolute value, variance, dynamic acceleration change,
static acceleration change, kurtosis, and skewness. Table 1 shows the calculation formulas
applied for each considered feature.
Features selected by Lasso method for subsequent classification step</p>
        <sec id="sec-2-4-1">
          <title>Feature</title>
        </sec>
        <sec id="sec-2-4-2">
          <title>Mean absolute value</title>
        </sec>
        <sec id="sec-2-4-3">
          <title>Dynamic acceleration change</title>
          <p />
        </sec>
        <sec id="sec-2-4-4">
          <title>Static acceleration change</title>
          <p>(</p>
        </sec>
        <sec id="sec-2-4-5">
          <title>Kurtosis</title>
        </sec>
        <sec id="sec-2-4-6">
          <title>Skewness</title>
          <p>Formula

∑ =1 |
(
_</p>
          <p>∑ =1(</p>
          <p>∑ =1(</p>
          <p>) − 
 ) − 
 ∗ 
 ∗ 

|
(
(
 −  )4
 −  )3
 )
_
 )</p>
          <p>For the classification of the human postures and three different walking speed, the extracted
features are used to train and compare various ML algorithms, widely used in the relevant
scientific literature for the classification topic considered in this paper. The ML classifiers
compared include the Support Vector Machine (SVM), Naive Bayes (NB), Logistic Regression (LR),
K-Nearest Neighbors (KNN), and Random Forests (RF). Following a series of experiments
performed in laboratory settings (specifically, the protocols described in detail in the 'Result'
section), the highest classification accuracy results are obtained with the RF classifier.</p>
          <p>RF classifier [26] is a supervised classifier based on an ensemble of decision trees. The
ensemble of trees is training by the bagging method. Merging the classification of the ensemble
of the decision trees improves the overall classification performance. Different hyper-parameters
associated with the RF classifier can be optimized to maximize the classification accuracy. These
parameters are the number of decision trees, the maximum number of features to split the node,
and the minimum number of leaves to split the node. In our proposed approach, the well-known
technique “grid search” [27] was applied to obtain the optimal value of the following parameters:
the number of decision trees (fixed to 29), the maximum and minimum number of features to
split the node (set to 8 and 26, respectively). The last algorithmic step simply involves defining
three activity levels (low, medium, high) according to the following association with the classified
postures and walking speed levels:
•
•
•
•
•
•</p>
        </sec>
      </sec>
      <sec id="sec-2-5">
        <title>Walking low speed, &lt; 1.5 km/h</title>
      </sec>
      <sec id="sec-2-6">
        <title>Walking medium speed, 1.5 km/h – 3.0 km/h</title>
      </sec>
      <sec id="sec-2-7">
        <title>Walking high speed, &gt; 3.0 km/h</title>
      </sec>
      <sec id="sec-2-8">
        <title>2.2.3. Fatigue estimation module</title>
        <p>Low Activity Level: Sitting, Standing, Bending, Lying down, Walking low speed
Medium Activity Level: Walking medium speed</p>
        <p>High Activity Level: Walking high speed</p>
        <p>For the definition of the three different levels of walking speed, analyzing the scientific
literature relating to the measurement of the user's Energy Expenditure (and related Metabolic
Equivalent Task - MET) with respect to activities of daily living performed [28], it was agreed to
define them by measuring the following speed values:
 (i) =</p>
        <p>X</p>
        <p>Y</p>
        <p>= 208 − 0.7 ∗ 
The last algorithmic block of our proposed pipeline implements pre-established production rules
(usually used as a simple expert system in artificial intelligence) to compute of FLS. Specifically,
HR values and classified activity levels are combined for fatigue estimation. A production rule
generally consists of two parts: IF part and THEN part. The structure can be of three different
types since it depends on the number of the input variables in the conditions and the number of
output variables in the conclusions: 1) SISO (a structure with Single Input – Single Output); 2)
MISO (a structure with Multi Inputs – Single Outputs); 3) MIMO (a structure with Multi Inputs –
Multi Outputs). In the present work, MISO structure is adopted, with the following generic
definition of production rule:
where R(i) represents the rule i, X is the antecedent of the rule i, and Y is the consequent. Since
we have adopted MISO, the input X is composed of two components (xa and xb), where xa is the
classified activity level whereas xb is a percentage value calculated from the ratio of the estimated
HR value to the end-user's maximum heart rate (FCmax). For the calculation of the latter quantity,
the well-known Tanaka formula was used [29], in which the value of FCmax is obtained using the
following formula which only considers the age of the end-user:
(2)
(3)</p>
        <p>Table 2 reports all the implemented rules. The first column details the activity level while the
second column shows a percentage value obtained from the ratio of the estimated HR value to
the end-user's maximum heart rate value. The third column reports the FLS that the rule assigns,
and finally the fourth column provides a definition of the fatigue level according to Borg CR10
scale, a Category-Ratio (CR) scale anchored at number 10, representing an extreme intensity of
activity. It is a general intensity scale with special anchors to measure exertion and pain [30]. The
choice of such a scale for the explication of rules is motivated by the fact that it has a high
correlation with the end-user's HR, and it could be also easily used as ground-truth for future
developments of the implemented platform.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Results</title>
      <p>For the validation of the proposed hardware/software platform for fatigue estimation, a series of
experiments were conducted in the “Smart Living Technologies Laboratory” located in the
Institute of Microelectronics and Microsystems (IMM) in Lecce. Specifically, 11 end-users were
involved in the trial. Some characteristics of them are specified below: average age of 68.6 years
(standard deviation equal to 2.4 years), average weight of 66.7 kg (standard deviation equal to
11.3 kg) and average BMI of 24.6 (standard deviation equal to 3.8).</p>
      <p>Each end-user was asked to participate in three data collection sessions (referred to as
Session1, Session2, Session3 from now, see Table 3 for details) with different durations and
posture/activity sequences, after wearing the shoulder band as shown in Figure 1. Each
acquisition session lasted between 6 and 7 minutes and involved the following postures and
walking activity in different sequences and durations: Standing (ST), Sitting (SI), Bending (BE),
Lying down (LY), Walking low speed (W_LS), Walking medium speed (W_MS), Walking high
speed (W_HS). To reduce overfitting, 3 trials of each session were performed.</p>
      <p>The raw data acquired by the wearable device were transmitted via Bluetooth protocol to an
embedded PC with Intel core i5 and 8 GB of RAM, on which it was installed the software
implemented for fatigue estimation. Figure 3 shows the user interface implemented in the Python
programming language.</p>
      <p>It is important to emphasise that the output of the implemented software is based on decision
rules whose levels have been defined through a specific scale of values derived from the
literature. The same hw/sw platform, however, also guarantees its operation with different
decision rules that may have been defined by medical specialists, and which express, for example,
a more limited number of fatigue levels. Since it was not possible to have a ground truth of the
fatigue level in the preliminary phase of the present validation, in this section the results obtained
with respect to the quantities involved in the decision rules are presented.</p>
      <p>To evaluate the performance of HR estimation from raw PPG, Mean Absolute Error (MAE) and
Root-Mean-Square Error (RMSE) were calculated for each subject recording, considering a
commercial pulse oximeter as ground truth. Table 4 reports the results obtained for each
acquisition session performed, averaged out for the whole cohort:</p>
      <p>The MAE and RMSE values shown in the table provide confirmation of the effectiveness in HR
measurement of the implemented pipeline. Higher values of the metrics used can be seen at
Session1, in which more walking activities were included. Furthermore, the variance values
reported in brackets show that this solution is robust with respect to age and physical size of the
observed subject.</p>
      <p>To evaluate the performance of the algorithmic pipeline designed and implemented to
estimate the end-user's posture and walking speed level, accuracy (ACC) and Cohen’s Kappa (K)
were calculated. These metrics are the most widely used by the scientific community in the case
of a multi-class classification problem. Accuracy measures the proportion of correctly classified
cases from the total number of objects in the dataset. To compute the metric, the number of
correct predictions has to be divided by the total number of predictions made by the model. On
the other hand, Cohen’s Kappa is a statistical measure of inter-rater agreement for categorical
data. It takes into account both the number of agreements and the number of disagreements
between the raters, and it can be used to calculate both overall agreement and agreement after
chance has been taken into account.</p>
      <p>To reduce classification bias, a 10-cross-validation was applied. It involves dividing the
available data into 10 folds or subsets, using one of these folds as a validation set (10% of data),
and training the model on the remaining folds (90% of data). This process is repeated each time
using a different fold as the validation set. Finally, the results from each validation step are
averaged to produce a more robust estimate of the model’s performance. Table 5 shows the
obtained performance in terms of ACC and K in accordance with the three previously introduced
data collection sessions. Reported values were obtained by calculating the average of the metrics
considered on all users involved in the experimentation stage.</p>
      <p>Excellent classification accuracy through RF was obtained in all three experimental sessions,
with lower results obtained in Session 1 in which there were more walking phases. Also, the K
values obtained (always higher than 0.81) correspond to a perfect agreement between the
instance’s true label and the one predicted by the selected classifier.</p>
      <p>Generally, the only metrics presented in Table 4 could not be exhaustive when it is intended
to assess classification performance for more than two classes. To overcome this limitation, in
Figure 4, the confusion matrices of the average accuracies obtaining at varying of acquisition
session are reported.
(c)
Figure 4: Confusion matrices for seven classes of posture and walking activities for each
considered acquisition session</p>
      <p>The confusion matrices reported for each session show that the most accurately classified
postures are BE and LY, while the most confused are SI and ST. Finally, it is evident that the lowest
accuracy is in classifying the different walking speeds, but this may also be due to an incorrect
measurement of speed as it is not constant over time</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusion</title>
      <p>In this paper, a preliminary study was proposed based on the development of a
hardwaresoftware platform capable of estimating the fatigue level. A fatigue level score was obtained with
the help of a wearable sensor that is readily available on the market, which allows the realization
of an integrated system that can be used directly at home. The high-level information extracted
through the algorithmic pipeline allows for real-time monitoring of both the heartbeat and
activity level of the end-user. In addition, the combination of this information, through the
implementation of decision rules, makes it possible to provide medical personnel with an
automatic fatigue monitoring system, which is useful, for example, in preventing the onset of
disorders or problems, whether they occur within a working environment or within a living
environment (i.e., the home). A very important result achieved relates to a high accuracy
obtained, through ML methodology, with respect to the recognition of human postures and
walking speed, a topic still open in the scientific literature in this field.</p>
      <p>A possible future development of this work may concern, for example, the extraction of other
vital parameters (i.e., SpO2) from the same wearable device, with the aim of having a more
extensive input data set that can lead to the definition of a more precise fatigue level. In addition,
a further future development may be to apply artificial intelligence, through the application of ML
or deep learning (DL), directly to the set of high-level data extracted from the sensor, avoiding in
this case the implementation of decision-making rules.
[14] F. Nasirzadeh, M. Mir, S. Hussain, M. Tayarani Darbandy, A. Khosravi, S. Nahavandi, B. Aisbett,
Physical fatigue detection using entropy analysis of heart rate signals. Sustainability, 12(7),
2714 (2020). doi.org/10.3390/su12072714
[15] K. Gonzalez, F. Sasangohar, R. K. Mehta, M. Lawley, M. Erraguntla, Measuring fatigue through
heart rate variability and activity recognition: A scoping literature review of machine
learning techniques, In Proceedings of the human factors and ergonomics society annual
meeting (Vol. 61, No. 1, pp. 1748-1752). Sage CA: Los Angeles, CA: SAGE Publications (2017).
doi.org/10.1177/1541931213601918
[16] O. Zaslavsky, Y. Su, E. Rillamas-Sun, I. Roopsawang, A. Z. LaCroix, Accelerometer-measured
physical activity levels and fatigue in older women. Journal of Aging and Physical Activity,
28(5), 692-698 (2020). doi.org/10.1123/japa.2019-0308
[17] Shimmer3 GSR+ Unit, URL: https://shimmersensing.com/product/shimmer3-gsr-unit/
[18] I. Cleland, B. Kikhia, C. Nugent, A. Boytsov, J. Hallberg, K. Synnes ... &amp; D. Finlay, Optimal
placement of accelerometers for the detection of everyday activities. Sensors, 13(7),
91839200 (2013). doi.org/10.3390/s130709183
[19] D. Makowski, T. Pham, T., Z. J. Lau, J. C. Brammer, F. Lespinasse, H. Pham, C. Schölzel, S.A.</p>
      <p>Chen, NeuroKit2: A Python toolbox for neurophysiological signal processing, Behavior
Research Methods, 53(4), 1689-1696 (2021). doi.org/10.3758/s13428-020-01516-y
[20] M. Elgendi, On the analysis of fingertip photoplethysmogram signals, Current Cardiology</p>
      <p>Reviews 8: 14–25 (2012). doi.org/10.2174/157340312801215782
[21] H. S. Shin, C. Lee, M. Lee, Adaptive threshold method for the peak detection of
photoplethysmographic waveform. Computers in biology and medicine, 39(12), 1145-1152
(2009). doi.org/10.1016/j.compbiomed.2009.10.006
[22] V. K. Sinha, K. K. Patro, P. Pławiak, A. J. Prakash, Smartphone-based human sitting behaviors
recognition using inertial sensor, Sensors, 21(19), 6652 (2021). doi:10.3390/s21196652.
[23] G. Aiello, A. Certa, I. Abusohyon, F. Longo, A. Padovano, Machine Learning Approach towards
Real Time Assessment of Hand-Arm Vibration Risk, In Proceedings of the 17th IFAC
Symposium on Information Control Problems in Manufacturing INCOM 2021, Budapest,
Hungary, 7–9 June 2021; pp. 1187–1192 (2021). doi:10.1016/j.ifacol.2021.08.140.
[24] L. Donisi, G. Cesarelli, N. Pisani, A. M. Ponsiglione, C. Ricciardi, E. Capodaglio, Wearable
Sensors and Artificial Intelligence for Physical Ergonomics: A Systematic Review of
Literature, Diagnostics 2022, 12, 3048 (2022). doi:10.3390/diagnostics12123048.
[25] R. Muthukrishnan, R. Rohini, LASSO: A feature selection technique in predictive modeling for
machine learning, In Proceedings of the 2016 IEEE International Conference on Advances in
Computer Applications (ICACA), Tamilnadu, India, 24–24 October 2016; pp. 18–20 (2016).
doi:10.1109/ICACA.2016.7887916.
[26] L. Breiman, Random forests, Machine learning, 45, 5-32 (2001).
[27] P. C. Bhat, H. B. Prosper, S. Sekmen, S., &amp; C. Stewart, Optimizing event selection with the
random grid search, Computer Physics Communications, 228, 245-257 (2018).
doi.org/10.1016/j.cpc.2018.02.018
[28] B. E. Ainsworth, W. L. Haskell, M. C. Whitt, M. L. Irwin, A. M. Swartz, S. J. Strath, ... &amp; A. S. Leon,
Compendium of physical activities: an update of activity codes and MET intensities, Medicine
and science in sports and exercise, 32(9; SUPP/1), S498-S504 (2000).
[29] H. Tanaka, K. D. Monahan, D. R. Seals, Age-predicted maximal heart rate revisited. Journal of
the american college of cardiology, 37(1), 153-156 (2001).
[30] G. Borg, G, Borg's perceived exertion and pain scales, Human kinetics (1998).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>M.</given-names>
            <surname>Torossian</surname>
          </string-name>
          , &amp;
          <string-name>
            <surname>C. S. Jacelon</surname>
          </string-name>
          ,
          <article-title>Chronic illness and fatigue in older individuals: a systematic review</article-title>
          ,
          <source>Rehabilitation Nursing</source>
          ,
          <volume>46</volume>
          (
          <issue>3</issue>
          ),
          <volume>125</volume>
          (
          <year>2021</year>
          ). doi:
          <volume>10</volume>
          .1097/RNJ.0000000000000278
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>K.</given-names>
            <surname>Avlund</surname>
          </string-name>
          ,
          <article-title>Fatigue in older adults: an early indicator of the aging process?</article-title>
          ,
          <source>Aging clinical and experimental research</source>
          ,
          <volume>22</volume>
          ,
          <fpage>100</fpage>
          -
          <lpage>115</lpage>
          (
          <year>2010</year>
          ). doi.org/10.1007/BF03324782
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>P. A.</given-names>
            <surname>Desmond</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. A.</given-names>
            <surname>Hancock</surname>
          </string-name>
          ,
          <article-title>Active and passive fatigue states</article-title>
          , In Stress, workload, and fatigue (pp.
          <fpage>455</fpage>
          -
          <lpage>465</lpage>
          ), CRC Press (
          <year>2000</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>R. S.</given-names>
            <surname>Job</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Dalziel</surname>
          </string-name>
          ,
          <string-name>
            <surname>J</surname>
          </string-name>
          ,
          <article-title>Defining fatigue as a condition of the organism and distinguishing it from habituation, adaptation, and boredom</article-title>
          , In Stress, workload, and fatigue (pp.
          <fpage>466</fpage>
          -
          <lpage>476</lpage>
          ). CRC Press (
          <year>2000</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>R.</given-names>
            <surname>Nelesen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Dar</surname>
          </string-name>
          , K. Thomas,
          <string-name>
            <surname>J. E. Dimsdale,</surname>
          </string-name>
          <article-title>The relationship between fatigue and cardiac functioning</article-title>
          ,
          <source>Archives of internal medicine</source>
          ,
          <volume>168</volume>
          (
          <issue>9</issue>
          ),
          <fpage>943</fpage>
          -
          <lpage>949</lpage>
          (
          <year>2008</year>
          ). doi.org/10.1001/archinte.168.9.
          <fpage>943</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M.</given-names>
            <surname>Moshawrab</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Adda</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Bouzouane</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Ibrahim</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Raad</surname>
          </string-name>
          ,
          <article-title>Smart Wearables for the Detection of Occupational Physical Fatigue: A Literature Review</article-title>
          , Sensors,
          <volume>22</volume>
          (
          <issue>19</issue>
          ),
          <volume>7472</volume>
          (
          <year>2022</year>
          ). doi.org/10.3390/s22197472
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>R.</given-names>
            <surname>Billones</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. K.</given-names>
            <surname>Liwang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Butler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Graves</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L. N.</given-names>
            <surname>Saligan</surname>
          </string-name>
          ,
          <article-title>Dissecting the fatigue experience: A scoping review of fatigue definitions, dimensions, and measures in non-oncologic medical conditions, Brain, behavior</article-title>
          , &amp; immunity - health,
          <volume>15</volume>
          ,
          <fpage>100266</fpage>
          . (
          <year>2021</year>
          ). doi.org/10.1016/j.bbih.
          <year>2021</year>
          .100266
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>M.</given-names>
            <surname>Wensink</surname>
          </string-name>
          , G. Schaap,
          <string-name>
            <given-names>P. M.</given-names>
            <surname>Ten Klooster</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. J.</given-names>
            <surname>Doggen</surname>
          </string-name>
          ,
          <string-name>
            J. van der Palen,
            <given-names>H. E.</given-names>
            <surname>Vonkeman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Bode</surname>
          </string-name>
          ,
          <article-title>Physical and mental fatigue in post-COVID syndrome and their associations over time: A small-sample ESM-study to explore fatigue, quality of sleep and behaviours</article-title>
          ,
          <source>Journal of psychosomatic research</source>
          ,
          <volume>164</volume>
          ,
          <issue>111084</issue>
          (
          <year>2023</year>
          ). doi.org/10.1016/j.jpsychores.
          <year>2022</year>
          .111084
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>E. J.</given-names>
            <surname>Husom</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Dautov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. Nedisan</given-names>
            <surname>Videsjorden</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Gonidis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Papatzelos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Malamas</surname>
          </string-name>
          ,
          <article-title>Machine Learning for Fatigue Detection using Fitbit Fitness Trackers</article-title>
          ,
          <source>In Proceedings of the 10th International Conference on Sport Sciences Research and Technology Support (icSPORTS</source>
          <year>2022</year>
          ).
          <source>SciTePress</source>
          (
          <year>2022</year>
          ). doi.org/10.5220/0011527500003321
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>L.</given-names>
            <surname>Aljihmani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Ursutiu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Cornel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Qaraqe</surname>
          </string-name>
          ,
          <article-title>Machine Learning for Fatigue Estimation and Prediction “An Introduction Study”</article-title>
          ,
          <source>In 7th International Conference on Advancements of Medicine and Health Care through Technology: Proceedings of MEDITECH-2020</source>
          ,
          <fpage>13</fpage>
          -
          <issue>15</issue>
          <year>October 2020</year>
          (pp.
          <fpage>226</fpage>
          -
          <lpage>231</lpage>
          ). Springer International Publishing (
          <year>2022</year>
          ). doi.org/10.1007/978-3-
          <fpage>030</fpage>
          -93564-1_
          <fpage>25</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>N. R. Adão</given-names>
            <surname>Martins</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Annaheim</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. M.</given-names>
            <surname>Spengler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. M.</given-names>
            <surname>Rossi</surname>
          </string-name>
          ,
          <article-title>Fatigue monitoring through wearables: A state-of-the-art review</article-title>
          , Frontiers in physiology,
          <volume>12</volume>
          ,
          <issue>2285</issue>
          (
          <year>2021</year>
          ). doi.org/10.3389/fphys.
          <year>2021</year>
          .790292
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>E.</given-names>
            <surname>Butkevičiūtė</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E. Matīss</given-names>
            <surname>Eriņš</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Liepa</surname>
          </string-name>
          ,
          <article-title>An adaptable human fatigue evaluation system</article-title>
          ,
          <source>Procedia Computer Science</source>
          <volume>192</volume>
          :
          <fpage>1274</fpage>
          -
          <lpage>1284</lpage>
          (
          <year>2021</year>
          ). doi.org/10.1016/j.procs.
          <year>2021</year>
          .
          <volume>08</volume>
          .131
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>G.</given-names>
            <surname>Rescio</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Manni</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Caroppo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ciccarelli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Papetti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Leone</surname>
          </string-name>
          ,
          <article-title>Ambient and wearable system for workers' stress evaluation</article-title>
          , Computers in Industry,
          <volume>148</volume>
          ,
          <issue>103905</issue>
          (
          <year>2023</year>
          ). doi.org/10.1016/j.compind.
          <year>2023</year>
          .103905
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>