Driver fatigue early warning method and system
Through real-time detection and analysis of the driver's physiological data and facial images, the fatigue detection model is trained, which solves the problem of the inability of the existing technology to provide accurate early warning, achieves full monitoring and accurate early warning of the driver's fatigue status, and improves driving safety. .
Patent Information
- Application Number
- CN202410712637.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-24
AI Technical Summary
Existing technology cannot effectively monitor whether drivers have abnormal phenomena during normal driving periods, resulting in the inability to accurately issue fatigue warnings, which poses hidden dangers.
By detecting the driver's original physiological data and facial images in real time, matching the corresponding fatigue level data, and training the fatigue detection model based on preset rules, the driver's fatigue level can be determined in real time and an early warning issued.
It achieves full detection and accurate early warning of driver fatigue status, eliminates hidden dangers, and ensures driver safety during driving.
Smart Images

Figure CN118692209A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automobile technology, and in particular to a driver fatigue early warning method and system. Background Art
[0002] With the advancement of science and technology and the rapid development of productivity, cars have become popular in people's daily lives and have become one of the indispensable means of transportation for people's daily travel, greatly facilitating people's lives.
[0003] Among them, when the driver is driving for a long time or with high intensity, the driver's physiological and psychological factors will change, which will cause the driver's attention to decrease, and he may become slow to react or even make mistakes in judgment.
[0004] Furthermore, in order to monitor the driver's driving behavior, most of the existing technologies record the driver's driving time and send a corresponding warning message to the driver after the driving time reaches a certain value, so that the driver can stop and rest. However, this warning method cannot effectively monitor whether the driver has any abnormal phenomena during the normal driving time period, and thus cannot accurately send the corresponding warning information, resulting in certain hidden dangers. Summary of the invention
[0005] Based on this, the purpose of the present invention is to provide a driver fatigue warning method and system to solve the problem that the prior art cannot effectively monitor whether the driver has abnormal phenomena during the normal driving time period, resulting in the inability to accurately issue corresponding warning information.
[0006] The first aspect of the embodiment of the present invention proposes:
[0007] A driver fatigue warning method, wherein the method comprises:
[0008] When it is detected in real time that the driver starts the target vehicle, the original physiological data corresponding to the driver is acquired in real time through a preset acquisition device;
[0009] Matching fatigue level data corresponding to the driver in real time in a preset database, and training a corresponding fatigue detection model in real time according to the fatigue level data and the original physiological data based on preset rules;
[0010] When it is detected in real time that the driver is in a driving state, real-time physiological data corresponding to the driver is collected in real time by the preset collection device;
[0011] The real-time physiological data is input into the fatigue detection model, and the fatigue degree of the driver is determined in real time through the fatigue detection model, so as to issue a corresponding warning according to the fatigue degree.
[0012] The beneficial effect of the present invention is that by collecting the original physiological data generated by the driver when starting the vehicle in real time, the driver's initial physical state can be obtained accordingly. Furthermore, a fatigue detection model adapted to the current driver can be trained accordingly. Based on this, during the driver's real-time driving of the vehicle, it is only necessary to collect the driver's real-time physiological data in real time to judge the driver's fatigue level in real time, and finally judge whether an early warning is needed, thereby being able to detect the driver's fatigue state throughout the entire process, and issue accurate early warning information, eliminating hidden dangers.
[0013] Furthermore, the step of matching the fatigue level data corresponding to the driver in real time in the preset database includes:
[0014] When it is detected in real time that the driver starts the target vehicle, a facial image corresponding to the driver is collected in real time;
[0015] Matching the personnel information corresponding to the driver in real time in the preset database according to the facial image, the personnel information including the target age corresponding to the driver;
[0016] The fatigue level data corresponding to the driver is matched in real time in the preset database according to the target age.
[0017] Furthermore, the step of matching fatigue level data corresponding to the driver in real time in the preset database according to the target age includes:
[0018] When the target age corresponding to the driver is obtained in real time, a fatigue level monitoring table adapted to the target age is called out in real time in the preset database;
[0019] Detecting in real time several age thresholds included in the fatigue level monitoring table, and detecting in real time a target age threshold corresponding to the driver according to the target age;
[0020] The target data corresponding to the target age threshold is matched in real time in the preset database, and the target data is set as the fatigue level data corresponding to the driver.
[0021] Furthermore, the step of training a corresponding fatigue detection model in real time according to the fatigue degree data and the original physiological data based on preset rules includes:
[0022] When the fatigue degree data and the original physiological data are respectively acquired, the fatigue degree data and the original physiological data are fused to obtain a corresponding target data set in real time;
[0023] The target neural network adapted to the target data set is called out in real time from the preset algorithm database, and the fatigue detection model is trained accordingly according to the target data set and the target neural network.
[0024] Furthermore, the step of fusing the fatigue degree data and the original physiological data to fuse a corresponding target data set in real time includes:
[0025] When the fatigue degree data is acquired in real time, a first character string contained in the fatigue degree data is detected in real time, and a plurality of first characteristic values contained in the first character string are extracted in sequence;
[0026] When the original physiological data is acquired in real time, a second character string contained in the original physiological data is detected in real time, and a plurality of second characteristic values contained in the second character string are extracted in sequence;
[0027] The target data set is correspondingly fused according to a plurality of the first characteristic values and a plurality of the second characteristic values, and both the first character string and the second character string are unique.
[0028] Furthermore, the step of fusing the target data set according to the first eigenvalues and the second eigenvalues includes:
[0029] When a plurality of the first characteristic values are obtained, a corresponding first identifier is added to each of the first characteristic values in turn;
[0030] When a plurality of the second characteristic values are obtained, a corresponding second identifier is added to each of the second characteristic values in turn;
[0031] According to the first identifier and the second identifier, a plurality of the first characteristic values and a plurality of the second characteristic values are interspersed and spliced to generate the target data set accordingly, and the target data set is unique.
[0032] Furthermore, the step of training the fatigue detection model according to the target data set and the target neural network includes:
[0033] When the target data set is acquired in real time, the target data set is split into a corresponding training set and a validation set, and the target neural network is trained into a corresponding initial detection model through the training set;
[0034] The target loss function adapted to the initial detection model is determined in real time according to the verification set, and the fatigue detection model is trained according to the target loss function and the initial detection model.
[0035] The second aspect of the embodiment of the present invention proposes:
[0036] A driver fatigue warning system, wherein the system comprises:
[0037] A collection module, used for acquiring raw physiological data corresponding to the driver in real time through a preset collection device when it is detected in real time that the driver starts the target vehicle;
[0038] A training module, used to match fatigue degree data corresponding to the driver in a preset database in real time, and train a corresponding fatigue detection model in real time according to the fatigue degree data and the original physiological data based on preset rules;
[0039] A processing module, configured to collect real-time physiological data corresponding to the driver through the preset collection device in real time when it is detected in real time that the driver is in a driving state;
[0040] The judgment module is used to input the real-time physiological data into the fatigue detection model, and judge the driver's fatigue level in real time through the fatigue detection model, so as to issue a corresponding warning according to the fatigue level.
[0041] Furthermore, the training module is specifically used for:
[0042] When it is detected in real time that the driver starts the target vehicle, a facial image corresponding to the driver is collected in real time;
[0043] Matching the personnel information corresponding to the driver in real time in the preset database according to the facial image, the personnel information including the target age corresponding to the driver;
[0044] The fatigue level data corresponding to the driver is matched in real time in the preset database according to the target age.
[0045] Furthermore, the training module is also specifically used for:
[0046] When the target age corresponding to the driver is obtained in real time, a fatigue level monitoring table adapted to the target age is called out in real time in the preset database;
[0047] Detecting in real time several age thresholds included in the fatigue level monitoring table, and detecting in real time a target age threshold corresponding to the driver according to the target age;
[0048] The target data corresponding to the target age threshold is matched in real time in the preset database, and the target data is set as the fatigue level data corresponding to the driver.
[0049] Furthermore, the training module is specifically used for:
[0050] When the fatigue degree data and the original physiological data are respectively acquired, the fatigue degree data and the original physiological data are fused to obtain a corresponding target data set in real time;
[0051] The target neural network adapted to the target data set is called out in real time from the preset algorithm database, and the fatigue detection model is trained accordingly according to the target data set and the target neural network.
[0052] Furthermore, the training module is also specifically used for:
[0053] When the fatigue degree data is acquired in real time, a first character string contained in the fatigue degree data is detected in real time, and a plurality of first characteristic values contained in the first character string are extracted in sequence;
[0054] When the original physiological data is acquired in real time, a second character string contained in the original physiological data is detected in real time, and a plurality of second characteristic values contained in the second character string are extracted in sequence;
[0055] The target data set is correspondingly fused according to a plurality of the first characteristic values and a plurality of the second characteristic values, and both the first character string and the second character string are unique.
[0056] Furthermore, the training module is also specifically used for:
[0057] When a plurality of the first characteristic values are obtained, a corresponding first identifier is added to each of the first characteristic values in turn;
[0058] When a plurality of the second characteristic values are obtained, a corresponding second identifier is added to each of the second characteristic values in turn;
[0059] According to the first identifier and the second identifier, a plurality of the first characteristic values and a plurality of the second characteristic values are interspersed and spliced to generate the target data set accordingly, and the target data set is unique.
[0060] Furthermore, the training module is also specifically used for:
[0061] When the target data set is acquired in real time, the target data set is split into a corresponding training set and a validation set, and the target neural network is trained into a corresponding initial detection model through the training set;
[0062] The target loss function adapted to the initial detection model is determined in real time according to the verification set, and the fatigue detection model is trained according to the target loss function and the initial detection model.
[0063] The third aspect of the embodiment of the present invention proposes:
[0064] A computer comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the driver fatigue warning method as described above when executing the computer program.
[0065] The fourth aspect of the embodiments of the present invention proposes:
[0066] A readable storage medium stores a computer program, wherein the program, when executed by a processor, implements the driver fatigue warning method as described above.
[0067] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 A flowchart of a driver fatigue warning method provided by a first embodiment of the present invention;
[0069] Figure 2 This is a structural block diagram of a driver fatigue warning system provided in the third embodiment of the present invention.
[0070] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0071] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, 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 make the disclosure of the present invention more thorough and comprehensive.
[0072] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.
[0073] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein 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.
[0074] See also Figure 1 , shown is a driver fatigue warning method provided by the first embodiment of the present invention. The driver fatigue warning method provided by this embodiment can determine the driver's fatigue level in real time, and ultimately determine whether a warning is needed, thereby being able to detect the driver's fatigue state throughout the entire process and issue accurate warning information, eliminating hidden dangers.
[0075] Specifically, this embodiment provides:
[0076] A driver fatigue warning method specifically comprises the following steps:
[0077] Step S10, when it is detected in real time that the driver starts the target vehicle, the original physiological data corresponding to the driver is acquired in real time through a preset acquisition device;
[0078] Step S20, matching fatigue level data corresponding to the driver in real time in a preset database, and training a corresponding fatigue detection model in real time according to the fatigue level data and the original physiological data based on preset rules;
[0079] Step S30, when it is detected in real time that the driver is in a driving state, real-time physiological data corresponding to the driver is collected in real time by the preset collection device;
[0080] Step S40, inputting the real-time physiological data into the fatigue detection model, and determining the driver's fatigue level in real time through the fatigue detection model, so as to issue a corresponding warning according to the fatigue level.
[0081] Specifically, in this embodiment, it should be noted that, in order to objectively and in real time detect the driver's fatigue state, it is necessary to understand the driver's physical state in real time, and further make corresponding judgments according to the driver's physical changes. Based on this, in order to form a comparison benchmark, specifically, in the actual application process, when the driver is detected to start the vehicle in real time, the original physiological data of the current driver, that is, the physiological data of the body in a normal state, can be collected immediately through the pre-set physiological parameter monitoring device. Further, in order to be able to detect the current driver's physical state in real time during the subsequent process of the driver driving the vehicle, it is necessary to construct a fatigue detection model that can make real-time judgments. Based on this, it is necessary to further match the fatigue degree data corresponding to the current driver in real time in the pre-set database, wherein it should be pointed out that due to the different ages of the drivers, the corresponding physiological data generated under the same driving time will also be different. Based on this, it is necessary to match the fatigue degree data that can be referenced according to the actual physical condition of the current driver. Further, according to the pre-set training rules, the above fatigue detection model can be further trained on the basis of the above fatigue degree data and the original physiological data.
[0082] Furthermore, after detecting in real time that the above-mentioned driver is in a driving state, corresponding detection and judgment are required at this time. Specifically, the real-time physiological data of the current driver will be further collected in real time through the above-mentioned physiological parameter monitoring device. At the same time, the real-time physiological data will be input into the above-mentioned fatigue detection model. On this basis, the current fatigue monitoring model can calculate the real-time fatigue level of the current driver according to the received real-time physiological data, and finally judge in real time whether it is necessary to issue a corresponding fatigue warning to the current driver according to the size of the real-time fatigue level, so as to effectively detect the driver's fatigue state throughout the process, and issue corresponding warning information in a timely and effective manner, thereby eliminating hidden dangers.
[0083] Second embodiment
[0084] Furthermore, the step of matching the fatigue level data corresponding to the driver in real time in the preset database includes:
[0085] When it is detected in real time that the driver starts the target vehicle, a facial image corresponding to the driver is collected in real time;
[0086] Matching the personnel information corresponding to the driver in real time in the preset database according to the facial image, the personnel information including the target age corresponding to the driver;
[0087] The fatigue level data corresponding to the driver is matched in real time in the preset database according to the target age.
[0088] Furthermore, the step of matching fatigue level data corresponding to the driver in real time in the preset database according to the target age includes:
[0089] When the target age corresponding to the driver is obtained in real time, a fatigue level monitoring table adapted to the target age is called out in real time in the preset database;
[0090] Detecting in real time several age thresholds included in the fatigue level monitoring table, and detecting in real time a target age threshold corresponding to the driver according to the target age;
[0091] The target data corresponding to the target age threshold is matched in real time in the preset database, and the target data is set as the fatigue level data corresponding to the driver.
[0092] Furthermore, the step of training a corresponding fatigue detection model in real time according to the fatigue degree data and the original physiological data based on preset rules includes:
[0093] When the fatigue degree data and the original physiological data are respectively acquired, the fatigue degree data and the original physiological data are fused to obtain a corresponding target data set in real time;
[0094] The target neural network adapted to the target data set is called out in real time from the preset algorithm database, and the fatigue detection model is trained accordingly according to the target data set and the target neural network.
[0095] Furthermore, the step of fusing the fatigue degree data and the original physiological data to fuse a corresponding target data set in real time includes:
[0096] When the fatigue degree data is acquired in real time, a first character string contained in the fatigue degree data is detected in real time, and a plurality of first characteristic values contained in the first character string are extracted in sequence;
[0097] When the original physiological data is acquired in real time, a second character string contained in the original physiological data is detected in real time, and a plurality of second characteristic values contained in the second character string are extracted in sequence;
[0098] The target data set is correspondingly fused according to a plurality of the first characteristic values and a plurality of the second characteristic values, and both the first character string and the second character string are unique.
[0099] Furthermore, the step of fusing the target data set according to the first eigenvalues and the second eigenvalues includes:
[0100] When a plurality of the first characteristic values are obtained, a corresponding first identifier is added to each of the first characteristic values in turn;
[0101] When a plurality of the second characteristic values are obtained, a corresponding second identifier is added to each of the second characteristic values in turn;
[0102] According to the first identifier and the second identifier, a plurality of the first characteristic values and a plurality of the second characteristic values are interspersed and spliced to generate the target data set accordingly, and the target data set is unique.
[0103] Furthermore, the step of training the fatigue detection model according to the target data set and the target neural network includes:
[0104] When the target data set is acquired in real time, the target data set is split into a corresponding training set and a validation set, and the target neural network is trained into a corresponding initial detection model through the training set;
[0105] The target loss function adapted to the initial detection model is determined in real time according to the verification set, and the fatigue detection model is trained according to the target loss function and the initial detection model.
[0106] In addition, in the present embodiment, it should be noted that after the required original physiological data is acquired in real time through the above steps, in order to be able to objectively and accurately match the fatigue level data that is adapted to the actual physical state of the current driver, the target age of the current driver can be further detected by real-time acquisition of the current driver's facial image, and the fatigue level monitoring table corresponding to the current target age can be further matched in real time in the above-mentioned preset database. Based on this, the fatigue level data that is ultimately adapted to the current driver can be finally determined in real time in the fatigue level monitoring table.
[0107] Furthermore, in order to quickly and accurately train the required fatigue detection model, it is necessary to first create a sample set and a verification set for training. Based on this, after obtaining the required fatigue level data and original physiological data respectively through the above steps, since it is necessary to combine the current two data in real time for subsequent training, it is necessary to detect the current fatigue level data at a deeper level. Several first eigenvalues contained in the data, correspondingly, several second eigenvalues contained in the current original physiological data can also be detected. On this basis, the current several first eigenvalues and several second eigenvalues are correspondingly spliced and interspersed, and can finally be merged into a whole, that is, the above-mentioned target data set. Furthermore, based on the current target data set, it is further divided into corresponding sample sets and verification sets, wherein the pre-set CNN (convolutional) neural network is trained accordingly through the current sample set, and the required initial detection model can be trained accordingly. On this basis, the current initial detection model needs to be further verified by the loss function calculated in real time by the above verification set, and after the final verification, the above fatigue detection model can be generated accordingly, and finally the subsequent judgment can be completed in real time through the fatigue detection model to facilitate subsequent processing.
[0108] See also Figure 2 , the third embodiment of the present invention provides:
[0109] A driver fatigue warning system, wherein the system comprises:
[0110] A collection module, used for acquiring raw physiological data corresponding to the driver in real time through a preset collection device when it is detected in real time that the driver starts the target vehicle;
[0111] A training module, used to match fatigue degree data corresponding to the driver in a preset database in real time, and train a corresponding fatigue detection model in real time according to the fatigue degree data and the original physiological data based on preset rules;
[0112] A processing module, configured to collect real-time physiological data corresponding to the driver through the preset collection device in real time when it is detected in real time that the driver is in a driving state;
[0113] The judgment module is used to input the real-time physiological data into the fatigue detection model, and judge the driver's fatigue level in real time through the fatigue detection model, so as to issue a corresponding warning according to the fatigue level.
[0114] Furthermore, the training module is specifically used for:
[0115] When it is detected in real time that the driver starts the target vehicle, a facial image corresponding to the driver is collected in real time;
[0116] Matching the personnel information corresponding to the driver in real time in the preset database according to the facial image, the personnel information including the target age corresponding to the driver;
[0117] The fatigue level data corresponding to the driver is matched in real time in the preset database according to the target age.
[0118] Furthermore, the training module is also specifically used for:
[0119] When the target age corresponding to the driver is obtained in real time, a fatigue level monitoring table adapted to the target age is called out in real time in the preset database;
[0120] Detecting in real time several age thresholds included in the fatigue level monitoring table, and detecting in real time a target age threshold corresponding to the driver according to the target age;
[0121] The target data corresponding to the target age threshold is matched in real time in the preset database, and the target data is set as the fatigue level data corresponding to the driver.
[0122] Furthermore, the training module is specifically used for:
[0123] When the fatigue degree data and the original physiological data are respectively acquired, the fatigue degree data and the original physiological data are fused to obtain a corresponding target data set in real time;
[0124] The target neural network adapted to the target data set is called out in real time from the preset algorithm database, and the fatigue detection model is trained accordingly according to the target data set and the target neural network.
[0125] Furthermore, the training module is also specifically used for:
[0126] When the fatigue degree data is acquired in real time, a first character string contained in the fatigue degree data is detected in real time, and a plurality of first characteristic values contained in the first character string are extracted in sequence;
[0127] When the original physiological data is acquired in real time, a second character string contained in the original physiological data is detected in real time, and a plurality of second characteristic values contained in the second character string are extracted in sequence;
[0128] The target data set is correspondingly fused according to a plurality of the first characteristic values and a plurality of the second characteristic values, and both the first character string and the second character string are unique.
[0129] Furthermore, the training module is also specifically used for:
[0130] When a plurality of the first characteristic values are obtained, a corresponding first identifier is added to each of the first characteristic values in turn;
[0131] When a plurality of the second characteristic values are obtained, a corresponding second identifier is added to each of the second characteristic values in turn;
[0132] According to the first identifier and the second identifier, a plurality of the first characteristic values and a plurality of the second characteristic values are interspersed and spliced to generate the target data set accordingly, and the target data set is unique.
[0133] Furthermore, the training module is also specifically used for:
[0134] When the target data set is acquired in real time, the target data set is split into a corresponding training set and a validation set, and the target neural network is trained into a corresponding initial detection model through the training set;
[0135] The target loss function adapted to the initial detection model is determined in real time according to the verification set, and the fatigue detection model is trained according to the target loss function and the initial detection model.
[0136] A fourth embodiment of the present invention provides a computer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the driver fatigue warning method as described above when executing the computer program.
[0137] A fifth embodiment of the present invention provides a readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the driver fatigue warning method as described above.
[0138] To sum up, the driver fatigue status warning method and system provided by the above embodiments of the present invention can determine the driver's fatigue level in real time, and ultimately determine whether a warning is needed, thereby being able to detect the driver's fatigue status throughout the entire process and issue accurate warning information, eliminating hidden dangers.
[0139] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0140] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0141] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0142] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0143] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0144] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A driver fatigue warning method, It is characterized in that The method comprises: When it is detected in real time that the driver starts the target vehicle, the original physiological data corresponding to the driver is acquired in real time through a preset acquisition device; Matching fatigue level data corresponding to the driver in real time in a preset database, and training a corresponding fatigue detection model in real time according to the fatigue level data and the original physiological data based on preset rules; When it is detected in real time that the driver is in a driving state, real-time physiological data corresponding to the driver is collected in real time by the preset collection device; The real-time physiological data is input into the fatigue detection model, and the fatigue degree of the driver is determined in real time through the fatigue detection model, so as to issue a corresponding warning according to the fatigue degree.
2. The driver fatigue warning method according to claim 1, Features: The step of matching the fatigue level data corresponding to the driver in real time in the preset database comprises: When it is detected in real time that the driver starts the target vehicle, a facial image corresponding to the driver is collected in real time; Matching the personnel information corresponding to the driver in real time in the preset database according to the facial image, the personnel information including the target age corresponding to the driver; The fatigue level data corresponding to the driver is matched in real time in the preset database according to the target age.
3. The driver fatigue warning method according to claim 2, Features: The step of matching the fatigue level data corresponding to the driver in real time in the preset database according to the target age includes: When the target age corresponding to the driver is obtained in real time, a fatigue level monitoring table adapted to the target age is called up in real time in the preset database; Detecting in real time several age thresholds included in the fatigue level monitoring table, and detecting in real time a target age threshold corresponding to the driver according to the target age; The target data corresponding to the target age threshold is matched in real time in the preset database, and the target data is set as the fatigue level data corresponding to the driver.
4. The driver fatigue warning method according to claim 1, Features: The step of training a corresponding fatigue detection model in real time according to the fatigue degree data and the original physiological data based on preset rules comprises: When the fatigue degree data and the original physiological data are respectively acquired, the fatigue degree data and the original physiological data are fused to obtain a corresponding target data set in real time; The target neural network adapted to the target data set is called out in real time from the preset algorithm database, and the fatigue detection model is trained accordingly according to the target data set and the target neural network.
5. The driver fatigue warning method according to claim 4, Features: The step of fusing the fatigue degree data and the original physiological data to fuse the corresponding target data set in real time includes: When the fatigue degree data is acquired in real time, a first character string contained in the fatigue degree data is detected in real time, and a plurality of first characteristic values contained in the first character string are extracted in sequence; When the original physiological data is acquired in real time, a second character string contained in the original physiological data is detected in real time, and a plurality of second characteristic values contained in the second character string are extracted in sequence; The target data set is correspondingly fused according to a plurality of the first characteristic values and a plurality of the second characteristic values, and both the first character string and the second character string are unique.
6. The driver fatigue warning method according to claim 5, Features: The step of correspondingly fusing the target data set according to the plurality of the first eigenvalues and the plurality of the second eigenvalues comprises: When a plurality of the first characteristic values are obtained, a corresponding first identifier is added to each of the first characteristic values in turn; When a plurality of the second characteristic values are obtained, a corresponding second identifier is added to each of the second characteristic values in turn; According to the first identifier and the second identifier, a plurality of the first characteristic values and a plurality of the second characteristic values are interspersed and spliced to generate the target data set accordingly, and the target data set is unique.
7. The driver fatigue warning method according to claim 6, Features: The step of training the fatigue detection model according to the target data set and the target neural network includes: When the target data set is acquired in real time, the target data set is split into a corresponding training set and a validation set, and the target neural network is trained into a corresponding initial detection model through the training set; The target loss function adapted to the initial detection model is determined in real time according to the verification set, and the fatigue detection model is trained according to the target loss function and the initial detection model.
8. A driver fatigue warning system, It is characterized in that The system comprises: A collection module, used for acquiring raw physiological data corresponding to the driver in real time through a preset collection device when it is detected in real time that the driver starts the target vehicle; A training module, used to match fatigue degree data corresponding to the driver in a preset database in real time, and train a corresponding fatigue detection model in real time according to the fatigue degree data and the original physiological data based on preset rules; A processing module, configured to collect real-time physiological data corresponding to the driver through the preset collection device in real time when it is detected in real time that the driver is in a driving state; The judgment module is used to input the real-time physiological data into the fatigue detection model, and judge the driver's fatigue level in real time through the fatigue detection model, so as to issue a corresponding warning according to the fatigue level.
9. A computer comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the driver fatigue warning method as described in any one of claims 1 to 7 is implemented.
10. A readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the driver fatigue warning method as described in any one of claims 1 to 7 is implemented.
