Method, device and equipment for quickly judging mental state of driver and medium

By obtaining and comparing the driver's sleep time and reaction time data, combined with the preset threshold, the driver's mental state can be quickly identified, solving the problem of difficulty in accurate detection in the existing technology, and reducing the occurrence of traffic accidents.

CN118787355APending Publication Date: 2024-10-18WUHAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410768419.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing technology is difficult to quickly and accurately determine the driver's mental state, resulting in a high proportion of traffic accidents caused by fatigue driving, and there is a lack of effective pre-job mental state detection methods.

Method used

By obtaining the driver's sleep time data and reaction time data, and comparing it with the preset time warning threshold, the driver's mental state is judged based on the comparison results. Sleep time and reaction time are used as discriminant indicators, and data standards are established to obtain Suggested warning thresholds are issued.

Benefits of technology

It achieves rapid and accurate judgment of the driver's mental state, reduces traffic accidents caused by fatigue, and improves the scientificity and effectiveness of traffic safety management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118787355A_ABST
    Figure CN118787355A_ABST
Patent Text Reader

Abstract

The invention discloses a method, a device and equipment for quickly judging the mental state of a driver and a medium. The method comprises the following steps: acquiring sleep time data of a target driver; responding to a reaction action of the target driver under the preset detection instruction, and obtaining reaction time data of the target driver; comparing the sleep time data and the response time data with a preset time early warning threshold value, and obtaining a sleep time state parameter and a response time state parameter according to a comparison result; and judging the sleep time state parameter and the reaction time state parameter based on a preset parameter condition to obtain a judgment result of the mental state of the target driver. According to the method, besides the sleep time index, the response time is adopted as the discrimination index, and the suggested early warning threshold value is obtained by establishing the data standard so as to carry out discrimination. The embodiment of the invention can quickly judge the mental state of the driver, and can be widely applied to the technical field of data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, equipment and medium for quickly distinguishing a driver's mental state. Background Art

[0002] Human factors account for the vast majority of the causes of various traffic accidents. Due to the special status of drivers in the traffic system, traffic accidents caused by drivers themselves account for about 80% of the total accidents, and traffic accidents caused by fatigue driving account for about 20% of the total accidents. Compared with on-the-job fatigue monitoring of drivers, on-the-job mental state identification can prevent drivers with potential fatigue driving risks from driving before leaving their jobs, thus helping to reduce the occurrence of traffic accidents caused by fatigue driving from the root.

[0003] Studies have shown that the main factors that affect drivers' unsafe driving behaviors include mental state factors, psychological factors, and physiological factors. Among them, mental state factors mainly include driver fatigue and distraction caused by fatigue, which will affect the driver's perception, processing, and decision-making ability of traffic signals and the environment. In the analysis of the causes of various traffic accidents, the number of traffic accidents caused by poor mental state of drivers remains high. Mental state factors are the primary factor affecting drivers' unsafe driving behaviors and the main cause of traffic accidents. At present, the study of drivers' mental state has become a hot topic in the field of traffic safety, and how to detect and judge the driver's mental state has become an urgent problem to be solved. Summary of the invention

[0004] The main purpose of the embodiments of the present invention is to propose a method, device, equipment and medium for quickly judging the mental state of a driver, in order to solve at least one problem of the prior art. The present invention can quickly judge the mental state of a driver.

[0005] To achieve the above object, one aspect of an embodiment of the present invention provides a method for quickly determining a driver's mental state, the method comprising:

[0006] Obtaining sleep time data of the target driver;

[0007] In response to the reaction action of the target driver under the preset detection instruction, obtaining the reaction time data of the target driver;

[0008] The sleep time data and the reaction time data are compared with the preset time warning threshold, and the sleep time state parameter and the reaction time state parameter are obtained according to the comparison result; the time warning threshold includes a sleep time warning threshold and a reaction time warning threshold, the sleep time warning threshold is set based on the historical sleep time data of the target driver, and the reaction time warning threshold is set based on the reaction time mean of the historical reaction time data of drivers of different age groups;

[0009] The sleep time state parameter and the reaction time state parameter are judged based on the preset parameter conditions to obtain the judgment result of the mental state of the target driver.

[0010] In some embodiments, obtaining the sleep time data of the target driver includes:

[0011] Acquire a sleep input signal of the target driver; the sleep input signal includes a sleeping time and a waking time;

[0012] The sleep time data of the target driver is obtained based on the time difference between the waking time and the sleeping time.

[0013] In some embodiments, the reaction time includes simple reaction time, selection reaction time and auditory reaction time; in response to the reaction action of the target driver under the preset detection instruction, the reaction time data of the target driver is obtained, including:

[0014] Displaying a first exhibit to a target driver at a random time point within a first time range, thereby obtaining a first receiving instruction from the target driver; obtaining a simple reaction time according to a time difference between a time when the first receiving instruction is obtained and a time when the first exhibit is displayed;

[0015] Displaying the first exhibit or the second exhibit to the target driver at a random time point within the second time range, thereby obtaining a selection instruction of the target driver; obtaining a selection reaction time according to a time difference between a time when the selection instruction is obtained and a time when the first exhibit or the second exhibit is displayed;

[0016] A buzzer sound is emitted to the target driver at a random time node within the third time range, thereby obtaining a second receiving instruction of the target driver; and the auditory reaction time is obtained according to the time difference between the acquisition time of the second receiving instruction and the emission time of the buzzer sound.

[0017] In some embodiments, the method further comprises:

[0018] Acquiring the historical sleep time data of the target driver and the historical reaction time data of a preset number of drivers in different age groups;

[0019] grouping the historical reaction time data based on age groups;

[0020] Based on the historical sleep time data of the target driver, the sleep time warning threshold of the target driver is obtained by setting a preset rule;

[0021] Based on a preset reaction time warning threshold parameter, a first redundant processing is performed on the reaction time mean of the historical reaction time data in each age group to obtain the reaction time warning threshold corresponding to each age group.

