Next Article in Journal
A GIS-Based Approach for Primary Substations Siting and Timing Based on Voronoi Diagram and Particle Swarm Optimization Method
Previous Article in Journal
Defect Recognition and Morphology Operation in Binary Images Using Line-Scanning-Based Induction Thermography
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Hybrid Model Utilizing Principal Component Analysis and Artificial Neural Networks for Driving Drowsiness Detection

1
School of Intelligent Systems Engineering, Sun Yat-sen University, No. 66, Gongchang Road, Guangming District, Shenzhen 518107, China
2
Guangdong Provincial Key Laboratory of Intelligent Transportation Systems, No. 66, Gongchang Road, Guangming District, Shenzhen 518107, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2022, 12(12), 6007; https://doi.org/10.3390/app12126007
Submission received: 19 April 2022 / Revised: 25 May 2022 / Accepted: 2 June 2022 / Published: 13 June 2022
(This article belongs to the Topic Intelligent Transportation Systems)

Abstract

:
The detection of drowsiness while driving plays a vital role in ensuring road safety. Existing detection methods need to reduce external interference and sensor intrusiveness, and their algorithms must be modified to improve accuracy, stability, and timeliness. In order to realize fast and accurate driving drowsiness detection using physiological data that can be collected non-intrusively, a hybrid model with principal component analysis and artificial neural networks was proposed in this study. Principal component analysis was used to remove the noise and redundant information from the original data, and artificial neural networks were used to classify the processed data. Three other models were designed for comparison, including a hybrid model with principal component analysis and classic machine learning algorithms, a single model with artificial neural networks, and a single model with classic machine learning algorithms. The results indicated that the average accuracy of the proposed model exceeded 97%, the average training time was lower than 0.3 s, and the average standard deviation of the proposed model’s accuracy was 0.7%, indicating that the model could detect driving drowsiness more accurately and quickly than the comparison models while ensuring stability. Thus, principal component analysis can help to improve the accuracy of driving drowsiness detection. This method can be applied to active warning systems (AWS) in intelligent vehicles in the future.

1. Introduction

Numerous drivers have driven when drowsy. In the USA, 41% of American drivers reported having “fallen asleep or nodded off” while driving at least once in their lifetime [1]. In Europe, the statistics vary between countries. For example, in Croatia, 6.1% of drivers admitted that they had driven when tired; in Spain, 70% of drivers reported falling asleep while driving [2].
Driving drowsiness is one of the main threats to road traffic safety [3,4,5]. Traffic accidents caused by drowsy driving account for 15–30% of global traffic accidents. Moreover, drowsy driving accidents have high fatality rates. In France, driver drowsiness caused 85% of fatal road accidents in 2011; in Germany, drowsy drivers caused 25% of fatal road accidents [1].
Drowsy driving is harmful, and it is necessary to accurately and quickly detect drivers’ drowsiness in actual driving to minimize these accidents. A significant concern in drowsiness detection today is the exploration of accurate driving drowsiness detecting methods with low interference to drivers. There are three kinds of data that can detect drowsiness: facial images, driving performance, and physiological signals [5,6]. When using facial images to detect drivers’ drowsy state, the results are affected by lighting conditions. In addition, drivers cannot wear glasses, masks, and other objects that block the face, which is unrealistic for actual driving [7,8]. The accuracy of most driving drowsiness detection methods based on driving behavior is around 75%. With these methods, the accuracy is affected by the external environment, and differences in driving habits significantly reduce the robustness of the model [9]. Physiological signals can directly reflect the driver’s state with a minimal time delay and they are not easily affected by the external environment. For this reason, many studies have applied physiological signals for the detection of drowsiness.
In previous studies, electroencephalogram (EEG) and electrocardiogram (ECG) signals have been the most commonly used physiological signals for drowsiness detection. EEG, which is called the “golden standard” of drowsiness detection, can intuitively and effectively reflect the electrical activity information of the brain; thus, it has a wide range of applications in assessing the alertness of the brain [10,11,12]. ECG can be used to calculate heart rate variability (HRV), which refers to the tiny variations in successive heartbeat intervals. HRV is sensitive to drowsiness and is not easily affected by external environments [13]. However, both EEG and ECG are too intrusive to allow for the collection of data during actual driving [14]. Despite their efficiency, it is challenging to apply EEG and ECG for drowsiness detection in real-world driving scenarios.
Several studies have indicated that electrodermal activity (EDA), respiration (RESP), and photoplethysmography (PPG) signals can also reflect drivers’ drowsiness with small and light devices, which present little interference to drivers [15,16,17,18,19].
Electrodermal activity (EDA) refers to the small changes in the skin’s electrical activity [20,21]. Malathi, et al. [16] found that EDA signals became unstable when the participants became drowsy. Respiration (RESP) signal values show changes in the chest when a human breathes. Zhu et al. [15] found that drowsy drivers had a longer respiration period and a larger respiration amplitude than those who were awake. In addition, awake drivers hardly yawned, while drowsy drivers yawned frequently. However, neither Malathi, et al. [16] nor Zhu, et al. [15] built a model to classify the drowsy state; they only performed a comparative analysis of the signals in those two states. Hence, the effectiveness of EDA and RESP in detecting driving drowsiness remains unknown.
Photoplethysmography (PPG) is one of the most common clinical signals used to measure pulse [22]. L Hyeonjeong, et al. [18] collected PPG signals through a wearable device to detect driving drowsiness. The accuracy was 70%, which easily caused misjudgment. Thus, it was not satisfactory in actual driving scenarios. Table 1 shows the scientific gap in existing driving drowsiness detection features.
Therefore, researchers have attempted to combine these physiological signals to detect drowsiness and guarantee higher accuracy. For example, Xie [23] collected EDA, RESP, and PPG signals from eight rail drivers. He adopted the k-nearest neighbors method and support vector machines to detect the drivers’ drowsiness. In his study, the highest accuracy reached 85%.
As explained above, the combination of EDA, RESP, and PPG is sufficient to improve accuracy but cannot meet the needs of application in real driving scenarios. This may be due to redundant information in the data or defects in the classification algorithms. Too many variables in the data may contain redundant information, which would increase the complexity of computation. Principal component analysis assists in removing the redundant information that may exist in the data. The present study adopted principal component analysis (PCA), one of the most commonly used dimensionality reduction methods [24]. Detecting driver drowsiness requires adequate models. Some classification methods, such as support vector machine and k-nearest neighbors, have defects that reduce the model’s accuracy or take a long time to classify high-dimensional data, leading to low accuracy and a high time delay. Artificial neural networks can quickly and thoroughly approximate arbitrarily complex linear or nonlinear relationships and have strong robustness and fault tolerance [25]. Considering this, we adopted artificial neural networks to classify the noise-removal data.
This study proposed a hybrid model utilizing principal component analysis and artificial neural networks to detect driving drowsiness quickly and accurately. Physiological data (EDA, RESP, and PPG) were non-intrusively collected by wearable devices and used as the model’s input. Then, we designed three comparison models: a single model with artificial neural networks, a hybrid model utilizing principal component analysis and classic machine learning algorithms, and a single model with classic machine learning algorithms. This research analyzed the impact of principal component analysis on driving drowsiness detection and compared the performance of artificial neural networks and classic machine learning algorithms. Two hypotheses were proposed:
Hypothesis 1.
Removing noise that may exist in the data can improve accuracy and shorten training time.
Hypothesis 2.
The accuracy of artificial neural networks is higher than the comparison models used in this research, which were support vector machine and k-nearest neighbors.

2. Methodology

