Driver fatigue detection method based on multi-feature weighted fusion

CN119007166APending Publication Date: 2024-11-22CHONGQING UNIV OF EDUCATION
0 Cites 3 Cited by

Patent Information

Application Number
CN202410934566.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-11-22

Smart Images

  • Figure CN119007166A_ABST
    Figure CN119007166A_ABST
Patent Text Reader

Abstract

The invention provides a multi-feature weighted fusion driver fatigue detection method. The method comprises the following steps: acquiring a face detection image and a head detection image of a target object; positioning and acquiring a face area in the face detection image, and performing key point detection on the acquired face area; based on key point detection, identifying and acquiring eye dynamic information and mouth dynamic information of the target object; acquiring head posture information in the head detection image; according to the eye dynamic information, the mouth dynamic information and the head posture information of the target object, fatigue parameter information of the target object is calculated and obtained; and comparing the fatigue parameter information of the target object with a preset threshold value, performing fatigue judgment according to a comparison result, and outputting a judgment result. According to the method, the fatigue of the driver is judged through fusion of multiple features, and higher accuracy and universality are achieved; the head posture estimation is calculated by using a head Euler angle and a deflection angle, the calculation amount is small, the detection speed is high, and the influence of key point detection is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of fatigue detection, and in particular to a driver fatigue detection method based on multi-feature weighted fusion. Background Art

[0002] In recent years, the rapid expansion of road construction and the surge in the number of vehicles have brought huge challenges to traffic safety. According to relevant data from the World Health Organization, more than 1.35 million people die in traffic accidents every year, and traffic accident injuries have become one of the largest causes of casualties in the world. Fatigue driving is one of the main causes of traffic accidents, accounting for 30%. In recent years, millions of people have died or been injured in accidents caused by fatigue driving.

[0003] In response to the key issue of driver fatigue in traffic safety, developing an efficient fatigue detection system to remind drivers to take rest measures in real time has become the focus of current research. Designing and implementing such a system is crucial to reducing the frequency of traffic accidents caused by fatigue driving. Current research on driver fatigue detection focuses on three aspects: driver fatigue detection based on vehicle driving data, fatigue analysis based on physiological state, and fatigue recognition based on image processing. Among them, the image processing fatigue detection method has become the mainstream because of its low cost, high accuracy, and non-intrusiveness.

[0004] Most of the existing fatigue driving detection methods only judge the driver's state based on a single feature, and cannot fully characterize the fatigue state. When a certain feature is affected by individual differences of drivers or the detection environment, the detection accuracy will be poor. For example, for the driver's head movements, most of them only involve nodding postures, and their head turning postures are not considered. Therefore, considering combining the mouth, eyes and multiple features of the head together to make a more accurate judgment of the driver's fatigue status. In addition, most head posture estimation relies on key point estimation, and its large swing will increase the difficulty of head posture estimation. Summary of the invention

[0005] In order to solve the problems existing in the background technology, the present invention proposes a driver fatigue detection method based on multi-feature weighted fusion.

[0006] A driver fatigue detection method based on multi-feature weighted fusion includes the following steps:

[0007] S100, obtaining a face detection image and a head detection image of a target object;

[0008] S200, using a face detection algorithm to locate and obtain a facial region in a face detection image, and performing key point detection on the obtained facial region;

[0009] S300, based on key point detection, identifying and acquiring eye dynamic information and mouth dynamic information of the target object;

[0010] S400, obtaining head posture information in the head detection image;

[0011] S500, calculating and obtaining fatigue parameter information of the target object according to the eye dynamic information, mouth dynamic information and head posture information of the target object;

[0012] S600: Compare the fatigue parameter information of the target object with a preset threshold, and perform fatigue judgment according to the comparison result and output the judgment result.

[0013] Based on the above, in step S100, a face detection frame of the face detection image is obtained, and after calculating and obtaining the center point position of the face detection frame, the face detection frame is enlarged by 10%-20% to obtain a head detection image.