[0022] In some embodiments, each age group corresponds to a set of time warning thresholds, and the time warning thresholds include a sleep time warning threshold and a reaction time warning threshold; the sleep time data and the reaction time data are compared with the preset time warning thresholds, and the sleep time state parameters and the reaction time state parameters are obtained according to the comparison results, including:

[0023] Obtaining age data of the target driver, and determining the target age group of the target driver based on the age data; obtaining a sleep time warning threshold and a reaction time warning threshold corresponding to the target age group;

[0024] Comparing the sleep time data with the sleep time warning threshold; comparing the reaction time data with the reaction time warning threshold;

[0025] When the sleep time data is less than the sleep time warning threshold, the sleep time state parameter is determined to be a first value, otherwise, the sleep time state parameter is determined to be a second value;

[0026] When the reaction time data is greater than the reaction time warning threshold, the reaction time state parameter is determined to be a first value, otherwise, the reaction time state parameter is determined to be a second value.

[0027] In some embodiments, when the amount of historical reaction time data of the target driver is greater than a quantity threshold, the method further includes:

[0028] Acquiring the historical reaction time data of the target driver;

[0029] Based on a preset reaction time warning threshold parameter, a second redundant processing is performed on the average value of all the historical reaction time data of the target driver, and the result of the second redundant processing is used as the reaction time warning threshold.

[0030] In some embodiments, the sleep time state parameter includes a first value or a second value; the step of discriminating the sleep time state parameter and the reaction time state parameter based on a preset parameter condition to obtain a result of discriminating the mental state of the target driver includes:

[0031] When the sleep state parameter is the first value, determining that the determination result is unqualified; otherwise, further determining the reaction time state parameter;

[0032] Based on the preset reaction time state weight, all types of reaction time state parameters are weighted and summed to obtain a judgment value of the driver's mental state; when the judgment value is greater than the preset upper limit, the judgment result is determined to be unqualified; otherwise, the judgment result is determined to be qualified.

[0033] To achieve the above object, another aspect of an embodiment of the present invention provides a device for quickly determining a driver's mental state, the device comprising:

[0034] The first module is used to obtain the sleep time data of the target driver;

[0035] The second module is used to obtain the reaction time data of the target driver in response to the reaction action of the target driver under the preset detection instruction;

[0036] The third module is used to compare the sleep time data and the reaction time data with the preset time warning threshold, and obtain the sleep time state parameter and the reaction time state parameter according to the comparison result; the time warning threshold includes a sleep time warning threshold and a reaction time warning threshold, the sleep time warning threshold is set based on the historical sleep time data of the target driver, and the reaction time warning threshold is set based on the reaction time mean of the historical reaction time data of drivers of different age groups;

[0037] The fourth module is used to judge the sleep time state parameter and the reaction time state parameter based on preset parameter conditions to obtain the judgment result of the mental state of the target driver.

[0038] In some embodiments, the time warning threshold includes a sleep time warning threshold and a reaction time warning threshold; the device further includes:

[0039] A fifth module is used to obtain the historical sleep time data of the target driver and the historical reaction time data of a preset number of drivers in different age groups;

[0040] A sixth module, for grouping the historical reaction time data based on age groups;

[0041] The seventh module is used to perform a first redundant processing on the reaction time mean of the historical reaction time data in each age group based on a preset reaction time warning threshold parameter to obtain a reaction time warning threshold corresponding to each age group.

[0042] In some embodiments, when the amount of historical reaction time data of the target driver is greater than a quantity threshold; the device further comprises:

[0043] An eighth module is used to obtain the historical reaction time data of the target driver;

[0044] The ninth module is used to perform a second redundant processing on the average value of all historical reaction time data of the target driver based on a preset reaction time warning threshold parameter, and use the result of the second redundant processing as the reaction time warning threshold.

[0045] To achieve the above objective, another aspect of an embodiment of the present invention provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above method when executing the computer program.

[0046] To achieve the above objective, another aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above method is implemented.

[0047] The embodiments of the present invention include at least the following beneficial effects: the present invention provides a method, device, equipment and medium for quickly distinguishing the mental state of a driver. The scheme obtains the sleep time data of the target driver; in response to the reaction action of the target driver under the preset detection instruction, obtains the reaction time data of the target driver; compares the sleep time data and the reaction time data with the preset time warning threshold, and obtains the sleep time state parameter and the reaction time state parameter according to the comparison result; the time warning threshold includes the sleep time warning threshold and the reaction time warning threshold, the sleep time warning threshold is set based on the historical sleep time data of the target driver, and the reaction time warning threshold is set based on the reaction time mean of the historical reaction time data of drivers of different age groups; based on the preset parameter conditions, the sleep time state parameter and the reaction time state parameter are distinguished to obtain the distinguishing result of the mental state of the target driver. In addition to using the sleep time index, the embodiment of the present invention also uses the reaction time as the distinguishing index, and the recommended warning threshold is obtained by establishing the data standard to make the distinguishing. The embodiment of the present invention can realize the rapid distinguishing of the mental state of the driver. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 is a flow chart of a method for quickly determining a driver's mental state provided by an embodiment of the present invention;

[0049] Figure 2 It is a logic diagram of the overall determination process provided by an embodiment of the present invention;

[0050] Figure 3 is a schematic diagram of a process for establishing a discrimination standard provided by an embodiment of the present invention;

[0051] Figure 4 This is a flowchart of real-time driver mental state identification provided by an embodiment of the present invention;

[0052] Figure 5 A schematic diagram of the structure of a device for quickly distinguishing a driver's mental state provided by an embodiment of the present invention;

[0053] Figure 6 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present invention. They are only examples of devices and methods consistent with some aspects of the embodiments of the present invention as detailed in the attached claims.

[0055] It is understood that the terms "first", "second", etc. used in the present invention may be used herein to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of the embodiments of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0056] The terms "at least one", "multiple", "each", "any", etc. used in the present invention, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.