In this research, the proposed hybrid model was based on principal component analysis and classification algorithms. There were two kinds of classification algorithms: artificial neural networks and classic machine learning algorithms. The artificial neural networks included the backpropagation neural network (BPNN) and the cascade forward neural network (CFNN), while the classic machine learning algorithms included the support vector machine (SVM) and k-nearest neighbors (KNN).
Based on noninvasive physiological data, this paper proposed a hybrid model utilizing principal component analysis and artificial neural networks. Then, we compared it with hybrid models based on principal component analysis and classic machine learning algorithms and other single models. Figure 1 shows the constructions and names of the proposed models and the comparison models. The dark purple thick arrows represent the proposed model. The light purple thin arrows represent comparison model 1, which was the single artificial neural network model. The dark purple dotted arrows represent comparison model 2, which was the hybrid model utilizing principal component analysis and classic machine learning algorithms. The light purple dotted arrows represent comparison model 3, which was the single classic machine learning algorithms model.

2.1. Principal Component Analysis

Principal component analysis (PCA) is a linear feature extraction method that is widely used for linear dimensionality reduction. It uses the variance of each feature to find new features to maximize the separability of categories for dimensionality reduction [26]. Its principle is to delete closely related variables and create as few new variables as possible to make the transformed variables uncorrelated. Meanwhile, the transformed variables should reflect the original information as much as possible [27].
Given a training set X = x 1 , x 2 , , x N ( x i D , i = 1 , 2 , , N ) and a lower dimension d, we can calculate the average of the training set and the covariance matrix. Then, we can obtain the spectral decomposition of the covariance matrix to obtain the eigenvalues ( λ 1 λ 2 λ D ) and corresponding eigenvectors ( ξ 1 , ξ 2 , , ξ D ). For any x D , its new low-dimensional representation can be represented as Equation (1)
y = ( ξ 1 T ( x x ¯ ) , ξ 2 T ( x x ¯ ) , , ξ d T ( x x ¯ ) ) d

2.2. Artificial Neural Networks

The artificial neural networks (ANNs) used in this research were the backpropagation neural network (BPNN) and the cascade forward neural network (CFNN).

2.2.1. Backpropagation Neural Network

Backpropagation neural networks (BPNNs) can realize arbitrarily complex nonlinear mapping and are particularly suitable for solving complex internal mechanisms. They can perform complex pattern recognition and function fitting on experimental data. Figure 2 shows a basic diagram of the backpropagation neural network (BPNN). It is a multi-layer neural network trained according to the error backpropagation algorithm [28].
We designed a two-layer backpropagation neural network with a learning rate of 0.01. There were 20 neuron nodes in the first hidden layer, and 10 neuron nodes in the second hidden layer.

2.2.2. Cascade Forward Neural Network

As shown in Figure 3, the cascade forward neural network (CFNN) is similar to the BPNN; however, it includes a connection from the input and every previous layer to the following layers [29]. As with the BPNN, a two-or-more layer cascade network can learn any finite input–output relationship fairly well when given enough hidden neurons.
Here, we designed a two-layer cascade forward neural network with a learning rate of 0.01. There were 20 neuron nodes in the first hidden layer, and 10 neuron nodes in the second hidden layer.

2.3. Classic Machine Learning Algorithms

This research adopted two classic machine learning algorithms: support vector machine and k-nearest neighbors.

2.3.1. Support Vector Machine

Support vector machine (SVM) is a generalized linear classifier that classifies binary data in a supervised learning manner [30]. Its decision boundary is the maximum margin hyperplane for solving learning samples. The basic idea of SVM is to find a hyperplane for category division based on the training set D to separate samples into different categories. The hyperplane is shown in Equation (2).
ω T x + b = 0
The maximum interval for classification is shown in Equation (3).
min ω , b 1 2 ω T ω s . t . y i ( ω T x i + b ) 1 , i = 1 , 2 , , m
To better solve this convex quadratic programming problem, the Lagrange multiplier method was introduced to obtain its dual problem, as shown in Equation (4).
max a i = 1 m a i 1 2 i = 1 m j = 1 m α i α j y i y j x i T x j s . t . α i 0 , i = 1 , 2 , , m i = 1 m α i y i = 0
Most problems in the real world are not linearly separable, which means that there is no reasonable hyperplane in the original sample space to ensure the precise division of samples. Introducing the concept of the kernel function to replace the dual problem and the dot product operation after nonlinear mapping can solve this problem. Standard kernel functions include linear kernel, polynomial kernel, and RBF kernel. In addition, a penalty factor and a slack variable can facilitate the elevation of the accuracy of SVM.
We set the cost of SVM as 1 and the value of γ was 0.01.

2.3.2. K-Nearest Neighbors

K-nearest neighbors (KNN) is a classification algorithm [31]. The main idea of the algorithm is if a sample is most similar to the k samples in a data set, and if most of the k samples belong to the same category, the sample also belongs to this category. Euclidean distance can measure the similarity between two samples. The Euclidean distance between two points x = ( x 1 , x 2 , , x n ) and y = ( y 1 , y 2 , , y n ) in n-dimensional space can be represented as shown in Equation (5).
d x y = i = 1 n ( x i y i )
We set the k value as 3, which meant that each point was measured within the 3 nearest points.

3. Experimental Design

As shown in Figure 4, we designed a driving simulation experiment to collect the physiological signals from participants and their drowsiness levels based on the Karolinska sleepiness scale (KSS) and trained observer rating (TOR). After feature extraction and drowsiness measurement, we adopted the hybrid model utilizing principal component analysis and artificial neural networks and the three other comparison models mentioned in Section 2 for the numerical experiment.

3.1. Driving Simulation

3.1.1. Participants

The selection criteria for the participants in this experiment were as follows:
Have held a valid driver’s license for at least six months;
Good physical condition;
No history of taking drugs in the past month; no alcohol, coffee, or functional beverages in the day before the experiment;
Have good sleeping habits; sleep no less than 6 h per day.
Nine qualified drivers aged 22–32 years (mean = 24.4, standard deviation = 3.13 years) were recruited strictly according to the selection criteria, including seven males and two females. After completing the simulating experiment, each participant received RMB 100 (about $16) as a subsidy.

3.1.2. Apparatuses

Figure 5 shows the apparatuses used in this research, including the driving simulator and physiological acquisition equipment.
The driving simulator for this experiment was the G29 developed by Logitech. We put the G29 on a computer with three displays with a viewing angle of 270°, which ensured the participants felt like they were driving in reality.
A Logitech 720p HD camera was set facing the drivers to capture facial videos. Moreover, the driving simulation laboratory was equipped with four surveillance cameras to observe the drivers’ behavior. The facial images and the surveillance images were both transmitted to the console.
This study captured the physiological signals using three pieces of physiological acquisition equipment developed by Kingfar Technology, including an electrodermal activity (EDA) recorder, respiration (RESP) recorder, and a photoplethysmography (PPG) recorder. Their sampling rates were 64 Hz. An Ergolab experiment platform was used to combine the signals for real-time data transmission. In addition, the lightweight devices ensured freedom of movement and minimized interference to drivers.

3.1.3. Scenario

Figure 5 also shows the driving scenario. World Editor, developed by 51-world, was used to design driving sections. Studies have shown that drivers are more likely to become drowsy in a monotonous environment, and drowsy driving traffic accidents are more common on highways [32,33].
Therefore, the driving scenario was designed as a free-flow one-way three-lane ring-shaped highway with fences and streetlights on both sides, no brightly colored irritants, and no other traffic interference in the lane. The weather was cloudless. The simulated driving time was consistent with the actual time.

3.1.4. Procedure

