Next Article in Journal
Investigating Awareness of Pesticide Exposure as a Risk Factor for Parkinson’s Disease and Uptake of Exposure-Mitigating Behaviour in Farming Communities in Ireland
Previous Article in Journal
Structures and Processes for Safety Culture? Perspectives from Safety Leaders in the Swedish Construction Industry
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Developing a Fatigue Detection Model for Hospital Nurses Using HRV Measures and Machine Learning

by
Wynona Salsabila Hafiz
1,
Maya Arlini Puspasari
1,*,
Dewi Yunia Fitriani
2,3,
Richard Joseph Hanowski
4,
Danu Hadi Syaifullah
1 and
Salsabila Annisa Arista
1
1
Department of Industrial Engineering, Faculty of Engineering, Universitas Indonesia, Depok 16424, Indonesia
2
Occupational & Environmental Health Research Centre, Indonesian Medical and Education Research Institute (IMERI), Faculty of Medicine, Universitas Indonesia, Central Jakarta 10430, Indonesia
3
Department of Community Medicine, Faculty of Medicine, Universitas Indonesia, Central Jakarta 10430, Indonesia
4
Division of Freight, Transit, and Heavy Vehicle Safety, Virginia Tech Transportation Institute, Blacksburg, VA 24061, USA
*
Author to whom correspondence should be addressed.
Safety 2025, 11(2), 48; https://doi.org/10.3390/safety11020048
Submission received: 3 March 2025 / Revised: 1 May 2025 / Accepted: 9 May 2025 / Published: 22 May 2025

Abstract

:
Fatigue among hospital nurses, resulting from demanding workloads and irregular shift schedules, presents significant risks to both healthcare workers and patient safety. This study developed a fatigue detection model using heart-rate variability (HRV) and investigated its relationship with the Swedish Occupational Fatigue Inventory (SOFI) among nurses. Sixty nurses from a hospital in Depok, Indonesia, participated with HRV data collected via Polar H10 monitors before and after shifts alongside SOFI questionnaires. A mixed ANOVA revealed no significant between-subjects differences in HRV across morning, afternoon, and night shifts. However, within-subjects analyses showed pronounced parasympathetic rebound (elevated Mean RR) and sympathetic withdrawal (reduced Mean HR) post-shift, particularly after afternoon and night shifts, contrasting with stable profiles in morning shifts. Correlation analysis showed significant associations between SOFI dimensions, specifically lack of motivation and sleepiness, with HRV measures, indicating autonomic dysfunction and elevated stress levels. Several machine-learning classifiers were used to develop a fatigue detection model and compare their accuracy. The Fine Gaussian Support Vector Machine (SVM) model achieved the highest performance with 81.48% accuracy and an 81% F1 score, outperforming other models. These findings suggest that HRV-based fatigue detection integrated with machine learning provides a promising approach for continuous nurse fatigue monitoring.

Graphical Abstract

1. Introduction

Fatigue is a mental or physical state that can decrease an individual’s ability to complete important tasks safely and effectively [1]. It is regulated by the central nervous system [2], including a sympathetic activation system managed by the sympathetic nervous system, and an inhibitory system controlled by the parasympathetic nervous system [3]. Symptoms of fatigue include drowsiness, dizziness, decreased concentration, reduced alertness, lack of motivation, and decline in both physical and mental performance.
Work-related fatigue is defined as an abnormal feeling of tiredness, exhaustion, lethargy, and loss of drive, which are often associated with stress and depression [4]. Contributing factors include physical and mental tasks that exceed the worker’s capacity, workload intensity and duration, reduced quality and quantity of sleep, especially for night shift workers, psychological factors such as interpersonal conflicts, and the worker’s health [5].
Current research underscores the critical role of fatigue management in workplace health. The 2023 Work in America Survey highlights mental health as a top priority, with 83% of Millennial employees and 76% of Gen Z workers reporting increased anxiety compared to 2022 [6]. If work-related fatigue is not promptly addressed with adequate rest, it can accumulate over the day, potentially leading to more severe health effects [7]. A 2018 survey by the National Safety Council found that 57% of workers reported absenteeism due to fatigue, 50% had fallen asleep at work, 47% had low productivity, and 32% had been injured or had near-miss incidents due to work fatigue [8]. Moreover, 90% of the companies reported negative impacts of worker fatigue [9]. Consequently, work fatigue is a serious issue that must be addressed as it poses a hazard that can affect worker productivity.
Healthcare services aim to maintain and improve health; prevent and cure diseases; and rehabilitate individuals, groups, and communities. Hospitals play a crucial role in the national healthcare system. As of 2022, there are 3072 hospitals in Indonesia, which is expected to increase in line with a positive trend over the past decade. This highlights the critical role of healthcare workers in ensuring the sustainability of hospital services [10]. Data from the Indonesian Ministry of Health, as reported in the 2022 Indonesia Health Profile, indicate that the healthcare workforce in Indonesia includes approximately 2.02 million individuals, with nurses being the largest group, making up 39.15% of healthcare professionals or 563,739 individuals [11].
Hospitals operate 24 h a day and have high risks associated with occupational health, including fatigue due to shift work [12,13]. Nursing is particularly affected by work-related fatigue caused by shift schedules. According to Shah [14], nurses typically work 8, 10, or 12 shifts. Research on circadian physiology has shown that an 8-h shift is better for the natural body cycle than a 12-h shift. Delving deeper into the shift work literature reveals that the pattern of working nights or rotating shifts, and consequently sleeping less or at suboptimal times, significantly contributes to fatigue [15]. Despite this, 12-h shifts dominate nursing schedules [16,17], and nurses work in various hospital departments such as intensive care units (ICU), emergency rooms (ER), operating rooms (OR), and inpatient wards. ICU nurses care for patients with unstable or critical conditions [18]. ER nurses handle serious illnesses and injuries upon patient arrival at the hospital, often specializing in trauma, cardiac, pediatric, or geriatric care. OR nurses assist with preoperative and postoperative care, ensuring continuity of care during surgical procedures. Inpatient nurses care for patients who are admitted for extended stays.
Nurse performance is crucial to patient treatment outcomes. Fatigue can impair nurses’ performance and jeopardize patient safety, making it an issue that must be addressed urgently. The main factors contributing to nursing fatigue were excessive administrative tasks, continuous mental demands, and shift work over long hours. These factors align with the integrative literature review by Alahmadi and Manal [19], which highlighted poor scheduling, overtime, disrupted circadian rhythms, and high stress with low social support as significant contributors to nursing fatigue. Previous studies reveal that shifts exceeding 12 h increase burnout risks, with nurses working ≥ 13-h shifts reporting lower patient communication, pain management, and satisfaction [20]. Night shift nurses face significantly poorer sleep quality and elevated chronic fatigue compared to daytime workers [21]. Additionally, fatigue-related impairments extend beyond individual health, increasing errors in care, vehicle accidents, and systemic risks for employers [20].
As frontline healthcare providers, nurses face significant responsibilities, especially with the increasing numbers of patients and workloads [22]. In 2021, the International Council of Nurses (ICN) stated that a global phenomenon of mass trauma has been occurring among nurses since the start of the pandemic [23]. Nurses are constantly exposed to emotionally draining stressors, which increase their risk of occupational burnout and other forms of psychosocial harm [24]. In ICN’s recent study [25], more than half (52.4%) of the national nurses’ association members (NNAs) indicated that nurses in their country lacked appropriate access to psychological or mental health support in the workplace.
Given the high risk associated with work-related fatigue, it is essential to measure the level of fatigue among nurses. One approach for measuring objective fatigue is heart-rate variability (HRV), which is the fluctuation in the time intervals between adjacent heartbeats [26]. This variability is influenced by the human neuronal system, especially the autonomic nervous system (ANS). The ANS is influenced by the sympathetic nervous system (SNS) and parasympathetic nervous system (PNS). Usually, HRV signals are calculated by analyzing the time interval between the heartbeats using electrocardiography. According to Ni et al. [27], HRV analysis is a commonly used method in fatigue research. An experiment conducted by Li et al. [28] also showed that HRV is an appropriate tool for measuring stress conditions in real working conditions. With advancements in portable, user-friendly heart-rate monitors, HRV has emerged as a valuable tool that simplifies data collection for researchers and enables more accessible fatigue assessment.
The landscape of nursing in Indonesia, as outlined in the World Health Organization Report 2020 [29], highlights critical areas that demand innovative solutions. A significant challenge is the lack of robust regulations concerning working hours and conditions, which can lead to unpredictable and excessive workloads, directly impacting nurse fatigue. There is also a notable absence of rules on minimum wage and social protection for nurses. Moreover, measures are urgently needed to prevent attacks on healthcare workers, ensuring their safety, which could mitigate stress and fatigue. Thus, exploring machine learning for fatigue detection becomes relevant and urgent to address Indonesian nurses’ multifaceted challenges.
Previous studies have primarily focused on measuring work-related fatigue levels among nurses. However, as awareness of the need to mitigate risks associated with nurse fatigue grows, there is an increasing demand for a model that can proactively detect fatigue. Machine learning (ML), a specific branch of Artificial Intelligence, enables systems to learn automatically from data [30]. ML is employed to identify patterns in data where the underlying structure is not yet known to predict future data or achieve the desired outcomes [31]. By leveraging both objective data, such as HRV, and subjective data, machine learning can be used to develop a robust nurse fatigue detection model.
Studies have demonstrated the potential of machine-learning algorithms in real-time HRV monitoring for healthcare workers, particularly emergency room nurses [32]. ML algorithms were also proven to assess data and provide accurate cardiac diagnosis for cardiovascular disease patients [33]. Similar models have also been developed for other professions, including drivers [34], athletes [35,36], construction workers [37], and pilots [38]. Despite this progress, machine-learning applications for nurse fatigue detection, particularly in Indonesia, remain underexplored. Given advances in portable and user-friendly HRV monitoring devices [39], research on HRV-based fatigue detection models for nurses is essential. Notably, studies have shown that models trained using selected HRV features can classify physical fatigue with high accuracy [27], and these features also provide critical insights into identifying fatigue states. This study aimed to develop an HRV-based fatigue-detection system using ML specifically designed for nurses. The outcome of this study is to provide a more accurate and effective method for measuring fatigue in healthcare settings. When fatigue can be detected more accurately, hospital management can make appropriate strategies to reduce fatigue among nurses and improve their well-being.

