Fatigue driving early warning method and system based on AI algorithm

Through the fatigue driving early warning method based on AI algorithm, the face, eye and head image information is used to calculate the fatigue credibility and weighted sum, combined with historical habit characteristics and associated fatigue action groups, to solve the problem of frequent misjudgments in the existing technology. problem, achieving more accurate fatigue detection and personalized early warning, improving driving safety.

CN118762352AActive Publication Date: 2024-10-11GUANGZHOU LUAN TECHNOLOGY CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411221110.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2024-10-11
Estimated Expiration
2044-09-02

AI Technical Summary

Technical Problem

It is difficult to accurately distinguish between blinking under normal physiological reactions and eye closing due to fatigue in the existing technology during fatigue driving detection, resulting in falsely high frequency of eye closing, frequent misjudgments, and unnecessary warnings.

Method used

The fatigue driving early warning method based on AI algorithm is used to extract the driver's face, eye and head image information, use a pre-trained classifier to determine the status label, and calculate the fatigue credibility of consecutive frames of eye closing, mouth opening, and lifting sequences. , perform weighted summation, dynamically adjust weight values, combine historical habit characteristics and associated fatigue action groups, accurately judge fatigue status and control early warning mode.

Benefits of technology

It improves the accuracy of fatigue driving detection, reduces misjudgments, adapts to complex driving environments, provides personalized fatigue monitoring and early warning, and improves driving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762352A_ABST
    Figure CN118762352A_ABST
Patent Text Reader

Abstract

The invention discloses a fatigue driving early warning method and system based on an AI algorithm. The method comprises the steps that a face image of a driver is obtained every preset period, and eye images, a mouth image and head position information are extracted; respectively inputting the eye image, the mouth image and the head position information of all time nodes in the period into a pre-trained classifier to obtain a state label corresponding to each time node; according to the state label of each time node, extracting all continuous frame eye closing sequences, continuous frame mouth opening sequences and continuous frame lifting sequences to obtain fatigue credibility of each sequence, and determining an eye fatigue value, a mouth fatigue value and a head fatigue value; and performing weighted summation on the eye fatigue value, the mouth fatigue value and the head fatigue value to obtain a target fatigue value, and if the target fatigue value is greater than a fatigue threshold value, controlling a warning mode of the early warning equipment. Therefore, the fatigue credibility is introduced, the fatigue state of the driver is accurately judged, and frequent mistaken touch of early warning is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer vision image processing, and in particular to a fatigue driving warning method and system based on an AI algorithm. Background Art

[0002] Driving requires a high level of concentration and attention, but when the driver is fatigued, his reaction is slow, his vision is blurred, his mind is distracted, and his operating errors increase. According to research, 60% of traffic accidents are caused by a lack of reaction time of only 0.5 seconds before the accident. Fatigue driving undoubtedly greatly increases the risk of traffic accidents. Therefore, in order to reduce the occurrence of traffic accidents, it is necessary to strengthen the monitoring and research of fatigue driving.

[0003] The Chinese invention patent with patent application number 201910826338.5 discloses a fatigue driving detection method: extracting and combining fatigue features of the face, eyes and mouth (eye closing frequency, yawning frequency, nodding frequency) to determine the degree of fatigue, thereby avoiding the situation where the eyes are blocked and fatigue monitoring is invalid. However, since the frequency of eye closing caused by blinking under normal physiological reactions is bound to be different for different people, and the relevant technology does not distinguish between blinking and eye closing caused by fatigue, it is very likely that blinking under normal physiological reactions will be counted as fatigue eye closing, so that the eye closing frequency is artificially high, which will eventually lead to misjudgment of the results of fatigue driving detection, and generate unnecessary warnings to scare the driver. Summary of the invention

[0004] This application provides a fatigue driving warning method and system based on AI algorithm, introduces fatigue credibility, accurately judges the driver's fatigue state, and avoids frequent false triggering of warnings.

[0005] The present application provides a fatigue driving warning method based on an AI algorithm, the method comprising: S101, obtaining a facial image of the driver transmitted by the vehicle-mounted acquisition device at a preset period, and extracting eye images, mouth images and head position information of the facial image; S102, inputting the eye images, mouth images and head position information of all time nodes in the cycle into the pre-trained classifiers to obtain the state label corresponding to each time node; wherein the pre-trained classifiers include an eye classifier, a mouth classifier and a head position classifier, which are respectively used to output the corresponding state labels: eyes open / eyes closed, mouth open / mouth closed, head up / head down; S103, extracting all continuous frame eye closing sequences, continuous frame mouth opening sequences, and continuous frame rising and falling sequences according to the state label of each time node, obtaining fatigue credibility of each sequence, and determining eye fatigue value, mouth fatigue value, and head fatigue value according to all fatigue credibility; S104, performing weighted summation on the eye fatigue value, the mouth fatigue value and the head fatigue value to obtain a target fatigue value. If the target fatigue value is greater than the fatigue threshold, the warning mode of the early warning device is controlled.

[0006] Preferably, extracting all continuous frame eye-closing sequences to obtain fatigue credibility of each sequence includes: Based on each continuous frame eye closure sequence, the aspect ratios of a preset number of continuous frame eye images before the start frame are obtained, and the fatigue credibility of the continuous frame eye closure sequence is calculated according to the following formula: ; in, is the fatigue credibility of the continuous frame eye closure sequence, is the number of frames in the continuous frame eye-closing sequence, n is the total number of frames of the facial image in the current cycle, f is the eyelid drooping change value of the continuous frame eye-closing sequence, N is the preset number, is the aspect ratio of the i+1th eye image among the preset number of consecutive frames of eye images before the start frame, is the aspect ratio of the ith eye image among a preset number of consecutive frames of eye images before the start frame; The extraction of all continuous frame mouth opening sequences to obtain the fatigue credibility of each sequence includes: Based on each continuous frame mouth opening sequence, the aspect ratio of each frame mouth image is obtained, and the ratio of the number of frames whose mouth image aspect ratio is continuously greater than a preset threshold to the number of frames in the continuous frame mouth opening sequence is used as the fatigue credibility of the continuous frame mouth opening sequence.

[0007] Preferably, before S101, the method further includes: When the driver starts the vehicle, the driver is guided to look directly at the on-board acquisition device according to the prompt information pre-set in the on-board acquisition device, a facial image of the driver in a normal state is obtained, and the eye image, mouth image and head position information are extracted as the standard eye aspect ratio, mouth standard aspect ratio and head standard position information of the driver respectively; The extraction of all continuous frame rise and fall sequences to obtain the fatigue credibility of each sequence includes: A1. Obtaining standard head position information of the driver; A2. Based on each continuous frame ascending and descending sequence, the maximum and minimum values ​​of the head position information are obtained, and the fatigue credibility of the continuous frame ascending and descending sequence is calculated according to the following formula: ; in, is the fatigue credibility of the continuous frame rise and fall sequence, is the maximum value of the head position information in the rising and falling sequence of the continuous frames, is the minimum value of the head position information in the ascending and descending sequence of the continuous frames, It is the standard position information of the driver's head.