[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein are only for the purpose of describing the embodiments of the present invention and are not intended to limit the present invention.

[0058] The method for quickly distinguishing the mental state of a driver provided by an embodiment of the present invention relates to the field of data processing technology. The method for quickly distinguishing the mental state of a driver provided by an embodiment of the present invention can be applied to a terminal, can be applied to a server, or can be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a vehicle-mounted terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or can be configured as a server cluster or a distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application that implements a method for quickly distinguishing the mental state of a driver, etc., but is not limited to the above forms.

[0059] The present invention can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present invention can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0060] Figure 1 is an optional flow chart of a method for quickly determining a driver's mental state provided by an embodiment of the present invention. Figure 1 The method may include but is not limited to steps S100 to S400.

[0061] S100, obtaining sleep time data of the target driver;

[0062] It should be noted that, in some embodiments, step S100 may include: obtaining a sleep input signal of the target driver; the sleep input signal includes a sleeping time and a waking time; and obtaining the sleeping time data of the target driver according to the time difference between the waking time and the sleeping time.

[0063] For example, in some specific implementations, during the driver's post detection process, a sleep questionnaire may be displayed, including two specific questions;

[0064] Question 1: What time did you go to bed last night?

[0065] Question 2: What time did you get up this morning?

[0066] A sliding selection box is set under both questions, with the minimum unit accurate to 15 minutes, for the subjects (target drivers) to flexibly choose. Then, sleep time data is obtained based on the subjects' feedback.

[0067] S200, in response to a reaction action of the target driver under a preset detection instruction, obtaining reaction time data of the target driver;

[0068] It should be noted that the reaction time includes simple reaction time, selection reaction time and auditory reaction time; in some embodiments, step S200 may include: showing the first exhibit to the target driver at a random time node within the first time range, thereby obtaining the first receiving instruction of the target driver; obtaining the simple reaction time according to the time difference between the acquisition time of the first receiving instruction and the display time of the first exhibit; showing the first exhibit or the second exhibit to the target driver at a random time node within the second time range, thereby obtaining the selection instruction of the target driver; obtaining the selection reaction time according to the time difference between the acquisition time of the selection instruction and the display time of the first exhibit or the second exhibit; issuing a buzzer to the target driver at a random time node within the third time range, thereby obtaining the second receiving instruction of the target driver; obtaining the auditory reaction time according to the time difference between the acquisition time of the second receiving instruction and the emission time of the buzzer. It should be noted that in order to improve the fault tolerance of the data, the average of the reaction times obtained by multiple tests can also be collected as the result of the final reaction time.

[0069] For example, in some specific implementations, before starting an actual work cycle, the driver collects sleep time data and three types of reaction time, namely: simple reaction time, choice reaction time, and auditory reaction time. The so-called reaction time refers to the time from when we perceive something to when we react to it. It is an ability to detect, process and respond to stimuli. Reaction time can accurately, effectively and instantly reflect the driver's mental state, and is an ideal discrimination indicator.

[0070] To ensure the consistency of data collection conditions each time, the data collection time is uniformly fixed to within 15 minutes before the driver goes to work; the data collection location is fixed to a dedicated data collection room, and the collection environment remains quiet, clean and consistent; during the entire data collection cycle, the collection equipment remains consistent and the collection process remains unchanged.

[0071] Simple reaction time data collection:

[0072] During the collection process, a red rectangle will randomly appear on the display screen within 1 to 5 seconds. There are two buttons, one red and one green, under the screen. Please press the red button immediately when you see the red rectangle appear. The time from the appearance of the red rectangle to the subject pressing the button is recorded, which is the simple reaction time of the subject in this test. This test is repeated 5 times and the average is taken, which is the final simple reaction time of the subject in this round of testing.

[0073] Select Reaction Time Data Collection:

[0074] During the collection process, a red rectangle or a green rectangle will randomly appear on the display screen within 1 to 5 seconds. There are two buttons, one red and one green, under the screen. Please press the corresponding color button immediately when you see the corresponding color rectangle appear. The time between the appearance of the rectangle and the subject pressing the button is the subject's choice reaction time for this test. This test is repeated 8 times and the average is taken, which is the subject's final choice reaction time for this round of testing.

[0075] Auditory Reaction Time Data Collection:

[0076] During the collection process, the speaker will randomly emit a beep within 1 to 5 seconds. There are two buttons, one red and one green, under the screen. Please press the red button immediately when you hear the beep. The time from the beep to the subject pressing the button is the subject's auditory reaction time for this test. This test is repeated 5 times and the average is taken, which is the subject's final auditory reaction time for this round of testing.

[0077] S300, comparing the sleep time data and the reaction time data with a preset time warning threshold, and obtaining a sleep time state parameter and a reaction time state parameter according to the comparison result;

[0078] It should be noted that the time warning threshold includes a sleep time warning threshold and a reaction time warning threshold. The sleep time warning threshold is set based on the historical sleep time data of the target driver, and the reaction time warning threshold is set based on the average reaction time of the historical reaction time data of drivers of different age groups.

[0079] Among them, in some embodiments, the method may also include: obtaining the historical sleep time data of the target driver and the historical reaction time data of a preset number of drivers in different age groups; grouping the historical reaction time data based on age groups; based on the historical sleep time data of the target driver, obtaining the sleep time warning threshold of the target driver through preset rules; performing a first redundant processing on the reaction time mean of the historical reaction time data in each of the age groups based on a preset reaction time warning threshold parameter to obtain the reaction time warning threshold corresponding to each of the age groups.

[0080] Among them, in some embodiments, the historical reaction time data of the target driver is obtained; based on a preset reaction time warning threshold parameter, a second redundant processing is performed on the average value of all the historical reaction time data of the target driver, and the result of the second redundant processing is used as the reaction time warning threshold.

[0081] For example, in some specific implementations, in order to ensure data accuracy and improve data fault tolerance, the test drivers should all be front-line practitioners and the number of people in each age group should be no less than 30, and each person should be tested no less than 90 times.

[0082] For sleep time warning threshold:

[0083] Based on the subjects' single sleep survey, the sleep time T of the test drivers before each work was calculated.

[0084] The sleep time warning threshold H is obtained according to relevant regulations (for example, based on the average value or median value of all historical sleep times).

[0085] For reaction time warning thresholds:

[0086] Calculate the mean:

[0087] First, the test drivers were grouped according to their age;

[0088] Secondly, the mean of simple reaction time, choice reaction time, and auditory reaction time of each test driver was calculated individually, corresponding to X1, X2, and X3 respectively;

[0089] Finally, the means of the simple reaction time, choice reaction time and auditory reaction time of the test drivers in each group are calculated according to the groups, which correspond to Y1, Y2 and Y3 respectively.

[0090] For details, please see Table 1 and Table 2 below:

[0091] Table 1

[0092] Name(Number) No. 1 No. 2 …… age 32 43 …… Simple reaction time <![CDATA[X1(1)]]> <![CDATA[X1(2)]]> …… Select reaction time <![CDATA[X2(1)]]> <![CDATA[X2(2)]]> …… Auditory reaction time <![CDATA[X3(1)]]> <![CDATA[X3(2)]]> ……

[0093] Table 2

[0094] age Age ≤ 30 30<Age≤40 40<Age≤50 Age>50 Grouping A B C D Simple reaction time <![CDATA[Y1(A)]]> <![CDATA[Y1(B)]]> <![CDATA[Y1(C)]]> <![CDATA[Y1(D)]]> Select reaction time <![CDATA[Y2(A)]]> <![CDATA[Y2(B)]]> <![CDATA[Y2(C)]]> <![CDATA[Y2(D)]]> Auditory reaction time <![CDATA[Y3(A)]]> <![CDATA[Y3(B)]]> <![CDATA[Y3(C)]]> <![CDATA[Y3(D)]]>

[0095] Calculate the warning threshold:

[0096] The calculation formula used for the warning threshold is:

[0097] Z1=a1·(1+b1); simple reaction time warning threshold;

[0098] Z2=a2·(1+b2); select the reaction time warning threshold;

[0099] Z2=a2·(1+b2); auditory reaction time warning threshold;

[0100] Among them, a1 is the mean of simple reaction time; b1 is the warning threshold parameter of simple reaction time; a2 is the mean of selection reaction time; b2 is the warning threshold parameter of selection reaction time; a3 is the mean of auditory reaction time; b3 is the warning threshold parameter of auditory reaction time; to avoid the warning threshold limit range being too small, a certain redundancy can be adjusted through the warning threshold parameters of b1 to b3, and the setting range can be 0 to 0.2.

[0101] In the above formula, b is the set reaction time warning threshold parameter, which can be selected according to the specific situation.

[0102] In addition, let d be the number of times a single driver is detected. D is the critical value of sufficient basic data for a single driver (i.e., data threshold), which can be selected according to specific circumstances;

[0103] If d ≥ D, then take the value of X, and the resulting warning threshold Z is the individual's reaction time warning threshold.

[0104] If d<D, then take the Y value, and the obtained warning threshold Z is the reaction time warning threshold of the group.

[0105] In some embodiments, each age group corresponds to a set of time warning thresholds, and the time warning thresholds include a sleep time warning threshold and a reaction time warning threshold; step S300 may include: obtaining the age data of the target driver, and determining the target age group of the target driver based on the age data; obtaining the sleep time warning threshold and the reaction time warning threshold corresponding to the target age group; comparing the sleep time data with the sleep time warning threshold; comparing the reaction time data with the reaction time warning threshold; when the sleep time data is less than the sleep time warning threshold, determining that the sleep time state parameter is a first value, otherwise, determining that the sleep time state parameter is a second value; when the reaction time data is greater than the reaction time warning threshold, determining that the reaction time state parameter is a first value, otherwise, determining that the reaction time state parameter is a second value.

[0106] Among them, it should be noted that when the amount of historical reaction time data of the target driver is greater than the quantity threshold, the reaction time warning threshold determined by the historical reaction time data of the target driver is directly compared, without obtaining the reaction time warning threshold corresponding to the target age group of the target driver for comparison.

[0107] S400: Based on preset parameter conditions, the sleep time state parameter and the reaction time state parameter are judged to obtain a judgment result of the mental state of the target driver.

[0108] It should be noted that the sleep time state parameter includes a first value or a second value; in some embodiments, step S400 may include: when the sleep state parameter is the first value, determining that the judgment result is unqualified; otherwise, further judging the reaction time state parameter; performing weighted summation of all types of reaction time state parameters based on a preset reaction time state weight to obtain a judgment value of the driver's mental state; when the judgment value is greater than a preset upper limit, determining that the judgment result is unqualified; otherwise, determining that the judgment result is qualified.

[0109] For example, in some specific implementations, the implementation process of steps S300 to S400 is as follows:

[0110] The target driver's sleep time is recorded as T, and the simple reaction time, choice reaction time and auditory reaction time are recorded as X. 1(实时) , X 2(实时) , X 3(实时) .

[0111] The discriminant formula is as follows:

[0112] The discrimination formula used in real-time pre-job discrimination is: α1 = γ1; α2β1 + α3β2 + α4β3 = γ2;

[0113] Among them, α1 is the sleep time state parameter; α2 is the simple reaction time state parameter; β1 is the simple reaction time state weight; α3 is the selection reaction time state parameter; β2 is the selection reaction time state weight; α4 is the auditory reaction time state parameter; β3 is the auditory reaction time state weight; γ1 and γ2 are discriminant values.

[0114] α is a state parameter, which takes a value of 0 or 1, as shown in Table 3 below;

[0115] β is the state weight, which satisfies the conditions 0≤β1, β2, β3≤1 and β1+β2+β3=1;

[0116] γ is the discriminant value, γ1=0 or 1, 0≤γ2≤1.

[0117] Table 3

[0118]

[0119] ① If the value of γ1 is 1, it is judged as unqualified. If the value of γ1 is 0, it enters process ② for further judgment;

[0120] ② Set a reasonable upper limit of the judgment value γ2 according to the specific situation. If it exceeds the upper limit of γ2, it is judged as unqualified. If it does not exceed the upper limit of γ2, it is judged as qualified.

[0121] At the same time, the judgment results and suggestions are displayed to the driver and fed back to the supervision system.