[0014] Based on the above, the eye dynamic information is the opening and closing information of the eyes, and the mouth dynamic information is the opening and closing information of the mouth.

[0015] Based on the above, the head posture information is the Euler angle information of the head posture.

[0016] Based on the above, eye fatigue parameters include PERCLOS parameters, continuous eye closure time and blinking frequency. PERCLOS parameters are expressed as:

[0017]

[0018] Where T is the unit time for calculating fatigue parameters, fps is the video speed, ∑N is the total number of eye-closing frames; the continuous eye-closing time is expressed as:

[0019]

[0020] Among them, T close Indicates the duration of closing eyes, N start Indicates the start of eye closure, N end Indicates the end of eye closure; blink frequency is expressed as:

[0021]

[0022] Among them, f blink is the blink frequency, n blink It is the number of blinks per unit time.

[0023] Based on the above, the mouth fatigue parameter includes yawning frequency, which is expressed as:

[0024]

[0025] Among them, f yawn is the yawning frequency, T is the unit time for calculating the yawning frequency, n yawn The number of yawns per unit time.

[0026] Based on the above, in step S500, the abnormal head posture information is judged and obtained through the Euler angle information, deflection angle information and deflection duration information of the head, and the head fatigue parameter is obtained through the abnormal head posture information; wherein, if the head Euler angle exceeds the preset deflection angle and the duration exceeds the preset time, it is judged as a head posture abnormality.

[0027] Based on the above, the abnormal head posture information is the nodding information, and the head fatigue parameter includes the nodding frequency, which is expressed as:

[0028]

[0029] Among them, f head is the nodding frequency, T is the unit time for calculating the nodding frequency, n head The number of nods per unit time.

[0030] Based on the above, in step S600, the fatigue parameter information of the target object is normalized and then weighted calculated, and the calculation result is compared with a preset threshold value, and fatigue judgment is performed and the judgment result is output according to the comparison result.

[0031] Based on the above, in step S600, multiple levels of fatigue degree thresholds are set respectively, the obtained fatigue calculation results are compared with the multiple levels of fatigue degree thresholds respectively, and the fatigue degree is judged according to the comparison results.

[0032] Compared with the prior art, the present invention has outstanding substantial features and significant progress. Specifically, the present invention uses multiple feature fusion to judge the driver's fatigue, which solves the problem that a single facial feature detection is hindered and cannot be detected. It has higher accuracy and universality. In addition, head posture estimation uses the Euler angle and deflection angle of the head to calculate. Compared with the calculation using key points, it has less calculation amount, faster detection speed, and the estimated angle is not affected by the key point detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is an overall flow chart of the method of the present invention.

[0034] Figure 2 It is a schematic diagram of the key feature points of a face.

[0035] Figure 3 It is a cropped picture of eyes, mouth and head.

[0036] Figure 4It is the overall framework diagram of the face detection algorithm of the present invention.

[0037] Figure 5 It is an overall framework diagram of the head posture estimation module of the present invention. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] like Figure 1 As shown, a driver fatigue detection method based on multi-feature weighted fusion includes the following steps:

[0040] S100, obtaining a face detection image and a head detection image of a target object, wherein the head detection image is actually obtained by further processing the face detection image;

[0041] S200, using a face detection algorithm to locate and obtain a facial region in a face detection image, and performing key point detection on the obtained facial region;

[0042] S300, based on key point detection, identifying and acquiring eye dynamic information and mouth dynamic information of the target object, where the eye dynamic information is actually eye opening and closing information, i.e., information about eye opening and closing, and the mouth dynamic information is actually mouth opening and closing information, i.e., information about mouth opening and closing;

[0043] S400, obtaining head posture information in the head detection image;

[0044] S500, calculating and obtaining fatigue parameter information of the target object according to the eye dynamic information, mouth dynamic information and head posture information of the target object;

[0045] S600: Compare the fatigue parameter information of the target object with a preset threshold, and perform fatigue judgment according to the comparison result and output the judgment result.

