Skip to main content
Healthcare Technology Letters logoLink to Healthcare Technology Letters
. 2016 Oct 20;4(1):34–38. doi: 10.1049/htl.2016.0053

Developing and evaluating a mobile driver fatigue detection network based on electroencephalograph signals

Jinghai Yin 1, Jianfeng Hu 1,, Zhendong Mu 1
PMCID: PMC5435952  PMID: 28529761

Abstract

The rapid development of driver fatigue detection technology indicates important significance of traffic safety. The authors’ main goals of this Letter are principally three: (i) A middleware architecture, defined as process unit (PU), which can communicate with personal electroencephalography (EEG) node (PEN) and cloud server (CS). The PU receives EEG signals from PEN, recognises the fatigue state of the driver, and transfer this information to CS. The CS sends notification messages to the surrounding vehicles. (ii) An android application for fatigue detection is built. The application can be used for the driver to detect the state of his/her fatigue based on EEG signals, and warn neighbourhood vehicles. (iii) The detection algorithm for driver fatigue is applied based on fuzzy entropy. The idea of 10-fold cross-validation and support vector machine are used for classified calculation. Experimental results show that the average accurate rate of detecting driver fatigue is about 95%, which implying that the algorithm is validity in detecting state of driver fatigue.

Keywords: electroencephalography, road traffic, cloud computing, fuzzy logic, entropy, support vector machines, accident prevention, medical signal detection

Keywords: mobile driver fatigue detection network, electroencephalograph signals, traffic safety, middleware architecture, process unit, personal electroencephalography node, cloud server, android application, fuzzy entropy, support vector machine

1. Introduction

Driver fatigue is receiving more and more attention in the traffic safety field, because it affects the driver's ability to make decision, slow down reaction time, decrease driver's attention, and contributes for increasing the number of accidents [1]. More and more researches show that driving accidents are largely related to fatigue [2, 3]. According to statistical results of the National Highway Transportation and Safety Administration (NHTSA), driver fatigue accounts for most crashes in the United States [4]. If driver fatigue can be detected, drivers will get useful information about their fatigue and so decrease the traffic accident [5].

Physical measures of driver fatigue are used, including fixed gaze, eye exposure duration, frontal face pose, blink frequency, and nodding frequency [6, 7]. Furthermore, numerous experiments show physiological signals can be applied to detect fatigue state [8], including electroencephalograph (EEG), electrooculography (EOG), electrocardiogram (ECG) and electromyogram (EMG). Electroencephalography (EEG) is a direct reflection of the brain's activity. Numerous brain and psychological studies have used EEG to study the neural activity underlying different emotional and psychological phenomena. Drivers have reduced levels of alertness when they are fatigued. This is accompanied by some consistently measurable changes in the EEG signals. EEG changes during driver fatigue can be utilised in the driver fatigue detection system [913].

In this work, we developed and evaluated a mobile driver fatigue detection network based on EEG signals.

2. System overview

We propose a system (Fig. 1), where the EEG signals of driver are detected to avoid traffic accidents. EEG signals of driver are measured by personal EEG node (PEN), and sent to a process unit (PU) located in the vehicle. The PU can communicate with cloud server (CS).

Fig. 1.

Fig. 1

Proposed system

In this system, the EEG signals transmitted by the PEN are processed in the PU to detect the driver's fatigue state. Since driver fatigue is a dangerous to vehicles around the driver, the surrounding vehicles should be warned for safety. If the driver is detected to be fatigue, messages are sent from the PU to CS.

The proposed system consists of modular integration of PEN, PU and CS (Fig. 2). PEN consists of EEG sensors module, Data acquisition module and Bluetooth module, which measure EEG signals and transmitted it via Bluetooth module to PU. PU is the key unit of the system, which consists of preprocess module, feature extraction module and driver fatigue recognition module (Fig. 3). Preprocess module receives EEG signals from PEN, and the signals are filtered and artefact-removal. Features are extracted from EEG signals in feature extraction module. These features are determined by the driver fatigue recognition module to estimate if the driver is fatigue. CS consists of alarm notification module and data publication module, according to the CS, alarm notification module generates a notification message from the driver's fatigue data uploaded by PU. Then data publication module send notification messages to vehicle surround the driver if the driver is fatigue.