[0122] Among them, in some specific implementations, the method may also include: cleaning and storing the new data generated by each real-time driver's mental state identification process, and inputting it into the warning threshold determination module, and participating in the determination of the warning threshold together with the historical data according to the warning threshold determination model above, thereby generating a new warning threshold and achieving iteration. To ensure effectiveness, the warning threshold should be iterated once after each real-time driver's mental state identification process generates new data.

[0123] In order to explain the principle of the technical solution of the present invention in detail, the overall process of the present invention is described below in combination with some specific embodiments. It is easy to understand that the following is an explanation of the technical principle of the present invention and cannot be regarded as a limitation of the present invention.

[0124] First of all, it should be noted that the identification of the driver's mental state before going to work is to identify whether the driver's mental state is suitable for work before going to work. In order not to affect the driver's normal work, it is required to be quickly identified in a short time (generally less than 10 minutes). There are four existing methods for identifying the driver's mental state, namely subjective evaluation method, behavior-based method, machine vision-based method and physiological information-based method.

[0125] 1) Subjective evaluation method refers to the classification and quantification based on the driver's subjective feelings or fatigue characteristics, so as to judge the driver's mental state, which is generally completed through a scale.

[0126] The advantages of this method are:

[0127] (1) The implementation is relatively simple.

[0128] The disadvantages of this approach are:

[0129] (1) During the evaluation process, the subjects’ understanding of each question in the table has a certain degree of deviation, which makes the test results subjective.

[0130] (2) There is a phenomenon where drivers deliberately conceal their true feelings.

[0131] 2) Behavior-based identification methods refer to inferring and identifying the driver's mental state by analyzing the turning angle, grip strength, pedal and button operating characteristics of the vehicle's driving device, or analyzing the vehicle's speed, direction, and whether the lane or channel deviates.

[0132] The advantages of this approach are:

[0133] It is non-intrusive and will not cause significant interference to the driver's normal driving.

[0134] The disadvantages of this approach are:

[0135] (1) It is usually affected by factors such as the driver’s driving habits, intentions, and experience, and its accuracy needs to be improved.

[0136] (2) If you want to obtain accurate behavioral information, in addition to upgrading sensors, it is often necessary to make special modifications to roads, waterways, etc., which is costly.

[0137] (3) Not suitable for rapid testing of mental status before leaving the post.

[0138] 3) The machine vision-based identification method refers to capturing the driver's head image through a camera or other image sensors, and analyzing and identifying the driver's mental state by extracting eye features, mouth features, and head features.

[0139] The advantages of this approach are:

[0140] (1) Real-time and non-invasive.

[0141] (2) The test is convenient and the cost is low.

[0142] The disadvantages of this approach are:

[0143] (1) Due to the influence of individual differences among drivers, lighting conditions and other factors during driving, all-weather, highly robust algorithms still face technical bottlenecks.

[0144] (2) It is not suitable for quickly judging the mental state of a driver on duty.

[0145] 4) The discrimination method based on physiological information refers to extracting the driver's electroencephalogram (EEG), electrocardiogram (ECG), electromyography (EMG) and other physiological information through collection facilities to analyze and judge the driver's mental state.

[0146] The advantages of this approach are:

[0147] (1) Relatively high accuracy and reliability.

[0148] The disadvantages of this approach are:

[0149] (1) It is invasive. Drivers usually need to wear corresponding devices (electrode patches, EEG caps, etc.), which may interfere with the driver's normal operation.

[0150] (2) It is not suitable for quickly identifying the mental state of employees after leaving the post.

[0151] The four existing methods for identifying the mental state of a driver all have obvious shortcomings, and most of them are not suitable for the rapid identification of the mental state of a driver on the job. There is a lack of means suitable for identifying the mental state of a driver in off-duty scenarios, and innovation is urgently needed.

[0152] In view of this, the present invention proposes a method for distinguishing the mental state of the driver before leaving the post based on the driver's reaction time and sleep time. Taking into account the individual differences of different drivers, this discrimination method is divided into two levels: for drivers with sufficient basic data, a discrimination based on the individual warning threshold is adopted; for drivers without sufficient basic data, a discrimination based on the overall warning threshold is adopted, so as to realize the judgment and warning of the driver's mental state before leaving the post. In addition to using the sleep time indicator, the present invention also uses three types of reaction time as discrimination indicators. By establishing a mathematical model, the recommended warning threshold is obtained for discrimination. The so-called reaction time refers to the time from when we perceive something to when we react to it. It is an ability to detect, process and respond to stimuli. The reaction time can accurately, effectively and instantly reflect the driver's mental state, and is an ideal discrimination indicator.

[0153] like Figure 2 As shown, the process principle implemented by the method of the present invention is as follows:

[0154] (1) Collecting driver’s sleep time data;

[0155] (2) Collecting and storing the driver's three types of reaction time data (simple reaction time, choice reaction time, and auditory reaction time);

[0156] (3) Processing the collected historical data to obtain the average individual reaction time, the average reaction time of different age groups, and the reaction time warning threshold, and establishing a discrimination standard in combination with the sleep time warning threshold obtained according to relevant regulations;

[0157] (4) storing the discrimination criteria;

[0158] (5) Making judgments on real-time data based on judgment criteria;

[0159] (6) Display the identification results and provide feedback to the supervision system;

[0160] (7) The generated new data is stored in the database and the discrimination criteria are iterated.

[0161] The entire program is divided into two major steps: establishing judgment criteria and real-time pre-job judgment.

[0162] 1) If Figure 3 As shown, the process principle of the method for establishing the discrimination criteria is as follows:

[0163] (1) Data collection:

[0164] Before starting an actual work cycle, a sufficient number of drivers were asked to collect sleep time data and three types of reaction times: simple reaction time, choice reaction time, and auditory reaction time.

[0165] To ensure the consistency of data collection conditions each time, the data collection time is uniformly fixed to within 15 minutes before the driver goes to work; the data collection location is fixed to a dedicated data collection room, and the collection environment remains quiet, clean and consistent; during the entire data collection cycle, the collection equipment remains consistent and the collection process remains unchanged.