It has been shown that drivers are most likely to become drowsy from 5 PM to 6 AM the next day [1]. Therefore, the experiment was carried out after 5 PM. The experimental procedure consisted of a preparation stage and the driving task.
In the preparation stage, experimenters introduced the procedure to participants. Once the participants decided to take part in the experiment, they provided informed consent and wore physiological acquisition equipment under the guidance of the experimenters. Before the driving task, participants had five to ten minutes to adapt to the simulated scene.
During the driving task, participants were required to drive the vehicle from awake to drowsy at a speed of 100–120 km/h. Moreover, they were required to keep driving in the middle lane. In order to ensure the credibility of the participants’ drowsy state, this study combined the Karolinska sleepiness scale (KSS) developed by Azmeh, et al. [34] and the trained observer rating (TOR) method developed by Wierwille, et al. [35] to measure drowsiness. Table 2 shows the KSS and TOR levels and the corresponding relationship between them.
Participants evaluated their drowsy state during the experiment according to the KSS. It is worth mentioning that errors can appear when asking the participants’ KSS level too frequently or sparsely. Zhang, et al. [36] indicated that a 10-min interval best met the needs of their experiment. For this reason, the participants in the present study reported their self-perceived KSS level every 10 min during the driving task.
To check the reliability of participants’ self-reporting, an experimenter at the console observed each driver’s facial state and body movements in the video from the cameras. Figure 6 shows the display on the console. The experimenter determined the drowsy state of participants according to TOR at the same time as asking the KSS level of participants. When the difference between the corresponding driver’s self-reported score and the experimenter’s score exceeded 2, the experimenter would check the video to confirm the participants’ assessment.

3.2. Feature Extraction

We sliced the data every 2 s and extracted all the features shown in Table 3.
For EDA, we calculated the mean and standard deviation of the signal intensity for each slice [6]. EDA is a series of complex and unstable nonlinear signals, while the entropy index is a parameter used to measure the complexity of the signal [37]. Therefore, we calculated the classical fuzzy entropy and wavelet energy entropy according to Min and Cai [11].
For RESP, we extracted the mean and standard deviation of the breath rate and signal amplitude [15].
For PPG, we calculated the three parameters of HRV shown in Equation (6) and the mean and standard deviation of both heart rate and signal amplitude [6].
sympathetic _ vagal ratio = s l f / s h f sympathetic ratio = s l f / ( s v l f + s l f + s h f ) vagal ratio = s h f / ( s v l f + s l f + s h f )
In Equation (6), s v l f refers to the very low-frequency (0.0–0.04 Hz) power of PPG signals; s l f refers to the low-frequency (0.04–0.15 Hz) power of PPG signals; and s h f refers to the high-frequency (0.15–0.4 Hz) power of PPG signals.

3.3. Measurement of Drowsiness

Although the nine detailed classification levels of the KSS are often beneficial, there is no need to divide the drowsiness level into nine categories in the classification problem [38]. Some studies have classified driver drowsiness into just two categories, with 0 representing no drowsiness and 1 indicating drowsiness [39,40]. As shown in Table 4, none of the KSS levels 1–5 indicates sleepiness; thus, they were classified as state 0, or no drowsiness, in this study. KSS levels 6–9 all indicate sleepiness; thus, they were classified as state 1, or drowsiness, here.

3.4. Numerical Experiment

The models were trained on a computer equipped with Intel i9-10900k, 64G RAM, and 1T SSD. In order to eliminate the errors caused by sample differences, we modeled each sample individually to detect driving drowsiness. The original data for each model were the extracted physiological features described in Section 3.2. The training targets were the drowsiness states mentioned in Section 3.3 (0—no drowsiness; 1—drowsiness).
There were two stages in the numerical experiment: drowsiness detection and verification.
  • Drowsiness detection
In this stage, the original data were input into the proposed model and the three comparison models. As shown in Table 5, data division varied with different classification algorithms. The evaluation indexes of the model are shown Table 6.
  • Verification
In this stage, drowsiness detection was repeated 100 times, then each evaluation index’s average and standard deviation were calculated to verify the drowsiness detection results and evaluate each model’s stability.

4. Results

4.1. Drowsiness Detection

Table 7 shows the average accuracies, drowsiness recalls, drowsiness precisions, AUCs, and training times of the models; the best performance of each evaluation index for the hybrid and single models is bolded. The average accuracies, drowsiness recalls, and drowsiness precisions of the training results from all models were above 90%, and the average AUCs of most of the models were above 0.9. Different models showed different average training times. The average training time of PCA-SVM and SVM was about one minute, while the training times of other models were mainly within one second. Additional information can be found in Appendix A, which shows the results of drowsiness detection.
The hybrid model utilizing principal component analysis and artificial neural networks obtained the highest accuracy, drowsiness recall, drowsiness precision, and AUC, while guaranteeing timeliness. The average accuracy of the hybrid model (PCA-CFNN) was 97.9%, which was up to 4.9% higher than the comparison models (KNN). The training time of PCA-CFNN was 0.231 s, up to 99% shorter than the comparison models (SVM). Although the training time was slightly longer than that for PCA-KNN (0.124 s) and KNN (0.116 s), it still satisfied the needs for application in real driving scenarios.
The artificial neural networks performed better than the classic machine learning algorithms. For hybrid models, the average accuracies, drowsiness precisions, and AUCs of the artificial neural networks (PCA-BPNN and PCA-CFNN) were higher than classic machine learning algorithms (PCA-SVM and PCA-KNN). The drowsiness recalls of the artificial neural networks (PCA-BPNN and PCA-CFNN) were higher than that of PCA-KNN but lower than that of PCA-SVM. The single models had similar performance. The average accuracies, drowsiness precisions, and AUCs of the artificial neural networks (BPNN and CFNN) were higher than those of the classic machine learning algorithms (SVM and KNN). The drowsiness recalls of the artificial neural networks (BPNN and CFNN) were higher than that of KNN but lower than that of SVM. However, PCA-SVM had not only the lowest average drowsiness precision and AUC, but also the longest training time of the hybrid models. SVM showed the same performance in single models. This indicated that both PCA-SVM and SVM had high misjudgment rates, low classification reliabilities, and a long time delay and were not suitable for application in real driving scenarios.
Moreover, the hybrid models performed better than the single models. Figure 7a shows the improvement of the hybrid models compared to the single models in each evaluation index. The accuracy, drowsiness recalls, drowsiness precisions, and AUCs of the hybrid models were mostly higher than the single models. In addition, the training times of the hybrid models were shorter than those of the single models.
Figure 7b takes sample 9 to illustrate the above results in detail. The principal component analysis and artificial neural network hybrid models showed the highest accuracy, drowsiness recall, drowsiness precision, and AUC, with a training time of lower than one second. For the hybrid models, the accuracies, drowsiness precisions, and AUCs of the artificial neural networks (PCA-BPNN and PCA-CFNN) were higher than those of the classic machine learning algorithms (PCA-SVM and PCA-KNN). For single models, the accuracies, drowsiness precisions, and AUCs of the artificial neural networks (BPNN and CFNN) were also higher than those of the classic machine learning algorithms (SVM and KNN). In addition, the hybrid models showed improvements compared to single models in accuracy, drowsiness recall, drowsiness precision, and AUC, and had reductions in training time. This confirmed that the performance of artificial neural networks is better than classic machine learning algorithms and hybrid models have better performance than single models.
In general, the results of the drowsiness detection stage reflect that (1) the hybrid model with principal component analysis and artificial neural networks performed the best; (2) artificial neural networks obtained a higher accuracy than classic machine learning algorithms; (3) the hybrid with principal component analysis and classification algorithms (artificial neural networks and classic machine learning algorithms) enhanced the accuracy and timeliness of drowsiness detection.

4.2. Verification