2. Materials and Methods

2.1. Participants

This study employed a cross-sectional design with a purposive sampling method. In this study, the inclusion criteria were working for at least one year as a nurse, serving in one of the working unit departments (ICU/ER/OR/Inpatient), and being healthy individuals. The exclusion criteria for participants were not pregnant and not consuming caffeine, alcohol, or drugs. The participants were first screened to meet the criteria for this study, and the study used a purposive sampling method. We use G*power 3.1 to verify the adequacy of the sample size [40]. The calculation using G*Power with 60 participants generated a statistical power (1 − β) of 87.3%, which exceeded the suggested minimum statistical power of 80% [41]. This indicated that the sample size in this study was adequate.

2.2. Procedure

This study follows the STROBE Statement as the checklist of items that should be included in reports of cross-sectional studies. The STROBE methodology and data presentation guidelines were available in the Supplementary File. The study was conducted in a hospital with three 8-h working shifts (morning, afternoon, and night). The hospital’s occupational health and safety management coordinated the participant recruitment process to maintain organizational protocols. All participants were briefed on the study’s purpose, methods, and procedures before signing informed consent and completing demographic questionnaires to ensure all criteria were met before enrollment.
To maintain rigorous data quality and validation, data collection was conducted for all participants before and after their work shift based on their working unit department (ICU/ER/OR/Inpatient). The study protocol required participants to sleep for at least 6 h (within a 24-h cycle) and not to consume caffeine or drugs within 24 h before the start of data collection. Each participant’s data were measured before and after their work shift ended to avoid disrupting their workflow too much. Before a shift, participants used HRV for 5 min along with the Polar H10 to monitor their heart rate. After the shift was completed, HRV data were collected again. Once completed, the participants rested for two minutes before completing the SOFI questionnaire. The time taken to complete the SOFI questionnaire was approximately 10 min. Research workflow can be seen in Figure 1.
To control confounding variables in this study, we measured nurses’ heart-rate variability and administered the SOFI questionnaire simultaneously in the same period. Their shifts also had the same duration of 8 h, and we monitored their sleep duration to ensure they slept at least 6 h before the data collection. Each participant was given a gold souvenir for their participation in this study.
All participants provided informed consent before participating in the study, and confidentiality of the data was ensured throughout the research process. This study was also conducted following the principles of the Declaration of Helsinki. Ethical approval was obtained from the hospital research ethics committee before the commencement of the research. Written informed consent to publish identifying details was also obtained from all individual participants before their inclusion in the study and has been secured per ethical guidelines. Efforts have been made to anonymize personal information to protect the participants’ privacy.

2.3. Data Recording

2.3.1. Heart-Rate Variability

HRV is the fluctuation of the time interval between adjacent heartbeats [42]. HRV measurements were conducted using a Polar H10 sensor manufactured by Polar Electro Oy in Finland, Elite HRV 5.5.8, and Kubios HRV Scientific 4.1.1. The participants wore the Polar H10 sensor on their chest for 5 min. The Polar H10 sensor, equipped with electrodes on a chest strap, detects the heart’s electrical activity using R-waves in an electrocardiogram. The data obtained were a time interval between successive R-waves (RR-intervals), which were then transmitted to a mobile device via Bluetooth. The RR-interval data were recorded using the Elite HRV application, which allows for data recording, storage, and export for further analysis. This application was validated in previous studies to ensure accuracy in capturing the RR-interval signals [26].
The RR-interval data were then analyzed using Kubios HRV Scientific software, specifically designed for scientific research. This software enables comprehensive data processing, including pre-processing to detect and correct noise, correcting misaligned heartbeats, and performing trend removal. After pre-processing, HRV analysis was conducted, generating various time-domain parameters such as Mean RR, SDNN, RMSSD, NN50, and pNN50, as well as frequency-domain parameters such as VLF, LF, HF, and the LF/HF ratio. This combination of tools and applications ensures accurate and in-depth HRV measurements, providing objective insights into the relationship between work fatigue and heart rate in nursing.

2.3.2. Swedish Occupational Fatigue Inventory

In this study, subjective measurements were used to classify the nurses’ fatigue and non-fatigue conditions. Subjective measurements of fatigue were assessed using the SOFI. This study used non-fatigue scales from 0 to 3.49 and a fatigue scale from 3.50 to 6.00 [43]. SOFI measured five dimensions of fatigue, represented by 25 items in total, and every item was measured on a Likert scale of 1 to 6.

2.4. Data Analysis

