Next Article in Journal
Derivative Method to Detect Sleep and Awake States through Heart Rate Variability Analysis Using Machine Learning Algorithms
Previous Article in Journal
mmWave-RM: A Respiration Monitoring and Pattern Classification System Based on mmWave Radar
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Driver Fatigue Detection Using Heart Rate Variability Features from 2-Minute Electrocardiogram Signals While Accounting for Sex Differences

by
Chao Zeng
1,2,
Jiliang Zhang
1,
Yizi Su
3,
Shuguang Li
4,
Zhenyuan Wang
3,
Qingkun Li
5 and
Wenjun Wang
3,*
1
College of Information Science and Engineering, Henan University of Technology, Zhengzhou 450001, China
2
Hami Vocational and Technical College, Hami 839001, China
3
School of Vehicle and Mobility, Tsinghua University, Beijing 100084, China
4
School of Automation Engineering, University of Electronic Science and Technology of China, Chengdu 611731, China
5
Beijing Key Laboratory of Human-Computer Interaction, Institute of Software, Chinese Academy of Sciences, Beijing 100190, China
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(13), 4316; https://doi.org/10.3390/s24134316
Submission received: 30 May 2024 / Revised: 22 June 2024 / Accepted: 1 July 2024 / Published: 3 July 2024

Abstract

:
Traffic accidents due to fatigue account for a large proportion of road fatalities. Based on simulated driving experiments with drivers recruited from college students, this paper investigates the use of heart rate variability (HRV) features to detect driver fatigue while considering sex differences. Sex-independent and sex-specific differences in HRV features between alert and fatigued states derived from 2 min electrocardiogram (ECG) signals were determined. Then, decision trees were used for driver fatigue detection using the HRV features of either all subjects or those of only males or females. Nineteen, eighteen, and thirteen HRV features were significantly different (Mann–Whitney U test, p < 0.01) between the two mental states for all subjects, males, and females, respectively. The fatigue detection models for all subjects, males, and females achieved classification accuracies of 86.3%, 94.8%, and 92.0%, respectively. In conclusion, sex differences in HRV features between drivers’ mental states were found according to both the statistical analysis and classification results. By considering sex differences, precise HRV feature-based driver fatigue detection systems can be developed. Moreover, in contrast to conventional methods using HRV features from 5 min ECG signals, our method uses HRV features from 2 min ECG signals, thus enabling more rapid driver fatigue detection.

1. Introduction

Driver fatigue caused by inadequate sleep, circadian rhythm disruption, and prolonged mental activity has become a primary contributor to traffic accidents and a major public health concern. Statistics indicate that drowsy driving accounts for up to 20–25% of all motor vehicle crashes and is responsible for thousands of deaths each year [1]. Driver fatigue leads to impaired reaction times, reduced vigilance, information processing deficits, and lapsed attention, which are all extremely dangerous while operating a vehicle. Detecting driver fatigue through accurate, timely methods is therefore essential for preventing these often-fatal incidents. With the development of more rapid and reliable approaches for monitoring fatigue levels while driving, drivers could be alerted of potential issues, enabling interventions before disastrous accidents occur. This highlights the need for research focused on real-time driver fatigue detection based on psychophysiological metrics.
Heart rate variability (HRV) is a promising psychophysiological indicator of driver fatigue that can be unobtrusively measured in real-world settings [2,3]. HRV refers to subtle variations in the intervals between successive heartbeats, which reflect dynamic changes in autonomic nervous system activity [2]. The autonomic nervous system, which is composed of sympathetic and parasympathetic branches, regulates involuntary processes such as heart rate to maintain homeostasis and adapt to situational demands [4,5]. As electrocardiography (ECG) can reflect the electrical activity of a beating heart, HRV data derived from ECG could be used for investigations of cardiac autonomic modulation and of the interactions between sympathetic and parasympathetic activity. Frequency domain HRV markers, such as the power in the high-frequency (HF) and low-frequency (LF) bands, provide information on parasympathetic and sympathetic activity, respectively [6,7]. Moreover, time-domain HRV markers and nonlinear HRV markers indicate different driver states [4,8,9]. HRV is influenced by various factors, including age, sex, cardiorespiratory fitness level, circadian rhythms, and psychological stress [10]. Moreover, the optimal duration for HRV analysis depends on the specific marker and application context. For instance, standard short-term HRV assessments involve 5 min electrocardiogram (ECG) recordings, but some markers can be detected based on 1–2 min segments [11]. Research indicates that certain HRV features are altered while driving in a fatigued state; these include changes in the LF/HF ratio and complexity metrics [12,13].
While HRV shows potential for detecting driver fatigue, prior works have several limitations. In standard HRV analysis, 5 min ECG recordings are acquired to ensure the stability of the obtained markers; however, these recordings delay the detection of fatigue onset during driving [14]. The Task Force guidelines on HRV measurement [2], interpretation, and clinical use suggest that 5 min is the optimal duration for short-term HRV analysis, while 2 min is the acceptable minimum duration (although certain features, such as very-low-frequency (VLF) domain features, may lose physiological significance with this duration). Although some studies have explored the extraction of limited HRV features from shorter ECG signals (e.g., 60 s or even 30 s) [15,16,17,18], these methods have not been widely used due to their limited feature extraction potential. In driver fatigue detection, the ability to detect fatigue using shorter ECG signals is advantageous, enabling faster alerts and intervention for drivers. If fatigue can be detected using shorter ECG signals, quicker warnings and interventions to prevent potential accidents could be implemented.
The relationship between HRV and driver fatigue is complex and influenced by various factors related to the individuals being studied. One important factor affecting HRV features is sex. Research has consistently shown that sex considerably impacts HRV characteristics [19,20,21,22]. Studies have established that sex influences HRV features, with females exhibiting greater parasympathetic activity markers such as HF power [23,24,25]. However, in driver fatigue, few studies have comprehensively examined sex-specific HRV features during wakefulness and fatigue on the basis of 2 min ECG signals. Furthermore, no studies have built driver fatigue detection models based on sex-specific HRV features, accounting for the influence of sex on the relationship between HRV features and fatigue.
To address these research gaps, in the present study, we aimed to extract comprehensive sets of time-domain, frequency-domain, and nonlinear HRV features specific to each sex from 2 min ECG signals. We adopted a decision tree as a classification method because this approach can contend with multivariate nonlinear features and outliers and demonstrates stronger interpretative abilities than other popular classifiers such as support vector machines and artificial neural networks [26].
The objectives of this study are to investigate the relationship between HRV features and driver fatigue considering sex-specific characteristics and to develop sex-specific driver fatigue detection models using decision tree classifiers. The remainder of this paper is organized as follows. Section 2 presents the methodology employed in this study. Section 3 and Section 4 present the results and discussion. Finally, the conclusions are presented in Section 5.