Table 8 shows the average accuracies, drowsiness recalls, drowsiness precisions, AUCs, and training times of each model in the verification stage. Figure 8a shows the improvements in the hybrid models compared to the single models. Consistent with the results of the drowsiness detection stage, the hybrid model with principal component analysis and artificial neural networks showed the best performance while guaranteeing timeliness; the artificial neural networks performed better than the classic machine learning algorithms; and the hybrid models performed better than the single models in the verification stage. For more information, Appendix B shows the results of the verification.
Table 9 shows the standard deviations of the accuracies, drowsiness recalls, drowsiness precisions, AUCs, and training times of the hybrid and single models; the best evaluation indexes in each model are bolded. The average standard deviations of the evaluation indexes of all the hybrid models were lower than 1%, which was lower than the single models. This showed that the hybrid models demonstrated a more stable performance than the single models. In addition, as shown in Figure 8b, most of the standard deviations in the accuracies, drowsiness recalls, drowsiness precisions, AUCs, and training times obtained by the hybrid models were lower than those of the single models. This showed that the performance of the hybrid models was more stable and less volatile than that of the single models.
Figure 9 takes sample 9 to illustrate these findings in detail. The hybrid model with principal component analysis and artificial neural networks had the best performance; the accuracies, drowsiness precisions, and AUCs of the artificial neural networks were higher than the classic machine learning algorithms; and the hybrid models showed improvements compared to the single models in each evaluation index, which was consistent with the drowsiness detection stage. Moreover, the distribution ranges of the evaluation indicators of the single models were more comprehensive than those of the hybrid models. We speculated that the performance of the hybrid models was more stable than that of the single models.
In general, the results of the verification stage were consistent with the results of the drowsiness detection stage. In addition, a hybrid utilizing principal component analysis can improve the stability of the model.

5. Discussion

Drowsy driving is harmful to human society, and it is essential to detect driving drowsiness accurately and quickly. This study proposed a hybrid model of principal component analysis and artificial neural networks to detect driving drowsiness quickly and accurately using non-intrusive physiological data. We collected EDA, RESP, and PPG signals and calculated their features. Then, we used the proposed model and its comparison models to detect drowsiness. We also compared their performance to verify our hypotheses.
Hypothesis 1 was confirmed. The results showed that the performance of the hybrid models was better than that of the single models. We speculate that this is due to the advantages of PCA, which include reducing resource requirements, enhancing data interpretability, and—most importantly—removing noise. In other words, PCA can give the model higher accuracy [41]. In addition, we found that the training times of the hybrid models were shorter than those of the single models. We speculate that the hybrid models reduced the dimensions of the extracted physiological features, leading to shorter computation times for the driving drowsiness detection models. Moreover, the results of the verification showed that the standard deviations of the accuracies, drowsiness recalls, drowsiness precisions, AUCs, and training times of the hybrid models were lower than those of the single models. This showed that PCA could assist the models in adapting to unknown data and enhance their stability. Thus, PCA improved the accuracy, timeliness, and guaranteed stability of the model.
Hypothesis 2 was also confirmed. The results showed that the accuracies, drowsiness precisions, and AUCs of the artificial neural networks were higher than those of the classic machine learning algorithms. In other words, artificial neural networks can detect driving drowsiness more accurately and credibly than classic machine learning algorithms. Thus, artificial neural networks are more appropriate for application to natural driving scenes than classic machine learning algorithms. The internal mechanism behind the detection of driving drowsiness is very comprehensive. Basheer and Hajmeer [42] suggested that since artificial neural networks can realize any complex nonlinear transformation, they are particularly appropriate for problems with complex internal mechanisms.
In summary, we believe that the proposed hybrid model utilizing principal component analysis and artificial neural networks meets the need for fast and accurate drowsiness detection. In the future, the proposed model may be applied in smart cars to detect the drowsiness states of drivers and promptly remind them to pay attention to their physiological states. This method can guarantee road traffic safety in the future.

6. Conclusions

The present study proposed a hybrid model utilizing principal component analysis and artificial neural networks to accurately detect driving drowsiness. A driving simulation experiment was designed to collect the participants’ physiological signals and their drowsiness levels. We extracted the corresponding physiological features as the original data and the drowsiness levels as the training targets of the models. Then, we used the proposed model and three other comparison models for drowsiness detection.
The artificial neural networks obtained higher accuracy and credibility than the classic machine learning algorithms. Hybrid models utilizing principal component analysis can provide higher accuracy, timeliness, and stability in drowsiness detection; our hybrid model with principal component analysis and artificial neural networks reached the goal of this research. The driving drowsiness detection method proposed in this study can be applied to the active warning system (AWS) of smart cars in the future and contribute to road safety. In the future, it will be necessary to conduct research on how AWS systems can alert drivers to stay awake without scaring them. In addition, the hyperparameters of PCA or artificial neural networks can be modified to further improve the accuracy of driving drowsiness detection.

Author Contributions

Conceptualization, Y.D.; Methodology, Y.H.; Project administration, Y.D.; Visualization, Y.H.; Writing—original draft, Y.H.; Writing—review & editing, Y.H. and Y.D.; All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

The study was conducted in accordance with the Declaration of Helsinki, and approved by the Ethics Committee of School of Intelligent Systems Engineering, Sun Yat-sen University (protocol code ISEEC-151, 8 June 2022).

Informed Consent Statement

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

Data Availability Statement

Research data are not available.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Table A1. Results of Drowsiness Detection.
Table A1. Results of Drowsiness Detection.
ModelsHybrid Model of Principal Component Analysis and
Artificial Neural Networks
Single Model of Artificial
Neural Networks
Hybrid Model of Principal Component Analysis
and Classic Machine
Learning Algorithms
Single Model of Classic Machine Learning Algorithms
IndexSamplesPCA-BPNNPCA-CFNNBPNNCFNNPCA-SVMPCA-KNNSVMKNN
Accuracy
(%)
199.4%98.5%96.7%97.0%89.8%92.1%89.1%89.7%
292.8%94.5%92.8%92.8%92.8%91.2%88.1%88.4%
398.2%98.4%98.2%97.4%92.1%93.4%90.2%91.9%
488.1%91.1%85.8%84.4%88.1%86.3%87.2%84.7%
599.6%100.0%98.3%97.5%97.5%96.3%96.3%95.0%
699.7%99.2%99.4%98.9%98.5%97.9%97.8%96.1%
799.2%99.4%96.9%99.2%98.3%97.6%95.7%96.7%
899.3%100.0%98.5%99.3%99.4%99.6%99.1%98.3%
998.3%100.0%97.8%98.6%97.1%97.1%96.3%96.5%
Drowsiness
Recall (%)
199.6%98.7%97.8%98.7%99.8%96.8%99.8%95.5%
292.3%94.9%92.0%93.7%95.1%93.4%91.9%90.8%
399.3%99.0%99.3%99.0%99.8%98.1%99.8%96.6%
495.0%94.4%92.0%88.0%93.3%89.7%90.8%86.9%
5100.0%100.0%100.0%99.4%100.0%99.4%99.7%98.8%
6100.0%99.3%99.7%99.3%99.6%99.1%99.5%98.8%
799.6%100.0%96.8%100.0%98.2%98.6%94.6%97.7%
899.2%100.0%98.4%99.2%99.4%99.6%99.4%98.6%
998.9%100.0%98.6%98.6%100.0%98.8%100.0%98.4%
Drowsiness
Precision (%)
199.6%99.1%97.3%97.0%87.5%92.4%86.4%89.8%
295.5%95.4%94.5%93.2%92.2%91.4%87.2%88.8%
398.3%99.0%98.2%97.6%90.7%93.5%88.4%93.1%
486.8%91.1%85.2%85.5%87.6%87.0%87.5%86.9%
599.4%100.0%97.7%97.0%96.7%95.4%95.3%94.3%
699.7%99.7%99.7%99.3%98.4%98.3%97.8%96.4%
799.1%99.1%98.1%98.6%99.1%97.5%98.0%96.8%
8100.0%100.0%100.0%100.0%100.0%100.0%99.6%99.6%
998.9%100.0%98.6%99.6%96.4%97.6%95.5%97.2%
AUC10.9900.9890.9890.9890.8280.8810.8090.873
20.8940.9240.8980.8850.9160.9040.8680.867
30.9890.9880.9900.9890.8310.8730.8220.865
40.9810.9850.9750.9690.8740.8500.8560.836
50.9860.9860.9860.9870.9380.9420.9330.915
60.9860.9860.9850.9860.9610.9580.9530.912
70.9920.9930.9920.9930.9790.9730.9550.960
80.9550.9230.9330.9440.9650.9660.9270.944
90.9870.9870.9840.9860.9330.9350.9060.932
Training time
(seconds)
10.2660.3630.5911.00354.6660.10665.1990.111
20.1810.2200.4680.88869.4470.11688.4250.129
30.2060.2460.4721.17768.4030.13684.9580.145
40.1660.2300.4350.95477.8140.12298.1490.131
50.1610.2050.4711.00328.2170.05833.6530.062
60.1470.1870.5120.93145.3060.11762.4030.127
70.1510.2170.2970.77154.8980.11970.3650.127
80.1290.1580.3951.11715.2440.07323.4390.078
90.2320.2570.3240.99842.4780.11858.0730.125