[0166] Sleep time data collection:

[0167] During the outgoing inspection process, a sleep questionnaire is displayed, which includes two specific questions;

[0168] Question 1: What time did you go to bed last night?

[0169] Question 2: What time did you get up this morning?

[0170] A sliding selection box is set under both questions, with the minimum unit accurate to 15 minutes, for subjects to choose flexibly.

[0171] Simple reaction time data collection:

[0172] During the collection process, a red rectangle will randomly appear on the display screen within 1 to 5 seconds. There are two buttons, one red and one green, under the screen. Please press the red button immediately when you see the red rectangle appear. The time from the appearance of the red rectangle to the subject pressing the button is recorded, which is the simple reaction time of the subject in this test. This test is repeated 5 times and the average is taken, which is the final simple reaction time of the subject in this round of testing.

[0173] Select Reaction Time Data Collection:

[0174] During the collection process, a red rectangle or a green rectangle will randomly appear on the display screen within 1 to 5 seconds. There are two buttons, one red and one green, under the screen. Please press the corresponding color button immediately when you see the corresponding color rectangle appear. The time between the appearance of the rectangle and the subject pressing the button is the subject's choice reaction time for this test. This test is repeated 8 times and the average is taken, which is the subject's final choice reaction time for this round of testing.

[0175] Auditory Reaction Time Data Collection:

[0176] During the collection process, the speaker will randomly emit a beep within 1 to 5 seconds. There are two buttons, one red and one green, under the screen. Please press the red button immediately when you hear the beep. The time from the beep to the subject pressing the button is the subject's auditory reaction time for this test. This test is repeated 5 times and the average is taken, which is the subject's final auditory reaction time for this round of testing.

[0177] Auditory reaction time for this test. This test was repeated 5 times and the average value was taken as the final auditory reaction time of the subject in this round of testing.

[0178] In this collection module, the test drivers should all be front-line practitioners and the number of people in each age group should be no less than 30, and each person should be tested no less than 90 times.

[0179] (2) Determination of warning threshold:

[0180] After cleaning the collected data, determine the relevant warning thresholds and establish the judgment criteria.

[0181] For sleep time warning threshold:

[0182] Based on the subjects' single sleep survey, the sleep time T of the test drivers before each work was calculated.

[0183] The sleep time warning threshold H is obtained according to relevant regulations (for example, based on the average value or median value of all historical sleep times).

[0184] For reaction time warning thresholds:

[0185] Calculate the mean:

[0186] First, the test drivers were grouped according to their age;

[0187] Secondly, the mean of simple reaction time, choice reaction time, and auditory reaction time of each test driver was calculated individually, corresponding to X1, X2, and X3 respectively;

[0188] Finally, the means of the simple reaction time, choice reaction time and auditory reaction time of the test drivers in each group are calculated according to the groups, which correspond to Y1, Y2 and Y3 respectively.

[0189] For details, please see Table 1 and Table 2 above.

[0190] Calculate the warning threshold:

[0191] The calculation formula used for the warning threshold is:

[0192] Z1=a1·(1+b1); simple reaction time warning threshold;

[0193] Z2=a2·(1+b2); select the reaction time warning threshold;

[0194] Z2=a2·(1+b2); auditory reaction time warning threshold;

[0195] Among them, a1 is the mean of simple reaction time; b1 is the warning threshold parameter of simple reaction time; a2 is the mean of selection reaction time; b2 is the warning threshold parameter of selection reaction time; a3 is the mean of auditory reaction time; b3 is the warning threshold parameter of auditory reaction time; to avoid the warning threshold limit range being too small, a certain redundancy can be adjusted through the warning threshold parameters of b1 to b3, and the setting range can be 0 to 0.2.

[0196] In the above formula, b is the set reaction time warning threshold parameter, which can be selected according to the specific situation.

[0197] In addition, let d be the number of times a single driver is detected. D is the critical value of sufficient basic data for a single driver (i.e., data threshold), which can be selected according to specific circumstances;

[0198] If d ≥ D, then take the value of X, and the resulting warning threshold Z is the individual's reaction time warning threshold.

[0199] If d<D, then take the Y value, and the obtained warning threshold Z is the reaction time warning threshold of the group.

[0200] 2) If Figure 4 As shown, the process principle of the real-time driver mental state identification method is as follows:

[0201] (1) Data collection:

[0202] Before the driver actually goes to work, the driver's sleep time data and reaction time data are collected.

[0203] (2) Data processing:

[0204] According to the content about mean value calculation in the previous method of establishing the judgment standard, calculate the mean value X of the driver's sleep time and the three types of reaction time1(实时) , X 2(实时) , X 3(实时) .

[0205] (3)Discrimination formula:

[0206] The discrimination formula used in real-time pre-job discrimination is: α1 = γ1; α2β1 + α3β2 + α4β3 = γ2;

[0207] Among them, α1 is the sleep time state parameter; α2 is the simple reaction time state parameter; β1 is the simple reaction time state weight; α3 is the selection reaction time state parameter; β2 is the selection reaction time state weight; α4 is the auditory reaction time state parameter; β3 is the auditory reaction time state weight; γ1 and γ2 are discriminant values.

[0208] α is a state parameter, which takes a value of 0 or 1, see Table 3 above for details;

[0209] β is the state weight, which satisfies the conditions 0≤β1, β2, β3≤1 and β1+β2+β3=1;

[0210] γ is the discriminant value, γ1=0 or 1, 0≤γ2≤1.

[0211] (4) Judgment results:

[0212] ① If the value of γ1 is 1, it is judged as unqualified. If the value of γ1 is 0, it enters process ② for further judgment;

[0213] ② Set a reasonable upper limit of the judgment value γ2 according to the specific situation. If it exceeds the upper limit of γ2, it is judged as unqualified. If it does not exceed the upper limit of γ2, it is judged as qualified.

[0214] (5) Display results:

[0215] The judgment results and suggestions are displayed to the driver and fed back to the supervision system.

[0216] (6) Data iteration