2. Materials and Methods

2.1. Data Acquisition and Processing

ECG and facial expression data were collected from nine male and nine female college students with legal driver licenses during simulated driving experiments and further processed. The age of the subjects was 25.95 ± 2.67 years, and the BMI of the subjects was 21.03 ± 2.87 kg/m2. Subjects were asked to refrain from consuming caffeine, alcohol, and tea on the testing day. The experiments, which involved a straight highway driving scenario, were performed in a driving simulator (Figure 1) with six degrees of freedom. The duration of the experiments was 60 min, and during that period, the subject drove a car in a virtual environment with no interruptions, and there were no other cars in the scenario.
From videos of each driver’s facial expressions, five well-trained experts evaluated the driver’s mental state every minute as ‘alert’, ‘fatigued’, or ‘very fatigued’ according to the criteria in Table 1. Then, the 60 min videos were divided into 59 two-minute segments, with 50% overlap with the start and end of the subsequent and previous segments, respectively. For each segment, if both minutes were evaluated by three or more experts as ‘alert’, the segment was marked as an alert segment, and if both minutes were evaluated by three or more experts as ‘fatigued’ or ‘very fatigued’, the segment was marked as a fatigued segment; otherwise, the segment was marked as a discordant segment. With this approach, we obtained 272 alert segments and 638 fatigued segments for the following analyses, as well as 152 discordant segments, which were excluded from further analysis.
ECG signals (Figure 2) were acquired at a sampling frequency of 1 kHz with the modified lead II configuration adopted by the Biopac MP 150 system (Biopac Inc., Goleta, CA, USA). For all alert and fatigued video segments, the synchronously collected two-minute ECG segments were also extracted from the 60 min ECG signal. The R peaks were detected, and the HRV features listed in Table 2 were extracted using Kubios 3.0.2 (Kubios Oy, Kuopio, Finland) following the guideline of the Task Force [2].
In summary, during the 60 min simulated driving experiments, facial expressions and ECG signals were synchronously recorded, and then both recordings were divided into 59 successive two-minute segments. Each segment overlapped with the adjacent segments by 50%. Then, HRV features were extracted from each ECG segment, and the driver’s mental state was determined according to each facial expression segment for the following analysis. Interested readers can refer to Refs. [9,27] for a detailed description of the experimental design, fatigue assessment approach used for the video segments, and HRV feature extraction method.

2.2. Statistical Analysis

We calculated the means, standard deviations, medians, 1st quartiles (Q1), and 3rd quartiles (Q3) to describe the distributions of HRV features for subjects in the alert and fatigued states. The subjects were initially combined into one group, then divided into male and female groups. Mann–Whitney U tests were used to investigate the statistical significance of differences in features between subjects in the alert state and fatigued state in the combined, male, and female groups. Statistical analyses were performed with MATLAB version R2016b (The MathWorks Inc., Natick, MA, USA).

2.3. Classification and Performance Measurement

We adopted the decision tree algorithm as the classification method. ID3, C4.5, and CART are classic decision tree algorithms. Among them, the ID3 algorithm is a relatively early decision tree algorithm that cannot handle continuous-valued features, and the information may be biased because it favors selecting features with more values. The C4.5 algorithm is an improved approach proposed to address the issues of the ID3 algorithm. However, this algorithm introduces gain ratio and pruning, allowing it to be too flexible when applied to practical classification problems. The CART algorithm introduces the Gini coefficient to optimize computations; thus, this algorithm has simpler splitting rules, more unified splitting criteria, more efficient computations, shorter training times, and stronger robustness and stability than the C4.5 algorithm. Therefore, the CART decision tree is used as the classification method in this paper. The construction process of the decision tree is shown in Figure 3. For each categorizable dataset, different from the ID3 and C4.5 algorithms, the CART decision tree algorithm establishes a node and selects a feature with the smallest Gini coefficient as the split point from the given feature combination to split the dataset into two parts. Then, the model iterates until all nodes contain either the same class or the number of samples in the node is less than a certain threshold. In the ID3 and C4.5 algorithms, the selection of decision tree nodes is performed based on the entropy model. The entropy model involves many logarithmic operations to represent the classification performance of the current node of the decision tree which could slow the computation and affect the convergence of the model. The CART algorithm solves this problem by using the Gini coefficient instead of the entropy model to represent the performance of the node. The smaller the Gini coefficient is, the better the current node classification performance is.
In this study, two-minute HRV features of all subjects were divided into a training set and a test set at a ratio of 8:2. The training set was used to establish the classifier, and the test set was used to evaluate the performance of the classifier by computing the sensitivity (SEN), positive predictive value (PPV), and accuracy (ACC) using the following formulae:
SPE = TN TN + FP ,
SEN = TP TP + FN ,
PPV = TP TP + FP ,
ACC = TP + TN TP + TN + FP + FN
where TP is the number of ECG segments collected during the fatigued state that were correctly detected, TN is the number of ECG segments collected during the alert state that were correctly detected, FP is the number of ECG segments collected during the alert state that were incorrectly labeled as the fatigued state, and FN is the number of ECG segments collected during the fatigued state that were incorrectly labeled as the alert state.
The so-called exhaustive search method [7] was adopted for feature selection. All HRV feature subsets with two, three, and four features were listed, and decision tree models were established, with their performance evaluated. The number of combinations of two, three, and four HRV features chosen from twenty HRV features was 190, 1140, and 4845, respectively.