[0046] Specifically, in this embodiment:

[0047] Face detection: Figure 4As shown, the face detection model is improved on the basis of YOLOV8n (You Only Look Once algorithm model, V8n is the version, which belongs to the prior art and will not be repeated here), and the improved model is FEC_yolov8, where CBS is ordinary convolution, normalized BN and SiLU activation function, C2f_Faster_EMA modifies Bottleneck in the original C2f module into EMA_Faster_Block, and EMA_Faster_Block contains 3*3PConv convolution, 1*1 ordinary convolution, and EMA attention mechanism. PConv can effectively reduce computational redundancy and improve computational efficiency. The EMA attention mechanism is introduced to enhance the model's detection effect on the target area. Improving the original C2f module to C2f_Faster_EMA can increase the feature extraction capability of the model backbone. The upsampling method in FEC_yolov8 uses the lightweight upsampling operator CARAFE, which has a larger perception range and does not introduce too many parameters. The face detection model outputs the face detection image, including the face detection frame, and calculates the center point position information of the face detection frame. Then the face detection frame is enlarged by 10%-20%, the image information of the head is obtained, and the head detection image is obtained after cropping and sent to the head posture estimation module.

[0048] Key point location: The face detection image is sent to the key point network for key point location. The face key point detection uses the PFLD (Practical Facial Landmark Detector, an existing face key point detection algorithm, which belongs to the prior art and will not be described in detail) network model. The algorithm outputs 98 face key points, among which the feature points of the face contour are numbered 1-46, the feature points of the left eye contour are numbered 60-67, the feature points of the right eye contour are numbered 68-75, and the feature points of the mouth contour are numbered 76-95. Figure 2 After cutting out the eye and mouth regions according to the feature point numbers, Figure 3 As shown, it is sent to the eye and mouth state judgment module.

[0049] Eye and mouth state judgment module (SECA_ShuffleNetV2): In the actual detection process, the cropped eye and mouth images are different, so the image size input into the eye and mouth state recognition module is uniformly set to 64*64. In this embodiment, the eye and mouth state judgment module SECA_ShuffleNetV2 is improved on the basis of ShuffleNetV2 (a lightweight neural network, V2 is the version, which belongs to the prior art and will not be repeated) 0.25x, so that the classification types are only four categories: mouth open, mouth closed, eyes open, and eyes closed. The classification is relatively simple and is not suitable for using too deep a network structure. In the original ShuffleNetV2 framework, the downsampling units and basic units of each stage are stacked. In this embodiment, the downsampling units and basic units are only used once in each stage, which reduces unnecessary parameters. After that, the ECA attention mechanism is added after the global pooling to enhance the network feature extraction capability, and then the Mish activation function is used instead of the ReLU activation function to reduce the necrosis of intermediate neurons. Mish activation function:

[0050] f(x)=x * tanh(ln(1+e x ))

[0051] Head pose estimation module (HeadPose): Figure 5 As shown in the figure, the head posture estimation module is built based on the existing Feature Pyramid Network. The backbone of this module is the lightweight network GhostNetV2. First, a 3*224*224 head image is input, and then the 4th, 6th, 11th, and 17th layers of the GhostNetV2 network output 56*56*24, 28*28*24, 14*14*80, and 14*14*112 feature maps respectively, which are sent to the feature pyramid network. After upsampling Up and downsampling Down in the feature pyramid, the features are aggregated and input to the void space pyramid pooling ECA_ASPP. In order to realize multi-scale feature extraction, ECA_ASPP sets the dilation values ​​of 1, 2, and 4 respectively. Three parallel branches are used to obtain receptive fields of different scales and extract multi-scale information. ECA_ASPP also has a parallel branch for the pooling layer. After the four parallel branches are superimposed and output, the attention mechanism ECA is added to retain the features to the greatest extent. Finally, global average pooling is performed, and the head Euler angle and the offset angle of the head Euler angle are output.