[0008] Preferably, determining the eye fatigue value, the mouth fatigue value and the head fatigue value according to all fatigue credibility comprises: B1. Based on all the continuous frame eye closure sequences, a sequence whose fatigue credibility is greater than a first threshold is determined as a first sequence, and an eye fatigue value is calculated according to the total number of frames of eye images collected in the current cycle, the sum of the number of frames in all first sequences, and the number of first sequences; B2. Based on all continuous mouth opening sequences, a sequence whose fatigue credibility is greater than a second threshold is determined as a second sequence, and a mouth fatigue value is calculated according to the total number of mouth images collected in the current cycle, the total number of frames in all second sequences, and the number of second sequences; B3. Based on all continuous frame rising and falling sequences, a sequence whose fatigue credibility is greater than a third threshold is determined as a third sequence, and a head fatigue value is calculated according to the total number of frames of facial images collected in the current cycle, the sum of the number of frames in all third sequences, and the number of third sequences.

[0009] Preferably, the eye fatigue value, mouth fatigue value and head fatigue value are weightedly summed to obtain the target fatigue value, which is specifically calculated according to the following formula: ; ; in, is the target fatigue value, is the eye fatigue value of the current cycle, is the mouth fatigue value of the current cycle, is the head fatigue value of the current cycle, w1, w2, and w3 are the influence weights of the eye fatigue value, mouth fatigue value, and head fatigue value, respectively, n1 is the number of eye images collected in the current cycle, and n2 is the total number of face images collected in the current cycle. is the number of the first sequence, is the eyelid droop change value of the jth first sequence, is the difference between the average value of the aspect ratios of the eye images of a preset number of consecutive frames before the start frame of the first sequence and the standard aspect ratio of the eye, is the number of the second sequence, is the number of the third sequence.

[0010] Preferably, in B1, the method for determining the eye fatigue value further includes: S201, based on all first sequences sorted in the order of acquisition time in the current cycle, according to the change of the number of frames between all adjacent first sequences and the change of the eyelid ptosis change value, obtain the eye fatigue duration value; The effective eye fatigue duration value can be obtained only when the number of frames of the next first sequence increases relative to the previous first sequence, or the change in the eyelid drooping value decreases, otherwise, it is 0; S202, summing the eye fatigue value and the corresponding eye fatigue duration value to obtain a new eye fatigue value to replace the original eye fatigue value.

[0011] Preferably, before S104, the method further includes: S301, obtaining all first sequences, second sequences and third sequences in the current period, comparing the time nodes of each frame in each sequence, and obtaining sequences with overlapping time nodes; S302, determining an associated fatigue action group according to two sequences whose time node overlap rate is greater than an overlap threshold and whose overlap rate is the highest, wherein the associated fatigue action group includes fatigue actions corresponding to the two sequences, wherein the fatigue action corresponding to the first sequence is closing eyes, the fatigue action corresponding to the second sequence is yawning, and the fatigue action corresponding to the third sequence is nodding.

[0012] In the step S104, the eye fatigue value, the mouth fatigue value and the head fatigue value are weighted and summed to obtain a target fatigue value, and the method further includes: S401, when it is determined that there is an associated fatigue action group in the current cycle, determining an adjustment factor of the associated fatigue action group in the current cycle according to a preset associated fatigue action group-adjustment factor; S402, when calculating the target fatigue value, based on the weighted sum of the eye fatigue value, the mouth fatigue value and the head fatigue value, the weighted sum of the fatigue values ​​corresponding to the two fatigue actions in the associated state fatigue group is multiplied by the adjustment factor to obtain the target fatigue value.

[0013] Preferably, the method further comprises: C1. Obtain the driver's historical fatigue driving information and extract key information sets, including the historical period determined as fatigue driving, the corresponding associated fatigue action group and its corresponding personal habit fatigue characteristics, and the driving time type; the driving time type is expressed as [driving time interval, driving time attribute]; C2. Based on the associated information set, a fatigue feature set is constructed, including driving time type, associated fatigue action group, and personal habit fatigue feature; The method of obtaining the personal habit fatigue characteristics includes: D1. Based on the key information set, for each driving time type, all associated frame sequences corresponding to all the same associated fatigue action groups are extracted. The associated frame sequences are determined as: frame images collected during the time period of overlapping time nodes between two sequences corresponding to each associated fatigue action group, as well as a preset number of frame images before the start frame and a preset number of frame images after the end frame; D2, inputting the associated frame sequence into the pre-trained habit fatigue motion model, and outputting the habit fatigue motion of each frame image in the associated frame sequence; D3. Count the number of each habitual fatigue action in the associated frame sequence, obtain the occurrence frequency of each habitual fatigue action, sort the occurrence frequencies from high to low, and determine the habitual fatigue actions with a preset proportion at the front as the personal habitual fatigue characteristics of the corresponding associated fatigue action group in the corresponding driving time type.

[0014] Preferably, in S104, after obtaining the target fatigue value, the method further includes: controlling the warning mode of the early warning device according to the target fatigue value, specifically including: S501, if the target fatigue value is greater than the fatigue threshold, obtain the associated fatigue action group of the current cycle and its corresponding action frame sequence, and the driving time type to which the current cycle belongs; the action frame sequence is determined as: frame images collected within the time period of overlapping time nodes between two sequences corresponding to the associated fatigue action group and a preset number of frame images before the start frame; S502, using the driving time type of the current cycle and the associated fatigue action group, traverse the fatigue feature set to obtain at least one personal habit fatigue feature, and determine it as a reference fatigue feature; S503, inputting the action frame sequence of the current cycle into the pre-trained habit fatigue action model, outputting the habit fatigue action of each frame image in the action frame sequence, and determining all the habit fatigue actions as the personal habit fatigue features of the current cycle; S504, based on all personal habit fatigue features in the action frame sequence, traverse the reference fatigue features to obtain a fatigue feature hit rate: the number of reference fatigue features hit / the total number of reference fatigue features; The warning mode of the control early warning device includes: S601, if the fatigue feature hit rate is 0, or there is no associated fatigue action group in the current cycle, the warning device is controlled to execute the primary warning mode; S602, if the fatigue feature hit rate is in the first interval, controlling the warning device to execute the first level warning mode; S603: If the fatigue feature hit rate is in the second interval, the warning device is controlled to execute the second-level warning mode.