3. Results

Table 3 presents both the descriptive statistics and the results of the Mann–Whitney U test for the twenty HRV features of the drivers in the alert and fatigued states. Nineteen of the twenty HRV features showed significant (p < 0.01) differences between the two mental states. Compared with being alert, being fatigued led to significantly increased M R R , D R R , D R M S , N N N 15 , p N N 15 , P L F ( a b s ) , P H F ( a b s ) , P L F ( n u ) , r L F / H F , P t o t ( a b s ) , L S D 1 , L S D 2 , r S D 2 / S D 1 , α 1 , and D 2 values and significantly decreased M H R , P H F ( n u ) , E A P , and E S a m p values.
The drivers were then divided into male and female groups. In the male group, as shown in Table 4, the significant differences in all the features between the alert and fatigued states were essentially the same as those in the sex-independent group, except for D 2 , which significantly increased from the alert state to the fatigued state in the sex-independent group but was not significantly different between the two states in the male group. However, in the female group, as shown in Table 5, D 2 was significantly different between the two mental states. Moreover, E A P and E S a m p , which were significantly decreased from the alert state to the fatigued state in the sex-independent group and male group, were not significantly different in the female group. α 2 was the only feature that was not significantly different between the two mental states in all three groups. Box plots of the HRV features of drivers in different mental states and drivers of different sexes are shown in Figure 4.
We then compared the results of our previous studies [9,27], in which 5 min ECG segments were employed for HRV feature extraction, and the findings of this study to identify HRV features that differed significantly between the two mental states, as shown in Table 6. In particular, we focused on the change tendency of the HRV features between the alert and fatigued states. In the sex-independent, male, and female groups, twelve, eight, and six of the eighteen HRV features differed significantly between the two mental states in both our previous study and this study. Moreover, these features were considered to have the same change tendency if p < 0.01. Regarding the differences between the studies in terms of significantly different HRV features, in all cases, no significant difference in HRV features between the two mental states was shown in our previous study, while a significant difference was identified in the present study.
Table 7 shows the performance of the classifiers that achieved the highest accuracy based on subsets of two to four HRV features. For the sex-independent group, with subsets consisting of two features ( p N N 15 and r S D 2 / S D 1 ), three features ( M R R , N N N 15 , and r S D 2 / S D 1 ), and four features ( M R R , M H R , N N N 15 , and r S D 2 / S D 1 ), the models achieved the highest classification accuracies of 83.5%, 86.3%, and 86.3%, respectively. The results of the driver fatigue detection model with four features for this group are shown in Figure 5a. For the male group, with subsets consisting of two features ( M R R and r S D 2 / S D 1 ), three features ( P H F ( n u ) , α 2 , and D 2 ) and four features ( P H F ( a b s ) , L S D 2 , E S a m p , and α 1 ), the models achieved the highest classification accuracies of 92.0%, 93.5%, and 94.8%, respectively. The results of the driver fatigue detection model with four features for this group are shown in Figure 5b. For the female group, with subsets consisting of two features ( D R R and P L F ( a b s ) ), three features ( M R R , p N N 15 , and α 1 ), and four features ( M R R , p N N 15 , r S D 2 / S D 1 , and α 1 ), the models achieved the highest classification accuracies of 88.5%, 90.7%, and 92.0%, respectively. The results of the driver fatigue detection model with four features for this group are shown in Figure 5c.

4. Discussion

