3.2. The Results of SVM Model Classification
The reaction time and the values of α/β were chosen as the input variables based on the grey correlation analysis. There were 242 dataset groups selected from the above experiments for verification. A combined two-class classifier was used to divide the mental state into three levels. Levels 1 and 2 were considered to be the same category (represented by Category I), while Level 3 was considered to be a different category (represented by Category II). The two-class classifier first divided the datasets into Category I or Category II (Level 3), and then the classifier divided Category I into Level 1 and Level 2. From the 242 groups of datasets, 142 groups of datasets were used as the training datasets, and 100 groups of datasets were used as the testing datasets. There were 200 iterations, the population quantity was 20, and the parameter for the cross validation was 10. The best value of
was found to be 0.4031 and the best value of
was found to be 7.6761 after GA optimization. The classification accuracy in K-CV is 90.1408%. The results of the SVM classification model are shown in
Table 3. In the first classification, for Level 3, 21 datasets were correctly classified out of a total of 24 datasets, resulting in a sensitivity of 87.5%. For Level 1 and Level 2, 65 datasets were correctly classified out of a total of 76 datasets, resulting in a specificity of 85.53%. This resulted in an accuracy of 86%. In the second classification, for Level 2, 25 datasets were correctly classified out of a total of 30 datasets, resulting in a sensitivity of 83.33%. For Level 1, 40 datasets were correctly classified out of a total of 46 datasets, resulting in a specificity of 86.96%. This resulted in an accuracy of 85.53%.
A confusion matrix contains information about actual and predicted classifications done by a classifier. Performance of such a classifier can be evaluated using the data in the matrix.
Table 4 shows the confusion matrix of mental state classification. More results can be obtained from the confusion matrix to evaluate the SVM classification model. For the first classification, the false positive rate (FP) is 1.32%, the false negative rate (FN) is 12.5%, the precision (P) is 95.45%. For the second classification, the FP is 13.04%, the FN is 13.33%, the P is 80.65%.
Under the constraint that the reaction time must be chosen as one of the input variables, the accuracy of SVM after changing the other input variables should also be analyzed. The first classification was analyzed after changing the input variables. The results are shown in
Table 5.
EEG signal is sensitive to variations in reaction time. It is known that α waves occur when a driver is relaxed, or when attention levels are decreased. In particular, α waves are more obvious than other waves during monotonous driving tasks [
20]. However, θ waves primarily occur when a driver is in a sleepy state or there is an increased task demand. Hence, mutual integration of the α waves and the β waves has shown more promising results than individual detection of α waves, θ waves or β waves alone. Moreover, since periods in both Level 1 and Level 2 were suitable for driving, while periods in Level 3 were not, there is no easily distinguishable boundary between Level 1 and Level 2. However, the accuracy of SVM is 86%, which proves the applicability of SVM for mental state classification. It can be concluded that the accuracy will decrease if a physiological parameter with a lower correlation to the reaction time is chosen as the input variable of the SVM model. The accuracy also decreases if the number of input variables increases. Hence, physiological parameter optimization based on grey correlation analysis has a significant influence on the accuracy of the SVM classification.
Driving fatigue is influenced by many types of factors. Driving over a long period of time eventually results in mental fatigue or drowsiness, although mental fatigue or drowsiness may also occur during shorter drives. Hence, it is hard to establish a formula that can be used to define the relationship between the reaction time and α/β. Fatigue classification can accurately solve this problem and eliminate the time factor. The relationship between the reaction time and α/β can then be obtained from the results of the classification. Due to different individual features, the results are also different.
Figure 3 shows that the reaction time changes with age and gender for different mental levels. In
Figure 3, the black data points represent Level 1, the blue data points represent Level 2, and the red data points represent Level 3.
Table 6 gives the results that show that the reaction time changes with mental levels.
It is obvious that Level 3 has the largest average reaction time, while Level 1 has the lowest average time, which indicates that the reaction time becomes longer as mental fatigue accumulates. It can be concluded that females have a quicker increase in reaction time than males as driving fatigue accumulates. The stamina of females is poorer than males, which indicates that females may get fatigued faster than males. Moreover, there is a difference between males and females for the same mental level. The reaction time of females has been found to be longer than males for each mental level. The higher the level, the bigger the gap between males and females.
Age is another significant factor that can influence the reaction time. The results of the average reaction time of different age groups are shown in
Table 7. The subjects were divided into two groups: age 20–30 years and age over 30 years. Proficiency of driving is another important factor that has an impact on the reaction time. A young driver, who is not experienced at driving, will be over-anxious, and can easily concentrate on individual points. This type of driver may have a long reaction time. In contrast, an older driver with rich experience in driving, may be able to provide quick responses to an emergency. This type of driver can compensate for deficiencies of old age.
3.3. The Analysis of the Reaction Time in the Time Domain
The relationship between the reaction time, α/β and driving fatigue needs be analyzed in relation to the time domain. A representative experiment during which the driver progressed through a process of being awake to asleep is shown in
Figure 4. The aim of this experiment was to observe the consistency of the tendency of the two parameters to show particular patterns for different mental states, especially during fatigue. The reaction time can reflect the reliability of the driver. As the length of time driving increased, the driver became fatigued, which manifested as increased distraction levels and longer reaction times. There was an increase in α waves and a decrease in β waves when the driver felt tired. Hence, the value of α/β was seen to increase as fatigue accumulated.
It can be concluded from
Figure 4 that α/β increases with time, and the reaction time decreases first and then increases. This indicates that the reaction time does not always have a positive correlation with α/β, especially during the initial period. To analyze the relationship between α/β, the reaction time and driving fatigue, the driving process has been divided into three periods.
The first period (0–44 min): The driver had just started to drive and was unfamiliar with the driving environment during this period. However, the driver was alert during this period, so α/β had low values. Due to unfamiliarity with the environment, there was a high workload on the driver. During the transition from increased mental workload to mental fatigue, there was an evident increase in α waves and a decrease in β waves, resulting in a quick growth of α/β. As the driver adapted to their environment, the rate of growth of α/β reduced, indicating that the driving performance had become stable. The reaction time first increased, then decreased and finally increased again during this period. The degree of familiarity depended on the driver’s “internal” state. Poorer driver performance may have been due to an increase in the quantity of demanding tasks. The situational awareness of the driver also started to reduce. Hence, the driver was in an unstable state at the beginning, leading to a remarkable fluctuation in the reaction time. The reaction time shortened after 23 min, indicating that the driver had become familiar with the driving task and the reaction time test. Hence, the measured reaction time after 23 min was effective. The reaction time was at its lowest value at the 44th minute, before increasing gradually. Moreover, the volatility of the reaction time was large (0.0068) prior to 44 min, which also indicates that the driver’s behavior was in an unstable state. However, the volatility decreased after 44 min, indicating that the driver’s behavior had become stable and reliability was starting to increase.
The second period (45–188 min): Actually, there was no obvious boundary between the first period and the second period. Due to the instability of the driver at the start of driving, an abnormal reaction time was observed. Hence, the first period was defined to justify the large fluctuations in reaction time. In fact, both the first period and the second period are suitable for driving. During the second period, the growth rate of α/β slowed down, and α/β maintained a relatively stable value. At the beginning of the driving task, the driver was required to remember lots of information relating to their environment. After a certain length of time driving, the driver was able to allocate some attention to secondary tasks. During this period, the reaction time tended to increase quickly at the beginning and then continued to increase at a slower pace. The volatility of the reaction time (0.0065) was smaller than before (0.0068), indicating that the driver was in a stable state. The reaction time reached a maximum after 117 min. The driver started to feel some fatigue as the driving time accumulated, which resulted in a slowdown in the increase in reaction time. Additionally, the reaction time was influenced by many other factors such as swerving and overtaking that may have contributed to longer reaction times. For example, the reaction time at the 50th minute had a large difference with the adjacent reaction times before and after. On further investigation, it can be seen that the driver was overtaking during this period, and therefore, for the sake of driving safety, the driver could not press the button immediately. Hence, the measured values do not always reflect the driver’s mental state precisely. During this period, the driver has adapted to the environment, and his reliability was the highest, which was the best state for driving. However, there were strong fluctuations in α/β later on in this period. The driver began to feel slight fatigue which he attempted to resist, but he struggled to keep alert. The reaction time had small fluctuations during this time.
The third period (189–240 min): The driver became fatigued quickly as the monotonous driving task progressed further. As the driving time accumulated, the driver started to feel sleepier and lost interest in remaining awake. The slope of α/β increased quickly after 188 min, and the value of α/β rose with astonishing speed. The reaction time also increased more quickly than before. The driver was fatigued and the reliability of the driver was low during this period, leading to a decrease in control of the vehicle. It can be concluded that a fatigued state can reduce a driver’s ability to respond to stimuli. It is not appropriate to continue driving any further during this period.
However, it is important to stress that although the brain activity can be described as a series of transitions from an “alert state” to a “fatigued state” and from there to a “drowsy state” the transitions do not necessarily occur in this order [
20].
Figure 5 shows another experiment where the driver experienced a process of transitioning from alert to fatigued and then to alert again.
The driver was vigilant during the initial period of the experiment. Hence, the value of α/β stayed low and remained relatively stable. The reaction time was a little longer at the start of driving, which was quite similar to the first experiment and can be attributed to the driver needing time to adapt to their driving environment. The reaction time had an obvious fluctuation between 33 min and 46 min. This was due to the driver being in a complex traffic environment, and performing tasks such as overtaking or swerving. The value of α/β increased rapidly after 50 min. The reaction time had a large fluctuation again. The driver felt sleepy after 90 min and was frequently yawning. The difference between this experiment and the first experiment was that the driver became fatigued after only one hour of driving. This only occurred after three hours in the first experiment. The reason for the quicker fatigue was due to physiological cycles. The experiment began at 10:30 a.m. and after 90 min reached afternoon time. The driver became drowsy after 150 min driving and a collision occurred. At the time of the collision, the driver was inattentive and unconscious, and had a long reaction time. After the collision, the driver sobered and the brain struggled to keep alert. Hence, β waves occurred during these conditions of vigilance, which had an increased attention level, and the value of α/β and the reaction time began to decrease. The driving fatigue started to accumulate again after 210 min of driving, resulting in an increase in α/β. However, the reaction time did not show an obvious decrease due to self-regulation by the driver.