The Shapiro–Wilk test, Mixed ANOVA, and Pearson’s R correlation test were used to analyze both objective HRV data and subjective SOFI data. The Shapiro–Wilk test assessed whether the data followed a normal distribution, a prerequisite for parametric statistical analyses. Mixed ANOVA is a statistical technique employed to evaluate mean variations among groups divided into two factors: one factor is classified as a within-subjects factor (repeated measures), while the other is recognized as a between-subjects factor (independent groups). In this study, the within-subjects factor consists of before and after work, and the between-subjects factor consists of 3 shifts (morning, afternoon, and night). Finally, Pearson’s R correlation test was conducted to examine the strength and direction of the relationship between HRV data (objective measures) and SOFI data (subjective measures), ensuring alignment between physiological indicators of fatigue and perceived fatigue levels. This comprehensive statistical approach provides insights into the interplay between various factors influencing nurse fatigue.
After performing statistical tests, machine learning designed in Python 3.3 from Jupyter Notebook 6.5.4, with supervised learning, was used to develop the model. Based on Figure 2, the first step of data pre-processing was to adjust for noise and artifacts from the raw data. The second step was to extract key HRV features for analysis. The selected columns were based on heart-rate variability metrics, such as Mean RR, SDNN, Mean HR, RMSSD, NN50, pNN50, LF, HF, and LF/HF. The Swedish Occupational Fatigue Inventory (SOFI) questionnaire was used as the dependent variable to classify the fatigue level of the participants. The SOFI data used included the Total Score, which was categorized into non-fatigue (0–3.49) and fatigue (3.50–6.00) as the cut-off for fatigue labeling [43]. Subsequently, data encoding was performed to transform the data into a more processable format. The final step involved data scaling, in which the variables were normalized using their respective means and standard deviations to ensure consistency across different variables.
After this pre-processing, significant features were run through classification, evaluation, and prediction models. Logistic regression, support vector machine (SVM), and k-nearest neighbor (KNN) algorithms were used in this study. A logistic regression model using heart-rate features can predict physical fatigue with good predictions and interpretable parameters for real-life applications in previous research [44]. The SVM algorithm is suitable for complex and small datasets. This makes it a preferred choice in scenarios where data are scarce, such as in specific biomedical applications [45]. SVM algorithms have also been successfully applied to classify the mental and muscle fatigue states [46,47]. The SVM models were also divided into linear, quadratic, cubic, fine Gaussian, and coarse Gaussian-based models to compare further and obtain the highest performance metrics of the model. In addition, k-nearest neighbors (k-NN) can be used to identify the nearest neighbors from one group to a certain point to classify the result. One study utilized the KNN algorithm to identify fatigue after sleeping using a combination of electrocardiogram (ECG), Electromyography (EMG), and electroencephalogram (EEG) parameters [48].
We also conducted a synthetic minority oversampling technique (SMOTE) by adding a copy of the training set because of the imbalanced data to reduce the risk of overfitting. Furthermore, the model’s performance was evaluated using accuracy, precision, recall, and F1-score metrics. Accuracy (1) measures the proportion of correctly classified examples out of the total number of examples, including both positive and negative cases. Precision (2) evaluates the proportion of correctly predicted positive cases (true positives) among all cases predicted as positive, reflecting the model’s ability to avoid false positives. Recall (sensitivity) (3) assesses the proportion of actual positive cases the model successfully identified as positive, capturing the model’s ability to avoid false negatives. Finally, the F1-score (4) provides a harmonic means of precision and recall, offering a balanced measure of the model’s ability to predict both positive and negative labels accurately. This ensured a comprehensive evaluation of the model’s performance, particularly in datasets with imbalanced class distributions.
Accuracy = (TP + TN)/(TP + TN + FP + FN)
Precision = TP/(TP + FP)
Recall = TP/(TP + FN)
F1-Score = (2 × Precision × Recall)/(Precision + Recall)

3. Results

3.1. Statistical Test

The study included 60 nurses (83.3% female, 16.7% male) from a hospital in Depok, West Java, Indonesia. Participants had a mean age of 28.25 ± 2.18 years and an average working experience of 5.733 ± 1.28 years. HRV parameters, including time-domain and frequency-domain measures, were calculated for all participants following standardized RR-interval data collection and processing procedures. After processing the respondents’ RR-interval data, the HRV variables’ calculated results were obtained. A summary of HRV data from the collection process is presented in Table 1.
Subjective data from the SOFI questionnaire were collected using a scale ranging from 0 to 6 for each question. The SOFI data for each question were then averaged within each dimension to calculate the scores for each dimension (Table 2).
The collected data were tested for normal distribution using the Shapiro–Wilk test, confirming that all data from HRV and SOFI measurements were normally distributed. A mixed ANOVA with a 95% confidence interval was conducted to evaluate the effect of work shifts (morning, afternoon, night) as a between-subjects factor on nurses’ HRV variables. The results revealed no significant differences in HRV metrics across the morning, afternoon, and night shifts (Sig. > 0.05). These findings suggest no statistically significant differences in nurses’ HRV variables due to the shift type when considering between-subject variation (Table 3).
A mixed ANOVA with a 95% confidence interval was conducted to evaluate the within-subjects effects before and after each shift. Specifically, Mean RR, SDNN, Mean HR, RMSSD, NN50, pNN50, VLF, and HF showed a significant difference (Sig. < 0.050) with detailed results in Table 4.
Moreover, the Tests of Within-Subjects Contrasts from Mixed ANOVA revealed significant interactions of before-after-shift and shift type (morning, afternoon, and night) for both Mean RR (F = 10.726, p < 0.001) and Mean HR (F = 10.726, p < 0.001). These indicate changes in HRV metrics from before to after work shifts differ significantly across each type. In Figure 3a, the profile plot showed that the after-shift Mean RR increased sharply during afternoon and night shifts compared to the morning shift. In contrast with Mean RR, Figure 3b shows that after-shift heart rate decreases were larger during afternoon and night shifts compared to the morning shift.
To further investigate the relationship between HRV and SOFI measurements, Pearson’s Correlation Test was conducted. The analysis showed significant correlations between HRV and SOFI variables, as reflected in Pearson’s R-scores in Table 5. These findings highlight the correlation between objective (HRV) and subjective (SOFI) measures of fatigue, providing deeper insight into how work shifts affect nurses’ physical and mental states.

3.2. Fatigue Classification

The classifiers used in the model were Logistic Regression, SVM, and k-Nearest Neighbor. The analysis showed that the SVM classifier with Fine Gaussian RBF (radial basis function) kernel generated the highest accuracy and F1 score, as shown in Table 6. These are similar to the findings of a previous study, in which SVM was one of the best-performing algorithms [27]. The accuracy of training and testing data reached 97.58% and 81.00%, respectively. Precision and recall are higher than the other classifiers, resulting in a better F1 score (81%) with a relatively average running time (1.6 s).
In addition, we conducted a feature importance analysis to determine the most relevant features. The feature importance of a Fine Gaussian SVM was assessed using a permutation importance approach. In previous healthcare studies, permutation-based methods effectively identified important biomarkers [49]. This method evaluates the importance of each feature by measuring the decrease in model performance when the feature values are randomly shuffled while keeping the model unchanged. As illustrated in Figure 4, features such as LF and SDNN exhibited the highest importance scores, indicating their substantial impact on the ability of the model to predict fatigue levels among nurses. Conversely, features such as the VLF showed relatively lower importance, suggesting a less critical role in the classification task.

4. Discussion

4.1. HRV and SOFI Results on Nurses’ Shifts

The findings reveal that nurses’ autonomic responses to shift work are shaped by both time-of-day effects and cumulative fatigue. While no significant between-subjects differences in HRV metrics were observed across morning, afternoon, and night shifts, within-subjects analyses demonstrated pronounced parasympathetic rebound and sympathetic withdrawal after afternoon and night shifts compared to morning shifts. After work shift slowed heart rate (elevated Mean RR, reduced Mean HR) observed in afternoon and night shifts align with prior studies linking extended or non-daytime shifts to parasympathetic dominance as a fatigue countermeasure [50,51]. This contrasts with the stable HRV profiles during morning shifts, which may benefit from circadian synchronicity and lower cumulative stress. For instance, the significant interaction effects for Mean RR and Mean HR underscore how shift timing modulates autonomic adaptation, with afternoon and night shifts inducing greater HRV fluctuations than morning shifts aligned with natural alertness phases [52,53]. These results evidence that night shifts disrupt the autonomic balance, necessitating stronger recovery responses to offset high cognitive and physical demands [53].
The connection between mental fatigue, emotions, and HRV is rooted in the complex interplay between the autonomic nervous system (ANS) and psychological states. The ANS, comprising the sympathetic and parasympathetic branches, regulates various bodily functions, including heart rate. HRV reflects the balance between these two branches and provides insight into the body’s ability to respond to stress and recover. When individuals experience mental fatigue, the sympathetic nervous system becomes overactive, leading to increased heart rate and reduced HRV. Chronic mental fatigue can result in prolonged sympathetic activation, disrupting the normal balance of the ANS and leading to decreased HRV [54]. Emotions also play a crucial role in modulating HRV. Positive emotions, such as joy and contentment, are associated with increased parasympathetic activity and higher HRV, reflecting a state of relaxation and well-being. Conversely, negative emotions, such as anger, anxiety, and sadness, activate the sympathetic nervous system, which leads to lower HRV. This relationship between emotions and HRV underscores the importance of emotional regulation in maintaining optimal autonomic function and overall health [55]. The demanding nature of the nursing workload, coupled with long hours and high-stress environments, can lead to both mental fatigue and emotional distress. Nurses may experience feelings of burnout, frustration, and helplessness, all of which can contribute to decreased HRV and impaired autonomic function. By understanding the link between mental fatigue, emotions, and HRV, healthcare organizations can develop targeted interventions to support nurses’ well-being and improve patient care outcomes.
In addition, several dimensions of the SOFI questionnaire showed a significant relationship with HRV. A lack of motivation is associated with decreased VLF, indicating a higher physiological response to stress when motivation decreases. This aligns with previous research by Salmani et al. [56], who highlighted the significant impact of motivation on nurses’ overall well-being and stress levels. Sleepiness was negatively correlated with SDNN, Mean HR, RMSSD, NN50, pNN50, VLF, and HF, suggesting that higher levels of fatigue and sleepiness are associated with reductions in HRV parameters. These findings are consistent with prior research indicating that sleepiness reflects disruptions in autonomic nervous system function and the body’s ability to adapt to stress [54,57,58,59]. Physical exhaustion also showed negative correlations with SDNN, VLF, LF, and HF, indicating that high physical activity was associated with decreased HRV. This aligns with the findings of Van Amelsvoort [60], who identified a clear relationship between physical activity and decreased HRV, indicating reduced autonomic nervous system flexibility due to sustained physical demands. Physical Discomfort was negatively correlated with SDNN, VLF, LF, and HF scores. In a study by Jarczok et al. [61], it was found that elevated levels of stress and physical discomfort were associated with decreased HRV, indicating a higher risk of cardiovascular issues and reduced stress resilience. These findings underscore the importance of workload management and working conditions that support nurses’ physical and mental health to minimize the risk of ongoing stress and burnout.