[0015] The present application also provides a fatigue driving warning system based on an AI algorithm, the system comprising: An acquisition module, used to obtain the driver's facial image transmitted by the vehicle-mounted acquisition device at a preset period, and extract the eye image, mouth image and head position information of the facial image; A classification module is used to input the eye images, mouth images and head position information of all time nodes in the cycle into a pre-trained classifier to obtain a state label corresponding to each time node; An analysis module is used to extract all continuous frame eye closing sequences, continuous frame mouth opening sequences, and continuous frame rising and falling sequences according to the state label of each time node, obtain the fatigue credibility of each sequence, and determine the eye fatigue value, mouth fatigue value, and head fatigue value according to all fatigue credibility; The early warning module is used to perform weighted summation of eye fatigue values, mouth fatigue values ​​and head fatigue values ​​to obtain a target fatigue value. If the target fatigue value is greater than a fatigue threshold, the warning mode of the early warning device is controlled.

[0016] One or more technical solutions provided in this application have at least the following technical effects or advantages: By introducing the fatigue credibility of the eye, mouth and head positions, the driver's fatigue state can be judged more accurately, avoiding frequent misjudgment of fatigue state and accurately distinguishing the driver's fatigue behavior from non-fatigue behavior; the standard state of different drivers is taken into account, making fatigue monitoring more personalized and differentiated; according to the degree of eye occlusion, eyelid drooping change rate and eye drooping degree within the cycle, the influence weight value is adaptively and dynamically adjusted, so that fatigue driving warning can adapt to complex and changeable driving environments. When eye detection is inaccurate, auxiliary detection can be performed through the mouth and head to obtain more accurate fatigue driving detection results; By introducing the change relationship between the first sequences, the eye fatigue duration value is obtained, which can more accurately monitor the change trend of the driver's eye fatigue state in the current cycle, judge whether the driver's eye fatigue is getting worse, and dynamically adjust the eye fatigue value according to the eye fatigue duration value, thereby reducing the problem of inaccurate eye fatigue value caused by limiting the overall closed eye frame ratio and ignoring the eye fatigue state change in the cycle; When calculating the target fatigue value, by introducing the associated state fatigue group, the driver's fatigue level in the current cycle can be more accurately assessed, especially when multiple fatigue actions occur at the same time; the weighted sum of the corresponding fatigue values ​​in the target fatigue value is dynamically adjusted according to the adjustment factor of the associated fatigue action group, so that the assessment of driver fatigue is more in line with the actual situation, avoiding the situation where two fatigue actions occur at the same time, resulting in their corresponding fatigue values ​​being unclear, resulting in a lower final target fatigue value. The introduction of the adjustment factor compensates for this defect, which helps to improve the accuracy of fatigue driving warning; By introducing personal habit fatigue characteristics, combining driving time types and associated fatigue action groups, a fatigue feature set personalized for the driver is constructed. When the target fatigue value triggers fatigue, the driver's personal habit fatigue characteristics in the current cycle are mined based on the fatigue feature set, so as to select the warning mode, thereby improving the accuracy and pertinence of fatigue warning. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 Schematic diagram of a process of a fatigue driving warning method based on an AI algorithm according to an embodiment of the present invention; Figure 2 The figure is a structural block diagram of a fatigue driving warning system based on an AI algorithm according to an embodiment of the present invention. DETAILED DESCRIPTION

[0018] To facilitate the understanding of the present invention, the present application will be described more comprehensively below with reference to the relevant drawings; the drawings show preferred embodiments of the present invention, but the present invention can be implemented in many different forms and is not limited to the embodiments described herein; on the contrary, the purpose of providing these embodiments is to enable a more thorough and comprehensive understanding of the disclosed content of the present invention.

[0019] It should be noted that the terms “vertical”, “horizontal”, “up”, “down”, “left”, “right” and similar expressions used in this document are only for illustrative purposes and do not represent the only implementation method.