Fig. 2.

Fig. 2

Integration architecture

Fig. 3.

Fig. 3

PU architecture

In Fig. 3, we can see that PU is composed of three modules, which are preprocess module, feature extraction module and recognition module. PU has an interface for the PEN and another interface for CS. EEG signals collected from the PEN are first sent to the preprocess module, where artefacts are removed. Then the signals are sent to the feature extraction module, where signal analysis and feature extraction are conducted. The features extracted from EEG signals are sent to the recognition module, and the detection results are uploaded to a CS. EEG data should be preprocessed and transmitted to CS due to driver fatigue. The registration module is responsible for the user to enter the application and authentication module is responsible for the identification of user's identity. The subscription and authorisation module is responsible for protecting the user's privacy.

3. Experimentation

A driving simulator (Fig. 4) was used to detect the driver fatigue. In the experiment, subjects were seated on a soft chair without armrests in a quiet shielded room, watching a screen, and making appropriate responses according to the test criteria and the indication screen. The subjects can imitate all kinds of road in front of the computer, control the direction of the car through the steering wheel, and control the speed of the car through the accelerator and brake.

Fig. 4.

Fig. 4

Subject in the simulated driving experiment

Twelve healthy subjects ranging in age from 22 to 30 years participated in the driving experiment. They had no physical obstacles and can complete the driving task successfully. The drivers were demanded to finish specific tasks and guarantee safe driving [14, 15]. Before the experiments, subjects were familiar with the operation of the driving simulator and the completion of the driving task. All other vehicles and road stimuli were removed, and subjects were required to maintain a driving speed between 60 and 80 km/h. EEG acquisition during two driving sessions (normal sessions and fatigue driving sessions) was performed using StarStim EEG recording system (NE, USA) as PEN, with a reference electrode placed on the right mastoid. Based on that the forehead EEG signal collects expediently, we used only two electrodes FP1 and FP2 as signal source according to international 10–20 system. The sampling rate was set at 1000 Hz. Band acquisition used 200 Hz low-pass, 0.05 Hz high-pass and 50 Hz notch filters.

4. PU implementation

We have developed a fatigue detection application based on Android system as PU [1618]. The application can receive EEG signals from PEN, detect the state of driver fatigue and establish communication with CS.

In the driving process, PEN collects the driver's EEG signals and transmits to the Android application via a Bluetooth wireless connection. Once EEG signals are received by the application, the data is preprocessed, features are extracted and the fatigue state is analysed. A warning system is triggered due to driver fatigue, and notification messages will be sent.

A fuzzy function was used to measure the degree of similarity of vectors, rather than the two-valued function in the sample entropy-based algorithm, such that the calculated entropy values are continuous and smooth [19, 20]. The procedure for the fuzzy entropy-based algorithm is described in detail as follows:

  1. Assuming Xi is EEG signals X(i):1iN.

  2. The phase-space reconstruction is performed on Xi according to the sequence order, and a set of m-dimensional vectors are obtained (mN2). The reconstructed vector Yim can be written as
    Yim=Xi,Xi+1,,Xi+m1MEAN (1)
    where i=1,2,,Nm+1, and MEAN is the average value.
  3. dijm is defined as the maximum difference values between the corresponding elements of two vectors YimandYjm
    dijm=dYim,Yjm=maxk(0,m1){|(Xi+kMEANi)(Xj+kMEANj)|}(i,j=1Nm,ji)
  4. The similarity degree Dijm between two vectors YimandYjm is defined as follows
    Dijm=exp((dijm)n/r) (3)
    where n and r are the gradient and width of the exponential function, respectively.
  5. Define the function φm(n,r)
    φm(n,r)=1Nmi=1Nm1Nm1j=1,jiNmDijm (4)
  6. The fuzzy entropy can be expressed as follows
    FuzzyEn(m,n,r,N)=lnφmn,rlnφm+1n,r (5)
    where m and r are the dimensions of phase space and similarity tolerance, respectively. Generally, too large of a similarity tolerance will lead to a loss of useful information. The larger the similarity tolerance, the more information may be missed. However, if the similarity tolerance is underestimated, the sensitivity to noise will be increased significantly. In this Letter, we set m = 2, n = 4, r = 0.2 × SD, where SD denotes the standard deviation of the time series.