[0217] The new data generated by each real-time driver mental state identification process is cleaned and stored, and then input into the warning threshold determination module. According to the warning threshold determination model above, it is used together with historical data to determine the warning threshold, thereby generating a new warning threshold and achieving iteration. To ensure effectiveness, the warning threshold should be iterated every time new data is generated in the real-time driver mental state identification process.

[0218] Based on the working scene characteristics of drivers when they are on duty, the present invention proposes a method for comprehensively calibrating the mental state of drivers by using three types of reaction time, namely simple reaction time, selection reaction time and auditory reaction time, as well as the sleep time of the driver the previous day; and the present invention proposes a method for identifying the mental state of drivers based on overall standards and individual standards; in addition to constructing a reaction time database of all drivers, the overall standard for identifying the mental state of drivers is determined according to age, and an exclusive database is established for each driver. When the driver collects data for a certain number of times, the individual standard for identifying the mental state of the driver can be determined. For drivers without sufficient basic data, the corresponding overall standard is selected according to their age for identification; for drivers whose individual standards have been determined, the mental state is identified according to their individual standards to improve the accuracy of identification; at the same time, the relevant important parameters in the discrimination standard and the discrimination formula can be flexibly set according to the actual situation and relevant regulations, ensuring the flexibility and effectiveness of the method in various different scenarios. Each new data generated by the real-time pre-job discrimination test will be stored and calculated, and the overall and individual standards for identifying the mental state of the driver will be dynamically adjusted, so that the detection standard will become more scientific and accurate as the amount of data gradually increases.

[0219] Compared with the prior art, the present invention has at least the following beneficial effects:

[0220] The present invention proposes a method for judging the mental state of a driver on duty, which comprehensively uses sleep time and three types of reaction time indicators to reflect the mental state of the driver, and provides a new solution for judging the mental state of the driver.

[0221] At the same time, the judgment results are used to determine whether the driver is suitable for the job and give suggestions, which provides certain technical support and scientific basis for optimizing the traffic safety management system, can effectively reduce traffic accidents caused by fatigue and improve the safety factor of the entire transportation system.

[0222] See also Figure 5 The embodiment of the present invention further provides a device 900 for quickly distinguishing a driver's mental state, which can implement the above-mentioned method for quickly distinguishing a driver's mental state. The device comprises:

[0223] The first module 910 is used to obtain the sleep time data of the target driver;

[0224] The second module 920 is used to obtain the reaction time data of the target driver in response to the reaction action of the target driver under the preset detection instruction;

[0225] The third module 930 is used to compare the sleep time data and the reaction time data with the preset time warning threshold, and obtain the sleep time state parameter and the reaction time state parameter according to the comparison result; the time warning threshold includes a sleep time warning threshold and a reaction time warning threshold, the sleep time warning threshold is set based on the historical sleep time data of the target driver, and the reaction time warning threshold is set based on the reaction time mean of the historical reaction time data of drivers of different age groups;

[0226] The fourth module 940 is used to judge the sleep time state parameter and the reaction time state parameter based on preset parameter conditions to obtain the judgment result of the mental state of the target driver.

[0227] In some embodiments, the time warning threshold includes a sleep time warning threshold and a reaction time warning threshold; the device may further include:

[0228] A fifth module is used to obtain the historical sleep time data of the target driver and the historical reaction time data of a preset number of drivers in different age groups;

[0229] A sixth module, for grouping the historical reaction time data based on age groups;

[0230] The seventh module is used to perform a first redundant processing on the reaction time mean of the historical reaction time data in each age group based on a preset reaction time warning threshold parameter to obtain a reaction time warning threshold corresponding to each age group.

[0231] In some embodiments, when the amount of historical reaction time data of the target driver is greater than a quantity threshold, the device may further include:

[0232] An eighth module is used to obtain the historical reaction time data of the target driver;

[0233] The ninth module is used to perform a second redundant processing on the average value of all historical reaction time data of the target driver based on a preset reaction time warning threshold parameter, and use the result of the second redundant processing as the reaction time warning threshold.

[0234] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0235] The embodiment of the present invention further provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned method for quickly distinguishing the mental state of a driver when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0236] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0237] See also Figure 6 , Figure 6 The hardware structure of an electronic device 1000 of another embodiment is illustrated. The electronic device includes:

[0238] The processor 1001 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present invention;

[0239] The memory 1002 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1002 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1002, and the processor 1001 calls and executes the method for quickly distinguishing the mental state of a driver in the embodiment of the present invention;

[0240] Input / output interface 1003, used to implement information input and output;

[0241] The communication interface 1004 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0242] A bus 1005 , which transmits information between various components of the device (e.g., the processor 1001 , the memory 1002 , the input / output interface 1003 , and the communication interface 1004 );

[0243] The processor 1001 , the memory 1002 , the input / output interface 1003 and the communication interface 1004 are connected to each other in communication within the device via the bus 1005 .

[0244] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method for quickly distinguishing the mental state of a driver is implemented.

[0245] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0246] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0247] The method for quickly distinguishing the mental state of a driver, the device for quickly distinguishing the mental state of a driver, the equipment and the medium provided by the embodiment of the present invention obtain the sleep time data of the target driver; in response to the reaction action of the target driver under the preset detection instruction, obtain the reaction time data of the target driver; compare the sleep time data and the reaction time data with the preset time warning threshold, and obtain the sleep time state parameter and the reaction time state parameter according to the comparison result; the time warning threshold includes the sleep time warning threshold and the reaction time warning threshold, the sleep time warning threshold is set based on the historical sleep time data of the target driver, and the reaction time warning threshold is set based on the reaction time mean of the historical reaction time data of drivers of different age groups; the sleep time state parameter and the reaction time state parameter are distinguished based on the preset parameter conditions to obtain the distinguishing result of the mental state of the target driver. In addition to using the sleep time index, the embodiment of the present invention also uses the reaction time as the distinguishing index, and the recommended warning threshold is obtained by establishing the data standard to make the distinguishing. The embodiment of the present invention can realize the rapid distinguishing of the mental state of the driver.