[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which the present invention belongs; the terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention; the term "and / or" used herein includes any and all combinations of one or more related listed items.

[0021] Embodiment 1: Figure 1 It is a flow chart of a fatigue driving warning method based on an AI algorithm according to an embodiment of the present invention.

[0022] like Figure 1 As shown, a fatigue driving warning method based on AI algorithm includes the following steps: S101, obtaining a facial image of the driver transmitted by a vehicle-mounted acquisition device at a preset period, and extracting eye images, mouth images and head position information of the facial image.

[0023] Among them, the on-board acquisition device is set as a camera, which is fixed at a position where the driver's face can be photographed. It is used to collect the driver's facial image in real time and transmit it to the background for processing using a preset AI algorithm to extract eye images, mouth images and head position information, specifically including: loading a pre-trained face detection model (the dlib library can be used) to detect the received facial image, extract the driver's facial area and mark the feature points of each key organ, such as eye feature points, mouth feature points and head feature points, extract the driver's eye image and mouth image according to the position information of the eye feature points and the position information of the mouth feature points, and obtain the head position information according to the head feature points.

[0024] S102, input the eye images, mouth images and head position information of all time nodes in the cycle into the pre-trained classifier to obtain the state label corresponding to each time node.

[0025] Among them, the pre-trained classifiers include eye classifier, mouth classifier and head position classifier, which are used to output corresponding state labels: eyes open / closed, mouth open / closed, head up / down.

[0026] S103, extracting all continuous frame eye closing sequences, continuous frame mouth opening sequences, and continuous frame rising and falling sequences according to the state label of each time node, obtaining the fatigue credibility of each sequence, and determining the eye fatigue value, mouth fatigue value, and head fatigue value according to all fatigue credibility.

[0027] Among them, each continuous frame eye closing sequence includes a sequence of continuous frame eye images with the state label of closed eyes, a continuous frame mouth opening sequence includes a sequence of continuous frame mouth images with the state label of open mouth, and a continuous frame rising and falling sequence includes a sequence of continuous frame head position information with the state label changing from head falling to head rising, and each time node corresponds to a frame.

[0028] In some embodiments, all consecutive frame eye closure sequences are extracted to obtain fatigue credibility of each sequence, specifically including: Based on each continuous frame eye closure sequence, the aspect ratios of a preset number of continuous frame eye images before the start frame are obtained, and the fatigue credibility of the continuous frame eye closure sequence is calculated according to the following formula: ; in, is the fatigue credibility of the continuous frame eye closure sequence, is the number of frames in the continuous frame closed eye sequence, n is the total number of facial image frames in the current cycle, is the eye closure severity index of the continuous frame eye closure sequence, f is the eyelid droop change value of the continuous frame eye closure sequence, N is the preset number, is the aspect ratio of the i+1th eye image among the preset number of consecutive frames of eye images before the start frame, is the aspect ratio of the ith eye image in a preset number of consecutive frames of eye images before the start frame.

[0029] Therefore, based on the eye aspect ratio difference between the consecutive frames before the moment when the driver closed his eyes, the eyelid droop change value is reflected, combined with the eye closing severity index of the sequence reflected by the ratio of the number of frames in the corresponding consecutive frame eye closing sequence to the total number of frames in the current cycle, the eyelid droop change value is adaptively adjusted to obtain the fatigue credibility of the consecutive frame eye closing sequence. Therefore, the greater the fatigue credibility, the greater the possibility that the consecutive frame eye closing sequence represents the driver's fatigue eye closing, and the smaller the fatigue credibility, the greater the possibility that the consecutive frame eye closing sequence represents the driver's normal physiological blinking or eye closing caused by foreign matter.

[0030] In some embodiments, extracting all continuous frame mouth opening sequences to obtain fatigue credibility of each sequence specifically includes: Based on each continuous frame mouth opening sequence, the aspect ratio of the mouth image of each frame is obtained (calculated according to the two-dimensional coordinate values ​​of the edge of the mouth image), and the ratio of the number of frames whose mouth image aspect ratio is continuously greater than a preset threshold to the number of frames in the continuous frame mouth opening sequence is used as the fatigue credibility of the continuous frame mouth opening sequence.

[0031] Among them, the preset threshold is set according to professional experience to judge the degree of mouth opening and the suitability of yawning.

[0032] In some embodiments, all continuous frame rise and fall sequences are extracted to obtain fatigue credibility of each sequence, specifically including: A1. Obtain the standard position information of the driver's head.

[0033] In some embodiments, before step S101, the method further includes: When the driver starts to start the vehicle, the driver is guided to look directly at the on-board acquisition device according to the prompt information pre-set in the on-board acquisition device, a facial image of the driver in a normal state is obtained, and the eye image, mouth image and head position information are extracted as the standard eye aspect ratio, mouth standard aspect ratio and head standard position information of the driver, respectively.

[0034] A2. Based on each continuous frame ascending and descending sequence, the maximum and minimum values ​​of the head position information are obtained, and the fatigue credibility of the continuous frame ascending and descending sequence is calculated according to the following formula: ; in, is the fatigue credibility of the continuous frame rise and fall sequence, is the maximum value of the head position information in the rising and falling sequence of the continuous frames, is the minimum value of the head position information in the ascending and descending sequence of the continuous frames, It is the standard position information of the driver's head.

[0035] In some embodiments, the eye fatigue value, mouth fatigue value and head fatigue value are determined according to all fatigue credibility, specifically including: determining whether the state label corresponding to each sequence is true according to the fatigue credibility, and determining whether it is fatigue behavior or non-fatigue behavior: B1. Based on all the continuous frame eye-closing sequences, the sequence whose fatigue credibility is greater than the first threshold is determined as the first sequence (the sequence corresponding to the eye fatigue behavior), and the eye fatigue value is calculated according to the following formula: ; in, is the eye fatigue value of the current cycle, is the total number of frames of eye images collected in the current cycle, is the number of the first sequence, is the number of frames in the jth first sequence.

[0036] B2. Based on all the continuous frame mouth opening sequences, the sequence whose fatigue credibility is greater than the second threshold is determined as the second sequence (the sequence corresponding to the mouth fatigue behavior), and the mouth fatigue value is calculated according to the following formula: ; in, is the mouth fatigue value of the current cycle, is the total number of frames of mouth images collected in the current cycle, is the number of the second sequence, is the number of frames in the jth second sequence.

[0037] B3. Based on all continuous frame rise and fall sequences, the sequence whose fatigue credibility is greater than the third threshold is determined as the third sequence (the sequence corresponding to the head fatigue behavior), and the head fatigue value is calculated according to the following formula: ; in, is the head fatigue value of the current cycle, is the total number of frames of facial images collected in the current cycle, is the number of the third sequence, is the number of frames in the jth third sequence.

[0038] Specifically, the number of the first sequence represents the number of times the driver closes his eyes in the cycle, the number of the second sequence represents the number of times the driver yawns in the cycle, and the number of the third sequence represents the number of times the driver nods in the cycle.

[0039] Therefore, in the current cycle, combined with the number of the first sequence (number of times the eyes are closed due to fatigue), the number of the second sequence (number of times yawning), and the number of the third sequence (number of times the head nods), the ratios of the continuous number of frames of the first sequence, the continuous number of frames of the second sequence, and the continuous number of frames of the third sequence to the number of eye image frames, mouth image frames, and face image frames collected in the cycle are respectively determined as the eye fatigue value, mouth fatigue value, and head fatigue value. This can more accurately determine whether there is a state of closing eyes, yawning, and nodding based on the standard states of different drivers, and by introducing more detailed fatigue credibility, it can avoid frequent misjudgments of fatigue states and improve the accuracy of fatigue detection.

[0040] S104, performing weighted summation on the eye fatigue value, the mouth fatigue value and the head fatigue value to obtain a target fatigue value. If the target fatigue value is greater than the fatigue threshold, the early warning device is controlled to issue an alarm.

[0041] Among them, the early warning equipment includes voice broadcasting equipment and warning light equipment. The voice broadcasting equipment is used to broadcast the pre-set fatigue driving warning voice to the driver, and the warning light equipment is used to warn the vehicles around the vehicle through lights.

[0042] In some embodiments, a weighted sum of the eye fatigue value, the mouth fatigue value, and the head fatigue value is performed to obtain a target fatigue value, which is specifically calculated according to the following formula: ; ;

[0043] in, is the target fatigue value, is the eye fatigue value of the current cycle, is the mouth fatigue value of the current cycle, is the head fatigue value of the current cycle, w1, w2, and w3 are the influence weights of the eye fatigue value, mouth fatigue value, and head fatigue value, respectively, n1 is the number of eye images collected in the current cycle, and n2 is the total number of face images collected in the current cycle. is the number of the first sequence, is the eyelid droop change value of the jth first sequence, is the difference between the average value of the aspect ratios of the eye images of a preset number of consecutive frames before the start frame of the first sequence and the standard aspect ratio of the eye, which is used to reflect the degree of eye droop of the driver. is the number of the second sequence, is the number of the third sequence.

[0044] Therefore, the ratio of the eye image to the facial image in the current cycle is used to reflect the driver's eye occlusion situation. The larger the ratio, the lighter the eye occlusion situation. The change value of eyelid drooping due to fatigue and closing the eyes is combined with the degree of eye drooping reflected by the eye aspect ratio to comprehensively reflect the eye fatigue value for judging the influence weight value of the target fatigue value. That is, the lighter the eye occlusion situation, the smaller the eyelid drooping change value, and the greater the degree of eye drooping reflected by the eye aspect ratio, the greater the influence weight value of the eye fatigue value. Then, the influence weight values ​​of the mouth fatigue value and the head fatigue value can be adaptively adjusted.

[0045] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages: Traditional fatigue driving often relies on simple rules and threshold judgments, which are easily affected by factors such as light and individual differences of drivers, resulting in a high misjudgment rate. By introducing the fatigue credibility of the eyes, mouth and head positions, the driver's fatigue state (fatigue closed eyes / non-fatigue closed eyes, yawning, nodding) can be judged more accurately, avoiding frequent misjudgments of fatigue states and accurately distinguishing between driver fatigue and non-fatigue behaviors; The standard status of different drivers (standard aspect ratio of eyes, standard aspect ratio of mouth, standard position information of head) is taken into account, making fatigue monitoring more personalized and differentiated; The eye fatigue value, mouth fatigue value and head fatigue value are periodically integrated, and according to the degree of eye occlusion within the period (if the eye is occluded and sufficient eye images cannot be obtained due to the driver's special actions during the period, the influence weight of the eye fatigue value can be appropriately reduced), the eyelid drooping change rate, and the degree of eye drooping, the influence weight value is adaptively and dynamically adjusted. This allows the fatigue driving warning to adapt to the complex and changeable driving environment. When eye detection is inaccurate, auxiliary detection can be performed through the mouth and head to obtain more accurate fatigue driving detection results, avoiding too frequent warnings that cause tension to drivers and passers-by, while also improving driving safety.