Appendix B

Table A2. Results of Verification.
Table A2. Results of Verification.
ModelHybrid Model of Principal Component Analysis and Artificial Neural NetworksSingle Model of Artificial
Neural Networks
Hybrid Model of Principal Component Analysis
and Classic Machine Learning
Algorithms
Single Model of Classic
Machine Learning Algorithms
IndexSamplePCA-BPNNPCA-CFNNBPNNCFNNPCA-SVMPCA-KNNSVMKNN
Accuracy
(%)
198.5 ± 0.798.6 ± 0.797.7 ± 1.097.6 ± 0.991.8 ± 0.991.6 ± 0.790.3 ± 0.990.2 ± 0.8
295.4 ± 0.995.7 ± 0.893.7 ± 1.093.9 ± 1.091.5 ± 0.791.5 ± 0.890.5 ± 0.889.7 ± 0.9
398.0 ± 1.098.5 ± 0.596.4 ± 3.697.8 ± 0.692.2 ± 0.794.0 ± 0.790.8 ± 0.892.6 ± 0.7
488.9 ± 1.488.8 ± 1.386.8 ± 1.486.7 ± 1.488.3 ± 0.886.9 ± 1.086.7 ± 0.884.5 ± 1.1
599.2 ± 0.699.2 ± 0.698.3 ± 1.098.4 ± 0.896.8 ± 0.696.3 ± 0.695.8 ± 0.694.9 ± 0.6
699.1 ± 0.699.2 ± 0.598.8 ± 0.799.0 ± 0.797.9 ± 0.497.1 ± 0.596.5 ± 0.595.9 ± 0.5
798.2 ± 0.798.2 ± 0.797.9 ± 0.898.1 ± 0.697.8 ± 0.498.2 ± 0.496.8 ± 0.597.2 ± 0.5
899.5 ± 0.499.4 ± 0.499.0 ± 0.698.9 ± 0.699.5 ± 0.299.4 ± 0.399.0 ± 0.398.9 ± 0.3
998.5 ± 0.798.6 ± 0.797.7 ± 0.997.9 ± 0.997.4 ± 0.497.3 ± 0.496.7 ± 0.496.5 ± 0.5
Drowsiness
Recall (%)
199.2 ± 0.799.4 ± 0.598.6 ± 0.898.8 ± 0.799.5 ± 0.396.7 ± 0.899.2 ± 0.495.8 ± 0.8
296.0 ± 1.296.2 ± 1.294.3 ± 1.494.6 ± 1.594.7 ± 1.193.2 ± 1.193.8 ± 1.391.8 ± 1.3
399.0 ± 0.899.4 ± 0.498.2 ± 1.799.1 ± 0.599.8 ± 0.198.7 ± 0.499.7 ± 0.298.0 ± 0.6
494.6 ± 1.694.4 ± 1.892.7 ± 1.792.3 ± 1.993.0 ± 1.290.1 ± 1.492.0 ± 1.387.8 ± 1.6
599.6 ± 0.699.7 ± 0.499.0 ± 1.099.3 ± 0.799.9 ± 0.198.8 ± 0.699.8 ± 0.297.8 ± 0.8
699.5 ± 0.599.5 ± 0.499.3 ± 0.699.5 ± 0.599.8 ± 0.299.0 ± 0.399.6 ± 0.298.6 ± 0.4
799.0 ± 0.999.0 ± 0.998.7 ± 1.098.9 ± 0.897.8 ± 0.798.3 ± 0.696.9 ± 0.997.3 ± 0.7
899.6 ± 0.499.5 ± 0.499.2 ± 0.599.1 ± 0.699.6 ± 0.399.4 ± 0.399.2 ± 0.399.0 ± 0.3
999.2 ± 0.599.4 ± 0.598.8 ± 0.799.0 ± 0.6100 ± 0.099.1 ± 0.4100 ± 0.098.7 ± 0.4
Drowsiness
Precision (%)
198.6 ± 1.098.6 ± 0.898.0 ± 1.097.8 ± 1.089.7 ± 1.191.5 ± 0.988.0 ± 1.290.4 ± 1.0
295.8 ± 1.396.2 ± 1.294.2 ± 1.794.3 ± 1.290.5 ± 1.091.6 ± 1.489.4 ± 1.189.8 ± 1.4
398.4 ± 0.998.6 ± 0.697.0 ± 3.198.0 ± 0.790.8 ± 0.893.6 ± 0.989.2 ± 0.992.5 ± 0.9
487.6 ± 1.987.5 ± 1.985.7 ± 2.085.7 ± 2.087.6 ± 1.187.8 ± 1.386.1 ± 1.085.8 ± 1.4
599.3 ± 0.799.2 ± 0.898.5 ± 1.098.4 ± 0.995.7 ± 0.896.1 ± 0.894.5 ± 0.895.1 ± 0.8
699.4 ± 0.599.5 ± 0.499.2 ± 0.699.2 ± 0.797.6 ± 0.597.4 ± 0.696.2 ± 0.696.3 ± 0.6
798.0 ± 0.897.9 ± 1.097.9 ± 0.997.9 ± 0.998.5 ± 0.498.8 ± 0.597.9 ± 0.598.0 ± 0.5
899.9 ± 0.399.9 ± 0.299.7 ± 0.399.7 ± 0.399.9 ± 0.199.9 ± 0.199.7 ± 0.299.8 ± 0.2
998.8 ± 0.798.9 ± 0.898.3 ± 0.898.4 ± 0.896.9 ± 0.597.6 ± 0.696.1 ± 0.596.9 ± 0.6
AUC10.990 ± 0.0010.990 ± 0.0010.990 ± 0.0010.990 ± 0.0010.869 ± 0.0130.884 ± 0.0140.846 ± 0.0150.866 ± 0.014
20.933 ± 0.0140.939 ± 0.0140.911 ± 0.0150.915 ± 0.0150.910 ± 0.0100.911 ± 0.0110.898 ± 0.0100.891 ± 0.011
30.989 ± 0.0010.989 ± 0.0010.987 ± 0.0080.989 ± 0.0010.842 ± 0.0160.888 ± 0.0150.810 ± 0.0160.864 ± 0.015
40.983 ± 0.0030.983 ± 0.0030.978 ± 0.0040.977 ± 0.0040.872 ± 0.0110.858 ± 0.0130.852 ± 0.0110.833 ± 0.013
50.986 ± 0.0010.986 ± 0.0010.986 ± 0.0010.986 ± 0.0010.942 ± 0.0100.941 ± 0.0100.925 ± 0.0130.923 ± 0.011
60.986 ± 0.0010.986 ± 0.0010.986 ± 0.0010.986 ± 0.0010.943 ± 0.0130.937 ± 0.0140.914 ± 0.0150.911 ± 0.016
70.993 ± 0.0000.993 ± 0.0000.993 ± 0.0000.993 ± 0.0000.974 ± 0.0050.979 ± 0.0050.965 ± 0.0060.968 ± 0.006
80.946 ± 0.0080.946 ± 0.0090.940 ± 0.0100.940 ± 0.0090.966 ± 0.0120.969 ± 0.0110.944 ± 0.0180.953 ± 0.014
90.986 ± 0.0010.986 ± 0.0010.985 ± 0.0010.985 ± 0.0010.930 ± 0.0130.942 ± 0.0110.913 ± 0.0140.921 ± 0.013
Training time
(seconds)
10.300 ± 0.0780.441 ± 0.0940.758 ± 0.2891.402 ± 0.29854.759 ± 1.5820.149 ± 0.01465.416 ± 1.8810.156 ± 0.014
20.236 ± 0.0350.329 ± 0.0490.659 ± 0.1281.204 ± 0.21968.366 ± 0.7920.162 ± 0.01387.013 ± 0.850.175 ± 0.012
30.259 ± 0.0770.319 ± 0.0510.772 ± 0.3041.466 ± 0.37168.204 ± 1.6230.208 ± 0.01186.317 ± 1.6290.220 ± 0.013
40.206 ± 0.0260.202 ± 0.0290.642 ± 0.1730.974 ± 0.19377.338 ± 1.3480.187 ± 0.00999.471 ± 1.4920.200 ± 0.012
50.194 ± 0.0250.244 ± 0.0440.571 ± 0.1250.931 ± 0.19530.926 ± 1.3220.087 ± 0.00737.300 ± 1.5700.094 ± 0.009
60.183 ± 0.0290.191 ± 0.0240.547 ± 0.2580.842 ± 0.30845.848 ± 0.9800.181 ± 0.01361.471 ± 0.9550.195 ± 0.012
70.218 ± 0.0560.213 ± 0.0450.559 ± 0.1980.807 ± 0.26054.519 ± 0.6320.171 ± 0.01169.722 ± 0.8230.182 ± 0.012
80.140 ± 0.0190.170 ± 0.1030.445 ± 0.1881.222 ± 1.89314.545 ± 1.2620.098 ± 0.01123.949 ± 0.6110.105 ± 0.012
90.203 ± 0.0320.220 ± 0.0370.513 ± 0.1700.810 ± 0.21143.138 ± 0.8040.180 ± 0.01157.866 ± 1.0150.194 ± 0.012