[0052] The input of the head posture recognition module is the head detection image, and its output has 6 fully connected layers, namely yaw, yaw_shift, pitch, pitch_shift, roll, roll_shift; 3 of them are 10-bin angle classification, that is, the angle categories in [-100, -80, -60, -40, -2, 0, 20, 40, 60, 80]. The other 3 groups of fully connected layers are 20-bin offset angle classification, and the offset angle is the result of the first 3 groups of 10-bin angle classification plus a value from 0 to 19. When predicting head posture, the offset angle is added to the Euler angle of the head to make the prediction more accurate.

[0053] Fatigue detection judgment:

[0054] Eye fatigue parameters include: PERCLOS parameter, continuous eye closure time, blinking frequency, and their expressions are as follows:

[0055]

[0056] Wherein, T is the unit time for calculating fatigue judgment parameters, fps is the video speed, and ∑N is the total number of closed-eye frames.

[0057]

[0058] Among them, f blink is the blink frequency, n blink It is the number of blinks per unit time.

[0059]

[0060] Among them, T close Indicates the duration of closing eyes, N start Indicates the start of the eye-closing frame position, N end Indicates the end of eye closure.

[0061] The mouth fatigue parameter includes yawning frequency, and its expression is as follows:

[0062]

[0063] Among them, f yawn is the yawning frequency, T is the unit time for calculating the yawning frequency, n yawn The number of yawns per unit time.

[0064] The abnormal head posture information is judged and obtained through the Euler angle information, deflection angle information and deflection duration information of the head, and the head fatigue parameter is obtained through the abnormal head posture information. Among them, if the head Euler angle exceeds the preset deflection angle and the duration exceeds the preset time, it is determined to be a head posture abnormality. As in the present embodiment, when the left and right deflection angle (Yaw) of the head exceeds 45° or the up and down deflection angle (Pitch) exceeds 30° and the time exceeds 3s, it is defined as a head posture abnormality. Therefore, when the head posture angle Yaw or Pitch calculated in the head posture estimation module does not meet the specifications and the time exceeds 3s, it is judged that the driver's head posture is abnormal, that is, nodding, and whether the driver is in a fatigue state is calculated by calculating the head movement frequency, that is, the nodding frequency. Its expression is as follows:

[0065]

[0066] Among them, f head is the nodding frequency, T is the unit time for calculating the head movement frequency, n head is the number of head movements per unit time.

[0067] After normalizing the fatigue parameter information of the target object, i.e., the driver, a weighted calculation is performed, and the calculation result is compared with a preset threshold value, and fatigue judgment is performed and a judgment result is output based on the comparison result. Preferably, multiple levels of fatigue degree thresholds are set, and the obtained fatigue calculation results are compared with the multiple levels of fatigue degree thresholds, and fatigue degree judgment is performed based on the comparison result.

[0068] In this embodiment, taking T=3s and fps=30 as an example, the fatigue degree index determined by the fatigue parameter is specifically as shown in Table 1:

[0069]

[0070]

[0071] Table 1 Fatigue degree judgment index

[0072] Since different fatigue judgment indicators have different dimensional units, in order to simplify the calculation process of subsequent fatigue feature fusion, the data shown in Table 1 needs to be normalized. As shown in Table 2:

[0073]

[0074] Table 2 Normalization of fatigue level The weighting function of driver fatigue detection is as follows:

[0075]

[0076] Fatigue is the weighted fatigue value obtained after feature fusion, i represents the normalized fatigue judgment index, and Wi is the corresponding weight. The fatigue level is divided into three levels, namely mild fatigue, moderate fatigue and severe fatigue. That is, the Fatigue value obtained after weighted calculation is compared with the preset fatigue level threshold to determine whether the driver is mildly fatigued, moderately fatigued or severely fatigued, and the judgment result is output such as early warning reminders. Using multiple feature fusion to judge the driver's fatigue solves the problem that single facial feature detection is hindered and cannot be detected. It has higher accuracy and universality. In addition, head posture estimation uses the head Euler angle and deflection angle calculation. Compared with the calculation using key points, it has less calculation and faster detection speed, and the estimated angle is not affected by key point detection.