[0046] Embodiment 2: In actual driving, the driver's fatigue state within a cycle is a dynamically changing process. Relying solely on a single fatigue state or a simple average fatigue value for early warning often cannot accurately reflect the driver's actual fatigue condition, resulting in poor early warning effect. For example, within a cycle, the eyes are closed three times, and the number of frames and eyelid drooping change values ​​of each eye closure are different. Then the relationship between adjacent eye closures can reflect whether the driver's eye fatigue continues, which is extremely important for the determination of eye fatigue values. In Embodiment 1, only referring to the total number of frames in the first sequence as a whole within the cycle to determine the eye fatigue value is bound to have limitations.

[0047] Therefore, the embodiments of the present application are optimized to a certain extent based on the above embodiments.

[0048] In some embodiments, in step B1, the method for determining the eye fatigue value further includes: S201, based on all first sequences sorted in the order of acquisition time in the current cycle, obtain the eye fatigue duration value according to the following formula: ; in, is the number of the first sequence, is the number of frames in the jth first sequence, is the number of frames in the j+1th first sequence, is the eyelid droop change value of the jth first sequence, is the eyelid ptosis change value of the j+1th first sequence, e1 and e2 are the contribution weights of the frame number and eyelid ptosis change value in the first sequence to the eye fatigue duration value, respectively.

[0049] It is understandable that only when the number of frames of the next first sequence increases compared to the previous first sequence, or when the eyelid drooping change value is smaller, can it be determined that eye fatigue is continuing. Therefore, The setting ensures that the change in the number of frames in the first sequence will contribute to the eye fatigue value only when the number of frames in the next first sequence increases relative to the previous first sequence. The setting ensures that the change in the eyelid drooping change value of the first sequence will contribute to the eye fatigue duration value only when the eyelid drooping change value of the next first sequence decreases relative to the previous first sequence.

[0050] S202, summing the eye fatigue value and the corresponding eye fatigue duration value to obtain a new eye fatigue value to replace the original eye fatigue value.

[0051] For example, a new eye fatigue value can be obtained according to the following formula: in, is the new eye fatigue value, is the original eye fatigue value, r is the eye fatigue duration value, and α is the weight factor of the eye fatigue duration value.

[0052] Therefore, by comparing the number of frames and eyelid droop change values ​​between all adjacent first sequences in the current cycle, it is determined whether there is a continuous value of eye fatigue, and then the continuous value of eye fatigue is superimposed with the eye fatigue value, and the changes in the eyes between different first sequences are introduced, which helps to better capture the changing trend of the driver's fatigue state, thereby more accurately judging the driver's eye fatigue value.

[0053] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages: By introducing the change relationship between the first sequences of each pair to obtain the eye fatigue duration value, it is possible to more accurately monitor the changing trend of the driver's eye fatigue status in the current cycle, determine whether the driver's eye fatigue is becoming more and more serious, and dynamically adjust the eye fatigue value based on the eye fatigue duration value, thereby reducing the problem of inaccurate eye fatigue value caused by limiting to the overall proportion of closed eye frames and ignoring the changes in eye fatigue status within the cycle.

[0054] Embodiment 3: In the actual driving process, the driver may perform different fatigue actions when he is tired. Since different weight values ​​are assigned to the fatigue values ​​corresponding to different fatigue actions in Embodiment 1, the fatigue actions are independent of each other. However, in actual scenarios, the driver performs different fatigue actions at the same time. The simultaneous execution of different actions will inevitably affect each other's expressiveness. Therefore, the determination of the fatigue values ​​between different fatigue actions will inevitably have a certain impact. Therefore, the degree of correlation between actions is extremely critical to the determination of fatigue values.

[0055] Therefore, the embodiments of the present application are optimized to a certain extent based on the above embodiments.

[0056] In some embodiments, before step S104, the method further includes: S301, obtaining all first sequences (closing eyes), second sequences (yawning) and third sequences (nodding) in the current cycle, comparing the time nodes of each frame in each sequence, and obtaining sequences with overlapping time nodes.

[0057] S302: Determine an associated fatigue action group according to two sequences whose time node overlap rate is greater than an overlap threshold and whose overlap rate is the highest. The associated fatigue action group includes fatigue actions corresponding to the two sequences.

[0058] Specifically, the fatigue action corresponding to the first sequence is closing eyes, the fatigue action corresponding to the second sequence is yawning, and the fatigue action corresponding to the third sequence is nodding.

[0059] For example, in the current cycle, a first sequence includes 10 frames, a second sequence includes 10 frames, and the two sequences have 6 frames with the same time nodes. Then the overlap rate of the two sequences is (6×2) / (10+10)=60%, and the overlap rate is greater than the preset overlap threshold of 40%. At the same time, the overlap rate is the largest compared with other sequences. Then the associated fatigue action group of the current cycle is (closing eyes, yawning).

[0060] In some embodiments, in step S104, weighted summing of the eye fatigue value, the mouth fatigue value and the head fatigue value is performed to obtain a target fatigue value, further comprising: S401, when it is determined that there is an associated fatigue action group in the current cycle, an adjustment factor of the associated fatigue action group in the current cycle is determined according to a preset associated fatigue action group-adjustment factor.