4.2. Nurses’ Fatigue Classification Modeling

Through this research, it was found that the Fine Gaussian SVM exhibited the best performance among the classifiers with the highest accuracy and F1 score. HRV metrics are complex physiological signals that exhibit nonlinear relationships with fatigue levels. Fine Gaussian SVM uses a radial basis function (RBF) kernel, which is effective for nonlinear classification problems by mapping data into a higher-dimensional space for complex decision boundaries. Previous research shows that approximating Gaussian RBF kernels can significantly speed up SVM classification without losing accuracy [62]. The “Fine” aspect in Fine Gaussian SVM refers to a small kernel scale (sigma), leading to a highly sensitive and detailed decision boundary. Owing to this fine-tuned boundary, the Fine Gaussian SVM can achieve higher precision and recall, leading to a better F1 score. It excels in balancing sensitivity and specificity, which are crucial in healthcare-related models, where both false positives and false negatives can have significant consequences.
In this case, while Logistic Regression is a solid baseline model, it is inherently linear and may struggle with nonlinear relationships, which might not capture all the complexities in HRV data. Linear, quadratic, and cubic SVM have different decision boundaries in capturing complex patterns in the data. The Coarse Gaussian SVM also has a broader and simpler decision boundary that might underfit the data and lead to lower performance. Meanwhile, k-NN is a distance-based classifier that can be effective in some scenarios, but it may not handle high-dimensional data as efficiently as SVMs. Thus, the Fine Gaussian SVM level of accuracy surpasses that typically achieved by Logistic Regression and k-NN, which often struggle to achieve similar performance metrics in complex classification tasks involving physiological data [63].
The use of SMOTE helped mitigate the issue of imbalanced data, a common challenge in medical datasets where one class (e.g., fatigue) might be underrepresented. In previous research, SMOTE implementation in Fine Gaussian SVM models led to improved accuracy rates, from 65.2% without SMOTE to 80% with SMOTE [64]. Despite its detailed decision-making, the Fine Gaussian SVM in this study maintained a relatively medium running time (1.6 s, in this case), making it both effective and efficient. This is particularly important in real-time or near-real-time fatigue-detection applications.
In addition, feature importance analysis for the Fine Gaussian SVM model provided further insights into the predictive power of individual HRV metrics. Using a permutation-based feature importance approach, it was found that the LF and SDNN were among the most critical features influencing the performance of the model. These features are highly correlated with physiological responses associated with fatigue levels, emphasizing their relevance in fatigue detection [65]. The mean RR and HR also demonstrated substantial contributions, highlighting the significance of average heart-rate characteristics in capturing fatigue-related physiological changes. In contrast, features such as VLF had lower importance scores, suggesting limited utility in enhancing the model’s predictive capabilities. Previous research has shown that permutation-based feature importance effectively identifies important biomarkers and improves prediction accuracy in machine-learning models for complex human diseases [56]. These findings align with the nature of HRV metrics, where certain frequency-domain and time-domain measures are more sensitive to autonomic nervous system activity and fatigue indicators. This comprehensive feature analysis not only confirms the robustness of the model but also provides a foundation for future work in selecting the most impactful physiological indicators for nurse fatigue monitoring.
Compared to established theoretical frameworks, such as the three-process model, which considers homeostatic sleep drive, circadian rhythms, and sleep inertia [66], this research adds a layer of objective physiological measurement through HRV with a machine-learning classification model. While the three-process model excels at predicting fatigue based on sleep patterns and time factors, it lacks direct measurement of physiological states during wakefulness, which the SVM Fine Gaussian model provides, offering complementary insights rather than contradictory ones. In addition, HRV data collection using wearable solutions and multi-source data fusion presents a strong option for fatigue monitoring in the workplace and other crucial environments [67]. Based on this finding, machine-learning classifiers for fatigue-detection modeling of nurses appear promising. In future research, an additional step would be integrating the best-performing model into a real-time application for continuous fatigue monitoring/alerting to support nurses’ well-being and patient safety.

4.3. Limitation

This study had several limitations. First, the research was conducted in only one hospital. Further research can be conducted into other hospitals with different nursing characteristics. In addition, this study only covers four nurse work areas (ER, Inpatient, ICU, and Operating Room) with specific workload characteristics. It would be interesting if additional research could be expanded to study other nursing work areas, because they have different tasks and workloads. Moreover, although purposive sampling enabled us to specifically target nurses with characteristics and experiences relevant to our research on fatigue, it may introduce inherent selection bias, limiting the generalizability of our findings to the broader nursing population. Lastly, several variables, such as differences in workload between nurses and their sleep quality, may be confounding variables but were not considered in this study. Further studies can include confounding variables to enhance the research results.

5. Conclusions

In conclusion, this study indicates that nurses experience varying fatigue levels depending on their shifts, with night and afternoon shifts causing greater physiological stress and fatigue than morning shifts. This was reflected by HRV changes such as elevated Mean RR and reduced Mean HR. Moreover, significant correlations were found between SOFI dimensions, such as lack of motivation, sleepiness, physical exertion, and physical discomfort, with HRV measures, highlighting how physical and psychological stressors affect nurses’ fatigue levels.
Using a Fine Gaussian SVM model in ML for fatigue detection proved to be the most effective approach. This is shown by superior accuracy and F1 scores compared to traditional models such as Logistic Regression, k-NN, and other SVM variants. Integrating SMOTE to address class imbalance further enhanced the model’s performance. In contrast to simpler linear models, Fine Gaussian SVMs’ ability to handle nonlinear complexities in HRV data provides a distinct advantage in detecting fatigue-related patterns. In addition, the most essential HRV features contributing to the performance of the models were LF and SDNN.
Importantly, comparing this model with other fatigue-detection methods underscores its value in predicting fatigue and potential downstream consequences, such as errors, missed shifts, and patient safety incidents. With HRV-based fatigue modeling, hospital management can develop data-driven strategies for shift rotation schedules, better workload allocation, and enhanced mental and physical support for nurses. In future research, integrating real-time HRV monitoring and predictive systems in clinical environments could offer continuous assessment and proactive fatigue management, reducing the risks associated with chronic nurse fatigue and improving healthcare outcomes overall.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/safety11020048/s1.

Author Contributions