In this study, we compared the HRV features of drivers in alert and fatigued states considering sex differences. The experiments were performed on a driving simulator, and the drivers’ fatigued state was induced by monotonous driving. Based on the data collected, Mann–Whitney U tests were conducted considering driver state and sex as group factors, and decision tree models were constructed to identify the drivers’ fatigued state using different feature combinations.
Table 6 presents a comparison of the Mann–Whitney U test results between this study and our team’s previous studies based on the same ECG dataset using 5 min ECG signals [9,27]. When sex differences both were and were not considered as one of the group factors, the direction of changes in the features in this study was consistent with that found in our previous study except for those features without significant difference between the two mental states in one of the studies. In other words, no controversial results were identified regarding the change direction from alert to fatigued between HRV features extracted from 2 min and 5 min ECG. In addition, some features that showed no significant differences between states in our previous study showed significant differences in this study, indicating that, compared with 5 min ECG signals, 2 min ECG signals were comparable or more sensitive measurements.
Glaucylara et al. [19] showed that short-term ECG signals were not suitable for studying VLF bands, so the frequency domain features in this paper included only HF and LF bands. According to Mietus et al. [28], who utilized a range of p N N x values from p N N 4 to p N N 100 to differentiate between sleeping and waking states in 72 healthy subjects, the differences between the comparison groups were consistently observed by using threshold values substantially less than 50 ms. Their results confirmed that p N N 12 enabled better distinction between sleeping and waking groups than p N N 50 . Nagy and Jobbágy [29] comprehensively investigated the changes in HRV during stress by employing multiple features, including p N N 15 and p N N 50 . The results revealed that p N N 15 showed more significant differences than p N N 50 . Therefore, according to these previous works, we aimed to utilize features p N N 15 and N N N 15 to analyze the fatigued state. According to previous standards [2], a 2 min interval is the shortest interval within which driver fatigue can be detected. Consequently, driver fatigue detection based on 2 min ECG signals has the potential to identify a driver’s fatigue state in the shortest possible time.
The classification results based on the decision tree model corroborate the findings of the statistical analysis. In each analysis, the sex-specific classification models consistently obtained greater accuracy than the sex-independent models. The results suggest that a driver fatigue detection system that accounts for sex differences could achieve enhanced classification accuracy. In addition, the comparison reveals that the classification accuracy consistently increased as the number of considered features increased. However, as the number of features used in the classifier increased, the risk of classifier overfitting also increased.
While our study’s results indicate the effectiveness of some features in driver fatigue detection, there is ongoing debate regarding the performance of certain features in different studies. This controversy may arise from various factors, including variations in study designs, differences in sample sizes, diverse data processing methods, and the wide range of driving conditions considered. Therefore, we emphasize the need for further research into the physiological mechanisms associated with these features and the relationships between these features to comprehensively address these inconsistencies and improve our understanding of the role of HRV features in driver fatigue detection. Due to the complexity and large number of controlled variables, conducting experiments that account for all influencing factors remains challenging. In this study, various control variables, including circadian rhythms, respiratory frequency, human–machine interfaces, and substances such as drugs and alcoholic beverages, were not accounted for in the experiments. In conclusion, future research should consider more control variables to improve the generalizability of the results. Moreover, due to the constraints posed by the experimental conditions, performing such experiments with real road scenarios under similar conditions remains unfeasible.

5. Conclusions

In conclusion, the results of the present study suggest that HRV features derived from 2 min ECG recordings can be used to characterize drivers’ mental states based on both significant differences and classification performance. In the sex-independent group of drivers, nineteen of the twenty HRV features showed significant differences between the two mental states, and a decision tree-based classifier achieved an accuracy of 86.3% in detecting driver fatigue using a subset of HRV features.
In addition, our study demonstrated that HRV features differ between sexes, which could be used to characterize the mental states of drivers. (1) Eighteen HRV features (except for α 2 and D 2 ) were significantly different between the two mental states for males, and seventeen features (except for E A P , E S a m p and α 2 ) were significantly different for females. (2) The developed classifiers always achieved better fatigue detection accuracy for the male and female groups than for the sex-independent group when the number of HRV features in the subset ranged from 2 to 4. (3) For the best classifiers, when the number of HRV features in the subset ranged from 2 to 4, the selected features for both the male and female groups were always different.

Author Contributions

Conceptualization, J.Z.; methodology, S.L.; software, J.Z.; validation, Y.S., Z.W. and Q.L.; formal analysis, C.Z.; investigation, Y.S., Z.W. and Q.L.; resources, W.W. and S.L.; data curation, J.Z.; writing—original draft preparation, J.Z.; writing—review and editing, Y.S. and Z.W.; visualization, C.Z.; supervision, W.W. and S.L.; project administration, C.Z. and W.W.; funding acquisition, S.L. and C.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Key R&D Projects of the Science and Technology Department of China under grant number 2022YFB2503405; the Natural Science Foundation of Xinjiang Uygur Autonomous Region under grant number 2023D01A53; the Guangxi Youth Science and Technology innovation talent training program under grant number Guike AD23026248; and the Research Foundation for Talented Scholars of Henan University of Technology under grant number 2020BS066.

Institutional Review Board Statement

This study was conducted in accordance with the Declaration of Helsinki, and the protocol was approved by the Ethics Committee of Tsinghua University (20160006).

Informed Consent Statement

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

Data Availability Statement