Support vector machine (SVM) is a kind of machine learning method based on statistical learning theory, which maps the input vector into a high dimensional feature space (hyperplane) through the appropriate mapping. The hyperplane is classification plane. SVM was used as the classifier. In this work, the popular radial basis function was used as the kernel function. To verify the feasibility of the system, we used Matlab to calculate, analyse and validate with the collected EEG signal, including the training and testing of the samples.

5. Result

In this work, the EEG signals under two different states (normal and fatigue) are considered. Fig. 5 shows sample EEG signals obtained from FP1 channel during different trials. As shown in Fig. 5, there is a significant difference between normal state and fatigue state of the EEG signal, however, it's hardly detect fatigue state only by this visual distinction. It must have some characteristic parameters, by which fatigue state can be detected properly and scientifically.

Fig. 5.

Fig. 5

Sample EEG signals

a and b For normal state from FP1 channel

c and d For fatigue state from FP1 channel

Therefore, in this Letter, we take entropy fuzzy as parameters for detection, i.e. by calculating value of fuzzy entropy of different electrodes of different trials, the fatigue state can be determined.

Fig. 6 shows the fuzzy entropy characteristic of a subject, from which we can see the obvious difference of fuzzy entropy between the two states. The fuzzy entropy on fatigue state is obviously higher than that on normal state, so the fuzzy entropy is a preferable parameter to determine fatigue state.

Fig. 6.

Fig. 6

Comparison of fuzzy entropy value

One of the most common techniques to prove the stability of algorithm is replication of training by 10-fold cross-validation. Then 10-fold cross-validation was used to prove the consistency of algorithm and assess the classification accuracy, the mean values of test results are shown in Table 1. In recent years, several teams worked on this problem from using EEG brain signals to study driving fatigue detection and made a lot of research results as shown in Table 2, which implying that our result was far higher than other several classification methods.

Table 1.

Test results given by10-fold cross-validation

No. of subject Accuracy
1 0.95
2 0.96
3 0.97
4 0.98
5 0.94
6 0.96
7 0.97
8 0.95
9 0.93
10 0.97
11 0.94
12 0.99
MEAN ± VARIANCE 0.95 ± 0.017

Table 2.

Performance comparison of the previous works

Author Method Accuracy, %
Xiongn et al. [21] combined entropy 90
Kaur and Singh [22] EMD 84.8
Correa et al. [23] multimodal analysis 83.6
This paper fuzzy entropy 95

The interface of android application (Fig. 7) is composed of three parts. Above part is a pointer type display for fatigue level, where the scale varies from 0 to 1.0. Middle part is the exact value of the current fatigue level. The bottom part is the curve of the degree of fatigue change with time.

Fig. 7.

Fig. 7

Android application

6. Discussion and conclusion

The system will face many challenges. First, because PEN maybe restrict drivers’ movement, how to keep the driver's comfort while wearing PEN is important. Safety belt is sometimes considered so uncomfortable that some drivers unlike wear it. A fewer number of sensors will be wore more comfortably. Second, the accuracy of the fatigue detection is also problematic. Detecting fatigue is especially difficult because of the characteristics of EEG signals. Third, how to protect the privacy of driver is a challenge. New and effective biometrics method should be applied for authentication and security [24, 25].