[0077] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

Claims

1. A driver fatigue detection method based on multi-feature weighted fusion, characterized in that: Includes steps: S100, obtaining a face detection image and a head detection image of a target object; S200, using a face detection algorithm to locate and obtain a facial region in a face detection image, and performing key point detection on the obtained facial region; S300, based on key point detection, identifying and acquiring eye dynamic information and mouth dynamic information of the target object; S400, obtaining head posture information in the head detection image; S500, calculating and obtaining fatigue parameter information of the target object according to the eye dynamic information, mouth dynamic information and head posture information of the target object; S600: Compare the fatigue parameter information of the target object with a preset threshold, and perform fatigue judgment according to the comparison result and output the judgment result.

2. The driver fatigue detection method based on multi-feature weighted fusion according to claim 1 is characterized in that: In step S100, a face detection frame of a face detection image is obtained, and after calculating and obtaining the center point position of the face detection frame, the face detection frame is enlarged by 10%-20% to obtain a head detection image.

3. The driver fatigue detection method based on multi-feature weighted fusion according to claim 1 is characterized in that: The eye dynamic information is the opening and closing information of the eyes, and the mouth dynamic information is the opening and closing information of the mouth.

4. The driver fatigue detection method based on multi-feature weighted fusion according to claim 1 is characterized in that: The head posture information is Euler angle information of the head posture.

5. The driver fatigue detection method based on multi-feature weighted fusion according to claim 1 is characterized in that: Eye fatigue parameters include PERCLOS parameters, continuous eye closure time and blinking frequency. PERCLOS parameters are expressed as: Where T is the unit time for calculating fatigue parameters, fps is the video speed, ∑N is the total number of eye-closing frames; the continuous eye-closing time is expressed as: Among them, T close Indicates the duration of closing eyes, N start Indicates the start of eye closure, N end Indicates the end of eye closure; blink frequency is expressed as: Among them, f blink is the blink frequency, n blink It is the number of blinks per unit time.

6. The driver fatigue detection method based on multi-feature weighted fusion according to claim 1 is characterized in that: Mouth fatigue parameters include yawning frequency, expressed as: Among them, f yawn is the yawning frequency, T is the unit time for calculating the yawning frequency, n yawn The number of yawns per unit time.

7. The driver fatigue detection method based on multi-feature weighted fusion according to claim 1 is characterized in that: In step S500, the abnormal head posture information is judged and obtained through the Euler angle information, deflection angle information and deflection duration information of the head, and the head fatigue parameter is obtained through the abnormal head posture information; wherein, if the head Euler angle exceeds the preset deflection angle and the duration exceeds the preset time, it is determined as an abnormal head posture.

8. The driver fatigue detection method based on multi-feature weighted fusion according to claim 7 is characterized in that: The abnormal head posture information is the nodding information, and the head fatigue parameter includes the nodding frequency, which is expressed as: Among them, f head is the nodding frequency, T is the unit time for calculating the nodding frequency, n head The number of nods per unit time.

9. The driver fatigue detection method based on multi-feature weighted fusion according to claim 1 is characterized in that: In step S600, the fatigue parameter information of the target object is normalized and then weighted calculated, and the calculation result is compared with a preset threshold value, and fatigue judgment is performed and the judgment result is output based on the comparison result.

10. The driver fatigue detection method based on multi-feature weighted fusion according to claim 1 is characterized in that: In step S600, multiple levels of fatigue degree thresholds are set respectively, the obtained fatigue calculation results are compared with the multiple levels of fatigue degree thresholds respectively, and the fatigue degree is judged according to the comparison results.

Citation Information

Cited By

  • Driver fatigue state real-time monitoring method based on multi-modal biological feature fusion

    CN120048073A

  • Fatigue driving detection method based on personalized feature fusion

    CN120375333A

  • Face micro-vibration mental health system and evaluation method based on deep learning

    CN122581762A