The data presented in this study are available from the corresponding author on request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Salvati, L.; D’Amore, M.; Fiorentino, A.; Pellegrino, A.; Sena, P.; Villecco, F. On-road detection of driver fatigue and drowsiness during medium-distance journeys. Entropy 2021, 23, 135. [Google Scholar] [CrossRef] [PubMed]
  2. Electrophysiology Task Force of the European Society of Cardiology the North American Society of Pacing. Heart rate variability: Standards of measurement, physiological interpretation, and clinical use. Circulation 1996, 93, 1043–1065. [Google Scholar] [CrossRef]
  3. Lu, K.; Dahlman, A.S.; Karlsson, J.; Candefjord, S. Detecting driver fatigue using heart rate variability: A systematic review. Accid. Anal. Prev. 2022, 178, 106830. [Google Scholar] [CrossRef] [PubMed]
  4. Sun, Y.; Yu, X.; Berilla, J.; Liu, Z.; Wu, G. An in-vehicle physiological signal monitoring system for driver fatigue detection. In Proceedings of the 3rd International Conference on Road Safety and Simulation, Indianapolis, IN, USA, 14–16 September 2011; Transportation Research Board: Washington, DC, USA, 2011; p. 16. [Google Scholar]
  5. Khan, M.Q.; Lee, S. A comprehensive survey of driving monitoring and assistance systems. Sensors 2019, 19, 2574. [Google Scholar] [CrossRef] [PubMed]
  6. Castaldo, R.; Melillo, P.; Bracale, U.; Caserta, M.; Triassi, M.; Pecchia, L. Acute mental stress assessment via short term HRV analysis in healthy adults: A systematic review with meta-analysis. Biomed. Signal Process. Control 2015, 18, 370–377. [Google Scholar] [CrossRef]
  7. Melillo, P.; Bracale, M.; Pecchia, L. Nonlinear heart rate variability features for real-life stress detection. Case study: Students under stress due to university examination. Biomed. Eng. Online 2011, 10, 96. [Google Scholar] [CrossRef]
  8. Wang, Z.; Hu, C. Detection of human relaxation level based on deep learning. In Proceedings of the International Conference on Frontier Computing, Taiwan, Taichung, 1–3 February 2021; Hung, J.C., Yen, N.Y., Chang, J.W., Eds.; Springer Nature: Singapore, 2021; pp. 71–80. [Google Scholar]
  9. Zeng, C.; Wang, W.; Chen, C.; Zhang, C.; Cheng, B. Sex differences in time-domain and frequency-domain heart rate variability measures of fatigued drivers. Int. J. Environ. Res. Public Health 2020, 17, 8499. [Google Scholar] [CrossRef]
  10. Shaffer, F.; Ginsberg, J.P. An overview of heart rate variability metrics and norms. Front. Public Health 2017, 5, 258. [Google Scholar] [CrossRef]
  11. Salahuddin, L.; Cho, J.; Jeong, M.G.; Kim, D. Ultra short term analysis of heart rate variability for monitoring mental stress in mobile settings. In Proceedings of the 2007 29th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Lyon, France, 22–26 August 2007; IEEE: Piscataway, NJ, USA, 2007; pp. 4656–4659. [Google Scholar]
  12. Patel, M.; Lal, S.K.L.; Kavanagh, D.; Rossiter, P. Applying neural network analysis on heart rate variability data to assess driver fatigue. Expert Syst. Appl. 2011, 38, 7235–7242. [Google Scholar] [CrossRef]
  13. Capdevila, L.; Castro-Marrero, J.; Alegre, J.; Ramos-Castro, J.; Escorihuela, R.M. Analysis of gender differences in HRV of patients with myalgic encephalomyelitis/chronic fatigue syndrome using mobile-health technology. Sensors 2021, 21, 3746. [Google Scholar] [CrossRef]
  14. Li, K.; Rüdiger, H.; Ziemssen, T. Spectral analysis of heart rate variability: Time window matters. Front. Neurol. 2019, 10, 545. [Google Scholar] [CrossRef] [PubMed]
  15. Taoum, A.; Bisiaux, A.; Tilquin, F.; Le Guillou, Y.; Carrault, G. Validity of ultra-short-term HRV analysis using PPG-A preliminary study. Sensors 2022, 22, 7995. [Google Scholar] [CrossRef]
  16. Salahuddin, L.; Jeong, M.G.; Kim, D. Ultra short term analysis of heart rate variability using normal sinus rhythm and atrial fibrillation ECG data. In Proceedings of the 2007 9th International Conference on e-Health Networking, Application and Services, Taipei, Taiwan, 19–22 June 2007; IEEE: Piscataway, NJ, USA, 2007; pp. 240–243. [Google Scholar]
  17. Arêas, G.P.T.; Caruso, F.C.R.; Simões, R.P.; Castello-Simões, V.; Jaenisch, R.B.; Sato, T.O.; Cabiddu, R.; Mendes, R.; Arena, R.; Borghi-Silva, A. Ultra-short-term heart rate variability during resistance exercise in the elderly. Braz. J. Med. Biol. Res. 2018, 51, e6962. [Google Scholar] [CrossRef]
  18. Castaldo, R.; Montesinos, L.; Melillo, P.; James, C.; Pecchia, L. Ultra-short term HRV features as surrogates of short term HRV: A case study on mental stress detection in real life. BMC Med. Inform. Decis. Mak. 2019, 19, 12. [Google Scholar] [CrossRef]
  19. Geovanini, G.R.; Vasques, E.R.; Alvim, R.D.O.; Mill, J.G.; Andreão, R.V.; Vasques, B.K.; Pereira, A.C.; Krieger, J.E. Age and sex differences in heart rate variability and vagal specific patterns—Baependi heart study. Glob. Heart 2020, 15, 71. [Google Scholar] [CrossRef] [PubMed]
  20. Stein, P.K.; Kleiger, R.E.; Rottman, J.N. Differing effects of age on heart rate variability in men and women. Am. J. Cardiol. 1997, 80, 302–305. [Google Scholar] [CrossRef] [PubMed]
  21. Williams, D.P.; Joseph, N.; Gerardo, G.M.; Hill, L.K.; Koenig, J.; Thayer, J.F. Gender differences in cardiac chronotropic control: Implications for heart rate variability research. Appl. Psychophysiol. Biofeedback 2022, 47, 65–75. [Google Scholar] [CrossRef]
  22. Estévez-Báez, M.; Carricarte-Naranjo, C.; Jas-García, J.D.; Rodríguez-Ríos, E.; Machado, C.; Montes-Brown, J.; Leisman, G.; Schiavi, A.; Machado-García, A.; Luaces, C.S.; et al. Influence of heart rate, age, and gender on heart rate variability in adolescents and young adults. Adv. Exp. Med. Biol. 2019, 1133, 19–33. [Google Scholar] [CrossRef]
  23. Koenig, J.; Thayer, J.F. Sex differences in healthy human heart rate variability: A meta-analysis. Neurosci. Biobehav. Rev. 2016, 64, 288–310. [Google Scholar] [CrossRef]
  24. Antelmi, I.; De Paula, R.S.; Shinzato, A.R.; Peres, C.A.; Mansur, A.J.; Grupi, C.J. Influence of age, gender, body mass index, and functional capacity on heart rate variability in a cohort of subjects without heart disease. Am. J. Cardiol. 2004, 93, 381–385. [Google Scholar] [CrossRef]
  25. Kuang, D.; Cui, L.; Kuang, S.; Yang, R.; Chen, X.; Zhang, L.; Lv, R.; Ou, S.; Song, C. Effect of gender-related depression on heart rate variability during an autonomic nervous test. Psychiatry Res. 2019, 272, 258–264. [Google Scholar] [CrossRef] [PubMed]
  26. Cañete-Sifuentes, l.; Monroy, R.; Medina-Pérez, M.A. A review and experimental comparison of multivariate decision trees. IEEE Access 2021, 9, 110451–110479. [Google Scholar] [CrossRef]
  27. Zeng, C.; Wang, W.; Li, Y.; Chen, C.; Zhang, C.; Cheng, B. Nonlinear heart rate variability features of drivers in fatigue state considering gender factor. J. Southeast Univ. (Nat. Sci. Ed.) 2019, 49, 595–602. [Google Scholar]
  28. Mietus, J.E.; Peng, C.K.; Henry, I.; Goldsmith, R.L.; Goldberger, A.L. The pNNx files: Re-examining a widely used heart rate variability measure. Heart 2002, 88, 378–380. [Google Scholar] [CrossRef]
  29. Nagy, P.; Jobbágy, Á. Sensor fusion for the accurate non-invasive measurement of blood pressure. Meas. Sens. 2022, 24, 100481. [Google Scholar] [CrossRef]