In this Letter, an architecture for the integration of PEN, PU and CS to detect driver fatigue has been established. Its main components and functions have been introduced. An Android application is applied to monitor the driver's fatigue state to avoid accident.

7. Acknowledgments

This work was supported by the Support Project of Jiangxi Province [grant agreement no: 20142BBE50030], Natural Sciences Project of Jiangxi Province [grant agreement no: 20142BAB207008] and the Science and Technology Project [grant agreement no: xtcx201316]. The authors were grateful for the anonymous reviewers who made constructive comments.

8 References

  • 1.Phillips R.O.: ‘A review of definitions of fatigue – and a step towards a whole definition’, Transp. Res. F, Traffic Psychol. Behav., 2015, 29, pp. 48–56 (doi: 10.1016/j.trf.2015.01.003) [Google Scholar]
  • 2.Klauer S.G., Dingus T.A., Neale T.V., et al. : ‘The impact of driver inattention on near-crash/crash risk: an analysis using the 100-car naturalistic driving study data’ (U.S. Department of Transportation Washington D.C, 2006) [Google Scholar]
  • 3.Lee M.L., Howard M.E., Horrey W.J., et al. : ‘High risk of near-crash driving events following night-shift work’, Proc. Nat. Acad. Sci., 2016, 113, (1), pp. 176–181 (doi: 10.1073/pnas.1510383112) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.NHTSA.: ‘Traffic safety facts 2011 data-pedestrians’, Retour Au Numéro, 2013, 62, (6), pp. 612–613 [DOI] [PubMed] [Google Scholar]
  • 5.Dawson D., Searle A.K., Paterson J.L.: ‘Look before you sleep: evaluating the use of fatigue detection technologies within a fatigue risk management system for the road transport industry’, Sleep Med. Rev., 2014, 18, (2), pp. 141–152 (doi: 10.1016/j.smrv.2013.03.003) [DOI] [PubMed] [Google Scholar]
  • 6.Owen N., King H., Lamb M.: ‘Literature review of race driver fatigue measurement in endurance motor sport’, Proc. Eng., 2015, 112, pp. 344–348 (doi: 10.1016/j.proeng.2015.07.260) [Google Scholar]
  • 7.Hopstaken J.F., van der Linden D., et al. : ‘Shifts in attention during mental fatigue: evidence from subjective, behavioral, physiological, and eye-tracking data’, J. Exp. Psychol. Hum. Percept. Perform., 2016, 42, (6), pp. 878–889 (doi: 10.1037/xhp0000189) [DOI] [PubMed] [Google Scholar]
  • 8.Lal S.K.L., Craig A.: ‘A critical review of the psychophysiology of driver fatigue’, Biol. Psychol., 2001, 55, (3), pp. 173–194 (doi: 10.1016/S0301-0511(00)00085-5) [DOI] [PubMed] [Google Scholar]
  • 9.Gharagozlou F., Nasl Saraji G., et al. : ‘Detecting driver mental fatigue based on EEG alpha power changes during simulated driving’, Iran J. Public Health, 2015, 44, (12), pp. 1693–1700 [PMC free article] [PubMed] [Google Scholar]
  • 10.Khushaba R.N., Kodagoda S., et al. : ‘Driver drowsiness classification using fuzzy wavelet-packet-based feature-extraction algorithm’, IEEE Trans. Biomed. Eng., 2011, 58, (1), pp. 121–131 (doi: 10.1109/TBME.2010.2077291) [DOI] [PubMed] [Google Scholar]
  • 11.Gurudath N., Riley H.B.: ‘Drowsy driving detection by EEG analysis using wavelet transform and K-means clustering’, Proc. Comput. Sci., 2014, 34, pp. 400–409 (doi: 10.1016/j.procs.2014.07.045) [Google Scholar]
  • 12.Zhao C., Zheng C., et al. : ‘Multivariate autoregressive models and kernel learning algorithms for classifying driving mental fatigue based on electroencephalographic’, Expert. Syst. Appl., 2011, 38, (3), pp. 1859–1865 (doi: 10.1016/j.eswa.2010.07.115) [Google Scholar]
  • 13.Liu J., Zhang C., Zheng C.: ‘EEG-based estimation of mental fatigue by using KPCA-HMM and complexity parameters’, Biomed. Signal Process. Control, 2010, 5, (2), pp. 124–130 (doi: 10.1016/j.bspc.2010.01.001) [Google Scholar]
  • 14.Mu Z.D., Yin J.H., Hu J.F.: ‘Mobile healthcare system for driver based on drowsy detection using EEG signal analysis’, Metall. Min. Ind., 2015, 7, pp. 266–273 [Google Scholar]
  • 15.Li W., He Q.C., Fan X.M., et al. : ‘Evaluation of driver fatigue on two channels of EEG data’, Neurosci. Lett., 2012, 506, pp. 235–239 (doi: 10.1016/j.neulet.2011.11.014) [DOI] [PubMed] [Google Scholar]
  • 16.Lee B.G., Chung W.Y.: ‘A smartphone-based driver safety monitoring system using data fusion’, Sensors, 2012, 12, pp. 17536–17552 (doi: 10.3390/s121217536) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Lee B.G., Lee B.L., Chung W.Y.: ‘Mobile healthcare for automatic driving sleep-onset detection using wavelet-based EEG and respiration signals’, Sensors, 2014, 14, pp. 17915–17936 (doi: 10.3390/s141017915) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Reyes-Muñoz A., Domingo M.C., López-Trinidad M.A., et al. : ‘Integration of body sensor networks and vehicular ad-hoc networks for traffic safety’, Sensors, 2016, 16, pp. 107–135 (doi: 10.3390/s16010107) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Xiang J., Li C.G., Li H.F., et al. : ‘The detection of epileptic seizure signals based on fuzzy entropy’, J. Neurosci. Method, 2015, 243, pp. 18–25 (doi: 10.1016/j.jneumeth.2015.01.015) [DOI] [PubMed] [Google Scholar]
  • 20.Sharma R., Pachori R.B., Acharya R.: ‘Application of an entropy measures on intrinsic mode functions for the automated identification of focal electroencephalogram signals’, Entropy, 2015, 17, pp. 669–691 (doi: 10.3390/e17020669) [Google Scholar]
  • 21.Xiong Y., Gao J., Yang Y., et al. : ‘Classifying driving fatigue based on combined entropy measure using EEG signals’, Int. J. Control Autom., 2016, 9, (3), pp. 329–338 (doi: 10.14257/ijca.2016.9.3.30) [Google Scholar]
  • 22.Kaur R., Singh K.: ‘Drowsiness detection based on EEG signal analysis using EMD and trained neural network’, Int. J. Sci. Res., 2013, 10, pp. 157–161 [Google Scholar]
  • 23.Correa A.G., Orosco L., Laciar E.: ‘Automatic detection of drowsiness in EEG records based on multimodal analysis’, Med. Eng. Phys., 2014, 36, (2), pp. 244–249 (doi: 10.1016/j.medengphy.2013.07.011) [DOI] [PubMed] [Google Scholar]
  • 24.Hu J.F., Mu Z.D., Wang P.: ‘Multi-feature authentication system based on event evoked electroencephalogram’, J. Med. Imaging Health Inf., 2015, 5, pp. 862–870 (doi: 10.1166/jmihi.2015.1471) [Google Scholar]
  • 25.Hu J.F., Mu Z.D., Yin J.H.: ‘EEG-based identification system for mobile devices’, Comput. Model. New Technol., 2014, 18, pp. 672–677 [Google Scholar]

Articles from Healthcare Technology Letters are provided here courtesy of Wiley

RESOURCES