[0061] Specifically, the preset associated fatigue action group-adjustment factor is set according to the actual situation, that is, it is set according to the fatigue severity reflected by the combination of two fatigue actions, specifically: The adjustment factor of (eyes closed, nodding) is a, the adjustment factor of (eyes closed, yawning) is b, and the adjustment factor of (yawning, nodding) is c, where a is greater than b, b is greater than c, and a>b>c≥1. For example, a is set to 1.5, b is set to 1.2, and c is set to 1.

[0062] S402, when calculating the target fatigue value, based on the weighted sum of the eye fatigue value, the mouth fatigue value and the head fatigue value, the weighted sum of the fatigue values ​​corresponding to the two fatigue actions in the associated state fatigue group is multiplied by the adjustment factor to obtain the target fatigue value.

[0063] Specifically, when the associated state fatigue group is (eyes closed, head nodding), the target fatigue value is calculated according to the following formula: ; Where a is the adjustment factor for the associated state fatigue group.

[0064] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages: When calculating the target fatigue value, by introducing the associated state fatigue group, the driver's fatigue level in the current cycle can be evaluated more accurately, especially when multiple fatigue actions occur at the same time; the weighted sum of the corresponding fatigue values ​​in the target fatigue value is dynamically adjusted according to the adjustment factor of the associated fatigue action group, so that the assessment of driver fatigue is more in line with the actual situation; by considering the degree of correlation between fatigue actions, the situation where two fatigue actions occur at the same time, resulting in their corresponding fatigue values ​​being unclear and thus making the final target fatigue value lower, is avoided. The introduction of the adjustment factor to compensate for this defect helps to improve the accuracy of fatigue driving warning.

[0065] Embodiment 4: Since different drivers have different driving habits or fatigue habits, a targeted and personalized fatigue driving warning method is needed, and different warning modes are used for different drivers. This function is not reflected in the above embodiments.

[0066] Therefore, the embodiments of the present application are optimized to a certain extent based on the above embodiments.

[0067] In some embodiments, before step S104, the method further includes: C1. Obtain the driver's historical fatigue driving information and extract key information sets, including the historical periods determined to be fatigue driving, the corresponding associated fatigue action groups and their corresponding personal habit fatigue characteristics, and the driving time type.

[0068] Among them, the historical fatigue driving information can be set as periodic detection information of several historical driving routes. It can be understood that each complete historical driving route includes several historical cycles, and each historical cycle is assigned a label of fatigue driving or non-fatigue driving.

[0069] The driving time type is expressed as [driving time interval, driving time attribute]. The driving time interval (in hours) includes [0,1], [1,2.5], and [2.5,4]. This interval is divided according to historical driving experience and can also be adjusted according to actual conditions. The driving time attributes include night, early morning, and daytime.

[0070] In some embodiments, the method of obtaining the personal habit fatigue feature includes: D1. Based on the key information set, for each driving time type, all associated frame sequences corresponding to all the same associated fatigue action groups are extracted. The associated frame sequences are determined as: frame images collected during the time period of overlapping time nodes between two sequences corresponding to each associated fatigue action group, as well as a preset number of frame images before the start frame and a preset number of frame images after the end frame.

[0071] D2. Input the associated frame sequence into the pre-trained habitual fatigue motion model, and output the habitual fatigue motion of each frame image in the associated frame sequence.

[0072] Among them, the pre-trained habit fatigue action model is trained using a preset training set, and the training set includes a large number of driving images marked with habit fatigue action labels. For example, the habit fatigue action labels may be hand shaking, face dragging, etc. The present invention does not limit or elaborate on this content.

[0073] D3. Count the number of each habitual fatigue action in the associated frame sequence, obtain the occurrence frequency of each habitual fatigue action, sort the occurrence frequencies from high to low, and determine the habitual fatigue actions with a preset proportion at the front as the personal habitual fatigue characteristics of the corresponding associated fatigue action group in the corresponding driving time type.

[0074] C2. Based on the associated information set, a fatigue feature set is constructed, including driving time type, associated fatigue action group, and personal habit fatigue features.

[0075] It should be noted that the driving time type and the associated fatigue action group present a one-to-one or one-to-many relationship, and the associated fatigue action group and the personal habit fatigue characteristics present a one-to-one or one-to-many relationship.

[0076] In some embodiments, after obtaining the target fatigue value in step S104, the method further includes: controlling the warning mode of the early warning device according to the target fatigue value, specifically including: S501, if the target fatigue value is greater than the fatigue threshold, obtain the associated fatigue action group of the current cycle and its corresponding action frame sequence, and the driving time type to which the current cycle belongs.

[0077] The action frame sequence of the associated fatigue action group of the current cycle is determined as: frame images collected within the time period of overlapping time nodes between two sequences corresponding to the associated fatigue action group and a preset number of frame images before the start frame.

[0078] S502, using the driving time type of the current cycle and the associated fatigue action group, traverse the fatigue feature set to obtain at least one personal habit fatigue feature, and determine it as a reference fatigue feature.

[0079] S503, inputting the action frame sequence of the current cycle into the pre-trained habit fatigue action model, outputting the habit fatigue action of each frame image in the action frame sequence, and determining all the habit fatigue actions as the personal habit fatigue features of the current cycle.

[0080] S504, based on all personal habit fatigue features in the action frame sequence, traverse the reference fatigue features to obtain a fatigue feature hit rate: the number of hit reference fatigue features / the total number of reference fatigue features.

[0081] In some embodiments, controlling the early warning device to issue an alert further includes: S601: If the fatigue feature hit rate is 0, or there is no associated fatigue action group in the current cycle, the warning device is controlled to execute the primary warning mode.

[0082] S602: If the fatigue feature hit rate is in the first interval, the warning device is controlled to execute the first level warning mode.

[0083] S603: If the fatigue feature hit rate is in the second interval, the warning device is controlled to execute the second-level warning mode.

[0084] The first interval is set to [0,50%], and the second interval is set to (50%,100%], which can be adjusted according to actual conditions.

[0085] Specifically, the primary warning mode includes: the volume of the voice broadcast device and the brightness of the warning light device are set to level 1; the first-level warning mode includes: the volume of the voice broadcast device and the brightness of the warning light device are set to level 2; the second-level warning mode includes: the volume of the voice broadcast device and the brightness of the warning light device are set to level 3. Among them, level 1 is smaller than level 2, and level 2 is smaller than level 3.

[0086] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages: By introducing personal habit fatigue characteristics, combining driving time types and associated fatigue action groups, a fatigue feature set personalized for the driver is constructed. When the target fatigue value triggers fatigue, the driver's personal habit fatigue characteristics in the current cycle are mined based on the fatigue feature set, so as to select the warning mode, thereby improving the accuracy and pertinence of fatigue warning; according to the driver's personal habit fatigue characteristics and current fatigue status, the warning equipment is controlled to execute different levels of warning modes, realizing personalized and precise warning for the driver; through more accurate fatigue detection and personalized warning, the driver can be more effectively reminded to pay attention to rest and avoid fatigue driving, thereby improving driving safety.