Figure 1. High-fidelity driving simulator.
Figure 1. High-fidelity driving simulator.
Sensors 24 04316 g001
Figure 2. Illustration of the acquired ECG signal.
Figure 2. Illustration of the acquired ECG signal.
Sensors 24 04316 g002
Figure 3. Illustration of the decision tree construction process.
Figure 3. Illustration of the decision tree construction process.
Sensors 24 04316 g003
Figure 4. Box plots of HRV features of drivers in different mental states and drivers of different sexes. (MA denotes the male group in the alert state; MF denotes the male group in the fatigued state; FA denotes the female group in the alert state; and FF denotes the female group in the fatigued state).
Figure 4. Box plots of HRV features of drivers in different mental states and drivers of different sexes. (MA denotes the male group in the alert state; MF denotes the male group in the fatigued state; FA denotes the female group in the alert state; and FF denotes the female group in the fatigued state).
Sensors 24 04316 g004
Figure 5. Decision tree and HRV features based driver fatigue classifier for the (a) sex-independent group; (b) male group; and (c) female group.
Figure 5. Decision tree and HRV features based driver fatigue classifier for the (a) sex-independent group; (b) male group; and (c) female group.
Sensors 24 04316 g005
Table 1. Subjective evaluation criteria for drivers’ mental state assessment.
Table 1. Subjective evaluation criteria for drivers’ mental state assessment.
Mental StateFacial Feature Description
AlertEyes open normally, blinking rapidly, active eye state, mentally focused, maintains attention on the external world, head upright, rich facial expression.
FatiguedTendency to close the eyes, eyes are less open, blinking longer and slower, less active eye state, dull gaze, yawning, deep breathing, sighing, swallowing movements, movements to resist fatigue such as squeezing the eyes, shaking the head, and scratching the face, less focus on the environment.
Very FatiguedSevere tendency for eyes to close, eyes half-closed, eyelids become heavy and cannot be opened, longer periods of persistent eye closure, nodding, head tilted, loss of ability to continue driving.
Table 2. List of HRV features studied.
Table 2. List of HRV features studied.
MethodFeaturesDescriptionUnit
Time domain M R R Mean RR intervalms
D R R Standard deviation of the RR intervalms
M H R Mean heart rate1/min
D R M S Square root of the mean squared differences between successive RR intervalsms
N N N 15 Number of successive RR interval pairs that differ by more than 15 msbeats
p N N 15 N N N 15 divided by the total number of RR intervals%
Frequency domain P L F ( a b s ) Absolute power of the LF bandms2
P H F ( a b s ) Absolute power of the HF bandms2
P L F ( n u ) Power of the LF band in normalized unitsn.u.
P H F ( n u ) Power of the HF band in normalized unitsn.u.
r L F / H F Ratio of the LF band power to the HF band power
P t o t ( a b s ) Absolute power of all three bandsms2
Nonlinear L S D 1 The standard deviation of the PP perpendicular to the line of identityms
L S D 2 The standard deviation of the PP along the line of identityms
r S D 2 / S D 1 Ratio of the parameters of the short axis to the long axis of the PP
E A P Approximate entropy
E S a m p Sample entropy
α 1 Short-term fluctuation slope in detrended fluctuation analysis
α 2 Long-term fluctuation slope in detrended fluctuation analysis
D 2 Correlation dimension
Table 3. Descriptive statistics and results of Mann–Whitney U tests of the HRV features of drivers with different mental states in the sex-independent group.
Table 3. Descriptive statistics and results of Mann–Whitney U tests of the HRV features of drivers with different mental states in the sex-independent group.
FeaturesAlert (N = 272)Fatigued (N = 638)Alert vs. Fatigued
MeanSDQ1MedQ3MeanSDQ1MedQ3Mann–Whitney U Test
M R R 801.4134.8687.6800.6870.7869.9139.3766.0845.6926.9p < 0.01
D R R 45.2619.9632.9140.9552.2264.0424.8546.0959.5076.06p < 0.01
M H R 76.9412.5668.9174.9487.2770.7211.1662.3170.2178.33p < 0.01
D R M S 34.2720.6121.1627.5141.0443.3023.7125.8639.4045.79p < 0.01
N N N 15 19.5321.473.0009.00031.5028.0721.438.00026.5036.00p < 0.01
p N N 15 15.0518.521.8245.86123.2922.5519.905.38519.7026.67p < 0.01
P L F ( a b s ) 729.1741.6243.4494.4879.714111343561.1924.81869p < 0.01
P H F ( a b s ) 518.3697.1162.4288.6614.9749.6915.7273.3464.5761.8p < 0.01
P L F ( n u ) 60.3220.1944.6462.0176.6565.7919.0454.5469.8881.15p < 0.01
P H F ( n u ) 39.5620.1723.2637.9755.2334.1018.9918.6130.1045.36p < 0.01
r L F / H F 2.8033.2370.80801.6333.2953.1642.8391.2002.3224.354p < 0.01
P t o t ( a b s ) 13321331513.2932.7173023712098104517442899p < 0.01
L S D 1 24.3214.6515.0119.5229.1330.7416.8518.3527.9832.54p < 0.01
L S D 2 58.5425.6043.4253.1167.4383.2333.2161.1876.43100.1p < 0.01
r S D 2 / S D 1 2.7761.0462.0822.5783.3343.1061.0612.3653.0343.805p < 0.01
E A P 0.8180.1010.7550.8270.8940.7890.0860.7390.7970.849p < 0.01
E S a m p 1.5750.2751.4021.5771.7361.5000.3221.2831.4871.696p < 0.01
α 1 1.1450.3020.9051.1171.3621.2380.2781.0751.2601.436p < 0.01
α 2 0.8790.2560.6980.8731.0480.8930.2470.7320.8881.037p = 0.2614
D 2 2.1071.2400.7822.3323.2412.5920.9802.1452.9043.279p < 0.01
Table 4. Descriptive statistics and results of Mann–Whitney U tests of the HRV features of drivers with different mental states in the male group.
Table 4. Descriptive statistics and results of Mann–Whitney U tests of the HRV features of drivers with different mental states in the male group.
FeaturesAlert (N = 130)Fatigued (N = 308)Alert vs. Fatigued
MeanSDQ1MedQ3MeanSDQ1MedQ3Mann–Whitney U Test
M R R 815.9149.1694.8836.5955.5907.0141.8826.1917.8983.3p < 0.01
D R R 49.2626.1130.3945.0859.5874.2729.3353.472.5290.07p < 0.01
M H R 76.013.7762.871.7386.3567.8611.1261.0265.3772.63p < 0.01
D R M S 35.7824.3717.7534.9344.0446.3926.4634.4141.4449.05p < 0.01
N N N 15 20.8822.821.015.034.028.820.5815.027.035.5p < 0.01
p N N 15 16.7319.570.56512.2525.023.9319.1912.221.3727.88p < 0.01
P L F ( a b s ) 950.4951.5260.1638.61289.01962.01634.0722.41610.02691.0p < 0.01
P H F ( a b s ) 600.8903.0104.3262.3666.0850.91165.0255.6468.2769.0p < 0.01
P L F ( n u ) 67.2716.3154.2568.1480.3473.1415.5964.3977.8984.83p < 0.01
P H F ( n u ) 32.5716.2419.6231.7645.7226.715.4415.0722.035.57p < 0.01
r L F / H F 3.2252.8311.1872.1464.0964.2263.3041.813.545.631p < 0.01
P t o t ( a b s ) 1660.01764.0405.61108.02026.03110.02641.01288.02474.04068.0p < 0.01
L S D 1 25.417.3212.5924.8131.2732.9418.8124.4329.4334.82p < 0.01
L S D 2 64.3933.4539.9258.0976.9599.0938.4570.194.48122.1p < 0.01
r S D 2 / S D 1 2.9861.132.2862.7163.3593.370.9792.6733.3574.08p < 0.01
E A P 0.81840.1060.74850.82890.89770.77970.079390.72670.78190.8324p < 0.01
E S a m p 1.5350.26191.4051.5461.6991.4370.30831.2051.4321.624p < 0.01
α 1 1.2340.25941.0531.2351.4221.3370.23651.1981.3781.52p < 0.01
α 2 0.86760.24410.68270.84671.0390.90090.25530.73140.87951.061p = 0.1647
D 2 1.9351.3570.60581.6863.1832.3581.0971.7092.7853.184p = 0.0368
Table 5. Descriptive statistics and results of Mann–Whitney U tests of the HRV features of drivers with different mental states in the female group.
Table 5. Descriptive statistics and results of Mann–Whitney U tests of the HRV features of drivers with different mental states in the female group.
FeaturesAlert (N = 142)Fatigued (N = 330)Alert vs. Fatigued
MeanSDQ1MedQ3MeanSDQ1MedQ3Mann–Whitney U Test
M R R 788.2119.2686.2798.2858.8835.3127.7750.1819.1864.7p < 0.01
D R R 41.610.6633.3940.1748.3154.4914.2744.6652.0262.73p < 0.01
M H R 77.811.3269.8675.1787.4473.410.5269.3973.2579.99p < 0.01
D R M S 32.8916.4123.1827.4538.0940.4120.4425.5336.5643.17p < 0.01
N N N 15 18.320.165.09.029.027.3922.197.024.537.0p < 0.01
p N N 15 13.5117.432.8415.67119.8621.2520.484.7916.6125.9p < 0.01
P L F ( a b s ) 526.5377.1236.3440.5691.1897.3672.8451.9722.21050.0p < 0.01
P H F ( a b s ) 442.7419.3189.0305.1509.9655.0581.0280.7461.8744.8p < 0.01
P L F ( n u ) 53.9521.3235.8652.1569.4158.9319.4146.461.3774.55p < 0.01
P H F ( n u ) 45.9621.3130.5347.8364.0541.019.425.4238.5953.38p < 0.01
r L F / H F 2.4163.5350.55991.092.2742.1741.8390.87241.592.932p < 0.01
P t o t ( a b s ) 1031.0609.2573.4891.21243.01682.01012.0939.21421.02182.0p < 0.01
L S D 1 23.3411.6616.4519.4827.0228.6914.5318.1225.9430.65p < 0.01
L S D 2 53.1813.2445.0351.9160.9270.3618.8457.3167.0979.56p < 0.01
r S D 2 / S D 1 2.5840.92511.9592.43.1762.8591.0762.1632.7893.625p < 0.01
E A P 0.8170.097520.76160.81780.88490.7980.090070.75770.80830.8619p = 0.047
E S a m p 1.6110.28271.41.611.7891.5530.32461.3421.5461.743p = 0.0661
α 1 1.0630.31630.80541.0151.2721.1450.28250.98581.1831.338p < 0.01
α 2 0.88860.26620.70710.88631.0590.88540.23850.73250.8911.03p = 0.8787
D 2 2.2641.1031.2112.4853.2522.8090.79832.4263.0033.354p < 0.01
Table 6. Comparison between our previous studies and this study considering significant differences in HRV features between the two mental states and the change tendency of HRV features between the alert and fatigued states.
Table 6. Comparison between our previous studies and this study considering significant differences in HRV features between the two mental states and the change tendency of HRV features between the alert and fatigued states.
FeaturesSex-Independent GroupMale GroupFemale Group
Previous StudyThis StudyAccordancePrevious StudyThis StudyAccordancePrevious StudyThis StudyAccordance
M R R * ↑* ↑Y* ↑* ↑YNS* ↑-
D R R * ↑* ↑Y* ↑* ↑Y* ↑* ↑Y
M H R * ↓* ↓Y* ↓* ↓YNS* ↓-
D R M S * ↑* ↑Y* ↑* ↑YNS* ↑-
P L F ( a b s ) * ↑* ↑Y* ↑* ↑Y* ↑* ↑Y
P H F ( a b s ) * ↑* ↑YNS* ↑-NS* ↑-
P L F ( n u ) NS* ↓-NS* ↓-NS* ↓-
P H F ( n u ) NS* ↑-NS* ↑-NS* ↑-
r L F / H F NS* ↑-NS* ↑-NS* ↑-
P t o t ( a b s ) * ↑* ↑Y* ↑* ↑Y* ↑* ↑Y
L S D 1 * ↑* ↑Y* ↑* ↑YNS* ↑-
L S D 2 * ↑* ↑Y* ↑* ↑Y* ↑* ↑Y
r S D 2 / S D 1 * ↑* ↑YNS* ↑-NS* ↑-
E A P NS* ↓-NS* ↓-NSNS-
E S a m p NS* ↓-NS* ↓-NSNS-
α 1 * ↑* ↑YNS* ↑-* ↑* ↑Y
α 2 NSNS-NSNS-NSNS-
D 2 * ↑* ↑YNSNS-* ↑* ↑Y
Abbreviations: * denotes p < 0.01; NS denotes not significant; ↑ denotes a significant increase from the alert state to the fatigued state; ↓ denotes a significant decrease from the alert state to the fatigued state; Y indicates whether the significance of the difference in HRV features between the two mental states in our previous study and this study are/are not identical with/without the same change tendency if p < 0.01.
Table 7. Performance of fatigue detection classifiers for the three driver groups based on the best subsets of 2, 3, and 4 features.
Table 7. Performance of fatigue detection classifiers for the three driver groups based on the best subsets of 2, 3, and 4 features.
Number of Features UsedGroupSubset of FeaturesSENSPEPPVACC
2Sex-independent group p N N 15 ,   r S D 2 / S D 1 93.1%56.5%85.8%83.5%
Male group M R R ,   r S D 2 / S D 1 96.5%83.3%91.7%92.0%
Female group D R R ,   P L F ( a b s ) 98.1%66.7%86.9%88.5%
3Sex-independent group M R R ,   N N N 15 ,   r S D 2 / S D 1 89.0%79.6%91.7%86.3%
Male P H F ( n u ) ,   α 2 ,   D 2 100.0%73.7%92.1%93.5%
Female M R R ,   p N N 15 ,   α 1 93.9%84.6%92.0%90.7%
4Sex-independent group M R R ,   M H R ,   N N N 15 ,   r S D 2 / S D 1 89.0%79.6%91.7%86.3%
Male group P H F ( a b s ) ,   L S D 2 ,   E S a m p , α 1 98.2%85.7%94.8%94.8%
Female group M R R ,   p N N 15 ,   r S D 2 / S D 1 , α 1 98.0%80.8%90.6%92.0%
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

Zeng, C.; Zhang, J.; Su, Y.; Li, S.; Wang, Z.; Li, Q.; Wang, W. Driver Fatigue Detection Using Heart Rate Variability Features from 2-Minute Electrocardiogram Signals While Accounting for Sex Differences. Sensors 2024, 24, 4316. https://doi.org/10.3390/s24134316

AMA Style

Zeng C, Zhang J, Su Y, Li S, Wang Z, Li Q, Wang W. Driver Fatigue Detection Using Heart Rate Variability Features from 2-Minute Electrocardiogram Signals While Accounting for Sex Differences. Sensors. 2024; 24(13):4316. https://doi.org/10.3390/s24134316

Chicago/Turabian Style

Zeng, Chao, Jiliang Zhang, Yizi Su, Shuguang Li, Zhenyuan Wang, Qingkun Li, and Wenjun Wang. 2024. "Driver Fatigue Detection Using Heart Rate Variability Features from 2-Minute Electrocardiogram Signals While Accounting for Sex Differences" Sensors 24, no. 13: 4316. https://doi.org/10.3390/s24134316

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