References

  1. Tefft, B.C. Asleep at the Wheel: The Prevalence and Impact of Drowsy Driving; American Automobile Association Foundation for Traffic Safety: Washington, DC, USA, 2010. [Google Scholar]
  2. Lee, B.G.; Jung, S.J.; Chung, W.Y. Real-time physiological and vision monitoring of vehicle driver for non-intrusive drowsiness detection. IET Commun. 2011, 5, 2461–2469. [Google Scholar] [CrossRef]
  3. Emotiv, I. Epoc+ Research Grade 14 Channel Mobile 2017. Available online: https://www.emotiv.com/epoc/ (accessed on 18 November 2020).
  4. Lal, S.K.; Craig, A. A critical review of the psychophysiology of driver fatigue. Biol. Psychol. 2001, 55, 173–194. [Google Scholar] [CrossRef]
  5. Doudou, M.; Bouabdallah, A.; Berge-Cherfaoui, V. Driver Drowsiness Measurement Technologies: Current Research, Market Solutions, and Challenges. Int. J. Intell. Transp. Syst. Res. 2019, 18, 297–319. [Google Scholar] [CrossRef]
  6. Jacobe de Naurois, C.; Bourdin, C.; Stratulat, A.; Diaz, E.; Vercher, J.L. Detection and prediction of driver drowsiness using artificial neural network models. Accid. Anal. Prev. 2019, 126, 95–104. [Google Scholar] [CrossRef] [PubMed]
  7. Zhao, L.; Wang, Z.; Zhang, G.; Gao, H. Driver drowsiness recognition via transferred deep 3D convolutional network and state probability vector. Multimedia Tools Appl. 2020, 79, 26683–26701. [Google Scholar] [CrossRef]
  8. Li, X.; Hong, L.; Wang, J.; Liu, X. Fatigue driving detection model based on multi-feature fusion and semi-supervised active learning. IET Intell. Transp. Syst. 2019, 13, 1401–1409. [Google Scholar] [CrossRef]
  9. Morris, D.M.; Pilcher, J.J.; Switzer, F.S., III. Lane heading difference: An innovative model for drowsy driving detection using retrospective analysis around curves. Accid. Anal. Prevention 2015, 80, 117–124. [Google Scholar] [CrossRef]
  10. Bajaj, V.; Taran, S.; Khare, S.K.; Sengur, A. Feature extraction method for classification of alertness and drowsiness states EEG signals. Appl. Acoust. 2020, 163, 107224. [Google Scholar] [CrossRef]
  11. Min, J.; Cai, M. Driver Fatigue Detection Based on Multi-scale Wavelet Log Energy Entropy of Frontal EEG. China J. Highw. Transp. 2020, 33, 186–193. (In Chinese) [Google Scholar]
  12. Balam, V.P.; Sameer, V.U.; Chinara, S. Automated classification system for drowsiness detection using convolutional neural network and electroencephalogram. IET Intell. Transp. Syst. 2021, 15, 514–524. [Google Scholar] [CrossRef]
  13. Murugan, S.; Selvaraj, J.; Sahayadhas, A. Detection and analysis: Driver state with electrocardiogram (ECG). Phys. Eng. Sci. Med. 2020, 43, 525–537. [Google Scholar] [CrossRef] [PubMed]
  14. Kundinger, T.; Sofra, N.; Riener, A. Assessment of the Potential of Wrist-Worn Wearable Sensors for Driver Drowsiness Detection. Sensors 2020, 20, 1029. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  15. Zhu, Y.; Liu, H.; Cha, F.; Li, M.; Guo, W.; Wang, P. Real-Time Monitoring System for Driver’s Fatigue States Based on Respiratory Signal. J. Jiangnan Univ. 2014, 13, 55–59. (In Chinese) [Google Scholar]
  16. Malathi, D.; Jayaseeli, J.D.; Madhuri, S.; Senthilkumar, K. Electrodermal Activity Based Wearable Device for Drowsy Drivers. J. Phys. Conf. Ser. 2018, 1000, 012048. [Google Scholar] [CrossRef]
  17. Koh, S.; Cho, B.R.; Lee, J.-I.; Kwon, S.-O.; Lee, S.; Lim, J.B.; Lee, S.B.; Kweon, H.-D. Driver drowsiness detection via PPG biosignals by using multimodal head support. In Proceedings of the 2017 4th International Conference on Control, Decision and Information Technologies (CoDIT), Barcelona, Spain, 5–7 August 2017; p. 383. [Google Scholar] [CrossRef]
  18. Hyeonjeong, L.; Jaewon, L.; Miyoung, M. Using Wearable ECG/PPG Sensors for Driver Drowsiness Detection Based on Distinguishable Pattern of Recurrence Plots. Electronics 2019, 8, 192. [Google Scholar]
  19. Wörle, J.; Metz, B.; Thiele, C.; Weller, G. Detecting sleep in drivers during highly automated driving: The potential of physiological parameters. IET Intell. Transp. Syst. 2019, 13, 1241–1248. [Google Scholar] [CrossRef]
  20. Grimnes, S.; Martinsen, Ø.G. (Eds.) Chapter 10—Selected applications. In Bioimpedance and Bioelectricity Basics, 3rd ed.; Academic Press: Oxford, UK, 2015; pp. 405–494. [Google Scholar]
  21. Scarpa, A.; Raine, A. Psychophysiology of Anger and Violent Behavior. Psychiatr. Clin. N. Am. 1997, 20, 375–394. [Google Scholar] [CrossRef]
  22. Alian, A.A.; Shelley, K.H. Photoplethysmography. Best Pract. Res. Clin. Anaesthesiol. 2014, 28, 395–406. [Google Scholar] [CrossRef]
  23. Xie, Z. Resaerch on Driving Fatigue Model Based on the Physiological Signal; Suzhou University: Suzhou, China, 2017. (In Chinese) [Google Scholar]
  24. Jian, Y.; David, Z.; Frangi, A.F.; Jing-Yu, Y. Two-dimensional PCA: A new approach to appearance-based face representation and recognition. IEEE Trans. Pattern Anal. Mach. Intell. 2004, 26, 131–137. [Google Scholar] [CrossRef] [Green Version]
  25. Fernandez-Delgado, M.; Cernadas, E.; Barro, S.; Amorim, D. Do we Need Hundreds of Classifiers to Solve Real World Classification Problems? J. Mach. Learn. Res. 2014, 15, 3133–3181. [Google Scholar]
  26. Bronold, M.; Kubala, S.; Pettenkofer, C.; Jaegermann, W.; Sejnowski, T.J. The “independent components” of natural scenes are edge filters. Vis. Res. 1997, 37, 3327–3338. [Google Scholar]
  27. Bishop, C.M. Neural Networks for Pattern Recognition. Adv. Comput. 1995, 37, 119–166. [Google Scholar]
  28. Adeli, H. Machine Learning—Neural Networks, Genetic Algorithms and Fuzzy Systems. Kybernetes; John Wiley & Sons: Hoboken, NJ, USA, 1972. [Google Scholar]
  29. Ayub, S.; Saini, J.P. ECG classification and abnormality detection using cascade forward neural network. Int. J. Eng. Sci. Technol. 2011, 3, 68420. [Google Scholar] [CrossRef]
  30. Chang, C.C.; Lin, C.J. LIBSVM: A library for support vector machines. ACM Trans. Intell. Syst. Technol. 2007, 2, 1–27. [Google Scholar] [CrossRef]
  31. Coomans, D.; Massart, D.L. Alternative k-nearest neighbour rules in supervised pattern recognition: Part 3. Condensed nearest neighbour rules. Anal. Chim. Acta 1982, 138, 167–176. [Google Scholar] [CrossRef]
  32. Louw, T.; Merat, N. Are you in the loop? Using gaze dispersion to understand driver visual attention during vehicle automation. Transp. Res. Part C Emerg. Technol. 2017, 76, 35–50. [Google Scholar] [CrossRef]
  33. Thiffault, P.; Bergeron, J. Monotony of road environment and driver fatigue: A simulator study. Accid. Anal. Prev. 2003, 35, 381–391. [Google Scholar] [CrossRef]
  34. Shahid, A.; Wilkinson, K.; Marcu, S.; Shapiro, C.M. Karolinska Sleepiness Scale (KSS); Springer: New York, NY, USA, 2011; pp. 209–210. [Google Scholar] [CrossRef]
  35. Wierwille, W.W.; Ellsworth, L.A. Evaluation of driver drowsiness by trained raters. Accid. Anal. Prev. 1994, 26, 571–581. [Google Scholar] [CrossRef]
  36. Zhang, X.; Wang, X.; Yang, X.; Xu, C.; Zhu, X.; Wei, J. Driver drowsiness detection using mixed-effect ordered logit model considering time cumulative effect. Anal. Methods Accid. Res. 2020, 26, 100114. [Google Scholar] [CrossRef]
  37. Pritchard, W.; Duke, D. Measuring Chaos in the Brain—A Tutorial Review of EEG Dimension Estimation. Brain Cogn. 1995, 27, 353–397. [Google Scholar] [CrossRef] [Green Version]
  38. Vadeby, A.; Forsman, A.; Kecklund, G.; Åkerstedt, T.; Sandberg, D.; Anund, A. Sleepiness and prediction of driver impairment in simulator studies using a Cox proportional hazard approach. Accid. Anal. Prev. 2010, 42, 835–841. [Google Scholar] [CrossRef] [PubMed]
  39. Van Loon, R.J.; Brouwer, R.F.; Martens, M.H. Drowsy drivers’ under-performance in lateral control: How much is too much? Using an integrated measure of lateral control to quantify safe lateral driving. Accid. Anal. Prev. 2015, 84, 134–143. [Google Scholar] [CrossRef] [PubMed]
  40. Martensson, H.; Keelan, O.; Ahlstrom, C. Driver Sleepiness Classification Based on Physiological Data and Driving Performance from Real Road Driving. IEEE Trans. Intell. Transp. Syst. 2019, 20, 421–430. [Google Scholar] [CrossRef]
  41. Shlens, J. A Tutorial on Principal Component Analysis. Int. J. Remote Sens. 2014, 51, 1100. [Google Scholar]
  42. Basheer, I.; Hajmeer, M. Artificial neural networks: Fundamentals, computing, design, and application. J. Microbiol. Methods 2000, 43, 3–31. [Google Scholar] [CrossRef]