[0087] Furthermore, an embodiment of the present invention also provides a fatigue driving warning system based on an AI algorithm.

[0088] Figure 2 It is a structural schematic diagram of a fatigue driving warning system based on an AI algorithm according to an embodiment of the present invention.

[0089] like Figure 2 As shown, a fatigue driving warning system based on AI algorithm includes: an acquisition module, a classification module, an analysis module and a warning module.

[0090] An acquisition module, used to obtain the driver's facial image transmitted by the vehicle-mounted acquisition device at a preset period, and extract the eye image, mouth image and head position information of the facial image; A classification module is used to input the eye images, mouth images and head position information of all time nodes in the cycle into a pre-trained classifier to obtain a state label corresponding to each time node; An analysis module is used to extract all continuous frame eye closing sequences, continuous frame mouth opening sequences, and continuous frame rising and falling sequences according to the state label of each time node, obtain the fatigue credibility of each sequence, and determine the eye fatigue value, mouth fatigue value, and head fatigue value according to all fatigue credibility; The early warning module is used to perform weighted summation of eye fatigue values, mouth fatigue values ​​and head fatigue values ​​to obtain a target fatigue value. If the target fatigue value is greater than the fatigue threshold, the early warning device is controlled to issue an alarm.

[0091] It should be noted that other specific implementation contents of the fatigue driving warning system based on the AI ​​algorithm of the embodiment of the present invention can refer to the above-mentioned fatigue driving warning method based on the AI ​​algorithm.

[0092] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A fatigue driving warning method based on AI algorithm, It is characterized in that The method comprises: S101, obtaining a facial image of the driver transmitted by the vehicle-mounted acquisition device at a preset period, and extracting eye images, mouth images and head position information of the facial image; S102, inputting the eye images, mouth images and head position information of all time nodes in the cycle into the pre-trained classifiers to obtain the state label corresponding to each time node; wherein the pre-trained classifiers include an eye classifier, a mouth classifier and a head position classifier, which are respectively used to output the corresponding state labels: eyes open / eyes closed, mouth open / mouth closed, head up / head down; S103, extracting all continuous frame eye closing sequences, continuous frame mouth opening sequences, and continuous frame rising and falling sequences according to the state label of each time node, obtaining fatigue credibility of each sequence, and determining eye fatigue value, mouth fatigue value, and head fatigue value according to all fatigue credibility; S104, performing weighted summation on the eye fatigue value, the mouth fatigue value and the head fatigue value to obtain a target fatigue value. If the target fatigue value is greater than the fatigue threshold, the warning mode of the early warning device is controlled.

2. The fatigue driving warning method based on AI algorithm as claimed in claim 1, It is characterized in that The step of extracting all the continuous frame eye-closing sequences and obtaining the fatigue credibility of each sequence includes: Based on each continuous frame eye closure sequence, the aspect ratios of a preset number of continuous frame eye images before the start frame are obtained, and the fatigue credibility of the continuous frame eye closure sequence is calculated according to the following formula: ; in, is the fatigue credibility of the continuous frame eye closure sequence, is the number of frames in the continuous frame eye-closing sequence, n is the total number of frames of the facial image in the current cycle, f is the eyelid drooping change value of the continuous frame eye-closing sequence, N is the preset number, is the aspect ratio of the i+1th eye image among the preset number of consecutive frames of eye images before the start frame, is the aspect ratio of the ith eye image among a preset number of consecutive frames of eye images before the start frame; The extraction of all continuous frame mouth opening sequences to obtain the fatigue credibility of each sequence includes: Based on each continuous frame mouth opening sequence, the aspect ratio of each frame mouth image is obtained, and the ratio of the number of frames whose mouth image aspect ratio is continuously greater than a preset threshold to the number of frames in the continuous frame mouth opening sequence is used as the fatigue credibility of the continuous frame mouth opening sequence.

3. The fatigue driving warning method based on AI algorithm as claimed in claim 2, It is characterized in that Before S101, the method further includes: When the driver starts the vehicle, the driver is guided to look directly at the on-board acquisition device according to the prompt information pre-set in the on-board acquisition device, a facial image of the driver in a normal state is obtained, and the eye image, mouth image and head position information are extracted as the standard eye aspect ratio, mouth standard aspect ratio and head standard position information of the driver respectively; The extraction of all continuous frame rise and fall sequences to obtain the fatigue credibility of each sequence includes: A1. Obtaining standard head position information of the driver; A2. Based on each continuous frame ascending and descending sequence, the maximum and minimum values ​​of the head position information are obtained, and the fatigue credibility of the continuous frame ascending and descending sequence is calculated according to the following formula: ; in, is the fatigue credibility of the continuous frame rise and fall sequence, is the maximum value of the head position information in the rising and falling sequence of the continuous frames, is the minimum value of the head position information in the ascending and descending sequence of the continuous frames, It is the standard position information of the driver's head.

4. The fatigue driving warning method based on AI algorithm as claimed in claim 3, It is characterized in that The step of determining the eye fatigue value, the mouth fatigue value and the head fatigue value according to all fatigue credibility comprises: B1. Based on all the continuous frame eye closure sequences, a sequence whose fatigue credibility is greater than a first threshold is determined as a first sequence, and an eye fatigue value is calculated according to the total number of frames of eye images collected in the current cycle, the sum of the number of frames in all first sequences, and the number of first sequences; B2. Based on all continuous mouth opening sequences, a sequence whose fatigue credibility is greater than a second threshold is determined as a second sequence, and a mouth fatigue value is calculated according to the total number of mouth images collected in the current cycle, the sum of the number of frames in all second sequences, and the number of second sequences; B3. Based on all continuous frame rising and falling sequences, a sequence whose fatigue credibility is greater than a third threshold is determined as a third sequence, and a head fatigue value is calculated according to the total number of frames of facial images collected in the current cycle, the sum of the number of frames in all third sequences, and the number of third sequences.

5. The fatigue driving warning method based on AI algorithm as claimed in claim 4, It is characterized in that The eye fatigue value, mouth fatigue value and head fatigue value are weightedly summed to obtain a target fatigue value, which is specifically calculated according to the following formula: ; ; in, is the target fatigue value, is the eye fatigue value of the current cycle, is the mouth fatigue value of the current cycle, is the head fatigue value of the current cycle, w1, w2, and w3 are the influence weights of the eye fatigue value, mouth fatigue value, and head fatigue value, respectively, n1 is the number of eye images collected in the current cycle, and n2 is the total number of face images collected in the current cycle. is the number of the first sequence, is the eyelid droop change value of the jth first sequence, is the difference between the average value of the aspect ratios of the eye images of a preset number of consecutive frames before the start frame of the first sequence and the standard aspect ratio of the eye, is the number of the second sequence, is the number of the third sequence.