Conceptualization, M.A.P. and D.Y.F.; methodology, W.S.H., M.A.P. and D.Y.F.; software, W.S.H.; validation, D.H.S. and R.J.H.; formal analysis, W.S.H.; investigation, W.S.H.; resources, M.A.P.; data curation, W.S.H.; writing—original draft preparation, W.S.H.; writing—review and editing, M.A.P., D.Y.F., R.J.H., D.H.S. and S.A.A.; visualization, W.S.H.; supervision, M.A.P., D.Y.F. and R.J.H.; project administration, S.A.A.; funding acquisition, M.A.P. All authors have read and agreed to the published version of the manuscript.

Funding

The research is supported by PUTI Q2 Grant in 2024 and is funded by the Directorate of Research and Community Service (DRPM) Universitas Indonesia, No. NKB-718/UN2.RST/HKP.05.00/2024.

Institutional Review Board Statement

The study was conducted following the Declaration of Helsinki and approved by the local research ethical committee of Universitas Indonesia Hospital (S-093/KETLIT/RSUI/VII/2024). All procedures were conducted following institutional policies.

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

The original contributions presented in this study are included in the article/Supplementary Materials. Further inquiries can be directed at the corresponding author.

Conflicts of Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Abbreviations

The following abbreviations are used in this manuscript:
HRHeart rate
HRVHeart-rate variability
SOFISwedish Occupational Fatigue Inventory
ICUIntensive care unit
EREmergency room
OROperating room
ANSAutonomic nervous system
SNSSympathetic nervous system
PNSParasympathetic nervous system
MLMachine learning
TPTrue positive
FPFalse positive
TNTrue negative
FNFalse negative
Mean RRMean of RR intervals
SDNNStandard deviation of the NN intervals
Mean HRMean of heart rate
RMSSDRoot means square of successive NN intervals differences
NN50Number of interval differences of successive NN intervals greater than 50 ms
pNN50Proportion derived by dividing NN50 by the total number of NN intervals
VLFVery low frequency
LFLow frequency
HFHigh frequency
LF/HFLow Frequency to High-Frequency ratio
BMIBody mass index
SVMSupport Vector Machine
KNNK-Nearest Neighbor
SMOTESynthetic Minority Oversampling Technique
RBFRadial basis function