[0248] The embodiments described in the embodiments of the present invention are intended to more clearly illustrate the technical solutions of the embodiments of the present invention, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. Those skilled in the art can appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems.

[0249] Those skilled in the art will appreciate that the technical solutions shown in the figures do not limit the embodiments of the present invention and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0250] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0251] Those skilled in the art will appreciate that all or some of the steps, devices, and functional modules / units in the above disclosed methods may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0252] The terms "first", "second", "third", "fourth", etc. (if any) in the description of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0253] It should be understood that in the present invention, "at least one (item)" refers to one or more, and "plurality" refers to two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can represent: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0254] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0255] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0256] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0257] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including multiple instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store programs.

[0258] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the embodiments of the present invention is not limited thereby. Any modification, equivalent substitution and improvement made by those skilled in the art without departing from the scope and essence of the embodiments of the present invention shall be within the scope of the rights of the embodiments of the present invention.

Claims

1. A method for quickly determining a driver's mental state, characterized in that: The method comprises: Obtaining sleep time data of the target driver; In response to a reaction action of the target driver under a preset detection instruction, obtaining reaction time data of the target driver; The sleep time data and the reaction time data are compared with a preset time warning threshold, and a sleep time state parameter and a reaction time state parameter are obtained according to the comparison result; the time warning threshold includes a sleep time warning threshold and a reaction time warning threshold, the sleep time warning threshold is set based on the historical sleep time data of the target driver, and the reaction time warning threshold is set based on the reaction time mean of the historical reaction time data of drivers of different age groups; The sleep time state parameter and the reaction time state parameter are judged based on preset parameter conditions to obtain a judgment result of the mental state of the target driver.

2. The method according to claim 1, characterized in that The step of obtaining the target driver's sleep time data includes: Acquire a sleep input signal of the target driver; the sleep input signal includes a sleeping time and a waking time; The sleeping time data of the target driver is obtained according to the time difference between the waking time and the sleeping time.

3. The method according to claim 1, characterized in that The reaction time includes simple reaction time, selection reaction time and auditory reaction time; the reaction time data of the target driver is obtained in response to the reaction action of the target driver under the preset detection instruction, including: Displaying a first exhibit to the target driver at a random time point within a first time range, thereby obtaining a first receiving instruction from the target driver; obtaining the simple reaction time according to a time difference between the time when the first receiving instruction is obtained and the time when the first exhibit is displayed; Displaying the first exhibit or the second exhibit to the target driver at a random time point within a second time range, thereby obtaining a selection instruction of the target driver; obtaining the selection reaction time according to a time difference between a time of obtaining the selection instruction and a time of displaying the first exhibit or the second exhibit; A buzzer sound is emitted to the target driver at a random time node within a third time range, thereby obtaining a second receiving instruction from the target driver; and the auditory reaction time is obtained according to the time difference between the acquisition time of the second receiving instruction and the emission time of the buzzer sound.

4. The method according to claim 1, characterized in that The method further comprises: Acquiring the historical sleep time data of the target driver and the historical reaction time data of a preset number of drivers in different age groups; grouping the historical reaction time data based on age groups; Based on the historical sleep time data of the target driver, the sleep time warning threshold of the target driver is obtained by setting a preset rule; Based on a preset reaction time warning threshold parameter, a first redundant processing is performed on the reaction time mean of the historical reaction time data in each age group to obtain the reaction time warning threshold corresponding to each age group.

5. The method according to claim 1, characterized in that Each age group corresponds to a set of time warning thresholds, wherein the time warning thresholds include a sleep time warning threshold and a reaction time warning threshold; comparing the sleep time data and the reaction time data with the preset time warning thresholds, and obtaining a sleep time state parameter and a reaction time state parameter according to the comparison results, including: Acquire the age data of the target driver, and determine the target age group of the target driver based on the age data; acquire the sleep time warning threshold and the reaction time warning threshold corresponding to the target age group; Comparing the sleep time data with the sleep time warning threshold; comparing the reaction time data with the reaction time warning threshold; When the sleep time data is less than the sleep time warning threshold, determining the sleep time state parameter to be a first value, otherwise, determining the sleep time state parameter to be a second value; When the reaction time data is greater than the reaction time warning threshold, the reaction time state parameter is determined to be a first value; otherwise, the reaction time state parameter is determined to be a second value.

6. The method according to claim 1, characterized in that When the amount of the historical reaction time data of the target driver is greater than a quantity threshold, the method further includes: Acquiring the historical reaction time data of the target driver; Based on a preset reaction time warning threshold parameter, a second redundant processing is performed on the average value of all the historical reaction time data of the target driver, and the result of the second redundant processing is used as the reaction time warning threshold.

7. The method according to claim 1, characterized in that The sleep time state parameter includes a first value or a second value; the sleep time state parameter and the reaction time state parameter are judged based on the preset parameter condition to obtain a judgment result of the mental state of the target driver, including: When the sleep state parameter is the first value, determining that the determination result is unqualified; otherwise, further determining the reaction time state parameter; Based on the preset reaction time state weight, all types of reaction time state parameters are weighted and summed to obtain a judgment value of the driver's mental state; when the judgment value is greater than the preset upper limit, the judgment result is determined to be unqualified; otherwise, the judgment result is determined to be qualified.

8. A device for quickly judging a driver's mental state, characterized in that: The device comprises: The first module is used to obtain the sleep time data of the target driver; The second module is used to obtain the reaction time data of the target driver in response to the reaction action of the target driver under the preset detection instruction; The third module is used to compare the sleep time data and the reaction time data with a preset time warning threshold, and obtain a sleep time state parameter and a reaction time state parameter according to the comparison result; the time warning threshold includes a sleep time warning threshold and a reaction time warning threshold, the sleep time warning threshold is set based on the historical sleep time data of the target driver, and the reaction time warning threshold is set based on the reaction time mean of the historical reaction time data of drivers of different age groups; The fourth module is used to judge the sleep time state parameter and the reaction time state parameter based on preset parameter conditions to obtain a judgment result of the mental state of the target driver.

9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.