6. The fatigue driving warning method based on AI algorithm as claimed in claim 4, It is characterized in that In the above B1, the method for determining the eye fatigue value further includes: S201, based on all first sequences sorted in the order of acquisition time in the current cycle, according to the change of the number of frames between all adjacent first sequences and the change of the eyelid ptosis change value, obtain the eye fatigue duration value; The effective eye fatigue duration value can be obtained only when the number of frames of the next first sequence increases relative to the previous first sequence, or the change in the eyelid drooping value decreases, otherwise, it is 0; S202, summing the eye fatigue value and the corresponding eye fatigue duration value to obtain a new eye fatigue value to replace the original eye fatigue value.

7. The fatigue driving warning method based on AI algorithm as claimed in claim 5, It is characterized in that Before S104, the method further includes: S301, obtaining all first sequences, second sequences and third sequences in the current period, comparing the time nodes of each frame in each sequence, and obtaining sequences with overlapping time nodes; S302, determining an associated fatigue action group according to two sequences whose time node overlap rate is greater than an overlap threshold and whose overlap rate is the highest, wherein the associated fatigue action group includes fatigue actions corresponding to the two sequences, wherein the fatigue action corresponding to the first sequence is closing eyes, the fatigue action corresponding to the second sequence is yawning, and the fatigue action corresponding to the third sequence is nodding; In the step S104, the eye fatigue value, the mouth fatigue value and the head fatigue value are weighted and summed to obtain a target fatigue value, and the method further includes: S401, when it is determined that there is an associated fatigue action group in the current cycle, an adjustment factor of the associated fatigue action group in the current cycle is determined according to a preset associated fatigue action group-adjustment factor; S402, when calculating the target fatigue value, based on the weighted sum of the eye fatigue value, the mouth fatigue value and the head fatigue value, the weighted sum of the fatigue values ​​corresponding to the two fatigue actions in the associated state fatigue group is multiplied by the adjustment factor to obtain the target fatigue value.

8. The fatigue driving warning method based on AI algorithm as claimed in claim 7, It is characterized in that The method further comprises: C1. Obtain the driver's historical fatigue driving information and extract key information sets, including the historical period determined as fatigue driving, the corresponding associated fatigue action group and its corresponding personal habit fatigue characteristics, and the driving time type; the driving time type is expressed as [driving time interval, driving time attribute]; C2. Based on the associated information set, a fatigue feature set is constructed, including driving time type, associated fatigue action group, and personal habit fatigue feature; The method of obtaining the personal habit fatigue characteristics includes: D1. Based on the key information set, for each driving time type, all associated frame sequences corresponding to all the same associated fatigue action groups are extracted. The associated frame sequences are determined as: frame images collected during the time period of overlapping time nodes between two sequences corresponding to each associated fatigue action group, as well as a preset number of frame images before the start frame and a preset number of frame images after the end frame; D2, inputting the associated frame sequence into the pre-trained habit fatigue motion model, and outputting the habit fatigue motion of each frame image in the associated frame sequence; D3. Count the number of each habitual fatigue action in the associated frame sequence, obtain the occurrence frequency of each habitual fatigue action, sort the occurrence frequencies from high to low, and determine the habitual fatigue actions with a preset proportion at the front as the personal habitual fatigue characteristics of the corresponding associated fatigue action group in the corresponding driving time type.

9. The fatigue driving warning method based on AI algorithm as claimed in claim 8, It is characterized in that In the step S104, after obtaining the target fatigue value, the method further includes: controlling the warning mode of the early warning device according to the target fatigue value, specifically including: S501, if the target fatigue value is greater than the fatigue threshold, obtain the associated fatigue action group of the current cycle and its corresponding action frame sequence, and the driving time type to which the current cycle belongs; the action frame sequence is determined as: frame images collected within the time period of overlapping time nodes between two sequences corresponding to the associated fatigue action group and a preset number of frame images before the start frame; S502, using the driving time type of the current cycle and the associated fatigue action group, traverse the fatigue feature set to obtain at least one personal habit fatigue feature, and determine it as a reference fatigue feature; S503, inputting the action frame sequence of the current cycle into the pre-trained habit fatigue action model, outputting the habit fatigue action of each frame image in the action frame sequence, and determining all the habit fatigue actions as the personal habit fatigue features of the current cycle; S504, based on all personal habit fatigue features in the action frame sequence, traverse the reference fatigue features to obtain a fatigue feature hit rate: the number of reference fatigue features hit / the total number of reference fatigue features; The warning mode of the control early warning device includes: S601, if the fatigue feature hit rate is 0, or there is no associated fatigue action group in the current cycle, the warning device is controlled to execute the primary warning mode; S602, if the fatigue feature hit rate is in the first interval, controlling the warning device to execute the first level warning mode; S603: If the fatigue feature hit rate is in the second interval, the warning device is controlled to execute the second-level warning mode.

10. A fatigue driving warning system based on an AI algorithm, applied to a fatigue driving warning method based on an AI algorithm as claimed in any one of claims 1 to 9, It is characterized in that The system comprises: An acquisition module, used to obtain the driver's facial image transmitted by the vehicle-mounted acquisition device at a preset period, and extract the eye image, mouth image and head position information of the facial image; A classification module is used to input the eye images, mouth images and head position information of all time nodes in the cycle into a pre-trained classifier to obtain a state label corresponding to each time node; An analysis module is used to extract all continuous frame eye closing sequences, continuous frame mouth opening sequences, and continuous frame rising and falling sequences according to the state label of each time node, obtain the fatigue credibility of each sequence, and determine the eye fatigue value, mouth fatigue value, and head fatigue value according to all fatigue credibility; The early warning module is used to perform weighted summation of eye fatigue values, mouth fatigue values ​​and head fatigue values ​​to obtain a target fatigue value. If the target fatigue value is greater than a fatigue threshold, the warning mode of the early warning device is controlled.

Citation Information

Patent Citations

  • Fatigue driving detection method and system based on machine learning and multi-feature fusion

    CN110532976A

  • Bus driver fatigue parameter compensation and double-track parallel detection method

    CN115359462A

  • Fatigue detection method and device for operator in master control room of nuclear power plant

    CN118485963A

  • Fatigue driving detection method based on face recognition

    CN118506330A

  • Driving state detection method and apparatus, driver monitoring system, and vehicle

    WO2020078464A1