References

  1. WorkSafe Queensland. Preventing and Managing Fatigue-Related Risk in the Workplace. In Workplace Health and Safety Queensland; Queensland Government: Brisbane, Australia, 2020. [Google Scholar]
  2. Batson, G. Exercise-Induced Central Fatigue: A Review of the Literature with Implications for Dance Science Research. J. Danc. Med. Sci. 2013, 17, 53–62. [Google Scholar] [CrossRef]
  3. Barlian, B.; Setiawan, Y.; Hurriyati, R. Work-Family Conflict, Workload and Burnout as a Determinant Factor on Employee Performance. In Proceedings of the 6th Global Conference on Business, Management, and Entrepreneurship (GCBME 2021), Bandung, Indonesia/Online, 18 August 2021; Volume 657. [Google Scholar] [CrossRef]
  4. Artanto, A.; Chairani, L.; Belia, M.N.; Ghiffari, A. The Relationship between Shift Work and Occupational Fatigue on Nurses Working on the Pediatrics and Internal Wards of Muhammadiyah Palembang Hospital. Br. Int. Exact Sci. (BIoEx) J. 2021, 3, 144–150. [Google Scholar] [CrossRef]
  5. Kementerian Kesehatan RI. Rencana Aksi Kegiatan Direktorat Penyediaan Tenaga Kesehatan TA 2020–2024. Available online: https://repositori-ditjen-nakes.kemkes.go.id/ (accessed on 20 October 2024).
  6. America Psychological Association. 2023 Work in America™ Survey. Available online: https://www.apa.org/pubs/reports/work-in-america/2023-workplace-health-well-being (accessed on 20 October 2024).
  7. Cunningham, T.R.; Guerin, R.J.; Ferguson, J.; Cavallari, J. Work-Related Fatigue: A Hazard for Workers Experiencing Disproportionate Occupational Risks. Am. J. Ind. Med. 2022, 65, 913–925. [Google Scholar] [CrossRef] [PubMed]
  8. National Safety Council. Fatigue in Safety-Critical Industries: Impact, Risks and Recommendations; Final Report; National Safety Council: Itasca, IL, USA, 2018. [Google Scholar]
  9. National Safety Council. Fatigue in the Workplace: Causes and Consequences of Employee Fatigue; National Safety Council: Itasca, IL, USA, 2017; Volume 302. [Google Scholar]
  10. Garrick, R.; Sullivan, J.J.; Doran, M.; Keenan, J. The Role of the Hospital in the Healthcare System. In The Modern Hospital: Patients Centered, Disease Based, Research Oriented, Technology Driven; Springer Nature: London, UK, 2019. [Google Scholar] [CrossRef]
  11. Kementerian Kesehatan. Profil Kesehatan Indonesia 2022. Available online: https://kemkes.go.id/eng/profil-kesehatan-indonesia-2022 (accessed on 20 October 2024).
  12. Dembe, A.E.; Erickson, J.B.; Delbos, R.G.; Banks, S.M. The Impact of Overtime and Long Work Hours on Occupational Injuries and Illnesses: New Evidence from the United States. Occup. Environ. Med. 2005, 62, 588–597. [Google Scholar] [CrossRef]
  13. Yuan, S.C.; Chou, M.C.; Chen, C.J.; Lin, Y.J.; Chen, M.C.; Liu, H.H.; Kuo, H.W. Influences of Shift Work on Fatigue among Nurses. J. Nurs. Manag. 2011, 19, 339–345. [Google Scholar] [CrossRef] [PubMed]
  14. How to create a Healthy Nurse Schedule for Your Team. Available online: https://dropstat.com/blog/employee-scheduling/healthy-nurse-shift-schedule/ (accessed on 20 October 2024).
  15. Knauth, P.; Hornberger, S. Preventive and compensatory measures for shift workers. Occup. Med. 2003, 53, 109–116. [Google Scholar] [CrossRef] [PubMed]
  16. Harris, R.; Sims, S.; Parr, J.; Davies, N. Impact of 12h Shift Patterns in Nursing: A Scoping Review. Int. J. Nurs. Stud. 2015, 52, 605–634. [Google Scholar] [CrossRef]
  17. Rhéaume, A.; Mullen, J. The Impact of Long Work Hours and Shift Work on Cognitive Errors in Nurses. J. Nurs. Manag. 2018, 26, 26–32. [Google Scholar] [CrossRef]
  18. Perveen, K. Role of Nurses in Intensive Care Unit. NURSEARCHER J. Nurs. Midwifery Sci. 2022, 2, 01. [Google Scholar] [CrossRef]
  19. Alahmadi, B.; Alharbi, M. Work-Related Fatigue Factors among Hospital Nurses: An Integrative Literature Review. Nurse Media J. Nurs. 2019, 8, 113–133. [Google Scholar] [CrossRef]
  20. Dall’Ora, C.; Ejebu, O.Z.; Ball, J.; Griffiths, P. Shift work characteristics and burnout among nurses: Cross-sectional survey. Occup. Med. 2023, 73, 199–204. [Google Scholar] [CrossRef]
  21. Peršolja, M. Effects of nurses’ schedule characteristics on fatigue: An integrative review. Nurs. Manag. 2023, 54, 28–37. [Google Scholar] [CrossRef]
  22. Cucu; Nuraeni, H.; Muryani, A. Analisis Beban Kerja Perawat Di Ruang Rawat Inap Rumah Sakit Gigi Mulut Universitas Padjadjaran Tahun 2018. J. Sist. Kesehat. 2019, 4, 164–172. [Google Scholar] [CrossRef]
  23. International Council of Nurses. The COVID-19 Effect: World’s Nurses Facing Mass Trauma, an Immediate Danger to the Profession and Future of Our Health Systems; International Council of Nurses: Geneva, Switzerland, 2021. [Google Scholar]
  24. Lasebikan, V.O.; Oyetunde, M.O. Burnout among nurses in a Nigerian general hospital: Prevalence and associated factors. Int. Sch. Res. Not. 2012, 2012, 402157. [Google Scholar] [CrossRef]
  25. Sharplin, G.; Clarke, J.; Eckert, M. Assessing the Global Sustainability of the Nursing Workforce. 2025. Available online: https://www.icn.ch/sites/default/files/2025-04/ICN_NNA-Presidents-Survey-Report_EN_FINAL.pdf (accessed on 20 October 2024).
  26. Schaffarczyk, M.; Rogers, B.; Reer, R.; Gronwald, T. Validity of the Polar H10 Sensor for Heart Rate Variability Analysis during Resting State and Incremental Exercise in Recreational Men and Women. Sensors 2022, 22, 6536. [Google Scholar] [CrossRef]
  27. Ni, Z.; Sun, F.; Li, Y. Heart Rate Variability-Based Subjective Physical Fatigue Assessment. Sensors 2022, 22, 3199. [Google Scholar] [CrossRef]
  28. Li, X.; Zhu, W.; Sui, X.; Zhang, A.; Chi, L.; Lv, L. Assessing Workplace Stress Among Nurses Using Heart Rate Variability Analysis with Wearable ECG Device–A Pilot Study. Front. Public Health 2022, 9, 810577. [Google Scholar] [CrossRef]
  29. World Health Organization. State of the World’s Nursing 2020: Investing in Education, Jobs and Leadership; World Health Organization: Geneva, Switzerland, 2020. [Google Scholar]
  30. Sarker, I.H. Machine Learning: Algorithms, Real-World Applications and Research Directions. SN Comput. Sci. 2021, 2, 160. [Google Scholar] [CrossRef]
  31. Murphy, K.P. Machine Learning: A Probabilistic Perspective (Adaptive Computation and Machine Learning Series); MIT Press: Cambridge, MA, USA, 2012; Volume 621485037. [Google Scholar]
  32. Xie, W.; Liu, M.; Okoli, C.T.C.; Zeng, L.; Huang, S.; Ye, X.; Liu, F.; Wang, J. Construction and Evaluation of a Predictive Model for Compassion Fatigue among Emergency Department Nurses: A Cross-Sectional Study. Int. J. Nurs. Stud. 2023, 148, 104613. [Google Scholar] [CrossRef]
  33. Tasnim, A.F.; Rahman, R.; Prabha, M.; Hossain, M.A.; Nilima, S.I.; Mahmud, M.A.A.; Erdei, T.I. Explainable machine learning algorithms to predict cardiovascular strokes. Eng. Technol. Appl. Sci. Res. 2025, 15, 20131–20137. [Google Scholar] [CrossRef]
  34. Halomoan, J.; Ramli, K.; Sudiana, D.; Gunawan, T.S.; Salman, M. A New ECG Data Processing Approach to Developing an Accurate Driving Fatigue Detection Framework with Heart Rate Variability Analysis and Ensemble Learning. Information 2023, 14, 210. [Google Scholar] [CrossRef]
  35. Ramos, G.; Vaz, J.R.; Mendonça, G.V.; Pezarat-Correia, P.; Rodrigues, J.; Alfaras, M.; Gamboa, H.; Zou, L. Fatigue Evaluation through Machine Learning and a Global Fatigue Descriptor. J. Healthc. Eng. 2020, 2020, 6484129. [Google Scholar] [CrossRef]
  36. Liao, L.; Li, J. Research on Effect of Load Stimulation Change on Heart Rate Variability of Women Volleyball Athletes. Comput. Intell. Neurosci. 2022, 2022, 3917415. [Google Scholar] [CrossRef]
  37. Anwer, S.; Li, H.; Umer, W.; Antwi-Afari, M.F.; Mehmood, I.; Yu, Y.; Haas, C.; Wong, A.Y.L. Identification and Classification of Physical Fatigue in Construction Workers Using Linear and Nonlinear Heart Rate Variability Measurements. J. Constr. Eng. Manag. 2023, 149, 04023057. [Google Scholar] [CrossRef]
  38. Qin, H.; Zhou, X.; Ou, X.; Liu, Y.; Xue, C. Detection of Mental Fatigue State Using Heart Rate Variability and Eye Metrics during Simulated Flight. Hum. Factors Ergon. Manuf. 2021, 31, 637–651. [Google Scholar] [CrossRef]
  39. Liu, S.S.H.; Ma, C.J.; Chou, F.Y.; Cheng, M.Y.C.; Wang, C.H.; Tsai, C.L.; Duh, W.J.; Huang, C.H.; Lai, F.; Lu, T.C. Applying a Smartwatch to Predict Work-Related Fatigue for Emergency Healthcare Professionals: Machine Learning Method. West. J. Emerg. Med. 2023, 24, 693–702. [Google Scholar] [CrossRef]
  40. Faul, F.; Erdfelder, E.; Buchner, A.; Lang, A. Statistical power analyses using G*Power 3.1: Tests for correlation and regression analyses. Behav. Res. Methods 2009, 41, 1149–1160. [Google Scholar] [CrossRef]
  41. Bujang, M.A.; Adnan, T.H. Requirements for minimum sample size for sensitivity and specificity analysis. J. Clin. Diagn. Res. 2016, 10, YE01–YE06. [Google Scholar] [CrossRef]
  42. McCraty, R.; Shaffer, F. Heart Rate Variability: New Perspectives on Physiological Mechanisms, Assessment of Self-Regulatory Capacity, and Health Risk. Glob. Adv. Health Med. 2015, 4, 46–61. [Google Scholar] [CrossRef]
  43. Daskalovska, N.; Hadzi-Nikolova, A.; Alogjozovska, N.J. The use of metacognitive listening strategies by English language learners. Eur. J. Engl. Lang. Teach. 2023, 8. [Google Scholar] [CrossRef]
  44. Ries, D.; Gabriel Huerta, J. Predicting Fatigue from Heart Rate Signatures Using Functional Logistic Regression. Stat 2023, 12, e595. [Google Scholar] [CrossRef]
  45. Sanz, H.; Reverter, F.; Valim, C. Enhancing SVM for Survival Data Using Local Invariances and Weighting. BMC Bioinform. 2020, 21, 193. [Google Scholar] [CrossRef]
  46. Zhang, C.; Yu, X. Estimating Mental Fatigue Based on Electroencephalogram and Heart Rate Variability. Pol. J. Med. Phys. Eng. 2010, 16, 67–84. [Google Scholar] [CrossRef]
  47. Huang, S.; Li, J.; Zhang, P.; Zhang, W. Detection of Mental Fatigue State with Wearable ECG Devices. Int. J. Med. Inform. 2018, 119, 39–46. [Google Scholar] [CrossRef]
  48. Wang, J.S.; Lin, C.W.; Yang, Y.T.C. A K-Nearest-Neighbor Classifier with Heart Rate Variability Feature-Based Transformation Algorithm for Driving Stress Recognition. Neurocomputing 2013, 116, 136–143. [Google Scholar] [CrossRef]
  49. Mi, X.; Zou, B.; Zou, F.; Hu, J. Permutation-Based Identification of Important Biomarkers for Complex Diseases via Machine Learning Models. Nat. Commun. 2021, 12, 3008. [Google Scholar] [CrossRef] [PubMed]
  50. Järvelin-Pasanen, S.; Sinikallio, S.; Tarvainen, M.P. Heart rate variability and occupational stress—Systematic review. Ind. Health 2018, 56, 500–511. [Google Scholar] [CrossRef]
  51. Jelmini, J.D.; Ross, J.; Whitehurst, L.N.; Heebner, N.R. The effect of extended shift work on autonomic function in occupational settings: A systematic review and meta-analysis. J. Occup. Health 2023, 65, e12409. [Google Scholar] [CrossRef]
  52. van Amelsvoort, L.G.; Schouten, E.G.; Maan, A.C.; Swenne, K.A.; Kok, F.J. 24-Hour heart rate variability in shift workers: Impact of shift schedule. J. Occup. Health 2001, 43, 32–38. [Google Scholar] [CrossRef]
  53. Goffeng, E.M.; Nordby, K.C.; Tarvainen, M.P.; Järvelin-Pasanen, S.; Wagstaff, A.; Goffeng, L.O.; Bugge, M.; Skare, Ø.; Lie, J.A.S. Fluctuations in heart rate variability of health care workers during four consecutive extended work shifts and recovery during rest and sleep. Ind. Health 2018, 56, 122–131. [Google Scholar] [CrossRef]
  54. Thayer, J.F.; Åhs, F.; Fredrikson, M.; Sollers, J.J.; Wager, T.D. A Meta-Analysis of Heart Rate Variability and Neuroimaging Studies: Implications for Heart Rate Variability as a Marker of Stress and Health. Neurosci. Biobehav. Rev. 2012, 36, 747–756. [Google Scholar] [CrossRef]
  55. Fredrickson, B.L.; Cohn, M.A.; Coffey, K.A.; Pek, J.; Finkel, S.M. Open hearts build lives: Positive emotions, induced through loving-kindness meditation, build consequential personal resources. J. Personal. Soc. Psychol. 2008, 95, 1045–1062. [Google Scholar] [CrossRef] [PubMed]
  56. Salmani, S.; Salehpoor Emran, M.; Sadooghiasl, A.; Haghani, S.; Pashaeypoor, S. The Relationship between Mental Fatigue and Social Responsibility among Nurses Who Provided Care to Patients with Coronavirus Disease 2019: A Cross-Sectional Study. BMC Nurs. 2023, 22, 263. [Google Scholar] [CrossRef]
  57. Chang, H.E.; Cho, S.H. Nurses’ Steps, Distance Traveled, and Perceived Physical Demands in a Three-Shift Schedule. Hum. Resour. Health 2022, 20, 72. [Google Scholar] [CrossRef] [PubMed]
  58. Finan, P.H.; Quartana, P.J.; Smith, M.T. The Effects of Sleep Continuity Disruption on Positive Mood and Sleep Architecture in Healthy Adults. Sleep 2015, 38, 1735–1742. [Google Scholar] [CrossRef]
  59. Lehrer, P.M.; Gevirtz, R. Heart Rate Variability Biofeedback: How and Why Does It Work? Front. Psychol. 2014, 5, 756. [Google Scholar] [CrossRef] [PubMed]
  60. Van Amelsvoort, L.G.P.M.; Schouten, E.G.; Maan, A.C.; Swenne, C.A.; Kok, F.J. Occupational Determinants of Heart Rate Variability. Int. Arch. Occup. Environ. Health 2000, 73, 255–262. [Google Scholar] [CrossRef]
  61. Jarczok, M.N.; Jarczok, M.; Mauss, D.; Koenig, J.; Li, J.; Herr, R.M.; Thayer, J.F. Autonomic Nervous System Activity and Workplace Stressors—A Systematic Review. Neurosci. Biobehav. Rev. 2013, 37, 1810–1823. [Google Scholar] [CrossRef]
  62. Ring, M.; Eskofier, B.M. An Approximation of the Gaussian RBF Kernel for Efficient Classification with SVMs. Pattern Recognit. Lett. 2016, 84, 107–113. [Google Scholar] [CrossRef]
  63. Sagherian, K.; Steege, L.M.; Cobb, S.J.; Cho, H. Insomnia, Fatigue and Psychosocial Well-Being during COVID-19 Pandemic: A Cross-Sectional Survey of Hospital Nursing Staff in the United States. J. Clin. Nurs. 2023, 32, 5382–5395. [Google Scholar] [CrossRef]
  64. Alsabry, A.; Algabri, M.; Ahsan, A.M.; Mosleh, M.A.A.; Ahmed, A.A.; Qasem, H.A. Enhancing Prediction Models’ Performance for Breast Cancer Using SMOTE Technique. In Proceedings of the 2023 3rd International Conference on Emerging Smart Technologies and Applications, eSmarTA 2023, Taiz, Yemen, 10–11 October 2023. [Google Scholar] [CrossRef]
  65. Tran, Y.; Wijesuriya, N.; Tarvainen, M.; Karjalainen, P.; Craig, A. The Relationship between Spectral Changes in Heart Rate Variability and Fatigue. J. Psychophysiol. 2009, 23, 143–151. [Google Scholar] [CrossRef]
  66. Åkerstedt, T.; Folkard, S. The three-process model of alertness and its extension to performance, sleep latency, and sleep length. Chronobiol. Int. 1997, 14, 115–123. [Google Scholar] [CrossRef] [PubMed]
  67. Kakhi, K.; Jagatheesaperumal, S.K.; Khosravi, A.; Alizadehsani, R.; Acharya, U.R. Fatigue Monitoring Using Wearables and AI: Trends, Challenges, and Future Opportunities. arXiv 2024, arXiv:2412.16847. [Google Scholar] [CrossRef]