Figure 1. The processes and names of the proposed model and the three comparison models.
Figure 1. The processes and names of the proposed model and the three comparison models.
Applsci 12 06007 g001
Figure 2. Basic diagram of the backpropagation neural network.
Figure 2. Basic diagram of the backpropagation neural network.
Applsci 12 06007 g002
Figure 3. Basic diagram of the cascade forward neural network.
Figure 3. Basic diagram of the cascade forward neural network.
Applsci 12 06007 g003
Figure 4. The process of the experiment.
Figure 4. The process of the experiment.
Applsci 12 06007 g004
Figure 5. Apparatuses and driving scenario in the driving simulation.
Figure 5. Apparatuses and driving scenario in the driving simulation.
Applsci 12 06007 g005
Figure 6. The images displayed on the console.
Figure 6. The images displayed on the console.
Applsci 12 06007 g006
Figure 7. Improvements of hybrid models compared to single models and the results from sample 9 in the drowsiness detection stage. The hybrid models included PCA−BPNN, PCA−CFNN, PCA−SVM, and PCA−KNN, and the single models included BPNN, CFNN, SVM, and KNN. ANN-artificial neural networks; CMLA—classic machine learning algorithms.
Figure 7. Improvements of hybrid models compared to single models and the results from sample 9 in the drowsiness detection stage. The hybrid models included PCA−BPNN, PCA−CFNN, PCA−SVM, and PCA−KNN, and the single models included BPNN, CFNN, SVM, and KNN. ANN-artificial neural networks; CMLA—classic machine learning algorithms.
Applsci 12 06007 g007
Figure 8. Improvements in the hybrid models compared to the single models in the verification stage. ANN—artificial neural networks; CMLA—classic machine learning algorithms.
Figure 8. Improvements in the hybrid models compared to the single models in the verification stage. ANN—artificial neural networks; CMLA—classic machine learning algorithms.
Applsci 12 06007 g008
Figure 9. Results of sample 9 in the verification stage. Hybrid models included PCA-BPNN, PCA-CFNN, PCA-SVM, and PCA-KNN and single models included BPNN, CFNN, SVM, and KNN. * ANN—artificial neural networks; CMLA—classic machine learning algorithms.
Figure 9. Results of sample 9 in the verification stage. Hybrid models included PCA-BPNN, PCA-CFNN, PCA-SVM, and PCA-KNN and single models included BPNN, CFNN, SVM, and KNN. * ANN—artificial neural networks; CMLA—classic machine learning algorithms.
Applsci 12 06007 g009
Table 1. The scientific gap in existing driving drowsiness detection features.
Table 1. The scientific gap in existing driving drowsiness detection features.
DataFeaturesDefects
Driving behaviorVehicle data (speed, acceleration,
steering wheel angle,
lane center offset, etc.)
Low accuracy (75%)
Facial imagesFacial features
Eye movements
Cannot wear glasses or facial masks
Does not match natural driving scenes
Physiological signalsElectroencephalogram (EEG)
Electrocardiogram (ECG)
Too intrusive to collect during the actual driving process
Electrodermal activity (EDA)
Respiration (RESP)
Accuracy for driving drowsiness detection remains unknown
Photoplethysmography(PPG)Low accuracy when only using single signals to identify driving fatigue.
Table 2. The KSS, TOR, and the corresponding relationship between them according to Zhang, et al. [36].
Table 2. The KSS, TOR, and the corresponding relationship between them according to Zhang, et al. [36].
KSS LevelTOR LevelTOR Indicators
1 Extremely alert0 Not drowsyNormal fast eye blinks, often reasonably regular;
Apparent focus on driving with occasional fast sideways glances;
Normal facial tone;
Occasional head, arm, and body movements.
2 Very alert
3 Alert
4 Rather alert
5 Neither alert nor sleepy
6 Some signs of sleepiness1 Slightly drowsyIncrease in duration of eye blinks;
Possible increase in the rate of eye blinks;
Increase in duration and frequency of sideways glances;
The appearance of a “glazed eye” look;
The appearance of abrupt irregular movements—rubbing face/eyes, moving restlessly on the chair;
Abnormally large body movements following drowsiness episodes;
Occasional yawning.
7 Sleepy, but no effort to keep alert2 Moderately drowsyOccasional disruption of eye focus;
Significant increase in eye blink duration;
Disappearance of eye blink patterns observed during alert state;
Reduction in the degree of eye opening;
Occasional disappearance of facial tone;
Episodes without any body movements.
8 Sleepy, some effort to keep alert3 Very drowsyDiscernable episodes of almost complete eye closure, eyes never fully open;
Significant disruptions in eye focus;
Periods without body movements (more prolonged than in level 2) and facial tone followed by abrupt large body movements.
9 Very sleepy, great effort to keep alert, fighting sleep4 Extremely drowsySignificant increase in the duration of eye closure;
Longer duration of episodes of no body movement followed by significant isolated “correction” movements.
Table 3. Extracted features.
Table 3. Extracted features.
EDARESPPPG
Fuzzy entropyBreath rate (mean, standard deviation)Sympathetic vagal ratio
Wavelet entropyAmplitude (mean, standard deviation)Sympathetic ratio
Mean Vagal ratio
Standard deviation Heart rate (mean, standard deviation)
Amplitude (mean, standard deviation)
Table 4. Correspondence between the KSS, TOR, and drowsiness state defined in the present research.
Table 4. Correspondence between the KSS, TOR, and drowsiness state defined in the present research.
Drowsiness StateKSS LevelTOR Level
0 No drowsiness1 Extremely alert0 Not drowsy
2 Very alert
3 Alert
4 Rather alert
5 Neither alert nor sleepy
1 Drowsiness6 Some signs of sleepiness1 Slightly drowsy
7 Sleepy, but no effort to keep alert2 Moderately drowsy
8 Sleepy, some effort to keep alert3 Very drowsy
9 Very sleepy, great effort to keep alert, fighting sleep4 Extremely drowsy
Table 5. Data division.
Table 5. Data division.
Classification AlgorithmsTraining SetValidation SetTesting Set
Artificial neural networksBPNN60%20%20%
CFNN60%20%20%
Classic machine learning algorithmsSVM60%0%40%
KNN60%0%40%
Table 6. Evaluation indexes of numerical experiment.
Table 6. Evaluation indexes of numerical experiment.
IndexDescription
Accuracy (%)Percentage of physiological state accurately detected.
Drowsiness recall (%)Percentage of drowsiness accurately detected.
Drowsiness precision (%)Percentage of the precise drowsiness output
AUCArea under the ROC curve; reflects the model’s ability to classify positive and negative examples.
Training time (seconds)Time required for model training.
Table 7. The average accuracies, drowsiness recalls, drowsiness precisions, AUCs, and training times of the models in the drowsiness detection stage.
Table 7. The average accuracies, drowsiness recalls, drowsiness precisions, AUCs, and training times of the models in the drowsiness detection stage.
ModelsHybrid ModelsSingle Models
Hybrid Model of Principal
Component Analysis
and ANN
Hybrid Model of Principal Component Analysis
and CMLA
Single Model of
ANN
Single Model of
CMLA
PCA-BPNNPCA-CFNNPCA-SVMPCA-KNNBPNNCFNNSVMKNN
Accuracy (%)97.297.994.894.696.196.193.393.0
Drowsiness recall (%)98.298.598.497.197.297.397.395.8
Drowsiness precision (%)97.598.194.394.896.696.492.893.6
AUC0.9730.9730.9140.9200.9700.9700.8920.900
Training time (seconds)0.1820.23150.7190.1070.4410.98264.9630.115
* ANN—artificial neural networks; CMLA—classic machine learning algorithms.
Table 8. The average accuracies, drowsiness recalls, drowsiness precisions, AUCs, and training times of each model in the verification stage.
Table 8. The average accuracies, drowsiness recalls, drowsiness precisions, AUCs, and training times of each model in the verification stage.
ModelsHybrid ModelsSingle Models
Hybrid Model of Principal
Component Analysis
and ANN
Hybrid Model of Principal
Component Analysis
and CMLA
Single Model of
ANN
Single Model of
CMLA
PCA-BPNNPCA-CFNNPCA-SVMPCA-KNNBPNNCFNNSVMKNN
Accuracy (%)97.397.494.894.796.396.593.793.4
Drowsiness recall (%)98.498.598.297.097.697.897.896.1
Drowsiness precision (%)97.397.494.194.996.596.693.093.8
AUC0.9770.9780.9160.9230.9730.9730.8960.903
Training time (seconds)0.2150.25950.8490.1580.6071.07365.3920.169
* ANN—artificial neural networks; CMLA—classic machine learning algorithms.
Table 9. The standard deviation of the accuracies, drowsiness recalls, drowsiness precisions, AUCs, and training times of models in the verification stage.
Table 9. The standard deviation of the accuracies, drowsiness recalls, drowsiness precisions, AUCs, and training times of models in the verification stage.
ModelsHybrid ModelsSingle Models
Hybrid Model of Principal
Component Analysis
and ANN
Hybrid Model of Principal
Component Analysis
and CMLA
Single Model of
ANN
Single Model of
CMLA
PCA-BPNNPCA-CFNNPCA-SVMPCA-KNNBPNNCFNNSVMKNN
Accuracy (%)0.80.70.60.61.20.80.60.7
Drowsiness recall (%)0.80.70.40.71.00.90.50.8
Drowsiness precision (%)0.90.90.70.81.30.90.80.8
AUC0.0030.0030.0110.0120.0050.0040.0130.013
Training time (seconds)0.0420.0531.1490.0110.2040.4391.2030.012
* ANN—artificial neural networks; CMLA—classic machine learning algorithms.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Huang, Y.; Deng, Y. A Hybrid Model Utilizing Principal Component Analysis and Artificial Neural Networks for Driving Drowsiness Detection. Appl. Sci. 2022, 12, 6007. https://doi.org/10.3390/app12126007

AMA Style

Huang Y, Deng Y. A Hybrid Model Utilizing Principal Component Analysis and Artificial Neural Networks for Driving Drowsiness Detection. Applied Sciences. 2022; 12(12):6007. https://doi.org/10.3390/app12126007

Chicago/Turabian Style

Huang, Yanwen, and Yuanchang Deng. 2022. "A Hybrid Model Utilizing Principal Component Analysis and Artificial Neural Networks for Driving Drowsiness Detection" Applied Sciences 12, no. 12: 6007. https://doi.org/10.3390/app12126007

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