Figure 1. Research workflow.
Figure 1. Research workflow.
Safety 11 00048 g001
Figure 2. Data classification process.
Figure 2. Data classification process.
Safety 11 00048 g002
Figure 3. (a) Profile Plots Estimated Marginal Means of Mean RR, (b) Profile Plots Estimated Marginal Means of Mean HR. Abbreviations: Mean RR = Mean of RR intervals; Mean HR = Mean of heart rate.
Figure 3. (a) Profile Plots Estimated Marginal Means of Mean RR, (b) Profile Plots Estimated Marginal Means of Mean HR. Abbreviations: Mean RR = Mean of RR intervals; Mean HR = Mean of heart rate.
Safety 11 00048 g003
Figure 4. Feature Importance of Fatigue Model. Abbreviations: Mean RR = Mean of RR intervals; SDNN = Standard deviation of the NN intervals; Mean HR, = Mean of heart rate; RMSSD = Root means square of successive NN intervals differences; NN50 = Number of interval differences of successive NN intervals greater than 50 ms; pNN50 = Proportion derived by dividing NN50 by the total number of NN intervals; VLF = Very low frequency; LF = low frequency; HF = High frequency; LF/HF = Low Frequency to High-Frequency ratio.
Figure 4. Feature Importance of Fatigue Model. Abbreviations: Mean RR = Mean of RR intervals; SDNN = Standard deviation of the NN intervals; Mean HR, = Mean of heart rate; RMSSD = Root means square of successive NN intervals differences; NN50 = Number of interval differences of successive NN intervals greater than 50 ms; pNN50 = Proportion derived by dividing NN50 by the total number of NN intervals; VLF = Very low frequency; LF = low frequency; HF = High frequency; LF/HF = Low Frequency to High-Frequency ratio.
Safety 11 00048 g004
Table 1. Summary of HRV features.
Table 1. Summary of HRV features.
FeaturesMorning ShiftAfternoon ShiftNight Shift
BeforeAfterBeforeAfterBeforeAfter
Mean RR726.71 ± 78.48739.88 ± 81.52687.84 ± 71.55786.32 ± 87.67721.93 ± 71.74803.31 ± 86.70
SDNN29.64 ± 9.5329.81 ± 9.6229.89 ± 13.8835.90 ± 14.2628.22 ± 9.6035.38 ± 15.64
Mean HR83.50 ± 9.2182.03 ± 9.0088.18 ± 9.7577.33 ± 9.9083.89 ± 8.4075.54 ± 8.46
RMSSD28.71 ± 13.4129.85 ± 12.8026.62 ± 16.0735.69 ± 16.8026.37 ± 10.8037.27 ± 22.34
NN5040.13 ± 45.2141.17 ± 36.8939.75 ± 55.2963.45 ± 56.3330.94 ± 32.0470.52 ± 73.54
pNN5010.65 ± 12.4011.03 ± 10.429.68 ± 13.7517.51 ± 15.677.59 ± 7.8420.39 ± 22.13
VLF64.62 ± 61.5158.42 ± 49.0451.49 ± 40.7485.40 ± 106.5163.94 ± 82.84130.83 ± 165.2
LF342.44 ± 190.8316.73 ± 170.0409.26 ± 333.3560.49 ± 469.9346.9 ± 189.29513.8 ± 362.08
HF481.62 ± 428.3501.41 ± 384.07605.48 ± 705.3689.04 ± 626.1392.64 ± 307.1724.81 ± 819.6
LF/HF1.07 ± 0.740.90 ± 0.571.45 ± 1.501.32 ± 1.221.76 ± 2.051.58 ± 1.61
Abbreviations: Mean RR = Mean of RR intervals; SDNN = Standard deviation of the NN intervals; Mean HR, = Mean of heart rate; RMSSD = Root means square of successive NN intervals differences; NN50 = Number of interval differences of successive NN intervals greater than 50 ms; pNN50 = Proportion derived by dividing NN50 by the total number of NN intervals; VLF = Very low frequency; LF = low frequency; HF = High frequency; LF/HF = Low Frequency to High-Frequency ratio.
Table 2. Summary of SOFI.
Table 2. Summary of SOFI.
SummaryLack of
Energy
Lack of
Motivation
SleepinessPhysical
Exertion
Physical DiscomfortTotal Score
n606060606060
Mean4.84.63.02.82.84.6
St Dev7.887.877.928.188.168.18
Min2.01.02.01.01.01.0
Max6.05.45.85.05.45.5
Abbreviations: n = number of samples; St Dev = standard of deviation; min = minimum value; max = maximum value; Lack of Energy = measure of perceived low energy levels; Lack of Motivation = measure of perceived deficiency in drive or willingness to perform tasks; Sleepiness = measure of the tendency to feel drowsy or have difficulty staying awake; Physical Exertion = measure of the perceived physical strain or effort; Physical Discomfort = measure of perceived physical pain or discomfort; Total Score = aggregate fatigue score (sum of individual subscale scores).
Table 3. Summary of Mixed ANOVA Tests Between-Subjects Effects.
Table 3. Summary of Mixed ANOVA Tests Between-Subjects Effects.
MeasuredfMean Square
(95% CI)
FSig.
Mean RR20.0030.8290.442
SDNN20.0050.0880.916
Mean HR20.0030.8290.442
RMSSD20.0020.0220.978
NN5020.0190.0200.980
pNN5020.0320.0430.958
VLF20.1100.5940.555
LF20.0820.5870.559
HF20.0480.1160.891
LF/HF20.1800.8840.419
Abbreviations: df = degrees of freedom; Mean Square (95% CI) = Variance estimate (sum of squares/df) with 95% confidence interval for the mean difference; F = F-statistic (ratio of between-group variance to within-group variance); Sig. = significance level (p-value); Mean RR = Mean of RR intervals; SDNN = Standard deviation of the NN intervals; Mean HR, = Mean of heart rate; RMSSD = Root means square of successive NN intervals differences; NN50 = Number of interval differences of successive NN intervals greater than 50 ms; pNN50 = Proportion derived by dividing NN50 by the total number of NN intervals; VLF = Very low frequency; LF = low frequency; HF = High frequency; LF/HF = Low Frequency to High-Frequency ratio.
Table 4. Summary of Mixed ANOVA Tests Within-Subjects Effects.
Table 4. Summary of Mixed ANOVA Tests Within-Subjects Effects.
MeasuredfMean Square
(95% CI)
FSig.
Mean RR10.04159.4370.000 **
SDNN10.0957.4610.008 **
Mean HR10.04159.4320.000 **
RMSSD10.25415.7340.000 **
NN5011.98910.0630.002 **
pNN5011.72310.8070.002 **
VLF10.6784.3790.041 *
LF10.1401.8470.179
HF10.5717.6950.007 **
LF/HF10.1462.7100.105
* p < 0.050, ** p < 0.010. Abbreviations: df = degrees of freedom; Mean Square (95% CI) = Variance estimate (sum of squares/df) with 95% confidence interval for the mean difference; F = F-statistic (ratio of between-group variance to within-group variance); Sig. = significance level (p-value); Mean RR = Mean of RR intervals; SDNN = Standard deviation of the NN intervals; Mean HR, = Mean of heart rate; RMSSD = Root means square of successive NN intervals differences; NN50 = Number of interval differences of successive NN intervals greater than 50 ms; pNN50 = Proportion derived by dividing NN50 by the total number of NN intervals; VLF = Very low frequency; LF = low frequency; HF = High frequency; LF/HF = Low Frequency to High-Frequency ratio.
Table 5. Summary of HRV and SOFI Pearson’s Correlation.
Table 5. Summary of HRV and SOFI Pearson’s Correlation.
PairPearson’s R
(95% CI)
SDNN and Sleepiness−0.222
SDNN and Physical Exertion−0.214
SDNN and Physical Discomfort−0.244
Mean HR and Sleepiness0.230
RMSSD and Sleepiness−0.275 *
NN50 and Sleepiness−0.306 *
pNN50 and Sleepiness−0.306 *
VLF and Lack of Motivation−0.230
VLF and Sleepiness−0.231
VLF and Physical Exertion−0.260 *
VLF and Physical Discomfort−0.268 *
LF and Physical Exertion−0.220
LF and Physical Discomfort−0.225
HF and Sleepiness−0.230
HF and Physical Discomfort−0.227
* p < 0.050. Abbreviations: Pearson’s R = Pearson’s correlation coefficient (measure of linear correlation between two variables); 95% CI = 95% confidence interval; Mean RR = Mean of RR intervals; SDNN = Standard deviation of the NN intervals; Mean HR, = Mean of heart rate; RMSSD = Root means square of successive NN intervals differences; NN50 = Number of interval differences of successive NN intervals greater than 50 ms; pNN50 = Proportion derived by dividing NN50 by the total number of NN intervals; VLF = Very low frequency; LF = low frequency; HF = High frequency; LF/HF = Low Frequency to High-Frequency ratio, Lack of Energy = measure of perceived low energy levels; Lack of Motivation = measure of perceived deficiency in drive or willingness to perform tasks; Sleepiness = measure of the tendency to feel drowsy or have difficulty staying awake; Physical Exertion = measure of the perceived physical strain or effort; Physical Discomfort = measure of perceived physical pain or discomfort; Total Score = aggregate fatigue score (sum of individual subscale scores).
Table 6. Classification Model Performance Evaluation.
Table 6. Classification Model Performance Evaluation.
ClassifierAccuracy (Training)Accuracy (Testing)PrecisionRecallF1-ScoreComputation Time
Logistic Regression0.63480.47220.62000.47000.48001.13
SVM (Linear)0.60110.61100.75000.61000.64000.83
SVM (Quadratic)0.87900.55560.61000.56000.58001.37
SVM (Cubic)0.98390.55560.61000.56000.58001.45
SVM (Fine Gaussian)0.97580.81480.81000.81000.81001.60
SVM (Coarse Gaussian)0.75810.69440.73000.69000.71001.57
k-NN0.96090.52780.53000.52000.52003.04
Abbreviations: Classifier = The machine-learning algorithm used (e.g., Logistic Regression, SVM variants, and k-NN); Accuracy (Training) = The percentage of correctly classified instances during the training phase; Accuracy (Testing) = The percentage of correctly classified instances during the testing phase; Precision = The ratio of true positive predictions to the total number of positive predictions; Recall = The ratio of true positive predictions to the actual number of positives; F1-Score = The harmonic mean of precision and recall; Computation Time = The time required to train and/or test the classifier (in seconds).
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Hafiz, W.S.; Puspasari, M.A.; Fitriani, D.Y.; Hanowski, R.J.; Syaifullah, D.H.; Arista, S.A. Developing a Fatigue Detection Model for Hospital Nurses Using HRV Measures and Machine Learning. Safety 2025, 11, 48. https://doi.org/10.3390/safety11020048

AMA Style

Hafiz WS, Puspasari MA, Fitriani DY, Hanowski RJ, Syaifullah DH, Arista SA. Developing a Fatigue Detection Model for Hospital Nurses Using HRV Measures and Machine Learning. Safety. 2025; 11(2):48. https://doi.org/10.3390/safety11020048

Chicago/Turabian Style

Hafiz, Wynona Salsabila, Maya Arlini Puspasari, Dewi Yunia Fitriani, Richard Joseph Hanowski, Danu Hadi Syaifullah, and Salsabila Annisa Arista. 2025. "Developing a Fatigue Detection Model for Hospital Nurses Using HRV Measures and Machine Learning" Safety 11, no. 2: 48. https://doi.org/10.3390/safety11020048

APA Style

Hafiz, W. S., Puspasari, M. A., Fitriani, D. Y., Hanowski, R. J., Syaifullah, D. H., & Arista, S. A. (2025). Developing a Fatigue Detection Model for Hospital Nurses Using HRV Measures and Machine Learning. Safety, 11(2), 48. https://doi.org/10.3390/safety11020048

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